velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Bubna" <nbu...@gmail.com>
Subject Re: Velocity-Struts resin configuration
Date Sat, 09 Sep 2006 16:04:55 GMT
On 9/8/06, Anton Tonchev <toni@xi-tec.com> wrote:
> Is there anything specific about using Resin as application server?
>
> I have two errors, when i try to deploy it:
>
> 1. the ActionServlet init is throwing an exception:
>
> [2006/09/08 23:08:43] org.apache.struts.action.ActionServlet: init
> [2006/09/08 23:08:44] null
> javax.servlet.UnavailableException
>         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:368)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:82)
>         at com.caucho.server.http.Application.createServlet(Application.java:3114)
>         at com.caucho.server.http.Application.loadServlet(Application.java:3065)
>         at com.caucho.server.http.Application.initServlets(Application.java:1923)
>         at com.caucho.server.http.Application.init(Application.java:1849)
>         at com.caucho.server.http.VirtualHost.init(VirtualHost.java:728)
>         at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:887)
>         at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:729)
>         at com.caucho.server.http.ServletServer.init(ServletServer.java:538)
>         at com.caucho.server.http.ResinServer.init(ResinServer.java:406)
>         at com.caucho.server.http.ResinServer.main(ResinServer.java:1167)
>         at com.caucho.server.http.HttpServer.main(HttpServer.java:103)
> [2006/09/08 23:08:44] init exception for `action'

That very weird.  Have you tried asking user@struts.apache.org or the
Resin user list about this?  I've never seen anything like it, and
i've never used Resin.

> 2. When i try to access a template i get the following error:
>
> VelocityViewServlet : Error processing the template
>
> java.lang.NullPointerException
>         at org.apache.velocity.tools.struts.StrutsUtils.getMessageResources(Unknown Source)
>         at org.apache.velocity.tools.struts.MessageResourcesTool.init(Unknown Source)
>         at org.apache.velocity.tools.view.ViewToolInfo.getInstance(Unknown Source)
>         at org.apache.velocity.tools.view.servlet.ServletToolboxManager.getToolbox(Unknown
Source)
>         at org.apache.velocity.tools.view.servlet.VelocityViewServlet.createContext(Unknown
Source)
>         at org.apache.velocity.tools.view.servlet.VelocityViewServlet.doRequest(Unknown
Source)
>         at org.ait.diplom.servlets.VMServlet.doRequest(VMServlet.java:85)
>         at org.apache.velocity.tools.view.servlet.VelocityViewServlet.doGet(Unknown Source)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
>         at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
>         at com.caucho.server.http.Invocation.service(Invocation.java:315)
>         at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
>         at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
>         at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
>         at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
>         at java.lang.Thread.run(Thread.java:595)

Yeah, this latter error is because the Struts servlet hasn't been
initialized yet.  VelocityStruts requires Struts to be initialized for
most of the Struts-specific tools to work.

> Any ideas would be greatly appreciated :)
>
> Regards.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message