• Post Reply Bookmark Topic Watch Topic
  • New Topic

error while invoking axis AdminService in weblogic 8.1.3 environment

shanmugam vairavan
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ;
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
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
<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
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!