- This topic has 5 replies, 2 voices, and was last updated 8 years, 9 months ago by support-swapna.
-
AuthorPosts
-
Carlos S. ZamudioParticipantHi,
I’m struggling to remember what causes this problem when creating a Web Service via the MyEclipse menu option for generating a web service. I’m following exactly the strategy outlined in your tutorial and was able to do this fine on previous projects, but now I’m running into the following error:An internal error occurred during: "Generating JAX-WS Web Services". runtime modeler error: Wrapper class com.myco.server.impl.jaxws.GetHits is not found. Have you run APT to generate them?
The .apt_generated directory is created, but the jaxws subdirectory empty.
I’m using:
JavaEE 6.0
JAX-WS 2.1
JSTL 1.2.1
MyEclispeIDE Version: 2015 Stable 2.0Any hints would be appreciated.
Carlos S. Zamudio
support-swapnaModeratorCarlos,
Sorry that you are seeing this issue.
I assume you are trying bottom-up WS generation and following this tutorial : https://www.genuitec.com/products/myeclipse/learning-center/ws/jax-ws-web-services-clients-tutorial/
Can you tell me how you setup your web service project? Did you set it up with the web service project wizard or was this a JavaEE 6 web project?
If you go to your project properties > Java Compiler > Annotation Processing is Annotation processing enabled? On the Annotation Processing > Factory Path page, you should see the following: MYECLIPSE_WS_TOOLS_HOME/webservices-tools.jar
Do you see any errors logged in the Error Log view when you run the bottom up process?
Please clean build the project and check if the classes are generated in the .apt-generated folder.
If the issue persists, please switch to a new workspace, create a web service project , replicate the issue and send us the .log file located at <workspace dir>/.metadata/.log for further investigation.
Let us know how it works.
–Swapna
MyEclipse Support
Carlos S. ZamudioParticipantHello Swapna,
Thanks for the prompt response.
Yes, I am performing the bottom up WS generation, and I created the service from the Web Service project wizard. The project properties does have Annotation enabled with the appropriate link to the webservices.tool.jar.
Here is the error message from the Error Log:
eclipse.buildId=13.0.0-20150518 Stable
java.version=1.7.0_45
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86org.eclipse.jdt.apt.core
Warning
Wed Feb 17 09:24:38 PST 2016
Unexpected failure running APT on the file(s): RetrieveContent.java, SearchUtils.java, RDBMSearchImplDelegate.java, RDBMSearchImpl.java, MySQLUtils.java, MyContextListenerClass.java, MemoryTimerTask.java, RDBMSearchSourceField.javacom.sun.tools.ws.wscompile.AbortException
at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.onError(WebServiceAP.java:224)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.generateWrappers(WebServiceWrapperGenerator.java:195)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.processMethod(WebServiceWrapperGenerator.java:125)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitMethodDeclaration(WebServiceVisitor.java:435)
at org.eclipse.jdt.apt.core.internal.declaration.MethodDeclarationImpl.accept(MethodDeclarationImpl.java:45)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.processMethods(WebServiceVisitor.java:374)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.postProcessWebService(WebServiceVisitor.java:331)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceWrapperGenerator.postProcessWebService(WebServiceWrapperGenerator.java:100)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:147)
at org.eclipse.jdt.apt.core.internal.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:46)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.runAPTInMixedMode(APTDispatchRunnable.java:524)
at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.build(APTDispatchRunnable.java:680)
at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.access$1(APTDispatchRunnable.java:675)
at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable$1.run(APTDispatchRunnable.java:273)
at org.eclipse.jdt.apt.core.internal.env.BuildEnv$CallbackRequestor.acceptBinding(BuildEnv.java:609)
at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:938)
at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:585)
at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:896)
at org.eclipse.jdt.apt.core.internal.env.BaseProcessorEnv.createASTs(BaseProcessorEnv.java:857)
at org.eclipse.jdt.apt.core.internal.env.BuildEnv.createASTs(BuildEnv.java:356)
at org.eclipse.jdt.apt.core.internal.env.AbstractCompilationEnv.newBuildEnv(AbstractCompilationEnv.java:111)
at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.build(APTDispatchRunnable.java:283)
at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.run(APTDispatchRunnable.java:225)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
at org.eclipse.jdt.apt.core.internal.APTDispatchRunnable.runAPTDuringBuild(APTDispatchRunnable.java:150)
at org.eclipse.jdt.apt.core.internal.AptCompilationParticipant.processAnnotations(AptCompilationParticipant.java:193)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.processAnnotations(AbstractImageBuilder.java:630)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:341)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:61)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:256)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:175)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:496)
at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:415)
at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:305)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)Thank you for your attention.
Carlos S. Zamudio
support-swapnaModeratorCarlos,
Thank you for the details.
1. Can you please clarify if the class has overloaded methods? If possible, please check if the issue persists with a class without overloaded methods.
2. I assume you have no trouble generating web service with the example discussed (Calculator Service) in the tutorial. If you have no trouble with the example project, then please send us your project files to help us investigate further.–Swapna
MyEclipse Support
Carlos S. ZamudioParticipantThank you Swapna. Your hint about overloaded methods was the right one. Once I resolved this, I was able to build the Web Service. It would have taken me a while before I tried to explore this possibility.
Thanks again,
Carlos S. Zamudio
support-swapnaModeratorCarlos,
Glad that it works.
Let us know if you see any issues.–Swapna
MyEclipse Support -
AuthorPosts