Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4591 | crash | always | 06-03-11 08:15 | 07-07-11 14:27 | |
|
|||||
Reporter: | paru | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.18 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.20 | ||
|
|||||
Summary: | 0004591: Issue with a jpa web application which uses a non-jta-datasource | ||||
Description: |
I cannot use Resin 4.0 with EclipseLink 2.1.3 when the application is configured using a non-jta-datasource. I only tried the to use the JspCompiler yet, but I think that this exception will also occur during a regular start. (BTW, why does the JSPCompiler need to instantiate the application? This was not the case when using resin 3.1) Am I doing something wrong? If not: Is there a workaround? |
||||
Steps To Reproduce: | |||||
Additional Information: |
[java] java.lang.ClassCastException: com.caucho.naming.ContextImpl cannot be cast to javax.sql.DataSource [java] at com.caucho.env.jpa.PersistenceUnitManager.loadDataSource(PersistenceUnitManager.java:644) [java] at com.caucho.env.jpa.PersistenceUnitManager.getNonJtaDataSource(PersistenceUnitManager.java:591) [java] at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.updateLogins(EntityManagerSetupImpl.java:1201) [java] at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.updateServerSession(EntityManagerSetupImpl.java:1449) [java] at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:372) [java] at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:164) [java] at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:221) [java] at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:216) .. (my initialization code).. [java] at com.caucho.server.webapp.WebApp.start(WebApp.java:3490) [java] at com.caucho.env.deploy.DeployController.startImpl(DeployController.java:658) [java] at com.caucho.env.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:77) [java] at com.caucho.env.deploy.DeployController.startOnInit(DeployController.java:521) [java] at com.caucho.env.deploy.DeployContainer.update(DeployContainer.java:242) [java] at com.caucho.env.deploy.DeployContainer.update(DeployContainer.java:224) [java] at com.caucho.env.deploy.DeployContainer.add(DeployContainer.java:88) [java] at com.caucho.server.webapp.WebAppContainer.addWebApp(WebAppContainer.java:404) [java] at com.caucho.resin.ResinEmbed.start(ResinEmbed.java:327) [java] at com.caucho.jsp.JspCompiler.createWebApp(JspCompiler.java:350) [java] at com.caucho.jsp.JspCompiler.configureFromArgs(JspCompiler.java:684) [java] at com.caucho.jsp.JspCompiler.main(JspCompiler.java:616) |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|