> From: wille [mailto:[EMAIL PROTECTED]
> Our webapp had hardcoded paths in it, now we "just" have to grep them
> all and replace them.
Oops :-).
You might like to look at the servlet context's methods for fetching
resources (getResource and getResourceAsStream, I think). They make the
file loc
^__^
Our webapp had hardcoded paths in it, now we "just" have to grep them
all and replace them.
Thanks y'all!
On Wed, 2007-02-28 at 10:58 +, Peter Crowther wrote:
> > From: wille [mailto:[EMAIL PROTECTED]
> > root cause
> >
> > java.lang.NullPointerException
> > pubdb.Entry.getDocu
> From: wille [mailto:[EMAIL PROTECTED]
> root cause
>
> java.lang.NullPointerException
> pubdb.Entry.getDocuments(Entry.java:399)
> pubdb.Entry.getEntryById(Entry.java:217)
So what's causing the NPE then? :-)
- Peter
---
We tried changing the folder name, however that makes our servlet crash.
Couldn't find content.xml though; only admin.xml and manager.xml resides
under /conf/
.
The following error message is returned when trying to run the app:
org.apache.jasper.JasperException
org.apache.jasper.servlet.
Hi Wille,
wille wrote:
We have deployed a web application on our server by putting it in the
webapps directory, this makes it appear at a URL like
http://mjau.com/pub_db. Now we want to change the URL for this webapp to
something else, (in this case http://mjau.com/publications).
The simples
There's a difference between webapp names and servlet names. You want
to change the webapp's name. To do that, just change the name of the
webapp in the webapps folder ie pub_db -> publications or pub_db.war ->
publications.war. You may have to make a similar name change to the
context.xml file