Thank you for answer, but I have
struts2-core-2.0.9.jar in

PianificazioneWeb.war/WEB-INF/lib

where I also have these jars:

struts2-jasperreports-plugin-2.0.9.jar struts2-tiles-plugin-2.0.9.jar tiles-api-2.0.4.jar tiles-core-2.0.4.jar tiles-jsp-2.0.4.jar xwork-2.0.4.jar commons-beanutils-1.7.0.jar
commons-chain-1.1.jar
commons-collections-3.1.jar
commons-configuration-1.0.jar
commons-digester-1.7.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
commons-validator-1.3.0.jar
freemarker-2.3.8.jar
log4j-1.2.15.jar
ognl-2.6.11.jar
oro-2.0.8.jar

I think I have a wrong configuration in web.xml or jboss-web.xml


Martin Gainty ha scritto:
ObjectFactoryDestroyable class is packaged in
$JBOSS_HOME/examples/StrutsWebApp/exploded-archives/StrutsWebApp
.war/WEB-INF/lib/struts2-core-<version>.jar

if not there cp $STRUTS2_HOME/lib/struts2-core*.jar
$JBOSS_HOME/examples/StrutsWebApp/exploded-archives/StrutsWebApp

.war/WEB-INF/lib/struts2-core*.jar

Martin ______________________________________________ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




Date: Wed, 20 May 2009 15:00:39 +0200
From: daniele.delgau...@sociale.it
To: user@struts.apache.org
Subject: struts2 on jboss java.lang.NoClassDefFoundError: 
org/apache/struts2/util/ObjectFactoryDestroyable

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


_________________________________________________________________
Hotmail® has a new way to see what's up with your friends.
http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009


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

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com






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

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Reply via email to