[ http://jira.codehaus.org/browse/XFIRE-409?page=comments#action_65338 ] 

Andrew Perepelytsya commented on XFIRE-409:
-------------------------------------------

We pull everything via m2 transient dependencies in this case. I've searched 
through the m2 repo, and found the javax.xml.datatype.Duration to be present in 
jaxp-api-1.3.jar and xml-apis-1.3.03.jar. While I'm mostly sure the former one 
is not active in this run, the latter is on the classpath, and needs to be 
there - this is a dependency of xerces 2.8.0 when ran on JDK1.4.

I would think some exclusion declarations would help, but now I'm confused.

> XFire 1.1 compiled with Java5, gives UnsupportedClassVersionError for JDK 
> 1.4.x
> -------------------------------------------------------------------------------
>
>          Key: XFIRE-409
>          URL: http://jira.codehaus.org/browse/XFIRE-409
>      Project: XFire
>         Type: Bug

>   Components: Core, Aegis Module
>     Versions: 1.1
>     Reporter: Andrew Perepelytsya
>     Assignee: Dan Diephouse
>     Priority: Blocker
>      Fix For: 1.1.1

>
>
> Some classes in XFire 1.1 release have been compiled with Java5 target 
> version. The 1.1-beta-1 worked fine with Jdk 1.4, now the very same code 
> fails:
> {panel}
> Caused by: java.lang.UnsupportedClassVersionError: 
> org/codehaus/xfire/aegis/type/java5/DurationType (Unsupported major.minor 
> version 49.0)
>       at java.lang.ClassLoader.defineClass0(Native Method)
>       at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
>       at 
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
>       at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
>       at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
>       at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>       at 
> org.codehaus.xfire.util.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:98)
>       at 
> org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.registerIfAvailable(DefaultTypeMappingRegistry.java:416)
>       at 
> org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.createDefaultMappings(DefaultTypeMappingRegistry.java:337)
>       at 
> org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:129)
>       at 
> org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry.<init>(DefaultTypeMappingRegistry.java:117)
>       at 
> org.codehaus.xfire.aegis.AegisBindingProvider.<init>(AegisBindingProvider.java:46)
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>       at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>       at java.lang.Class.newInstance0(Class.java:308)
>       at java.lang.Class.newInstance(Class.java:261)
>       at 
> org.codehaus.xfire.service.binding.ObjectServiceFactory.getBindingProvider(ObjectServiceFactory.java:151)
>       at 
> org.codehaus.xfire.service.binding.DefaultServiceConfiguration.getOutParameterName(DefaultServiceConfiguration.java:174)
>       at 
> org.codehaus.xfire.service.binding.ObjectServiceFactory.getOutParameterName(ObjectServiceFactory.java:958)
>       at 
> org.codehaus.xfire.service.binding.ObjectServiceFactory.addOperation(ObjectServiceFactory.java:719)
>       at 
> org.codehaus.xfire.service.binding.ObjectServiceFactory.initializeOperations(ObjectServiceFactory.java:645)
>       at 
> org.codehaus.xfire.service.binding.ObjectServiceFactory.create(ObjectServiceFactory.java:350)
>       at 
> org.mule.providers.soap.xfire.XFireMessageReceiver.init(XFireMessageReceiver.java:87)
>       at 
> org.mule.providers.soap.xfire.XFireMessageReceiver.<init>(XFireMessageReceiver.java:47)
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>       at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>       at org.mule.util.ClassHelper.instanciateClass(ClassHelper.java:270)
>       at org.mule.util.ClassHelper.instanciateClass(ClassHelper.java:277)
>       at 
> org.mule.providers.service.ConnectorServiceDescriptor.createMessageReceiver(ConnectorServiceDescriptor.java:373)
>       ... 50 more
> {panel}
> The dependency has been declared as follows in Mule's m2 build:
> {code:xml}
>     <dependency>
>             <groupId>org.codehaus.xfire</groupId>
>             <artifactId>xfire-all</artifactId>
>             <version>1.1</version>
>             <!-- These transitive dependencies are not found on ibiblio and 
> cause
>             the build to fail. -->
>             <exclusions>
>                 <exclusion>
>                     <groupId>javax.mail</groupId>
>                     <artifactId>mail</artifactId>
>                 </exclusion>
>                 <exclusion>
>                     <groupId>javax.activation</groupId>
>                     <artifactId>activation</artifactId>
>                 </exclusion>
>             </exclusions>
>         </dependency>
> {code}
> A quick analysis of m2 repo jars shows the offending {{DurationType}} class 
> is present both in xfire-java5-1.1.jar *and* xfire-all-1.1.jar.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to