Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] 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  
Status closed   Product Version 4.0.18
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?
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(
     [java] at com.caucho.env.jpa.PersistenceUnitManager.getNonJtaDataSource(
     [java] at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.updateLogins(
     [java] at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.updateServerSession(
     [java] at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(
     [java] at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.getServerSession(
     [java] at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(
     [java] at org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(

.. (my initialization code)..

     [java] at com.caucho.server.webapp.WebApp.start(
     [java] at com.caucho.env.deploy.DeployController.startImpl(
     [java] at com.caucho.env.deploy.StartAutoRedeployAutoStrategy.startOnInit(
     [java] at com.caucho.env.deploy.DeployController.startOnInit(
     [java] at com.caucho.env.deploy.DeployContainer.update(
     [java] at com.caucho.env.deploy.DeployContainer.update(
     [java] at com.caucho.env.deploy.DeployContainer.add(
     [java] at com.caucho.server.webapp.WebAppContainer.addWebApp(
     [java] at com.caucho.resin.ResinEmbed.start(
     [java] at com.caucho.jsp.JspCompiler.createWebApp(
     [java] at com.caucho.jsp.JspCompiler.configureFromArgs(
     [java] at com.caucho.jsp.JspCompiler.main(
Attached Files

- Relationships

- Notes
07-07-11 14:27


- 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