[jcifs] Hardcoded BASEREF
Allen, Michael B (RSCH)
Michael_B_Allen at ml.com
Fri Aug 23 14:00:37 EST 2002
Nope. That's really hardcoded in there. You need a new jar:
http://users.erols.com/mballen/jcifs-0.7.0b2.jar
And you'll need to bin/httpd stop resin, copy the new jar into resin-xx/lib, add another init parameter to the NetworkExplorer servlet XML section:
<init-param jcifs.http.baseref='http://mymachine:8080/examples/basic/servlet/'/>
and bin/httpd start resin again.
Oops.
> -----Original Message-----
> From: Christopher R. Hertel [SMTP:crh at ubiqx.mn.org]
> Sent: Thursday, August 22, 2002 11:44 PM
> To: Allen, Michael B (RSCH)
> Cc: jcifs at samba.org
> Subject: Re: [jcifs] Small issues with 0.7.0b2
>
> On Thu, Aug 22, 2002 at 10:57:56PM -0400, Allen, Michael B (RSCH) wrote:
> :
> > Wow, that was fast. Just put the jcifs jar in resin-xxx/lib and add that
> > XML stuff in the doc to the resin-xxx/conf/resin.conf. That's what I did
> > anyway. In fact I'll attach my config. This is set for running with
> > Mozilla and the url to point your browser at to look at
> > smb://miallen2/pub would be like:
> >
> > http://mymachine:8080/examples/basic/servlet/NetworkExplorer/miallen2/pub
>
> Of interest... If I leave off the share name and directory (that is, end
> with "NetworkExplorer") I get:
>
> Unknown host: ..__MSBROWSE__.<01>
>
> Also: The test fails. For some reason (perhaps I need the filter?) all
> of the shares are presented as URLs pointing to machine
> "miallen3.wfd.nyc.us.ml.com:8080" :)
> Digging into the Jar file, I find:
>
> TYLE>^A^@M<BASE
> HREF="http://miallen3.wfd.nyc.us.ml.com:8080/examples/basic/serv
>
> So you've got your URL hard-coded in the jar somewhere. Must be in the
> source... Yep, here it is:
>
> $ grep miallen3 */*
> http/NetworkExplorer.java: out.println( "<BASE
> HREF=\"http://miallen3.wfd.nyc.us.ml.com:8080/examples/basic/servlet/\"/>"
> );
>
> I don't know enough XML to know how to fix this...
>
> Send clues.
>
> Chris -)-----
>
> --
> Samba Team -- http://www.samba.org/ -)----- Christopher R. Hertel
> jCIFS Team -- http://jcifs.samba.org/ -)----- ubiqx development, uninq.
> ubiqx Team -- http://www.ubiqx.org/ -)----- crh at ubiqx.mn.org
> OnLineBook -- http://ubiqx.org/cifs/ -)----- crh at ubiqx.org
More information about the jcifs
mailing list