This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Jboss Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Reply locked New topic

Jboss Error

kishore nag

Joined: Feb 18, 2010
Posts: 17
Hello EveryBody,

This is kishore, I am getting so many error in jboss while deploying the our project in to jboss server.we use "JPA PERSISTENCE" there so iam unable to slove those errors can any bosy please find it out and give me the reply please.

This is my persistence.xml file

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns=""
xsi:schemaLocation="" version="1.0">

<persistence-unit name="iport" transaction-type="JTA">


<property name="toplink.jdbc.driver" value="oracle.jdbc.driver.OracleDriver"/>
<property name="toplink.jdbc.url"
value="jdbcracle:thin:@" />
<property name="toplink.jdbc.user" value="iport" />
<property name="toplink.jdbc.password" value="iport" />



And my web.xml is
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns=""
xmlns:xsi="" xsi:schemaLocation="">
<display-name>Struts Blank</display-name>


my project name is struts2

and the error is

12:19:52,578 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=#iport
12:19:52,593 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#iport state=Create
java.lang.ClassCastException: oracle.toplink.essentials.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441


Please do not ignore, what has already been told to you in other posts of yours I am going to close this thread since it's an duplicate of the other one.

[My Blog] [JavaRanch Journal]
Don't get me started about those stupid light bulbs.
subject: Jboss Error
It's not a secret anymore!