File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic

EJB unable to access class under war's WEB-INF/classes (ear deployment)

 
Asad Imtiaz
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
My EJB is unable to access a class file in WAR's WEB-INF/classes directory. I made a JBOSS upgrade from 4.0.3SP1 to 4.3.2. As I never configured a JBOSS AS from scratch so I am having trouble identifying the problem correctly.

Steps I followed to upgrade

1. Copied the deployment packages e.g. *.ear & *.har
2. Added the missing library
3. And ran the server.

After which I can successfully see my application's login page but once I try to login my EJB does a hibernate query and then it through's a ClassNotFoundError exception as follows


Now my .EAR package is as follows



Basically a method in the LoginSessionLocal EJB (in myapp.jar) tries to access a class StatusType in the myapp.war > WEB-INF/classes

Search over the internet it seems like a classloader issue but I am lost to where should i start configuring.


I am using JBOSS 4.3.2GA.


Thanks

Asad Imtiaz
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Asad,

Please do not create the same topic in multiple forums. Let's discuss this in your other thread here http://www.coderanch.com/t/475327/JBoss/EJB-unable-access-class-under.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic