Hello,

I'm trying to deploy an EJB 3.0 Hibernate code with two data sources under
OpenEJB without a success. Basically, it's a data access layer with
stateless EJBs modeled as DAOs. After a week of configuration and playing
with docs, I got to the point where the container starts up, but in the log
EJB deployment fails. The error doesn't make sense to me, because OpenEJB
complains about EJB deployments not being found, such as:

2009-08-10 14:04:10,671 - DEBUG - Clearing Sun JarFileFactory cache for
directory /opt/openejb-3.1.1/apps/ch
2009-08-10 14:04:10,672 - DEBUG - App failing deployment may not have
undeployed cleanly: /opt/openejb-3.1.1/apps/ch
org.apache.openejb.UndeployException: Failed undeploying application:
id=/opt/openejb-3.1.1/apps/ch
Nested caused by: 
java.lang.Exception: deployment not found: PsProxyOrderCommitDaoEjb

but earlier in the log it shows it has deployed the very EJB (???):

2009-08-10 14:04:03,347 - INFO  - Auto-deploying ejb
PsProxyOrderCommitDaoEjb:
EjbDeployment(deployment-id=PsProxyOrderCommitDaoEjb)

My app is deployed as exploded JAR (inside /opt/openejb/apps/), and my
entities for the two respective data sources live in:

/opt/openejb/lib/ecommerce-ps-entities.jar
/opt/openejb/lib/ecommerce-web-entities.jar

My interfaces are also bundled separately, and live in:

/opt/openejb/lib/ecommerceejb-api-1.0.jar

In persistence.xml I'm telling hibernate that it can find entities using
<jar-file>../../lib/<jar></jar> and it seems to be happy.

Why is OpenEJB failing though?

adam

PS. clean log is attached from a signle failed deployment 
http://www.nabble.com/file/p24905914/openejb.log openejb.log 


-- 
View this message in context: 
http://www.nabble.com/OpenEjb-undeploying-app-on-startup-tp24905914p24905914.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to