1 Reply Latest reply on Nov 16, 2005 12:02 PM by darren hartford

    embeded ejb3 (standalone) and directory with spaces

    darren hartford Expert

      I'm running into an issue trying to use the hibernate-version of stand-alone EJB3 as well as the Alpha3 Embed EJB3.

      The source seems to be when the .PAR/.JAR containing the persistence.xml/pojo's is in a directory tree containing spaces, it can not find the related domain objects. If you move the persistence .PAR/.JAR to a different directory without any spaces, it works fine (tried multiple variations, seems to be the issue).

      Anyone else experience this problem/confirm the problem and may know a workaround outside of always enforcing no-space dir trees?

      As a side note, not using JNDI, persistence.xml like this:
      =================

      <entity-manager>
       <name>myentitymanager</name>
       <properties>
       <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
       <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
       <property name="hibernate.connection.username" value="<snip>"/>
       <property name="hibernate.connection.password" value="<snip>"/>
       <property name="hibernate.connection.url" value="jdbc:mysql://<snip>/<snip>"/>
       <property name="hibernate.max_fetch_depth" value="3"/>
      
       <!-- cache configuration -->
       <!--
       <property name="hibernate.ejb.classcache.org.hibernate.ejb.test.Item" value="read-write"/>
       <property name="hibernate.ejb.collectioncache.org.hibernate.ejb.test.Item.distributors" value="read-write, RegionName"/>
      -->
       </properties>
      </entity-manager>
      

      =================