Hi ,

I have a few XMBean components that I have successfully been codeploying to a 3.2.3 
container. Originally the XMBean components were deployed in a separate SAR, whilst 
WAR, EJB and JAR content was deployed in an EAR. To simplify the deployment process I 
have incorporated the SAR deployment units into the EAR (using the JBoss specific 
jboss-app.xml deployment descriptor).

When I deploy the content now the XMBeans appear to be deploying fine, however all of 
the WAR and EJB jar content is failing with the following JNDI related issues;

1. Example of failed WAR;

2004-07-05 17:43:55,315 ERROR [org.jboss.deployment.MainDeployer] could not star
  | t deployment: file:/home/at/jboss-3.2.3/server/default/tmp/deploy/tmp7270CFS.ear
  | -contents/lib/CFS-STP.war
  | org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
  | e: (javax.naming.NameAlreadyBoundException; remaining name 'env')
  |         at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:44
  | 0)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
  |         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
  |         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
  |         at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)

... snip ...

2. Example of failed EJB;

2004-07-05 17:43:47,822 ERROR [org.jboss.ejb.MessageDrivenContainer] Starting fa
  | iled
  | javax.naming.NameAlreadyBoundException; remaining name 'env'
  |         at org.jnp.server.NamingServer.createSubcontext(NamingServer.java:451)
  |         at org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:
  | 847)
  |         at org.jnp.interfaces.NamingContext.createSubcontext(NamingContext.java:
  | 833)
  |         at org.jboss.ejb.Container.setupEnvironment(Container.java:765)
  |         at org.jboss.ejb.Container.startService(Container.java:572)
  |         at org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContai
  | ner.java:227)
  |         at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
  | 92)
  |         at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:324)
  |         at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
  | nDispatcher.java:284)

Doing a few Google searches, and scouring this site has not got me any closer to 
figuring out what I am doing wrong. There is an example in the JBoss 3.2.3 Admin and 
Dev Guide that successfully demonstrates co-deploying EJB and SAR content in a single 
EAR (although in this case a standard MBean is used, rather than an XMBean). I would 
appreciate any assistance that anyone might give.

Thanks and regards,
Andrew

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840945#3840945

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840945


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to