I am trying to get started with Struts2 using Maven
archetypes, and have had trouble getting the .war file
generated from struts2-archetype-starter to run under
WebSphere 6.1.0.7 (the most recent version). When I
navigate to the index.action, I get a 404 message:
"Error 404: SRVE0190E: File not found: /index.action".
In the server logs, it looks as though processing
begins but then gets cut off somehow, and there is no
log of any JSPs getting rendered. I don't see any
errors in there at all. I'll include the log entries
from the action invocation at the bottom of this note.

Then, I went through a similar process with
struts2-archetype-blank, and I had no issues invoking
actions in WAS. I also downloaded the struts2 sample
apps (struts2-blank, struts2-showcase), and I was able
to invoke actions under both apps in WAS. This really
confuses me. It looks like struts2-showcase has
everything that the archetype-starter app would have,
so I can't see why one would work but the other one
wouldn't. If I drop the starter actions into the
showcase app and copy the struts config entries, the
actions render fine inside the showcase app.

Has anyone run into an issue like this? I tried these
apps out on WCE and had no issues with the starter
archetype...it's only WAS that has this problem.

Here are the server logs at the moment I request the
action that gives back the 404:

[6/11/07 11:27:05:901 CDT] 00000021 XmlConfigurat I
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
register Parsing configuration file
[struts-default.xml]
[6/11/07 11:27:06:058 CDT] 00000021 XmlConfigurat I
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
register Parsing configuration file
[struts-plugin.xml]
[6/11/07 11:27:06:089 CDT] 00000021 XmlConfigurat I
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider
register Parsing configuration file [struts.xml]
[6/11/07 11:27:06:104 CDT] 00000021 Settings      W
org.apache.struts2.config.Settings getLocale Settings:
Could not parse struts.locale setting, substituting
default VM locale
[6/11/07 11:27:06:120 CDT] 00000021 BeanSelection I
org.apache.struts2.config.BeanSelectionProvider
register Loading global messages from globalmessages
[6/11/07 11:27:06:417 CDT] 00000021 ObjectTypeDet I
com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory
<clinit> Detected GenericsObjectTypeDeterminer,
initializing it...
[6/11/07 11:27:06:433 CDT] 00000021 XWorkConverte I
com.opensymphony.xwork2.util.XWorkConverter
getInstance Detected AnnotationXWorkConverter,
initializing it...
[6/11/07 11:27:06:511 CDT] 00000021 StrutsSpringO I
org.apache.struts2.spring.StrutsSpringObjectFactory
setServletContext Initializing Struts-Spring
integration...
[6/11/07 11:27:06:526 CDT] 00000021 SpringObjectF I
com.opensymphony.xwork2.spring.SpringObjectFactory
setAutowireStrategy Setting autowire strategy to name
[6/11/07 11:27:06:526 CDT] 00000021 StrutsSpringO I
org.apache.struts2.spring.StrutsSpringObjectFactory
setServletContext ... initialized Struts-Spring
integration successfully


That's where the logs end. Any help will be
appreciated...I spent all weekend going around in
circles on this.

Thanks,

Rich



       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. 
Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to