wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Reply locked New topic
Author

Jboss Error

kishore nag
Greenhorn

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="http://java.sun.com/xml/ns/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">

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


<provider>oracle.toplink.essentials.PersistenceProvider</provider>
<jta-data-source>java:/jdbc/iportds</jta-data-source>
<jar-file></jar-file>
<class>org.strutsexample.Test</class>
<class>org.strutsexample.Test1</class>

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

</persistence-unit>

</persistence>


And my web.xml is
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name>Struts Blank</display-name>

<context-param>
<param-name>tilesDefinitions</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
<listener>
<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
</listener>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>home</welcome-file>
</welcome-file-list>
<resource-ref>
<res-ref-name>java:/jdbc/iportds</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>


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(PersistenceUnitDeployment.java:300)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10069
    
163

kishor,

Please do not ignore, what has already been told to you in other posts of yours http://www.coderanch.com/t/485185/JBoss/please-find-error-jboss. I am going to close this thread since it's an duplicate of the other one.

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jboss Error