tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauro Daniel Ardolino <ma...@altersoft.com.ar>
Subject Re: Strange Class Loading problem
Date Wed, 22 Jan 2003 16:08:54 GMT
Well...I do not have any other good ideas for the moment.

I suppose you are putting your .class files inside the directories with
the name of the package they are belonging to.  I mean, if the package of
the class is "mypkg", the .class files must be inside
$CATALINA_HOME/webapps/myapplication/WEB-INF/classes/mypkg/.

Also check the WEB-INF folder name.  Once I had a similar problem and this
folder name was "Web-inf", not "WEB-INF".  Case is important for
Tomcat.  Also "classes" must be "classes" not "Classes".  E.g. working in
Windows NT even seeing "classes" in the explorer, seeing the file by
using D.O.S., I could see the real name was "Classes".  The same for
"lib".

Good Luck and sorry for not being more helpful.

Mauro


On Tue, 21 Jan 2003, Jeremy Cavagnolo wrote:

> Mauro:
> 
> Thanks for the response.  First, I changed all the permissions of
> my entire application to the most promiscuous (i.e. rwxrwxrwx) and I still 
> get the error.  Following are the pertinent portions of the log file.  
> Thanks in advance for any help.
> 
> -Jeremy
> 
> 
> 
> WebappLoader[/MSQ]: Deploying class repositories to work directory /var/tomcat4/work/Apache/server/MSQ
> WebappLoader[/MSQ]: Deploy class files /WEB-INF/classes to /var/tomcat4/webapps/MSQ/WEB-INF/classes
> WebappLoader[/MSQ]: Deploy JAR /WEB-INF/lib/msq-data.jar to /var/tomcat4/webapps/MSQ/WEB-INF/lib/msq-data.jar
> WebappLoader[/MSQ]: Deploy JAR /WEB-INF/lib/msq-util.jar to /var/tomcat4/webapps/MSQ/WEB-INF/lib/msq-util.jar
> 
> ...
> 
> jsp: init
> StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw 
> exception 
> org.apache.jasper.JasperException: Exception creating bean of class org.alf.msq.forms.TeacherLoginForm:
java.lang.ClassNotFoundException: org.alf.msq.forms.TeacherLoginForm
> 	at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
>         at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)   
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.valves.RequestDumperValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
>         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
>         at java.lang.Thread.run(Thread.java:536)
> ----- Root Cause -----
> javax.servlet.ServletException: Exception creating bean of class 
> org.alf.msq.forms.TeacherLoginForm: java.lang.ClassNotFoundException: org.alf.msq.forms.TeacherLoginForm
> 	at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
>         at org.apache.jsp.teacherLogin_jsp._jspService(teacherLogin_jsp.java:115)
>         at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>         at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)   
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
>         at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)      
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.valves.RequestDumperValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown
Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
>         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
>         at java.lang.Thread.run(Thread.java:536)
> 
> 
> 
>         
> On Tue, 21 Jan 2003, Mauro Daniel Ardolino wrote:
> 
> > May not be this, but check permissions and owners of the files (may be
> > the directories permissions).  See e.g. the permissions of common/classes
> > Are you using links to the .jar files?
> > The error message could help to answer better.
> > 
> > reggards,
> > 
> > mauro
> > 
> > On Tue, 21 Jan 2003, Jeremy Cavagnolo wrote:
> > 
> > > Hello:
> > > 
> > > I am new to the list.  Thanks in advance for any help.  Also, I am using 
> > > Version 4.1.12.
> > > 
> > > I am deploying my web application with app-specific class files and 
> > > jar files in /WEB-INF/classes and /WEB-INF/lib respectively.  When I start

> > > tomcat, these messages appear in my log file:
> > > 
> > > WebappLoader[/MSQ]: Deploying class repositories to work directory /var/tomcat4/work/Apache/server/MSQ
> > > WebappLoader[/MSQ]: Deploy class files /WEB-INF/classes to /var/tomcat4/webapps/MSQ/WEB-INF/classes
> > > WebappLoader[/MSQ]: Deploy JAR /WEB-INF/lib/msq-data.jar to /var/tomcat4/webapps/MSQ/WEB-INF/lib/msq-data.jar
> > > WebappLoader[/MSQ]: Deploy JAR /WEB-INF/lib/msq-util.jar to /var/tomcat4/webapps/MSQ/WEB-INF/lib/msq-util.jar
> > > 
> > > 
> > > indicating that tomcat is finding my classes and my libraries.  However, 
> > > Whenever I make a request that relies on these classes, I get a 
> > > ClassNotFoundException.  
> > > 
> > > When I copy the classes and jars to {$CATALINA_HOME}/common/classes and 
> > > {$CATALINA_HOME}/common/lib, everything works.
> > > 
> > > Any insight?
> > > 
> > > Thanks,
> > > 
> > > Jeremy 
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> > > 
> > > 
> > 
> > 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 
> 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: mauro@altersoft.com.ar
website: http://www.altersoft.com.ar





--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message