[jcifs] java.net.MalformedURLException: unknown protocol: smb

Mats.Svensson at astrazeneca.com Mats.Svensson at astrazeneca.com
Thu Oct 24 19:39:54 EST 2002


Hi!

I try to use the NetworkExplorer servlet on: 
jcifs 0705b
resin 215
jdk 141_01
w2k sp3

but I keep getting the exception included below.

1) I can't find any documentation (other than the source) on 
how the URL (PathInfo) is supposed to be used, I guess it is 
http://servletContainerHost/NetworkExplorer/someHostIwantToExplore/Share


java.net.MalformedURLException: unknown protocol: smb
	at java.net.URL.<init>(URL.java:586)
	at java.net.URL.<init>(URL.java:476)
	at java.net.URL.<init>(URL.java:425)
	at jcifs.smb.SmbFile.<init>(SmbFile.java:401)
	at jcifs.http.NetworkExplorer.doGet(NetworkExplorer.java:421)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
	at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:9
6)
	at com.caucho.server.http.Invocation.service(Invocation.java:312)
	at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
	at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:221)
	at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
	at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
	at java.lang.Thread.run(Thread.java:536)

web.xml:
<web-app>
  <classpath id='WEB-INF/lib/jcifs-0.7.0b5.jar'/>
    <servlet>
        <servlet-name>NetworkExplorer</servlet-name>
        <servlet-class>jcifs.http.NetworkExplorer</servlet-class>
        <init-param>
            <param-name>jcifs.smb.client.domain</param-name>
            <param-value>ADOMAIN</param-value>
        </init-param>
        <init-param>
            <param-name>jcifs.netbios.wins</param-name>
            <param-value>192.168.1.32</param-value>
        </init-param>
    </servlet>
    <servlet-mapping>
        <servlet-name>NetworkExplorer</servlet-name>
        <url-pattern>/NetworkExplorer/*</url-pattern>
    </servlet-mapping>
</web-app>



More information about the jcifs mailing list