Anonymous | Login | Signup for a new account | 12-17-2024 10:48 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0002435 | [Resin] | minor | always | 02-13-08 10:45 | 03-03-08 12:09 | ||||
Reporter | ferg | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.1.5 | ||||||
Summary | 0002435: Hibernate with EJB | ||||||||
Description |
(rep by Matt Johnson) just tried this with the 2/11 snapshot, and the same error occurs. The persistence.xml is never read, or at least there is no logging to say otherwise. Matt Scott Ferguson wrote: On Feb 11, 2008, at 5:44 PM, Matt Johnston wrote: It looks like I may have jumped ahead to far with Hibernate. I just removed the hibernate dependencies from my project and tried to run it on 3.1.4 using Amber. That was a no go. I've included the log file below. If I run the project in 3.1.3, everything starts up fine. So what do I need to do to get persistence.xml working correctly in 3.1.4? Can you try this with the snapshot? I think it's a fixed bug. Resin isn't picking up the persistence.xml at all (so it isn't a Hibernate issue). I think it's a timing issue that's been resolved in the 3.1.5 snapshot, i.e. Resin's initializing the EJBs too soon, before it's looked at the persistence. -- Scott The only that I have changed in the resin.conf file is added a host entry at the end of the main <cluster id="app-tier"> tag. So I am using the default ear-deployer properties for this host. <host host-name='www.np-guide.com'> <root-directory>/var/www/resin/np-guide.com</root-directory> </host> Matt [19:40:12.691] {main} Host[www.np-guide.com] initializing [19:40:12.691] {main} Host[www.np-guide.com] root-directory=/var/www/resin/np-guide.com [19:40:12.696] {main} javax.management.InstanceAlreadyExistsException: resin:type=ResourceDeploy,Host=www.np-guide.com,name=deploy [19:40:12.696] {main} at com .caucho .jmx.AbstractMBeanServer.registerMBean(AbstractMBeanServer.java:399) [19:40:12.696] {main} at com.caucho.jmx.Jmx.register(Jmx.java:244) [19:40:12.696] {main} at com .caucho .management .server .AbstractManagedObject.registerSelf(AbstractManagedObject.java:133) [19:40:12.696] {main} at com.caucho.jca.ResourceDeployAdmin.register(ResourceDeployAdmin.java: 54) [19:40:12.696] {main} at com.caucho.jca.ResourceDeploy.init(ResourceDeploy.java:207) [19:40:12.696] {main} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [19:40:12.696] {main} at sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [19:40:12.696] {main} at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) [19:40:12.696] {main} at java.lang.reflect.Method.invoke(Method.java:597) [19:40:12.696] {main} at com .caucho .config .j2ee.PostConstructProgram.configureImpl(PostConstructProgram.java:62) [19:40:12.696] {main} at com.caucho.config.BeanTypeStrategy.init(BeanTypeStrategy.java:389) [19:40:12.696] {main} at com.caucho.config.NodeBuilder.configureChildNode(NodeBuilder.java:418) [19:40:12.696] {main} at com.caucho.config.NodeBuilder.configureAttribute(NodeBuilder.java:244) [19:40:12.696] {main} at com .caucho .config .NodeBuilderChildProgram.configureImpl(NodeBuilderChildProgram.java: 58) [19:40:12.696] {main} at com .caucho .config .BuilderProgramContainer.configureImpl(BuilderProgramContainer.java: 66) [19:40:12.696] {main} at com.caucho.config.BuilderProgram.configure(BuilderProgram.java:76) [19:40:12.696] {main} at com .caucho .server .deploy .EnvironmentDeployController .configureInstance(EnvironmentDeployController.java:388) [19:40:12.696] {main} at com .caucho .server.host.HostController.configureInstance(HostController.java:492) [19:40:12.696] {main} at com .caucho .server.host.HostController.configureInstance(HostController.java:59) [19:40:12.696] {main} at com .caucho .server.deploy.DeployController.startImpl(DeployController.java:644) [19:40:12.696] {main} at com .caucho .server .deploy .StartAutoRedeployAutoStrategy .startOnInit(StartAutoRedeployAutoStrategy.java:72) [19:40:12.696] {main} at com .caucho .server.deploy.DeployController.startOnInit(DeployController.java:528) [19:40:12.696] {main} at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java: 163) [19:40:12.696] {main} at com.caucho.server.host.HostContainer.start(HostContainer.java:479) [19:40:12.696] {main} at com.caucho.server.cluster.Server.start(Server.java:1171) [19:40:12.696] {main} at com.caucho.server.cluster.Cluster.startServer(Cluster.java:708) [19:40:12.696] {main} at com .caucho.server.cluster.ClusterServer.startServer(ClusterServer.java: 522) [19:40:12.696] {main} at com.caucho.server.resin.Resin.start(Resin.java:692) [19:40:12.696] {main} at com.caucho.server.resin.Resin.initMain(Resin.java:1113) [19:40:12.696] {main} at com.caucho.server.resin.Resin.main(Resin.java:1314) [19:40:12.720] {main} javax.management.InstanceAlreadyExistsException: resin:type=ResourceDeploy,Host=www.np-guide.com,name=deploy [19:40:12.720] {main} at com .caucho .jmx.AbstractMBeanServer.registerMBean(AbstractMBeanServer.java:399) [19:40:12.720] {main} at com.caucho.jmx.Jmx.register(Jmx.java:244) [19:40:12.720] {main} at com .caucho .management .server .AbstractManagedObject.registerSelf(AbstractManagedObject.java:133) [19:40:12.720] {main} at com.caucho.jca.ResourceDeployAdmin.register(ResourceDeployAdmin.java: 54) [19:40:12.720] {main} at com.caucho.jca.ResourceDeploy.init(ResourceDeploy.java:207) [19:40:12.720] {main} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [19:40:12.720] {main} at sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [19:40:12.720] {main} at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25) [19:40:12.720] {main} at java.lang.reflect.Method.invoke(Method.java:597) [19:40:12.720] {main} at com .caucho .config .j2ee.PostConstructProgram.configureImpl(PostConstructProgram.java:62) [19:40:12.720] {main} at com.caucho.config.BeanTypeStrategy.init(BeanTypeStrategy.java:389) [19:40:12.720] {main} at com.caucho.config.NodeBuilder.configureChildNode(NodeBuilder.java:418) [19:40:12.720] {main} at com.caucho.config.NodeBuilder.configureAttribute(NodeBuilder.java:244) [19:40:12.720] {main} at com .caucho .config .NodeBuilderChildProgram.configureImpl(NodeBuilderChildProgram.java: 58) [19:40:12.720] {main} at com .caucho .config .BuilderProgramContainer.configureImpl(BuilderProgramContainer.java: 66) [19:40:12.720] {main} at com.caucho.config.BuilderProgram.configure(BuilderProgram.java:76) [19:40:12.720] {main} at com .caucho .server .deploy .EnvironmentDeployController .configureInstance(EnvironmentDeployController.java:388) [19:40:12.720] {main} at com .caucho .server.host.HostController.configureInstance(HostController.java:492) [19:40:12.720] {main} at com .caucho .server.host.HostController.configureInstance(HostController.java:59) [19:40:12.720] {main} at com .caucho .server.deploy.DeployController.startImpl(DeployController.java:644) [19:40:12.720] {main} at com .caucho .server .deploy .StartAutoRedeployAutoStrategy .startOnInit(StartAutoRedeployAutoStrategy.java:72) [19:40:12.720] {main} at com .caucho .server.deploy.DeployController.startOnInit(DeployController.java:528) [19:40:12.720] {main} at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java: 163) [19:40:12.720] {main} at com.caucho.server.host.HostContainer.start(HostContainer.java:479) [19:40:12.720] {main} at com.caucho.server.cluster.Server.start(Server.java:1171) [19:40:12.720] {main} at com.caucho.server.cluster.Cluster.startServer(Cluster.java:708) [19:40:12.720] {main} at com .caucho.server.cluster.ClusterServer.startServer(ClusterServer.java: 522) [19:40:12.720] {main} at com.caucho.server.resin.Resin.start(Resin.java:692) [19:40:12.720] {main} at com.caucho.server.resin.Resin.initMain(Resin.java:1113) [19:40:12.720] {main} at com.caucho.server.resin.Resin.main(Resin.java:1314) [19:40:12.722] {main} Host[www.np-guide.com] initializing [19:40:12.722] {main} Host[www.np-guide.com] starting [19:40:12.730] {main} EnterpriseApplication[npguide] initializing [19:40:12.731] {main} EnterpriseApplication[npguide] root-directory=/var/www/resin/np-guide.com/deploy/_ear_npguide [19:40:12.734] {main} resin:import '/var/www/resin/np-guide.com/deploy/_ear_npguide/META-INF/ application.xml' [19:40:12.815] {main} Initializing ejb-server : local-jndi=null remote-jndi=null [19:40:12.834] {main} EnterpriseApplication[npguide] starting [19:40:12.993] {main} java.lang.UnsatisfiedLinkError: no resin_os in java.library.path [19:40:13.166] {main} Compiling _ejb/JobsBean/JobsBean__EJB.java [19:40:13.166] {main} Compiling _ejb/PersistBean/PersistBean__EJB.java [19:40:13.166] {main} Compiling _ejb/ReportGrabberBean/ReportGrabberBean__EJB.java [19:40:13.171] {Thread-3} javac(int) -d /var/www/resin/np-guide.com/deploy/_ear_npguide/META-INF/work/ejb -classpath /var/www/resin/np-guide.com/deploy/_ear_npguide/META-INF/work/ejb:/ usr/java/jdk1.6.0_03/lib/tools.jar:/home/matt/java/resin-3.1.4/lib/ resin.jar:/home/matt/java/resin-3.1.4/lib/jaxrpc-15.jar:/home/matt/ java/resin-3.1.4/lib/quercus.jar:/home/matt/java/resin-3.1.4/lib/ javamail-14.jar:/home/matt/java/resin-3.1.4/lib/webutil.jar:/home/ matt/java/resin-3.1.4/lib/resin-util.jar:/home/matt/java/resin-3.1.4/ lib/jpa-15.jar:/home/matt/java/resin-3.1.4/lib/jsdk-15.jar:/home/ matt/java/resin-3.1.4/lib/script-10.jar:/home/matt/java/resin-3.1.4/ lib/jca-15.jar:/home/matt/java/resin-3.1.4/lib/portlet-10.jar:/home/ matt/java/resin-3.1.4/lib/jstl-11.jar:/home/matt/java/resin-3.1.4/ lib/j2ee-deploy-10.jar:/home/matt/java/resin-3.1.4/lib/jms-11.jar:/ home/matt/java/resin-3.1.4/lib/saaj.jar:/home/matt/java/resin-3.1.4/ lib/j2ee-management-10.jar:/home/matt/java/resin-3.1.4/lib/ jta-101.jar:/home/matt/java/resin-3.1.4/lib/ejb-15.jar:/home/matt/ java/resin-3.1.4/lib/mysql-connector-java-3.0.9-stable-bin.jar :/home/matt/java/resin-3.1.4/lib/hessian.jar:/home/matt/java/ resin-3.1.4/lib/jsf-12.jar:/home/matt/java/resin-3.1.4/lib/ webbeans-16.jar:/home/matt/java/resin-3.1.4/lib/jaxb-api.jar:/home/ matt/java/resin-3.1.4/lib/activation.jar:/usr/java/jdk1.6.0_03/jre/ lib/resources.jar:/usr/java/jdk1.6.0_03/jre/lib/rt.jar:/usr/java/ jdk1.6.0_03/jre/lib/jsse.jar:/usr/java/jdk1.6.0_03/jre/lib/jce.jar:/ usr/java/jdk1.6.0_03/jre/lib/charsets.jar:/home/matt/java/ resin-3.1.4/lib/quercus.jar:/home/matt/java/resin-3.1.4/lib/ javamail-14.jar:/home/matt/java/resin-3.1.4/lib/webutil.jar:/home/ matt/java/resin-3.1.4/lib/resin-util.jar:/home/matt/java/resin-3.1.4/ lib/jpa-15.jar:/home/matt/java/resin-3.1.4/lib/jsdk-15.jar:/home/ matt/java/resin-3.1.4/lib/script-10.jar:/home/matt/java/resin-3.1.4/ lib/jca-15.jar:/home/matt/java/resin-3.1.4/lib/portlet-10.jar:/home/ matt/java/resin-3.1.4/lib/jstl-11.jar:/home/matt/java/resin-3.1.4/ lib/j2ee-deploy-10.jar:/home/matt/java/resin-3.1.4/lib/jms-11.jar:/ home/matt/java/r esin-3.1.4/lib/saaj.jar:/home/matt/java/resin-3.1.4/lib/j2ee- management-10.jar:/home/matt/java/resin-3.1.4/lib/jta-101.jar:/home/ matt/java/resin-3.1.4/lib/resin.jar:/home/matt/java/resin-3.1.4/lib/ jaxrpc-15.jar:/home/matt/java/resin-3.1.4/lib/ejb-15.jar:/home/matt/ java/resin-3.1.4/lib/hibernate/commons-logging-1.0.4.jar:/home/matt/ java/resin-3.1.4/lib/hibernate/concurrent-1.3.2.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/jboss-cache.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/swarmcache-1.0rc2.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/jboss-jmx.jar:/home/matt/java/resin-3.1.4/ lib/hibernate/asm-attrs.jar:/home/matt/java/resin-3.1.4/lib/ hibernate/jacc-1_0-fr.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ jdbc2_0-stdext.jar:/home/matt/java/resin-3.1.4/lib/hibernate/jboss- system.jar:/home/matt/java/resin-3.1.4/lib/hibernate/checkstyle- all.jar:/home/matt/java/resin-3.1.4/lib/hibernate/jgroups-2.2.8.jar:/ home/matt/java/resin-3.1.4/lib/hibernate/log4j-1.2.11.jar:/home/matt/ ja va/resin-3.1.4/lib/hibernate/c3p0-0.9.1.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/commons-collections-2.1.1.jar:/home/matt/ java/resin-3.1.4/lib/hibernate/ant-launcher-1.6.5.jar:/home/matt/ java/resin-3.1.4/lib/hibernate/oscache-2.1.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/connector.jar:/home/matt/java/resin-3.1.4/ lib/hibernate/ant-1.6.5.jar:/home/matt/java/resin-3.1.4/lib/ hibernate/hibernate-commons-annotations.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/junit-3.8.1.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/xerces-2.6.2.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/versioncheck.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/ejb3-persistence.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/antlr-2.7.6.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/ehcache-1.2.3.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/xml-apis.jar:/home/matt/java/resin-3.1.4/ lib/hibernate/cglib-2.1.3.jar:/home/matt/java/resin-3.1.4/lib/ hibernate/hibernate-annotations.jar:/home/matt/java/resin-3.1 .4/lib/hibernate/jaxen-1.1-beta-7.jar:/home/matt/java/resin-3.1.4/ lib/hibernate/jta.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ hibernate-validator.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ ant-junit-1.6.5.jar:/home/matt/java/resin-3.1.4/lib/hibernate/jboss- archive-browsing.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ dom4j-1.6.1.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ant- antlr-1.6.5.jar:/home/matt/java/resin-3.1.4/lib/hibernate/jboss- common.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ant- swing-1.6.5.jar:/home/matt/java/resin-3.1.4/lib/hibernate/asm.jar:/ home/matt/java/resin-3.1.4/lib/hibernate/jaas.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/proxool-0.8.3.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/javassist.jar:/home/matt/java/resin-3.1.4/ lib/hibernate/cleanimports.jar:/home/matt/java/resin-3.1.4/lib/ hibernate/syndiag2.jar:/home/matt/java/resin-3.1.4/lib/mysql- connector-java-3.0.9-stable-bin.jar:/home/matt/java/resin-3.1.4/lib/ hessian.jar:/home/matt/java /resin-3.1.4/lib/jsf-12.jar:/home/matt/java/resin-3.1.4/lib/ webbeans-16.jar:/home/matt/java/resin-3.1.4/lib/jaxb-api.jar:/home/ matt/java/resin-3.1.4/lib/activation.jar:/home/matt/java/resin-3.1.4/ lib/quercus.jar:/home/matt/java/resin-3.1.4/lib/javamail-14.jar:/ home/matt/java/resin-3.1.4/lib/webutil.jar:/home/matt/java/ resin-3.1.4/lib/resin-util.jar:/home/matt/java/resin-3.1.4/lib/ jpa-15.jar:/home/matt/java/resin-3.1.4/lib/jsdk-15.jar:/home/matt/ java/resin-3.1.4/lib/script-10.jar:/home/matt/java/resin-3.1.4/lib/ jca-15.jar:/home/matt/java/resin-3.1.4/lib/portlet-10.jar:/home/matt/ java/resin-3.1.4/lib/jstl-11.jar:/home/matt/java/resin-3.1.4/lib/ j2ee-deploy-10.jar:/home/matt/java/resin-3.1.4/lib/jms-11.jar:/home/ matt/java/resin-3.1.4/lib/saaj.jar:/home/matt/java/resin-3.1.4/lib/ j2ee-management-10.jar:/home/matt/java/resin-3.1.4/lib/jta-101.jar:/ home/matt/java/resin-3.1.4/lib/resin.jar:/home/matt/java/resin-3.1.4/ lib/jaxrpc-15.jar:/home/matt/java/resin-3.1.4/lib/ejb-15.jar:/home/m att/java/resin-3.1.4/lib/hibernate/commons-logging-1.0.4.jar:/home/ matt/java/resin-3.1.4/lib/hibernate/concurrent-1.3.2.jar:/home/matt/ java/resin-3.1.4/lib/hibernate/jboss-cache.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/swarmcache-1.0rc2.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/jboss-jmx.jar:/home/matt/java/resin-3.1.4/ lib/hibernate/asm-attrs.jar:/home/matt/java/resin-3.1.4/lib/ hibernate/jacc-1_0-fr.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ jdbc2_0-stdext.jar:/home/matt/java/resin-3.1.4/lib/hibernate/jboss- system.jar:/home/matt/java/resin-3.1.4/lib/hibernate/checkstyle- all.jar:/home/matt/java/resin-3.1.4/lib/hibernate/jgroups-2.2.8.jar:/ home/matt/java/resin-3.1.4/lib/hibernate/log4j-1.2.11.jar:/home/matt/ java/resin-3.1.4/lib/hibernate/c3p0-0.9.1.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/commons-collections-2.1.1.jar:/home/matt/ java/resin-3.1.4/lib/hibernate/ant-launcher-1.6.5.jar:/home/matt/ java/resin-3.1.4/lib/hibernate/oscache-2.1.jar:/home/matt/java/resin- 3.1.4/lib/hibernate/connector.jar:/home/matt/java/resin-3.1.4/lib/ hibernate/ant-1.6.5.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ hibernate-commons-annotations.jar:/home/matt/java/resin-3.1.4/lib/ hibernate/junit-3.8.1.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ xerces-2.6.2.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ versioncheck.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ejb3- persistence.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ antlr-2.7.6.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ ehcache-1.2.3.jar:/home/matt/java/resin-3.1.4/lib/hibernate/xml- apis.jar:/home/matt/java/resin-3.1.4/lib/hibernate/cglib-2.1.3.jar:/ home/matt/java/resin-3.1.4/lib/hibernate/hibernate-annotations.jar:/ home/matt/java/resin-3.1.4/lib/hibernate/jaxen-1.1-beta-7.jar:/home/ matt/java/resin-3.1.4/lib/hibernate/jta.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/hibernate-validator.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/ant-junit-1.6.5.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/jbo ss-archive-browsing.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ dom4j-1.6.1.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ant- antlr-1.6.5.jar:/home/matt/java/resin-3.1.4/lib/hibernate/jboss- common.jar:/home/matt/java/resin-3.1.4/lib/hibernate/ant- swing-1.6.5.jar:/home/matt/java/resin-3.1.4/lib/hibernate/asm.jar:/ home/matt/java/resin-3.1.4/lib/hibernate/jaas.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/proxool-0.8.3.jar:/home/matt/java/ resin-3.1.4/lib/hibernate/javassist.jar:/home/matt/java/resin-3.1.4/ lib/hibernate/cleanimports.jar:/home/matt/java/resin-3.1.4/lib/ hibernate/syndiag2.jar:/home/matt/java/resin-3.1.4/lib/mysql- connector-java-3.0.9-stable-bin.jar:/home/matt/java/resin-3.1.4/lib/ hessian.jar:/home/matt/java/resin-3.1.4/lib/jsf-12.jar:/home/matt/ java/resin-3.1.4/lib/webbeans-16.jar:/home/matt/java/resin-3.1.4/lib/ jaxb-api.jar:/home/matt/java/resin-3.1.4/lib/activation.jar:/usr/ java/jdk1.6.0_03/lib/tools.jar:/home/matt/java/resin-3.1.4/lib/ resin.jar:/home/matt/java /resin-3.1.4/lib/jaxrpc-15.jar:/home/matt/java/resin-3.1.4/lib/ quercus.jar:/home/matt/java/resin-3.1.4/lib/javamail-14.jar:/home/ matt/java/resin-3.1.4/lib/webutil.jar:/home/matt/java/resin-3.1.4/ lib/resin-util.jar:/home/matt/java/resin-3.1.4/lib/jpa-15.jar:/home/ matt/java/resin-3.1.4/lib/jsdk-15.jar:/home/matt/java/resin-3.1.4/ lib/script-10.jar:/home/matt/java/resin-3.1.4/lib/jca-15.jar:/home/ matt/java/resin-3.1.4/lib/portlet-10.jar:/home/matt/java/resin-3.1.4/ lib/jstl-11.jar:/home/matt/java/resin-3.1.4/lib/j2ee-deploy-10.jar:/ home/matt/java/resin-3.1.4/lib/jms-11.jar:/home/matt/java/ resin-3.1.4/lib/saaj.jar:/home/matt/java/resin-3.1.4/lib/j2ee- management-10.jar:/home/matt/java/resin-3.1.4/lib/jta-101.jar:/home/ matt/java/resin-3.1.4/lib/ejb-15.jar:/home/matt/java/resin-3.1.4/lib/ mysql-connector-java-3.0.9-stable-bin.jar:/home/matt/java/ resin-3.1.4/lib/hessian.jar:/home/matt/java/resin-3.1.4/lib/ jsf-12.jar:/home/matt/java/resin-3.1.4/lib/webbeans-16.jar:/home/ matt/java/resin-3 .1.4/lib/jaxb-api.jar:/home/matt/java/resin-3.1.4/lib/ activation.jar:/var/www/resin/np-guide.com/deploy/_ear_npguide/ npguide.jar:/var/www/resin/np-guide.com/deploy/_ear_npguide/lib/ sitemesh-2.2.jar:/var/www/resin/np-guide.com/deploy/_ear_npguide/lib/ commons-collections.jar:/var/www/resin/np-guide.com/deploy/ _ear_npguide/lib/lucene-core-2.2.0.jar:/var/www/resin/np-guide.com/ deploy/_ear_npguide/lib/commons-lang-2.1.jar:/var/www/resin/np- guide.com/deploy/_ear_npguide/lib/commons-io.jar:/var/www/resin/np- guide.com/deploy/_ear_npguide/lib/velocity-dep-1.3.1.jar:/var/www/ resin/np-guide.com/deploy/_ear_npguide/lib/webwork- nostatic-2.2.6.jar:/var/www/resin/np-guide.com/deploy/_ear_npguide/ lib/quartz.jar:/var/www/resin/np-guide.com/deploy/_ear_npguide/lib/ commons-net-1.4.1.jar:/var/www/resin/np-guide.com/deploy/ _ear_npguide/lib/rupurt.jar:/var/www/resin/np-guide.com/deploy/ _ear_npguide/lib/oscore-2.2.4.jar:/var/www/resin/np-guide.com/deploy/ _ear_npguide/lib/velocity-tools-1.2.jar:/var /www/resin/np-guide.com/deploy/_ear_npguide/lib/log4j.jar:/var/www/ resin/np-guide.com/deploy/_ear_npguide/lib/commons- fileupload-1.2.jar:/var/www/resin/np-guide.com/deploy/_ear_npguide/ lib/ognl-2.6.5.jar:/var/www/resin/np-guide.com/deploy/_ear_npguide/ lib/jdom.jar:/var/www/resin/np-guide.com/deploy/_ear_npguide/lib/ mysql-connector-java-3.0.9-stable-bin.jar:/var/www/resin/np- guide.com/deploy/_ear_npguide/lib/commons-logging.jar:/var/www/resin/ np-guide.com/deploy/_ear_npguide/lib/rife-continuations.jar:/var/www/ resin/np-guide.com/deploy/_ear_npguide/lib/xwork-1.2.3.jar:/var/www/ resin/np-guide.com/deploy/_ear_npguide/lib/commons-digester.jar:/var/ www/resin/np-guide.com/deploy/_ear_npguide/lib/commons-beanutils.jar -source 1.5 /var/www/resin/np-guide.com/deploy/_ear_npguide/META-INF/work/ejb/ _ejb/JobsBean/JobsBean__EJB.java /var/www/resin/np-guide.com/deploy/_ear_npguide/META-INF/work/ejb/ _ejb/PersistBean/PersistBean__EJB.java /var/www/resin/np-guide.com/deploy/_ear_npguide/META-INF/work/ejb/ _ejb/ReportGrabberBean/ReportGrabberBean__EJB.java [19:40:14.572] {Thread-3} Note: /var/www/resin/np-guide.com/deploy/_ear_npguide/META-INF/work/ejb/ _ejb/PersistBean/PersistBean__EJB.java uses unchecked or unsafe operations. [19:40:14.572] {Thread-3} Note: Recompile with -Xlint:unchecked for details. [19:40:14.572] {Thread-3} [19:40:14.587] {main} SessionContext[@Component, @SingletonScope, name=jobsBean__EJB] added to WebBeansContainer[stateless:resin- ejb#JobsBean] [19:40:14.592] {main} JobsBean__EJB[@Named("JobsBean"),@Component, name=JobsBean] added to WebBeansContainer[eapp:npguide] [19:40:14.593] {main} StatelessServer[JobsBean,JobsBean] local binding to 'npguide/JobsBean/local' [19:40:14.601] {main} SessionContext[@Component, @SingletonScope, name=persistBean__EJB] added to WebBeansContainer[stateless:resin-ejb#PersistBean] [19:40:14.606] {main} PersistBean__EJB[@Named("PersistBean"),@Component, name=PersistBean] added to WebBeansContainer[eapp:npguide] [19:40:14.606] {main} StatelessServer[PersistBean,PersistBean] local binding to 'npguide/PersistBean/local' [19:40:14.628] {main} SessionContext[@Component, @SingletonScope, name=reportGrabberBean__EJB] added to WebBeansContainer[stateless:resin-ejb#ReportGrabberBean] [19:40:14.632] {main} ReportGrabberBean__EJB[@Named("ReportGrabberBean"),@Component, name=ReportGrabberBean] added to WebBeansContainer[eapp:npguide] [19:40:14.632] {main} StatelessServer[ReportGrabberBean,ReportGrabberBean] local binding to 'npguide/ReportGrabberBean/local' [19:40:14.632] {main} StatelessServer[JobsBean,JobsBean] starting [19:40:14.639] {main} StatelessServer[PersistBean,PersistBean] starting [19:40:14.647] {main} EnterpriseApplication[npguide] active [19:40:14.647] {main} com.caucho.config.ConfigException: npguide.ejb3.PersistBean.em: 'npguide' is an unknown @PersistenceContext. [19:40:14.648] {main} Host[www.np-guide.com] active [19:40:14.651] {main} java.lang.ClassNotFoundException: com.caucho.vfs.JniServerSocketImpl in EnvironmentClassLoader$23978087[cluster:app-tier] Scott Ferguson wrote: On Feb 10, 2008, at 10:26 AM, majohnst wrote: I've been trying to use Hibernate instead of Amber for my persistence layer, but I am having a hard time getting it installed. I read in the list that version 3.1.4 was required in order to replace amber with hibernate. So I've downloaded 3.1.4 I've also been following the instructions on the wiki: http://wiki.caucho.com/Hibernate [^] about how to install hibernate in resin. Whenever I try these instructions, it looks like hibernate is never started up. I've followed the example on the wiki and included a @Named property in my servlet. I've also made sure that my persistence.xml file is the same as the example. When I start up resin, I get an error: com.caucho.config.ConfigException: Servlet._entityManagerFactory: Can't find a component for 'javax.persistence.EntityManagerFactory' So it looks like hibernate was never started or named properly. Does anyone know how to fix this? Can you turn on level="fine" logging and look to see if the persistence.xml is loaded at all? Since you're using an .ear file, the ejb-server context would need to be higher, e.g. at the <host> level, not the web-app. That might be an issue. There also have been some fixes in 3.1.5 relating to the ordering of classpath scanning and EJB startup that might be causing some trouble. -- Scott |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 26 unique queries executed. |