facebook

Error when generating web service in existing project

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

    warish
    Member

    I am getting the following error while generating a web service in an existing project:

    An internal error occurred during: “Generating JAX-WS Web Services”
    java.lang.NullPointerException

    I do not get this error if I create a service in an empty web service project. I am following the web service tutorial Calculator example and I am just trying to duplicate that service in my project. I have read some other threads and have tried the -clean solution.

    Here is the error log entry:

    !ENTRY org.eclipse.core.jobs 4 2 2008-12-10 11:01:56.728
    !MESSAGE An internal error occurred during: “Generating JAX-WS Web Services”.
    !STACK 0
    java.lang.NullPointerException
    at com.genuitec.eclipse.ws.jaxws.WSDLManager.parse(WSDLManager.java:54)
    at com.genuitec.eclipse.ws.jaxws.WSDLManager.copyTo(WSDLManager.java:98)
    at com.genuitec.eclipse.ws.jaxws.JaxWSBUJob.manageWSDL(JaxWSBUJob.java:186)
    at com.genuitec.eclipse.ws.jaxws.JaxWSBUJob.run(JaxWSBUJob.java:131)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

    Here is my MyEclipse info:

    *** Date:
    Wednesday, December 10, 2008 11:07:28 AM PST

    ** System properties:
    OS=MacOSX
    OS version=10.5.5
    Java version=1.5.0_16

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.6.0
    Build id: 6.6.0-20081015

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.6.0
    Build id: 6.6.0-20081015

    Eclipse Project SDK

    Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
    Build id: M20080221-1800

    Eclipse Platform

    Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
    Build id: M20080221-1800

    Eclipse Java Development Tools

    Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
    Build id: M20080221-1800

    Eclipse RCP

    Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
    Build id: M20080221-1800

    Eclipse Plug-in Development Environment

    Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
    Build id: M20080221-1800

    Eclipse Graphical Editing Framework

    Version: 3.3.2.v20080129
    Build id: 20080221-1602

    Eclipse startup command=-os
    macosx
    -ws
    carbon
    -arch
    x86
    -showsplash
    -launcher
    /Applications/Devolopement/eclipse/Eclipse.app/Contents/MacOS/eclipse
    -name
    Eclipse
    –launcher.library
    /Applications/Devolopement/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher.carbon.macosx_1.0.3.R33x_v20080118/eclipse_1023.so
    -startup
    /Applications/Devolopement/eclipse/Eclipse.app/Contents/MacOS/../../../plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -clean
    -keyring
    /Users/Warren/.eclipse_keyring
    -consoleLog
    -showlocation
    -product
    com.genuitec.myeclipse.product.ide
    -product
    com.genuitec.myeclipse.product.ide
    -product
    com.genuitec.myeclipse.product.ide
    -product
    com.genuitec.myeclipse.product.ide
    -vm
    /System/Library/Frameworks/JavaVM.framework

    Thanks,

    Warren

    #292035 Reply

    warish
    Member

    Anyone have a clue?

    #292387 Reply

    Riyad Kalla
    Member

    Warren,

    First off let me apologize for us missing this thread, didn’t mean to let that get buried in the rush of releasing 7.0. Secondly, let’s try and figure out what is different between the working project (new) and the busted project (existing).

    Can you clarify what kind of project the old one is? You can get a better (technical) idea of this by switching to the navigator view and opening the .project files and comparing them to see what is literally different between the two.

    #292388 Reply

    warish
    Member

    This is the project that works:

    
    <projectDescription>
        <name>WebServiceProject</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
            <buildCommand>
                <name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>org.eclipse.jdt.core.javabuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>org.eclipse.wst.validation.validationbuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
        </buildSpec>
        <natures>
            <nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
            <nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
            <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>
    </projectDescription>
    

    And this is the project that does not work:

    
    <projectDescription>
        <name>scanman1</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
            <buildCommand>
                <name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>org.eclipse.jdt.core.javabuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>org.eclipse.wst.validation.validationbuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>org.maven.ide.eclipse.maven2Builder</name>
                <arguments>
                </arguments>
            </buildCommand>
            <buildCommand>
                <name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
                <arguments>
                </arguments>
            </buildCommand>
        </buildSpec>
        <natures>
            <nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
            <nature>org.maven.ide.eclipse.maven2Nature</nature>
            <nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
            <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>
    </projectDescription>
    
    #292396 Reply

    Brian Fernandes
    Moderator

    Warren,

    Do you see this error if you uncheck the “Generate WSDL in project” option?

    Does your 2nd project have a <Project>/WebRoot/WEB-INF folder or have you customized this in any way? I believe the WSDL generation / copy into your project is failing for some reason, causing issues with further generation.

    #292400 Reply

    warish
    Member

    There is no error if I uncheck “Generate WSDL in project” option. A sun-jaxws.xml does get generated. Yes my project is set-up with a /WebRoot/WEB-INF folder.

    #292401 Reply

    warish
    Member

    WEB-INF contains a spring applicationContext.xml file, the web.xml file and a file I use for security called scanman.hive. I removed everything except web.xml and I still get the error.

    #292406 Reply

    Brian Fernandes
    Moderator

    Warren,

    Before generating the service, can you clear out your error log and observe if any additional errors are being logged besides the one you mentioned in your first post?
    I assume you are looking at bottom up generation and generating using a simple Calculator class from the scanman1 project.

    Also, can you please paste the contents of your .mymetadata file here? This file is in your project root, it may be hidden due to a Package / Project explorer filter.

    #292432 Reply

    warish
    Member

    error:

    
    !ENTRY org.eclipse.core.jobs 4 2 2008-12-18 08:43:19.187
    !MESSAGE An internal error occurred during: "Generating JAX-WS Web Services".
    !STACK 0
    java.lang.NullPointerException
        at com.genuitec.eclipse.ws.jaxws.WSDLManager.parse(WSDLManager.java:54)
        at com.genuitec.eclipse.ws.jaxws.WSDLManager.copyTo(WSDLManager.java:98)
        at com.genuitec.eclipse.ws.jaxws.JaxWSBUJob.manageWSDL(JaxWSBUJob.java:186)
        at com.genuitec.eclipse.ws.jaxws.JaxWSBUJob.run(JaxWSBUJob.java:131)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
    

    .mymetadata

    <?xml version="1.0" encoding="UTF-8"?>
    <project-module
      type="WEB"
      name="scanman1"
      id="myeclipse.1228000024115"
      context-root="/scanman1"
      j2ee-spec="5.0"
      archive="scanman1.war">
      <attributes>
        <attribute name="webrootdir" value="WebRoot" />
      </attributes>
    </project-module>
    
    
    #292457 Reply

    Brian Fernandes
    Moderator

    Warren,

    Could you please confirm that you are generating from a calculator class that exists in the scanman1 project? Have you made any changes to the class specified in the tutorial? Also, a delegate class should be generated before the operation fails, does this happen?
    Are both your projects in the same workspace – what is the file system path of the scanman1 project?

    I must admit that I have no idea why this could be failing in your particular project. Would it be possible for you to send a copy of your project (minus any files / resources that are sensitive) to support@genuitec.com with ATTN Brian as the subject?
    Sorry for the inconvenience caused, we are trying to get to the bottom of this asap.

    #292483 Reply

    warish
    Member

    Could you please confirm that you are generating from a calculator class that exists in the scanman1 project?

    Yes

    Have you made any changes to the class specified in the tutorial?

    It is in a different package

    Also, a delegate class should be generated before the operation fails, does this happen?

    Yes

    Are both your projects in the same workspace

    Yes

    – what is the file system path of the scanman1 project?

    /Users/Warren/Development/eclipse/scanman1

    I will send you the project

    #292732 Reply

    warish
    Member

    This message has not been recovered.

    #292780 Reply

    Riyad Kalla
    Member

    This message has not been recovered.

    #293078 Reply

    Brian Fernandes
    Moderator

    This message has not been recovered.

    #293112 Reply

    warish
    Member

    This message has not been recovered.

Viewing 15 posts - 1 through 15 (of 15 total)
Reply To: Error when generating web service in existing project

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