java.lang.RuntimeException: error trying to scan <jar-file>: code-source:/C:/Programs/dev/oracle/jdev-10132/j2ee/home/applications/mis_client/mis_client/WEB-INF/lib/mis_model.jar!/

Hibernate JIRA | Roman Legat | 10 years ago
  1. 0

    [EJB-283] Ejb3Configuration can't read Jar file OC4J - Hibernate JIRA

    atlassian.net | 1 year ago
    java.lang.RuntimeException: error trying to scan <jar-file>: code-source:/C:/Programs/dev/oracle/jdev-10132/j2ee/home/applications/mis_client/mis_client/WEB-INF/lib/mis_model.jar!/
  2. 0

    The "Find-the-entities-yourself"-Feature doesn't work with OC4J, since walking over the jar fails. This is similar to #174, but the problem is not in JarVisitor, but in org.jboss.util.file.ArchiveBrowser.getBrowser: When deploying to OC4J, the Jar URLs start with "code-source" instead of "file" (See PU root URL below for example). Hence the Archive-Browser throws a RuntimeException. Solution should be similar as in #174. 2007-04-01 22:13:38,390 DEBUG Ejb3Configuration - Processing PersistenceUnitInfo [ name: MyService persistence provider classname: org.hibernate.ejb.HibernatePersistence classloader: mis_client.web.mis_client:0.0.0 Temporary classloader: org.springframework.instrument.classloading.SimpleThrowawayClassLoader@106ef07 excludeUnlistedClasses: false JTA datasource: null Non JTA datasource: org.springframework.jdbc.datasource.DriverManagerDataSource@36eb76 Transaction type: RESOURCE_LOCAL PU root URL: code-source:/C:/Programs/dev/oracle/jdev-10132/j2ee/home/applications/mis_client/mis_client/WEB-INF/lib/mis_model.jar!/ Jar files URLs [] Managed classes names [] Mapping files names [] Properties [] java.lang.RuntimeException: error trying to scan <jar-file>: code-source:/C:/Programs/dev/oracle/jdev-10132/j2ee/home/applications/mis_client/mis_client/WEB-INF/lib/mis_model.jar!/ at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:635) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:350) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126) ... Caused by: java.lang.RuntimeException: Archive browser cannot handle protocol: code-source:/C:/Programs/dev/oracle/jdev-10132/j2ee/home/applications/mis_client/mis_client/WEB-INF/lib/mis_model.jar!/ at org.jboss.util.file.ArchiveBrowser.getBrowser(ArchiveBrowser.java:93) Regards, Roman

    Hibernate JIRA | 10 years ago | Roman Legat
    java.lang.RuntimeException: error trying to scan <jar-file>: code-source:/C:/Programs/dev/oracle/jdev-10132/j2ee/home/applications/mis_client/mis_client/WEB-INF/lib/mis_model.jar!/
  3. 0

    [EJB-283] Ejb3Configuration can't read Jar file OC4J - Hibernate JIRA

    atlassian.net | 7 months ago
    java.lang.RuntimeException: error trying to scan <jar-file>: code-source:/C:/Programs/dev/oracle/jdev-10132/j2ee/home/applications/mis_client/mis_client/WEB-INF/lib/mis_model.jar!/
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The "Find-the-entities-yourself"-Feature doesn't work with OC4J, since walking over the jar fails. This is similar to #174, but the problem is not in JarVisitor, but in org.jboss.util.file.ArchiveBrowser.getBrowser: When deploying to OC4J, the Jar URLs start with "code-source" instead of "file" (See PU root URL below for example). Hence the Archive-Browser throws a RuntimeException. Solution should be similar as in #174. 2007-04-01 22:13:38,390 DEBUG Ejb3Configuration - Processing PersistenceUnitInfo [ name: MyService persistence provider classname: org.hibernate.ejb.HibernatePersistence classloader: mis_client.web.mis_client:0.0.0 Temporary classloader: org.springframework.instrument.classloading.SimpleThrowawayClassLoader@106ef07 excludeUnlistedClasses: false JTA datasource: null Non JTA datasource: org.springframework.jdbc.datasource.DriverManagerDataSource@36eb76 Transaction type: RESOURCE_LOCAL PU root URL: code-source:/C:/Programs/dev/oracle/jdev-10132/j2ee/home/applications/mis_client/mis_client/WEB-INF/lib/mis_model.jar!/ Jar files URLs [] Managed classes names [] Mapping files names [] Properties [] java.lang.RuntimeException: error trying to scan <jar-file>: code-source:/C:/Programs/dev/oracle/jdev-10132/j2ee/home/applications/mis_client/mis_client/WEB-INF/lib/mis_model.jar!/ at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:635) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:350) at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126) ... Caused by: java.lang.RuntimeException: Archive browser cannot handle protocol: code-source:/C:/Programs/dev/oracle/jdev-10132/j2ee/home/applications/mis_client/mis_client/WEB-INF/lib/mis_model.jar!/ at org.jboss.util.file.ArchiveBrowser.getBrowser(ArchiveBrowser.java:93) Regards, Roman

    Hibernate JIRA | 10 years ago | Roman Legat
    java.lang.RuntimeException: error trying to scan <jar-file>: code-source:/C:/Programs/dev/oracle/jdev-10132/j2ee/home/applications/mis_client/mis_client/WEB-INF/lib/mis_model.jar!/
  6. 0

    JSF 2.0,Spring 3.0.0 and Hibernate 3.3.2GA Putting them all togeather with minimal xml configuration!

    pariyani.com | 9 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘entityManagerFactory’ defined in ServletContext resource [/WEB-INF/web-application-config.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: error trying to scan : file:/C:/My%20Projects/JAVA/BDO%20Projects/GPG%20Online%20Project/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/jsf-spring-sample/WEB-INF/classes/

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      error trying to scan <jar-file>: code-source:/C:/Programs/dev/oracle/jdev-10132/j2ee/home/applications/mis_client/mis_client/WEB-INF/lib/mis_model.jar!/

      at org.hibernate.ejb.Ejb3Configuration.scanForClasses()
    2. Hibernate EJB
      HibernatePersistence.createContainerEntityManagerFactory
      1. org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:635)
      2. org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:350)
      3. org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
      3 frames