IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Maven Java Discussion :

[Maven2][Cargo] Problème avec Weblogic 10.0


Sujet :

Maven Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2010
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2010
    Messages : 8
    Par défaut [Maven2][Cargo] Problème avec Weblogic 10.0
    Bonjour à tous,

    Je voudrais utiliser le plugin Cargo pour lancer un Weblogic 10.0 et y dérouler des tests d'intégration.

    Voici ce que j'ai indiqué pour le plugin Cargo dans mon pom.xml :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
     
            <plugin>
                <groupId>org.codehaus.cargo</groupId>
                <artifactId>cargo-maven2-plugin</artifactId>
                <configuration>
                	<wait>false</wait>
     
                	<container>
    			<containerId>weblogic10x</containerId>
                            <home>C:\Logiciels\bea\wlserver_10.0</home> 
                            <log>${project.build.directory}/cargo.log</log> 
    		</container>
    		<configuration>
                            <home>${project.build.directory}/weblogic10x</home>
    			<properties>
    				<cargo.servlet.port>9999</cargo.servlet.port>
                                    <cargo.logging>high</cargo.logging>
    			</properties>
    		</configuration>
                </configuration>
                <executions>
    		<execution>
    			<id>start</id>
    			<phase>pre-integration-test</phase>
    			<goals>
    				<goal>start</goal>
    			</goals>
    		</execution>
    		<execution>
    			<id>stop</id>
    			<phase>post-integration-test</phase>
    			<goals>
    				<goal>stop</goal>
    			</goals>
    		</execution>
                </executions>
            </plugin>
    Seulement j'obtiens l'erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    ------------------------------------------------------------------------
    [ERROR]FATAL ERROR
    ------------------------------------------------------------------------
    Failed to start the WebLogic 10.x container.
    Deployable [http://localhost:9999/cargocpc/index.html] failed to finish deploying within the timeout period [120000]. The Deployable state is thus unknown.
    ------------------------------------------------------------------------
    Voici ce qu'il y a dans le log :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    26
    27
    28
    29
    30
    31
    32
    33
     
    [10:46:50.203][info][talledLocalContainer] WebLogic 10.x starting...
    [10:46:50.875][info][talledLocalContainer] <11 juin 2010 10 h 46 CEST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    [10:46:50.875][info][talledLocalContainer] C:\Logiciels\bea\wlserver_10.0\platform\lib\p13n\p13n-schemas.jar;C:\Logiciels\bea\wlserver_10.0\platform\lib\p13n\p13n_common.jar;C:\Logiciels\bea\wlserver_10.0\platform\lib\p13n\p13n_system.jar;C:\Logiciels\bea\wlserver_10.0\platform\lib\p13n\wlp_services.jar;C:\Logiciels\bea\wlserver_10.0\platform\lib\wlp\netuix_common.jar;C:\Logiciels\bea\wlserver_10.0\platform\lib\wlp\netuix_schemas.jar;C:\Logiciels\bea\wlserver_10.0\platform\lib\wlp\netuix_system.jar;C:\Logiciels\bea\wlserver_10.0\platform\lib\wlp\wsrp-client.jar;C:\Logiciels\bea\wlserver_10.0\platform\lib\wlp\wsrp-common.jar> 
    [10:46:51.062][info][talledLocalContainer] <11 juin 2010 10 h 46 CEST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 14.2-b01 from Sun Microsystems Inc.> 
    [10:46:51.562][info][talledLocalContainer] <11 juin 2010 10 h 46 CEST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.0 MP2  Sat Apr 25 01:45:38 EDT 2009 1213942 > 
    [10:46:53.500][info][talledLocalContainer] <11 juin 2010 10 h 46 CEST> <Info> <WebLogicServer> <BEA-000215> <Loaded License : C:\Logiciels\bea\license.bea> 
    [10:46:53.516][info][talledLocalContainer] <11 juin 2010 10 h 46 CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
    [10:46:53.531][info][talledLocalContainer] <11 juin 2010 10 h 46 CEST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool> 
    [10:46:53.734][info][talledLocalContainer] <11 juin 2010 10 h 46 CEST> <Notice> <Log Management> <BEA-170019> <The server log file ${project.build.directory}\target\weblogic10x\servers\wl_server\logs\wl_server.log is opened. All server side log events will be written to this file.> 
    [10:46:54.188][info][talledLocalContainer] <11 juin 2010 10 h 46 CEST> <Error> <Socket> <BEA-000438> <Unable to load performance pack. Using Java I/O instead. Please ensure that wlntio.dll is in: 'C:\Program Files\Java\jdk1.6.0_16\jre\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0'
    [10:46:54.188][info][talledLocalContainer] > 
    [10:46:57.016][info][talledLocalContainer] <11 juin 2010 10 h 46 CEST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> 
    [10:47:00.438][info][talledLocalContainer] <11 juin 2010 10 h 47 CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY> 
    [10:47:00.438][info][talledLocalContainer] <11 juin 2010 10 h 47 CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
    [10:47:02.172][info][talledLocalContainer] <11 juin 2010 10 h 47 CEST> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to the domain log.> 
    [10:47:02.359][info][talledLocalContainer] <11 juin 2010 10 h 47 CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN> 
    [10:47:02.359][info][talledLocalContainer] <11 juin 2010 10 h 47 CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING> 
    [10:47:03.469][info][talledLocalContainer] <11 juin 2010 10 h 47 CEST> <Warning> <Deployer> <BEA-149189> <Attempt to operate 'deploy' on null BasicDeploymentMBean for deployment _appsdir_cargocpc_war. Operation can not be performed until server is restarted.> 
    [10:47:03.672][info][talledLocalContainer] <11 juin 2010 10 h 47 CEST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application '_appsdir_cargocpc_war'.> 
    [10:47:03.672][info][talledLocalContainer] <11 juin 2010 10 h 47 CEST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    [10:47:03.672][info][talledLocalContainer] weblogic.management.DeploymentException: [Deployer:149189]Attempt to operate 'deploy' on null BasicDeploymentMBean for deployment _appsdir_cargocpc_war. Operation can not be performed until server is restarted.
    [10:47:03.672][info][talledLocalContainer] 	at weblogic.deploy.internal.targetserver.DeploymentManager.assertDeploymentMBeanIsNonNull(DeploymentManager.java:1281)
    [10:47:03.672][info][talledLocalContainer] 	at weblogic.deploy.internal.targetserver.DeploymentManager.findDeploymentMBean(DeploymentManager.java:1322)
    [10:47:03.672][info][talledLocalContainer] 	at weblogic.deploy.internal.targetserver.DeploymentManager.createOperation(DeploymentManager.java:1022)
    [10:47:03.672][info][talledLocalContainer] 	at weblogic.deploy.internal.targetserver.DeploymentManager.createOperations(DeploymentManager.java:1368)
    [10:47:03.672][info][talledLocalContainer] 	at weblogic.deploy.internal.targetserver.DeploymentManager.handleUpdateDeploymentContext(DeploymentManager.java:160)
    [10:47:03.672][info][talledLocalContainer] 	Truncated. see log file for complete stacktrace
    [10:47:03.672][info][talledLocalContainer] > 
    [10:47:05.797][info][talledLocalContainer] <11 juin 2010 10 h 47 CEST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:9999 for protocols iiop, t3, ldap, snmp, http.> 
    [10:47:05.797][info][talledLocalContainer] <11 juin 2010 10 h 47 CEST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "server" for domain "domain" running in Development Mode> 
    [10:47:05.813][info][talledLocalContainer] <11 juin 2010 10 h 47 CEST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> 
    [10:47:05.813][info][talledLocalContainer] <11 juin 2010 10 h 47 CEST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    Je pense que le problème vient de
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    [10:47:03.672][info][talledLocalContainer] weblogic.management.DeploymentException: [Deployer:149189]Attempt to operate 'deploy' on null BasicDeploymentMBean for deployment _appsdir_cargocpc_war. Operation can not be performed until server is restarted.
    J'ai déjà pas mal cherché et je ne trouve pas d'où vient le problème. Je rajoute que si je démarre le serveur Weblogic manuellement, tout fonctionne correctement.

    Merci d'avance pour vos idées,

  2. #2
    Membre éclairé

    Inscrit en
    Août 2002
    Messages
    302
    Détails du profil
    Informations personnelles :
    Âge : 43

    Informations forums :
    Inscription : Août 2002
    Messages : 302
    Par défaut
    Bonjour,
    Essaie de mettre le wait à true ou de l'enlever complètement pour voir ce que ça donne.

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2010
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2010
    Messages : 8
    Par défaut
    Non ça ne fonctionne pas.

    PS : si j'utilise un serveur tomcat (en modifiant seulement le containerId et le home du pom.xml), ça fonctionne.

  4. #4
    Membre éclairé

    Inscrit en
    Août 2002
    Messages
    302
    Détails du profil
    Informations personnelles :
    Âge : 43

    Informations forums :
    Inscription : Août 2002
    Messages : 302
    Par défaut
    Je pense que le problème vient de ta config weblogic sous
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
      <home>${project.build.directory}/weblogic10x</home>
    .

  5. #5
    Membre du Club
    Profil pro
    Inscrit en
    Juin 2010
    Messages
    8
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2010
    Messages : 8
    Par défaut
    Il n'y a pas de config que je pourrais modifier sous
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    <configuration>
        <home>${project.build.directory}/weblogic10x</home>
    </configuration>
    En fait, Maven2 crée automatiquement une configuration standalone. Spécifier un chemin grâce aux balises <home> permet de choisir où la configuration sera créée (sinon par défaut c'est dans le dossier tmp/).
    Cf http://cargo.codehaus.org/Starting+a...ng+a+container.

    Ce que moi je comprends, c'est que pour une raison inconnue, Cargo n'arrive pas à déployer cargocpc.war (une archive 'cargo ping component' qui permet de pinger le serveur pour vérifier qu'il est démarré) :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    Attempt to operate 'deploy' on null BasicDeploymentMBean for deployment _appsdir_cargocpc_war
    D'ailleurs si à ce moment là j'essaye d'accéder au serveur par http://localhost:9999/, j'ai une erreur 404.

Discussions similaires

  1. Réponses: 0
    Dernier message: 24/07/2009, 16h59
  2. Réponses: 0
    Dernier message: 13/02/2009, 11h14
  3. Problème passage en HTTPS avec Weblogic 8.0
    Par mavrick78 dans le forum Serveurs (Apache, IIS,...)
    Réponses: 7
    Dernier message: 10/12/2007, 18h05
  4. Problème avec jsp:include sous Weblogic Portal 8.1
    Par papyreno dans le forum Servlets/JSP
    Réponses: 2
    Dernier message: 16/10/2007, 11h36
  5. Problème avec la mémoire virtuelle
    Par Anonymous dans le forum CORBA
    Réponses: 13
    Dernier message: 16/04/2002, 16h10

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo