Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>br.com.welson</groupId>
- <artifactId>ejb-test</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>ejb</packaging>
- <name>ejb-test</name>
- <properties>
- <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
- <dependencies>
- <dependency>
- <groupId>javax</groupId>
- <artifactId>javaee-api</artifactId>
- <version>7.0</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-api</artifactId>
- <version>5.1.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-core</artifactId>
- <version>5.1.10.Final</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-entitymanager</artifactId>
- <version>5.1.10.Final</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-java8</artifactId>
- <version>5.1.10.Final</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>8.0.11</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.1</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- <compilerArguments>
- <endorseddirs>${endorsed.dir}</endorseddirs>
- </compilerArguments>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.6</version>
- <executions>
- <execution>
- <phase>validate</phase>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <outputDirectory>${endorsed.dir}</outputDirectory>
- <silent>true</silent>
- <artifactItems>
- <artifactItem>
- <groupId>javax</groupId>
- <artifactId>javaee-endorsed-api</artifactId>
- <version>7.0</version>
- <type>jar</type>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.19</version>
- <dependencies>
- <dependency>
- <groupId>org.junit.platform</groupId>
- <artifactId>junit-platform-surefire-provider</artifactId>
- <version>1.1.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.junit.jupiter</groupId>
- <artifactId>junit-jupiter-engine</artifactId>
- <version>5.1.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
- </plugin>
- </plugins>
- </build>
- </project>
- <?xml version="1.0" encoding="UTF-8"?>
- <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" version="2.1">
- <persistence-unit name="MySQL">
- <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
- <class>br.com.welson.ejb.persistence.entity.Student</class>
- <properties>
- <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/Students"/>
- <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
- <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL57InnoDBDialect"/>
- <property name="hibernate.connection.username" value="root"/>
- <property name="hibernate.connection.password" value="root"/>
- <property name="hibernate.archive.autodetection" value="class"/>
- <property name="hibernate.show_sql" value="true"/>
- <property name="hibernate.format_sql" value="true"/>
- <property name="hibernate.hbm2ddl.auto" value="update"/>
- </properties>
- </persistence-unit>
- </persistence>
- /home/welson/Documentos/dev/instalations/wildfly-12.0.0.Final/bin/standalone.sh
- /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
- [2018-05-06 06:24:31,246] Artifact ejb-persistence: Waiting for server connection to start artifact deployment...
- Detected server admin port: 9990
- Detected server http port: 8080
- =========================================================================
- JBoss Bootstrap Environment
- JBOSS_HOME: /home/welson/Documentos/dev/instalations/wildfly-12.0.0.Final
- JAVA: /usr/lib/jvm/java-8-oracle/bin/java
- 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
- =========================================================================
- 18:24:31,699 INFO [org.jboss.modules] (main) JBoss Modules version 1.7.0.Final
- 18:24:32,259 INFO [org.jboss.msc] (main) JBoss MSC version 1.3.2.Final
- 18:24:32,274 INFO [org.jboss.threads] (main) JBoss Threads version 2.3.1.Final
- 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
- 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.
- 18:24:34,062 INFO [org.wildfly.security] (ServerService Thread Pool -- 9) ELY00001: WildFly Elytron version 1.2.2.Final
- 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.
- 18:24:34,193 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
- 18:24:34,216 INFO [org.xnio] (MSC service thread 1-8) XNIO version 3.6.2.Final
- 18:24:34,234 INFO [org.xnio.nio] (MSC service thread 1-8) XNIO NIO Implementation Version 3.6.2.Final
- 18:24:34,318 INFO [org.jboss.remoting] (MSC service thread 1-5) JBoss Remoting version 5.0.5.Final
- 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)
- 18:24:34,398 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 48) WFLYJSF0007: Activated the following JSF Implementations: [main]
- 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.
- 18:24:34,404 INFO [org.jboss.as.jaxrs] (ServerService Thread Pool -- 43) WFLYRS0016: RESTEasy version 3.5.0.Final
- 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
- 18:24:34,414 INFO [org.jboss.as.security] (ServerService Thread Pool -- 57) WFLYSEC0002: Activating Security Subsystem
- 18:24:34,415 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 60) WFLYWS0002: Activating WebServices Extension
- 18:24:34,417 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 42) WFLYCLINF0001: Activating Infinispan subsystem.
- 18:24:34,429 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 50) WFLYNAM0001: Activating Naming Subsystem
- 18:24:34,438 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = h2
- 18:24:34,439 INFO [org.jboss.as.connector] (MSC service thread 1-4) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.4.7.Final)
- 18:24:34,457 INFO [org.jboss.as.security] (MSC service thread 1-8) WFLYSEC0001: Current PicketBox version=5.0.2.Final
- 18:24:34,512 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0003: Undertow 2.0.0.Final starting
- 18:24:34,520 INFO [org.jboss.as.naming] (MSC service thread 1-4) WFLYNAM0003: Starting Naming Service
- 18:24:34,521 INFO [org.jboss.as.mail.extension] (MSC service thread 1-4) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
- 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.
- 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.
- 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: '[]']
- 18:24:34,852 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0012: Started server default-server.
- 18:24:34,853 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting
- 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
- 18:24:34,994 INFO [org.jboss.as.ejb3] (MSC service thread 1-3) WFLYEJB0493: EJB subsystem suspension complete
- 18:24:35,168 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
- 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
- 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
- 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
- mai 06, 2018 6:24:35 PM org.jboss.threads.Version <clinit>
- INFO: JBoss Threads version 2.3.1.Final
- 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
- 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)
- mai 06, 2018 6:24:35 PM org.jboss.remoting3.EndpointImpl <clinit>
- INFO: JBoss Remoting version 5.0.5.Final
- 18:24:35,768 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
- 18:24:35,772 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
- 18:24:35,772 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
- 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)
- mai 06, 2018 6:24:35 PM org.xnio.Xnio <clinit>
- INFO: XNIO version 3.6.2.Final
- mai 06, 2018 6:24:35 PM org.xnio.nio.NioXnio <clinit>
- INFO: XNIO NIO Implementation Version 3.6.2.Final
- mai 06, 2018 6:24:35 PM org.wildfly.security.Version <clinit>
- INFO: ELY00001: WildFly Elytron version 1.2.2.Final
- Connected to server
- [2018-05-06 06:24:36,567] Artifact ejb-persistence: Artifact is being deployed, please wait...
- 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")
- 18:24:36,906 INFO [org.jboss.as.jpa] (MSC service thread 1-4) WFLYJPA0002: Read persistence.xml for MySQL
- 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'
- 18:24:37,005 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 62) HHH000204: Processing PersistenceUnitInfo [
- name: MySQL
- ...]
- 18:24:37,018 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) WFLYWELD0003: Processing weld deployment ejb-persistence.jar
- 18:24:37,068 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-4) HV000001: Hibernate Validator 5.3.6.Final
- 18:24:37,106 INFO [org.hibernate.Version] (ServerService Thread Pool -- 62) HHH000412: Hibernate Core {5.1.10.Final}
- 18:24:37,108 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 62) HHH000206: hibernate.properties not found
- 18:24:37,110 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 62) HHH000021: Bytecode provider name : javassist
- 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:
- java:global/ejb-persistence/MathBean!br.com.welson.ejb.MathBeanRemote
- java:app/ejb-persistence/MathBean!br.com.welson.ejb.MathBeanRemote
- java:module/MathBean!br.com.welson.ejb.MathBeanRemote
- java:jboss/exported/ejb-persistence/MathBean!br.com.welson.ejb.MathBeanRemote
- java:global/ejb-persistence/MathBean
- java:app/ejb-persistence/MathBean
- java:module/MathBean
- 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:
- java:global/ejb-persistence/StudentBean!br.com.welson.ejb.StudentBeanRemote
- java:app/ejb-persistence/StudentBean!br.com.welson.ejb.StudentBeanRemote
- java:module/StudentBean!br.com.welson.ejb.StudentBeanRemote
- java:jboss/exported/ejb-persistence/StudentBean!br.com.welson.ejb.StudentBeanRemote
- java:global/ejb-persistence/StudentBean
- java:app/ejb-persistence/StudentBean
- java:module/StudentBean
- 18:24:37,187 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 62) HCANN000001: Hibernate Commons Annotations {5.0.2.Final}
- 18:24:37,475 INFO [org.jboss.weld.Version] (MSC service thread 1-4) WELD-000900: 3.0.3 (Final)
- 18:24:37,941 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-1) ISPN000128: Infinispan version: Infinispan 'Bastille' 9.1.6.Final
- 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'
- 18:24:38,186 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63) WFLYCLINF0002: Started client-mappings cache from ejb container
- 18:24:38,238 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 62) HHH000400: Using dialect: org.hibernate.dialect.MySQL57InnoDBDialect
- 18:24:38,326 INFO [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 62) Envers integration enabled? : true
- 18:24:38,761 INFO [stdout] (ServerService Thread Pool -- 62) Hibernate:
- 18:24:38,762 INFO [stdout] (ServerService Thread Pool -- 62)
- 18:24:38,763 INFO [stdout] (ServerService Thread Pool -- 62) create table Student (
- 18:24:38,763 INFO [stdout] (ServerService Thread Pool -- 62) id bigint not null auto_increment,
- 18:24:38,763 INFO [stdout] (ServerService Thread Pool -- 62) dateOfBirth date,
- 18:24:38,763 INFO [stdout] (ServerService Thread Pool -- 62) name varchar(255) not null,
- 18:24:38,764 INFO [stdout] (ServerService Thread Pool -- 62) primary key (id)
- 18:24:38,764 INFO [stdout] (ServerService Thread Pool -- 62) ) ENGINE=InnoDB
- 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!
- 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!
- 18:24:39,318 INFO [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0010: Deployed "ejb-persistence.jar" (runtime-name : "ejb-persistence.jar")
- [2018-05-06 06:24:39,353] Artifact ejb-persistence: Artifact is deployed successfully
- [2018-05-06 06:24:39,353] Artifact ejb-persistence: Deploy took 2.786 milliseconds
Add Comment
Please, Sign In to add comment