You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Emmanuel.Leguy" <Em...@lifl.fr> on 2005/09/02 17:14:04 UTC
action.do not found on this server
Hello,
Apache: 1.3.33
Tomcat: 5.5
Solaris 10
modjk 1.2
I try this direct URI:
https://myserver/path/action.do
And if i haven't a session opened I get an apache 404 error:
The requested URL /path/action.do was not found on this server.
In my web.xml:
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
In my mod_jk log:
[Fri Sep 02 17:11:40 2005] [jk_uri_worker_map.c (486)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Fri Sep 02 17:11:40 2005] [jk_uri_worker_map.c (500)]: Attempting to
map URI '/path/action.do'
[Fri Sep 02 17:11:40 2005] [jk_uri_worker_map.c (524)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a context match interne ->
/path/
Nothing in the tomcat log.
If a session exists. No problem.
An Idea?
Thanx,
Manu
--
Emmanuel Leguy LIFL - UMR8022 CNRS - Bat M3
Tel: +33 3 28 77 85 32 USTL - Universite de Lille 1
Fax: +33 3 28 77 85 37 59655 VILLENEUVE D'ASCQ CEDEX - FRANCE
mailto:Emmanuel.Leguy@lifl.fr http://www.lifl.fr/ANNUAIRE/employee.php?login=leguye
Ce mail est signe par un certificat X509 fourni par le CNRS
La verification de ce certificat peut etre faite a l'adresse suivante:
http://igc.services.cnrs.fr/CNRS-Standard/recherche.html
Re: action.do not found on this server
Posted by "Emmanuel.Leguy" <Em...@lifl.fr>.
I am not very proud of it but i solved my problem.
Since apache web server produced a 404 error because it couldn't find
the file /path/to/mywebapp/action.do, i created it as a empty file. And
it works.
If someone knows a more academic solution...
Manu.
Emmanuel.Leguy a écrit :
> Hi,
>
> When i access:
>
> https://myserver/mywebapp
>
> I get a 404 error.
>
> If I define an apache alias directive like this:
>
> Alias /mywebapp /path/to/mywebapp
>
> It is OK because apache can make the relation between the URL and the
> real directory.
>
> I think that I have the same error with my action URL:
>
> https://myserver/mywebapp/action.do
>
> but I can't define an Alias directive because this URL doesn't
> correspond with a real file (struts mapping).
>
> I tried to use
>
> JkAutoAlias /path/to/webapps/root/
> JkMount /*.do worker
>
> Without success.
>
> Is there a solution?
>
> Thanx,
>
> Manu.
>
--
Emmanuel Leguy LIFL - UMR8022 CNRS - Bat M3
Tel: +33 3 28 77 85 32 USTL - Universite de Lille 1
Fax: +33 3 28 77 85 37 59655 VILLENEUVE D'ASCQ CEDEX - FRANCE
mailto:Emmanuel.Leguy@lifl.fr http://www.lifl.fr/ANNUAIRE/employee.php?login=leguye
Ce mail est signe par un certificat X509 fourni par le CNRS
La verification de ce certificat peut etre faite a l'adresse suivante:
http://igc.services.cnrs.fr/CNRS-Standard/recherche.html
Re: action.do not found on this server
Posted by "Emmanuel.Leguy" <Em...@lifl.fr>.
Hi,
When i access:
https://myserver/mywebapp
I get a 404 error.
If I define an apache alias directive like this:
Alias /mywebapp /path/to/mywebapp
It is OK because apache can make the relation between the URL and the
real directory.
I think that I have the same error with my action URL:
https://myserver/mywebapp/action.do
but I can't define an Alias directive because this URL doesn't
correspond with a real file (struts mapping).
I tried to use
JkAutoAlias /path/to/webapps/root/
JkMount /*.do worker
Without success.
Is there a solution?
Thanx,
Manu.
--
Emmanuel Leguy LIFL - UMR8022 CNRS - Bat M3
Tel: +33 3 28 77 85 32 USTL - Universite de Lille 1
Fax: +33 3 28 77 85 37 59655 VILLENEUVE D'ASCQ CEDEX - FRANCE
mailto:Emmanuel.Leguy@lifl.fr http://www.lifl.fr/ANNUAIRE/employee.php?login=leguye
Ce mail est signe par un certificat X509 fourni par le CNRS
La verification de ce certificat peut etre faite a l'adresse suivante:
http://igc.services.cnrs.fr/CNRS-Standard/recherche.html
Re: action.do not found on this server
Posted by "Emmanuel.Leguy" <Em...@lifl.fr>.
Jeff Beal a écrit :
>What does your struts-config look like?
>
>
Here is the mapping for action.do. I don't use any form-bean because I
don't need it. I have to access directly to my action with the url:
https://myserver/path/action.do
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD
Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<action-mappings>
<action path="/action" type="mypackage.struts.Actions.DoAction">
<forward name="echec" path="/index.jsp" redirect="true" />
<forward name="succes" path="/vew.jsp" redirect="false" />
</action>
</action-mappings>
<message-resources parameter="mypackage.ApplicationResources" />
</struts-config>
Thanx,
Manu.
--
Emmanuel Leguy LIFL - UMR8022 CNRS - Bat M3
Tel: +33 3 28 77 85 32 USTL - Universite de Lille 1
Fax: +33 3 28 77 85 37 59655 VILLENEUVE D'ASCQ CEDEX - FRANCE
mailto:Emmanuel.Leguy@lifl.fr http://www.lifl.fr/ANNUAIRE/employee.php?login=leguye
Ce mail est signe par un certificat X509 fourni par le CNRS
La verification de ce certificat peut etre faite a l'adresse suivante:
http://igc.services.cnrs.fr/CNRS-Standard/recherche.html
Re: action.do not found on this server
Posted by Jeff Beal <jb...@gmail.com>.
What does your struts-config look like?
On 9/2/05, Emmanuel.Leguy <Em...@lifl.fr> wrote:
> Hello,
>
> Apache: 1.3.33
> Tomcat: 5.5
> Solaris 10
> modjk 1.2
>
> I try this direct URI:
>
> https://myserver/path/action.do
>
> And if i haven't a session opened I get an apache 404 error:
>
> The requested URL /path/action.do was not found on this server.
>
> In my web.xml:
>
> <servlet-mapping>
> <servlet-name>action</servlet-name>
> <url-pattern>*.do</url-pattern>
> </servlet-mapping>
>
> In my mod_jk log:
>
>
> [Fri Sep 02 17:11:40 2005] [jk_uri_worker_map.c (486)]: Into
> jk_uri_worker_map_t::map_uri_to_worker
> [Fri Sep 02 17:11:40 2005] [jk_uri_worker_map.c (500)]: Attempting to
> map URI '/path/action.do'
> [Fri Sep 02 17:11:40 2005] [jk_uri_worker_map.c (524)]:
> jk_uri_worker_map_t::map_uri_to_worker, Found a context match interne ->
> /path/
>
>
> Nothing in the tomcat log.
>
> If a session exists. No problem.
>
> An Idea?
>
> Thanx,
>
> Manu
>
> --
> Emmanuel Leguy LIFL - UMR8022 CNRS - Bat M3
> Tel: +33 3 28 77 85 32 USTL - Universite de Lille 1
> Fax: +33 3 28 77 85 37 59655 VILLENEUVE D'ASCQ CEDEX - FRANCE
>
> mailto:Emmanuel.Leguy@lifl.fr http://www.lifl.fr/ANNUAIRE/employee.php?login=leguye
>
> Ce mail est signe par un certificat X509 fourni par le CNRS
> La verification de ce certificat peut etre faite a l'adresse suivante:
> http://igc.services.cnrs.fr/CNRS-Standard/recherche.html
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: action.do not found on this server
Posted by "Emmanuel.Leguy" <Em...@lifl.fr>.
Nafise Dianatizade a écrit :
>have you defined the ActionServlet in web.xml ?
>
>
><!-- Action Servlet Configuration -->
>
><servlet>
>
><servlet-name>action</servlet-name>
>
><servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>
><init-param>
>
><param-name>config</param-name>
>
><param-value>/WEB-INF/struts-config.xml</param-value>
>
></init-param>
>
></servlet>
>
>
>---------------------------------
>Yahoo! Mail for Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone.
>
>
yes, plus the 'load-on-startup' tag:
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Thanx,
Manu.
--
Emmanuel Leguy LIFL - UMR8022 CNRS - Bat M3
Tel: +33 3 28 77 85 32 USTL - Universite de Lille 1
Fax: +33 3 28 77 85 37 59655 VILLENEUVE D'ASCQ CEDEX - FRANCE
mailto:Emmanuel.Leguy@lifl.fr http://www.lifl.fr/ANNUAIRE/employee.php?login=leguye
Ce mail est signe par un certificat X509 fourni par le CNRS
La verification de ce certificat peut etre faite a l'adresse suivante:
http://igc.services.cnrs.fr/CNRS-Standard/recherche.html
Re: action.do not found on this server
Posted by Nafise Dianatizade <n_...@yahoo.com>.
have you defined the ActionServlet in web.xml ?
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
</servlet>
---------------------------------
Yahoo! Mail for Mobile
Take Yahoo! Mail with you! Check email on your mobile phone.