You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Calabrese, Jason" <jc...@devcor.com> on 2001/07/24 20:39:03 UTC
RE: java.lang.IllegalArgumentException: InputStream cannot be nul
l
I think I found a solution to the problem, but I'm not sure why it
worked.
It was my understanding that websphere didn't look at the web.xml file
so I didn't have one. When I copied the web.xml from the example
aplication the error went away.
If anyone knows whats going on let me know.
-----Original Message-----
From: Calabrese, Jason [mailto:jcalabrese@devcor.com]
Sent: Tuesday, July 24, 2001 11:29 AM
To: 'struts-user@jakarta.apache.org'
Subject: java.lang.IllegalArgumentException: InputStream cannot be null
I'm trying to get struts working with Websphere 3.5.4. I got the
example application to work, so I'm pretty sure that I have a
configuration problem now.
my console output is as follows:
7/24/01 10:45 AM : AUDIT [ARZT1000/Default Server]: SRVE0048I: Loading
servlet: "action"
7/24/01 10:45 AM : AUDIT [ARZT1000/Default Server]: SRVE0091I: [Servlet
LOG]: "action: init"
7/24/01 10:45 AM : AUDIT [ARZT1000/Default Server]: SRVE0091I: [Servlet
LOG]: "action: Loading application resources from resource
com.devcor.tl.rms.prototype.ApplicationResources"
7/24/01 10:45 AM : AUDIT [ARZT1000/Default Server]: SRVE0091I: [Servlet
LOG]: "action: Initializing configuration from resource path
/WEB-INF/struts-config.xml"
7/24/01 10:45 AM : AUDIT [ARZT1000/Default Server]: SRVE0092I: [Servlet
LOG]: "action: null": java.lang.IllegalArgumentException: InputStream
cannot be null
at java.lang.RuntimeException.<init>(RuntimeException.java:49)
at
java.lang.IllegalArgumentException.<init>(IllegalArgumentException.java:
45)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:73)
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:14
33)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
....
7/24/01 10:45 AM : AUDIT [ARZT1000/Default Server]: SRVE0091I: [Servlet
LOG]: "action: Mapping for servlet 'action' = 'null'"
7/24/01 10:45 AM : AUDIT [ARZT1000/Default Server]: SRVE0130I: Servlet
available for service: "action"
I've tried moving the struts-config.xml file, but when I do the output
hangs at:
7/24/01 10:45 AM : AUDIT [ARZT1000/Default Server]: SRVE0091I: [Servlet
LOG]: "action: Initializing configuration from resource path
/WEB-INF/struts-config.xml"
so I think it is finding the config file.
Any idea what the problem could be?