same with BEA..

/WEB-INF/web.xml..
<context-param>
   <param-name>contextConfigLocation</param-name>
   <param-value>/WEB-INF/applicationContext.xml</param-value>
 </context-param>

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- From: "Richard Dominguez" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Saturday, June 16, 2007 8:49 PM
Subject: Re: [S2] struts2-archetype-starter not working in WebSphere 6.1.0.7


I think I found the answer -- it had to do with where
applicationContext.xml was. Since helloWorldAction is
wired up through Spring, if Spring isn't working, then
the app doesn't work. And for some reason, the
following entry in web.xml does not work in finding
the applicationContext.xml:

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:applicationContext*.xml</param-value>
</context-param>

I had to change it to this:

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/applicationContext*.xml</param-value>
</context-param>

After this, the actions were rendered fine.

Hope this helps anyone trying to use the struts-spring
plugin under WebSphere 6.1.x.

Richard



--- Richard Dominguez <[EMAIL PROTECTED]> wrote:

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]






____________________________________________________________________________________
Sick sense of humor? Visit Yahoo! TV's
Comedy with an Edge to see what's on, when.
http://tv.yahoo.com/collections/222

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




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

Reply via email to