wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes ClassNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "ClassNotFoundException" Watch "ClassNotFoundException" New topic
Author

ClassNotFoundException

Anand BS
Greenhorn

Joined: Jan 14, 2003
Posts: 3
I am trying to deploy a .ear j2ee application in weblogic 7.0 through weblogic console. I am uploading the the .ear file into the mydomain folder and then deploying it. I get the message that the deployment is completed and all my EJB jars and .war files are now deployed. I can see the JNDI names also of my EJBs. But when I try to run my application, I am getting a ClassNotFoundException for one of the classes which is residing inside an EJB jar.
This is my exception stack
java.lang.ClassNotFoundException: com.mizuho.rdw.useraccess.beans.UserAccessCont
rollerHome
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at com.mizuho.rdw.util.HomeManager.getNewHome(HomeManager.java:172)
at com.mizuho.rdw.util.HomeManager.getHomeReference(HomeManager.java:128
)
at com.mizuho.rdw.login.LoginServlet.isValidDBUser(LoginServlet.java:299
)
at com.mizuho.rdw.login.LoginServlet.doPost(LoginServlet.java:184)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5363)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
at com.mizuho.rdw.util.HomeManager.getNewHome(HomeManager.java:178)
at com.mizuho.rdw.util.HomeManager.getHomeReference(HomeManager.java:128
)
at com.mizuho.rdw.login.LoginServlet.isValidDBUser(LoginServlet.java:299
)
at com.mizuho.rdw.login.LoginServlet.doPost(LoginServlet.java:184)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:945)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:332)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5363)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:721)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3043)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2466)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

Any help or tip would be greatly appreciated.
Manjunath Rane
Greenhorn

Joined: Jan 05, 2003
Posts: 8
Where r u getting this exception...server side or Client Side...
Cheers,
Manja


Cheers,<br />Manja
Anand BS
Greenhorn

Joined: Jan 14, 2003
Posts: 3
Server side
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
This may be a dumb question... but have you checked your ear to make sure the com.mizuho.rdw.useraccess.beans.UserAccessControllerHome class is there?
Due to the way the WebLogic Classloader works, all your war classes should have access to all your ejb classes (but not the other way around). Therefore, this error seems strange. You are packaging your ejbs and wars in the same ear, correct?
[ January 16, 2003: Message edited by: Chris Mathews ]
Anand BS
Greenhorn

Joined: Jan 14, 2003
Posts: 3
The class file is there in the EJB jar
 
Don't get me started about those stupid light bulbs.
 
subject: ClassNotFoundException
 
Similar Threads
Pool Exception
Problem with Session Beans
ObjectNotFoundException with findByPrimaryKey
XA connections
Passing Parameters