Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
Maximilian Butterer
Developing portlets with NetBeans and PortalPack 3.0.4
29 de octubre de 2010 6:10
Respuesta

Maximilian Butterer

Ranking: Junior Member

Mensajes: 31

Fecha de incorporación: 14 de mayo de 2010

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
    1//public class TestSearch extends GenericPortlet
    2public class TestSearch implements OpenSearch
  • fixed imports and implemented all abstract methods. Redeployed it and now I get a lot of exceptions like:
    1com.liferay.portal.kernel.deploy.hot.HotDeployException: Error registering portlets for TestSearch....
    2Caused by: java.lang.ClassCastException: com.test.TestSearch....
Can anybody help me out with that?

Cheers!