1 Reply Latest reply on Mar 22, 2004 8:36 AM by neva

    How to combine ear files of several modules into one

    neva

      Hello,

      I have an ear file for each module in my project. I would now like to have only one ear file encompassing all modules together so that I can have only one file to send to the client. How can I do that? Any ideas?
      I would also like to ask: is it possible to also include the datasource xml file in the ear file instead of physically putting it into the jboss deployment folder?
      I tried removing the DS xml file from the deployment folder and I put it into the ear but deployment fails and I get the following error:

      ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      org.jboss.deployment.DeploymentException: Error: can't find data source: java:/MySqlDS; - nested throwable: (javax.naming.NameNotFoundException: MySqlDS not bound)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:115)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:438)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:372)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:170)
      at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:339)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor366.invoke(Unknown Source)
      ......................... org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:190)
      Caused by: javax.naming.NameNotFoundException: MySqlDS not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:492)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:112)
      ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

      Thanks in Advance..