[
https://jira.jboss.org/browse/JBAS-8711?page=com.atlassian.jira.plugin.sy...
]
jaikiran pai commented on JBAS-8711:
------------------------------------
1) The log shows this :
2010-12-03 11:33:30,071 WARN [org.jboss.detailed.classloader.ClassLoaderManager]
(HDScanner) Unexpected error during load of:org.w3c.dom.DOMConfiguration:
java.lang.LinkageError: loader constraint violation: loader (instance of
org/jboss/classloader/spi/base/BaseClassLoader) previously initiated loading for a
different type with name "org/w3c/dom/DOMConfiguration"
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_20]
at java.lang.ClassLoader.defineClass(ClassLoader.java:634) [:1.6.0_20]
at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:52)
[jboss-classloader.jar:2.2.0.Alpha9]
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:650)
[jboss-classloader.jar:2.2.0.Alpha9]
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:609)
[jboss-classloader.jar:2.2.0.Alpha9]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_20]
at
org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:608)
[jboss-classloader.jar:2.2.0.Alpha9]
at
org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:585)
[jboss-classloader.jar:2.2.0.Alpha9]
at
org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:156)
[jboss-classloader.jar:2.2.0.Alpha9]
at
org.jboss.classloader.spi.filter.FilteredDelegateLoader.doLoadClass(FilteredDelegateLoader.java:141)
[jboss-classloader.jar:2.2.0.Alpha9]
at
org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:132)
[jboss-classloader.jar:2.2.0.Alpha9]
at
org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:461)
[jboss-classloader.jar:2.2.0.Alpha9]
at
org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:262)
[jboss-classloader.jar:2.2.0.Alpha9]
at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:161)
[jboss-classloader.jar:2.2.0.Alpha9]
at
org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:260)
[jboss-classloader.jar:2.2.0.Alpha9]
at
org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1152)
[jboss-classloader.jar:2.2.0.Alpha9]
at
org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886)
[jboss-classloader.jar:2.2.0.Alpha9]
at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505)
[jboss-classloader.jar:2.2.0.Alpha9]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450)
[jboss-classloader.jar:2.2.0.Alpha9]
at java.lang.ClassLoader.loadClass(ClassLoader.java:266) [:1.6.0_20]
at java.lang.Class.getDeclaredMethods0(Native Method) [:1.6.0_20]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2444) [:1.6.0_20]
at java.lang.Class.getDeclaredMethods(Class.java:1808) [:1.6.0_20]
at
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getDeclaredMethods(IntrospectionTypeInfoFactoryImpl.java:593)
[jboss-reflect.jar:2.2.0.Alpha9]
at
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:222)
[jboss-reflect.jar:2.2.0.Alpha9]
at
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:218)
[jboss-reflect.jar:2.2.0.Alpha9]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_20]
at
org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getMethods(IntrospectionTypeInfoFactoryImpl.java:217)
[jboss-reflect.jar:2.2.0.Alpha9]
at org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredMethods(ClassInfoImpl.java:416)
[jboss-reflect.jar:2.2.0.Alpha9]
at
org.jboss.scanning.plugins.visitor.ClassHierarchyResourceVisitor.handleClass(ClassHierarchyResourceVisitor.java:80)
[:1.0.0.Alpha7]
at
org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.doVisit(ReflectResourceVisitor.java:108)
[:1.0.0.Alpha7]
at
org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:86)
[:1.0.0.Alpha7]
at
org.jboss.scanning.annotations.plugins.AnnotationsScanningPlugin.visit(AnnotationsScanningPlugin.java:89)
[:1.0.0.Alpha7]
at
org.jboss.scanning.spi.helpers.ScanningPluginWrapper.visit(ScanningPluginWrapper.java:112)
[:1.0.0.Alpha7]
at
org.jboss.classloading.plugins.visitor.FederatedResourceVisitor.visit(FederatedResourceVisitor.java:101)
[jboss-classloading.jar:2.2.0.Alpha9]
at
org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:264)
[jboss-classloading-vfs.jar:2.2.0.Alpha9]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:407) [jboss-vfs.jar:3.0.0.CR5]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:409) [jboss-vfs.jar:3.0.0.CR5]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:409) [jboss-vfs.jar:3.0.0.CR5]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:409) [jboss-vfs.jar:3.0.0.CR5]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:409) [jboss-vfs.jar:3.0.0.CR5]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:395) [jboss-vfs.jar:3.0.0.CR5]
at
org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:102)
[jboss-classloading-vfs.jar:2.2.0.Alpha9]
at
org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.visit(VFSDeploymentClassLoaderPolicyModule.java:181)
[:2.2.0.Alpha8]
at org.jboss.scanning.plugins.DeploymentUnitScanner.scan(DeploymentUnitScanner.java:111)
[:1.0.0.Alpha7]
at org.jboss.scanning.spi.helpers.UrlScanner.scan(UrlScanner.java:96) [:1.0.0.Alpha7]
at org.jboss.scanning.deployers.ScanningDeployer.deploy(ScanningDeployer.java:90)
[:1.0.0.Alpha7]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
[:2.2.0.Alpha8]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)
[:2.2.0.Alpha8]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)
[:2.2.0.Alpha8]
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)
[:2.2.0.Alpha8]
Those are WARN messages and from what I see in that stacktrace, those can be ignored
2) This is another example of annotation scanning being too aggressive and something that
can lead to potential classloading issues (the LinkageError that we see in another JIRA
here is another example
https://jira.jboss.org/browse/JBAS-8361). IMO, jars like these
should never really be scanned for annotations, but it's a different question on
what's the easiest (non-intrusive) way to avoid such scanning.
Unable to deploy Apache Axis2.war version 1.5.3
-----------------------------------------------
Key: JBAS-8711
URL:
https://jira.jboss.org/browse/JBAS-8711
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Environment: Ubuntu 10.10, jboss-6.0.0.CR1, openjdk 6 1.6.0_20,
jbossweb-standalone server
Reporter: David Thompson
Attachments: boot.log, server.log
Deployed the war downloaded from here
http://www.eng.lsu.edu/mirrors/apache//axis/axis2/java/core/1.5.3/axis2-1...
And immediately you get the following errors as well as lots more.
[org.jboss.detailed.classloader.ClassLoaderManager] Unexpected error during load
of:org.w3c.dom.UserDataHandler: java.lang.LinkageError: loader constraint violation:
loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) previously initiated
loading for a different type with name "org/w3c/dom/UserDataHandler"
at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_20]
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira