axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khozy Ujjainwala" <khozy.ujjainw...@decisionview.com>
Subject axix class loader problem
Date Fri, 20 Apr 2007 16:58:17 GMT
Hi,

 

           I am using axis 1.4 with tomcat 1.4.31 running under security
Manager and deployed under JDK 1.5.01. My application starts up fine,
but the webservice does not get deployed. I see the following exceptions
in Tomcat logs: -

 

javax.servlet.ServletException: Error instantiating servlet class
org.apache.axis.transport.http.AdminServlet

            at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:865)

            at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)

            at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3363)

            at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3586
)

            at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:774)

            at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:115
)

            at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerB
ase.java:135)

            at java.security.AccessController.doPrivileged(Native
Method)

            at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:758)

            at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548)

            at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeplo
yer.java:653)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

            at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

            at java.lang.reflect.Method.invoke(Method.java:585)

            at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:2
52)

            at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)

            at org.apache.commons.digester.Rule.end(Rule.java:276)

            at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)

            at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)

            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)

            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)

            at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)

            at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)

            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)

            at
org.apache.commons.digester.Digester.parse(Digester.java:1567)

            at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:338)

            at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)

            at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:395)

            at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:352)

            at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:671)

            at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
1)

            at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)

            at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149)

            at
org.apache.catalina.core.StandardHost.start(StandardHost.java:707)

            at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)

            at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)

            at
org.apache.catalina.core.StandardService.start(StandardService.java:450)

            at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)

            at
org.apache.catalina.startup.Catalina.start(Catalina.java:463)

            at
org.apache.catalina.startup.Catalina.execute(Catalina.java:350)

            at
org.apache.catalina.startup.Catalina.process(Catalina.java:129)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

            at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

            at java.lang.reflect.Method.invoke(Method.java:585)

            at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

----- Root Cause -----

java.lang.ExceptionInInitializerError

            at
org.apache.commons.discovery.jdk.JDKHooks.<clinit>(JDKHooks.java:75)

            at
org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingle
ton.java:412)

            at
org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingle
ton.java:378)

            at
org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)

            at java.security.AccessController.doPrivileged(Native
Method)

            at
org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.ja
va:41)

            at
org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33
)

            at
org.apache.axis.transport.http.AxisServlet.<clinit>(AxisServlet.java:75)

            at java.lang.Class.forName0(Native Method)

            at java.lang.Class.forName(Class.java:164)

            at
org.apache.axis.transport.http.AxisServletBase.class$(AxisServletBase.ja
va:59)

            at
org.apache.axis.transport.http.AxisServletBase.<clinit>(AxisServletBase.
java:58)

            at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)

            at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)

            at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)

            at java.lang.Class.newInstance0(Class.java:350)

            at java.lang.Class.newInstance(Class.java:303)

            at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:856)

            at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)

            at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3363)

            at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3586
)

            at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:774)

            at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:115
)

            at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerB
ase.java:135)

            at java.security.AccessController.doPrivileged(Native
Method)

            at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:758)

            at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548)

            at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeplo
yer.java:653)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

            at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

            at java.lang.reflect.Method.invoke(Method.java:585)

            at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:2
52)

            at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)

            at org.apache.commons.digester.Rule.end(Rule.java:276)

            at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)

            at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)

            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)

            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)

            at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)

            at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)

            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)

            at
org.apache.commons.digester.Digester.parse(Digester.java:1567)

            at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:338)

            at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)

            at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:395)

            at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:352)

            at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:671)

            at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
1)

            at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)

            at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149)

            at
org.apache.catalina.core.StandardHost.start(StandardHost.java:707)

            at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)

            at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)

            at
org.apache.catalina.core.StandardService.start(StandardService.java:450)

            at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)

            at
org.apache.catalina.startup.Catalina.start(Catalina.java:463)

            at
org.apache.catalina.startup.Catalina.execute(Catalina.java:350)

            at
org.apache.catalina.startup.Catalina.process(Catalina.java:129)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

            at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

            at java.lang.reflect.Method.invoke(Method.java:585)

            at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission createClassLoader)

            at
java.security.AccessControlContext.checkPermission(AccessControlContext.
java:264)

            at
java.security.AccessController.checkPermission(AccessController.java:427
)

            at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)

            at
java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:59
4)

            at java.lang.ClassLoader.<init>(ClassLoader.java:225)

            at
org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.<init>(PsuedoSy
stemClassLoader.java:73)

            at
org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12H
ooks.java:215)

            at
org.apache.commons.discovery.jdk.JDK12Hooks.<clinit>(JDK12Hooks.java:73)

            ... 67 more

 

2007-04-19 11:41:13 StandardWrapper[/StudyOptimizer:AxisServlet]:
Marking servlet AxisServlet as unavailable

2007-04-19 11:41:13 StandardContext[/StudyOptimizer]: Servlet
/StudyOptimizer threw load() exception

javax.servlet.ServletException: Error instantiating servlet class
org.apache.axis.transport.http.AxisServlet

            at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:865)

            at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)

            at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3363)

            at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3586
)

            at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:774)

            at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:115
)

            at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerB
ase.java:135)

            at java.security.AccessController.doPrivileged(Native
Method)

            at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:758)

            at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548)

            at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeplo
yer.java:653)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

            at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

            at java.lang.reflect.Method.invoke(Method.java:585)

            at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:2
52)

            at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)

            at org.apache.commons.digester.Rule.end(Rule.java:276)

            at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)

            at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)

            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)

            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)

            at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)

            at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)

            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)

            at
org.apache.commons.digester.Digester.parse(Digester.java:1567)

            at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:338)

            at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)

            at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:395)

            at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:352)

            at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:671)

            at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
1)

            at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)

            at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149)

            at
org.apache.catalina.core.StandardHost.start(StandardHost.java:707)

            at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)

            at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)

            at
org.apache.catalina.core.StandardService.start(StandardService.java:450)

            at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)

            at
org.apache.catalina.startup.Catalina.start(Catalina.java:463)

            at
org.apache.catalina.startup.Catalina.execute(Catalina.java:350)

            at
org.apache.catalina.startup.Catalina.process(Catalina.java:129)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

            at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

            at java.lang.reflect.Method.invoke(Method.java:585)

            at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

----- Root Cause -----

java.lang.NoClassDefFoundError

            at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)

            at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)

            at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)

            at java.lang.Class.newInstance0(Class.java:350)

            at java.lang.Class.newInstance(Class.java:303)

            at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:856)

            at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:776)

            at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:3363)

            at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3586
)

            at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:774)

            at
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:115
)

            at
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerB
ase.java:135)

            at java.security.AccessController.doPrivileged(Native
Method)

            at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:758)

            at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:548)

            at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeplo
yer.java:653)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

            at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

            at java.lang.reflect.Method.invoke(Method.java:585)

            at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:2
52)

            at
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)

            at org.apache.commons.digester.Rule.end(Rule.java:276)

            at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)

            at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)

            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)

            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)

            at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)

            at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)

            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)

            at
org.apache.commons.digester.Digester.parse(Digester.java:1567)

            at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:338)

            at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)

            at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:395)

            at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:352)

            at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:671)

            at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
1)

            at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:119)

            at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1149)

            at
org.apache.catalina.core.StandardHost.start(StandardHost.java:707)

            at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141)

            at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)

            at
org.apache.catalina.core.StandardService.start(StandardService.java:450)

            at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)

            at
org.apache.catalina.startup.Catalina.start(Catalina.java:463)

            at
org.apache.catalina.startup.Catalina.execute(Catalina.java:350)

            at
org.apache.catalina.startup.Catalina.process(Catalina.java:129)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

            at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

            at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

            at java.lang.reflect.Method.invoke(Method.java:585)

            at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)

 

Any help in this matter would be appreciated.

 

Thanks,

Khozy


Mime
View raw message