You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Frans Thamura <fr...@meruvian.org> on 2008/03/09 14:54:08 UTC

Instanting Error, when Upgrade Velocity in S2 2.0.10

hi there

i got this error, when try to upgrade from 2.0.6 to 2.0.11, and upgrade
velocity to 1.5

anyone can help me out

[ERROR] DefaultActionInvocation - There was an exception while instantiating
the result of type org.apache.struts2.dispatcher.VelocityResult <
com.opensymphony.xwork2.inject.DependencyException:
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No
mapping found for dependency [type=
org.apache.struts2.views.velocity.VelocityManager, name='default'] in public
void org.apache.struts2.dispatcher.VelocityResult.setVelocityManager(
org.apache.struts2.views.velocity.VelocityManager).>
com.opensymphony.xwork2.inject.DependencyException:
com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No
mapping found for dependency [type=
org.apache.struts2.views.velocity.VelocityManager, name='default'] in public
void org.apache.struts2.dispatcher.VelocityResult.setVelocityManager(
org.apache.struts2.views.velocity.VelocityManager).
    at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(
ContainerImpl.java:157)
    at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(
ContainerImpl.java:126)
    at com.opensymphony.xwork2.inject.ContainerImpl.addInjectors(
ContainerImpl.java:103)
    at com.opensymphony.xwork2.inject.ContainerImpl$1.create(
ContainerImpl.java:84)
    at com.opensymphony.xwork2.inject.ContainerImpl$1.create(
ContainerImpl.java:82)
    at
com.opensymphony.xwork2.inject.util.ReferenceCache$CallableCreate.call(
ReferenceCache.java:155)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)

Re: Instanting Error, when Upgrade Velocity in S2 2.0.10

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
Frans Thamura wrote:
> hi there
>
> i got this error, when try to upgrade from 2.0.6 to 2.0.11, and upgrade
> velocity to 1.5
>
> anyone can help me out
>
> [ERROR] DefaultActionInvocation - There was an exception while instantiating
> the result of type org.apache.struts2.dispatcher.VelocityResult <
> com.opensymphony.xwork2.inject.DependencyException:
> com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No
> mapping found for dependency [type=
> org.apache.struts2.views.velocity.VelocityManager, name='default'] in public
> void org.apache.struts2.dispatcher.VelocityResult.setVelocityManager(
> org.apache.struts2.views.velocity.VelocityManager).>
>   

This exception is caused by a missing dependency.  The Container was 
unable to create the VelocityManager required by the VelocityResult.

The required dependencies for velocity results are:

   <dependency>
      <groupId>velocity</groupId>
      <artifactId>velocity</artifactId>
      <version>1.5</version>
    </dependency>

    <!-- required by velocity -->
    <dependency>
      <groupId>velocity-tools</groupId>
      <artifactId>velocity-tools-view</artifactId>
      <version>1.3</version>
    </dependency>

    <!-- required by velocity -->
    <dependency>
      <groupId>commons-digester</groupId>
      <artifactId>commons-digester</artifactId>
      <version>1.8</version>
    </dependency>



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