-
1. JBoss 5.1 @WebContext custom auth-method failure
ropalka Apr 4, 2011 4:17 PM (in response to sridhar18)Unfortunately JBWS-2762 fix isn't available on JBossAS 5.x series
Your only options are either use JBossAS 6.0.0 or JBoss EAP 5x.
-
2. Re: JBoss 5.1 @WebContext custom auth-method failure
sridhar18 Apr 5, 2011 1:03 PM (in response to ropalka)I found a work around for this.
Use jboss.xml to specify the web context instead of the @WebContext annotation that's faulty. It should be placed inside the META-INF directory of the ejb jar file.
Sample:
<jboss>
<security-domain>java:/jaas/MyDomain</security-domain>
<webservices>
<context-root>/my-context</context-root>
</webservices>
<enterprise-beans>
<session>
<ejb-name>MyBean_v1</ejb-name>
<port-component>
<port-component-name>MyWS</port-component-name>
<port-component-uri>/MyService</port-component-uri>
<auth-method>MY-AUTH-METHOD</auth-method>
</port-component>
</session>
</enterprise-beans>
</jboss>