That is correct, getResourceAsStream should always work, it is the
ServletContext.getRealPath(String) that is not guarenteed to work
if the war is not unpacked.
--
Scott Stark
Chief Technology Officer
JBoss Group, LLC
Anders Engström wrote:
On
and the access was denied.
Marco
- Original Message -
From: Jiri Chaloupka [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 15, 2003 5:06 PM
Subject: [JBoss-user] how to access servlet context
Hallo,
I have some class which extends HttpServlet, and I need read some xml
file
Hallo,
I have some class which extends HttpServlet, and I need read some xml
file in /WEB-INF. But when I try to get servlet context, I got NPE. Runs
on JBoss 3.2.1 with Tomcat:
pubic class Config extends HttpServlet{
...
public Config(){
try{
InputStream is =
You need to deploy your web-app as unpacked for this to work.
Does 3.2.1 have the configuration option to automatically unpack in
jbossweb-tomcat41.sar/META-INF/jboss-service.xml?
Regards,
Adrian
On Mon, 2003-09-15 at 17:06, Jiri Chaloupka wrote:
Hallo,
I have some class which extends
But I have it unpacked, this *.war is not zipped.
add jboss-service.xml - haw I can set it to unpack wars? on tomcat web I
have found nothing about. Do I need it?
Thanks
Jiri
Adrian Brock wrote:
You need to deploy your web-app as unpacked for this to work.
Does 3.2.1 have the configuration
Post the full stacktrace then. Please don't show me
a stacktrace that results from (is == null)
If it is already unpacked you can forget the rest my previous post.
Regards,
Adrian
On Mon, 2003-09-15 at 18:25, Jiri Chaloupka wrote:
But I have it unpacked, this *.war is not zipped.
add
On Mon, Sep 15, 2003 at 05:29:08PM +0100, Adrian Brock wrote:
You need to deploy your web-app as unpacked for this to work.
Does 3.2.1 have the configuration option to automatically unpack in
jbossweb-tomcat41.sar/META-INF/jboss-service.xml?
That doesn't sound right - getResourceAsStream