> Date: Mon, 6 Oct 2014 22:46:30 +0200
> Subject: Any experience deploying Struts2 war webapps in Jetty 9.2.x
> From: jc.daup...@gmail.com
> To: user@struts.apache.org
> 
> Hello,
> 
> 
> I always got the following error when deploying my Strut2 war in Jetty 9.2.3
> HTTP ERROR 404
> 
> Problem accessing /Web-JISIS3/. Reason:
> 
>     There is no Action mapped for namespace [/] and action name []
> associated with context path [/Web-JISIS3].

MG>so someone or some process is configuring artifactId to Web-JISIS3 ?
MG><artifactId>Web-JISIS3</artifactId>
MG>which causes contextPath to reflect to Web-JISIS3
<build>
<plugins>
<plugin>
    
 <groupId>org.mortbay.jetty</groupId>
 <artifactId>jetty-maven-plugin</artifactId>

     <version>8.1.9.v20130131</version>

     <configuration>
    <contextPath>/${project.artifactId}</contextPath>
....
   </configuration>
</plugin>
...
</plugins>
</build>

confirm this by running
mvn -DartifactId=Web-JISIS3 jetty:run-war 

MG>of course changing contextPath to a more realistic webAppName will cure

http://www.benoitschweblin.com/2013/03/run-jetty-in-maven-life-cycle.html

-M


> ------------------------------
> 
> 
> *Powered by Jetty://*
> 
> while it works well in Apache Tomcat 8
> 
> 
> Does anybody already succeeded to run a Struts2 war webapps in Jetty 9.2.x ?
> 
> I would appreciate any asvice on this issue.
> 
> Best wishes,
> JCD
                                          

Reply via email to