struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Claude Dauphin <jc.daup...@gmail.com>
Subject Re: Any experience deploying Struts2 war webapps in Jetty 9.2.x
Date Tue, 07 Oct 2014 07:13:57 GMT
Thanks a lot for your prompt responses.

Web-JISIS3 is the name of the war file (Web-JISIS3.war) that is located in
the $JETTY_HOME/webapps directory.

Here is below how I start Jetty - at first glance it seems OK (not sure
about the Struts2 INFO messages) but The message Web-JISIS3 deployed is not
displayed

C:\jetty-distribution-9.2.3.v20140905>java -jar start.jar
2014-10-07 09:05:37.428:INFO::main: Logging initialized @1263ms
2014-10-07 09:05:37.707:INFO:oejs.Server:main: jetty-9.2.3.v20140905
2014-10-07 09:05:37.732:INFO:oejdp.ScanningAppProvider:main: Deployment
monitor [file:/C:/jetty-distribution-9.2.3.v20140905/webap
ps/] at interval 1
oct. 07, 2014 9:05:47 AM
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
Infos: Parsing configuration file [struts-default.xml]
oct. 07, 2014 9:05:47 AM
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
Infos: Parsing configuration file [struts-plugin.xml]
oct. 07, 2014 9:05:47 AM
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
Infos: Parsing configuration file [struts.xml]
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.factory.ActionFactory)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.factory.ResultFactory)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.factory.ConverterFactory)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.factory.InterceptorFactory)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.factory.ValidatorFactory)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.FileManagerFactory)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.conversion.impl.XWorkConverter)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.conversion.impl.CollectionConverter)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.conversion.impl.ArrayConverter)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.conversion.impl.DateConverter)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.conversion.impl.NumberConverter)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.conversion.impl.StringConverter)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.conversion.ConversionFileProcessor)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.conversion.TypeConverterCreator)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.conversion.TypeConverterHolder)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.ActionProxyFactory)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(org.apache.struts2.dispatcher.mapper.ActionMapper)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (jakarta) for
(org.apache.struts2.dispatcher.multipart.MultiPartRequest)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(org.apache.struts2.views.freemarker.FreemarkerManager)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(org.apache.struts2.components.UrlRenderer)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.validator.ActionValidatorManager)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.util.ValueStackFactory)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.util.reflection.ReflectionProvider)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.util.PatternMatcher)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(org.apache.struts2.dispatcher.StaticContentLoader)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for
(com.opensymphony.xwork2.UnknownHandlerManager)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
oct. 07, 2014 9:05:47 AM
org.apache.struts2.config.AbstractBeanSelectionProvider info
Infos: Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser)
2014-10-07 09:05:48.305:INFO:oejsh.ContextHandler:main: Started
o.e.j.w.WebAppContext@6de17d0b{/Web-JISIS3,file:/C:/Users/jcd/AppD
ata/Local/Temp/jetty-0.0.0.0-8080-Web-JISIS3.war-_Web-JISIS3-any-5747910219609464892.dir/webapp/,AVAILABLE}{C:\jetty-distribution-
9.2.3.v20140905\webapps\Web-JISIS3.war}
2014-10-07 09:05:48.333:INFO:oejs.ServerConnector:main: Started
ServerConnector@730cf1ad{HTTP/1.1}{0.0.0.0:8080}
2014-10-07 09:05:48.334:INFO:oejs.Server:main: Started @12180ms

Pointing the browser to http://localhost:8080/ gives the following page:
Error 404 - Not Found.No context on this server matched or handled this
request.
Contexts known to this server are:

   -
   /Web-JISIS3 --->
o.e.j.w.WebAppContext@6de17d0b{/Web-JISIS3,file:/C:/Users/jcd/AppData/Local/Temp/jetty-0.0.0.0-8080-Web-JISIS3.war-_Web-JISIS3-any-5747910219609464892.dir/webapp/,AVAILABLE}{C:\jetty-distribution-9.2.3.v20140905\webapps\Web-JISIS3.war}
   <http://localhost:8080/Web-JISIS3>

------------------------------
<http://eclipse.org/jetty> Powered by Jetty:// Java Web Server
<http://eclipse.org/jetty>

Thank you in advance for any advice or suggestions.

Best wishes,
JCD


On Tue, Oct 7, 2014 at 3:25 AM, Martin Gainty <mgainty@hotmail.com> wrote:

>
>
>
> > Date: Mon, 6 Oct 2014 22:46:30 +0200
> > Subject: Any experience deploying Struts2 war webapps in Jetty 9.2.x
> > From: jc.dauphin@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
>
>



-- 
Jean-Claude Dauphin

jc.dauphin@gmail.com
jc.dauphin@afus.unesco.org

http://kenai.com/projects/j-isis/
http://www.unesco.org/isis/
http://www.unesco.org/idams/
http://www.greenstone.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message