-
1. Re: JSR181 EJB endpoint with root contextRoot
jason.greene Mar 28, 2007 1:33 PM (in response to joff)Tomcat has certain restrictions about binding to the root context.
Can you try saying contextRoot="ROOT"? Also make sure you don't have a ROOT.war deployed. -
2. Re: JSR181 EJB endpoint with root contextRoot
joff Mar 28, 2007 6:30 PM (in response to joff)Okay, I removed the default ROOT.war, and changed the annotation to read contextRoot="ROOT", but that seems to cause it to ignore the @PortComponent entirely - it deploys to the default /earname-jarname/ context, with the default name.
btw, my application.xml is like this:<application> <display-name>MyExample</display-name> <module> <web> <web-uri>example.war</web-uri> <context-root>/</context-root> </web> </module> <module> <ejb>example.jar</ejb> </module> </application>
There is no context root specified in the web.xml. -
3. Re: JSR181 EJB endpoint with root contextRoot
jason.greene Mar 30, 2007 9:51 AM (in response to joff)Is example.war a servlet deployment? If so, it would conflict with the generated war for the service. Otherwise you don't need that entry.
Can you also try contextRoot=""?
Otherwise, I believe, we may need to add special support for this for EJB endpoints.
http://jira.jboss.com/jira/browse/JBWS-1596
In the meantime you could do with this with a war style deployment.
http://wiki.jboss.org/wiki/Wiki.jsp?page=SetupARootContextApp
-Jason