This content has been marked as final.
Show 3 replies
-
1. Re: Multiple deployment configurations
alesj Oct 17, 2007 8:24 AM (in response to ataylor)When deployed with new MC deployers, MC picks up all files that end with -beans.xml. So, not just jboss-beans.xml. ;-)
And MC being a full state machine, hence no need for ugly 'import some file'. ;-) -
2. Re: Multiple deployment configurations
ataylor Oct 17, 2007 8:57 AM (in response to ataylor)Is this new as when i try this in the latest JBossAS 5 it gives me an error:
13:51:49,817 ERROR [BeanDeployer] Error during deployment: vfsfile:/home/andy/devtools/jboss-5.0.0.Beta2/server/jbm2/deploy/jboss-messaging.beans org.jboss.deployers.spi.DeploymentException: Only one file is allowed, found=[JarEntryHandler@32681901[path=jboss-messaging.beans/META-INF/jboss-beans.xml context=file:/home/andy/devtools/jboss-5.0.0.Beta2/server/jbm2/deploy/ real=jar:file:/home/andy/devtools/jboss-5.0.0.Beta2/server/jbm2/deploy/jboss-messaging.beans!/META-INF/jboss-beans.xml], JarEntryHandler@32222408[path=jboss-messaging.beans/META-INF/mysql-beans.xml context=file:/home/andy/devtools/jboss-5.0.0.Beta2/server/jbm2/deploy/ real=jar:file:/home/andy/devtools/jboss-5.0.0.Beta2/server/jbm2/deploy/jboss-messaging.beans!/META-INF/mysql-beans.xml]] at org.jboss.deployers.plugins.deployers.helpers.AbstractParsingDeployer.parse(AbstractParsingDeployer.java:172) at org.jboss.deployers.plugins.deployers.helpers.AbstractParsingDeployer.createMetaData(AbstractParsingDeployer.java:114)
-
3. Re: Multiple deployment configurations
alesj Oct 17, 2007 9:09 AM (in response to ataylor)Aha, having it that way, it won't work. :-)
http://jira.jboss.com/jira/browse/JBMICROCONT-184
My TODO. :-(
But if you can have them in 'different' DeploymentUnits, it will work.
e.g. having a common sar, with multiple jars for beans (and -beans.xml files)