troubleshooting Question

SOAP impl error in Java 6

Avatar of numtech
numtech asked on
Java EEWeb ComponentsWeb Languages and Standards
6 Comments1 Solution1121 ViewsLast Modified:
Hello,
I am making a J2SE client which can communicate with J2EE Server using webservices.
but when running my client i have this error:
com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl cannot be cast to com.sun.xml.messaging.saaj.soap.MessageImpl

Apparently its a bug in SAAj-impl in java 6 (but i am using java7 with Java6 compatibility in my Eclipse) :
http://java.net/jira/browse/SAAJ-19

So i have change my pom.xml like this:
		<dependency>
			<groupId>com.sun.xml.rpc</groupId>
			<artifactId>jaxrpc-impl</artifactId>
			<version>1.1.3_01</version>
		</dependency>
		<dependency>
			<groupId>javax.activation</groupId>
			<artifactId>activation</artifactId>
			<version>1.1.1</version>
		</dependency>
		<dependency>
			<groupId>com.sun.xml.messaging.saaj</groupId>
			<artifactId>saaj-impl</artifactId>
			<version>1.3</version>
		</dependency>

		<dependency>
			<groupId>javax.mail</groupId>
			<artifactId>mail</artifactId>
			<version>1.4.1</version>
		</dependency>

But i doesn't solved the problem. Maybe the buged saaj-impl is still used.
How can i desactivate the wrong saaj-impl and forced to use saaj-impl 1.3?

thanks
ASKER CERTIFIED SOLUTION
numtech

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros