tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Guillot - Genigraph" <pguil...@genigraph.fr>
Subject RE: Classpath issue *only* when starting tomcat 6 as a service
Date Thu, 16 Jun 2011 17:07:45 GMT
Hi all,

Back on this issue.
I have a new machine as a sand-box.
This is a brand-new machine. Nothing but the operating system was installed
before I began (Microsoft Windows 2008 Server R2).

Step 1:

I Installed tomcat using the installer "apache-tomcat-6.0.29.exe"(including
Tomcat service and native library).
The service has been set-up automatically by the installer.
I did no modification at all on the service set-up. So, I use the "out of
the box" tomcat set-up.

As a consequence, I haven't had to use "service.bat" since the installer did
the job itself. I only had to check the box "service" in the component list
of the installer. 

I put Waffle webapps in the "webapps" directory, and waffle libs in
"endorsed". I have had to create the "endorsed" directory by myself. This
directory is referenced in the service configuration automatically set-up by
the tomcat installer (-Djava.endorsed.dirs=C:\Outils\Tomcat 6.0\endorsed).

I'm still seeing the very same error :  
java.lang.NoClassDefFoundError:
org/apache/catalina/authenticator/AuthenticatorBase

Step 2:

In uninstalled tomcat, and reinstall it using
"apache-tomcat-6.0.29-windows-x64.zip". In other words, I just unzipped the
archive in "c:\tomcat" directory.
Then I: 
- put Waffle webapps in "webapps"; 
- create "C:\endorsed\" directory;
- put Waffle libs in "C:\endorsed\";
- updated "startup.bat" to let it know about Java home (I could have set-up
an env. variable, but...):
	set JAVA_HOME=C:\Outils\Java\jdk1.5.0_22
- started tomcat using "startup.bat".

Still seeing the error :  
java.lang.NoClassDefFoundError:
org/apache/catalina/authenticator/AuthenticatorBase

Step 3:
Reusing the same set-up as step 2, but put the waffle libs in tomcat's lib
directory directly - not in endorsed dir. 
==> fine : no more error!

Step 4:
Reinstalled Tomcat as a service with Waffle libs in Tomcat's lib directory.
==> fine : no more error!

So really, it seems I have to put Waffle libs in tomcat lib directory to
make it work.
I really do not like this since as far as I know this is not a good
practice. But obviously, I don't have any other choice, do I?

I will now try to make this work on my multiple tomcat instances
installation.
Thanks all for your inputs.

Kind regards,
   Patrick

pguillot@genigraph.fr
Téléphone : +33 (0)9 51 17 44 24
http://www.genigraph.fr
Avant d'imprimer cet email et les pièces jointes, pensez à l'environnement.


-----Message d'origine-----
De : André Warnier [mailto:aw@ice-sa.com] 
Envoyé : vendredi 10 juin 2011 17:43
À : Tomcat Users List
Objet : Re: Classpath issue *only* when starting tomcat 6 as a service

> -----Message d'origine-----
> De : Pid [mailto:pid@pidster.com]
> Envoyé : vendredi 10 juin 2011 16:35
> À : Tomcat Users List
> Objet : Re: Classpath issue *only* when starting tomcat 6 as a service
> 
> On 10/06/2011 10:16, Patrick Guillot - Genigraph wrote:
>> Right.
>> I have used a script I made because I had several tomcat instances to 
>> set-up (2x8). Attached is the script I used. I'm using multiple 
>> catalina_base (one for each application).
> 
> Please uninstall all Tomcat services.
> Now install Tomcat using service.bat - just once.
> 
>  http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html
> 
> 
> Does Tomcat work now?
> 
> 
> p
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


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


Mime
View raw message