You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Leonidas Papadakis <it...@creteonline.gr> on 2007/09/16 11:05:52 UTC
struts2 bug when deploying ? please help
Greetings to all,
i have a problem that is really driving me crazy so i would REALLY
appreciate your help .
I have developed a struts2 application and locally everything is fine
(localhost:8080/..) e.t.c. I then copied the same tomcat to the
production server and connected it with apache. Now the really BIG
problem appeared. All the "/" actions are called fine, but the
"/namespace" actions return :
HTTP Status 404 - /backoffice/adminlogin.action
type Status report
message /backoffice/adminlogin.action
description The requested resource (/backoffice/adminlogin.action) is
not available.
Apache Tomcat/5.5.25
Of course there is a folder /backoffice with files there. My struts.xml
file is :
<struts>
.......
<!-- Configuration for the admin package. -->
<include file="struts-bo.xml"/>
</struts>
and the struts-bo.xml contains :
<package name="bo" extends="struts-default" namespace="/backoffice">
web.xml is :
<?xml version="1.0"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Application</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<session-config>
<session-timeout>120</session-timeout>
</session-config>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>velocity</servlet-name>
<servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>velocity</servlet-name>
<url-pattern>*.shtml</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
Thank you very much for your replies ...
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Struts i8n problem in 2.0.9
Posted by Dean Pullen <de...@msp-uk.com>.
Mon Dieu.
Found that in struts.properties I had this:
struts.custom.i18n.resources=struts-messages,struts-messages_en,struts-m
essages_fr
Which was forcing struts to use the last properties file loaded.
Obviously it should just be:
struts.custom.i18n.resources=struts-messages
And struts will pick up the relevant locale file.
Not sure why this has suddenly occurred, but might be worth noting if
you see similar issues.
-----Original Message-----
From: Dean Pullen [mailto:dean.pullen@msp-uk.com]
Sent: 17 September 2007 09:03
To: Struts Users Mailing List
Subject: Struts i8n problem in 2.0.9
Has anyone seen any internationalization problems in the 2.0.9 release?
I had a dozen or so languages working fine, then recently noticed it's
been broken since I've upgrade from 2.0.8.
- Everything seems to be defaulting to French...
Dean.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Scanned by MailDefender - managed email security from intY -
www.maildefender.net
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Struts i8n problem in 2.0.9
Posted by Dean Pullen <de...@msp-uk.com>.
Has anyone seen any internationalization problems in the 2.0.9 release?
I had a dozen or so languages working fine, then recently noticed it's
been broken since I've upgrade from 2.0.8.
- Everything seems to be defaulting to French...
Dean.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: struts2 bug when deploying ? please help
Posted by Leonidas Papadakis <it...@creteonline.gr>.
Sorry for the alert , i got it. There was a problem with the appBase and
Context path parameter on the host declaration of tomcat ....
Best Regards,
Leon
Leonidas Papadakis wrote:
> Greetings to all,
>
> i have a problem that is really driving me crazy so i would REALLY
> appreciate your help .
>
> I have developed a struts2 application and locally everything is fine
> (localhost:8080/..) e.t.c. I then copied the same tomcat to the
> production server and connected it with apache. Now the really BIG
> problem appeared. All the "/" actions are called fine, but the
> "/namespace" actions return :
>
> HTTP Status 404 - /backoffice/adminlogin.action
> type Status report
> message /backoffice/adminlogin.action
> description The requested resource (/backoffice/adminlogin.action) is
> not available.
> Apache Tomcat/5.5.25
>
> Of course there is a folder /backoffice with files there. My
> struts.xml file is :
>
> <struts>
> .......
> <!-- Configuration for the admin package. -->
> <include file="struts-bo.xml"/>
> </struts>
>
> and the struts-bo.xml contains :
> <package name="bo" extends="struts-default" namespace="/backoffice">
>
> web.xml is :
>
> <?xml version="1.0"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd">
>
> <web-app>
> <display-name>Application</display-name>
>
> <filter>
> <filter-name>struts2</filter-name>
>
> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>
> </filter>
>
> <filter-mapping>
> <filter-name>struts2</filter-name>
> <url-pattern>*.action</url-pattern>
> </filter-mapping>
>
> <welcome-file-list>
> <welcome-file>index.html</welcome-file>
> </welcome-file-list>
> <session-config>
> <session-timeout>120</session-timeout>
> </session-config>
>
> <listener>
>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
>
> </listener>
> <servlet>
> <servlet-name>velocity</servlet-name>
>
> <servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet</servlet-class>
>
> <load-on-startup>1</load-on-startup>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>velocity</servlet-name>
> <url-pattern>*.shtml</url-pattern>
> </servlet-mapping>
> <welcome-file-list>
> <welcome-file>index.html</welcome-file>
> <welcome-file>index.jsp</welcome-file>
> </welcome-file-list>
> </web-app>
>
>
> Thank you very much for your replies ...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org