Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004591 [Resin] crash always 06-03-11 08:15 07-07-11 14:27
Reporter paru View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.20 Product Version 4.0.18
  Product Build
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)
Attached Files

- Relationships

- Notes
(0005370)
ferg
07-07-11 14:27

env/0e23
 

- Issue History
Date Modified Username Field Change
06-03-11 08:15 paru New Issue
06-15-11 12:16 stbu Issue Monitored: stbu
07-07-11 14:27 ferg Note Added: 0005370
07-07-11 14:27 ferg Assigned To  => ferg
07-07-11 14:27 ferg Status new => closed
07-07-11 14:27 ferg Resolution open => fixed
07-07-11 14:27 ferg Fixed in Version  => 4.0.20


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker