You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Fátima Milla Olaya <fa...@evidian.com> on 2008/06/23 17:28:36 UTC
java.lang.LinkageError
Hi! I have a problem with the configuration of the logs in Tomcat (it
puts the logs in Windows/System32) and also I get an error that doesn't
let me start the service:
16:24:20,234 (Thread-1) ERROR
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/authz]]
- StandardWrapper.Throwable
java.lang.LinkageError: java/util/logging/LogRecord
at
com.evidian.security.authz.local.audit.AuditFilter.isLoggable(AuditFilter.java:25)
at
com.evidian.security.authz.tools.ThreadLocalLogHandler.isLoggable(ThreadLocalLogHandler.java:106)
at
com.evidian.security.authz.tools.ThreadLocalLogHandler.publish(ThreadLocalLogHandler.java:83)
at java.util.logging.Logger.log(Unknown Source)
at java.util.logging.Logger.doLog(Unknown Source)
at java.util.logging.Logger.logp(Unknown Source)
at org.apache.commons.logging.impl.Jdk14Logger.log(Jdk14Logger.java:91)
at
org.apache.commons.logging.impl.Jdk14Logger.debug(Jdk14Logger.java:103)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1215)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at
com.evidian.security.authz.server.AuthorizationServlet.init(AuthorizationServlet.java:158)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3823)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4087)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:800)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:695)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
16:24:20,250 (Thread-1) ERROR
[org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/authz]]
- La servlet /authz a généré une exception "load()"
javax.servlet.ServletException: "Servlet.init()" pour la servlet Evidian
Authorization Service a généré une exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1109)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:900)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3823)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4087)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:800)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:695)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
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:271)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: java.lang.LinkageError
Posted by Fátima Milla Olaya <fa...@evidian.com>.
I'm using Tomcat 5.5 and Sun JDK 1.5.0 update 11.
I have configured it to use this JDK's virtual machine, but it seems
it's using Sun JRE 1.6 VM despite it not being declared anywhere (
neither on classpath nor anywhere else )
I think it is executing the java.exe of Windows/System32 because it
keeps the logs in this folder.
Caldarale, Charles R a écrit :
>> From: Fátima Milla Olaya [mailto:fatima.milla-olaya@evidian.com]
>> Subject: java.lang.LinkageError
>>
>> Hi! I have a problem with the configuration of the logs in Tomcat
>> (it puts the logs in Windows/System32) and also I get an error
>> that doesn't let me start the service:
>>
>
> Don't suppose you'd want to tell us the version of Tomcat you're using? As well as the JDK/JRE version?
>
>
>> java.lang.LinkageError: java/util/logging/LogRecord
>> at
>> com.evidian.security.authz.local.audit.AuditFilter.isLoggable(AuditFilter.java:25)
>>
>
> According to the API doc for LinkageError:
> "Subclasses of LinkageError indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class."
>
> Looks like code in *your* product - not Tomcat - is causing the exception. Perhaps you're compiling on one JDK version and trying to run with another that's not compatible.
>
> - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: java.lang.LinkageError
Posted by Fátima Milla Olaya <fa...@evidian.com>.
I resolved the problem. I put this lines in the config JAVA of Tomcat:
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file=C:\Program Files\Apache Software
Foundation\Tomcat 5.5\conf\logging.properties
Caldarale, Charles R a écrit :
>> From: Fátima Milla Olaya [mailto:fatima.milla-olaya@evidian.com]
>> Subject: java.lang.LinkageError
>>
>> Hi! I have a problem with the configuration of the logs in Tomcat
>> (it puts the logs in Windows/System32) and also I get an error
>> that doesn't let me start the service:
>>
>
> Don't suppose you'd want to tell us the version of Tomcat you're using? As well as the JDK/JRE version?
>
>
>> java.lang.LinkageError: java/util/logging/LogRecord
>> at
>> com.evidian.security.authz.local.audit.AuditFilter.isLoggable(AuditFilter.java:25)
>>
>
> According to the API doc for LinkageError:
> "Subclasses of LinkageError indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class."
>
> Looks like code in *your* product - not Tomcat - is causing the exception. Perhaps you're compiling on one JDK version and trying to run with another that's not compatible.
>
> - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: java.lang.LinkageError
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Fátima Milla Olaya [mailto:fatima.milla-olaya@evidian.com]
> Subject: java.lang.LinkageError
>
> Hi! I have a problem with the configuration of the logs in Tomcat
> (it puts the logs in Windows/System32) and also I get an error
> that doesn't let me start the service:
Don't suppose you'd want to tell us the version of Tomcat you're using? As well as the JDK/JRE version?
> java.lang.LinkageError: java/util/logging/LogRecord
> at
> com.evidian.security.authz.local.audit.AuditFilter.isLoggable(AuditFilter.java:25)
According to the API doc for LinkageError:
"Subclasses of LinkageError indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class."
Looks like code in *your* product - not Tomcat - is causing the exception. Perhaps you're compiling on one JDK version and trying to run with another that's not compatible.
- 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org