Java Mailing List Archive

http://www.junlu.com/

Google
Google
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
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- 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 Source code of 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 Source code of java.lang.reflect.Method(Unknown Source)
at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper
.java:103)
at org.jboss.system.ServiceMBeanSupport Source code of org.jboss.system.ServiceMBeanSupport(ServiceMBeanSupport
.java:289)
at org.jboss.system.ServiceMBeanSupport Source code of 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 Source code of 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 Source code of org.jboss.mx.server.MBeanServerImpl(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController Source code of org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController
.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController Source code of 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 Source code of 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

©2008 junlu.com - Jax Systems, LLC, U.S.A.