I have a maven project where I use the jaxws-maven-plugin as follows:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>1.12</version>
<executions>
<execution>
<goals>
<goal>wsimport</goal>
</goals>
</execution>
</executions>
<configuration>
<wsdlDirectory>src/main/wsdl</wsdlDirectory>
<wsdlFiles>
<wsdlFile>MyService.wsdl</wsdlFile>
</wsdlFiles>
<sourceDestDir>src/main/java</sourceDestDir>
<extension>true</extension>
</configuration>
</plugin>
The project runs with jdk1.5.0_22 and jboss 4.2.2.GA. The problem that I have is that the jaxws-maven-plugin generates code which is not compatible with jdk1.5.0_22 anymore. As a consequence, I get the following error at compilation:
cannot find symbol : method getPort(javax.xml.namespace.QName,java.lang.Class<com.example.MyService>,javax.xml.ws.WebServiceFeature[]) location: class javax.xml.ws.Service
The project has to run with the above configuration (jdk1.5.0_22 and jboss 4.2.2.GA) under any circumstances, so I cannot upgrade to jdk1.6.
Is there any way I can overcome this issue?
Thanks in advance for your help.