This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

Jboss Error

 
kishore nag
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic