Anonymous | Login | Signup for a new account | 12-17-2024 10:46 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0001456 | [Resin] | major | always | 11-13-06 19:21 | 11-30-06 13:52 | ||||
Reporter | spoty | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 3.1.0 | Product Version | 3.0.22 | ||||
Product Build | |||||||||
Summary | 0001456: Stateless Bean in webapp with Persistent Bean causes error | ||||||||
Description |
Two apps: nav and test. /test contains the HelloBean sample with EJB3 annotations. /nav contains a persistent bean and a servlet that uses the bean. /nav shows no errors when starting and the servlet works fine, until, I copy the HelloBean sample to the /nav application. When /nav restarts, it fails with a long stack trace, which I will include. However, the core of the problem relates to the HelloBean and the container looking for a persistence unit for the thing: [20:55:21.089] failed scanning class _ejb.HelloBean.HelloBean__EJB$Local [20:55:21.091] com.caucho.amber.AmberRuntimeException: com.caucho.config.ConfigException: java.lang.NullPointerException: No data-source specified for PersistenceUnit |
||||||||
Steps To Reproduce | |||||||||
Additional Information |
[20:55:21.024] com.caucho.config.ConfigException: java.lang.NullPointerException: No data-source specified for PersistenceUnit [20:55:21.024] at com.caucho.amber.manager.AmberPersistenceUnit.addEntityClass(AmberPersistenceUnit.java) [20:55:21.024] at com.caucho.amber.cfg.PersistenceUnitConfig.init(PersistenceUnitConfig.java:155) [20:55:21.024] at com.caucho.amber.manager.AmberContainer.addPersistenceRoot(AmberContainer.java:343) [20:55:21.024] at com.caucho.amber.manager.PersistenceEnvironmentListener.environmentStart(PersistenceEnvironmentListener.java:62) [20:55:21.024] at com.caucho.loader.EnvironmentClassLoader.start(EnvironmentClassLoader.java:388) [20:55:21.024] at com.caucho.server.webapp.Application.start(Application.java:1628) [20:55:21.024] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621) [20:55:21.024] at com.caucho.server.deploy.DeployController.restartImpl(DeployController.java:584) [20:55:21.024] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.request(StartAutoRedeployAutoStrategy.java:125) [20:55:21.024] at com.caucho.server.deploy.DeployController.request(DeployController.java:554) [20:55:21.024] at com.caucho.server.webapp.ApplicationContainer.getApplication(ApplicationContainer.java:885) [20:55:21.024] at com.caucho.server.webapp.ApplicationContainer.buildInvocation(ApplicationContainer.java:725) [20:55:21.024] at com.caucho.server.host.Host.buildInvocation(Host.java:459) [20:55:21.024] at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:353) [20:55:21.024] at com.caucho.server.resin.ServletServer.buildInvocation(ServletServer.java:653) [20:55:21.024] at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:198) [20:55:21.024] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:269) [20:55:21.024] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511) [20:55:21.024] at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520) [20:55:21.024] at com.caucho.util.ThreadPool.run(ThreadPool.java:442) [20:55:21.024] at java.lang.Thread.run(Thread.java:613) [20:55:21.024] Caused by: java.lang.NullPointerException: No data-source specified for PersistenceUnit [20:55:21.024] at com.caucho.amber.manager.AmberPersistenceUnit.getMetaData(AmberPersistenceUnit.java:276) [20:55:21.024] at com.caucho.amber.cfg.EntityIntrospector.introspectId(EntityIntrospector.java) [20:55:21.024] at com.caucho.amber.cfg.EntityIntrospector.introspectIdMethod(EntityIntrospector.java) [20:55:21.024] at com.caucho.amber.cfg.EntityIntrospector.introspect(EntityIntrospector.java) [20:55:21.024] ... 21 more [20:55:21.043] failed scanning class _ejb.HelloBean.HelloBean__EJB$Bean [20:55:21.072] com.caucho.amber.AmberRuntimeException: com.caucho.config.ConfigException: java.lang.NullPointerException: No data-source specified for PersistenceUnit [20:55:21.072] at com.caucho.amber.manager.AmberContainer.getEntity(AmberContainer.java:260) [20:55:21.072] at com.caucho.amber.gen.AmberEnhancer.shouldEnhance(AmberEnhancer.java:182) [20:55:21.072] at com.caucho.loader.enhancer.EnhancerManager.isClassMatch(EnhancerManager.java:379) [20:55:21.072] at com.caucho.bytecode.ByteCodeClassScanner.scan(ByteCodeClassScanner.java:94) [20:55:21.072] at com.caucho.loader.enhancer.EnhancerManager.enhance(EnhancerManager.java:237) [20:55:21.072] at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1235) [20:55:21.072] at com.caucho.loader.DynamicClassLoader.findClass(DynamicClassLoader.java:1149) [20:55:21.072] at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1072) [20:55:21.072] at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1021) [20:55:21.072] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) [20:55:21.072] at _ejb.HelloBean.HelloBean__EJB.<init>(HelloBean__EJB.java:42) [20:55:21.072] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [20:55:21.072] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [20:55:21.072] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [20:55:21.072] at java.lang.reflect.Constructor.newInstance(Constructor.java:494) [20:55:21.072] at com.caucho.ejb.session.StatelessServer.getStatelessContext(StatelessServer.java) [20:55:21.072] at com.caucho.ejb.session.StatelessServer.init(StatelessServer.java:82) [20:55:21.072] at com.caucho.ejb.cfg.EjbConfig.deployBeans(EjbConfig.java:482) [20:55:21.072] at com.caucho.ejb.cfg.EjbConfig.deploy(EjbConfig.java:447) [20:55:21.072] at com.caucho.ejb.EnvServerManager.start(EnvServerManager.java:373) [20:55:21.072] at com.caucho.ejb.EnvServerManager.environmentStart(EnvServerManager.java:507) [20:55:21.072] at com.caucho.loader.EnvironmentClassLoader.start(EnvironmentClassLoader.java:388) [20:55:21.072] at com.caucho.server.webapp.Application.start(Application.java:1628) [20:55:21.072] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621) [20:55:21.072] at com.caucho.server.deploy.DeployController.restartImpl(DeployController.java:584) [20:55:21.072] at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.request(StartAutoRedeployAutoStrategy.java:125) [20:55:21.072] at com.caucho.server.deploy.DeployController.request(DeployController.java:554) [20:55:21.072] at com.caucho.server.webapp.ApplicationContainer.getApplication(ApplicationContainer.java:885) [20:55:21.072] at com.caucho.server.webapp.ApplicationContainer.buildInvocation(ApplicationContainer.java:725) [20:55:21.072] at com.caucho.server.host.Host.buildInvocation(Host.java:459) [20:55:21.072] at com.caucho.server.host.HostContainer.buildInvocation(HostContainer.java:353) [20:55:21.072] at com.caucho.server.resin.ServletServer.buildInvocation(ServletServer.java:653) [20:55:21.072] at com.caucho.server.dispatch.DispatchServer.buildInvocation(DispatchServer.java:198) [20:55:21.072] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:269) [20:55:21.072] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:511) [20:55:21.072] at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520) [20:55:21.072] at com.caucho.util.ThreadPool.run(ThreadPool.java:442) [20:55:21.072] at java.lang.Thread.run(Thread.java:613) [20:55:21.072] Caused by: com.caucho.config.ConfigException: java.lang.NullPointerException: No data-source specified for PersistenceUnit [20:55:21.072] at com.caucho.amber.manager.AmberPersistenceUnit.addEntityClass(AmberPersistenceUnit.java) [20:55:21.072] at com.caucho.amber.cfg.PersistenceUnitConfig.init(PersistenceUnitConfig.java:155) [20:55:21.072] at com.caucho.amber.manager.AmberContainer.addPersistenceRoot(AmberContainer.java:343) [20:55:21.072] at com.caucho.amber.manager.PersistenceEnvironmentListener.environmentStart(PersistenceEnvironmentListener.java:62) [20:55:21.072] ... 17 more [20:55:21.072] Caused by: java.lang.NullPointerException: No data-source specified for PersistenceUnit [20:55:21.072] at com.caucho.amber.manager.AmberPersistenceUnit.getMetaData(AmberPersistenceUnit.java:276) [20:55:21.072] at com.caucho.amber.cfg.EntityIntrospector.introspectId(EntityIntrospector.java) [20:55:21.072] at com.caucho.amber.cfg.EntityIntrospector.introspectIdMethod(EntityIntrospector.java) [20:55:21.072] at com.caucho.amber.cfg.EntityIntrospector.introspect(EntityIntrospector.java) [20:55:21.072] ... 21 more |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |