tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Davis <tda...@myacc.net>
Subject RE: Classpath Conundrum (2nd try)
Date Thu, 17 Jul 2003 20:18:19 GMT

--- Norris Shelton <norrisshelton@yahoo.com> wrote:
> Remember, these changes were for W2K PRO, should work on other
> environments but YMMV.
> 
> setclasspath.bat
> set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
>      I added %CLASSPATH% after the = sign

Thanks for the tip.  I tried that (which was the same as my original
attempt, but I tried again just for kicks) and it didn't work.  Further
investigation revealed that the shortcut to start Tomcat doesn't call
catalina.bat at all!  Instead, it calls this:

    C:\j2sdk1.4.2\bin\java.exe -jar -Duser.dir="C:\Program Files\Apache
Group\Tomcat 4.1" "C:\Program Files\Apache Group\Tomcat
4.1\bin\bootstrap.jar" start

So I tried hacking the shortcut in the following ways:

    C:\j2sdk1.4.2\bin\java.exe -classpath "%CLASSPATH%" -jar
-Duser.dir="C:\Program Files\Apache Group\Tomcat 4.1" "C:\Program
Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar" start

    C:\j2sdk1.4.2\bin\java.exe -classpath
"c:\myapp\native;c:\myapp\foreign" -jar -Duser.dir="C:\Program
Files\Apache Group\Tomcat 4.1" "C:\Program Files\Apache Group\Tomcat
4.1\bin\bootstrap.jar" start

But neither worked.  After restarting the server, I'm still presented
with the expected error:

    javax.servlet.ServletException: Wrapper cannot find servlet class 
com.myapp.servlet.BootStrap or a class it depends on

Somehow there must be a way to get the class loader to look in the
"/foreign" and "/native" directories :-(


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


Mime
View raw message