[jboss-dev-forums] [Design of POJO Server] - Re: EARStructure not deploying modules

scott.stark@jboss.org do-not-reply at jboss.com
Fri Oct 27 02:47:38 EDT 2006


A number of the ejb3 tests are deploying remotely and from the deploy dir. One ear that is having deployment failures is the factory-test.ear. There is a failure to find a META-INF/persistence.xml is a nested jar although the file does exist:


  | Caused by: java.io.FileNotFoundException: /tmp/nestedjar45108.tmp/META-INF/persistence.xml
  |         at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:94)
  |         at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:103)
  |         at java.net.URL.openStream(URL.java:1007)
  |         at org.hibernate.ejb.packaging.PersistenceXmlLoader.loadURL(PersistenceXmlLoader.java:43)
  |         at org.hibernate.ejb.packaging.PersistenceXmlLoader.deploy(PersistenceXmlLoader.java:73)
  |         at org.jboss.ejb3.Ejb3Deployment.initializePersistenceUnits(Ejb3Deployment.java:450)
  |         at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:314)
  |         at org.jboss.ejb3.deployers.EJBRegistrationDeployer.deploy(EJBRegistrationDeployer.java:137)
  |         ... 12 more
  | 
  | *** DEPLOYMENTS IN ERROR: Name -> Error
  | 
  | jar:file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/factory-test.ear!/session1.jar -> java.io.FileNotFoundException: /tmp/nestedjar45104.tmp/META-INF/persistence.xml
  | 
  | jar:file:/home/svn/JBossHead/jboss-head/build/output/jboss-5.0.0.Beta/server/default/deploy/factory-test.ear!/session2.jar -> java.io.FileNotFoundException: /tmp/nestedjar45108.tmp/META-INF/persistence.xml
  | 
  | 
  | 23:40:22,093 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
  | 23:40:22,118 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
  | 23:40:22,120 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta (build: CVSTag=HEAD date=200610262157)] Started in 15s:241ms
  | 
  | ...
  | 
  | [starksm at succubus Security]$ jar -tf /tmp/nestedjar45108.tmp
  | META-INF/
  | META-INF/MANIFEST.MF
  | org/
  | org/jboss/
  | org/jboss/ejb3/
  | org/jboss/ejb3/test/
  | org/jboss/ejb3/test/factory/
  | org/jboss/ejb3/test/factory/Entity2.class
  | org/jboss/ejb3/test/factory/MyService.class
  | org/jboss/ejb3/test/factory/MyServiceBean.class
  | org/jboss/ejb3/test/factory/Session2.class
  | org/jboss/ejb3/test/factory/Session2Bean.class
  | META-INF/persistence.xml
  | 

The vfs does not use the no copy nested jar code by default. I'll look into this error more tomorrow.


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

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



More information about the jboss-dev-forums mailing list