ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Sliding into WebDAV
Subject:   Corrections for A Simple Example code
Date:   2005-04-25 04:30:50
From:   geetaChaurasia
Response to: Corrections for A Simple Example code

the sample code given does not work when used with in servlet. i am using WSAD to develop servlet and tomcat 5.0.28 as a server.
what could be the solution plz help.........


code snippet is
HttpURL hrl =new HttpURL("http://localhost:8080/webdav/");

hrl.setUserinfo("tomcat","tomcat");
System.out.print("inside test");
WebdavResource wdr = new WebdavResource(hrl);
System.out.print("inside test "+wdr.getPath());


the following error comes


[4/25/05 4:26:19:448 PDT] 246246c2 SystemOut O inside testinside test
[4/25/05 4:26:34:885 PDT] 246246c2 WebGroup E SRVE0026E: [Servlet Error]-[org.jdom.output.XMLOutputter: method <init>(Lorg/jdom/output/Format;)V not found]: java.lang.NoSuchMethodError: org.jdom.output.XMLOutputter: method <init>(Lorg/jdom/output/Format;)V not found
at org.apache.webdav.lib.BaseProperty.getPropertyAsString(BaseProperty.java:130)
at org.apache.webdav.lib.WebdavResource.processProperty(WebdavResource.java:4908)
at org.apache.webdav.lib.WebdavResource.setWebdavProperties(WebdavResource.java:1066)
at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:968)
at org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:912)
at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1894)
at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1301)
at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1320)
at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1408)
at org.apache.webdav.lib.WebdavResource.<init>(WebdavResource.java:290)
at test.FileUploadServlet.doPost(FileUploadServlet.java:122)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:872)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)




1 to 1 of 1
  1. Corrections for A Simple Example code
    2007-10-10 10:29:14  Mr._G [View]

1 to 1 of 1