commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Shifman <mark.shif...@yale.edu>
Subject [VFS] smb error with tomcat5.5.16
Date Tue, 25 Apr 2006 15:10:44 GMT
Hi:
I have been using vfs to get to an smb file serv and it works great
with tomcat 5.0.19 (and struts).

String smbdigexmldir = context.getInitParameter("smbdigexmldir");
FileSystemManager fsManager = VFS.getManager();
FileObject digeOutput = fsManager.resolveFile(smbdigexmldir);
if (digeOutput.getType() == FileType.FOLDER)       //error here
...
When I use the  code on Tomcat5.5.16 using the simple code above I get:
org.apache.commons.vfs.FileSystemException: Could not determine the type 
of file "smb://name:pw@host/dige/DIGE OUTPUT".
        at 
org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1235)
        at 
org.apache.commons.vfs.provider.AbstractFileObject.getType(AbstractFileObject.java:401)
        at 
org.ycmi.prot.ypresults.actions.SUMainAction.merge_mascot_decyder(SUMainAction.java:345)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
        at 
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:160)
        at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
        at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
        at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
        at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:430)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.ycmi.filters.LogonvalidFilter.doFilter(LogonvalidFilter.java:70)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: jcifs.smb.SmbAuthException: Logon failure: unknown user name 
or bad password.
        at jcifs.smb.SmbTransport.checkStatus(SmbTransport.java:492)
        at jcifs.smb.SmbTransport.send(SmbTransport.java:603)
        at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:264)
        at jcifs.smb.SmbSession.send(SmbSession.java:223)
        at jcifs.smb.SmbTree.treeConnect(SmbTree.java:144)
        at jcifs.smb.SmbFile.connect(SmbFile.java:792)
        at jcifs.smb.SmbFile.connect0(SmbFile.java:762)
        at jcifs.smb.SmbFile.queryPath(SmbFile.java:1168)
        at jcifs.smb.SmbFile.exists(SmbFile.java:1250)
        at jcifs.smb.SmbFile.isDirectory(SmbFile.java:1323)
        at 
org.apache.commons.vfs.provider.smb.SmbFileObject.createSmbFile(SmbFileObject.java:84)
        at 
org.apache.commons.vfs.provider.smb.SmbFileObject.doAttach(SmbFileObject.java:64)
        at 
org.apache.commons.vfs.provider.AbstractFileObject.attach(AbstractFileObject.java:1221)
        ... 32 more

Tomcat5.5.16 uses jre1.5.  Am I somehow missing some common library?  
Any other ideas?
Thanks in advance.

-- 
mas


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message