|
From: Rod J. <rod...@in...> - 2003-05-07 08:37:38
|
I'm still getting the same failure with the latest build from CVS.
My web.xml is the same as it's always been:
<context-param>
<param-name>configUrl</param-name>
<param-value>/WEB-INF/applicationContext.xml</param-value>
</context-param>
The stack trace is as follows. It is the test servlet namespace that's
failing. Omitting the leading / above, or omitting the context-param
altogether fails the same way.
I'm using Orion 2.01 on Windows XP Professional. (Maybe it's the app server
that's the issue.)
I think the first attempt should try to get the resource from the
ServletContext when running in a web container. Also, it should definitely
be backward compatible.
I think getting resources from the classpath is more portable (and useful)
than getting them from the file system. I think this should be included as a
fallback as well.
ApplicationServerThread
com.interface21.context.ApplicationContextException: IOException parsing XML
doc
ument for application context with display name [WebApplicationContext for
names
pace 'test-servlet']; nested exception is:
java.io.FileNotFoundException: Location 'WEB-INF/test-servlet.xml'
isn't
a URL and cannot be interpreted as (file) path
java.io.FileNotFoundException: Location 'WEB-INF/test-servlet.xml' isn't a
URL a
nd cannot be interpreted as (file) path
at
com.interface21.context.support.AbstractApplicationContext.getResourc
eAsStream(AbstractApplicationContext.java:314)
at
com.interface21.web.context.support.XmlWebApplicationContext.getInput
StreamForBeanFactory(XmlWebApplicationContext.java:172)
at
com.interface21.context.support.AbstractXmlApplicationContext.refresh
BeanFactory(AbstractXmlApplicationContext.java:56)
at
com.interface21.context.support.AbstractApplicationContext.refresh(Ab
stractApplicationContext.java:167)
at
com.interface21.web.context.support.XmlWebApplicationContext.setServl
etContext(XmlWebApplicationContext.java:121)
at
com.interface21.web.servlet.FrameworkServlet.createWebApplicationCont
ext(FrameworkServlet.java:267)
at
com.interface21.web.servlet.FrameworkServlet.initServletBean(Framewor
kServlet.java:235)
at
com.interface21.web.servlet.HttpServletBean.init(HttpServletBean.java
:102)
at javax.servlet.GenericServlet.init(GenericServlet.java:44)
at com.evermind._ay._lae(.:1672)
|