[jcifs] JCIFS with Windows Vista / IE 7
shibaram
dunumania at yahoo.co.in
Mon Jan 5 23:42:12 GMT 2009
I tried that way too.
I am using jcifs-1.3.1.jar.
I have tried all the ways.. Setting the System property
as
-Djcifs.properties=C:\Workspace\JCIFS\WebContent\WEB-INF\opt\jcifs.properties
in the tomcat (version 6) command line system proerty setup fileds. (By
setting under Java options: by editing the "Java" tab running "tomcat6w.exe"
file existing under <TOMCAT_HOME>/bin/ )
Tried also creating a own Filter class extending from NtlmHttpFilter as
below code:
public class NtlmCustomisedHttpFilter extends NtlmHttpFilter {
public void init( FilterConfig filterConfig ) throws ServletException {
super.init(filterConfig);
Config.setProperty( "jcifs.smb.lmCompatibility", "3" );
String propFile = filterConfig.getInitParameter("jcifs.properties");
System.setProperty( "jcifs.properties", propFile );
// Config.setProperty("jcifs.properties", propFile);
}
}
and used this Filter and passed the fully absolute path
(C:\Workspace\JCIFS\WebContent\WEB-INF\opt\jcifs.properties) of the property
file to the init-param in the filter.
But either setting the jcifs.properties from the Filter class or in the
Tomcat System property setup config.
Both does not work..
I am still getting the error as below:
jcifs.smb.SmbException: A domain was not specified
at jcifs.smb.SmbSession.getChallengeForDomain(SmbSession.java:90)
at jcifs.http.NtlmHttpFilter.negotiate(NtlmHttpFilter.java:157)
at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:121)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Thread.java:595)
Any help, is appreciated.
Thanks
Shibaram
Caldarale, Charles R wrote:
>
>> From:
>> jcifs-bounces+chuck.caldarale=unisys.com at lists.samba.org
>> [mailto:jcifs-bounces+chuck.caldarale=unisys.com at lists.samba.o
>> rg] On Behalf Of shibaram
>> Subject: Re: [jcifs] JCIFS with Windows Vista / IE 7
>>
>> I tried setting 1st time as
>> -Djcifs.properties=/WEB-INF/opt/jcifs.properties
>
> That won't work, since you're specifying an absolute path, and it's
> unlikely you have a /WEB-INF at root. You can use the full path
> (something like
> $TOMCAT_HOME/webapps/[appName]/WEB-INF/opt/jcifs.properties), but note
> that this won't work if your app is deployed as a .war file.
>
> Better that you should put the jcifs.properties somewhere outside of the
> webapp and point the system property to that location.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete the e-mail
> and its attachments from all computers.
>
>
--
View this message in context: http://www.nabble.com/JCIFS-with-Windows-Vista---IE-7-tp6057570p21301544.html
Sent from the Samba - jcifs mailing list archive at Nabble.com.
More information about the jcifs
mailing list