tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Isaacs" <Larry.Isa...@sas.com>
Subject RE: PLEASE: Setting Virtual Hosts ClassPaths with Tomcat 3.3
Date Mon, 09 Sep 2002 13:48:44 GMT
Hi Joshua,

Is there some reason you are not putting your bean class in
WEB-INF/classes where they would be picked up automatically?
In the majority of cases for Tomcat 3.3.x, the CLASSPATH is
the wrong place to put web application classes.

Cheers,
Larry


> -----Original Message-----
> From: Joshua D. Drake [mailto:jd@commandprompt.com] 
> Sent: Saturday, September 07, 2002 2:10 PM
> To: tomcat-user@jakarta.apache.org
> Subject: PLEASE: Setting Virtual Hosts ClassPaths with Tomcat 3.3
> 
> 
> Hello,
> 
>  I am running RedHat 7.3, Apache 1.3.26 and Tomcat-3.3.1. I am having 
> problems getting Tomcat to pick up new
> classpaths for virtual hosts. We can successfully run jsp 
> files from the 
> virtual hosts but once we try to add a class
> (for JavaBeans in this case) it fails. Here is the exact error:
> 
> java.lang.ClassNotFoundException: SimpleBean
>     at 
> org.apache.tomcat.util.depend.DependClassLoader.loadClassInter
> nal1(DependClassLoader.java)
>     at 
> org.apache.tomcat.util.depend.DependClassLoader12$1.run(Depend
> ClassLoader12.java)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at 
> org.apache.tomcat.util.depend.DependClassLoader12.loadClass(De
> pendClassLoader12.java)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
>     at 
> org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepo
> sitory.java)
>     at 
> org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPr
> opertyGenerator.java)
>     at 
> org.apache.jasper.compiler.JspParseEventListener$GeneratorWrap
> per.generate(JspParseEventListener.java)
>     at 
> org.apache.jasper.compiler.JspParseEventListener.generateAll(J
> spParseEventListener.java)
>     at 
> org.apache.jasper.compiler.JspParseEventListener.endPageProces
> sing(JspParseEventListener.java)
>     at org.apache.jasper.compiler.Compiler.compile(Compiler.java)
>     at 
> org.apache.tomcat.facade.JasperLiaison.jsp2java(JspInterceptor.java)
>     at 
> org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInter
> ceptor.java)
>     at 
> org.apache.tomcat.facade.JspInterceptor.requestMap(JspIntercep
> tor.java)
>     at 
> org.apache.tomcat.core.ContextManager.processRequest(ContextMa
> nager.java)
>     at 
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java)
>     at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java)
>     at 
> org.apache.tomcat.modules.server.Ajp13Interceptor.processConne
> ction(Ajp13Interceptor.java)
>     at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java)
>     at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java)
>     at java.lang.Thread.run(Thread.java:536)
> 
>  Here is my apps-vhosts.xml:
> 
>  <?xml version="1.0" encoding="ISO-8859-1"?>
> <Server>
> <Host name="dev.sflsoccer.us">
>  <Context path=""
>        docBase="/home/vhosting/sfl/htdocs/"
>        debug="5"
>        />
> </Host>
> </Server>
> 
> Also I have the following lines in my tomcat.properties:
> 
> wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/b
> in:/usr/java/j2sdk1.4.0_01/bin 
> 
> wrapper.classpath=@JSERV_CLASSES@:@JSDK_CLASSES@:/home/vhostin
> g/sfl/htdocs
> 
> I have also tried the following:
> wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/b
> in:/usr/java/j2sdk1.4.0_01/bin 
> 
> wrapper.classpath=@JSERV_CLASSES@
> wrapper.classpath=@JSDK_CLASSES@
> wrapper.classpath=/home/vhosting/sfl/htdocs/classes
> 
> 
> Normally I would call to a separate class directory but I am 
> just trying 
> to get it to work at this point.
> I also added the following to my tomcat3.conf although it is my 
> understanding that tomcat3 doesn't
> care about shell variables for the classpath:
> 
> CLASSPATH=/home/vhosting/sfl/htdocs/classes:/home/vhostings/sf
> l/htdocs/classes
> export CLASSPATH
> 
> Help would be greatly appreciated,
> 
> Sincerely,
> 
> Joshua D. Drake
> 
> 
> --
> 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>


Mime
View raw message