Foros de discusión

Developing portlets with NetBeans and PortalPack 3.0.4

ma bu, modificado hace 13 años.

Developing portlets with NetBeans and PortalPack 3.0.4

Junior Member Mensajes: 31 Fecha de incorporación: 14/05/10 Mensajes recientes
Hello everbody!

Now I'm developing portlets with NetBeans and PortalPack 3.0.4 plugin. I would like to develop some portlets for Liferay 5.2.3 / 6. With this tutorial here it is pretty easy to create the first portlet.
What I did and what the problem is:
  • First of all I downloaded Liferay 5.2.3 bundled with Tomcat 6.0.18.
  • With this tomcat I created a 'Liferay Portal Server' in NetBeans.
  • After that I created a new project exactly like in the tutorial and
    got the example portlet (deployed it --> worked fine!)
  • Than I changed within the java class to this
    //public class TestSearch extends GenericPortlet
    public class TestSearch implements OpenSearch
  • fixed imports and implemented all abstract methods. Redeployed it and now I get a lot of exceptions like:
    com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for TestSearch....
    Caused by: java.lang.ClassCastException: com.test.TestSearch....
    
Can anybody help me out with that?

Cheers!