1 Reply Latest reply on May 29, 2006 12:35 AM by Emmanuel Bernard

    persistence.xml parsing

    heapifyman heapifyman Newbie


      When I try to deploy a sample ejb3.0 application with just one entity bean to new Jboss 4.0.4.GA I get a strange StringIndexOutOfBoundsException when the persistence.xml contains an empty provider tag like

      Although this is a valid xml-file according to the schema provided by sun.

      that is the exception:
      [ServiceController] Problem starting service persistence.units:jar=EJB3Test.jar,unitName=EJB3Test
      java.lang.StringIndexOutOfBoundsException: String index out of range: 0
       at java.lang.String.charAt(String.java:558)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:197)
       at org.jboss.mx.loading.UnifiedLoaderRepository3.loadClassFromClassLoader(UnifiedLoaderRepository3.java:277)

      Is that a bug in the JBoss implementation or did I misunderstand the schema?
      Thanks in advance,