You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Joshua D. Drake" <jd...@commandprompt.com> on 2002/09/07 20:10:02 UTC

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.loadClassInternal1(DependClassLoader.java)
    at 
org.apache.tomcat.util.depend.DependClassLoader12$1.run(DependClassLoader12.java)
    at java.security.AccessController.doPrivileged(Native Method)
    at 
org.apache.tomcat.util.depend.DependClassLoader12.loadClass(DependClassLoader12.java)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
    at 
org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java)
    at 
org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java)
    at 
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java)
    at 
org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java)
    at 
org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(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(JspInterceptor.java)
    at 
org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java)
    at 
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java)
    at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java)
    at 
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(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/bin:/usr/java/j2sdk1.4.0_01/bin 

wrapper.classpath=@JSERV_CLASSES@:@JSDK_CLASSES@:/home/vhosting/sfl/htdocs

I have also tried the following:
wrapper.path=/bin:/usr/bin:/usr/local/bin:/home/vhosting/sfl/bin:/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/sfl/htdocs/classes
export CLASSPATH

Help would be greatly appreciated,

Sincerely,

Joshua D. Drake


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Off topis - building pc's

Posted by Paul DuBois <pa...@snake.net>.
At 14:09 -0500 9/7/02, Ron Day wrote:
>Sorry its off topic....
>
>Anyone have a good site for how to build a PC ??
>
>Ron

I imagine you can get tons of good information for that on the Tomcat
mailing list.  That's what they discuss there, right?

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Off topis - building pc's

Posted by Ron Day <ro...@ronday.cc>.
Sorry its off topic....

Anyone have a good site for how to build a PC ??

Ron


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>