[jcifs] AGAIN ! java.net.MalformedURLException: unknown proto col: smb

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Wed Dec 11 11:39:48 EST 2002


A few things have changed since we last connected Andrea.

1) The specific version of Java required is 1.3. In particular jCIFS uses the extended java.net.URL.set() method indroduced in Java 1.3. Previously I had thought this was introduced in Java 1.2 but I
was wrong. Depending on what support you need you can always use jcifs-0.6.7 which will work with Java 1.1.

2) There is a fundamental problem with using a java.net.URL protocol handler (jCIFS uses an SMB protocol handler internally for all SMB URL handling) and certain containers. The containers that do not
permit setting system properties will not work with jCIFS because the java.net.URL protocol handler registration requires setting the java.protocol.handler.pkgs System property. Please see a recent
thread about J2EE compliance for potential workarounds.

Otherwise, I'm afraid I'm not much help with the Servlet container stuff. I have used Resin on Linux without any issues. I tried and quickly dismissed Tomcat for a variety of reasons.

> -----Original Message-----
> From:	andrea.lanza at frameweb.it [SMTP:andrea.lanza at frameweb.it]
> Sent:	Tuesday, December 10, 2002 12:11 PM
> To:	jcifs at lists.samba.org
> Subject:	[jcifs] AGAIN ! java.net.MalformedURLException: unknown protocol: smb
> 
> Sorry to be so ........
> 
> Do you remember me ? I had the problem in object due to my use of java 1.1
> (Websphere Server)
> 
> Now I installed a tomcat server on windows platform, with Sun jdk
> 1.4.1_01-b01
> 
> I got exactly the same problem !
> 
> If I Invoke
>             Class.forName( "jcifs.Config" );
> 
> I don't get any Class not found exception doing this.
> 
> The question is: is there any method proper to java.net.URL in java 2 NOT
> PRESENT in java 1 ??
> 
> So I could try to invoke that method in order to see if I get a method not
> present exception or something like this..... (the old suspect of still
> using a "piece" of java 1 code...)
> 
> This becouse I actually don't have a JAVA 2 development environment...
> 
> About this point : what development tools do you suggest me ???? I always
> used IBM VisualAge for Java.
> 
> thanks in advance, Andrea
> 
> 
> 
> 




More information about the jcifs mailing list