+ Répondre à la discussion
Affichage des résultats 1 à 1 sur 1
  1. #1
    Invité de passage
    Inscrit en
    septembre 2011
    Messages
    1
    Détails du profil
    Informations forums :
    Inscription : septembre 2011
    Messages : 1
    Points : 0
    Points
    0

    Par défaut Erreur "CannotRedeployException: Module has the same ClassLoader"

    Bonjour à tous,

    j'obtiens la stack suivante dans eclipse lorsque mon project à déja été publié une première fois et que j'essais de faire une modification entrainent une re-publication :

    Code :
    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
    ####<16 sept. 2011 13 h 27 CEST> <Error> <Deployer> <AdminServer> <[STANDBY] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1316172474076> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1316172473874' for task '2'. Error is: 'weblogic.application.CannotRedeployException: Module 'AX_F' has the same ClassLoader as the Application 'AX_F_EAR'. Consider redeploying the entire application.'
    weblogic.application.CannotRedeployException: Module 'AX_F' has the same ClassLoader as the Application 'AX_F_EAR'. Consider redeploying the entire application.
    	at weblogic.application.internal.AppClassLoaderManagerImpl.updatePartialDeploySet(AppClassLoaderManagerImpl.java:304)
    	at weblogic.application.internal.flow.TailModuleRedeployFlow.validateClassLoaderStructure(TailModuleRedeployFlow.java:135)
    	at weblogic.application.internal.flow.TailModuleRedeployFlow.validateRedeploy(TailModuleRedeployFlow.java:97)
    	at weblogic.application.internal.BaseDeployment$ValidateRedeployStateChange.next(BaseDeployment.java:801)
    	at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    	at weblogic.application.internal.BaseDeployment.validateRedeploy(BaseDeployment.java:301)
    	at weblogic.application.internal.BaseDeployment.stop(BaseDeployment.java:394)
    	at weblogic.application.internal.EarDeployment.stop(EarDeployment.java:16)
    	at weblogic.application.internal.DeploymentStateChecker.stop(DeploymentStateChecker.java:274)
    	at weblogic.deploy.internal.targetserver.AppContainerInvoker.stop(AppContainerInvoker.java:251)
    	at weblogic.deploy.internal.targetserver.operations.ModuleRedeployOperation.moduleLevelRedeploy(ModuleRedeployOperation.java:135)
    	at weblogic.deploy.internal.targetserver.operations.ModuleRedeployOperation.doPrepare(ModuleRedeployOperation.java:81)
    	at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
    	at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
    	at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
    	at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
    	at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
    	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
    	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
    	at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
    	at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
    	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    	at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Mon fichier application.xml (application AX_F)
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
      <display-name>NRGD</display-name>
      <module>
        <web>
          <web-uri>AX_F.war</web-uri>
          <context-root>AX_F</context-root>
        </web>
      </module>
    </application>
    Mon fichier weblogic-application.xml (application AX_F) :

    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-application xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd">
        <!--weblogic-version:10.3.0-->
        <wls:application-param>
            <wls:param-name>webapp.encoding.default</wls:param-name>
    		<wls:param-value>UTF-8</wls:param-value>
    	</wls:application-param>
     
        <wls:library-ref>
            <wls:library-name>AX010000F</wls:library-name>
            <wls:exact-match>true</wls:exact-match>
        </wls:library-ref>
     
        <wls:prefer-application-packages>
    		<wls:package-name>javax.persistence.*</wls:package-name>
    	</wls:prefer-application-packages>
    </wls:weblogic-application>
    AX010000F est déclaré en tant que "Shared Library" de AX_F


    Le fichier weblogic-application.xml de AX010000F :
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:weblogic-application xmlns:wls="http://www.bea.com/ns/weblogic/weblogic-application" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://www.bea.com/ns/weblogic/weblogic-application http://www.bea.com/ns/weblogic/weblogic-application/1.0/weblogic-application.xsd">
        <!--weblogic-version:10.3.0-->
        <wls:application-param>
            <wls:param-name>webapp.encoding.default</wls:param-name>
    		<wls:param-value>UTF-8</wls:param-value>
    	</wls:application-param>	
        <wls:classloader-structure>
            <wls:module-ref>
                <wls:module-uri>AX_F.war</wls:module-uri>
            </wls:module-ref>
        </wls:classloader-structure>
        <wls:library-ref>
            <wls:library-name>FK_N</wls:library-name>
            <wls:exact-match>true</wls:exact-match>
        </wls:library-ref>
        <wls:prefer-application-packages>
    		<wls:package-name>javax.persistence.*</wls:package-name>
    	</wls:prefer-application-packages>
    </wls:weblogic-application>
    Le fichier application.xml de AX010000F :
    Code :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
      <display-name>NRGD</display-name>
      <module>
        <web>
          <web-uri>AX_F.war</web-uri>
          <context-root>AX_F</context-root>
        </web>
      </module>
    </application>
    D'avance merci de votre aide !!!
    Images attachées Images attachées

Liens sociaux

Règles de messages

  • Vous ne pouvez pas créer de nouvelles discussions
  • Vous ne pouvez pas envoyer des réponses
  • Vous ne pouvez pas envoyer des pièces jointes
  • Vous ne pouvez pas modifier vos messages
  •