still can't get it to work. I have an ear (mc.ear) for my application. Inside there are: - entities.jar with entities classes and persistence.xml including 1 PUnit - business.jar with SBs and POJOs - web.war all 3 packages are listed in application.xml as modules:
| <?xml version="1.0" encoding="UTF-8"?> | <application> | <display-name>mc</display-name> | <module> | <java>entities.jar</java> | </module> | <module> | <ejb>business.jar</ejb> | </module> | <module> | <web> | <web-uri>web.war</web-uri> | <context-root>mc</context-root> | </web> | </module> | </application> everything is ok. now I want to deploy an additional persistence unit by creating an jar (entities2.jar) with only this persistence.xml in it: | <persistence xmlns="http://java.sun.com/xml/ns/persistence" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" | version="1.0"> | | <persistence-unit name="mcora"> | <jta-data-source>java:/mcDS</jta-data-source> | <jar-file>../entities.jar</jar-file> | <properties> | <property name="hibernate.hbm2ddl.auto" value="update"/> | <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9Dialect"/> | <property name="hibernate.show_sql" value="false"/> | <property name="hibernate.cache.provider_class" value="org.jboss.ejb3.entity.TreeCacheProviderHook"/> | <property name="hibernate.treecache.mbean.object_name" value="jboss.cache:service=EJB3EntityTreeCache"/> | | <property name="jboss.entity.manager.jndi.name" value="java:/EntityManagers/mcora"/> | <property name="jboss.entity.manager.factory.jndi.name" value="java:/EntityManagerFactories/mcora"/> | </properties> | </persistence-unit> | | </persistence> this gives me: java.lang.RuntimeException: error trying to scan <jar-file>: file:/Z:/mc/jboss/jboss-4.0.4.CR2/server/default/deploy/entities.jar I tried your hint and packed entities2.jar in another ear with application.xml: | <?xml version="1.0" encoding="UTF-8"?> | <application> | <display-name>mcora</display-name> | | <module> | <java>entities.jar</java> | </module> | <module> | <ejb>entities2.jar</ejb> | </module> | | </application> | but this results in: org.jboss.deployment.DeploymentException: Failed to find module file: entities.jar I guess I get you wrong?! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935339#3935339 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3935339 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
