aspose file tools*
The moose likes Web Services and the fly likes HttpSOAPConnectionFactory not found 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 » Java » Web Services
Bookmark "HttpSOAPConnectionFactory not found" Watch "HttpSOAPConnectionFactory not found" New topic
Author

HttpSOAPConnectionFactory not found

Navin Keswani
Greenhorn

Joined: Jun 08, 2004
Posts: 17
Hi Guys,

I am getting the following error below when I am trying to create a simple SOAPConnection.

I have no clue why is it looking for HttpSOAPConnectionFactory when I am not even using it. I just use the simple SOAPConnection.

The code is very simple i.e just creating a SOAPConection.

The below code I have written it in a Managed Bean. We are using JSF as the framework.

try{
SOAPConnectionFactory scFactory = SOAPConnectionFactory.newInstance();
con = scFactory.createConnection();
}catch (Exception e) {
System.out.println("ERROR: There was a problem in opening a connection.");
e.printStackTrace();
}

Would Appreciate any help on this.

javax.xml.soap.SOAPException: Unable to create SOAP connection factory: Provider com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnectionFactory not found
at javax.xml.soap.SOAPConnectionFactory.newInstance()Ljavax.xml.soap.SOAPConnectionFactory;(Unknown Source)
at com.gaic.controller.DCView.runManuscriptAction(DCView.java:89)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
at javax.faces.component.UICommand.broadcast(UICommand.java:106)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)


Thanks,
Navin Keswani
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39541
    
  27
SOAPConnection is just an interface - HttpSOAPConnection provides the actual implementation class for SOAP calls over HTTP.

It sounds as if you're missing a jar file. SOAPConnection is probably in "saaj.jar", but that jar doesn't contain the Sun classes. Hunt around for a jar file that contains the com.sun.xml.messaging.saaj package, and make sure it's in your classpath.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpSOAPConnectionFactory not found
 
Similar Threads
ExceptionInInitializerError
Blank page on backing bean exception
Component ID frm1_window viewid has already been found in the view
XMLStreamReaderException while consuimg peoplesoft webservice in JSF application
Weblogic StuckThreadTimeOut