2. I think this app is designed to not be deployed on a javaee 5 app server: I think it probably includes a persistence.xml file, which is automatically picked up by an ee app server and all the jpa stuff is processed. You can certainly see openjpa working hard to enhance the entity classes and get everything set up for you. If you really want to use the jdbc data access I recommend removing the persistence.xml file. Or, you can enjoy the benefits of jpa :-) by saying that's what you'll use. You will probably have to hook up the datasources in persistence.xml, so posting it would still be helpful.

thanks

david jencks

On Jan 29, 2008, at 2:49 PM, Paul Wong wrote:

David,

I believe you are right.It looks like I have persistence issues here:I am using the default Spring PetClinic application which uses HSQL as the database.Please find the applicationContext-jdbc.xml and web.xml attached.

Thanks a lot.

Paul

****************************************************************Geronimo Application Server started14:39:24,862 WARN [MetaData] No setter was found for method new in type org.spr ingframework.samples.petclinic.BaseEntity while searching for persistent properties. This method will be ignored. If you intended for this to be persistent, please add a corresponding setter, or switch to field access for this type hierarch y.14:39:24,877 WARN [MetaData] No setter was found for method specialties in type org.springframework.samples.petclinic.Vet while searching for persistent properties. This method will be ignored. If you intended for this to be persistent, pl ease add a corresponding setter, or switch to field access for this type hierarchy.14:39:24,877 WARN [MetaData] No setter was found for method nrOfSpecialties intype org.springframework.samples.petclinic.Vet while searching for persistent pr operties. This method will be ignored. If you intended for this to be persistent, please add a corresponding setter, or switch to field access for this type hierarchy.14:39:24,877 WARN [MetaData] No setter was found for method pets in type org.sp ringframework.samples.petclinic.Owner while searching for persistent properties. This method will be ignored. If you intended for this to be persistent, pleaseadd a corresponding setter, or switch to field access for this type hierarchy. 14:39:24,955 WARN [MetaData] No setter was found for method visits in type org.springframework.samples.petclinic.Pet while searching for persistent properties. This method will be ignored. If you intended for this to be persistent, please add a corresponding setter, or switch to field access for this type hierarchy.14:39:25,065 WARN [Enhance] Detected the following possible violations of the restrictions placed on property access persistent types: "org.springframework.samples.petclinic.BaseEntity" uses property access, but its field "id" is accessed directly in method "isNew" defined in "org.springframework.samples.petclinic.BaseEntity". 14:39:25,112 WARN [Enhance] Detected the following possible violations of the restrictions placed on property access persistent types:"org.springframework.samples.petclinic.Owner" uses property access, but its fiel d "city" is accessed directly in method "toString" defined in "org.springframework.samples.petclinic.Owner"."org.springframework.samples.petclinic.Owner" uses property access, but its fiel d "telephone" is accessed directly in method "toString" defined in "org.springframework.samples.petclinic.Owner"."org.springframework.samples.petclinic.Owner" uses property access, but its fiel d "address" is accessed directly in method "toString" defined in "org.springframework.samples.petclinic.Owner".14:40:53,049 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception java.lang.OutOfMemoryError: PermGen space14:40:55,283 ERROR [[jsp]] Servlet.service() for servlet jsp threw exceptionjava.lang.OutOfMemoryError: PermGen space14:40:55,283 ERROR [0]] Exception Processing ErrorPage[exceptionType=java.lang.E xception, location=/WEB-INF/jsp/uncaughtException.jsp]javax.servlet.ServletException: java.lang.OutOfMemoryError: PermGen space at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:447) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD ispatcher.java:379) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:424) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:271) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 7) at java.lang.Thread.run(Thread.java:595)Caused by: java.lang.OutOfMemoryError: PermGen space14:41:51,190 ERROR [[/console-standard]] StandardWrapper.Throwablejava.lang.OutOfMemoryError: PermGen space 14:41:51,205 ERROR [[LogManager]] Allocate exception for servlet LogManagerjava.lang.OutOfMemoryError: PermGen space14:41:51,205 ERROR [PortletInvokerImpl] PortletInvokerImpl.render() - Error while dispatching portlet. java.lang.OutOfMemoryError: PermGen space14:41:53,408 ERROR [ColumnFragment_jsp]] Servlet.service() for servlet jsp.WEB_002dINF.aggregation.ColumnFragment_jsp threw exceptionjava.lang.OutOfMemoryError: PermGen space 14:41:53,408 ERROR [RowFragment_jsp]] Servlet.service() for servlet jsp.WEB_002dINF.aggregation.RowFragment_jsp threw exceptionjava.lang.OutOfMemoryError: PermGen space14:41:53,424 ERROR [PageFragment_jsp]] Servlet.service() for servlet jsp.WEB_002 dINF.aggregation.PageFragment_jsp threw exceptionjava.lang.OutOfMemoryError: PermGen space14:41:53,424 ERROR [PageFragment_jsp]] Servlet.service() for servlet jsp.WEB_002dINF.aggregation.PageFragment_jsp threw exception java.lang.OutOfMemoryError: PermGen space14:41:53,424 ERROR [RootFragment_jsp]] Servlet.service() for servlet jsp.WEB_002dINF.aggregation.RootFragment_jsp threw exceptionjava.lang.OutOfMemoryError: PermGen space 14:41:53,424 ERROR [Servlet] Exception caught:14:41:55,627 ERROR [[se-console]] Servlet.service() for servlet se-console threw exceptionjava.lang.OutOfMemoryError: PermGen space

6621: 14:07:03,893 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="default/petclinic/1201644415049/car?J2EEApplication=default/petclinic/1201644415049/car,j2eeType=WebModule,name=petclinic.war"

6767: 14:15:52,627 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="default/petclinic/1201644940768/car?J2EEApplication=default/petclinic/1201644940768/car,j2eeType=WebModule,name=petclinic.war"

Could you give us more info on exactly where you found this app and where the geronimo plan is? We might want to try to get the plan upgraded to a less obsolete version. The geronimo 1.0 plans were not compatible with later geronimo releases.