facebook

New JAX-WS web client error

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

    mike nastav
    Participant

    Hello:
    I am trying to create a new web client using the built in JAX-WS. When I import the wsdl file I get an error about a package not being a valid package name. Then when I manually try and create the package it complains about the word “public”. Any idea why? Can I some how change the myEclipse settings to allow for the work public in a package? Or do I need to change something on my project? I can not change the wsdl its fixed in place. Thanks in advance for any help. Using myElcipse 10 and jdk 1.4 (older project).

    Attachments:
    You must be logged in to view attached files.
    #496108 Reply

    support-swapna
    Moderator

    Mike,

    Sorry that you are seeing this issue. Versions earlier than MyEclipse 2015 are no longer fully supported. We try and assist licensed users working with previous versions but no fixes will be made to those versions.

    MyEclipse 10.x is quite an older release and is unstable when compared with the newer releases. I strongly recommend you update to MyEclipse 2016, our latest release based on Eclipse Mars and take advantage of the several fixes and enhancements made since the MyEclipse 10.x release.

    You can download the latest MyEclipse 2016 installer from here : https://www.genuitec.com/products/myeclipse/download/

    Install it to a different location alongside your existing MyEclipse 10.x installation and import your projects. The MyEclipse Migration wizard will take care of the projects migration process. The license you currently hold is valid for MyEclipse 2016 as well.

    Let us know if you see any issues.

    –Swapna
    MyEclipse Support

    #496128 Reply

    mike nastav
    Participant

    Tried with 16, still same error. Invalid package name. ‘public’ is not a valid Java identifier. Can not create a package with the work public in it.

    #496234 Reply

    support-swapna
    Moderator

    Mike,

    Thank you for updating to MyEclipse 2016.Package name cannot contain Java reserved key words.This is a Java constraint which cannot be relaxed.’public’ is a reserved key word and so it cannot be used in the package name.

    Please refer to this link for the list of reserved words in Java : http://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html

    Please correct the package name and ensure no Java reserved key words are used.

    Hope this helps.Let us know if you have any questions.

    –Swapna
    MyEclipse Support

    #496262 Reply

    mike nastav
    Participant

    This helps a ton. I suspected it was a reserved word but your confirmation is what I needed. Another group is trying to force a package name containing the word public in a wsdl. Thanks yo for your help.

    #496274 Reply

    support-swapna
    Moderator

    Mike,

    Glad that we could help.
    Let us know if you see any issues with MyEclipse.

    –Swapna
    MyEclipse Support

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: New JAX-WS web client error

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