For compatibility reasons I have to build Axis 1.4 skeleton classes from exiting an wsdl-file. I use the shipped wsdl2java ant-task from Axis 14.
I'm using MyEclipse 8.5 on Java SDK 1.6.0_18, I added the required libraries to my build path and everything goes fine.
Now I moved my normal project to a Apache Maven2 project, as I added the dependencies I get following warnings (~500):
Description Resource Path Location Type Access restriction: The constructor QName(String, String) is not accessible due to restriction on required library /usr/local/uvst/standard/jdk1.6.0_18/jre/lib/rt.jar
I already have read a similar question here but I don't agree with the answers at Access restriction on class due to restriction on required library rt.jar?.
Because in a normal Java project no
Access restriction on class due to restriction
warning appears.
The classpath setup in my normal Java project contains all libraries with are shipped with the latest distribution of Axis 1.4 (I know it's rather old).
The dependency section of my pom.xml:
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis-jaxrpc</artifactId>
<version>1.4</version>
</dependency>
The class QName is located in axis-jaxrpc.jar!
Is there a possibility to make things going right, without killing class-files from libraries or disable warning settings within the IDE?