| Author |
error while invoking axis AdminService in weblogic 8.1.3 environment
|
shanmugam vairavan
Greenhorn
Joined: Nov 25, 2003
Posts: 3
|
|
Hi I created a simple jsp which invoke the axis AdminService This is my jsp <%@ page import="java.net.URL" %> <% String host = null ; // -h also -l (url) String port = null ; // -p String servlet = null ; // -s also -f (file) String protocol = null ; //System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol"); String systemProperty = System.getProperty("java.protocol.handler.pkgs"); System.out.println("System Property = " + systemProperty); /*String addedProperty = systemProperty + "|org.apache.axis.transport"; System.out.println("Added Value = " + addedProperty); System.setProperty("java.protocol.handler.pkgs", addedProperty); System.out.println("System Property = " + systemProperty);*/ URL url = new URL( "local:///AdminService" ); host = url.getHost(); port = "" + url.getPort(); servlet = url.getFile(); protocol = url.getProtocol(); System.out.println("URL = " + url); %> then i have packed the jsp as war file , the war file contain axis and its related jar , ant it also has weblogic.xml with the <container-descriptor> <prefer-web-inf-classes>true</prefer-web-inf-classes> </container-descriptor> and the war file contains a MANIFEST.MF which has all the classpath for axis jar inside the war. when i hit the jsp i am getting this error at weblogic 8.1.3 console. System Property = org.apache.axis.transport|weblogic.utils|weblogic.utils|weblog ic.net <Jan 30, 2005 2:47:20 PM IST> <Error> <HTTP> <BEA-101019> <[ServletContext(id=29 189676,name=test,context-path=/test)] Servlet failed with IOException java.net.MalformedURLException: unknown protocol: local 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 jsp_servlet.__admin._jspService(__admin.java:133) at weblogic.servlet.jsp.JspBase.service(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:463) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:6452) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java: 118) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3661) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2630) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) ################################ But if i set the classpath for all the jar in StartWeblogic.cmd it works fine , and iam getting the output. is there any other way to invoke the AdminService without setting the classpath externally. plz help me in solving the error.
|
 |
 |
|
|
subject: error while invoking axis AdminService in weblogic 8.1.3 environment
|
|
|