Skip to main content

Does JAXWS-2.2.6-1 support JDK 1.5?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
ophers
Offline
Joined: 2008-04-17

Hello,
The release notes here: http://jax-ws.java.net/nonav/2.2.6-1/docs/ch02.html#required-software claim it does. Except that trying to run a JAXWS (standalone desktop) client with on-top JDK 1.5 fails with this message:

Exception in thread "Main Thread" java.lang.UnsupportedClassVersionError:
com/sun/xml/ws/spi/ProviderImpl : unsupported classversion 50.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        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 javax.xml.ws.spi.FactoryFinder.safeLoadClass(FactoryFinder.java:187)
        at javax.xml.ws.spi.FactoryFinder.newInstance(FactoryFinder.java:66)
        at javax.xml.ws.spi.FactoryFinder.find(FactoryFinder.java:128)
        at javax.xml.ws.spi.Provider.provider(Provider.java:142)
        at javax.xml.ws.Service.<init>(Service.java:92)
        at org.me.calculator.ws.CalculatorWSService.<init>(CalculatorWSService.java:51)
        at org.me.calculator.CalculatorConsoleApp.main(CalculatorConsoleApp.java:26)

I went ahead and downloaded the corresponding source tree from svn: svn co https://svn.java.net/svn/jax-ws~sources/tags/JAXWS_2_2_6_u1_04052012/jaxws-ri .
The build.xml (under rt subdir) does indeed specify "source=1.5" attribute on the javac tag. But this, unfortunately, isn't enough; "target=1.5" must also be specified (i.e. that's what JAXB build script does).
To verify this I built with: ant -Dant.build.javac.target=1.5 dist and this produced a jaxws-rt.jar with JDK 1.5 class files.

This last requirement gives rise to a second issue - this one with JDK 6. The javac help here: http://docs.oracle.com/javase/6/docs/technotes/tools/windows/javac.html#... proclaims that specifying the source as "1.5" would set the target to the same value - so target need not be explicitly set. But, javac doesn't behave this way!

To complete the picture, JAX-WS also is missing to dependencies - activation.jar and jsr173_1.0_api.jar - to run on-top of JDK 1.5.

So, how do I open a bug report with the JAX-WS project?
Do I also file a bug with the javac subproject?

Thanks,
Opher.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jungicz
Offline
Joined: 2004-08-17

Hi,

can you check latest 2.2.6 patch release to see if problems if any still persist, please? you can grab it at: https://jax-ws.java.net/2.2.6-4/

> So, how do I open a bug report with the JAX-WS project?

if not, file a bug at http://java.net/jira/browse/JAX_WS

thanks,
--lukas

ophers
Offline
Joined: 2008-04-17

Thanks for your reply.
I did also check the latest release version 2.2.6-4, and it also happens there.
I opened a bug report: https://java.net/jira/browse/JAX_WS-1112
but Martin marked it resolved commenting that "JAXWS is not supposed to run on 1.5" and that he'd fix the docs to that affect.

I'd love for JAXWS to be distributed as java 1.5 compatible binaries.
What should I do with the bug report?

Regards.
Opher.