IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Struts 1 Java Discussion :

Erreur "Cannot find ActionMappings or ActionFormBeans collection"


Sujet :

Struts 1 Java

  1. #1
    cis
    cis est déconnecté
    Futur Membre du Club
    Inscrit en
    Janvier 2005
    Messages
    12
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 12
    Points : 8
    Points
    8
    Par défaut Erreur "Cannot find ActionMappings or ActionFormBeans collection"
    Bonjour,


    quand je lance mon application, j'ai le message d'erreur suivant "Cannot find ActionMappings or ActionFormBeans collection", et voici la trace complète :
    02/11/06 18:15:04:297 CET] 00000066 WebApp E SRVE0026E: [Erreur de servlet]-[/index.jsp]: javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
    at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:741)
    at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
    at com.ibm._jsp._index._jspx_meth_html_form_0(_index.java:185)
    at com.ibm._jsp._index._jspService(_index.java:92)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117)
    at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:171)
    at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230)
    at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:394)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
    at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    J'ai un peu fureté sur le net, et je trouve à chaque fois la même réponse, une erreur de balise dans le fichier struts-config.xml
    Pourtant, rien ne me semble anormal dans ce fichier...

    Auriez-vous une idée de l'origine du problème ?

    Pour info, je viens de migrer en websphere v6...

    Merci d'avance à ceux qui pourront m'aider.

  2. #2
    Expert éminent

    Femme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    5 793
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2005
    Messages : 5 793
    Points : 7 778
    Points
    7 778
    Par défaut
    Avec un peu de code, ce sera plus facile de t'aider.
    Montre-nous le struts-config.xml.
    Modératrice Java - Struts, Servlets/JSP, ...

  3. #3
    cis
    cis est déconnecté
    Futur Membre du Club
    Inscrit en
    Janvier 2005
    Messages
    12
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 12
    Points : 8
    Points
    8
    Par défaut
    Voici le contenu de mon struts-config.xml

    <?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>

    <!-- Sources de données -->

    <!-- Beans de formulaire -->
    <form-beans>
    <form-bean name="signonForm" type="cis.web.aquaweb.connection.SignonForm">
    </form-bean>
    <form-bean name="gestionComptesForm" type="cis.web.aquaweb.comptes.GestionComptesForm">
    </form-bean>
    <form-bean name="gestionLogementsForm" type="cis.web.aquaweb.logement.GestionLogementsForm">
    </form-bean>
    <form-bean name="forwarderForm" type="cis.web.aquaweb.outils.ForwarderForm">
    </form-bean>
    </form-beans>

    <!-- Erreurs globales -->
    <global-exceptions>
    </global-exceptions>

    <!-- Références aval globales -->
    <global-forwards>
    <forward name="aquaweb" path="./aquaweb.jsp">
    </forward>
    <forward name="index" path="./index.jsp">
    </forward>
    <forward name="erreurs" path="./erreurs.jsp">
    </forward>
    <forward name="editionCompteJSP" path="gestionComptes/editionCompte.jsp">
    </forward>
    <forward name="listeComptesJSP" path="gestionComptes/listeComptes.jsp">
    </forward>
    <forward name="creerCompte" path="gestionComptes.do?dispatch=initialisationCreation">
    </forward>
    <forward name="saisieReferenceLogementJSP" path="gestionLogements/saisieReferenceLogement.jsp">
    </forward>
    <forward name="detailsLogementJSP" path="gestionLogements/detailsLogement.jsp">
    </forward>
    <forward name="detailsOccupantJSP" path="gestionLogements/detailsOccupant.jsp">
    </forward>
    <forward name="listeLogementsJSP" path="gestionLogements/listeLogements.jsp">
    </forward>
    <forward name="contactsAgenceExploitJSP" path="../contacts/contactsAgenceExploit1.jsp">
    </forward>
    <forward name="contactsCommercialJSP" path="contacts/contactsCommercial.jsp">
    </forward>
    <forward name="contactsSupportInformatiqueJSP" path="contacts/contactsSupportInformatique.jsp">
    </forward>
    </global-forwards>

    <!-- Mappages d'action -->
    <action-mappings>
    <action path="/signon" type="cis.web.aquaweb.connection.SignonAction" name="signonForm" scope="request" input="./index.jsp">
    </action>
    <action path="/fermeture" type="cis.web.aquaweb.connection.FermetureAction">
    </action>
    <action path="/gestionComptes" type="cis.web.aquaweb.comptes.GestionComptesAction" input="gestionComptes/editionCompte.jsp" parameter="dispatch" name="gestionComptesForm" scope="session">
    <forward name="compteSupprimeJSP" path="gestionComptes/compteSupprime.jsp">
    </forward>
    </action>
    <action path="/listeComptes" type="cis.web.aquaweb.comptes.ListeComptesAction" input="./erreurs.jsp" parameter="dispatch" name="gestionComptesForm" scope="session">
    </action>
    <action path="/gestionLogements" type="cis.web.aquaweb.logement.GestionLogementsAction" input="gestionLogements/saisieReferenceLogement.jsp" parameter="dispatch" name="gestionLogementsForm" scope="session">
    </action>
    <action path="/forwarder" type="cis.web.aquaweb.outils.ForwarderAction" input="./erreurs.jsp" name="forwarderForm" scope="session">
    </action>
    </action-mappings>

    <!-- Ressources de message -->
    <message-resources parameter="cis.web.aquaweb.resources.ApplicationResources"/>

    </struts-config>
    A noter que tous mes projets sont impactés depuis la migration.

    Je pensais que la version de struts était trop ancienne, mais ça me semble quand même bizarre que ça ne fonctionne plus depuis la migration...

    Je pensais mettre à jour WDSC, mais je ne pense pas non plus que le problème vienne de là...

  4. #4
    cis
    cis est déconnecté
    Futur Membre du Club
    Inscrit en
    Janvier 2005
    Messages
    12
    Détails du profil
    Informations forums :
    Inscription : Janvier 2005
    Messages : 12
    Points : 8
    Points
    8
    Par défaut
    Je marque le problème comme résolu, j'ai trouvé d'ou ça venait...

    Les projets n'avaient pas été migrés...

    Merci pour les messages d'erreurs explicites !!!!!

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 0
    Dernier message: 16/03/2012, 20h59
  2. Réponses: 5
    Dernier message: 22/05/2009, 16h50
  3. Réponses: 5
    Dernier message: 05/10/2008, 15h51
  4. Message d'erreur: Cannot find file ID 2
    Par glanumf dans le forum MS SQL Server
    Réponses: 1
    Dernier message: 25/05/2007, 16h08
  5. Réponses: 9
    Dernier message: 16/05/2007, 12h00

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo