On 10/06/2011 09:38, Patrick Guillot - Genigraph wrote: > Hi everybody, > > > > I’m driving mad with a classpath issue : > > > > My environment : > > - Tomcat 6.0.29 > > - Windows Server 2008 R2 Standard 64 bits > > - JDK 1.5.0_22 > > > > My webapp is using Waffle (Windows Authentication Framework) > (http://waffle.codeplex.com/) to benefit from transparent authentication. > > > > It is working just fine when tomcat is started in console mode. But console > mode is not suitable for production use. > > Therefore, I set-up Tomcat 6 as a service > (http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html). > > > > In this mode, tomcat does not start properly and I get a classpath error : > > java.lang.NoClassDefFoundError: > org/apache/catalina/authenticator/AuthenticatorBase > > If not using Waffle, the service mode is working fine as well. > > AuthenticatorBase is used by Waffle. > > > > I found that this class is located “catalina.jar”. > > “Catalina.jar” is located in D:\tomcat\lib\ (catalina.home\lib). > > So, I do have the right jar and it contains the right class (which again is > found by tomcat when started in console mode). > > > > My guess was I had a service configuration error : I checked everything and > can’t find any error – which does not mean there is no error ! ;-) > > Here is the service configuration logged by tomcat : > > > > Jvm Option[0] > -Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar; > D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-ant.jar;D:\tomcat\l > ib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\tomcat\lib\catalina. > jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D:\tomcat\lib\jaspe > r-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.jar;D:\tomcat\lib\s > ervlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\lib\tomcat-dbcp.jar > ;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18n-fr.jar;D:\tomcat > \lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\lib\platform.jar;D:\ > tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.1.1.jar
> Jvm Option[7] -XX:MaxPermSize=256M > > Jvm Option[8] > -Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar; > D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-ant.jar;D:\tomcat\l > ib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\tomcat\lib\catalina. > jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D:\tomcat\lib\jaspe > r-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.jar;D:\tomcat\lib\s > ervlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\lib\tomcat-dbcp.jar > ;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18n-fr.jar;D:\tomcat > \lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\lib\platform.jar;D:\ > tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.1.1.jar Also you're setting classpath twice. How did you install the service? Did you use service.bat? p
signature.asc
Description: OpenPGP digital signature