- This topic has 14 replies, 3 voices, and was last updated 15 years, 10 months ago by warish.
-
AuthorPosts
-
warishMemberI 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.NullPointerExceptionI 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 WorkbenchVersion: 6.6.0
Build id: 6.6.0-20081015Eclipse Project SDK
Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
Build id: M20080221-1800Eclipse Platform
Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
Build id: M20080221-1800Eclipse Java Development Tools
Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
Build id: M20080221-1800Eclipse RCP
Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
Build id: M20080221-1800Eclipse Plug-in Development Environment
Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
Build id: M20080221-1800Eclipse Graphical Editing Framework
Version: 3.3.2.v20080129
Build id: 20080221-1602Eclipse 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.frameworkThanks,
Warren
warishMemberAnyone have a clue?
Riyad KallaMemberWarren,
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.
warishMemberThis 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>
Brian FernandesModeratorWarren,
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.
warishMemberThere 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.
warishMemberWEB-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.
Brian FernandesModeratorWarren,
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.
warishMembererror:
!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>
Brian FernandesModeratorWarren,
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.
warishMemberCould 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
warishMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
Brian FernandesModeratorThis message has not been recovered.
warishMemberThis message has not been recovered.
-
AuthorPosts