File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes How to remove all EJB security | WAS-to-JBOSS migration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to remove all EJB security | WAS-to-JBOSS migration" Watch "How to remove all EJB security | WAS-to-JBOSS migration" New topic
Author

How to remove all EJB security | WAS-to-JBOSS migration

Jimmy Ho
Ranch Hand

Joined: Jul 31, 2007
Posts: 61
We're migrating applications and EJBs from WAS 5.0 to JBOSS 5.1. We don't need security on these EJB's, but when we deploy the EJBs on JBOSS, our application code in our servlets are getting a Security (Authentication) exception for the EJB. Are we missing something simple? Is there a line somewhere we forgot to insert in a config setting, or something special to JBOSS EJB security that we don't know about?

(Also, before people start lecturing us on the need for security, this is just our dev server, and we're doing proof-of-concept work. We'd like to get the EJB's actually working first before figuring out the security situation. Plus, the prior EJB setup on WAS didn't seem to have security, and there's no business/technical requirements for it either).

Here's an excerpt from our ejb-jar.xml:

<display-name>gcsejb</display-name>
<enterprise-beans>
<session id="GcsCache">
<ejb-name>GcsCache</ejb-name>
<local-home>com.gap.cs.cache.GcsCacheHome</local-home>
<local>com.gap.cs.cache.GcsCache</local>
<ejb-class>com.gap.cs.cache.GcsCacheEJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<resource-ref id="ResourceRef_1054339999999">
<description></description>
<res-ref-name>GcsOracleDSRef</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</session>

Thanks!
Jimmy Ho
Ranch Hand

Joined: Jul 31, 2007
Posts: 61
Also, just to show the error log excerpt:



And the jboss.xml excerpt:





Thanks!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10290
    
168

If you don't need security, then remove the security-domain from the jboss.xml:



[My Blog] [JavaRanch Journal]
Jimmy Ho
Ranch Hand

Joined: Jul 31, 2007
Posts: 61

Thanks! That resolved the issue.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to remove all EJB security | WAS-to-JBOSS migration