Error on deployment of EJB

AnetaGueogui

Grünschnabel
Hello,

I followed the instuctions on the EJB3-Tutotial on the site http://www.laliluna.de/download/first-ejb3-ant-tutorial-en.pdf
but I can't deploy the application right, as the error down shows.
I use mysql-ds.xml in the deploy-directory in JBOSS and mysql Server 4.1 and in jboss and I placed the mysql Connector mysql-connector-java-5.0.6-bin.jar in the directory
$JBOSS_HOME/server/default/deploy/lib as said in this tutorial. I don't understand what the error-reason is. Has anybody an idea?Thanks.

My mysql-ds.xml -file looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>ejb3ProjectDS</jndi-name>
<connection-url>jdbc:mysql://mysql-hostname:3306/examples</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>x</user-name>
<password>y</password> <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>


The JBoss Error Stack:

17:38:49,324 INFO [EJB3Deployer] Deployed: file:/C:/Programme/JBoss/jboss-4.0.5
.GA/server/default/deploy/FirstEJB3Tutorial.jar
17:38:49,324 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@585d8409 { url=file:/C:/Programme/JBoss/jbos
s-4.0.5.GA/server/default/deploy/ejb3-clustered-sfsbcache-service.xml }
deployer: org.jboss.deployment.SARDeployer@476128
status: Deployment FAILED reason: - nested throwable: (java.lang.reflect.Undec
laredThrowableException)
state: FAILED
watch: file:/C:/Programme/JBoss/jboss-4.0.5.GA/server/default/deploy/ejb3-clus
tered-sfsbcache-service.xml
altDD: null
lastDeployed: 1182440277340
lastModified: 1182440277324
mbeans:

org.jboss.deployment.DeploymentInfo@5f4b3173 { url=file:/C:/Programme/JBoss/jbos
s-4.0.5.GA/server/default/deploy/ejb3-entity-cache-service.xml }
deployer: org.jboss.deployment.SARDeployer@476128
status: Deployment FAILED reason: No ClassLoaders found for: org.jboss.cache.T
reeCache; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders
found for: org.jboss.cache.TreeCache)
state: FAILED
watch: file:/C:/Programme/JBoss/jboss-4.0.5.GA/server/default/deploy/ejb3-enti
ty-cache-service.xml
altDD: null
lastDeployed: 1182440277402
lastModified: 1182440277386
mbeans:

--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:jar=FirstEJB3Tutorial.jar,unitName=FirstEjb3Tutori
al
State: NOTYETINSTALLED
I Depend On:
jboss.jca:name=ejb3ExampleDS,service=DataSourceBinding
Depends On Me:
jboss.j2ee:jar=FirstEJB3Tutorial.jar,name=BookTestBean,service=EJB3

ObjectName: jboss.j2ee:jar=FirstEJB3Tutorial.jar,name=BookTestBean,service=EJB3
State: NOTYETINSTALLED
I Depend On:
persistence.units:jar=FirstEJB3Tutorial.jar,unitName=FirstEjb3Tutorial

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:name=ejb3ExampleDS,service=DataSourceBinding
State: NOTYETINSTALLED
Depends On Me:
persistence.units:jar=FirstEJB3Tutorial.jar,unitName=FirstEjb3Tutorial
 
Zurück