Advertisement
Guest User

Untitled

a guest
Oct 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. 23:36:46,381 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "meuprojeto")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.meuprojeto#meuprojeto-dev" => "java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
  2. Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory"}}
  3. 23:36:46,382 ERROR [org.jboss.as.server] (management-handler-thread - 2) WFLYSRV0021: Deploy of deployment "meuprojeto.war" was rolled back with the following failure message:
  4. {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.meuprojeto#meuprojeto-dev" => "java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
  5. Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory"}}
  6. 23:36:46,387 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 66) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'meuprojeto#meuprojeto-dev'
  7. 23:36:46,535 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0028: Stopped deployment meuprojeto (runtime-name: meuprojeto.war) in 152ms
  8. [2017-10-24 11:36:46,614] Artifact meuprojeto:war exploded: Error during artifact deployment. See server log for details.
  9. [2017-10-24 11:36:46,614] Artifact meuprojeto:war exploded: java.lang.Exception: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.meuprojeto#meuprojeto-dev" => "java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
  10. Caused by: java.lang.ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory"}}
  11.  
  12. <datasource jndi-name="java:jboss/datasources/meuprojetoDS" pool-name="meuprojetoDS">
  13. <connection-url>jdbc:postgresql://localhost:5432/meuprojetodb</connection-url>
  14. <connection-property name="DatabaseName">
  15. meuprojetodb
  16. </connection-property>
  17. <driver>org.postgresql</driver>
  18. <pool>
  19. <min-pool-size>10</min-pool-size>
  20. <max-pool-size>20</max-pool-size>
  21. </pool>
  22. <security>
  23. <user-name>postgres</user-name>
  24. <password>root</password>
  25. </security>
  26. </datasource>
  27. <drivers>
  28. <driver name="org.postgresql" module="org.postgresql">
  29. <xa-datasource-class>org.postgresql.Driver</xa-datasource-class>
  30. </driver>
  31. </drivers>
  32.  
  33. <module xmlns="urn:jboss:module:1.0" name="org.postgresql">
  34. <resources>
  35. <resource-root path="postgresql-42.1.4.jar"/>
  36. </resources>
  37. <dependencies>
  38. <module name="javax.api"/>
  39. <module name="javax.transaction.api"/>
  40. </dependencies>
  41. </module>
  42.  
  43. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  44. <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  45. xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
  46. version="2.0">
  47. <persistence-unit name="meuprojeto-dev" transaction-type="JTA">
  48.  
  49. <description>Dev Persistence Unit</description>
  50.  
  51. <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
  52.  
  53. <jta-data-source>java:jboss/datasources/meuprojetoDS</jta-data-source>
  54.  
  55. <exclude-unlisted-classes>false</exclude-unlisted-classes>
  56.  
  57. <properties>
  58. <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
  59. <property name="hibernate.show_sql" value="true"/>
  60. <property name="hibernate.format_sql" value="true"/>
  61. <property name="hibernate.transaction.flush_before_completion" value="true"/>
  62. <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
  63. </properties>
  64.  
  65. </persistence-unit>
  66. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement