[jboss-user] [EJB 3.0] - Could not deploy EJB3.0 entities
saasira
do-not-reply at jboss.com
Sat Nov 10 12:43:21 EST 2007
Hi!
I'm new to JBoss
And I'm trying to test the EJB3.0 support in JBoss 4.2.1.GA server
Here is my persistence.xml
<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0" xmlns="http://java.sun.com/xml/ns/persistence">
<persistence-unit name="Model" transaction-type="JTA">
org.hibernate.ejb.HibernatePersistence
<jta-data-source>java:jdbc/OracleDS </jta-data-source>
<!-- <jar-file>TestModel.jar</jar-file>
com.prapansol.demos.model.Emp
com.prapansol.demos.model.Dept
<exclude-unlisted-classes>true</exclude-unlisted-classes>
-->
</persistence-unit>
I'm getting the error :
| Problem starting service persistence.units:ear=TestModel.ear,jar=TestModel.jar,unitName=Model
| java.lang.RuntimeException: java.lang.NoSuchFieldError: tokenTypeToASTClassMap
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:109)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
|
Can any one tell me what could be causing this problem , and a solution to this, if possible!
Thanks in advance,
Samba
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103430#4103430
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103430
More information about the jboss-user
mailing list