Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Jboss Error

 
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="jdbc:oracle: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)

 
Sheriff
Posts: 10445
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 https://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.
 
rubbery bacon. crispy tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!