aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes EJB unable to access class under war's WEB-INF/classes (ear deployment) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply locked New topic
Author

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

Asad Imtiaz
Greenhorn

Joined: Aug 01, 2008
Posts: 21
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

Joined: Jul 20, 2005
Posts: 10101
    
164

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.


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB unable to access class under war's WEB-INF/classes (ear deployment)