facebook

ME 7.0 – Generating a JAX-WS Webservice is broken

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #294553 Reply

    I tried to generate a simple web service from a web service project. However, I keep getting this annoying NullPointerException. The web.xml did not get updated with the proper servlet mapping, a sun-jaxws.xml file was dropped in that was empty, and only the .wsdl file was generated (not the accompanying .xsd). I got the log entry:

    !ENTRY org.eclipse.core.jobs 4 2 2009-02-08 13:06:08.362
    !MESSAGE An internal error occurred during: “Generating JAX-WS Web Services”.
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.ws.jaxws.SunJAXWSFile.addEndpoints(SunJAXWSFile.java:33)
    at com.genuitec.eclipse.ws.jaxws.JAXWSJob.manageSunJAXWSXML(JAXWSJob.java:428)
    at com.genuitec.eclipse.ws.jaxws.JaxWSBUJob.manageWSDescriptors(JaxWSBUJob.java:160)
    at com.genuitec.eclipse.ws.jaxws.JaxWSBUJob.run(JaxWSBUJob.java:133)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    Here is my installation summary:

    *** Date:
    Sunday, February 8, 2009 2:05:09 PM EST

    ** System properties:
    OS=WindowsXP
    OS version=5.1.0
    Java version=1.6.0_06

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 7.0
    Build id: 7.0-20081201

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 7.0
    Build id: 7.0-20081201

    Eclipse Plug-in Development Environment

    Version: 3.4.1.r341_v20080731-7T7U0E9mlRIuGUYviF_VP
    Build id: M20080703-0800

    Eclipse Platform

    Version: 3.4.1.r341_v20080731-9I96EiDElYevwz-p1bP5z-NlAaP7vtX6Utotqsu
    Build id: M20080911-1700

    Eclipse Graphical Editing Framework GEF

    Version: 3.4.1.v20080806-67718083A56B4H2A3213573
    Build id: 200809101400

    Eclipse RCP

    Version: 3.4.100.r341_v20080814-989JESIEdAciFYfkZZsBfSwQ2341
    Build id: M20080703-0800

    Eclipse Java Development Tools

    Version: 3.4.1.r341_v20080709-0800-7o7tEAfEF_U5qyUgrb2HAp539P97
    Build id: M20080709-0800

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\Genuitec\MyEclipse 7.0\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.R34x_v20080731\eclipse_1115.dll
    -startup
    C:\Program Files\Genuitec\MyEclipse 7.0\../Common\plugins\org.eclipse.equinox.launcher_1.0.101.R34x_v20080819.jar
    -clean
    -configuration
    C:\Program Files\Genuitec\MyEclipse 7.0\configuration
    -vm
    C:\Program Files\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.6.0.006\bin\client\jvm.dll

    #294587 Reply

    Loyal Water
    Member

    Mike,
    Could you please list the steps or give us some tips to help us reproduce this issue at our end.

    Thanks.

    #294590 Reply

    sure, I started by creating a new Web Service Project, using the JAXWS framework. Next, I created the POJO for the SEI. Then, I created a new Web Service from the File -> New -> Other menu. I picked the MyEclipse WebService Icon, and created a WS from a Java Class using the bottom-up scenario. I picked the POJO, RPC style, checked the ‘Generate WSDL in project’ and left all the rest as defaults. After hittng the ‘Finish’ button, I got the NPE.

    #294656 Reply

    Any news on this item?

    #294676 Reply

    Loyal Water
    Member

    Hi,
    I have asked the dev team to look into this issue and they will get back to you with a reply asap.

    #294717 Reply

    Brian Fernandes
    Moderator

    Mike,

    Depending on your input class, you could have problems with the RPC style; if you can send us the POJO you used for the bottom up process, that will help analyze the issue. We are currently working on improving the error reporting so you see the primary cause for failure instead of the NPE you see now.

    As a test, can you try using document/literal instead of RPC?

    If you send in your POJO, please email it to support@genuitec.com ATTN Brian.

    Sorry for the inconvenience caused.

    #294720 Reply

    OK, Brian. I will send you the whole Eclipse project if that is OK.

    #294721 Reply

    Also, I have tried using document/bare and document/wrapped but no luck. I am still getting the NPE as described previously. I just sent you a .zip file of the whole Eclipse project.

    #294755 Reply

    Loyal Water
    Member

    FYI : We have received the .zip file. Brian will review it and get back to you asap.

    #294799 Reply

    Brian Fernandes
    Moderator

    Mike,

    I received the project and was able to generate the webservice using RPC, deploy and test it with the web services explorer. Is this the exactly the same project you are experiencing issues with or is this a smaller version? Are you choosing any other options besides the “Generate WSDL in project” option?

    As far as the WSDL goes, there is no need for an XSD (for this particular case), notice the <part> elements use the type attribute and not an element attribute linking to an element defined elsewhere.

    Do you see an error dialog popup when you run the generation process, is this same error logged each time? (suggest deleting the error log before running to make sure)

    #294863 Reply

    1) yes, this is the exact same project that I am having issues with.
    2) No, I am just using the generate WSDL in project only.
    3)Yes, it is the same error when running the generation process.

    #294914 Reply

    Brian Fernandes
    Moderator

    Mike,

    1) Can you delete your sun-jaxws.xml, WSDL and XSD files and try generating again?
    2) Can you try this in a non-maven project? There may be something wrong with your maven setup.

    As I said above, I was unable to reproduce the problem with the project you sent here so the problem could be something else wrong with your workspace.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: ME 7.0 – Generating a JAX-WS Webservice is broken

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