maven-glassfish-plugin
Nicolas Delsaux <[email protected]> Tue, 2 Aug 2011 11:55:36 +0200
| Newsgroups | gmane.comp.java.french.general |
|---|---|
| Message-ID | <CAOxcQsENb6RvHx+yYCnob_zk411Rs4Xo_R0dw06S5QT4ufcPSg@mail.gmail.com> |
--20cf3079b948e130d304a982bf8c
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Salut
je vous interromps sur la plage pour une question limite couillonne.
Est-ce que vous avez d=E9ja utilis=E9 maven-glassfish-plugin pour cr=E9er d=
es
ressources JMS ?
ca fait une journ=E9e que j'essaye, et =E7a merde =E0 chaque fois.
J'ai eu du mal =E0 comprendre, mais maintenant, =E7a y est, j'ai compris.
Il semble que les d=E9veloppeurs n'aient jamais imagin=E9 qu'on puisse util=
iser
la m=EAme connectionfactory pour plusieurs queues. je m'explique.
Avec maven-glassfish-plugin, on peut d=E9clarer un domaine dans son pom. C'=
est
tr=E8s pratique pour partager la conf du domaine entre d=E9veloppeurs, je
trouve.
Donc, je me suis dit que j'allais tout flanquer l=E0-dedans, et piloter mon
glassfish =E0 grands coups de mvn glassfish:deploy (qui cr=E9e et d=E9marre=
le
domaine si n=E9cessaire, le confort quoi !).
J'ai donc cr=E9=E9 mon domaine comme =E7a :
<domain>
<name>autocat</name>
<httpPort>8080</httpPort>
<adminPort>4848</adminPort>
<!-- TODO maybe replace global resources with application specific ones
using
http://blogs.oracle.com/JagadishPrasath/entry/application_scoped_resources_=
in_glassfish-->
<resources>
<!-- JMS Connection factory -->
<connectionFactory>
<jndiName>jms/pouet/ConnectionFactory</jndiName>
<type>connectionFactory</type>
</connectionFactory>
<jmsTopic>
<jndiName>jms/CrudServiceNotifier</jndiName>
<destinationName>jms_CrudServiceNotifier</destinationName>
<connectionFactory>
<jndiName>jms/pouet/ConnectionFactory</jndiName>
</connectionFactory>
</jmsTopic>
</resources>
</domain>
Et quand je tape mvn glassfish:deploy, il me sort ce log :
l (2 KB at 2.5 KB/sec)
[INFO] Domain pouet isn't started. Starting it for you.
[INFO] Domain pouet does not exist. Creating it for you.
[INFO] Deprecated syntax, instead use:
[INFO] asadmin --echo --terse=3Dfalse --interactive=3Dfalse --user pouet
--passwordfile
E:\JavaWorkspace\pouet\pouet-ear/src/main/config/glassfish.password
create-domain [options] ...
[INFO] CLI031 Warning: Option "profile" is obsolete and will be ignored.
[INFO] asadmin --host localhost --port 4848 --user autocat --passwordfile
E:\JavaWorkspace\ pouet \ pouet -ear/src/main/config/glassfish.password
--interactive=3Dfalse --echo=3Dtrue --terse=3Dfalse create-domain --adminpo=
rt 4848
--profile developer --domaindir
"E:\\java-ext\\glassfish3\\glassfish\\domains" --instanceport 8080
--savemasterpassword=3Dfalse --usemasterpassword=3Dfalse --savelogin=3Dfals=
e
--nopassword=3Dfalse --checkports=3Dtrue autocat
[INFO] Using port 4848 for Admin.
[INFO] Using port 8080 for HTTP Instance.
[INFO] Using default port 7676 for JMS.
[INFO] Using default port 3700 for IIOP.
[INFO] Using default port 8181 for HTTP_SSL.
[INFO] Using default port 3820 for IIOP_SSL.
[INFO] Using default port 3920 for IIOP_MUTUALAUTH.
[INFO] Using default port 8686 for JMX_ADMIN.
[INFO] Using default port 6666 for OSGI_SHELL.
[INFO] Using default port 9009 for JAVA_DEBUGGER.
[INFO] The file in given locale [fr_FR] at:
[E:\java-ext\glassfish3\glassfish\lib\templates\locales\fr_FR\index.html]
could not be found. Using default (en_US) index.html instead.
[INFO] Distinguished Name of the self-signed X.509 Server Certificate is:
[INFO] [CN=3Dperigee-567125f,OU=3DGlassFish,O=3DOracle Corporation,L=3DSant=
a
Clara,ST=3DCalifornia,C=3DUS]
[INFO] Distinguished Name of the self-signed X.509 Server Certificate is:
[INFO] [CN=3Dperigee-567125f-instance,OU=3DGlassFish,O=3DOracle
Corporation,L=3DSanta Clara,ST=3DCalifornia,C=3DUS]
[INFO] No domain initializers found, bypassing customization step
[INFO] Domain autocat created.
[INFO] Domain autocat admin port is 4848.
[INFO] Domain autocat admin user is "autocat".
[INFO] Command create-domain executed successfully.
[INFO] Deprecated syntax, instead use:
[INFO] asadmin --echo --terse=3Dfalse --interactive=3Dfalse --user autocat
--passwordfile E:\JavaWorkspace\ pouet \ pouet -e
ar/src/main/config/glassfish.password start-domain [options] ...
[INFO] asadmin --host localhost --port 4848 --user autocat --passwordfile
E:\JavaWorkspace\ pouet \ pouet -ear/src/main/config/glassfish.password
--interactive=3Dfalse --echo=3Dtrue --terse=3Dfalse start-domain --verbose=
=3Dfalse
--upgrade=3Dfalse --debug=3Dtrue --domaindir
"E:\\java-ext\\glassfish3\\glassfish\\domains" autocat
[INFO] Attempting to start autocat.... Please look at the server log for
more details.....
[INFO] Deprecated syntax, instead use:
[INFO] asadmin --echo --terse=3Dfalse --interactive=3Dfalse --user autocat
--passwordfile E:\JavaWorkspace\ pouet \ pouet
-ear/src/main/config/glassfish.password --port 4848 create-jms-resource
[options] ...
[INFO] asadmin --host localhost --port 4848 --user autocat --passwordfile
E:\JavaWorkspace\ pouet \ pouet -ear/src/main/config/glassfish.password
--interactive=3Dfalse --echo=3Dtrue --terse=3Dfalse create-jms-resource --r=
estype
javax.jms.Connecti
onFactory --enabled=3Dtrue jms/ pouet /ConnectionFactory
[INFO] Connector resource jms/ pouet /ConnectionFactory created.
[INFO] Command create-jms-resource executed successfully.
[INFO] Deprecated syntax, instead use:
[INFO] asadmin --echo --terse=3Dfalse --interactive=3Dfalse --user autocat
--passwordfile E:\JavaWorkspace\ pouet \ pouet
-ear/src/main/config/glassfish.password --port 4848 create-jms-resource
[options] ...
[INFO] asadmin --host localhost --port 4848 --user autocat --passwordfile
E:\JavaWorkspace\ pouet \ pouet -ear/src/main/config/glassfish.password
--interactive=3Dfalse --echo=3Dtrue --terse=3Dfalse create-jms-resource --r=
estype
javax.jms.TopicConnectionFactory --enabled=3Dtrue jms/ pouet
/ConnectionFactory
[INFO] Command create-jms-resource failed.
[ERROR] remote failure: Unable to create connection resource.
[ERROR] A ConnectorResource by name jms/ pouet /ConnectionFactory already
exists with resource-ref in target server.
[ERROR] Unable to create JMS resource jms/ pouet /ConnectionFactory.
[ERROR] For more detail on what might be causing the problem try running
maven with the --debug option
[ERROR] or setting the maven-glassfish-plugin "echo" property to "true".
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 51.672s
[INFO] Finished at: Tue Aug 02 11:23:44 CEST 2011
[INFO] Final Memory: 6M/15M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.glassfish.maven.plugin:maven-glassfish-plugin:2.1:deploy (default-cli)
on project aut
ocat-ear: Unable to create JMS resource jms/ pouet /ConnectionFactory. ->
[Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.glassfish.maven.plugin:maven-glassfis
h-plugin:2.1:deploy (default-cli) on project autocat-ear: Unable to create
JMS resource jms/AutoCat/ConnectionFactory.
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:=
213)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:=
153)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:=
145)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif=
ecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif=
ecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Li=
fecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart=
er.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3=
9)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp=
l.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j=
ava:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher=
.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352=
)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to create
JMS resource jms/AutoCat/ConnectionFactory.
at
org.glassfish.maven.plugin.command.AsadminCommand.execute(AsadminCommand.ja=
va:121)
at
org.glassfish.maven.plugin.CreateDomainMacro.createJMSDestination(CreateDom=
ainMacro.java:122)
at
org.glassfish.maven.plugin.CreateDomainMacro.addResources(CreateDomainMacro=
.java:104)
at
org.glassfish.maven.plugin.CreateDomainMacro.execute(CreateDomainMacro.java=
:76)
at
org.glassfish.maven.plugin.StartDomainMacro.execute(StartDomainMacro.java:6=
5)
at
org.glassfish.maven.plugin.DeployGlassfishMojo.doExecute(DeployGlassfishMoj=
o.java:63)
at au.net.ocean.maven.plugin.OceanMojo.execute(OceanMojo.java:67)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP=
luginManager.java:101)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:=
209)
... 19 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, pleas=
e
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Bref,,; =E7a foire. Et =E7a foire parce qu'il essaye de cr=E9er deux fois l=
a
ConnectionFactory.
En fouillant un peu dans le code du plugin, je me suis rendu compte que
c'=E9tait parce que, dans CreateDomainMacro#createJMSDestination, on essaye
toujours de cr=E9er la ConnectionFactory associ=E9e =E0 la destination JMS.=
C'est
voulu ? Ca n'en donne pas l'impression en tout cas.
Donc, =E7a foire dans les grandes largeurs dans mon cas.
Alors que puis-je faire ?
Faire un fork de ce plugin ? Berk !
Faire un bug report ? J'ai l'impression, au vu des ML, que le projet est
loin d'=EAtre dynamique. Cela dit, je veux bien essayer.
Utiliser une autre m=E9thode de partage des informations relatives =E0 mon
domaine ?
Je veux bien, mais je sais pas trop comment faire. En effet, si la doc
semble mentionner l'existence d'un resources.xml jouant un r=F4le analogue,
mais dans un format diff=E9rent, =E0 celui des ressources d=E9crites dans m=
aven,
ce format n'est vraiment pas tr=E8s document=E9.
Et =E0 part ces solutions sp=E9cifiques Glassfish, existe-t-il des moyens d=
e
partager la configuration des sources de donn=E9es d'un serveur d'applicati=
on
? Autrement dit, vous faites comment, chez vous ?
--=20
Nicolas Delsaux
--20cf3079b948e130d304a982bf8c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div>Salut<br clear=3D"all"></div><div>je vous interromps sur la plage pour=
une question limite couillonne.</div><div>Est-ce que vous avez d=E9ja util=
is=E9 maven-glassfish-plugin pour cr=E9er des ressources JMS ?</div><div>ca=
fait une journ=E9e que j'essaye, et =E7a merde =E0 chaque fois.</div>
<div>J'ai eu du mal =E0 comprendre, mais maintenant, =E7a y est, j'=
ai compris.</div><div>Il semble que les d=E9veloppeurs n'aient jamais i=
magin=E9 qu'on puisse utiliser la m=EAme connectionfactory pour plusieu=
rs queues. je m'explique.</div>
<div>Avec maven-glassfish-plugin, on peut d=E9clarer un domaine dans son po=
m. C'est tr=E8s pratique pour partager la conf du domaine entre d=E9vel=
oppeurs, je trouve.</div><div>Donc, je me suis dit que j'allais tout fl=
anquer l=E0-dedans, et piloter mon glassfish =E0 grands coups de mvn glassf=
ish:deploy (qui cr=E9e et d=E9marre le domaine si n=E9cessaire, le confort =
quoi !).</div>
<div>J'ai donc cr=E9=E9 mon domaine comme =E7a :</div><div><br></div><d=
iv> <domain><br> <name>autocat</name><br> &=
lt;httpPort>8080</httpPort><br> <adminPort>4848</adm=
inPort><br>
<!-- TODO maybe replace global resources with application specifi=
c ones using <br> <a href=3D"http://blogs.oracle.com/JagadishPrasath/=
entry/application_scoped_resources_in_glassfish">http://blogs.oracle.com/Ja=
gadishPrasath/entry/application_scoped_resources_in_glassfish</a> --><br=
>
<resources><br>=A0 =A0<!-- JMS Connection factory -->=
<br> <connectionFactory><br>=A0 <jndiName>jms/pouet=
/ConnectionFactory</jndiName><br> <type>connectionFactor=
y</type><br>
</connectionFactory><br> <jmsTopic><br> <=
;jndiName>jms/CrudServiceNotifier</jndiName><br> <destin=
ationName>jms_CrudServiceNotifier</destinationName><br> <=
;connectionFactory><br>
=A0 <jndiName>jms/pouet/ConnectionFactory</jndiName><br>=
</connectionFactory><br> </jmsTopic><br>=A0 =
=A0</resources><br> </domain><br><br></div><div>Et quand je=
tape mvn glassfish:deploy, il me sort ce log :</div>
<div><br></div><div>l (2 KB at 2.5 KB/sec)<br>[INFO] Domain pouet isn't=
started. Starting it for you.<br>[INFO] Domain =20
pouet
does not exist. Creating it for you.<br>[INFO] Deprecated syntax, instead u=
se:<br>[INFO] asadmin --echo --terse=3Dfalse --interactive=3Dfalse --user =
=20
pouet
--passwordfile E:\JavaWorkspace\pouet\pouet-ear/src/main/config/glassfish.p=
assword create-domain [options] ...<br>[INFO] CLI031 Warning: Option "=
profile" is obsolete and will be ignored.<br>[INFO] asadmin --host loc=
alhost --port 4848 --user autocat --passwordfile E:\JavaWorkspace\
pouet
\
pouet
-ear/src/main/config/glassfish.password --interactive=3Dfalse --echo=3Dtrue=
--terse=3Dfalse create-domain --adminport 4848 --profile developer --domai=
ndir "E:\\java-ext\\glassfish3\\glassfish\\domains" --instancepor=
t 8080 --savemasterpassword=3Dfalse --usemasterpassword=3Dfalse --savelogin=
=3Dfalse --nopassword=3Dfalse --checkports=3Dtrue autocat<br>
[INFO] Using port 4848 for Admin.<br>[INFO] Using port 8080 for HTTP Instan=
ce.<br>[INFO] Using default port 7676 for JMS.<br>[INFO] Using default port=
3700 for IIOP.<br>[INFO] Using default port 8181 for HTTP_SSL.<br>[INFO] U=
sing default port 3820 for IIOP_SSL.<br>
[INFO] Using default port 3920 for IIOP_MUTUALAUTH.<br>[INFO] Using default=
port 8686 for JMX_ADMIN.<br>[INFO] Using default port 6666 for OSGI_SHELL.=
<br>[INFO] Using default port 9009 for JAVA_DEBUGGER.<br>[INFO] The file in=
given locale [fr_FR] at: [E:\java-ext\glassfish3\glassfish\lib\templates\l=
ocales\fr_FR\index.html] could not be found. Using default (en_US) index.ht=
ml instead.<br>
[INFO] Distinguished Name of the self-signed X.509 Server Certificate is:<b=
r>[INFO] [CN=3Dperigee-567125f,OU=3DGlassFish,O=3DOracle Corporation,L=3DSa=
nta Clara,ST=3DCalifornia,C=3DUS]<br>[INFO] Distinguished Name of the self-=
signed X.509 Server Certificate is:<br>
[INFO] [CN=3Dperigee-567125f-instance,OU=3DGlassFish,O=3DOracle Corporation=
,L=3DSanta Clara,ST=3DCalifornia,C=3DUS]<br>[INFO] No domain initializers f=
ound, bypassing customization step<br>[INFO] Domain autocat created.<br>[IN=
FO] Domain autocat admin port is 4848.<br>
[INFO] Domain autocat admin user is "autocat".<br>[INFO] Command =
create-domain executed successfully.<br>[INFO] Deprecated syntax, instead u=
se:<br>[INFO] asadmin --echo --terse=3Dfalse --interactive=3Dfalse --user a=
utocat --passwordfile E:\JavaWorkspace\
pouet
\
pouet
-e<br>ar/src/main/config/glassfish.password start-domain [options] ...<br>[=
INFO] asadmin --host localhost --port 4848 --user autocat --passwordfile E:=
\JavaWorkspace\
pouet
\
pouet
-ear/src/main/config/glassfish.password --interactive=3Dfalse --echo=3Dtrue=
--terse=3Dfalse start-domain --verbose=3Dfalse --upgrade=3Dfalse --debug=
=3Dtrue --domaindir "E:\\java-ext\\glassfish3\\glassfish\\domains"=
; autocat<br>
[INFO] Attempting to start autocat.... Please look at the server log for mo=
re details.....<br>[INFO] Deprecated syntax, instead use:<br>[INFO] asadmin=
--echo --terse=3Dfalse --interactive=3Dfalse --user autocat --passwordfile=
E:\JavaWorkspace\
pouet
\
pouet
-ear/src/main/config/glassfish.password --port 4848 create-jms-resource [op=
tions] ...<br>[INFO] asadmin --host localhost --port 4848 --user autocat --=
passwordfile E:\JavaWorkspace\
pouet
\
pouet
-ear/src/main/config/glassfish.password --interactive=3Dfalse --echo=3Dtrue=
--terse=3Dfalse create-jms-resource --restype javax.jms.Connecti<br>onFact=
ory --enabled=3Dtrue jms/
pouet
/ConnectionFactory<br>[INFO] Connector resource jms/
pouet
/ConnectionFactory created.<br>[INFO] Command create-jms-resource executed =
successfully.<br>[INFO] Deprecated syntax, instead use:<br>[INFO] asadmin -=
-echo --terse=3Dfalse --interactive=3Dfalse --user autocat --passwordfile E=
:\JavaWorkspace\
pouet
\
pouet
-ear/src/main/config/glassfish.password --port 4848 create-jms-resource [op=
tions] ...<br>[INFO] asadmin --host localhost --port 4848 --user autocat --=
passwordfile E:\JavaWorkspace\
pouet
\
pouet
-ear/src/main/config/glassfish.password --interactive=3Dfalse --echo=3Dtrue=
--terse=3Dfalse create-jms-resource --restype javax.jms.TopicConnectionFac=
tory --enabled=3Dtrue jms/
pouet
/ConnectionFactory<br>[INFO] Command create-jms-resource failed.<br>[ERROR]=
remote failure: Unable to create connection resource.<br>[ERROR] A Connect=
orResource by name jms/
pouet
/ConnectionFactory already exists with resource-ref in target server.<br>[E=
RROR] Unable to create JMS resource jms/
pouet
/ConnectionFactory.<br>[ERROR] For more detail on what might be causing the=
problem try running maven with the --debug option<br>[ERROR] or setting th=
e maven-glassfish-plugin "echo" property to "true".<br>
[INFO] --------------------------------------------------------------------=
----<br>[INFO] BUILD FAILURE<br>[INFO] ------------------------------------=
------------------------------------<br>[INFO] Total time: 51.672s<br>[INFO=
] Finished at: Tue Aug 02 11:23:44 CEST 2011<br>
[INFO] Final Memory: 6M/15M<br>[INFO] -------------------------------------=
-----------------------------------<br>[ERROR] Failed to execute goal org.g=
lassfish.maven.plugin:maven-glassfish-plugin:2.1:deploy (default-cli) on pr=
oject aut<br>
ocat-ear: Unable to create JMS resource jms/
pouet
/ConnectionFactory. -> [Help 1]<br>org.apache.maven.lifecycle.LifecycleE=
xecutionException: Failed to execute goal org.glassfish.maven.plugin:maven-=
glassfis<br>h-plugin:2.1:deploy (default-cli) on project autocat-ear: Unabl=
e to create JMS resource jms/AutoCat/ConnectionFactory.<br>
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExe=
cutor.java:213)<br> at org.apache.maven.lifecycle.internal.MojoExecu=
tor.execute(MojoExecutor.java:153)<br> at org.apache.maven.lifecycle=
.internal.MojoExecutor.execute(MojoExecutor.java:145)<br>
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.build=
Project(LifecycleModuleBuilder.java:84)<br> at org.apache.maven.life=
cycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.j=
ava:59)<br>
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThrea=
dedBuild(LifecycleStarter.java:183)<br> at org.apache.maven.lifecycl=
e.internal.LifecycleStarter.execute(LifecycleStarter.java:161)<br> a=
t org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)<br>
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)<br>=
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)<br> =
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)<br> a=
t org.apache.maven.cli.MavenCli.main(MavenCli.java:141)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> =
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI=
mpl.java:39)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(=
DelegatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:597)<br> at o=
rg.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.ja=
va:290)<br> at org.codehaus.plexus.classworlds.launcher.Launcher.lau=
nch(Launcher.java:230)<br>
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCo=
de(Launcher.java:409)<br> at org.codehaus.plexus.classworlds.launche=
r.Launcher.main(Launcher.java:352)<br>Caused by: org.apache.maven.plugin.Mo=
joFailureException: Unable to create JMS resource jms/AutoCat/ConnectionFac=
tory.<br>
at org.glassfish.maven.plugin.command.AsadminCommand.execute(Asadmi=
nCommand.java:121)<br> at org.glassfish.maven.plugin.CreateDomainMac=
ro.createJMSDestination(CreateDomainMacro.java:122)<br> at org.glass=
fish.maven.plugin.CreateDomainMacro.addResources(CreateDomainMacro.java:104=
)<br>
at org.glassfish.maven.plugin.CreateDomainMacro.execute(CreateDomai=
nMacro.java:76)<br> at org.glassfish.maven.plugin.StartDomainMacro.e=
xecute(StartDomainMacro.java:65)<br> at org.glassfish.maven.plugin.D=
eployGlassfishMojo.doExecute(DeployGlassfishMojo.java:63)<br>
at au.net.ocean.maven.plugin.OceanMojo.execute(OceanMojo.java:67)<b=
r> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(=
DefaultBuildPluginManager.java:101)<br> at org.apache.maven.lifecycl=
e.internal.MojoExecutor.execute(MojoExecutor.java:209)<br>
... 19 more<br>[ERROR]<br>[ERROR] Re-run Maven using the -X switch =
to enable full debug logging.<br>[ERROR]<br>[ERROR] For more information ab=
out the errors and possible solutions, please read the following articles:<=
br>
[ERROR] [Help 1] <a href=3D"http://cwiki.apache.org/confluence/display/MAVE=
N/MojoFailureException">http://cwiki.apache.org/confluence/display/MAVEN/Mo=
joFailureException</a><br><br></div><div>Bref,,; =E7a foire. Et =E7a foire =
parce qu'il essaye de cr=E9er deux fois la ConnectionFactory.</div>
<div>En fouillant un peu dans le code du plugin, je me suis rendu compte qu=
e c'=E9tait parce que, dans CreateDomainMacro#createJMSDestination, on =
essaye toujours de cr=E9er la ConnectionFactory associ=E9e =E0 la destinati=
on JMS. C'est voulu ? Ca n'en donne pas l'impression en tout ca=
s.</div>
<div>Donc, =E7a foire dans les grandes largeurs dans mon cas.</div><div>Alo=
rs que puis-je faire ?</div><div>Faire un fork de ce plugin ? Berk !</div><=
div>Faire un bug report ? J'ai l'impression, au vu des ML, que le p=
rojet est loin d'=EAtre dynamique. Cela dit, je veux bien essayer.</div=
>
<div>Utiliser une autre m=E9thode de partage des informations relatives =E0=
mon domaine ?</div><div>Je veux bien, mais je sais pas trop comment faire.=
En effet, si la doc semble mentionner l'existence d'un resources.x=
ml jouant un r=F4le analogue, mais dans un format diff=E9rent, =E0 celui de=
s ressources d=E9crites dans maven, ce format n'est vraiment pas tr=E8s=
document=E9.</div>
<div>Et =E0 part ces solutions sp=E9cifiques Glassfish, existe-t-il des moy=
ens de partager la configuration des sources de donn=E9es d'un serveur =
d'application ? Autrement dit, vous faites comment, chez vous ?</div><b=
r>
-- <br>Nicolas Delsaux<br><br>
--20cf3079b948e130d304a982bf8c--