facebook

Error during WsImport

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #281686 Reply

    hpoints
    Member

    I am running the add web service wizard. I specify my wsdl, j2ee 5 and jax-ws options. It seems ok with my wsdl, but when I hit finish, I get the following error. It seems like a java 1.4 jvm is trying to load a java 1.5 class. This is confusing because I am running the jvm included with MyEclipse blue which is 1.5.

    Any ideas..

    The following errors occurred while running WsImport. Generation aborted.
    Exception in thread “main” java.lang.UnsupportedClassVersionError: com/sun/tools/ws/WsImport (Unsupported major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:810)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:147)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:475)
    at java.net.URLClassLoader.access$500(URLClassLoader.java:109)
    at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:848)
    at java.security.AccessController.doPrivileged1(Native Method)
    at java.security.AccessController.doPrivileged(AccessController.java:389)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:371)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:572)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:442)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
    at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:90)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:239)

    #281724 Reply

    Brian Fernandes
    Moderator

    hpoints,

    A clarification, when running WsImport, MyEclipse uses the VM that is associated with your target server, not the VM that you run MyEclipse with.

    The WsImport tool is part of your server install and so it should be completely compatible with the VM shipped with your server.

    I assume this is WAS 6.1 with the WS feature pack; after configuring it, did you make any changes to it’s JDK? Can you check the JDK associated with that server (see the JDK preference page under the WAS 6.1 pref page) and ensure that is is the JDK shipped with the server?

    Hope this helps.

    #282189 Reply

    Brian Fernandes
    Moderator

    hpoints,

    We are getting ready for our next release and would like to make sure this issue is resolved. Could you let us know if you managed to get the tools working for you?

    We appreciate your support.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Error during WsImport

You must be logged in to post in the forum log in