• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

error while invoking axis AdminService in weblogic 8.1.3 environment

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic