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

Reply via email to