RE: Tomcat 6.0 and JULI issue.

2009-06-26 Thread Kodichath, Suresh
That was helpful and it fixed the original issue during Tomcat startup. But 
with this change I am now getting a new ClassNotFoundException on a different 
class when the WebApp comes up. This error will not happen if I only have the 
default Tomcat logging.properties, without my handler.

I have been looking into this through yesterday trying various class paths to 
fix this new issue but still haven't got a fix for it so appreciate any help 
with this.

Thanks,
Suresh

PS: Are there any documentation that might help with this?.


-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: Thursday, June 25, 2009 4:39 AM
To: Tomcat Users List
Subject: Re: Tomcat 6.0 and JULI issue.

Kodichath, Suresh wrote:
 Hi all:
 I hit this issue while trying to move my application from Tomcat 5.5.9 to 
 Tomcat 6.0.18. The application runs fine in Tomcat 5.5.9 but is getting the 
 following exception with Tomcat 6.0.18. Any help with this is much 
 appreciated!.

Your handler needs to be visible when Tomcat starts. It isn't often I
say this but try putting your jar in the bin dir and editing
setclasspath to include your jar.

Mark


 My CATALINA_HOME/conf/logging.properties is as follows:

 handlers = 1catalina.com.mycompany.logger.JavaLoggingHandler
 .handlers = 1catalina.com.mycompany.logger.JavaLoggingHandler
 other properties here

 The error I am getting is a ClassNotFoundException for 
 com.mycompany.logger.JavaLoggingHandler. The Jar that contains this class is  
 CATALINA_HOME/lib/MyAppFramework.jar.

 java.lang.ClassNotFoundException: com.mycompany.logger.JavaLoggingHandler
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at 
 org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:404)
 at 
 org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:348)
 at 
 org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:239)
 at java.util.logging.LogManager$2.run(LogManager.java:254)
 at java.security.AccessController.doPrivileged(Native Method)
 at 
 java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:252)
 at java.util.logging.LogManager.getLogManager(LogManager.java:235)
 at java.util.logging.Logger.init(Logger.java:201)
 at java.util.logging.LogManager$RootLogger.init(LogManager.java:969)
 at java.util.logging.LogManager$RootLogger.init(LogManager.java:966)
 at java.util.logging.LogManager$1.run(LogManager.java:179)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.util.logging.LogManager.clinit(LogManager.java:156)
 at java.util.logging.Logger.getLogger(Logger.java:254)
 at org.apache.juli.logging.DirectJDKLog.init(DirectJDKLog.java:71)
 at 
 org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
 at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
 at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241)
 at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:296)
 at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:54)

 Thanks,
 Suresh




-
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 6.0 and JULI issue.

2009-06-26 Thread Kodichath, Suresh
Thanks, this is the stack trace of this (latest) error we are getting. This is 
after we added the jar for the logging handler to Tomcat's/setClassPath.sh. 
Tomcat version used is Tomcat 6.0.18.

-Suresh

FileLoggerWriter catalina failed to log an entry because 
java.io.InterruptedIOException
1246038355 20090626-17:45:55.834 :catalina: :E: :CAT9991: : 
java.io.IOException: Interrupted system call
java.lang.InstantiationException: Unable to create a new transaction logger: 
java.lang.ClassNotFoundException: net.mirrorimage.rbcs.logging.Web
AppTransactionLogger  at 
net.mirrorimage.logger.TransactionLogger.createTransactionLogger(TransactionLogger.java:208)
at  
net.mirrorimage.rbcs.servlet.contextlistener.TargetingServletContextListener.doInit(TargetingServletContextListener.java:163)
at 
net.mirrorimage.rbcs.servlet.contextlistener.RbcsTaglibServletContextListenerBase.contextInitialized(RbcsTaglibServletContextListenerBase.java:92)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
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:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
~

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]

 From: Kodichath, Suresh [mailto:suresh.kodich...@mirror-image.com]
 Subject: RE: Tomcat 6.0 and JULI issue.

 But with this change I am now getting a new ClassNotFoundException on a
 different class when the WebApp comes up.

 I have been looking into this through yesterday trying various class
 paths to fix this new issue but still haven't got a fix for it so
 appreciate any help with this.

Rather difficult to help if you don't post the exact exception and 
accompanying stack trace.

 - 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



RE: Tomcat 6.0 and JULI issue.

2009-06-26 Thread Kodichath, Suresh
Just want to add the Jar for this class file is at webapps/WEB-INF/lib/.

Thanks,
-Suresh

-Original Message-
From: Kodichath, Suresh [mailto:suresh.kodich...@mirror-image.com]
Sent: Friday, June 26, 2009 1:57 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 6.0 and JULI issue.

Thanks, this is the stack trace of this (latest) error we are getting. This is 
after we added the jar for the logging handler to Tomcat's/setClassPath.sh. 
Tomcat version used is Tomcat 6.0.18.

-Suresh

FileLoggerWriter catalina failed to log an entry because 
java.io.InterruptedIOException
1246038355 20090626-17:45:55.834 :catalina: :E: :CAT9991: : 
java.io.IOException: Interrupted system call
java.lang.InstantiationException: Unable to create a new transaction logger: 
java.lang.ClassNotFoundException: net.mirrorimage.rbcs.logging.Web
AppTransactionLogger  at 
net.mirrorimage.logger.TransactionLogger.createTransactionLogger(TransactionLogger.java:208)
at  
net.mirrorimage.rbcs.servlet.contextlistener.TargetingServletContextListener.doInit(TargetingServletContextListener.java:163)
at 
net.mirrorimage.rbcs.servlet.contextlistener.RbcsTaglibServletContextListenerBase.contextInitialized(RbcsTaglibServletContextListenerBase.java:92)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
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:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
~

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]

 From: Kodichath, Suresh [mailto:suresh.kodich...@mirror-image.com]
 Subject: RE: Tomcat 6.0 and JULI issue.

 But with this change I am now getting a new ClassNotFoundException on a
 different class when the WebApp comes up.

 I have been looking into this through yesterday trying various class
 paths to fix this new issue but still haven't got a fix for it so
 appreciate any help with this.

Rather difficult to help if you don't post the exact exception and 
accompanying stack trace.

 - 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


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



RE: Tomcat 6.0 and JULI issue.

2009-06-26 Thread Kodichath, Suresh
Well, in this case, adding the Jar in setclasspath.sh, including it in 
/tomcat/lib, and not having it in WEB-INF/lib doesn't make any difference. So 
even if we load this second Jar (in addition to the first jar that helped with 
the initial issue), through setclasspath.sh we are still seeing this error.

-Suresh

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Friday, June 26, 2009 2:14 PM
To: Tomcat Users List
Subject: RE: Tomcat 6.0 and JULI issue.

 From: Kodichath, Suresh [mailto:suresh.kodich...@mirror-image.com]
 Subject: RE: Tomcat 6.0 and JULI issue.

 Just want to add the Jar for this class file is at
 webapps/WEB-INF/lib/.

Is this jar file also in Tomcat's startup classpath (as Mark suggested)?  If 
so, you must remove it from WEB-INF/lib, since you must never have the same 
class in two places in a given branch of the classloader tree.

 - 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 6.0 and JULI issue.

2009-06-24 Thread Kodichath, Suresh
Hi all:
I hit this issue while trying to move my application from Tomcat 5.5.9 to 
Tomcat 6.0.18. The application runs fine in Tomcat 5.5.9 but is getting the 
following exception with Tomcat 6.0.18. Any help with this is much appreciated!.

My CATALINA_HOME/conf/logging.properties is as follows:

handlers = 1catalina.com.mycompany.logger.JavaLoggingHandler
.handlers = 1catalina.com.mycompany.logger.JavaLoggingHandler
other properties here

The error I am getting is a ClassNotFoundException for 
com.mycompany.logger.JavaLoggingHandler. The Jar that contains this class is  
CATALINA_HOME/lib/MyAppFramework.jar.

java.lang.ClassNotFoundException: com.mycompany.logger.JavaLoggingHandler
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at 
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:404)
at 
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:348)
at 
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:239)
at java.util.logging.LogManager$2.run(LogManager.java:254)
at java.security.AccessController.doPrivileged(Native Method)
at 
java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:252)
at java.util.logging.LogManager.getLogManager(LogManager.java:235)
at java.util.logging.Logger.init(Logger.java:201)
at java.util.logging.LogManager$RootLogger.init(LogManager.java:969)
at java.util.logging.LogManager$RootLogger.init(LogManager.java:966)
at java.util.logging.LogManager$1.run(LogManager.java:179)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.clinit(LogManager.java:156)
at java.util.logging.Logger.getLogger(Logger.java:254)
at org.apache.juli.logging.DirectJDKLog.init(DirectJDKLog.java:71)
at 
org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:178)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:241)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:296)
at org.apache.catalina.startup.Bootstrap.clinit(Bootstrap.java:54)

Thanks,
Suresh