File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes web project dependency Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "web project dependency" Watch "web project dependency" New topic
Author

web project dependency

sruthi adhuri
Greenhorn

Joined: Nov 19, 2005
Posts: 9
I've a web project MedicarePartD. And now i'm creating new project MedicarePartDAdmin which uses MedicarePartD. i've included MedicarePartD/WebContent/WEB-INF/classes in my MedicarePartDAdmin project.
When i try to run MedicarePartDAdmin i'm getting following Exception. I know this is purely some class loder problem. i'm not sure what i'm missing.

Thanks in advance.. any help Any help appreciated.

[11/29/05 16:35:20:295 PST] 13d42aa2 WebGroup E SRVE0020E: [Servlet Error]-[action]: Failed to load servlet: java.lang.NoClassDefFoundError: Error while defining class: com.regence.ebusiness.medicare.partd.drugformulary.search.comprehensive.admin.action.FormularySearchAdminActionServlet
This error indicates that the class: com.regence.ebusiness.medicare.partd.drugformulary.search.comprehensive.util.GeneralConst
could not be located while defining the class: com.regence.ebusiness.medicare.partd.drugformulary.search.comprehensive.admin.action.FormularySearchAdminActionServlet
This is often caused by having the class at a higher point in the classloader hierarchy
Dumping the current context classloader hierarchy:
==> indicates defining classloader
*** indicates classloader where the missing class could have been found
==>[0]
com.ibm.ws.classloader.CompoundClassLoader@50586aa0
Local ClassPath: C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\classes;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-beanutils.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-collections.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-dbcp-1.2.1.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-digester.jar;C:\WSAD\wor kspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-fileupload.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-lang.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-logging.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-pool-1.2.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-validator.jar;C:\WSAD\works pace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\framework.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\jakarta-oro.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\jxl.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\log4j-1.2.8.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\struts.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdm in\WebContent;
Delegation Mode: PARENT_FIRST
[1] com.ibm.ws.classloader.JarClassLoader@1370860192 Local Classpath: Delegation mode: PARENT_FIRST
[2] com.ibm.ws.classloader.ExtJarClassLoader@1223912104 Local ClassPath: C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5\lib\app; Delegation Mode: PARENT_LAST
[3] com.ibm.ws.classloader.ProtectionClassLoader@5af06aaf
[4] com.ibm.ws.bootstrap.ExtClassLoader@4f41eaa6
[5] sun.misc.Launcher$AppClassLoader@4cb6eaa6
[6] sun.misc.Launcher$ExtClassLoader@4cb3aaa6
---Original exception---
java.lang.NoClassDefFoundError: com/regence/ebusiness/medicare/partd/drugformulary/search/comprehensive/util/GeneralConst
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:407)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:357)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.beans.Beans.instantiate(Beans.java:216)
at java.beans.Beans.instantiate(Beans.java:77)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java:646)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebAppRequestDispatcherInfo.java:172)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.<init>(WebAppRequestDispatcherInfo.java:59)
at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1455)
at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1414)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:197)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

--- end Original exception----

at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:434)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:357)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.beans.Beans.instantiate(Beans.java:216)
at java.beans.Beans.instantiate(Beans.java:77)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java:646)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebAppRequestDispatcherInfo.java:172)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.<init>(WebAppRequestDispatcherInfo.java:59)
at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1455)
at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1414)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:197)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

[11/29/05 16:35:20:826 PST] 13d42aa2 WebGroup E SRVE0026E: [Servlet Error]-[action]: java.lang.NoClassDefFoundError: Error while defining class: com.regence.ebusiness.medicare.partd.drugformulary.search.comprehensive.admin.action.FormularySearchAdminActionServlet
This error indicates that the class: com.regence.ebusiness.medicare.partd.drugformulary.search.comprehensive.util.GeneralConst
could not be located while defining the class: com.regence.ebusiness.medicare.partd.drugformulary.search.comprehensive.admin.action.FormularySearchAdminActionServlet
This is often caused by having the class at a higher point in the classloader hierarchy
Dumping the current context classloader hierarchy:
==> indicates defining classloader
*** indicates classloader where the missing class could have been found
==>[0]
com.ibm.ws.classloader.CompoundClassLoader@50586aa0
Local ClassPath: C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\classes;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-beanutils.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-collections.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-dbcp-1.2.1.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-digester.jar;C:\WSAD\wor kspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-fileupload.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-lang.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-logging.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-pool-1.2.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\commons-validator.jar;C:\WSAD\works pace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\framework.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\jakarta-oro.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\jxl.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\log4j-1.2.8.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdmin\WebContent\WEB-INF\lib\struts.jar;C:\WSAD\workspace\MedicarePartDAdmin\MedicarePartDAdm in\WebContent;
Delegation Mode: PARENT_FIRST
[1] com.ibm.ws.classloader.JarClassLoader@1370860192 Local Classpath: Delegation mode: PARENT_FIRST
[2] com.ibm.ws.classloader.ExtJarClassLoader@1223912104 Local ClassPath: C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5\lib\app; Delegation Mode: PARENT_LAST
[3] com.ibm.ws.classloader.ProtectionClassLoader@5af06aaf
[4] com.ibm.ws.bootstrap.ExtClassLoader@4f41eaa6
[5] sun.misc.Launcher$AppClassLoader@4cb6eaa6
[6] sun.misc.Launcher$ExtClassLoader@4cb3aaa6
---Original exception---
java.lang.NoClassDefFoundError: com/regence/ebusiness/medicare/partd/drugformulary/search/comprehensive/util/GeneralConst
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code))
at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:407)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:357)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.beans.Beans.instantiate(Beans.java:216)
at java.beans.Beans.instantiate(Beans.java:77)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java:646)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebAppRequestDispatcherInfo.java:172)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.<init>(WebAppRequestDispatcherInfo.java:59)
at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1455)
at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1414)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:197)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

--- end Original exception----

at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:434)
at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:357)
at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.beans.Beans.instantiate(Beans.java:216)
at java.beans.Beans.instantiate(Beans.java:77)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:188)
at com.ibm.ws.webcontainer.webapp.WebAppServletManager.getServletReference(WebAppServletManager.java:455)
at com.ibm.ws.webcontainer.webapp.WebApp.getServletReference(WebApp.java:646)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebAppRequestDispatcherInfo.java:172)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.<init>(WebAppRequestDispatcherInfo.java:59)
at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1455)
at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1414)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:197)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
sruthi adhuri
Greenhorn

Joined: Nov 19, 2005
Posts: 9
Plz some body help me... its urgent..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: web project dependency