2 Replies Latest reply on Mar 16, 2007 7:51 AM by frankr

    JBoss AS startup, portlet does not get initialized

    frankr

      I have a couple of portlets deployed in a war package. If I deploy the war file after the application server is started the portlets start and work as expected. However if I restart the application server I have to redeploy my war file before the portlets work. There are no errors in the log file and if I access the portal, for every portlet it says "Object not found".

      Any dependency I have to wait for on start-up of JBoss so that portlets do get properly initialized?

        • 1. Re: JBoss AS startup, portlet does not get initialized
          theute

          I don't see this can happen, unless you modified the deployment order.

          The default deployment order is to deploy sar files before war files. It means that jboss-portal.sar will be deployed before your war file anyway.

          I would need more info, anything you can find or changed compare to a 'typical' war

          • 2. Re: JBoss AS startup, portlet does not get initialized
            frankr

            Did not touch the deployment order (would not even know how to change that ;-))

            It's a Seam / MyFaces application. In the web.xml the initialization for Seam and MyFaces is done. Nothing special in the portlet.xml and portlet-instances.xml.

            The application does have a dependency on some EJB components so I defined the following in jboss-web.xml:

            <jboss-web>
             <context-root>myapp</context-root>
             <depends>
             jboss.j2ee:service=EARDeployment,url='myapp-ear-1.0-SNAPSHOT.ear'
             </depends>
            </jboss-web>


            I have created a custom login portlet. For that reason my jboss-portlet.xml looks like this:

            <portlet-app>
             <portlet>
             <portlet-name>MyAppPortlet</portlet-name>
             </portlet>
            
             <portlet>
             <portlet-name>AdditionalNavigationPortlet</portlet-name>
             <transaction>
             <trans-attribute>Required</trans-attribute>
             </transaction>
             </portlet>
            
             <portlet>
             <portlet-name>UserHeaderPortlet</portlet-name>
             <transaction>
             <trans-attribute>Required</trans-attribute>
             </transaction>
             </portlet>
            
             <service>
             <service-name>UserModule</service-name>
             <service-class>
             org.jboss.portal.identity.UserModule
             </service-class>
             <service-ref>:service=Module,type=User</service-ref>
             </service>
             <service>
             <service-name>PortalObjectContainer</service-name>
             <service-class>
             org.jboss.portal.core.model.portal.PortalObjectContainer
             </service-class>
             <service-ref>:container=PortalObject</service-ref>
             </service>
             <service>
             <service-name>InstanceContainer</service-name>
             <service-class>
             org.jboss.portal.core.model.instance.InstanceContainer
             </service-class>
             <service-ref>:container=Instance</service-ref>
             </service>
             <service>
             <service-name>PortalAuthorizationManagerFactory</service-name>
             <service-class>
             org.jboss.portal.security.spi.auth.PortalAuthorizationManagerFactory
             </service-class>
             <service-ref>
             :service=PortalAuthorizationManagerFactory
             </service-ref>
             </service>
            </portlet-app>


            That's about all I can think of. Any clues?