JAVA WEBSERVICE CONTROL THROWS EXCEPTION when .net client is invoked java.net.MalformedURLException: unknown protocol: jms

(Doc ID 1055093.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle WebLogic Server - Version 8.1 and later
Information in this document applies to any platform.
***Checked for relevance on 28-Jan-2014***

Symptoms

A java application exposed an EJB implementation as a WebService on WLS 8.1 SP 6.

The Webservice is consumed by .Net wcf WebService. When the .Net client calls the jws, it receives the below exception:
"com.bea.wlw.runtime.core.control.SessionEJBControlImpl.context_onAcquire"

Customer is getting the below exception whenever the .net client(WebService) tries to invoke WebService -
29 Dec 2009 07:03:35,314 ERROR Util [ExecuteThread: '15' for queue: 'weblogic.kernel.Default'][]: Unable to construct URL: jms://DTPA-D-APP10:7501/weblogic.jws.jms.QueueConnectionFactory/jws.queue?URI=/apimgrWebSvc/apimgrWebSvc/DtpaWebSvc.jws

Throwable: java.net.MalformedURLException: unknown protocol: jms
Stack Trace:

java.net.MalformedURLException: unknown protocol: jms
at java.net.URL.<init>(URL.java:544)
at java.net.URL.<init>(URL.java:434)
at java.net.URL.<init>(URL.java:383)
at com.bea.wlw.runtime.core.util.Util.getCallbackJmsUrl(Util.java:964)
at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.getCallbackURL(ServiceHandleImpl.java:383)
at com.bea.wlw.runtime.jws.dispatcher.JwsDispClass.<init>(JwsDispClass.java:210)
at com.bea.wlw.runtime.jws.dispatcher.JwsDispFile.createPrimaryDispClass(JwsDispFile.java:52)
at com.bea.wlw.runtime.core.dispatcher.DispFile.<init>(DispFile.java:154)
at com.bea.wlw.runtime.jws.dispatcher.JwsDispFile.<init>(JwsDispFile.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.bea.wlw.runtime.core.dispatcher.DispUnit.loadDispFile(DispUnit.java:219)
at com.bea.wlw.runtime.core.dispatcher.DispUnit.<init>(DispUnit.java:153)
at com.bea.wlw.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:578)
at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.getDispUnit(HttpServerHelper.java:501)
at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpServerHelper.java:541)
at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
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:1077)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:7051)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3902)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2773)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms