Je reviens vers vous avec toutes mes excuses pour ce dérangement!
Avec votre orientation sur les données de la base, je me suis rendu compte
en effet que j'ai corrigé certaines erreurs de saisie dans la base mais pas
au niveau des fichiers de config...
Et dans l'erreur générée dans tomcat, rien ne laissait supposer ce cas et je
comprends aussi pourquoi cela fonctionnait sur d'autres environnements (qui
utilisaient la base de données "ancienne") alors que cette version ne
fonctionnait pas car basée sur une base de données mise à jour...

En tout cas maintenant, tout va bien!!

en tout cas merci beaucoup pour vos commentaires et au plaisir...




Cimballi-2 wrote:
> 
> Je doute que le problème soit sur "return success", comme tu as un
> NPE, c'est obligatoirement sur une ligne avec un accès à un objet.
> Peut-être as-tu changé la classe entre temps, tu devrais réexécuter
> ton code et vérifier le numéro de ligne.
> A part ça, dans la variable user tu as mis "admnin" et non "admin",
> est-ce normal ?
> 
> Cimballi
> 
> 
> 2010/1/26 canardo972 <canardo...@yahoo.fr>:
>>
>> Bonjour Cimballi,
>>
>> voici le code de la classe ChargementParamAction (la ligne 66 est dans la
>> fonction execute : le "return SUCCESS":
>> public class ChargementParamAction extends ActionSupport {
>>
>>        private static final long serialVersionUID = 1L;
>>        //utilisateur concern�
>>        private String user="admnin";
>>
>>        //parametrage simple
>>    private ParametrageSimple parametrageActuel;
>>    //theme d'affichage
>>    private String themeActuel;
>>    private Configuration configuration;
>>    //pour les requetes sur la base parametrage
>>    private ParametrageDao param = new ParametrageHibernateDao();
>>
>>        public void setParametrageActuel(ParametrageSimple
>> parametrageActuel) {
>>                this.parametrageActuel = parametrageActuel;
>>        }
>>
>>        public String execute()
>>    {
>>                //on r�cup�re le param�trage simple
>>                //(relations, niveau)
>>                parametrageActuel=param.displayParametrageSimple(user);
>>                //on r�cup�re le th�me d'affchage
>>                Theme theme = param.displayTheme(user);
>>                themeActuel = theme.getTheme();
>>                //on r�cup�re la configuration
>>                configuration  = param.displayConfiguration(user);
>>        return SUCCESS;
>>    }
>>
>>        //on retourne les param�tres simples
>>        public ParametrageSimple getParametrageActuel() {
>>                return parametrageActuel;
>>        }
>>
>>        //on retourne le th�me d'affichage
>>        public String getThemeActuel(){
>>
>>                return themeActuel;
>>        }
>>
>>        //on renvoi la configuration
>>        public Configuration getConfiguration(){
>>
>>                return configuration;
>>        }
>>
>>        ...........
>>        ..........
>> }
>>
>> Une information supplémentaire :
>> Après tests, l'application Web se déploie et fonctionne très bien sous
>> Windows sous apache Tomcat 6 et apache tomcat 5.5...
>> De même sous Ubuntu en version tomcat 6...
>> Je ne suis donc pas sûr que cela vienne du développement et je pense
>> (sans
>> être sûr) que cela vienne d'une configuration particulière à faire...ou
>> d'une librairie à mettre à jour...
>> enfin je sais plus trop quoi en penser :-p...
>>
>> merci en tout cas pour l'intérêt que tu portes à ce problème!
>>
>>
>>
>> Cimballi-2 wrote:
>>>
>>> Tu as quoi comme code à cette ligne :
>>> action.ChargementParamAction.execute(ChargementParamAction.java:66) ?
>>>
>>> Cimballi
>>>
>>>
>>> 2010/1/25 canardo972 <canardo...@yahoo.fr>:
>>>>
>>>> Bonjour,
>>>>
>>>> Contexte :
>>>> Après installation de tomcat 5.5 et le déploiement de mon application
>>>> Web,
>>>> je rencontre une erreur suivante dès le lancement de l'application...
>>>> Il semble que l'action "init" ne soit pas trouvée mais après une
>>>> multitude
>>>> de tests suite à des conseils sur des forums, je n'en suis même plus
>>>> sûr
>>>>
>>>> En faisant les mêmes tests sous Windows (déploiement du même .war sous
>>>> une
>>>> version tomcat5.5 ), l'application se lance correctement...même chose
>>>> sous
>>>> windows pour une version tomcat6...
>>>> Je commence à désespérer :-(
>>>>
>>>> [U]version des outils : [/U]
>>>> Debian 5.0.3
>>>> Tomcat 5.5
>>>> Struts 2.0.14
>>>>
>>>> fichier struts.xml:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8" ?>
>>>> <!DOCTYPE struts PUBLIC
>>>>    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
>>>>    "http://struts.apache.org/dtds/struts-2.0.dtd";>
>>>>
>>>> <struts>
>>>>   <include file="struts-default.xml"/>
>>>>
>>>>     <package name="default" extends="struts-default">
>>>>
>>>>                <action name="carteConcept"
>>>> class="action.ConceptAction">
>>>>                        <result type="xslt" name="successConcept">
>>>>                                /xsl/Concept.xsl
>>>>                </result>
>>>>                        <result type="xslt" name="successEntity">
>>>>                                /xsl/Entity.xsl
>>>>                </result>
>>>>        </action>
>>>>
>>>>
>>>>        <action name="notice" class="action.NoticeAction">
>>>>            <result name="success">Notice.jsp</result>
>>>>        </action>
>>>>
>>>>        <action name="param" class="action.ParametrageAction"
>>>> method="save"/>
>>>>        <action name="paramAv" class="action.ParametrageAvAction"
>>>> method="save">
>>>>            <result name="success" type="redirect-action">init</result>
>>>>        </action>
>>>>       [b] <action name="init" class="action.ChargementParamAction">
>>>>            <result name="success">treenavig.jsp</result>
>>>>        </action>[/b]
>>>> .........
>>>> .......
>>>>
>>>> fichier web.xml:
>>>>
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <web-app id="WebApp_9" version="2.4"
>>>> xmlns="http://java.sun.com/xml/ns/j2ee";
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>>>> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
>>>>
>>>>    <display-name>Struts2CRUD</display-name>
>>>>
>>>>    <filter>
>>>>        <filter-name>struts2</filter-name>
>>>>
>>>> <!--filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class-->
>>>>
>>>> <filter-class>actionDispatcherFilter.Struts2Dispatcher</filter-class>
>>>>
>>>>    </filter>
>>>>
>>>>    <filter-mapping>
>>>>        <filter-name>struts2</filter-name>
>>>>        <url-pattern>/*</url-pattern>
>>>>    </filter-mapping>
>>>>
>>>>    <servlet>
>>>>        <servlet-name>HelloServlet</servlet-name>
>>>>        <servlet-class>action.HelloServlet</servlet-class>
>>>>    </servlet>
>>>>
>>>>    <servlet-mapping>
>>>>        <servlet-name>HelloServlet</servlet-name>
>>>>        <url-pattern>/HelloServlet</url-pattern>
>>>>    </servlet-mapping>
>>>>
>>>>  <servlet>
>>>>    <servlet-name>Servlet_File</servlet-name>
>>>>    <servlet-class>utils.servlet.Servlet_File</servlet-class>
>>>>  </servlet>
>>>>
>>>>  <servlet-mapping>
>>>>    <servlet-name>Servlet_File</servlet-name>
>>>>    <url-pattern>/servlet/utils.servlet.Servlet_File</url-pattern>
>>>>  </servlet-mapping>
>>>>
>>>>   [b] <welcome-file-list>
>>>>        <welcome-file>navigation.jsp</welcome-file>
>>>>    </welcome-file-list>[/b]
>>>>    <error-page>
>>>>        <error-code>404</error-code>
>>>>        <location>/pagenotfound.jsp</location>
>>>>     </error-page>
>>>>     <error-page>
>>>>        <exception-type>java.lang.Exception</exception-type>
>>>>        <location>/error.jsp</location>
>>>>    </error-page>
>>>> </web-app>
>>>>
>>>>
>>>> fichier de lancement : navigation.jsp
>>>>
>>>> <%@ page language="java" contentType="text/html; charset=utf-8" %>
>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>>>> "http://www.w3.org/TR/html4/loose.dtd";>
>>>> <%@ taglib prefix="s" uri="/struts-tags" %>
>>>> <html>
>>>> <head>
>>>> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
>>>> <title>Portail Navigation</title>
>>>> </head>
>>>> <body>
>>>> [b]<s:action name="init" executeResult="true"></s:action>[/b]
>>>> </body>
>>>> </html>
>>>>
>>>>
>>>>
>>>> [b]erreur :[/b]
>>>>
>>>> 25 janv. 2010 15:08:49 org.apache.struts2.components.ActionComponent
>>>> executeAction
>>>> GRAVE: Could not execute action: /init
>>>> java.lang.NullPointerException
>>>>        at
>>>> action.ChargementParamAction.execute(ChargementParamAction.java:66)
>>>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>        at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>        at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:229)
>>>>        at
>>>> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
>>>>        at
>>>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
>>>>        at
>>>> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
>>>>        at
>>>> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
>>>>        at
>>>> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
>>>>        at
>>>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
>>>>        at
>>>> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
>>>>        at
>>>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
>>>>        at
>>>> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
>>>>        at
>>>> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:184)
>>>>        at
>>>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
>>>>        at
>>>> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
>>>>        at
>>>> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
>>>>        at
>>>> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
>>>>        at
>>>> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)
>>>>        at
>>>> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
>>>>
>>>>
>>>> J'ai testé des versions plus récentes de la librairie xwork et rien n'y
>>>> fait...
>>>> HELP Please!!
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/Tomcat-5.5-%2B-Struts2-%3A-Erreur-lancement-Application-Web-tp27308004p27308004.html
>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Tomcat-5.5-%2B-Struts2-%3A-Erreur-lancement-Application-Web-tp27308004p27320526.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-5.5-%2B-Struts2-%3A-Erreur-lancement-Application-Web-tp27308004p27324725.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to