You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Taylor, Jason" <jt...@cobaltgroup.com> on 2002/10/04 20:32:59 UTC

RE: Parsing error processing resource path /WEB-INF/struts-config .xml

I use WLS 6.1 sp3 no problem.  I use the plain vanilla ActionServlet from a
nightly build in May (don't ask).  

I specify the init-param to the servlet in web.xml like this:
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>

I *don't* use Windoze to develop-- but the stack trace looks like you've got
a valid path?  Smart money is with Eddie and says you forgot to put a valid,
correctly-named and readable xml file in WEB-INF...

-----Original Message-----
From: Eddie Bush [mailto:ekbush@swbell.net]
Sent: Friday, October 04, 2002 11:04 AM
To: Struts Users Mailing List
Subject: Re: Parsing error processing resource path
/WEB-INF/struts-config .xml


Actually, from a (Unix) filesystem perspective, "/" is *the* root (the 
directory all others live under).  Your "home" directory probably lives 
at "~".

If what you are asking is how to represent the path to your 
struts-config.xml file, I can say I always list mine as 
"/WEB-INF/conf/struts-default.xml" for my default application.  Tomcat 
does fine with this.  Check that your case is right - and that you 
haven't made a typographical error somewhere.  Failing that, I'd be 
tempted to say there's something special about WebLogic that's causing 
the error.

... don't use an absolute path :-)  That's very non-portable.

Verify that you do, in fact, have a file named "struts-config.xml" that 
is in the path you have specified.  Make sure the case matches and 
everything.  I think this error can also be thrown if you have a really 
messed up struts-config file.  If it worked under windows I'd think it'd 
work under Unix though.

Galbreath, Mark wrote:

>I am no Unix guru, but it seems to me your path is not Unix-enough.  A "/"
>in Unix is your root (home) directory, not relative unless interpretted by
a
>web server.  Try an absolute path to WEB-INF.
>
>Mark
>
>-----Original Message-----
>From: Ramu, Manjukumar [PRDUS] [mailto:MRamu@prdus.jnj.com]
>Sent: Friday, October 04, 2002 1:20 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Parsing error processing resource path
>/WEB-INF/struts-config .xml
>
>
>Can any body help me?
>
>-----Original Message-----
>From: Ramu, Manjukumar [PRDUS] [mailto:MRamu@prdus.jnj.com]
>Sent: Friday, October 04, 2002 12:09 PM
>To: 'Struts Users Mailing List'
>Subject: Parsing error processing resource path
>/WEB-INF/struts-config.xml
>
>
>Hello All,
>	I am getting the following exception with Weblogic 6.1 SP3 in UNIX.
>My applciation is working fine in WINDOWS 2000, Just I copied the
>application to the Unix platform, I am getting the following error. Does
>anybody know what would be the problem?
>
>Thanks for the Help!
>
>-Manju
>
>javax.servlet.UnavailableException: Parsing error processing resource path
>/WEB-INF/struts-config.xml
>        at
>org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.
j
>ava:780)
>        at
>org.apache.struts.action.ActionServlet.init(ActionServlet.java:417)
>        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
>        at
>weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.jav
a
>:713)
>        at
>weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.j
a
>va:656)
>        at
>weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.ja
v
>a:601)
>        at
>weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServlet
C
>ontext.java:2272)
>        at
>weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServle
t
>Context.java:2216)
>        at
>weblogic.servlet.internal.HttpServer.preloadServlets(HttpServer.java:495)
>        at
>weblogic.servlet.internal.WebService.preloadServlets(WebService.java:450)
>        at
weblogic.t3.srvr.ServletInitRunner.run(ServletInitRunner.java:49)
>
-- 
Eddie Bush




--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>