Classpath issue between jetty-maven-plugin and tomcat-jdbc 8.0.9+ leading to ServiceConfigurationError

2015-09-18 Thread Vinicius Sampaio
Hi,

I'm getting an error while trying to update the tomcat-jdbc version to
8.0.9+ on a project I'm working on. Currently I'm using 8.0.8 version
without issues. I would be very thankful for any help coming from you guys.

http://stackoverflow.com/questions/32643530/classpath-issue-between-jetty-maven-plugin-and-tomcat-jdbc-8-0-9-leading-to-ser

Thanks!

Best Regards,

Vinicius Sampaio


RE: Classpath issue *only* when starting tomcat 6 as a service

2011-06-17 Thread Patrick Guillot - Genigraph
Hi all,

I finally managed to make it work with my multiple tomcat homes
installations. 
I deleted the lib dir in tomcat instances, set-up waffle lib in the common
tomcat lib dir, clean-up the services properties (i.e. classpath, to match
tomcat default service configuration), removed endorsed dir. 

Thanks a bunch everybody for your responsiveness and dedication to solving
issues of unknown people like me.
I really appreciate  ;-)

Best regards,
Patrick

pguil...@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 : Mark Thomas [mailto:ma...@apache.org] 
Envoyé : jeudi 16 juin 2011 20:45
À : Tomcat Users List
Objet : Re: Classpath issue *only* when starting tomcat 6 as a service

On 16/06/2011 18:07, Patrick Guillot - Genigraph wrote:
 Hi all,
 
 Back on this issue.

I suspect I know what is happening.

Waffle provides it's own implementation of Tomcat's Authenticator interface
and does this by extending Tomcat's AuthenticatorBase.
Therefore, the Authenticator Interface and the AuthenticatorBase class have
to be visible to the class loader loading Waffle.

If you place Waffle in the endorsed dir then it can't see the
AuthenticatorBase (look at the class loader docs for Tomcat). The short
version is Waffle has to be placed in Tomcat's lib directory.

Mark

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


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



RE: Classpath issue *only* when starting tomcat 6 as a service

2011-06-16 Thread Patrick Guillot - Genigraph
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

pguil...@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:a...@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:p...@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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 


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



Re: Classpath issue *only* when starting tomcat 6 as a service

2011-06-16 Thread Mark Thomas
On 16/06/2011 18:07, Patrick Guillot - Genigraph wrote:
 Hi all,
 
 Back on this issue.

I suspect I know what is happening.

Waffle provides it's own implementation of Tomcat's Authenticator
interface and does this by extending Tomcat's AuthenticatorBase.
Therefore, the Authenticator Interface and the AuthenticatorBase class
have to be visible to the class loader loading Waffle.

If you place Waffle in the endorsed dir then it can't see the
AuthenticatorBase (look at the class loader docs for Tomcat). The short
version is Waffle has to be placed in Tomcat's lib directory.

Mark

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



RE: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Patrick Guillot - Genigraph
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[1] -Dcatalina.home=D:\tomcat

Jvm Option[2] -Dcatalina.base=D:\tomcat\instances\06_crlj

Jvm Option[3] -Djava.endorsed.dirs=D:\tomcat\endorsed

Jvm Option[4] -Djava.io.tmpdir=D:\tomcat\instances\06_crlj\temp

Jvm Option[5]
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

Jvm Option[6]
-Djava.util.logging.config.file=D:\tomcat\instances\06_crlj\conf\logging.pro
perties

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

Jvm Option[9] vfprintf

Jvm Option[10] -Xms256m

Jvm Option[11] -Xmx512m

 

As you can see : java.class.path do include “catalina.jar”.

 

I tried copying around catalina.jar and waffle libs around (lib dirs.,
endorsed dirs., etc.), but no luck.

 

Thanks in advance for any help you can provide.

 

Kin regards,

 

   Patrick Guillot

   Genigraph

mailto:pguil...@genigraph.fr pguil...@genigraph.fr

 

Full stack trace

--

INFO: Déploiement du descripteur de configuration waffle-mixed.xml

10 juin 2011 09:24:35 org.apache.tomcat.util.digester.Digester startElement

GRAVE: Begin event threw error

java.lang.NoClassDefFoundError:
org/apache/catalina/authenticator/AuthenticatorBase

at java.lang.ClassLoader.findBootstrapClass(Native Method)

at
java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:892)

at java.lang.ClassLoader.loadClass(ClassLoader.java:302)

at java.lang.ClassLoader.loadClass(ClassLoader.java:300)

at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)

at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

at
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java
:205)

at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)

at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1356)

at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Ab
stractSAXParser.java:533)

at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyEl
ement(AbstractXMLDocumentParser.java:220)

at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanS
tartElement(XMLDocumentFragmentScannerImpl.java:872

Re: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Pid
On 10/06/2011 09:38, Patrick Guillot - Genigraph wrote:
 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
 
 Jvm Option[9] vfprintf
 
 Jvm Option[10] -Xms256m
 
 Jvm Option[11] -Xmx512m
 
  
 
 As you can see : java.class.path do include “catalina.jar”.

Don't set the classpath.  Tomcat does that itself.


p



signature.asc
Description: OpenPGP digital signature


Re: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Pid
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


RE: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Patrick Guillot - Genigraph
Hello,

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).
At first, the Java Classpath: field of the Tomcat Service GUI only
contains : 
bootsrap.jar and tomcat-juli.jar

Since it did not work, I add the following in PR_CLASSPATH env. variable
which correspond to the Java Options: field of the Tomcat Service GUI
contained :
-Djava.class.path=D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-a
nt.jar;D:\tomcat\lib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\to
mcat\lib\catalina.jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D
:\tomcat\lib\jasper-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.j
ar;D:\tomcat\lib\servlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\l
ib\tomcat-dbcp.jar;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18
n-fr.jar;D:\tomcat\lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\li
b\platform.jar;D:\tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.
1.1.jar

Being so desperate :-) I add all the jars to both Java Classpath: and
Java Options:.

I just made a test after cleaning things up. This gives the following
configuration : 

[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[0]
-Dcatalina.home=D:\tomcat
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[1]
-Dcatalina.base=D:\tomcat\instances\06_crlj
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[2]
-Djava.endorsed.dirs=D:\tomcat\endorsed
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[3]
-Djava.io.tmpdir=D:\tomcat\instances\06_crlj\temp
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[4]
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[5]
-Djava.util.logging.config.file=D:\tomcat\instances\06_crlj\conf\logging.pro
perties
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[6]
-XX:MaxPermSize=256M
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[7]
-Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[8] vfprintf
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[9] -Xms256m
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[10] -Xmx512m
[2011-06-10 10:46:03] [629  javajni.c] [debug] argv[0] = start

As far as I understand, line 7 contains what is set-up in the Java
Classpath: field of the Tomcat Service GUI.
It looks fine now, does it ?

I still get the same error.
Thanks,

  Patrick

-Message d'origine-
De : Pid [mailto:p...@pidster.com] 
Envoyé : vendredi 10 juin 2011 10:45
À : Tomcat Users List
Objet : Re: Classpath issue *only* when starting tomcat 6 as a service

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\bootstra
 p.jar; 
 D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-ant.jar;D:\to
 mcat\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-db
 cp.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.j
 ar;D:\ 
 tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.1.1.jar


 Jvm Option[7] -XX:MaxPermSize=256M
 
 Jvm Option[8

RE: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Martin Gainty

Just as Unix contains different configurations for each .profile and .bashrc
you may have different (JVM and or CLASSPATH) configurations for each username 
in Windows Authentication Framework.
from what i know Windows service has different capabilities depending on the 
authentication credentials you supply 

if you start your service as Administrator does the problem go away e.g?
runas /u:administrator net start  Tomcat

Bon Chance,
Martin  
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




From: pguil...@genigraph.fr
To: users@tomcat.apache.org
Subject: RE: Classpath issue *only* when starting tomcat 6 as a service
Date: Fri, 10 Jun 2011 11:16:36 +0200

Hello,
 
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).
At first, the Java Classpath: field of the Tomcat Service GUI only
contains : 
bootsrap.jar and tomcat-juli.jar
 
Since it did not work, I add the following in PR_CLASSPATH env. variable
which correspond to the Java Options: field of the Tomcat Service GUI
contained :
-Djava.class.path=D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-a
nt.jar;D:\tomcat\lib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\to
mcat\lib\catalina.jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D
:\tomcat\lib\jasper-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.j
ar;D:\tomcat\lib\servlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\l
ib\tomcat-dbcp.jar;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18
n-fr.jar;D:\tomcat\lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\li
b\platform.jar;D:\tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.
1.1.jar
 
Being so desperate :-) I add all the jars to both Java Classpath: and
Java Options:.
 
I just made a test after cleaning things up. This gives the following
configuration : 
 
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[0]
-Dcatalina.home=D:\tomcat
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[1]
-Dcatalina.base=D:\tomcat\instances\06_crlj
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[2]
-Djava.endorsed.dirs=D:\tomcat\endorsed
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[3]
-Djava.io.tmpdir=D:\tomcat\instances\06_crlj\temp
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[4]
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[5]
-Djava.util.logging.config.file=D:\tomcat\instances\06_crlj\conf\logging.pro
perties
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[6]
-XX:MaxPermSize=256M
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[7]
-Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[8] vfprintf
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[9] -Xms256m
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[10] -Xmx512m
[2011-06-10 10:46:03] [629  javajni.c] [debug] argv[0] = start
 
As far as I understand, line 7 contains what is set-up in the Java
Classpath: field of the Tomcat Service GUI.
It looks fine now, does it ?
 
I still get the same error.
Thanks,
 
  Patrick
 
-Message d'origine-
De : Pid [mailto:p...@pidster.com] 
Envoyé : vendredi 10 juin 2011 10:45
À : Tomcat Users List
Objet : Re: Classpath issue *only* when starting tomcat 6 as a service
 
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

RE: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Patrick Guillot - Genigraph
Hi Martin,

It does start as administrator already: The tomcat service GUI used to start
the service is executed via the Run as administrator contextual menu
command.
Unfortunately this does not solve the problem.
Thanks.
Regards,
Patrick

pguil...@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 : Martin Gainty [mailto:mgai...@hotmail.com] 
Envoyé : vendredi 10 juin 2011 13:24
À : Tomcat Users List
Objet : RE: Classpath issue *only* when starting tomcat 6 as a service


Just as Unix contains different configurations for each .profile and .bashrc
you may have different (JVM and or CLASSPATH) configurations for each
username in Windows Authentication Framework.
from what i know Windows service has different capabilities depending on the
authentication credentials you supply 

if you start your service as Administrator does the problem go away e.g?
runas /u:administrator net start  Tomcat

Bon Chance,
Martin
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité  Ce
message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire
informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
de ceci est interdite. Ce message sert à l'information seulement et n'aura
pas n'importe quel effet légalement obligatoire. Étant donné que les email
peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
aucune responsabilité pour le contenu fourni.




From: pguil...@genigraph.fr
To: users@tomcat.apache.org
Subject: RE: Classpath issue *only* when starting tomcat 6 as a service
Date: Fri, 10 Jun 2011 11:16:36 +0200

Hello,
 
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).
At first, the Java Classpath: field of the Tomcat Service GUI only
contains : 
bootsrap.jar and tomcat-juli.jar
 
Since it did not work, I add the following in PR_CLASSPATH env. variable
which correspond to the Java Options: field of the Tomcat Service GUI
contained :
-Djava.class.path=D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-a
nt.jar;D:\tomcat\lib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\to
mcat\lib\catalina.jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D
:\tomcat\lib\jasper-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.j
ar;D:\tomcat\lib\servlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\l
ib\tomcat-dbcp.jar;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18
n-fr.jar;D:\tomcat\lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\li
b\platform.jar;D:\tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.
1.1.jar
 
Being so desperate :-) I add all the jars to both Java Classpath: and
Java Options:.
 
I just made a test after cleaning things up. This gives the following
configuration : 
 
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[0]
-Dcatalina.home=D:\tomcat
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[1]
-Dcatalina.base=D:\tomcat\instances\06_crlj
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[2]
-Djava.endorsed.dirs=D:\tomcat\endorsed
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[3]
-Djava.io.tmpdir=D:\tomcat\instances\06_crlj\temp
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[4]
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[5]
-Djava.util.logging.config.file=D:\tomcat\instances\06_crlj\conf\logging.pro
perties
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[6]
-XX:MaxPermSize=256M
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[7]
-Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[8] vfprintf
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[9] -Xms256m
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[10] -Xmx512m
[2011-06-10 10:46:03] [629  javajni.c] [debug] argv[0] = start
 
As far as I understand, line 7 contains what is set-up in the Java
Classpath: field of the Tomcat Service GUI.
It looks fine now, does it ?
 
I still get the same error.
Thanks,
 
  Patrick
 
-Message d'origine-
De : Pid [mailto:p...@pidster.com]
Envoyé : vendredi 10 juin 2011 10:45
À : Tomcat Users List
Objet : Re: Classpath issue *only* when starting tomcat 6 as a service
 
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

Re: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread David kerber

On 6/10/2011 8:15 AM, Patrick Guillot - Genigraph wrote:

Hi Martin,

It does start as administrator already: The tomcat service GUI used to start
the service is executed via the Run as administrator contextual menu
command.


That doesn't mean the service itself is using the administrator acct. 
You need to set that explicitly in the service manager.  Open the 
properties of the tomcat service, and go to the Log On tab.  What is 
set there?  Unless you changed it, it's probably set as Local System.


D

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



Re: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread André Warnier

Hi.

I don't really know if it is important here, I don't know Waffle, the type of 
error does
not match, and it doesn't look below like you are using any network paths.
That was the disclaimer of responsibility.

One aspect that is different when you run Tomcat as a service, is (usuallly) the
user-id under which it runs.
As a service, the standard Tomcat installation will configure it to run as LocalSystem, 
which is a special user having a lot of rights on the local machine, but /NO/ network 
acess rights in the Microsoft sense (no access to network shares, to other systems etc..).


Even if you change that in order to run as Administrator, this Administrator may still 
be a purely local account (as opposed to a Domain account).


As mentioned before, I do not know Waffle in detail, but it offers a form of Windows 
Domain authentication, and to do that at some point it needs to be able to present itself 
as a Windows *domain* user, otherwise it will not have access to an authenticating server. 
 Whether this account that it needs to use is configured separately, or is the same as 
the one Tomcat runs under, that I don't know.


All of this to say that if you encounter some issues when running Tomcat as a service with 
Waffle enabled, and you do not have these same problems with Waffle disabled (or when 
running Tomcat+Waffle from a command window under *your* login account - presumably a 
domain account), there may be a link with the user-id.



Patrick Guillot - Genigraph wrote:

Hello,

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).
At first, the Java Classpath: field of the Tomcat Service GUI only
contains : 
	bootsrap.jar and tomcat-juli.jar


Since it did not work, I add the following in PR_CLASSPATH env. variable
which correspond to the Java Options: field of the Tomcat Service GUI
contained :
-Djava.class.path=D:\tomcat\lib\annotations-api.jar;D:\tomcat\lib\catalina-a
nt.jar;D:\tomcat\lib\catalina-ha.jar;D:\tomcat\lib\catalina-tribes.jar;D:\to
mcat\lib\catalina.jar;D:\tomcat\lib\el-api.jar;D:\tomcat\lib\jasper-el.jar;D
:\tomcat\lib\jasper-jdt.jar;D:\tomcat\lib\jasper.jar;D:\tomcat\lib\jsp-api.j
ar;D:\tomcat\lib\servlet-api.jar;D:\tomcat\lib\tomcat-coyote.jar;D:\tomcat\l
ib\tomcat-dbcp.jar;D:\tomcat\lib\tomcat-i18n-es.jar;D:\tomcat\lib\tomcat-i18
n-fr.jar;D:\tomcat\lib\tomcat-i18n-ja.jar;D:\tomcat\lib\jna.jar;D:\tomcat\li
b\platform.jar;D:\tomcat\lib\waffle-jna.jar;D:\tomcat\lib\commons-logging-1.
1.1.jar

Being so desperate :-) I add all the jars to both Java Classpath: and
Java Options:.

I just made a test after cleaning things up. This gives the following
configuration : 


[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[0]
-Dcatalina.home=D:\tomcat
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[1]
-Dcatalina.base=D:\tomcat\instances\06_crlj
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[2]
-Djava.endorsed.dirs=D:\tomcat\endorsed
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[3]
-Djava.io.tmpdir=D:\tomcat\instances\06_crlj\temp
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[4]
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[5]
-Djava.util.logging.config.file=D:\tomcat\instances\06_crlj\conf\logging.pro
perties
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[6]
-XX:MaxPermSize=256M
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[7]
-Djava.class.path=D:\tomcat\bin\tomcat-juli.jar;D:\tomcat\bin\bootstrap.jar
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[8] vfprintf
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[9] -Xms256m
[2011-06-10 10:46:03] [447  javajni.c] [debug] Jvm Option[10] -Xmx512m
[2011-06-10 10:46:03] [629  javajni.c] [debug] argv[0] = start

As far as I understand, line 7 contains what is set-up in the Java
Classpath: field of the Tomcat Service GUI.
It looks fine now, does it ?

I still get the same error.
Thanks,

  Patrick

-Message d'origine-
De : Pid [mailto:p...@pidster.com] 
Envoyé : vendredi 10 juin 2011 10:45

À : Tomcat Users List
Objet : Re: Classpath issue *only* when starting tomcat 6 as a service

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

Re: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Pid
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



signature.asc
Description: OpenPGP digital signature


RE: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread Patrick Guillot - Genigraph
Hi all,

Thanks for your inputs.
I tried starting Tomcat via local administrator account, but it does not
start at all (no log file produce for tomcat and got error 1069), neither
via the GUI nor via command line. 
I have asked my customer to set-up a new virtual machine to do what you
suggest pid (we just cannot uninstall all existing tomcat install which are
currently being used for test/validation purpose).
I'll test this next week when the new environment will be ready and let you
know.
Thanks again.
Have a nice week-end.
Kind regards,
Patrick

-Message d'origine-
De : Pid [mailto:p...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Classpath issue *only* when starting tomcat 6 as a service

2011-06-10 Thread André Warnier

Patrick Guillot - Genigraph wrote:

Hi all,

Thanks for your inputs.
I tried starting Tomcat via local administrator account, but it does not
start at all (no log file produce for tomcat and got error 1069), neither
via the GUI nor via command line. 


Probably because now it does not have the permission to overwrite one of the existing 
logfiles, belonging to the previous user-id.

And since it can't write to the logfile, it can't tell you.


I have asked my customer to set-up a new virtual machine to do what you
suggest pid (we just cannot uninstall all existing tomcat install which are
currently being used for test/validation purpose).
I'll test this next week when the new environment will be ready and let you
know.
Thanks again.
Have a nice week-end.
Kind regards,
Patrick

-Message d'origine-
De : Pid [mailto:p...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





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



RE: Tomcat-Spring-Eclipse/Flex Classpath Issue

2010-03-19 Thread Martin Gainty

Michael-

stop webserver
cd /WEB-INF/classes
jar -xvf $SPRING_HOME/dist/modules/spring-*.jar .

clear any temp or work folders..(tomcat work folder is usually in 
$CATALINA_HOME/work/Catalina/localhost/WebAppFolder)
start webserver

flex is a different issue ..for mine i had to grant both read and execute 
permissions for the flex jars in catalina.policy

anyone?
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 From: michael1.goldb...@citi.com
 To: users@tomcat.apache.org
 Date: Thu, 18 Mar 2010 11:04:34 -0400
 Subject: RE: Tomcat-Spring-Eclipse/Flex Classpath Issue
 
 Yes that jar is there.  I also decreased log level to FINEST and received 
 classloader ouput in the following order,
 
 FINE:   Returning class interface 
 org.springframework.beans.factory.InitializingBean
 Mar 18, 2010 9:50:27 AM org.apache.catalina.loader.WebappClassLoader findClass
 FINE:   Loaded by WebappClassLoader
   delegate: false
   repositories:
 /WEB-INF/classes/
 
 Then sometime later
 
 FINE: loadClass(com.citi.cpm.util.SystemPropertyInitializingBean, false)
 Mar 18, 2010 9:50:28 AM org.apache.catalina.loader.WebappClassLoader loadClass
 FINE: loadClass(com.citi.cpm.util.SecureDriverManagerDataSource, false)
 Mar 18, 2010 9:50:28 AM org.apache.catalina.loader.WebappClassLoader loadClass
 FINE: loadClass(org.springframework.orm.hibernate3.LocalSessionFactoryBean, 
 false)
 Mar 18, 2010 9:50:28 AM org.apache.catalina.loader.WebappClassLoader loadClass
 FINE:   Returning class from cache
 
 In the first log block it seems to indicate the spring class has been 
 located. In the second block the  Returning class from cache output does 
 not specify which class was returned.  The Exception block shows  
 com.citi.cpm.util.SystemPropertyInitializingBean  which is indicated in the 
 second block.
 
 Any Advice?
 
 -Original Message-
 From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
 Sent: Thursday, March 18, 2010 2:15 AM
 To: Tomcat Users List
 Subject: Re: Tomcat-Spring-Eclipse/Flex Classpath Issue
 
 2010/3/17 Goldberg, Michael1 michael1.goldb...@citi.com:
  I am using Tomcat version 6.0.x, Spring 2.5 in eclipse 3.4.2.  Trying to 
  configure a tomcat webserver which hosts the backend for a flex web app.
 
  Now on startup tomcat is having an issue resolving some spring dependancies 
  which appears to be a classpath issue.
 
 Did you put your Spring *.jar files into WEB-INF/lib folder of your
 web application?
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_2

Re: Tomcat-Spring-Eclipse/Flex Classpath Issue

2010-03-18 Thread Konstantin Kolinko
2010/3/17 Goldberg, Michael1 michael1.goldb...@citi.com:
 I am using Tomcat version 6.0.x, Spring 2.5 in eclipse 3.4.2.  Trying to 
 configure a tomcat webserver which hosts the backend for a flex web app.

 Now on startup tomcat is having an issue resolving some spring dependancies 
 which appears to be a classpath issue.

Did you put your Spring *.jar files into WEB-INF/lib folder of your
web application?

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



RE: Tomcat-Spring-Eclipse/Flex Classpath Issue

2010-03-18 Thread Caldarale, Charles R
 From: Goldberg, Michael1 [mailto:michael1.goldb...@citi.com]
 Subject: RE: Tomcat-Spring-Eclipse/Flex Classpath Issue
 
 Yes that jar is there.

Does the jar appear anywhere else in the classloader hierarchy?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



RE: Tomcat-Spring-Eclipse/Flex Classpath Issue

2010-03-18 Thread Goldberg, Michael1
The spring.jar only appears in WEB-INF/lib.  Based on the stacktrace which is 
the class not found ?

com.citi.cpm.util.SystemPropertyInitializingBean  which resides in 
WEB-INF/classes or org.springframework.beans.factory.InitializingBean which is 
in WEB-INF/lib ?

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Thursday, March 18, 2010 11:12 AM
To: Tomcat Users List
Subject: RE: Tomcat-Spring-Eclipse/Flex Classpath Issue

 From: Goldberg, Michael1 [mailto:michael1.goldb...@citi.com]
 Subject: RE: Tomcat-Spring-Eclipse/Flex Classpath Issue

 Yes that jar is there.

Does the jar appear anywhere else in the classloader hierarchy?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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


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



Tomcat-Spring-Eclipse/Flex Classpath Issue

2010-03-17 Thread Goldberg, Michael1
Hello

I am using Tomcat version 6.0.x, Spring 2.5 in eclipse 3.4.2.  Trying to 
configure a tomcat webserver which hosts the backend for a flex web app.

Now on startup tomcat is having an issue resolving some spring dependancies 
which appears to be a classpath issue.  As far as I can tell the classpath is 
set correctly.  What can be the issue?  Or   how can I debug the issue myself?  
-thx Mike

10:40:18,241 [main] ERROR ContextLoader : Context initialization failed
org.springframework.beans.factory.CannotLoadBeanClassException: Error loading 
class [com.citi.cpm.util.SystemPropertyInitializingBean] for bean with name 
'systemproperty_initializer' defined in ServletContext resource 
[/WEB-INF/config/applicationContext.xml]: problem with class file or dependent 
class; nested exception is java.lang.NoClassDefFoundError: 
org/springframework/beans/factory/InitializingBean
at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1144)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:524)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1177)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:758)
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:422)
at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.NoClassDefFoundError: 
org/springframework/beans/factory/InitializingBean
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1399)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
at 
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
... 24 more

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



Re: Tomcat-Spring-Eclipse/Flex Classpath Issue

2010-03-17 Thread Peter Crowther
On 17 March 2010 14:50, Goldberg, Michael1 michael1.goldb...@citi.comwrote:

 Hello

 I am using Tomcat version 6.0.x, Spring 2.5 in eclipse 3.4.2.  Trying to
 configure a tomcat webserver which hosts the backend for a flex web app.

 Now on startup tomcat is having an issue resolving some spring dependancies
 which appears to be a classpath issue.  As far as I can tell the classpath
 is set correctly.


How are you testing this?


 What can be the issue?

 Usually, the issue is relying on the class path rather than including *all*
the jars you need with the webapp.  Webapps are intended to be
self-contained, and servlet containers such as Tomcat can modify the
classpath, use their own classloaders that load classes in a well-defined
order that is not what a Java developer expects, and other oddities.

- Peter


RE: Tomcat-Spring-Eclipse/Flex Classpath Issue

2010-03-17 Thread Goldberg, Michael1
Thanks for the reply Peter

I have reviewed the tomcat class loader doc
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
b
And it appears I am adhering to the rules but Ive also reviewed this page

http://marc.info/?l=tomcat-userm=103843452413727w=2

and its possible that this snippet could be the issue

* If a class itself cannot be found, you will usually get a
  ClassNotFoundException.  You're getting a NoClassDefFoundError
  exception instead, which means that your class was found,
  but one of the classes *it* depends on (i.e. imports)
  can not be found.  Double check that the classes your Syslog
  class depends on are available.


Question what is Syslog?  As per the stack trace it says NoClassDefFoundError, 
but why does it not specify the exact missing dependency?? And how can I find 
it?

Regards
Mike

-Original Message-
From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On 
Behalf Of Peter Crowther
Sent: Wednesday, March 17, 2010 11:33 AM
To: Tomcat Users List
Subject: Re: Tomcat-Spring-Eclipse/Flex Classpath Issue

On 17 March 2010 14:50, Goldberg, Michael1 michael1.goldb...@citi.comwrote:

 Hello

 I am using Tomcat version 6.0.x, Spring 2.5 in eclipse 3.4.2.  Trying to
 configure a tomcat webserver which hosts the backend for a flex web app.

 Now on startup tomcat is having an issue resolving some spring dependancies
 which appears to be a classpath issue.  As far as I can tell the classpath
 is set correctly.


How are you testing this?


 What can be the issue?

 Usually, the issue is relying on the class path rather than including *all*
the jars you need with the webapp.  Webapps are intended to be
self-contained, and servlet containers such as Tomcat can modify the
classpath, use their own classloaders that load classes in a well-defined
order that is not what a Java developer expects, and other oddities.

- Peter

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



RE: Upgrading Tomcat from 6.0.14 to 6.0.18 - classpath issue

2009-01-20 Thread Caldarale, Charles R
 From: matyg [mailto:ma...@expand.com]
 Subject: Re: Upgrading Tomcat from 6.0.14 to 6.0.18 - classpath issue

 1) (and as far as I know...) the
 javax/servlet/http/HttpServlet  class is
 located in servlet-api.jar, which located under under
 tomcat_home/lib.

Make sure that's the *only* place servlet-api.jar is located.  You can get that 
message if the same class exists in multiple locations in a given branch of the 
classloader tree.  Turn on -verbose:class when running Tomcat to see where 
classes are being loaded from.

 2) The file MyWebApp.xml is located at:
 tomcat_home\conf\Catalina\localhost\MyWebApp.xml

That's good; what's in it?  Also, where is your webapp located?  What's in its 
WEB-INF/lib directory.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



RE: Upgrading Tomcat from 6.0.14 to 6.0.18 - classpath issue

2009-01-20 Thread matyg

1) Running with -verbose:class, this is what I get
(C:/Work/ExpandView/apache-tomcat-6.0.18 is the tomcat home):

Loaded javax.servlet.http.HttpServlet from
file:/C:/Work/ExpandView/apache-tomcat-6.0.18/lib/servlet-api.jar

2) This is the content of MyWebApp.xml:

Context docBase=${catalina.home}/webapps/MyWebApp reloadable=false
privileged=true swallowOutput=true
WatchedResourceWEB-INF/web.xml/WatchedResource
/Context


3) My webapp is located at tomcat_home\webapps\MyWebApp.

4) These are the files under WEB-INF/lib:
activation.jar
activemq-all-5.2-SNAPSHOT.jar
batik-awt-util.jar
batik-dom.jar
batik-svggen.jar
batik-util.jar
batik-xml.jar
cewolf.jar
commons-beanutils.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-digester.jar
commons-fileupload.jar
commons-httpclient-3.0-rc3.jar
commons-io-1.3.jar
commons-lang-2.0.jar
commons-logging-1.1.jar
commons-pool-1.2.jar
commons-validator.jar
dialogs-rt.jar
displaytag-1.0.jar
itext-1.3.jar
jakarta-oro.jar
jaxp.jar
jcommon-0.9.5.jar
jdbc2_0-stdext.jar
jfreechart-0.9.20.jar
jmxtools.jar
jsr173_1.0_api.jar
jsse.jar
jta-1.1.jar
org.mortbay.jetty-4.2.17.jar
struts.jar
strutstest-2.1.3.jar
taglibs-datetime.jar
tar.jar
-- 
View this message in context: 
http://www.nabble.com/Upgrading-Tomcat-from-6.0.14-to-6.0.18---classpath-issue-tp21541405p21577511.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Upgrading Tomcat from 6.0.14 to 6.0.18 - classpath issue

2009-01-19 Thread matyg
(LoginContext.java:680)
at
javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:363)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:354)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)


The following classes are included in login.jar:
 com.expand.expandview.client.servlets.login.MyLoginModule
 com.expand.expandview.client.servlets.login.EvUsernamePasswordLoginModule
 com.expand.expandview.client.servlets.login.EvDatabaseServerLoginModule

The class com/expand/expandview/client/services/ClientUserLogicServices is
located under
%CATALINA_HOME%\webapps\webAppName\WEB_INF\classes


As I have already said, it runs OK in 6.0.14, but it doesn't work in 6.0.18.
I have looked on the changelog(v6.0.15/16/17 and 18) - but I didn't manage
to understand what is the change that causes that.

Can someone help?

Thanks.

-- 
View this message in context: 
http://www.nabble.com/Upgrading-Tomcat-from-6.0.14-to-6.0.18---classpath-issue-tp21541405p21541405.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Upgrading Tomcat from 6.0.14 to 6.0.18 - classpath issue

2009-01-19 Thread Konstantin Kolinko
2009/1/19 matyg ma...@expand.com:

 set
 CLASSPATH=%CLASSPATH%;.;%CATALINA_HOME%\lib;%CATALINA_HOME%\lib\servlet-api.jar;%CATALINA_HOME%\lib\jsp-api.jar;%CATALINA_HOME%\lib\el-api.jar;%CATALINA_HOME%\webapps\webAppName;%CATALINA_HOME%\webapps\webAppName\WEB_INF\classes;%CATALINA_HOME%\webapps\webAppName\WEB_INF\lib;%CATALINA_HOME%\bin\bootstrap.jar;%CATALINA_HOME%\bin\commons-daemon.jar;


Do not mess with the CLASSPATH variable. That is not supported and you
are severely breaking the classloader hierarchy. Thus are your
problems.

See
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

Best regards,
Konstantin Kolinko

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



Re: Upgrading Tomcat from 6.0.14 to 6.0.18 - classpath issue

2009-01-19 Thread matyg

Yes, I know this page, but it is not understoodable from what is described
how it should be done.
They write there All such classes are visible to both Tomcat internal
classes, and to web applications.
What I understand is that I need to add classes to the system class loaded.
Where do I do that? where do I add them?
But how come it worked fine in v6.0.14 and not in v6.0.18? What was changed?


Konstantin Kolinko wrote:
 
 2009/1/19 matyg ma...@expand.com:

 set
 CLASSPATH=%CLASSPATH%;.;%CATALINA_HOME%\lib;%CATALINA_HOME%\lib\servlet-api.jar;%CATALINA_HOME%\lib\jsp-api.jar;%CATALINA_HOME%\lib\el-api.jar;%CATALINA_HOME%\webapps\webAppName;%CATALINA_HOME%\webapps\webAppName\WEB_INF\classes;%CATALINA_HOME%\webapps\webAppName\WEB_INF\lib;%CATALINA_HOME%\bin\bootstrap.jar;%CATALINA_HOME%\bin\commons-daemon.jar;

 
 Do not mess with the CLASSPATH variable. That is not supported and you
 are severely breaking the classloader hierarchy. Thus are your
 problems.
 
 See
 http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
 
 Best regards,
 Konstantin Kolinko
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Upgrading-Tomcat-from-6.0.14-to-6.0.18---classpath-issue-tp21541405p21543150.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Upgrading Tomcat from 6.0.14 to 6.0.18 - classpath issue

2009-01-19 Thread Caldarale, Charles R
 From: matyg [mailto:ma...@expand.com]
 Subject: Re: Upgrading Tomcat from 6.0.14 to 6.0.18 - classpath issue

 They write there All such classes are visible to both Tomcat internal
 classes, and to web applications.
 What I understand is that I need to add classes to the system
 class loaded.

No; do not ever, ever, ever add any Tomcat or webapp classes to the classpath.  
That is a recipe for disaster, as you're finding out.

 Where do I do that? where do I add them?

Classes that must be accessible via Tomcat and webapps go into Tomcat's lib 
directory.

You *must not* have references in your login modules back to any classes in the 
webapp.  That's an extremely poor and unsustainable architectural decision.

 But how come it worked fine in v6.0.14 and not in v6.0.18?
 What was changed?

Probably bug fixes, or you were extremely lucky before.  What you're doing is 
completely wrong.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



Re: Upgrading Tomcat from 6.0.14 to 6.0.18 - classpath issue

2009-01-19 Thread Pid
matyg wrote:
 Yes, I know this page, but it is not understoodable from what is described
 how it should be done.
 They write there All such classes are visible to both Tomcat internal
 classes, and to web applications.

Classes placed inside a webapp should not be visible to the container.
This is Servlet Spec stuff - otherwise there's little point in having a
classloader hierarchy at all.


 What I understand is that I need to add classes to the system class loaded.
 Where do I do that? where do I add them?

You should add them to the server/shared classloader, which in 6.x means
you just have to put them in a jar, in tomcat_home/lib.
The JAAS docs indicate that any classes you use need to be in the same
classloader as the module you're making.

 But how come it worked fine in v6.0.14 and not in v6.0.18? What was changed?

Are you sure you haven't got the classes deployed in a jar in /lib?
Even if you haven't what you're proposing is wrong and contrary to the
way that applications are intended to operate.

p


 Konstantin Kolinko wrote:
 2009/1/19 matyg ma...@expand.com:
 set
 CLASSPATH=%CLASSPATH%;.;%CATALINA_HOME%\lib;%CATALINA_HOME%\lib\servlet-api.jar;%CATALINA_HOME%\lib\jsp-api.jar;%CATALINA_HOME%\lib\el-api.jar;%CATALINA_HOME%\webapps\webAppName;%CATALINA_HOME%\webapps\webAppName\WEB_INF\classes;%CATALINA_HOME%\webapps\webAppName\WEB_INF\lib;%CATALINA_HOME%\bin\bootstrap.jar;%CATALINA_HOME%\bin\commons-daemon.jar;

 Do not mess with the CLASSPATH variable. That is not supported and you
 are severely breaking the classloader hierarchy. Thus are your
 problems.

 See
 http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

 Best regards,
 Konstantin Kolinko

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



 


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



Re: Upgrading Tomcat from 6.0.14 to 6.0.18 - classpath issue

2009-01-19 Thread matyg
 
 
 Konstantin Kolinko wrote:
 2009/1/19 matyg ma...@expand.com:
 set
 CLASSPATH=%CLASSPATH%;.;%CATALINA_HOME%\lib;%CATALINA_HOME%\lib\servlet-api.jar;%CATALINA_HOME%\lib\jsp-api.jar;%CATALINA_HOME%\lib\el-api.jar;%CATALINA_HOME%\webapps\webAppName;%CATALINA_HOME%\webapps\webAppName\WEB_INF\classes;%CATALINA_HOME%\webapps\webAppName\WEB_INF\lib;%CATALINA_HOME%\bin\bootstrap.jar;%CATALINA_HOME%\bin\commons-daemon.jar;

 Do not mess with the CLASSPATH variable. That is not supported and you
 are severely breaking the classloader hierarchy. Thus are your
 problems.

 See
 http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

 Best regards,
 Konstantin Kolinko

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



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

-- 
View this message in context: 
http://www.nabble.com/Upgrading-Tomcat-from-6.0.14-to-6.0.18---classpath-issue-tp21541405p21558505.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Tomcat 6 classpath issue

2008-08-06 Thread wskent

I have the following jars in my web projects \web\WEB-INF\lib dirdectory -
log4j-1.2.13.jar, mysql-connector-java-5.0.5.jar, servlet-api-2.4.jar,
standard-1.1.2.jar

When I retrieve the classpath using - 
String classPath = System.getProperty(java.class.path,.);
LOG.debug(Classpath:  + classPath);
I get the following - 
Classpath: C:\Tools\Tomcat6/bin/bootstrap.jar;C:\Tools\jdk1.5/lib/tools.jar

Any ideas why the jars in WEB-INF\lib are not showing up in my classpath?

-- 
View this message in context: 
http://www.nabble.com/Tomcat-6-classpath-issue-tp18853872p18853872.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6 classpath issue

2008-08-06 Thread Mark Thomas

wskent wrote:

I have the following jars in my web projects \web\WEB-INF\lib dirdectory -
log4j-1.2.13.jar, mysql-connector-java-5.0.5.jar, servlet-api-2.4.jar,
standard-1.1.2.jar

When I retrieve the classpath using - 
	String classPath = System.getProperty(java.class.path,.);

LOG.debug(Classpath:  + classPath);
I get the following - 
Classpath: C:\Tools\Tomcat6/bin/bootstrap.jar;C:\Tools\jdk1.5/lib/tools.jar


Any ideas why the jars in WEB-INF\lib are not showing up in my classpath?


Tomcat doesn't use it that way.

Mark




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6 classpath issue

2008-08-06 Thread Steve Ochani
Date sent:  Wed, 06 Aug 2008 08:36:48 -0700 (PDT)
From:   wskent [EMAIL PROTECTED]
Subject:Tomcat 6 classpath issue
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 
 I have the following jars in my web projects \web\WEB-INF\lib
 dirdectory - log4j-1.2.13.jar, mysql-connector-java-5.0.5.jar,
 servlet-api-2.4.jar, standard-1.1.2.jar
 

Bad idea to have 2.4 api jar, IMO.


 When I retrieve the classpath using - 
  String classPath = System.getProperty(java.class.path,.);
  LOG.debug(Classpath:  + classPath);
 I get the following - 
 Classpath:
 C:\Tools\Tomcat6/bin/bootstrap.jar;C:\Tools\jdk1.5/lib/tools.jar
 
 Any ideas why the jars in WEB-INF\lib are not showing up in my
 classpath?

Multiple classloaders. The webapp classloader is different from other 
classloaders.

http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html



-Steve O.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6 classpath issue

2008-08-06 Thread wskent

I looked at the Tomcat HowTo, so what do I use in place of
System.getProperty(java.class.path,.);

Ageed on not including the 2.4 jar!
-- 
View this message in context: 
http://www.nabble.com/Tomcat-6-classpath-issue-tp18853872p18856933.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6 classpath issue

2008-08-06 Thread Steve Ochani
Date sent:  Wed, 06 Aug 2008 11:25:23 -0700 (PDT)
From:   wskent [EMAIL PROTECTED]
Subject:Re: Tomcat 6 classpath issue
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 
 I looked at the Tomcat HowTo, so what do I use in place of
 System.getProperty(java.class.path,.);
 

Try this:


ClassLoader sysClassLoader = getClass().getClassLoader();

URL[] urls = ((URLClassLoader)sysClassLoader).getURLs();

for(int i=0; i urls.length; i++)
{
out.println(urls[i].getFile() + br\n);
}   




-Steve O.




 Ageed on not including the 2.4 jar!
 -- 
 View this message in context:
 http://www.nabble.com/Tomcat-6-classpath-issue-tp18853872p18856933.htm
 l Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Classpath Issue

2007-01-21 Thread Satya Narayan
Suneet,

To increase the debug level:

you have to provide  a higher integer value for debug parameter in server.xml 
under TC_HOME/conf dir. You can refer TC docs as well for it. 

Cheers,
Satya

- Original Message 
From: Suneet Shah [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, 19 January, 2007 10:20:11 AM
Subject: Re: Classpath Issue

Hi Satya,

I am using RMI (IIOP) to communicate with Webpshere. How can I increase the
debug level? Sorry, I am a little new to this.

Regards
Suneet


On 1/19/07, Satya Narayan [EMAIL PROTECTED] wrote:

 Sunnet,

 Cheers,
 Satya

 - Original Message 
 From: Suneet Shah [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Friday, 19 January, 2007 8:58:50 AM
 Subject: Classpath Issue

 Hello,

 I am working in creating a proxy that will run in Tomcat 5.5. I have  the
 module registered in the server.xml.  The module needs to communicate with
 some ejbs running on Websphere 6.1.  I placed the necessary IBM jar files
 in
 the tomcat/common/lib directory. On a a windows box, it works fine.
 However,
 on Solaris, I keep getting NoClassDefFound errors even though I have
 confirmed that the classes are in the jars.

 I think you have placed it in the proper place. I am not really sure of
 its failure in Solaris if it worked in Windows. The classloader of tomcat
 should be OS independent.

 Any thoughts on what could be causing this? or should I place the files
 elsewhere to include them in the classpath?

 I suggest you increase the debug level and see the way it is loaded and
 where exactly it is throwing this issue. Also, what is the mode of comm
 between TC and WS. Is it JMS/RMI or some other mechanism??

 Thanks in advance.
 Suneet








 __
 Yahoo! India Answers: Share what you know. Learn something new
 http://in.answers.yahoo.com/









__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Classpath Issue

2007-01-19 Thread Suneet Shah

Hello,

I am working in creating a proxy that will run in Tomcat 5.5. I have  the
module registered in the server.xml.  The module needs to communicate with
some ejbs running on Websphere 6.1.  I placed the necessary IBM jar files in
the tomcat/common/lib directory. On a a windows box, it works fine. However,
on Solaris, I keep getting NoClassDefFound errors even though I have
confirmed that the classes are in the jars.

Any thoughts on what could be causing this? or should I place the files
elsewhere to include them in the classpath?

Thanks in advance.
Suneet


Re: Classpath Issue

2007-01-19 Thread Satya Narayan
Sunnet,

Cheers,
Satya

- Original Message 
From: Suneet Shah [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, 19 January, 2007 8:58:50 AM
Subject: Classpath Issue

Hello,

I am working in creating a proxy that will run in Tomcat 5.5. I have  the
module registered in the server.xml.  The module needs to communicate with
some ejbs running on Websphere 6.1.  I placed the necessary IBM jar files in
the tomcat/common/lib directory. On a a windows box, it works fine. However,
on Solaris, I keep getting NoClassDefFound errors even though I have
confirmed that the classes are in the jars.

I think you have placed it in the proper place. I am not really sure of its 
failure in Solaris if it worked in Windows. The classloader of tomcat should be 
OS independent. 

Any thoughts on what could be causing this? or should I place the files
elsewhere to include them in the classpath?

I suggest you increase the debug level and see the way it is loaded and where 
exactly it is throwing this issue. Also, what is the mode of comm between TC 
and WS. Is it JMS/RMI or some other mechanism??

Thanks in advance.
Suneet








__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

Re: Classpath Issue

2007-01-19 Thread Suneet Shah

Hi Satya,

I am using RMI (IIOP) to communicate with Webpshere. How can I increase the
debug level? Sorry, I am a little new to this.

Regards
Suneet


On 1/19/07, Satya Narayan [EMAIL PROTECTED] wrote:


Sunnet,

Cheers,
Satya

- Original Message 
From: Suneet Shah [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, 19 January, 2007 8:58:50 AM
Subject: Classpath Issue

Hello,

I am working in creating a proxy that will run in Tomcat 5.5. I have  the
module registered in the server.xml.  The module needs to communicate with
some ejbs running on Websphere 6.1.  I placed the necessary IBM jar files
in
the tomcat/common/lib directory. On a a windows box, it works fine.
However,
on Solaris, I keep getting NoClassDefFound errors even though I have
confirmed that the classes are in the jars.

I think you have placed it in the proper place. I am not really sure of
its failure in Solaris if it worked in Windows. The classloader of tomcat
should be OS independent.

Any thoughts on what could be causing this? or should I place the files
elsewhere to include them in the classpath?

I suggest you increase the debug level and see the way it is loaded and
where exactly it is throwing this issue. Also, what is the mode of comm
between TC and WS. Is it JMS/RMI or some other mechanism??

Thanks in advance.
Suneet








__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/