You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Binaghi Mauro <ma...@vtin.it> on 2003/04/07 16:09:57 UTC
JRun configuration error
Hi,
I have this web.xml webapp configuration-file (for JRun 3.0):
<web-app>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>it.matrix.notizie.struts.ApplicationResources</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<url-pattern>/do/*</url-pattern>
<servlet-name>action</servlet-name>
</servlet-mapping>
</web-app>
I have put all my Struts jar-files in the "WEB-INF/lib" directory of the Web-App, then I have put also my xml/dtd config-files in the "/WEB-INF" directory of the same Web-App.
...and this is the "ServletException" when I try to call my URL (/news/do/home/index.html):
500 Internal Server Error
/news/do/home/index.html:
javax.servlet.ServletException: Could not instantiate org.apache.struts.action.ActionServlet
java.lang.NullPointerException
at org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:577)
at org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1276)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:236)
at allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:190)
at allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:177)
at allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261)
at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:895)
at allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
at allaire.jrun.WorkerThread.run(WorkerThread.java:74)
Anybody knows why, please?
I'm sure it's correct!
Thx
Mauro
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: JRun configuration error
Posted by albert Arhin <al...@yahoo.com>.
Hi Mauro,
Apply the lastest sp for JRUN 3 that should
solve so many problems.
Hope its helpful.
--- Binaghi Mauro <ma...@vtin.it> wrote:
> Hi,
> I have this web.xml webapp configuration-file (for
> JRun 3.0):
>
> <web-app>
> <servlet>
> <servlet-name>action</servlet-name>
>
>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
> <init-param>
> <param-name>config</param-name>
>
>
<param-value>/WEB-INF/struts-config.xml</param-value>
> </init-param>
> <init-param>
> <param-name>application</param-name>
>
>
<param-value>it.matrix.notizie.struts.ApplicationResources</param-value>
> </init-param>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <url-pattern>/do/*</url-pattern>
> <servlet-name>action</servlet-name>
> </servlet-mapping>
> </web-app>
>
>
> I have put all my Struts jar-files in the
> "WEB-INF/lib" directory of the Web-App, then I have
> put also my xml/dtd config-files in the "/WEB-INF"
> directory of the same Web-App.
> ...and this is the "ServletException" when I try to
> call my URL (/news/do/home/index.html):
>
>
>
> 500 Internal Server Error
> /news/do/home/index.html:
>
> javax.servlet.ServletException: Could not
> instantiate org.apache.struts.action.ActionServlet
> java.lang.NullPointerException
> at
>
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:577)
> at
>
org.apache.struts.action.ActionServlet.initInternal(ActionServlet.java:1276)
> at
>
org.apache.struts.action.ActionServlet.init(ActionServlet.java:459)
> at
>
javax.servlet.GenericServlet.init(GenericServlet.java:258)
> at
>
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:236)
> at
>
allaire.jrun.servlet.JRunServletLoader.loadServletInstance(JRunServletLoader.java:190)
> at
>
allaire.jrun.servlet.JRunServletLoader.loadServlet(JRunServletLoader.java:177)
> at
>
allaire.jrun.servlet.JRunSE.getServletReference(JRunSE.java:1261)
> at
>
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:895)
> at
>
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
> at
>
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
> at
>
allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
> at
>
allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:354)
> at allaire.jrun.ThreadPool.run(ThreadPool.java:267)
> at
> allaire.jrun.WorkerThread.run(WorkerThread.java:74)
>
>
> Anybody knows why, please?
> I'm sure it's correct!
>
> Thx
> Mauro
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org