Guest User

Untitled

a guest
May 6th, 2018
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.62 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6.  
  7. <groupId>br.com.welson</groupId>
  8. <artifactId>ejb-test</artifactId>
  9. <version>1.0-SNAPSHOT</version>
  10. <packaging>ejb</packaging>
  11.  
  12. <name>ejb-test</name>
  13.  
  14. <properties>
  15. <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. </properties>
  18.  
  19. <dependencies>
  20. <dependency>
  21. <groupId>javax</groupId>
  22. <artifactId>javaee-api</artifactId>
  23. <version>7.0</version>
  24. <scope>provided</scope>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.junit.jupiter</groupId>
  28. <artifactId>junit-jupiter-api</artifactId>
  29. <version>5.1.1</version>
  30. <scope>test</scope>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.hibernate</groupId>
  34. <artifactId>hibernate-core</artifactId>
  35. <version>5.1.10.Final</version>
  36. <scope>provided</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.hibernate</groupId>
  40. <artifactId>hibernate-entitymanager</artifactId>
  41. <version>5.1.10.Final</version>
  42. <scope>provided</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.hibernate</groupId>
  46. <artifactId>hibernate-java8</artifactId>
  47. <version>5.1.10.Final</version>
  48. <scope>provided</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>mysql</groupId>
  52. <artifactId>mysql-connector-java</artifactId>
  53. <version>8.0.11</version>
  54. </dependency>
  55.  
  56. </dependencies>
  57.  
  58. <build>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.apache.maven.plugins</groupId>
  62. <artifactId>maven-compiler-plugin</artifactId>
  63. <version>3.1</version>
  64. <configuration>
  65. <source>1.8</source>
  66. <target>1.8</target>
  67. <compilerArguments>
  68. <endorseddirs>${endorsed.dir}</endorseddirs>
  69. </compilerArguments>
  70. </configuration>
  71. </plugin>
  72.  
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-dependency-plugin</artifactId>
  76. <version>2.6</version>
  77. <executions>
  78. <execution>
  79. <phase>validate</phase>
  80. <goals>
  81. <goal>copy</goal>
  82. </goals>
  83. <configuration>
  84. <outputDirectory>${endorsed.dir}</outputDirectory>
  85. <silent>true</silent>
  86. <artifactItems>
  87. <artifactItem>
  88. <groupId>javax</groupId>
  89. <artifactId>javaee-endorsed-api</artifactId>
  90. <version>7.0</version>
  91. <type>jar</type>
  92. </artifactItem>
  93. </artifactItems>
  94. </configuration>
  95. </execution>
  96. </executions>
  97. </plugin>
  98.  
  99. <plugin>
  100. <artifactId>maven-surefire-plugin</artifactId>
  101. <version>2.19</version>
  102. <dependencies>
  103. <dependency>
  104. <groupId>org.junit.platform</groupId>
  105. <artifactId>junit-platform-surefire-provider</artifactId>
  106. <version>1.1.1</version>
  107. <scope>test</scope>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.junit.jupiter</groupId>
  111. <artifactId>junit-jupiter-engine</artifactId>
  112. <version>5.1.1</version>
  113. <scope>test</scope>
  114. </dependency>
  115. </dependencies>
  116. </plugin>
  117. </plugins>
  118. </build>
  119. </project>
  120.  
  121. <?xml version="1.0" encoding="UTF-8"?>
  122. <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" version="2.1">
  123.  
  124. <persistence-unit name="MySQL">
  125. <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
  126. <class>br.com.welson.ejb.persistence.entity.Student</class>
  127. <properties>
  128. <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/Students"/>
  129. <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
  130. <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL57InnoDBDialect"/>
  131. <property name="hibernate.connection.username" value="root"/>
  132. <property name="hibernate.connection.password" value="root"/>
  133. <property name="hibernate.archive.autodetection" value="class"/>
  134. <property name="hibernate.show_sql" value="true"/>
  135. <property name="hibernate.format_sql" value="true"/>
  136. <property name="hibernate.hbm2ddl.auto" value="update"/>
  137. </properties>
  138. </persistence-unit>
  139. </persistence>
  140.  
  141. /home/welson/Documentos/dev/instalations/wildfly-12.0.0.Final/bin/standalone.sh
  142. /usr/lib/jvm/java-8-oracle/bin/java -Dfile.encoding=UTF-8 -classpath /home/welson/Documentos/dev/instalations/idea-IU-181.4668.68/lib/idea_rt.jar com.intellij.rt.execution.CommandLineWrapper /tmp/idea_classpath com.intellij.javaee.oss.process.JavaeeProcess 44085 com.intellij.javaee.oss.jboss.agent.JBoss71Agent
  143. [2018-05-06 06:24:31,246] Artifact ejb-persistence: Waiting for server connection to start artifact deployment...
  144. Detected server admin port: 9990
  145. Detected server http port: 8080
  146. =========================================================================
  147.  
  148. JBoss Bootstrap Environment
  149.  
  150. JBOSS_HOME: /home/welson/Documentos/dev/instalations/wildfly-12.0.0.Final
  151.  
  152. JAVA: /usr/lib/jvm/java-8-oracle/bin/java
  153.  
  154. JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
  155.  
  156. =========================================================================
  157.  
  158. 18:24:31,699 INFO [org.jboss.modules] (main) JBoss Modules version 1.7.0.Final
  159. 18:24:32,259 INFO [org.jboss.msc] (main) JBoss MSC version 1.3.2.Final
  160. 18:24:32,274 INFO [org.jboss.threads] (main) JBoss Threads version 2.3.1.Final
  161. 18:24:32,532 INFO [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: WildFly Full 12.0.0.Final (WildFly Core 4.0.0.Final) starting
  162. 18:24:34,023 INFO [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/core-service=management/management-interface=http-interface' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
  163. 18:24:34,062 INFO [org.wildfly.security] (ServerService Thread Pool -- 9) ELY00001: WildFly Elytron version 1.2.2.Final
  164. 18:24:34,099 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 29) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
  165. 18:24:34,193 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
  166. 18:24:34,216 INFO [org.xnio] (MSC service thread 1-8) XNIO version 3.6.2.Final
  167. 18:24:34,234 INFO [org.xnio.nio] (MSC service thread 1-8) XNIO NIO Implementation Version 3.6.2.Final
  168. 18:24:34,318 INFO [org.jboss.remoting] (MSC service thread 1-5) JBoss Remoting version 5.0.5.Final
  169. 18:24:34,333 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 36) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
  170. 18:24:34,398 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 48) WFLYJSF0007: Activated the following JSF Implementations: [main]
  171. 18:24:34,403 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 58) WFLYTX0013: The node-identifier attribute on the /subsystem=transactions is set to the default value. This is a danger for environments running multiple servers. Please make sure the attribute value is unique.
  172. 18:24:34,404 INFO [org.jboss.as.jaxrs] (ServerService Thread Pool -- 43) WFLYRS0016: RESTEasy version 3.5.0.Final
  173. 18:24:34,409 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 41) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors
  174. 18:24:34,414 INFO [org.jboss.as.security] (ServerService Thread Pool -- 57) WFLYSEC0002: Activating Security Subsystem
  175. 18:24:34,415 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 60) WFLYWS0002: Activating WebServices Extension
  176. 18:24:34,417 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 42) WFLYCLINF0001: Activating Infinispan subsystem.
  177. 18:24:34,429 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 50) WFLYNAM0001: Activating Naming Subsystem
  178. 18:24:34,438 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = h2
  179. 18:24:34,439 INFO [org.jboss.as.connector] (MSC service thread 1-4) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.4.7.Final)
  180. 18:24:34,457 INFO [org.jboss.as.security] (MSC service thread 1-8) WFLYSEC0001: Current PicketBox version=5.0.2.Final
  181. 18:24:34,512 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0003: Undertow 2.0.0.Final starting
  182. 18:24:34,520 INFO [org.jboss.as.naming] (MSC service thread 1-4) WFLYNAM0003: Starting Naming Service
  183. 18:24:34,521 INFO [org.jboss.as.mail.extension] (MSC service thread 1-4) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
  184. 18:24:34,775 INFO [org.jboss.as.ejb3] (MSC service thread 1-1) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 16 (per class), which is derived from the number of CPUs on this host.
  185. 18:24:34,778 INFO [org.jboss.as.ejb3] (MSC service thread 1-8) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 64 (per class), which is derived from thread worker pool sizing.
  186. 18:24:34,844 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 59) WFLYUT0014: Creating file handler for path '/home/welson/Documentos/dev/instalations/wildfly-12.0.0.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
  187. 18:24:34,852 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0012: Started server default-server.
  188. 18:24:34,853 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting
  189. 18:24:34,961 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080
  190. 18:24:34,994 INFO [org.jboss.as.ejb3] (MSC service thread 1-3) WFLYEJB0493: EJB subsystem suspension complete
  191. 18:24:35,168 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
  192. 18:24:35,273 INFO [org.jboss.as.patching] (MSC service thread 1-8) WFLYPAT0050: WildFly Full cumulative patch ID is: base, one-off patches include: none
  193. 18:24:35,291 WARN [org.jboss.as.domain.management.security] (MSC service thread 1-4) WFLYDM0111: Keystore /home/welson/Documentos/dev/instalations/wildfly-12.0.0.Final/standalone/configuration/application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
  194. 18:24:35,297 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) WFLYDS0013: Started FileSystemDeploymentService for directory /home/welson/Documentos/dev/instalations/wildfly-12.0.0.Final/standalone/deployments
  195. mai 06, 2018 6:24:35 PM org.jboss.threads.Version <clinit>
  196. INFO: JBoss Threads version 2.3.1.Final
  197. 18:24:35,533 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:8443
  198. 18:24:35,635 INFO [org.jboss.ws.common.management] (MSC service thread 1-7) JBWS022052: Starting JBossWS 5.2.0.Final (Apache CXF 3.2.2)
  199. mai 06, 2018 6:24:35 PM org.jboss.remoting3.EndpointImpl <clinit>
  200. INFO: JBoss Remoting version 5.0.5.Final
  201. 18:24:35,768 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
  202. 18:24:35,772 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
  203. 18:24:35,772 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
  204. 18:24:35,773 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 12.0.0.Final (WildFly Core 4.0.0.Final) started in 4711ms - Started 292 of 513 services (308 services are lazy, passive or on-demand)
  205. mai 06, 2018 6:24:35 PM org.xnio.Xnio <clinit>
  206. INFO: XNIO version 3.6.2.Final
  207. mai 06, 2018 6:24:35 PM org.xnio.nio.NioXnio <clinit>
  208. INFO: XNIO NIO Implementation Version 3.6.2.Final
  209. mai 06, 2018 6:24:35 PM org.wildfly.security.Version <clinit>
  210. INFO: ELY00001: WildFly Elytron version 1.2.2.Final
  211. Connected to server
  212. [2018-05-06 06:24:36,567] Artifact ejb-persistence: Artifact is being deployed, please wait...
  213. 18:24:36,712 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0027: Starting deployment of "ejb-persistence.jar" (runtime-name: "ejb-persistence.jar")
  214. 18:24:36,906 INFO [org.jboss.as.jpa] (MSC service thread 1-4) WFLYJPA0002: Read persistence.xml for MySQL
  215. 18:24:36,975 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 62) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'ejb-persistence.jar#MySQL'
  216. 18:24:37,005 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 62) HHH000204: Processing PersistenceUnitInfo [
  217. name: MySQL
  218. ...]
  219. 18:24:37,018 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) WFLYWELD0003: Processing weld deployment ejb-persistence.jar
  220. 18:24:37,068 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-4) HV000001: Hibernate Validator 5.3.6.Final
  221. 18:24:37,106 INFO [org.hibernate.Version] (ServerService Thread Pool -- 62) HHH000412: Hibernate Core {5.1.10.Final}
  222. 18:24:37,108 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 62) HHH000206: hibernate.properties not found
  223. 18:24:37,110 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 62) HHH000021: Bytecode provider name : javassist
  224. 18:24:37,165 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-4) WFLYEJB0473: JNDI bindings for session bean named 'MathBean' in deployment unit 'deployment "ejb-persistence.jar"' are as follows:
  225.  
  226. java:global/ejb-persistence/MathBean!br.com.welson.ejb.MathBeanRemote
  227. java:app/ejb-persistence/MathBean!br.com.welson.ejb.MathBeanRemote
  228. java:module/MathBean!br.com.welson.ejb.MathBeanRemote
  229. java:jboss/exported/ejb-persistence/MathBean!br.com.welson.ejb.MathBeanRemote
  230. java:global/ejb-persistence/MathBean
  231. java:app/ejb-persistence/MathBean
  232. java:module/MathBean
  233.  
  234. 18:24:37,166 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-4) WFLYEJB0473: JNDI bindings for session bean named 'StudentBean' in deployment unit 'deployment "ejb-persistence.jar"' are as follows:
  235.  
  236. java:global/ejb-persistence/StudentBean!br.com.welson.ejb.StudentBeanRemote
  237. java:app/ejb-persistence/StudentBean!br.com.welson.ejb.StudentBeanRemote
  238. java:module/StudentBean!br.com.welson.ejb.StudentBeanRemote
  239. java:jboss/exported/ejb-persistence/StudentBean!br.com.welson.ejb.StudentBeanRemote
  240. java:global/ejb-persistence/StudentBean
  241. java:app/ejb-persistence/StudentBean
  242. java:module/StudentBean
  243.  
  244. 18:24:37,187 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 62) HCANN000001: Hibernate Commons Annotations {5.0.2.Final}
  245. 18:24:37,475 INFO [org.jboss.weld.Version] (MSC service thread 1-4) WELD-000900: 3.0.3 (Final)
  246. 18:24:37,941 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-1) ISPN000128: Infinispan version: Infinispan 'Bastille' 9.1.6.Final
  247. 18:24:37,949 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 62) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'ejb-persistence.jar#MySQL'
  248. 18:24:38,186 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63) WFLYCLINF0002: Started client-mappings cache from ejb container
  249. 18:24:38,238 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 62) HHH000400: Using dialect: org.hibernate.dialect.MySQL57InnoDBDialect
  250. 18:24:38,326 INFO [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 62) Envers integration enabled? : true
  251. 18:24:38,761 INFO [stdout] (ServerService Thread Pool -- 62) Hibernate:
  252. 18:24:38,762 INFO [stdout] (ServerService Thread Pool -- 62)
  253. 18:24:38,763 INFO [stdout] (ServerService Thread Pool -- 62) create table Student (
  254. 18:24:38,763 INFO [stdout] (ServerService Thread Pool -- 62) id bigint not null auto_increment,
  255. 18:24:38,763 INFO [stdout] (ServerService Thread Pool -- 62) dateOfBirth date,
  256. 18:24:38,763 INFO [stdout] (ServerService Thread Pool -- 62) name varchar(255) not null,
  257. 18:24:38,764 INFO [stdout] (ServerService Thread Pool -- 62) primary key (id)
  258. 18:24:38,764 INFO [stdout] (ServerService Thread Pool -- 62) ) ENGINE=InnoDB
  259. 18:24:38,875 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor is deprecated from CDI 1.1!
  260. 18:24:38,895 WARN [org.jboss.weld.Bootstrap] (MSC service thread 1-3) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.jberet.creation.BatchBeanProducer is deprecated from CDI 1.1!
  261. 18:24:39,318 INFO [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0010: Deployed "ejb-persistence.jar" (runtime-name : "ejb-persistence.jar")
  262. [2018-05-06 06:24:39,353] Artifact ejb-persistence: Artifact is deployed successfully
  263. [2018-05-06 06:24:39,353] Artifact ejb-persistence: Deploy took 2.786 milliseconds
Add Comment
Please, Sign In to add comment