Hello, can someone help me?

When I undeploy or redeploy my web application based on struts2 on jboss 4.2.2 I have this error:

13:35:57,788 INFO [TomcatDeployer] undeploy, ctxPath=/PianificazioneWeb, warUrl=.../deploy/PianificazioneWeb.war/
13:35:57,788 ERROR [BaseModelMBean] Exception invoking method destroy
java.lang.NoClassDefFoundError: org/apache/struts2/util/ObjectFactoryDestroyable
        at org.apache.struts2.dispatcher.Dispatcher.cleanup(Dispatcher.java:257)
at org.apache.struts2.dispatcher.FilterDispatcher.destroy(FilterDispatcher.java:221) at org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:332) at org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3757)
        at 
org.apache.catalina.core.StandardContext.stop(StandardContext.java:4517)
        at 
org.apache.catalina.core.ContainerBase.destroy(ContainerBase.java:1163)
at org.apache.catalina.core.StandardContext.destroy(StandardContext.java:4617)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at ...


My web.xml is

<?xml version="1.0" encoding="UTF-8"?>

<web-app 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>PianificazioneWeb</display-name>
        <context-param>
        <param-name>tilesDefinitions</param-name>
        <param-value>/WEB-INF/tiles.xml</param-value>
    </context-param>

    <filter>
        <filter-name>struts2</filter-name>

<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>

                                
    <filter-mapping>
        <filter-name>struts2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>


    <listener>

<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
    </listener>

    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

        <ejb-local-ref>
                
<ejb-ref-name>serv/ServPianificazioneContrattiBeanLocal</ejb-ref-name>
                <ejb-ref-type>Session</ejb-ref-type>
                <local-home></local-home>
                
<local>pianificazioneEjb.services.ServPianificazioneContratti</local>
        </ejb-local-ref>
        <ejb-local-ref>
                
<ejb-ref-name>serv/ServPianificazioneOpportunitaBeanLocal</ejb-ref-name>
                <ejb-ref-type>Session</ejb-ref-type>
                <local-home></local-home>
                
<local>pianificazioneEjb.services.ServPianificazioneOpportunita</local>
        </ejb-local-ref>
        <ejb-local-ref>
                
<ejb-ref-name>serv/ServPianificazioneProgettiBeanLocal</ejb-ref-name>
                <ejb-ref-type>Session</ejb-ref-type>
                <local-home></local-home>
                
<local>pianificazioneEjb.services.ServPianificazioneProgetti</local>
        </ejb-local-ref>
</web-app>

My jboss-web.xml is

<?xml version="1.0" encoding="UTF-8"?>
<!--
 *  Copyright 2008, Javid Jamae and Peter Johnson
 *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy
 *  of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 *  License for the specific language governing permissions and limitations
 *  under the License.
-->
<jboss-web>
           <loader-repository>
                        pianificazioneWeb:loader=LoaderPianificazioneWeb
                   <loader-repository-config>
                        java2ParentDelegation=false
                   </loader-repository-config>
           </loader-repository>   
                <ejb-local-ref>
                   
<ejb-ref-name>serv/ServPianificazioneContrattiBeanLocal</ejb-ref-name>
<local-jndi-name>Accoglienza/ServPianificazioneContrattiBean/local</local-jndi-name>
            </ejb-local-ref>
            <ejb-local-ref>
<ejb-ref-name>serv/ServPianificazioneOpportunitaBeanLocal</ejb-ref-name> <local-jndi-name>Accoglienza/ServPianificazioneOpportunitaBean/local</local-jndi-name>
            </ejb-local-ref>
            <ejb-local-ref>
                   
<ejb-ref-name>serv/ServPianificazioneProgettiBeanLocal</ejb-ref-name>
<local-jndi-name>Accoglienza/ServPianificazioneProgettiBean/local</local-jndi-name>
            </ejb-local-ref>
</jboss-web>

and my struts.xml is

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

   <constant name="struts.enable.DynamicMethodInvocation" value="true" />
<!-- etichette e messaggi dell'intera applicazione sono in MessageResources.properties --> <constant name="struts.custom.i18n.resources" value="MessageResources" />
    <constant name="struts.ui.theme" value="css_xhtml" />
<!-- devMode, i18n.reload,nocache a true solo in ambiente di sviluppo -->
    <constant name="struts.devMode"  value="true" />
    <constant name="struts.i18n.reload" value="true" />
    <constant name="struts.xslt.nocache" value="true" />
    <constant name="struts.configuration.xml.reload" value="true" />




     <!-- <include file="struts-default.xml"/>    -->

     <package name="action" extends="tiles-default">

<!-- le righe sotto sovrascrivono la def di result-type scritta uguale nel file struts-plugin.xml
         in struts2-tiles-plugin-2.0.9.jar ma senza il default="true"  -->

        
                <global-results>
                   <result name="error">/chapterEight/Error.jsp</result>
            </global-results>
                
        <global-exception-mappings>
<exception-mapping exception="java.lang.Exception" result="error"/>
        </global-exception-mappings>

<action name="PianificazioneContratto" class="pianificazioneWeb.action.PianificazioneContratto">
           <interceptor-ref name="defaultStack">
<param name="params.excludeParams">idOpportunita,idProgetto</param>
           </interceptor-ref>
<result type="tiles" name="input" >tiles.PianificazioneContratto</result> <result type="tiles" name="error" >tiles.PianificazioneContratto</result> <result type="tiles" name="success" >tiles.PianificazioneContratto</result>
         <!--    <interceptor-ref name="basicStack"/> --> 
        </action>

<action name="DatiContratto" class="pianificazioneWeb.action.DatiContratto">
           <result type="tiles" >tiles.Contratto</result>
         <!--    <interceptor-ref name="basicStack"/> --> 
        </action>

<action name="Opportunita" class="pianificazioneWeb.action.DatiOpportunita">
           <result type="tiles" >tiles.Opportunita</result>
         <!--    <interceptor-ref name="basicStack"/> --> 
        </action>

<action name="Progetto" class="pianificazioneWeb.action.DatiProgetto">
           <interceptor-ref name="defaultStack">
<param name="params.excludeParams">idOpportunita,idProgetto</param>
           </interceptor-ref>
           <result type="tiles" >tiles.Progetto</result>
         <!--    <interceptor-ref name="basicStack"/> --> 
        </action>

<action name="InsPianificContratto" class="pianificazioneWeb.action.InsPianificContratto">
           <result type="tiles" >tiles.InsPianificContratto</result>
        </action>

<action name="SalvaInsPianificContratto" class="pianificazioneWeb.action.InsPianificContratto"> <result type="redirect" >/action/PianificazioneContratto.action</result>
        </action>

<action name="InsPianificPM" class="pianificazioneWeb.action.InsPianificPM">
           <result type="tiles" >tiles.InsPianificPM</result>
        </action>
                        
     </package>
</struts>


Thanks,
daniele


__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 4090 (20090520) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



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

Reply via email to