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: [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