Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have a java web application using axis2 stub to call a .net webservice that receieves a string parameter. When I run the web application using tomcat server, it works fine.

But when I use Oracle weblogic server I get the following error :

org.apache.axis2.AxisFault: 
First Element must contain the local name, Envelope , but found html

What could be the cause to get this error? Please help me. I really need to fix this but I can't.

share|improve this question
1  
If it works in Tomcat my guess is some kind of classloading issue. Weblogic might load a different set of classes than Tomcat. You could try and to add a Weblogic.xml file to your WEB-INF folder, and in Weblogic..xml specify the classloader delegation. – Peter Liljenberg Jan 18 '12 at 6:22
See here for info: docs.oracle.com/cd/E15051_01/wls/docs103/webapp/… you're looking true prefer-web-inf-classes tag – Peter Liljenberg Jan 18 '12 at 6:22

1 Answer

Follow the steps @ http://axis.apache.org/axis2/java/core/docs/app_server.html for deploying axis2 onto weblogic

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.