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,