tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Dellisanti <>
Subject Re: Jar not loaded: Unknown module type
Date Wed, 09 Feb 2011 13:17:06 GMT
in my META-INF there is 3 files:

- ejb-jar.xml
- persistence.xml

in my jar there is 2 project: the ejb project end a jpa (eclipselink)
project (as I have the persistence.xml).

the ejb-jar.xml is

<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar version="3.0" xmlns="" xmlns:xsi="" xsi:schemaLocation="">
      <!-- A minimal session EJB deployment -->
      <session id="RichTestEJBBean">
         <!-- or Stateful -->



the manifest is

Manifest-Version: 1.0

the persistence.xml is

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns=""
xmlns:xsi="" xsi:schemaLocation="">
 <persistence-unit name="RichTestJPA" transaction-type="JTA">
  <description>Unita di persistenza JTA</description>
   <property name="" value="MySQL"/>
   <property name="eclipselink.logging.level" value="FINE"/>

 <persistence-unit name="RichTestLocal" transaction-type="RESOURCE_LOCAL">
  <description>Unita di persistenza Resource Local</description>
   <property name="eclipselink.jdbc.password" value="testuser"/>
   <property name="eclipselink.jdbc.user" value="testuser"/>
   <property name="eclipselink.jdbc.driver" value="com.mysql.jdbc.Driver"/>
   <property name="eclipselink.jdbc.url"
   <property name="eclipselink.ddl-generation"
   <property name="eclipselink.logging.level" value="INFO"/>


in my ejb project I use the persistence unit RichTestJPA.
2011/2/9 Jean-Louis MONTEIRO <>

> The file path seems a bit strange to me
> url=file:/C:/Programmi/apache-tomcat-6.0.32/richtestejb.jar
> It should be located in ${catalina.base}/webapps/<your webapp>/WEB-INF/lib
> directory
> During deployment, OpenEJB needs to identify the module type. Basically,
> you
> have an appModule (ear level), webappModule (war), ejbModule (jar),
> clientModule (jar) ...
> To do that, it first looks to descriptors and then annotations.
> Could you please check the META-INF/ of you jar?
> Jean-Louis
> --
> View this message in context:
> Sent from the OpenEJB User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message