3 Replies Latest reply on Apr 14, 2008 9:03 AM by bentabol

    Problem when deploying Portlet in JBoss Portal

    bentabol

      Hello,

      I downloaded JBoss Portal 2.6.4 from your page and I am using JBoss 4.2.2. GA as Application Server.

      I want to use Portlets in the portal and I was following the Reference Guide of the JBoss Portal. I tried the example "HelloWorldJSFSunRIPortlet" and it worked properly. After that, I tried to create my own portlet in my Eclipse IDE, copying the folders and files of the example but it didn't work on deployment. I tried the same with the example "HelloWorldJSFMyFaces42Portlet" and I obtain the next error after deploying:

      13:29:47,143 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: Portlet class not found org.apache.myfaces.portlet.MyFacesGenericPortlet

      Can anyone help me, please?
      Thank you in advance.

        • 1. Re: Problem when deploying Portlet in JBoss Portal
          prabhat.jha

          If you are using JSFRI portlet then you should be using jsf-portlet.jar not classes from myface. You can avoid this dependency if you use portletbridge. You can find information about bridge at http://www.jboss.org/portletbridge . It works with both myfaces and JSF-RI.

          • 2. Re: Problem when deploying Portlet in JBoss Portal
            bentabol

            Hello Prabhat,

            I obtained that problem when trying myfaces portlet, not JSFRI one. Anyway, I have two questions:

            1. When using JSFRI portlet, that library should be in the WEB-INF of the portlet or in the server?

            2. Do I need to have portletbridge in order to work with any of the technologies (JSFRI or myfaces)?

            Thank you again.

            • 3. Re: Problem when deploying Portlet in JBoss Portal
              bentabol

              I think these are the answers to my questions:

              "bentabol" wrote:

              1. When using JSFRI portlet, that library should be in the WEB-INF of the portlet or in the server?


              In the WEB-INF of the application. Am I wrong?

              "bentabol" wrote:

              2. Do I need to have portletbridge in order to work with any of the technologies (JSFRI or myfaces)?


              Only for Rich Faces.

              Anyway I still have problems when developing JSFMyFaces Portlet. These are the libraries I have in the WEB-INF\lib folder of the application:

              commons-beanutils
              commons-digester
              commons-el
              commons-lang
              myfaces-api
              myfaces-impl

              Are any missing? Should I add them to the \lib of the server?

              Thank you!