Hello,

  is the WEB-INF an independant location? It was my understanding that 
it was system wide. I don't want my virtual hosts to be able to see each 
others classes.

Thank you VERY VERY much for your help,

Joshua Drake


Larry Isaacs wrote:

>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:[EMAIL PROTECTED]] 
>>Sent: Saturday, September 07, 2002 2:10 PM
>>To: [EMAIL PROTECTED]
>>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-> [EMAIL PROTECTED]>
>>For 
>>additional commands, 
>>e-mail: <mailto:[EMAIL PROTECTED]>
>>
>>
>>    
>>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>  
>

Reply via email to