Hi,
Edit ./wsdl-first-cxfse-su/pom.xml,
add
<exclusions>
<exclusion>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
</exclusion>
</exclusions>
For servicemix-cxf-se dependency.
But if your jdk shipped with jaxws 2.0 api, then this fix doesn't work,
you need create endorse folder for your jdk and put jaxws-api 2.1 jar in it.
I notice you are are windows.
I use sun jdk 1.6.0_06 on linux but can't reproduce the error you see.
Can you try with jdk 1.5 on your platform?
Freeman
vkrejcirik wrote:
So, in dependency tree in CXF SE is jaxws-api 2.1-1.
In section for CXF BC is this: javax.xml.ws:jaxws-api:jar:2.0:compile
(version managed from 2.1-1).
In section CXF SA is javax.xml.ws:jaxws-api:jar:2.0:compile for
org.apache.servicemix:servicemix-cxf-se.
.
/**************************************/
Best regards / S pozdravem
Vladislav Krejčiřík
http://www.vkrejcirik.info
Gert Vanthienen napsal(a):
Vladislav,
Could you try running mvn dependency:tree? This will give you a tree
of the dependencies of your project and it should give you an idea of
where this version of jaxws-api is coming from.
Regards,
Gert
vkrejcirik schreef:
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