Re: httpexception when creating instance of webdavresource
hi slide-users ok, i realized that i can activate the debug-loglevel for the jakarta http-client... therefore i can provide a better problem-report. when i try to get an instance of webdavresource i get the following error from tomcat: 425 [main] DEBUG httpclient.wire - HTTP/1.1 501 Method PROPFIND is not defined in RFC 2068 and is not supported by the Servlet API [\r][\n] is this a version-problem or a missing-jar-problem? the same app runs on my own machine (tomcat 5.x) just fine. on tomcat 4.1.27 at the isp i get this error. i also read in the group-archive that other users had the same problem with exactly the same tomcat-version... any suggestions? stefan Ingo Brunberg wrote: here's the stacktrace of the exception, how can i make a session-trace? tcpmon (part of Axis), ethereal, qdpf, ... The stacktrace does not help much indeed. Ingo stefan 46 [main] INFO ch.previon.deponejo.slide.WebDavClient - WebDAV-Client erstellen 268 [main] ERROR ch.previon.deponejo.slide.WebDavClient - FEHLER! Ein HTTP-Fehler ist aufgetreten! org.apache.commons.httpclient.HttpException at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3430) at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3386) at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:967) at org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:912) at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1867) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1277) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1296) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1382) at org.apache.webdav.lib.WebdavResource.init(WebdavResource.java:290) at ch.previon.deponejo.slide.WebDavClient.init(WebDavClient.java:63) at ch.previon.deponejo.test.SlideTest.main(SlideTest.java:44) Ingo Brunberg wrote: Stacktrace, trace of the session? hi slide-users i've developed a java-class based on the slide-client-api that acts as a webdav-client on a slide-server. until now i had my java-class in eclipse and it connects on a slide-server in the network (other box). works fine. now i'm trying to deploy this class in a jar (with all libs and so on) to an external server and i get a http-exception as soon as i create an instance of webdavresource. the slide-server runs on the same machine as the jar-app. the strange thing is that i'm working with values out of a config-file - so i just changed config-values after deployment. additionally i can connect with the cli-client of slide and the browser to this slideserver. but the jar-app on the same box throws the exception. i tried with 127.0.0.1 as well as the official ip-number. any suggestions? greetings stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: httpexception when creating instance of webdavresource
here are already more news to my issue: - on my internal tomcat 5 i have to create a httpurl with 1. user 2. pwd 3. host 4. port -- no path! - on the tomcat 4 the connection fails like this. however, it succeeds when i make the connection like this: 1. user 2. pwd 3. host 4. port 5. path (/slide) to keep things confusing, the second kind of connection fails on my internal tomcat 5! additionally, both slide-installations are under the tomcat-host localhost as context-path /slide and on both tomcats is the empty context-path the standard-tomcat-page. therefore in my head rises the question if my internal tomcat5 has another webdav-server (tomcat-own?) installed that enables the connection without path??? greetings stefan Stefan Burkard wrote: hi slide-users ok, i realized that i can activate the debug-loglevel for the jakarta http-client... therefore i can provide a better problem-report. when i try to get an instance of webdavresource i get the following error from tomcat: 425 [main] DEBUG httpclient.wire - HTTP/1.1 501 Method PROPFIND is not defined in RFC 2068 and is not supported by the Servlet API [\r][\n] is this a version-problem or a missing-jar-problem? the same app runs on my own machine (tomcat 5.x) just fine. on tomcat 4.1.27 at the isp i get this error. i also read in the group-archive that other users had the same problem with exactly the same tomcat-version... any suggestions? stefan Ingo Brunberg wrote: here's the stacktrace of the exception, how can i make a session-trace? tcpmon (part of Axis), ethereal, qdpf, ... The stacktrace does not help much indeed. Ingo stefan 46 [main] INFO ch.previon.deponejo.slide.WebDavClient - WebDAV-Client erstellen 268 [main] ERROR ch.previon.deponejo.slide.WebDavClient - FEHLER! Ein HTTP-Fehler ist aufgetreten! org.apache.commons.httpclient.HttpException at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3430) at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3386) at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:967) at org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:912) at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1867) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1277) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1296) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1382) at org.apache.webdav.lib.WebdavResource.init(WebdavResource.java:290) at ch.previon.deponejo.slide.WebDavClient.init(WebDavClient.java:63) at ch.previon.deponejo.test.SlideTest.main(SlideTest.java:44) Ingo Brunberg wrote: Stacktrace, trace of the session? hi slide-users i've developed a java-class based on the slide-client-api that acts as a webdav-client on a slide-server. until now i had my java-class in eclipse and it connects on a slide-server in the network (other box). works fine. now i'm trying to deploy this class in a jar (with all libs and so on) to an external server and i get a http-exception as soon as i create an instance of webdavresource. the slide-server runs on the same machine as the jar-app. the strange thing is that i'm working with values out of a config-file - so i just changed config-values after deployment. additionally i can connect with the cli-client of slide and the browser to this slideserver. but the jar-app on the same box throws the exception. i tried with 127.0.0.1 as well as the official ip-number. any suggestions? greetings stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: httpexception when creating instance of webdavresource
You give no information which URL you try to connect to. Perhaps Slide is not running or configured correctly. Did you try the same address with another WebDAV client like cadaver or DAVExplorer? Ingo hi slide-users ok, i realized that i can activate the debug-loglevel for the jakarta http-client... therefore i can provide a better problem-report. when i try to get an instance of webdavresource i get the following error from tomcat: 425 [main] DEBUG httpclient.wire - HTTP/1.1 501 Method PROPFIND is not defined in RFC 2068 and is not supported by the Servlet API [\r][\n] is this a version-problem or a missing-jar-problem? the same app runs on my own machine (tomcat 5.x) just fine. on tomcat 4.1.27 at the isp i get this error. i also read in the group-archive that other users had the same problem with exactly the same tomcat-version... any suggestions? stefan Ingo Brunberg wrote: here's the stacktrace of the exception, how can i make a session-trace? tcpmon (part of Axis), ethereal, qdpf, ... The stacktrace does not help much indeed. Ingo stefan 46 [main] INFO ch.previon.deponejo.slide.WebDavClient - WebDAV-Client erstellen 268 [main] ERROR ch.previon.deponejo.slide.WebDavClient - FEHLER! Ein HTTP-Fehler ist aufgetreten! org.apache.commons.httpclient.HttpException at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3430) at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3386) at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:967) at org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:912) at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1867) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1277) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1296) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1382) at org.apache.webdav.lib.WebdavResource.init(WebdavResource.java:290) at ch.previon.deponejo.slide.WebDavClient.init(WebDavClient.java:63) at ch.previon.deponejo.test.SlideTest.main(SlideTest.java:44) Ingo Brunberg wrote: Stacktrace, trace of the session? hi slide-users i've developed a java-class based on the slide-client-api that acts as a webdav-client on a slide-server. until now i had my java-class in eclipse and it connects on a slide-server in the network (other box). works fine. now i'm trying to deploy this class in a jar (with all libs and so on) to an external server and i get a http-exception as soon as i create an instance of webdavresource. the slide-server runs on the same machine as the jar-app. the strange thing is that i'm working with values out of a config-file - so i just changed config-values after deployment. additionally i can connect with the cli-client of slide and the browser to this slideserver. but the jar-app on the same box throws the exception. i tried with 127.0.0.1 as well as the official ip-number. any suggestions? greetings stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: httpexception when creating instance of webdavresource
You give no information which URL you try to connect to. Perhaps Slide is not running or configured correctly. as i laid out in my own reply, both slide instances (at isp and internal) are running on a tomcat under context /slide. i can reach both slide-installations with the browser by connecting to http://[ip]:8080/slide; but i need to connect to them differently out of my java-app that uses jakarta http-client and slide client-api: on my internal tomcat 5 i have to create a httpurl with the following parameters 1. string user 2. string pwd 3. string host 4. int port 5. string path (root / or no path parameter at all) on the tomcat 4 at the isp the connection fails like this. however, it succeeds when i do the connection like this: 1. user 2. pwd 3. host 4. port 5. path (/slide) to keep things confusing, the second kind of connection fails on my internal tomcat 5! on both tomcats is the empty context-path the standard-tomcat-page. therefore in my head rises the question if my internal tomcat5 has another webdav-server (tomcat-own?) installed that enables the connection without path??? Did you try the same address with another WebDAV client like cadaver or DAVExplorer? not yet, but i will try this with goliath on mac os x greetings stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: httpexception when creating instance of webdavresource
Are you deploying on Tomcat? If so, delete commons-httpclient.jar and webdav.jar from your common/lib directory. They are old versions and will take precedence when Tomcat builds the classpath. -James Stefan Burkard wrote: hi slide-users i've developed a java-class based on the slide-client-api that acts as a webdav-client on a slide-server. until now i had my java-class in eclipse and it connects on a slide-server in the network (other box). works fine. now i'm trying to deploy this class in a jar (with all libs and so on) to an external server and i get a http-exception as soon as i create an instance of webdavresource. the slide-server runs on the same machine as the jar-app. the strange thing is that i'm working with values out of a config-file - so i just changed config-values after deployment. additionally i can connect with the cli-client of slide and the browser to this slideserver. but the jar-app on the same box throws the exception. i tried with 127.0.0.1 as well as the official ip-number. any suggestions? greetings stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: httpexception when creating instance of webdavresource
Stacktrace, trace of the session? hi slide-users i've developed a java-class based on the slide-client-api that acts as a webdav-client on a slide-server. until now i had my java-class in eclipse and it connects on a slide-server in the network (other box). works fine. now i'm trying to deploy this class in a jar (with all libs and so on) to an external server and i get a http-exception as soon as i create an instance of webdavresource. the slide-server runs on the same machine as the jar-app. the strange thing is that i'm working with values out of a config-file - so i just changed config-values after deployment. additionally i can connect with the cli-client of slide and the browser to this slideserver. but the jar-app on the same box throws the exception. i tried with 127.0.0.1 as well as the official ip-number. any suggestions? greetings stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: httpexception when creating instance of webdavresource
here's the stacktrace of the exception, how can i make a session-trace? stefan 46 [main] INFO ch.previon.deponejo.slide.WebDavClient - WebDAV-Client erstellen 268 [main] ERROR ch.previon.deponejo.slide.WebDavClient - FEHLER! Ein HTTP-Fehler ist aufgetreten! org.apache.commons.httpclient.HttpException at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3430) at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3386) at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:967) at org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:912) at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1867) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1277) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1296) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1382) at org.apache.webdav.lib.WebdavResource.init(WebdavResource.java:290) at ch.previon.deponejo.slide.WebDavClient.init(WebDavClient.java:63) at ch.previon.deponejo.test.SlideTest.main(SlideTest.java:44) Ingo Brunberg wrote: Stacktrace, trace of the session? hi slide-users i've developed a java-class based on the slide-client-api that acts as a webdav-client on a slide-server. until now i had my java-class in eclipse and it connects on a slide-server in the network (other box). works fine. now i'm trying to deploy this class in a jar (with all libs and so on) to an external server and i get a http-exception as soon as i create an instance of webdavresource. the slide-server runs on the same machine as the jar-app. the strange thing is that i'm working with values out of a config-file - so i just changed config-values after deployment. additionally i can connect with the cli-client of slide and the browser to this slideserver. but the jar-app on the same box throws the exception. i tried with 127.0.0.1 as well as the official ip-number. any suggestions? greetings stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: httpexception when creating instance of webdavresource
no it's standalone-app in a jar-file, started from a shell-script greetings stefan James Mason wrote: Are you deploying on Tomcat? If so, delete commons-httpclient.jar and webdav.jar from your common/lib directory. They are old versions and will take precedence when Tomcat builds the classpath. -James Stefan Burkard wrote: hi slide-users i've developed a java-class based on the slide-client-api that acts as a webdav-client on a slide-server. until now i had my java-class in eclipse and it connects on a slide-server in the network (other box). works fine. now i'm trying to deploy this class in a jar (with all libs and so on) to an external server and i get a http-exception as soon as i create an instance of webdavresource. the slide-server runs on the same machine as the jar-app. the strange thing is that i'm working with values out of a config-file - so i just changed config-values after deployment. additionally i can connect with the cli-client of slide and the browser to this slideserver. but the jar-app on the same box throws the exception. i tried with 127.0.0.1 as well as the official ip-number. any suggestions? greetings stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: httpexception when creating instance of webdavresource
here's the stacktrace of the exception, how can i make a session-trace? tcpmon (part of Axis), ethereal, qdpf, ... The stacktrace does not help much indeed. Ingo stefan 46 [main] INFO ch.previon.deponejo.slide.WebDavClient - WebDAV-Client erstellen 268 [main] ERROR ch.previon.deponejo.slide.WebDavClient - FEHLER! Ein HTTP-Fehler ist aufgetreten! org.apache.commons.httpclient.HttpException at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3430) at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:3386) at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:967) at org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:912) at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1867) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1277) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1296) at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1382) at org.apache.webdav.lib.WebdavResource.init(WebdavResource.java:290) at ch.previon.deponejo.slide.WebDavClient.init(WebDavClient.java:63) at ch.previon.deponejo.test.SlideTest.main(SlideTest.java:44) Ingo Brunberg wrote: Stacktrace, trace of the session? hi slide-users i've developed a java-class based on the slide-client-api that acts as a webdav-client on a slide-server. until now i had my java-class in eclipse and it connects on a slide-server in the network (other box). works fine. now i'm trying to deploy this class in a jar (with all libs and so on) to an external server and i get a http-exception as soon as i create an instance of webdavresource. the slide-server runs on the same machine as the jar-app. the strange thing is that i'm working with values out of a config-file - so i just changed config-values after deployment. additionally i can connect with the cli-client of slide and the browser to this slideserver. but the jar-app on the same box throws the exception. i tried with 127.0.0.1 as well as the official ip-number. any suggestions? greetings stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]