tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sampige, Srinivas" <srinivas.samp...@boeing.com>
Subject RE: classes visibility in the WEB-INF dir ----> SOLVED
Date Fri, 22 Feb 2002 18:04:10 GMT
Now more than one person has faced this problem. Please refer to my posting
titled "Configuring my own servlets on Tomcat4.0". Have the Tomcat
developers addressed this issue in the documentation?(at least I couldn't
find it...am I missing something?). This makes developement higly
unproductive. For you reference this is what I posted earlier(for which I
got replies) -
--------------------------------
Hi
 I downloaded Tomcat4.0 just now and insalled it. I am able to run the
example servlets. When I try to create my own servlets OR whehn I try to
deploy and run those web apps that were working on the older version
(Tomcat3.2) the new servlets don't run. Any clues? I looked at the
documentation but could not find anything.

thanks
-Srinivas
--------------------------------------

thanks
Srinivas

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> 

-----Original Message-----
From: Dmitry Nikelshpur [mailto:dnikelshpu@yahoo.com]
Sent: Friday, February 22, 2002 2:04 AM
To: Tomcat Users List
Subject: Re: classes visibility in the WEB-INF dir ----> SOLVED


I had something 'similar' happen when I was installing Tomcat 4.0.2...
I could not get servlets in webapps/myapp/web-inf/classes to be found.
I kept changing paths, web/server.xml, etc., but nothing seemed to work.
However, /examples and another WAR file were working fine.
What I did was:
1) I copied the servlets into one of the directories that were working 
(eg. examples).
     The servlets were being found....
2) I copied all code from the directory that was not working into the 
/examples directory.
3) renamed the directory to the old name....and all works fine ever since.

Things like this have worked for me in the past when I get REALLY 
frustrated....Was I really missing something (doubtful I was misspelling 
the servlet's name in this case)...This is reminiscent of invisible 
characters :-)  ...or something was causing the servlets not to be loaded?!?

Dmitry

Amine AMAR wrote:

>Hi,
> I tried to jar the classes directory and reload TC, but I have the same
behavior.
>
>I also tried creating a class kitabe.SearchUtilities2 with exacty the same
code as SearchUtilities (using save as). SearchUtilities2
>works fine, but not SearchUtilities.
>
>I then tried to rename my new SearchUtilities2 to SearchUtilities ---> THEN
IT DID WORK.
>
>This is very weard :?). I used to delete all .class files and recompile to
be sure that the files get recompiled, and that there is
>no problem related to that. If anyone of you have seen this behavior,
please let us know.
>
>Thank's all for your help
>
>Amine
>
>----- 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>

--
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