Hi, I'm using JDK 1.6 update 11, it's the latest version, I think. In pom.xml is jaxws-api 2.1-1, but when I run 'mvn install', it downloads jaxws-api 2.0.

/**************************************/
Best regards / S pozdravem
Vladislav Krejčiřík

http://www.vkrejcirik.info



Freeman Fang napsal(a):
Hi,
You are using early version of JDK 1.6, right? which ships with jaxws 2.0 api, but what we need here is jaxws 2.1 api.
Try to use JDK 1.5 or latest JDK 1.6.

Freeman

vkrejcirik wrote:
Hi, I have SMX 3.3 and I try to deploy cxf-wsdl-first from examples by mvn command. I get this error:

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
C:\Java\apache-servicemix-3.3\examples\cxf-wsdl-first\wsdl-first-cxfse-su\target\jaxws\org\apache\se rvicemix\samples\wsdl_first\PersonService.java:[74,20] cannot find symbol symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.servicemix.samples.wsd
l_first.Person>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service



C:\Java\apache-servicemix-3.3\examples\cxf-wsdl-first\wsdl-first-cxfse-su\target\jaxws\org\apache\se rvicemix\samples\wsdl_first\PersonService.java:[74,20] cannot find symbol symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.servicemix.samples.wsd
l_first.Person>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
C:\Java\apache-servicemix-3.3\examples\cxf-wsdl-first\wsdl-first-cxfse-su\target\jaxws\org\apache\se rvicemix\samples\wsdl_first\PersonService.java:[74,20] cannot find symbol symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.servicemix.samples.wsd
l_first.Person>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service


at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor
.java:579)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifec
ycleExecutor.java:499)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.
java:478)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultL
ifecycleExecutor.java:330)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleE
xecutor.java:291)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java
:142)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure C:\Java\apache-servicemix-3.3\examples\cxf-wsdl-first\wsdl-first-cxfse-su\target\jaxws\org\apache\se rvicemix\samples\wsdl_first\PersonService.java:[74,20] cannot find symbol symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<org.apache.servicemix.samples.wsd
l_first.Person>,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service


at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516) at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor
.java:558)
       ... 16 more


Reply via email to