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] La servlet action est actuellement indisponible


Sujet :

Struts 1 Java

  1. #1
    Membre régulier
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    217
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Service public

    Informations forums :
    Inscription : Février 2005
    Messages : 217
    Points : 121
    Points
    121
    Par défaut [erreur] La servlet action est actuellement indisponible
    J'ai le message suivant quand je lance une action .do : La servlet action est actuellement indisponible

    J'utilise Eclipse SDK Version: 3.1.1.
    J'utilise le petit serveur intégrer avec "tomcat".

    Je ne trouve pas de message d'erreur.... Une idée ?

    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
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    2009-03-30 10:09:41 StandardContext[/matriceCadastrale]La servlet action est marqué comme indisponible
    2009-03-30 10:09:41 StandardContext[/matriceCadastrale]La servlet /matriceCadastrale a généré une exception "load()"
    javax.servlet.UnavailableException
    	at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1169)
    	at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
    	at javax.servlet.GenericServlet.init(GenericServlet.java:211)
    	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
    	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
    	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
    	at org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:830)
    	at org.apache.catalina.core.StandardHost.start(StandardHost.java:991)
    	at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1322)
    	at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:530)
    	at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    	at java.lang.Thread.run(Thread.java:534)
    Merci

  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
    C'est sûrement un problème de fichiers de config.

    Peux-tu poster le code du web.xml et du struts-config.xml ?
    Modératrice Java - Struts, Servlets/JSP, ...

  3. #3
    Membre régulier
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    217
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Service public

    Informations forums :
    Inscription : Février 2005
    Messages : 217
    Points : 121
    Points
    121
    Par défaut
    Mon fichier web.xml:

    Code xml : 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
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    <?xml version="1.0" encoding="ISO-8859-1"?>
     
    <!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>
     
    	<!-- Filter Configuration -->
    	<filter>
    		<filter-name>compression</filter-name>
    		<filter-class>moreservlets.filters.CompressionFilter</filter-class>
    	</filter>
     
    	<!-- Filter Mapping: *.do -->
    	<filter-mapping>
    		<filter-name>compression</filter-name>
    		<url-pattern>*.do</url-pattern>
    	</filter-mapping>
     
    	<!-- Listeners -->
    	<listener>
    		<listener-class>
    			be.gim.matriceCadastrale.web.SessionListener
    		</listener-class>
    	</listener>
     
    	<!-- Action Servlet Configuration -->
    	<servlet>
    		<servlet-name>extract</servlet-name>
    		<servlet-class>be.gim.matriceCadastrale.web.extract.ExtractServlet</servlet-class>
    	</servlet>
    	<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/config/struts-config.xml</param-value>
    		</init-param>
    		<init-param>
    			<param-name>debug</param-name>
    			<param-value>2</param-value>
    		</init-param>
    		<init-param>
    			<param-name>detail</param-name>
    			<param-value>2</param-value>
    		</init-param>
    		<load-on-startup>2</load-on-startup>
    	</servlet>
     
    	<servlet>
    		<servlet-name>loginServlet</servlet-name>
    		<servlet-class>be.gim.matriceCadastrale.web.login.LoginServlet</servlet-class>
    	</servlet>
     
    	<servlet-mapping>
    		<servlet-name>loginServlet</servlet-name>
    		<url-pattern>/login</url-pattern>
    	</servlet-mapping>
     
    	<servlet-mapping>
    		<servlet-name>extract</servlet-name>
    		<url-pattern>/extract/*</url-pattern>
    	</servlet-mapping>
     
    	<!-- Action Servlet Mapping: *.do -->
    	<servlet-mapping>
    		<servlet-name>action</servlet-name>
    		<url-pattern>*.do</url-pattern>
    	</servlet-mapping>
     
    	<!-- The Welcome File List -->
    	<welcome-file-list>
    		<welcome-file>index.jsp</welcome-file>
    	</welcome-file-list>
     
    	<!-- Struts Tag Library Descriptors -->
    	<taglib>
    		<taglib-uri>/tags/struts/bean</taglib-uri>
    		<taglib-location>/WEB-INF/tlds/struts/struts-bean.tld</taglib-location>
    	</taglib>
     
    	<taglib>
    		<taglib-uri>/tags/struts/html</taglib-uri>
    		<taglib-location>/WEB-INF/tlds/struts/struts-html.tld</taglib-location>
    	</taglib>
     
    	<taglib>
    		<taglib-uri>/tags/struts/logic</taglib-uri>
    		<taglib-location>/WEB-INF/tlds/struts/struts-logic.tld</taglib-location>
    	</taglib>
     
    	<taglib>
    		<taglib-uri>/tags/struts/nested</taglib-uri>
    		<taglib-location>/WEB-INF/tlds/struts/struts-nested.tld</taglib-location>
    	</taglib>
     
    	<taglib>
    		<taglib-uri>/tags/struts/tiles</taglib-uri>
    		<taglib-location>/WEB-INF/tlds/struts/struts-tiles.tld</taglib-location>
    	</taglib>
     
    	<!-- JSTL Descriptors -->
    	<taglib>
    		<taglib-uri>/tags/jstl/core</taglib-uri>
    		<taglib-location>/WEB-INF/tlds/jstl/c.tld</taglib-location>
    	</taglib>
     
    	<taglib>
    		<taglib-uri>/tags/jstl/fmt</taglib-uri>
    		<taglib-location>/WEB-INF/tlds/jstl/fmt.tld</taglib-location>
    	</taglib>
     
    	<taglib>
    		<taglib-uri>/tags/jstl/sql</taglib-uri>
    		<taglib-location>/WEB-INF/tlds/jstl/sql.tld</taglib-location>
    	</taglib>
     
    	<taglib>
    		<taglib-uri>/tags/jstl/xml</taglib-uri>
    		<taglib-location>/WEB-INF/tlds/jstl/x.tld</taglib-location>
    	</taglib>
     
    	<!-- ArcIMS Descriptor -->
    	<taglib>
    		<taglib-uri>/tags/arcims/java_connector</taglib-uri>
    		<taglib-location>/WEB-INF/tlds/arcims/arcims_taglib.tld</taglib-location>
    	</taglib>
     
    </web-app>

    Mon fichier struts-config.xml:

    Je le joint à la discussion car le contenu est trop important pour le poster.

    j'ai ajouté cela dans une sql-map et depuis je reçoit cette erreur.

    Y a-t-il un lien?

    Merci
    Fichiers attachés Fichiers attachés

  4. #4
    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
    D'après le message d'erreur, il y a un problème au niveau des plug-in.
    Donc, effectivement, il doit y avoir un lien avec l'ajout dans une sql-map.
    Modératrice Java - Struts, Servlets/JSP, ...

  5. #5
    Membre régulier
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    217
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Service public

    Informations forums :
    Inscription : Février 2005
    Messages : 217
    Points : 121
    Points
    121
    Par défaut
    Citation Envoyé par c_nvy Voir le message
    D'après le message d'erreur, il y a un problème au niveau des plug-in.
    Donc, effectivement, il doit y avoir un lien avec l'ajout dans une sql-map.
    C'est bizarre car quand je supprime ces lignes d'ajout dans ma sql-map, il n'y a plus de problème. Comment puis-je faire pour résoudre cela?

    merci

  6. #6
    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
    Je ne sais pas, je ne connais pas Ibatis mais c'est peut-être le fichier sql-map-config.xml qui est incorrect.
    Modératrice Java - Struts, Servlets/JSP, ...

  7. #7
    Membre régulier
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    217
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Service public

    Informations forums :
    Inscription : Février 2005
    Messages : 217
    Points : 121
    Points
    121
    Par défaut
    Citation Envoyé par c_nvy Voir le message
    Je ne sais pas, je ne connais pas Ibatis mais c'est peut-être le fichier sql-map-config.xml qui est incorrect.
    Voici son contenu:
    Code xml : 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
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    <?xml version="1.0" encoding="UTF-8"?>
     
    <!DOCTYPE sql-map-config
        PUBLIC "-//iBATIS.com//DTD SQL Map Config 1.0//EN"
        "http://www.ibatis.com/dtd/sql-map-config.dtd">
     
    <sql-map-config>
     
    	<properties resource="be/gim/matriceCadastrale/web/ibatis/sql-map-config.properties" />
     
    	<datasource name="basic" default="true" factory-class="com.ibatis.db.sqlmap.datasource.DbcpDataSourceFactory">
    		<property name="JDBC.Driver" value="${driver}" />
    		<property name="JDBC.ConnectionURL" value="${url}" />
    		<property name="JDBC.Username" value="${username}" />
    		<property name="JDBC.Password" value="${password}" />
    		<property name="Pool.MaximumActiveConnections" value="10" />
    		<property name="Pool.MaximumIdleConnections" value="5" />
    		<property name="Pool.MaximumWait" value="60000" />
    		<!-- property name="Pool.ValidationQuery" value="SELECT Count(*) FROM ..." / -->
    		<property name="Pool.LogAbandoned" value="false" />
    		<property name="Pool.RemoveAbandoned" value="false" />
    		<property name="Pool.RemoveAbandonedTimeout" value="50000" />
    	</datasource>
     
    	<sql-map resource="be/gim/matriceCadastrale/web/ibatis/FicheParcelle.xml" />
    	<sql-map resource="be/gim/matriceCadastrale/web/ibatis/ParcellesArticle.xml" />
    	<sql-map resource="be/gim/matriceCadastrale/web/ibatis/Proprietaires.xml" />
    	<sql-map resource="be/gim/matriceCadastrale/web/ibatis/Recherche.xml" />
    	<sql-map resource="be/gim/matriceCadastrale/web/ibatis/Resultat.xml" />
    	<sql-map resource="be/gim/matriceCadastrale/web/ibatis/SIG.xml" />
     
    </sql-map-config>

    Je ne vois pas vraiment d'erreurs dans ce fichier.

  8. #8
    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
    Autre piste : peut-être qu'il ne trouve pas le fichier sql-map-config.xml.
    Est-il bien dans le package be.gim.matriceCadastrale.web.ibatis ?

    D'après la dtd référencée dans le struts-config.xml, tu sembles être en Struts 1.1. Est-ce bien le cas ?
    Modératrice Java - Struts, Servlets/JSP, ...

  9. #9
    Membre régulier
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Février 2005
    Messages
    217
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : Service public

    Informations forums :
    Inscription : Février 2005
    Messages : 217
    Points : 121
    Points
    121
    Par défaut
    Citation Envoyé par c_nvy Voir le message
    Autre piste : peut-être qu'il ne trouve pas le fichier sql-map-config.xml.
    Est-il bien dans le package be.gim.matriceCadastrale.web.ibatis ?

    D'après la dtd référencée dans le struts-config.xml, tu sembles être en Struts 1.1. Est-ce bien le cas ?
    Oui mon fichier sql-map-config.xml est bien dans ce package.

    J'utilise bien Struts 1.1.

    J'avoue ne vraiment pas voir d'où peut venir l'erreur

Discussions similaires

  1. Réponses: 0
    Dernier message: 08/04/2014, 21h54
  2. Réponses: 1
    Dernier message: 25/09/2010, 18h55
  3. erreur 404:Servlet action indisponible
    Par siskoals dans le forum Struts 1
    Réponses: 8
    Dernier message: 11/11/2009, 13h57
  4. Erreur : La servlet action est actuellement indisponible
    Par guilopouloos dans le forum Struts 1
    Réponses: 2
    Dernier message: 07/05/2008, 14h54
  5. Réponses: 18
    Dernier message: 07/02/2007, 14h33

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