This content has been marked as final.
Show 2 replies
-
1. Re: JBoss AS startup, portlet does not get initialized
theute Mar 16, 2007 5:50 AM (in response to frankr)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 Mar 16, 2007 7:51 AM (in response to 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?