aspose file tools*
The moose likes BEA/Weblogic and the fly likes Urgent help neede -Unable to create SOAP connection factory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Urgent help neede -Unable to create SOAP connection factory" Watch "Urgent help neede -Unable to create SOAP connection factory" New topic
Author

Urgent help neede -Unable to create SOAP connection factory

Nagendra Reddy R
Greenhorn

Joined: Jan 24, 2008
Posts: 2
Hi ,

We are migrating axis webservices to Weblogic.
Migration is done.
Now we have to build new feature where JMS messages are the input to webservices.I am getting the folowing exception.
I have tried the following options
1)Used this in weblogic.xml
<weblogic-web-app>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
</weblogic-web-app>

2) Altered weblogic start up script and included class path
set JAVA_OPTIONS=-Djavax.xml.soap.SOAPConnectionFactory=org.apache.axis.soap.SOAPConnectionImpl -Djavax.xml.soap.MessageFactory=org.apache.axis.soap.MessageFactoryImpl -Djavax.xml.soap.SOAPFactory=org.apache.axis.soap.SOAPFactoryImpl

3) Added following contents in jaxm.properties file to lib directory of jre
javax.xml.soap.MessageFactory=org.apache.axis.soap.MessageFactoryImpl
javax.xml.soap.SOAPFactory=org.apache.axis.soap.SOAPFactoryImpl
javax.xml.soap.SOAPConnectionFactory=org.apache.axis.soap.SOAPConnectionImpl

4)Added 3 files in WEB-INF/classes/META-INF/services
like
a)javax.xml.soap.MessageFactory file have following entry
org.apache.axis.soap.MessageFactoryImpl
b)javax.xml.soap.SOAPConnectionFactory has org.apache.axis.soap.SOAPConnectionImpl
c)javax.xml.soap.SOAPFactory has org.apache.axis.soap.SOAPFactoryImpl


All the above options didnt work.
Some options work when I dont use Weblogic JNDI, but I have to use it as we need JMS in our application
Please let me know if any one has a different solution.
Thnaks in advance


javax.xml.soap.SOAPException: Unable to create SOAP connection factory: null
at javax.xml.soap.SOAPConnectionFactory.newInstance(SOAPConnectionFactor
y.java:47)
at com.edelia.ws.mde.base.EGBaseWSConnection.connect(EGBaseWSConnection.
java:92)
at com.edelia.ws.mde.base.EGBaseWSConnection.connect(EGBaseWSConnection.
java:69)
at com.edelia.ws.mde.request.EGMDEGetData.getDataToServerMDE(EGMDEGetDat
a.java:52)
at TestJmsGetData.doPost(TestJmsGetData.java:82)
at TestJmsGetData.doGet(TestJmsGetData.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
java.lang.Exception: com.edelia.ws.mde.base.EGBaseWSConnectionException: javax.x
ml.soap.SOAPException: Unable to create SOAP connection factory: null
at com.edelia.ws.mde.request.EGMDEGetData.getDataToServerMDE(EGMDEGetDat
a.java:74)
at TestJmsGetData.doPost(TestJmsGetData.java:82)
at TestJmsGetData.doGet(TestJmsGetData.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:971)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:402)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6350)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3635)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"Nagendra Reddy R",

Please check your private messages.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Satya Prasad
Greenhorn

Joined: Apr 22, 2008
Posts: 1
I'm also facing same issue . kindly can anyone give me the solution


thank you,
satya
Nagendra Reddy R
Greenhorn

Joined: Jan 24, 2008
Posts: 2
Hi,
You have to check remove unnessary jars and conflicting jars.
The webservices.jar should be removed from weblogic classpath and set the path to the jars of your webservices used.
If you are using eclipse as IDE there is a plugin called ClasspathChecker ,which will let you know the problem.

reagrds,
Nagendra Reddy
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"Nagendra Reddy R" and "prasad K T",
Please check your private messages regarding an important administrative matter.
-Ben
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Urgent help neede -Unable to create SOAP connection factory
 
Similar Threads
NoClassDefFoundError problem
Error JDBCExceptionReporter
NoClassDefFoundError problem
Problem after Weblogic 8.1 SP2 upgradation to SP4
EJB exception-NoSuchMethodError