You're missing jdom.jar in your classpath / WAR.

-John


[EMAIL PROTECTED] wrote:
I am trying to create a Webdavresource in my client code:
(as shown in the example at
http://wiki.apache.org/jakarta-slide/CreateWebDavResource)

HttpURL httpurl = new HttpURL("http://localhost:16080/slide/files";);
httpurl.setUserinfo("operator","operator");
WebdavResource wdr = new WebdavResource(httpurl);

and I get the following exception:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/jdom/input/DOMBuilder
        at
org.apache.webdav.lib.BaseProperty.getPropertyAsString(BaseProperty.java:129)
        at
org.apache.webdav.lib.WebdavResource.processProperty(WebdavResource.java:4974)
        at
org.apache.webdav.lib.WebdavResource.setWebdavProperties(WebdavResource.java:1075)
        at
org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:977)
        at
org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:921)
        at
org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1920)
        at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1312)
        at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1334)
        at
org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1422)
        at
org.apache.webdav.lib.WebdavResource.<init>(WebdavResource.java:284)
        at mil.oni.slide.test.SlideTest.visitAllFiles(SlideTest.java:159)
        at mil.oni.slide.test.SlideTest.visitAllFiles(SlideTest.java:135)
        at mil.oni.slide.test.SlideTest.main(SlideTest.java:92)

I do not think it is really a class not found but something else going on.

I use DAVExplorer and login into http://localhost:16080/slide/files using
operator/operator with no problem.  I can also create a collection and add
a file using DAVExplorer.

Any idea what is going on in my client code or what I might look at to try
and debug/solve?
Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
John Rousseau
Archivas, Inc.
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to