• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jelp me guys...its urgent

 
Prashanth reddy
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
[I]I created a project with name "tech" n Enterprise application project name "techEAR".I am using RAD.
i placed JSF related jars in tech/WebContent/ WEB-INF/lib folder.and placed my application related jars in techEAR.

And i selected all my application jar files from tech->properties->java JAR Dependencies.And selected these jars from

tech->properties->java buildpath->Order and Export.

when i run my application sample JSF page it is looking for one of my application jar file in WEB-INF/lib but it is already

in techEAR.i am getting problem with that jar file only, there is no problem with other jar files.i dont know why i am

getting this problem.
If i placed that jar file in WEB-INF/lib, the application works fine.But as my project developement, i should place that jar

in techEAR only.please help me.
[/I]

the error its displaying is:

com.navtech.util.rsa.jsf.tag.CommandButtonTag 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@628e451c Local ClassPath:


C:\projects\Apps\tech\WebContent\WEB-INF\classes;C:\projects\Apps\tech\WebContent\WEB-INF\lib\commons-beanutils.jar;C:\projec

ts\Apps\tech\WebContent\WEB-INF\lib\commons-collections.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\commons-digester.jar

;C:\projects\Apps\tech\WebContent\WEB-INF\lib\commons-fileupload.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\commons-lan

g.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\commons-logging.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\commons-v

alidator.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\jakarta-oro.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\jaxen-

full.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\jsf-api.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\jsf-ibm.jar;C:

\projects\Apps\tech\WebContent\WEB-INF\lib\jsf-techpl.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\jstl.jar;C:\projects\A

pps\tech\WebContent\WEB-INF\lib\jstl_el.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\saxpath.jar;C:\projects\Apps\tech\We

bContent\WEB-INF\lib\standard.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\struts.jar;C:\projects\Apps\tech\WebContent\WE

B-INF\lib\taglibs-datetteche.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\taglibs-mailer.jar;C:\projects\Apps\tech\WebCon

tent\WEB-INF\lib\taglibs-string.jar;C:\projects\Apps\tech\WebContent\WEB-INF\lib\utility.jar;C:\projects\Apps\tech\WebContent

\WEB-INF\lib\webarch.jar;C:\projects\Apps\tech\WebContent; Delegation Mode: PARENT_FIRST ==>[1]

com.ibm.ws.classloader.JarClassLoader@1659208988 Local Classpath:

C:\projects\Apps\techEAR\DisMidTier.jar;C:\projects\Apps\techEAR\TEB.jar;C:\projects\Apps\techEAR\pls.jar Delegation mode:

PARENT_FIRST [2] com.ibm.ws.classloader.ExtJarClassLoader@1582138652 Local ClassPath: C:\Program Files\Rational

Software\RAD6.0\runtteches\base_v51\lib\app; Delegation Mode: PARENT_LAST [3]

com.ibm.ws.classloader.ProtectionClassLoader@599a051c [4] com.ibm.ws.bootstrap.ExtClassLoader@3097451d [5]

sun.misc.Launcher$AppClassLoader@308d051d [6] sun.misc.Launcher$ExtClassLoader@30f1051d ---Original exception---

java.lang.NoClassDefFoundError: com/sun/faces/taglib/html_basic/CommandButtonTag 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:446) at

com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) at

com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:300) at

java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at

com.ibm.ws.classloader.ReloadableClassLoader.loadClass(ReloadableClassLoader.java:83) at

com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:294) at

java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at

com.ibm.ws.webcontainer.jsp.compiler.BasicTagBeginGenerator.init(BasicTagBeginGenerator.java:77) at

org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:1015) at

org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:185) at

org.apache.jasper.compiler.ConfigurableParseEventListener.handleTagBegin(ConfigurableParseEventListener.java:739) at

org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:221) at

org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:216) at

org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:862) at org.apache.jasper.compiler.Parser.parse(Parser.java:1155) at

org.apache.jasper.compiler.Parser.parse(Parser.java:1113) at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:902) at

org.apache.jasper.compiler.Parser.parse(Parser.java:1155) at org.apache.jasper.compiler.Parser.parse(Parser.java:1113) at

org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:902) at org.apache.jasper.compiler.Parser.parse(Parser.java:1155) at

org.apache.jasper.compiler.Parser.parse(Parser.java:1113) at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:902) at

org.apache.jasper.compiler.Parser.parse(Parser.java:1155) at org.apache.jasper.compiler.Parser.parse(Parser.java:1113) at

org.apache.jasper.compiler.Parser.parse(Parser.java:1109) at

org.apache.jasper.compiler.ParserController.parse(ParserController.java:344) at

org.apache.jasper.compiler.Compiler.compile(Compiler.java:225) at

org.apache.jasper.compiler.Compiler.compile(Compiler.java:129) at

com.ibm.ws.webcontainer.jsp.servlet.JspServlet.loadJSP(JspServlet.java:956) at

com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:285) at

com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:317) at

com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:683) at

com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:781) at

javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at

com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) at

com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) at

com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at

com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) at

com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) at

com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) at

com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1019) at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:592) at

com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:204) at

com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125) at

com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:286) 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:615) at

com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:912) ---

end Original exception----
 
Daniel Rhoades
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firstly - use a better topic title to get help

If you include a class in a package (or in the application's scope) more than once then it is highly likely you will have class loader issues.

Ensure that only one copy of the class is available to an application scope, i.e. ensure the EAR has only one copy of the JAR
 
Prashanth reddy
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yah there is only one jar file, and it is in EAR .
And in MANIFEST.MF class path directs to this jar file.
but still am getting this problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic