  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | - Problem in deployment of ejb 3 in JBoss Server using Or | - Problem in deployment of ejb 3 in JBoss Server using Or 2007-07-12 - By ashusri000
Back Hi All , I have packed a simple stateless bean along with an entity bean but there is an exception thrown during deployment as this : -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
[ServiceController] Problem starting service persistence.units:ear=sample123 .ear,jar=persist.jar,unitName=testApp java.lang.ClassCastException : oracle.toplink.essentials.ejb.cmp3 .EntityManagerFactoryProvider at org.jboss.ejb3.entity.PersistenceUnitDeployment.start (PersistenceUnitDeployment.java:245) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method (Unknown Source) at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper .java:103) at org.jboss.system.ServiceMBeanSupport (ServiceMBeanSupport .java:289) at org.jboss.system.ServiceMBeanSupport  (ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method (Unknown Source) 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 (MBeanServerImpl.java:659) at org.jboss.system.ServiceController $ServiceProxy.invoke(ServiceController .java:978) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController (ServiceController.java:417) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method (Unknown Source) -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Please can anybody help me figure out as to why this exception is thrown up .
My persistence.xml looks like this
<?xml version="1.0" encoding="UTF-8 (See http://UTF-8.ora-code.com)"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http:/ /www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http:/ /java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence /persistence_1_0.xsd"> <persistence-unit name="testApp" > oracle.toplink.essentials.PersistenceProvider <jta-data-source>java:comp/env/jdbc/my-ejb-test</jta-data-source> src.Employee
<!--Use the java2db feature -->
<!-- Generate the sql specific to database -->
</persistence-unit>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic &p=4063326#4063326
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode =reply&p=4063326 __ ____ ____ ____ ____ ____ ____ ____ ____ ____ jboss-user mailing list jboss-user@(protected) https://lists.jboss.org/mailman/listinfo/jboss-user
|
|
 |