hi, i need more info, it works for me
*Romain Manni-Bucau* *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmannibucau* 2012/11/23 Howard W. Smith, Jr. <smithh032...@gmail.com> > Wow, I reverted to the previous version of TomEE 1.5+ SNAPSHOT > (2012-11-17), and my app started immediately (on first deploy). > > I did the following: > > 1. Deleted tomee folder > 2. Unzipped apache-tomee-1.5.1-20121117.041542-74-plus to C:\ > 3. Copied few JARs/dependencies to tomee /lib > 4. started TomEE > 5. stopped TomEE > 6. create-n-build my app in NetBeans > 7. deployed app to TomEE > > App started in TomEE! I guess I can send this version to production, since > app runs well on this version. > > Romain, can you please see server log in email below and tell me what > changed between 2012-11-17 version and 2012-11-23 version of TomEE 1.5+ > SNAPSHOT? I know we discussed a few things related to Batoo JPA, jdbc, > persistence, jta, etc... > > Thanks, > Howard > > > On Fri, Nov 23, 2012 at 2:28 PM, Howard W. Smith, Jr. < > smithh032...@gmail.com> wrote: > > > Today, I downloaded *latest TomEE SNAPSHOT JAR* today, replaced my > > existing TomEE folder on my development/test server with the latest build > > of TomEE SNAPSHOT, and all of this resulted in exceptions, and now, I > > cannot stop my app in TomEE. > > > > *tomee.xml* contains the following: > > > > <Resource id="jdbc/mcms" type="DataSource"> > > JdbcDriver org.apache.derby.jdbc.EmbeddedDriver > > JdbcUrl jdbc:derby:C:/javadb/databases/mcmsdev;create=true > > UserName mcms > > Password mcms > > JtaManaged true > > InitialSize 10 > > MaxActive 100 > > MaxIdle 30 > > MaxWait 10000 > > </Resource> > > > > *persistence.xml* still contains the following: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <persistence version="2.0" > > 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_2_0.xsd"> > > <persistence-unit name="mcmsPU" transaction-type="JTA"> > > > > <!--<provider>org.batoo.jpa.core.BatooPersistenceProvider</provider>--> > > > <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider> > > <jta-data-source>jdbc/mcms</jta-data-source> > > <exclude-unlisted-classes>false</exclude-unlisted-classes> > > <properties/> > > </persistence-unit> > > </persistence> > > > > Server log below shows auto-creating *jdbc/mcmsNonJta* (not by my request > > or configuration): > > > > INFO: Creating Resource(id=jdbc/mcms) > > Nov 23, 2012 2:08:14 PM org.apache.openejb.assembler.classic.Assembler > > createResource > > *WARNING:* unbounding resource openejb/Resource/jdbc/mcms can happen > > because of a redeployment or because of a duplicated id > > > > Nov 23, 2012 2:08:14 PM org.apache.openejb.config.AutoConfig > > logAutoCreateResource > > INFO: Auto-creating a Resource with id *'jdbc/mcmsNonJta'* of type > > 'DataSource for *'mcmsPU'*. > > Nov 23, 2012 2:08:14 PM org.apache.openejb.config.AutoConfig deploy > > INFO: Configuring Service(id=jdbc/mcmsNonJta, type=Resource, > > provider-id=jdbc/mcms) > > Nov 23, 2012 2:08:14 PM org.apache.openejb.assembler.classic.Assembler > > createRecipe > > INFO: Creating Resource(id=jdbc/mcmsNonJta) > > Nov 23, 2012 2:08:14 PM org.apache.openejb.config.AutoConfig > > setNonJtaDataSource > > INFO: Adjusting PersistenceUnit mcmsPU <non-jta-data-source> to Resource > > ID 'jdbc/mcmsNonJta' from 'null' > > > > Server log below shows exception that I did *not* see with the last build > > of TomEE 1.5+ SNAPSHOT: > > > > Caused by: org.apache.tomee.catalina.TomEERuntimeException: > > org.apache.openejb.OpenEJBException: Creating application failed: > > C:\Users\Public\NetBeansProjects\mcms\build\web: > > java.lang.ClassCastException: > org.apache.openejb.core.ivm.naming.IvmContext > > cannot be cast to javax.sql.DataSource: > > org.apache.openejb.core.ivm.naming.IvmContext cannot be cast to > > javax.sql.DataSource > > at > > > org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:960) > > at > > > org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:887) > > at > > > org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:118) > > at > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > > at > > > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) > > at > > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173) > > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > > ... 11 more > > Caused by: org.apache.openejb.OpenEJBException: Creating application > > failed: C:\Users\Public\NetBeansProjects\mcms\build\web: > > java.lang.ClassCastException: > org.apache.openejb.core.ivm.naming.IvmContext > > cannot be cast to javax.sql.DataSource: > > org.apache.openejb.core.ivm.naming.IvmContext cannot be cast to > > javax.sql.DataSource > > at > > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:955) > > at > > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:533) > > at > > > org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:953) > > ... 17 more > > Caused by: org.apache.openejb.OpenEJBException: > > java.lang.ClassCastException: > org.apache.openejb.core.ivm.naming.IvmContext > > cannot be cast to javax.sql.DataSource: > > org.apache.openejb.core.ivm.naming.IvmContext cannot be cast to > > javax.sql.DataSource > > at > > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:673) > > ... 19 more > > Caused by: java.lang.ClassCastException: > > org.apache.openejb.core.ivm.naming.IvmContext cannot be cast to > > javax.sql.DataSource > > at > > > org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:83) > > at > > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:667) > > ... 19 more > > > > >