tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: classes visibility in the WEB-INF dir
Date Thu, 21 Feb 2002 13:33:38 GMT
try jar-ing the classfiles up and put the jar file into WEB-INF/lib
then it should be in the classpath (seems like that's the problem here).

-hope it helps


> -----Original Message-----
> From: Amine AMAR [mailto:a.amar@dns1.caciopee.com]
> Sent: 21. febrúar 2002 13:40
> To: Tomcat Users List
> Subject: Re: classes visibility in the WEB-INF dir
> 
> 
> Hi,
> 
> it gives the following error trace:
> java.lang.NoClassDefFoundError: kitabe/SearchUtilities
> 	at java.lang.Class.newInstance0(Native Method)
> 	at java.lang.Class.newInstance(Class.java:237)
> 	at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(Js
> pServlet.java:139)
> 	at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> ecessary(JspServlet.java:179)
> 	at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.java:189)
> 	at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:382)
> 	at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:247)
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:193)
> 	at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:243)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> 	at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:201)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> 	at 
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.java:246)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> 	at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at 
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2344)
> 	at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:164)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> 	at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.java:170)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> 	at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> 	at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:462)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
> 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> 	at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:163)
> 	at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
> 	at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> 	at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at 
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> rocessor.java:1011)
> 	at 
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> ssor.java:1106)
> 	at java.lang.Thread.run(Thread.java:484)
> 
> I tried to do the same with other classes of the package 
> kitabe.dal.bean and it works perfectly. It looks like it's 
> not able to find
> only the classes in the package kitabe.
> Thank's again for your help
> Regards,
> ----- Original Message -----
> From: "Larry Isaacs" <Larry.Isaacs@sas.com>
> To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
> Sent: Wednesday, February 20, 2002 7:02 PM
> Subject: RE: classes visibility in the WEB-INF dir
> 
> 
> > Do you know if any bean or servlet in the ketabe web application
> > successfully loads kitabe.SearchUtilities.  If you are not sure,
> > you could try:
> >
> >     <% kitabe.SearchUtilities su = new kitabe.SearchUtilities() %>
> >
> > on a test JSP page in ketabe and see if it compiles.
> >
> > Cheers,
> > Larry
> >
> > > -----Original Message-----
> > > From: Amine AMAR [mailto:a.amar@dns1.caciopee.com]
> > > Sent: Wednesday, February 20, 2002 1:35 PM
> > > To: Tomcat Users List
> > > Subject: Re: classes visibility in the WEB-INF dir
> > >
> > >
> > > Hi,
> > >
> > > Yes, all kitabe classes are in /ketabe/WEB-INF/classes directory.
> > > Line 60 in kitabe.dal.home.AuthorHome.findByName() contain
> > > only a call for the constructor of kitabe.SearchUtilities
> > > (SearchUtilities su = new SearchUtilities();)
> > >
> > > Regards,
> > > Amine
> > >
> > > ----- Original Message -----
> > > From: "Larry Isaacs" <Larry.Isaacs@sas.com>
> > > To: "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
> > > Sent: Wednesday, February 20, 2002 5:47 PM
> > > Subject: RE: classes visibility in the WEB-INF dir
> > >
> > >
> > > > Are all "kitabe" classes located in your /ketabe/WEB-INF/classes
> > > > directory?  Also, to you know what the link is between what
> > > > kitabe.dal.home.AuthorHome.findByName() is doing around line 60
> > > > and kitabe.SearchUtilities?
> > > >
> > > > Cheers,
> > > > Larry
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Amine AMAR [mailto:a.amar@dns1.caciopee.com]
> > > > > Sent: Wednesday, February 20, 2002 11:34 AM
> > > > > To: Tomcat Users List
> > > > > Subject: Re: classes visibility in the WEB-INF dir
> > > > >
> > > > >
> > > > > Hi,
> > > > > Sorry for misleading you. my directories are kitabe and com.
> > > > > The pb comes from the kitabe directory. the 'dir' was 
> just for the
> > > > > exemple.
> > > > > here after the whole log file
> > > > > ---------------------------------------------
> > > > > 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploying class
> > > > > repositories to work directory
> > > > > C:\jakarta-tomcat-4.0.1\work\localhost\ketabe
> > > > > 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR
> > > > > /WEB-INF/lib/classes12.jar to
> > > c:\www\ketabe\WEB-INF\lib\classes12.jar
> > > > > 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR
> > > > > /WEB-INF/lib/crimson.jar to 
> c:\www\ketabe\WEB-INF\lib\crimson.jar
> > > > > 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR
> > > > > /WEB-INF/lib/log4j.jar to c:\www\ketabe\WEB-INF\lib\log4j.jar
> > > > > 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR
> > > > > /WEB-INF/lib/poolman.jar to 
> c:\www\ketabe\WEB-INF\lib\poolman.jar
> > > > > 2002-02-20 15:56:15 WebappLoader[/ketabe]: Deploy JAR
> > > > > /WEB-INF/lib/xalan.jar to c:\www\ketabe\WEB-INF\lib\xalan.jar
> > > > > 2002-02-20 15:56:15 WebappLoader[/ketabe]: Reloading checks
> > > > > are enabled for this Context
> > > > > 2002-02-20 15:56:15 StandardManager[/ketabe]: Seeding random
> > > > > number generator class java.security.SecureRandom
> > > > > 2002-02-20 15:56:15 StandardManager[/ketabe]: Seeding of
> > > > > random number generator has been completed
> > > > > 2002-02-20 15:56:16 ContextConfig[/ketabe]: Added
> > > > > certificates -> request attribute Valve
> > > > > 2002-02-20 15:56:16 StandardWrapper[/ketabe:default]: Loading
> > > > > container servlet default
> > > > > 2002-02-20 15:56:16 default: init
> > > > > 2002-02-20 15:56:16 StandardWrapper[/ketabe:invoker]: Loading
> > > > > container servlet invoker
> > > > > 2002-02-20 15:56:16 invoker: init
> > > > > 2002-02-20 15:56:16 jsp: init
> > > > > 2002-02-20 15:57:56 jsp: init
> > > > > 2002-02-20 16:32:49 jsp: init
> > > > > 2002-02-20 16:32:49 StandardWrapperValve[jsp]:
> > > > > Servlet.service() for servlet jsp threw exception
> > > > > javax.servlet.ServletException: kitabe/SearchUtilities
> > > > >  at
> > > > > org.apache.jasper.runtime.PageContextImpl.handlePageException(
> > > > > PageContextImpl.java:457)
> > > > >  at org.apache.jsp.result$jsp._jspService(result$jsp.java:407)
> > > > >  at
> > > > >
> > > 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> > > > >  at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > >  at
> > > > > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> > > > > (JspServlet.java:202)
> > > > >  at
> > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> > > > > .java:382)
> > > > >  at
> > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> > > > >  at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > >  at
> > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> > > > > er(ApplicationFilterChain.java:247)
> > > > >  at
> > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > > > > cationFilterChain.java:193)
> > > > >  at
> > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > > > > rapperValve.java:243)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:566)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > > > ine.java:472)
> > > > >  at
> > > > >
> > > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > > >  at
> > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardC
> > > > > ontextValve.java:201)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:566)
> > > > >  at
> > > > > org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> > > > > esValve.java:246)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:564)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > > > ine.java:472)
> > > > >  at
> > > > >
> > > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > > >  at
> > > > > org.apache.catalina.core.StandardContext.invoke(StandardContex
> > > > > t.java:2344)
> > > > >  at
> > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> > > > > Valve.java:164)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:566)
> > > > >  at
> > > > > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> > > > > spatcherValve.java:170)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:564)
> > > > >  at
> > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> > > > > Valve.java:170)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:564)
> > > > >  at
> > > > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> > > > > e.java:462)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:564)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > > > ine.java:472)
> > > > >  at
> > > > >
> > > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > > >  at
> > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> > > > > gineValve.java:163)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:566)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > > > ine.java:472)
> > > > >  at
> > > > >
> > > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > > >  at
> > > > > org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> > > > > rocessor.java:1011)
> > > > >  at
> > > > > org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> > > > > ssor.java:1106)
> > > > >  at java.lang.Thread.run(Thread.java:484)
> > > > > ----- Root Cause -----
> > > > > java.lang.NoClassDefFoundError: kitabe/SearchUtilities
> > > > >  at kitabe.dal.home.AuthorHome.findByName(AuthorHome.java:60)
> > > > >  at kitabe.bl.Catalogue.searchAuthorBooks(Catalogue.java:250)
> > > > >  at 
> kitabe.bl.Catalogue.searchByTitleAndAuthor(Catalogue.java:389)
> > > > >  at org.apache.jsp.result$jsp._jspService(result$jsp.java:147)
> > > > >  at
> > > > >
> > > 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> > > > >  at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > >  at
> > > > > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> > > > > (JspServlet.java:202)
> > > > >  at
> > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> > > > > .java:382)
> > > > >  at
> > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> > > > >  at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > >  at
> > > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> > > > > er(ApplicationFilterChain.java:247)
> > > > >  at
> > > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > > > > cationFilterChain.java:193)
> > > > >  at
> > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > > > > rapperValve.java:243)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:566)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > > > ine.java:472)
> > > > >  at
> > > > >
> > > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > > >  at
> > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardC
> > > > > ontextValve.java:201)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:566)
> > > > >  at
> > > > > org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> > > > > esValve.java:246)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:564)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > > > ine.java:472)
> > > > >  at
> > > > >
> > > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > > >  at
> > > > > org.apache.catalina.core.StandardContext.invoke(StandardContex
> > > > > t.java:2344)
> > > > >  at
> > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> > > > > Valve.java:164)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:566)
> > > > >  at
> > > > > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> > > > > spatcherValve.java:170)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:564)
> > > > >  at
> > > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> > > > > Valve.java:170)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:564)
> > > > >  at
> > > > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> > > > > e.java:462)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:564)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > > > ine.java:472)
> > > > >  at
> > > > >
> > > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > > >  at
> > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> > > > > gineValve.java:163)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > > > > ipeline.java:566)
> > > > >  at
> > > > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > > > > ine.java:472)
> > > > >  at
> > > > >
> > > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > > >  at
> > > > > org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> > > > > rocessor.java:1011)
> > > > >  at
> > > > > org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> > > > > ssor.java:1106)
> > > > >  at java.lang.Thread.run(Thread.java:484)
> > > > >
> > > > > ---------------------------------------------
> > > > > Thank's for your help
> > > > >
> > > > > Amine
> > > > >
> > > >
> > > > --
> > > > To unsubscribe:
> > > <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > > For additional commands:
> > > <mailto:tomcat-user-help@jakarta.apache.org>
> > > > Troubles with the list:
> > > <mailto:tomcat-user-owner@jakarta.apache.org>
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > For additional commands: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> > > Troubles with the list: 
> <mailto:tomcat-user-owner@jakarta.apache.org>
> > >
> >
> > --
> > To unsubscribe:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: 
> <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message