users@glassfish.java.net

Re: Relative path on web applications?

From: <glassfish_at_javadesktop.org>
Date: Wed, 17 Sep 2008 11:17:38 PDT

Thank you for your answer!

Unfortunately I can't do it the way you said. I'm not using a servlet or a JSP, only a web service. However there is a package in this very same project, which has a wsdl file, and I can't find it using relative path in my web service web application.
In a normal java application it works, however if I try this same thing on web app, it doesn't. And here is the part I don't understand about it:
If I write ../../wsdl/somefile.txt in the normal java application (and let's say I mistyped the address), then the exception tells me exactly where it's trying to look (with full path). But if I do this in a web app, then it just says: "unable to find file at: ../../wsdl/somefile.txt", and it doesn't even give me the full path it's trying to find the file at.
[Message sent by forum member 'sz_zoli' (sz_zoli)]

http://forums.java.net/jive/thread.jspa?messageID=299900