Bonjour, ca fait deux jours que je me bat avec Struts pour esayer de faire tourner un hello world.
Voici l'erreur que je recoit lorsque j'essaye d'accéder à http://localhost:8080/MobileStock/Welcome :
(je vous épargne les kilometres de la pile d'appel)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 22 mai 2007 15:54:49 org.apache.struts.action.ActionServlet initChain INFO: Loading chain catalog from jar:file:/var/lib/tomcat-5.5/webapps/MobileStock/WEB-INF/lib/struts-core.jar!/org/apache/struts/chain/chain-config.xml 22 mai 2007 15:54:50 org.apache.struts.chain.ComposableRequestProcessor init INFO: Initializing composable request processor for module prefix '' 22 mai 2007 15:54:50 org.apache.struts.chain.commands.AbstractExceptionHandler execute ATTENTION: Unhandled exception org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url. at org.apache.struts.chain.commands.AbstractSelectAction.execute(AbstractSelectAction.java:68) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:48) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190 ....
Voici mon struts-config.xml
j'ai le fichier sayhello.jsp positionné qui est bien dans mon WAR (WebContent/sayhello.jsp)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 <?xml version="1.0" encoding="UTF-8" ?> <!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> <form-beans> <form-bean name="HelloForm" type="examples.hello.HelloForm"/> </form-beans> <action-mappings> <action path="/Welcome" forward="/sayhello.jsp" > <!-- <forward name="SayHello" path="/sayhello.jsp"/> --> </action> </action-mappings> <message-resources parameter="examples.hello.Application"/> </struts-config>
struts-config.xml se situe bien à l'endroit que j'ai indiqué dans mon web.xml.
Qelqu'un saurait pourquoi il me dit qu'aucune action n'est attribuée à /Welcome ?
Ca m'éviterai la défenestration![]()
Merci d'avance![]()






Répondre avec citation





Partager