• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

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

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, just to show the error log excerpt:



And the jboss.xml excerpt:





Thanks!
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't need security, then remove the security-domain from the jboss.xml:

 
Jimmy Ho
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thanks! That resolved the issue.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic