Bugzilla (was: ObjectBox servlet and WARs)
Martin Klang <[email protected]> Thu, 28 Aug 2003 13:45:28 +0000 (GMT)
| Newsgroups | gmane.text.xml.o-xml |
|---|---|
| Message-ID | <[email protected]> |
Ken,
I've sort of been aware of this problem but didn't know there was such an
elegant solution. I thought each file had to be retrieved using
getResource(), which would have been a pain (that's the real reason I
haven't tried to fix this already). Your solution is much better - thanks!
I think it's time to set up a Bugzilla [1] for easy bug reports and
tracking. We're going to need someone to monitor the system - some basic
maintenance but mostly just need someone to take responsibility, answer
the odd question from users etc.
Anyone volunteers? Experience with Bugzilla is a plus, but it's really
quite easy to admin and once I've set it up on the server it can all be
done over a web interface.
later,
/m
[1] Bugzilla: http://bugzilla.org/
Martin Klang
http://www.o-xml.org - the object-oriented XML programming language
On Wed, 27 Aug 2003, Ken McCloskey wrote:
> Martin,
>
> Just wanted to bring your attention to a problem I encountered when trying
> to use the ObjectBox servlet from within the context of a WAR file.
>
> The problem occurs in the method init of org.oXML.extras.http.ObjectBox:
>
> baseurl = servletConfig.getServletContext().getRealPath("/");
>
> which will return null if called from within a WAR. My solution was to check
> for the null, and if it is encountered do the following:
>
> java.net.URL baseurlURL =
> servletConfig.getServletContext().getResource("/");
> baseurl = baseurlURL.toString();
>
> On Tomcat, this will return a jndi reference to inside the WAR which seems
> to work ok.
>
> Ken McCloskey
>