simonjenga/CompanyRestService

web application deployed successfully on WildFly 8.2.0.Final

Closed this issue · 1 comments

Calling "C:\wildfly-8.2.0.Final\bin\standalone.conf.bat"
Setting JAVA property to "C:\Program Files (x86)\Java\jdk1.7.0_80\bin\java"
===============================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: "C:\wildfly-8.2.0.Final"

  JAVA: "C:\Program Files (x86)\Java\jdk1.7.0_80\bin\java"

  JAVA_OPTS: "-client -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman"

===============================================================================

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
23:09:34,740 INFO  [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final
23:09:37,373 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
23:09:37,552 INFO  [org.jboss.as] (MSC service thread 1-7) JBAS015899: WildFly 8.2.0.Final "Tweek" starting
23:09:50,847 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
23:09:50,956 INFO  [org.xnio] (MSC service thread 1-6) XNIO version 3.3.0.Final
23:09:50,983 INFO  [org.xnio.nio] (MSC service thread 1-6) XNIO NIO Implementation Version 3.3.0.Final
23:09:51,044 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.
23:09:51,046 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 45) JBAS013171: Activating Security Subsystem
23:09:51,055 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 31) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors
23:09:51,065 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem
23:09:51,062 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 46) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.
23:09:51,110 INFO  [org.jboss.as.jsf] (ServerService Thread Pool -- 38) JBAS012615: Activated the following JSF Implementations: [main]
23:09:51,228 INFO  [org.jboss.as.security] (MSC service thread 1-4) JBAS013170: Current PicketBox version=4.0.21.Final
23:09:51,382 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
23:09:52,031 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017502: Undertow 1.1.0.Final starting
23:09:52,031 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017502: Undertow 1.1.0.Final starting
23:09:52,054 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.9.Final)
23:09:53,452 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017527: Creating file handler for path C:\wildfly-8.2.0.Final/welcome-content
23:09:53,700 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
23:09:53,704 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) JBAS010417: Started Driver service with driver-name = h2
23:09:54,409 INFO  [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: Starting Naming Service
23:09:54,411 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-5) JBAS015400: Bound mail session [java:jboss/mail/Default]
23:09:55,215 INFO  [org.jboss.remoting] (MSC service thread 1-6) JBoss Remoting version 4.0.6.Final
23:09:55,233 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017525: Started server default-server.
23:09:55,478 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017531: Host default-host starting
23:09:55,579 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017519: Undertow HTTP listener default listening on /127.0.0.1:8080
23:09:56,286 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory C:\wildfly-8.2.0.Final\standalone\deployments
23:09:56,290 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "CompanyRestService.war" (runtime-name: "CompanyRestService.war")
23:09:57,281 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
23:09:58,831 INFO  [org.jboss.ws.common.management] (MSC service thread 1-3) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.3.2.Final
23:10:13,259 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010403: Deploying JDBC-compliant driver class org.hsqldb.jdbc.JDBCDriver (version 2.3)
23:10:13,266 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
23:10:13,269 WARN  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016012: Deployment deployment "CompanyRestService.war" contains CDI annotations but no bean archive was found (no beans.xml or class with bean defining annotations).
23:10:13,399 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010417: Started Driver service with driver-name = CompanyRestService.war_org.hsqldb.jdbc.JDBCDriver_2_3
23:10:13,405 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) JBAS010417: Started Driver service with driver-name = CompanyRestService.war_com.mysql.jdbc.Driver_5_1
23:10:15,419 INFO  [io.undertow.servlet] (MSC service thread 1-1) 2 Spring WebApplicationInitializers detected on classpath
23:10:22,236 INFO  [io.undertow.servlet] (MSC service thread 1-1) Initializing Spring root WebApplicationContext
23:10:22,240 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-1) Root WebApplicationContext: initialization started
23:10:22,265 INFO  [org.springframework.web.context.support.AnnotationConfigWebApplicationContext] (MSC service thread 1-1) Refreshing Root WebApplicationContext: startup date [Wed Jan 10 23:10:22 EAT 2018]; root of context hierarchy
23:10:22,316 INFO  [org.springframework.web.context.support.AnnotationConfigWebApplicationContext] (MSC service thread 1-1) Registering annotated classes: [class com.company.restservice.configuration.CompanyServiceConfiguration]
23:10:22,920 INFO  [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (MSC service thread 1-1) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
23:10:23,131 INFO  [org.springframework.jdbc.datasource.DriverManagerDataSource] (MSC service thread 1-1) Loaded JDBC driver: com.mysql.jdbc.Driver
23:10:23,240 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-1) HCANN000001: Hibernate Commons Annotations {4.0.5.Final}
23:10:23,247 INFO  [org.hibernate.Version] (MSC service thread 1-1) HHH000412: Hibernate Core {4.3.2.Final}
23:10:23,252 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH000206: hibernate.properties not found
23:10:23,254 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH000021: Bytecode provider name : javassist
23:10:24,816 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-1) HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
23:10:24,969 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-1) HHH000399: Using default transaction strategy (direct JDBC transactions)
23:10:24,975 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-1) HHH000397: Using ASTQueryTranslatorFactory
23:10:25,044 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-1) HV000001: Hibernate Validator 5.1.3.Final
23:10:25,783 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-1) HHH000227: Running hbm2ddl schema export
23:10:25,805 INFO  [stdout] (MSC service thread 1-1) Hibernate:
23:10:25,809 INFO  [stdout] (MSC service thread 1-1)     alter table owner
23:10:25,809 INFO  [stdout] (MSC service thread 1-1)         drop
23:10:25,812 INFO  [stdout] (MSC service thread 1-1)         foreign key FK_spjhyjavyb2mhf2jx530j2aia
23:10:26,235 INFO  [stdout] (MSC service thread 1-1) Hibernate:
23:10:26,236 INFO  [stdout] (MSC service thread 1-1)     drop table if exists company
23:10:26,292 INFO  [stdout] (MSC service thread 1-1) Hibernate:
23:10:26,294 INFO  [stdout] (MSC service thread 1-1)     drop table if exists owner
23:10:26,330 INFO  [stdout] (MSC service thread 1-1) Hibernate:
23:10:26,331 INFO  [stdout] (MSC service thread 1-1)     drop table if exists id_gen
23:10:26,363 INFO  [stdout] (MSC service thread 1-1) Hibernate:
23:10:26,364 INFO  [stdout] (MSC service thread 1-1)     create table company (
23:10:26,365 INFO  [stdout] (MSC service thread 1-1)         id_company bigint not null,
23:10:26,367 INFO  [stdout] (MSC service thread 1-1)         address varchar(255) not null,
23:10:26,369 INFO  [stdout] (MSC service thread 1-1)         city varchar(255) not null,
23:10:26,371 INFO  [stdout] (MSC service thread 1-1)         country varchar(255) not null,
23:10:26,375 INFO  [stdout] (MSC service thread 1-1)         email varchar(255),
23:10:26,377 INFO  [stdout] (MSC service thread 1-1)         name varchar(255) not null,
23:10:26,379 INFO  [stdout] (MSC service thread 1-1)         phoneNumber varchar(255),
23:10:26,381 INFO  [stdout] (MSC service thread 1-1)         primary key (id_company)
23:10:26,383 INFO  [stdout] (MSC service thread 1-1)     ) ENGINE=InnoDB
23:10:26,417 INFO  [stdout] (MSC service thread 1-1) Hibernate:
23:10:26,417 INFO  [stdout] (MSC service thread 1-1)     create table owner (
23:10:26,418 INFO  [stdout] (MSC service thread 1-1)         id_owner bigint not null,
23:10:26,419 INFO  [stdout] (MSC service thread 1-1)         name varchar(255) not null,
23:10:26,421 INFO  [stdout] (MSC service thread 1-1)         id_company bigint not null,
23:10:26,424 INFO  [stdout] (MSC service thread 1-1)         primary key (id_owner)
23:10:26,426 INFO  [stdout] (MSC service thread 1-1)     ) ENGINE=InnoDB
23:10:26,437 INFO  [stdout] (MSC service thread 1-1) Hibernate:
23:10:26,438 INFO  [stdout] (MSC service thread 1-1)     alter table owner
23:10:26,439 INFO  [stdout] (MSC service thread 1-1)         add constraint FK_spjhyjavyb2mhf2jx530j2aia
23:10:26,441 INFO  [stdout] (MSC service thread 1-1)         foreign key (id_company)
23:10:26,443 INFO  [stdout] (MSC service thread 1-1)         references company (id_company)
23:10:26,496 INFO  [stdout] (MSC service thread 1-1) Hibernate:
23:10:26,497 INFO  [stdout] (MSC service thread 1-1)     create table id_gen (
23:10:26,498 INFO  [stdout] (MSC service thread 1-1)          gen_key varchar(255),
23:10:26,501 INFO  [stdout] (MSC service thread 1-1)          gen_value integer
23:10:26,503 INFO  [stdout] (MSC service thread 1-1)     ) ENGINE=InnoDB
23:10:26,513 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-1) HHH000230: Schema export complete
23:10:26,574 INFO  [org.springframework.orm.hibernate4.HibernateTransactionManager] (MSC service thread 1-1) Using DataSource [org.springframework.jdbc.datasource.DriverManagerDataSource@1bb5e9f] of Hibernate SessionFactory for HibernateTransactionManager
23:10:27,328 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (MSC service thread 1-1) Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
23:10:27,362 INFO  [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-1) Mapped "{[/companies],methods=[GET]}" onto public org.springframework.http.ResponseEntity<java.util.List<com.company.restservice.model.Company>> com.company.restservice.controller.CompanyController.getCompanyList()
23:10:27,364 INFO  [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-1) Mapped "{[/company],methods=[POST]}" onto public org.springframework.http.ResponseEntity<com.company.restservice.model.Company> com.company.restservice.controller.CompanyController.addCompany(com.company.restservice.model.Company)
23:10:27,366 INFO  [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-1) Mapped "{[/company/{companyId}],methods=[PUT]}" onto public org.springframework.http.ResponseEntity<com.company.restservice.model.Company> com.company.restservice.controller.CompanyController.updateCompany(java.lang.Long,com.company.restservice.model.Company)
23:10:27,368 INFO  [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-1) Mapped "{[/companyowner/{companyId}],methods=[PUT]}" onto public org.springframework.http.ResponseEntity<com.company.restservice.model.Company> com.company.restservice.controller.CompanyController.companyOwner(java.lang.Long,com.company.restservice.model.Owner)
23:10:27,370 INFO  [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-1) Mapped "{[/company/{companyId}],methods=[GET]}" onto public org.springframework.http.ResponseEntity<com.company.restservice.model.Company> com.company.restservice.controller.CompanyController.getCompany(java.lang.Long)
23:10:27,372 INFO  [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-1) Mapped "{[/homePage.htm],methods=[GET]}" onto public java.lang.String com.company.restservice.controller.HomePageController.getHomePage()
23:10:27,388 INFO  [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (MSC service thread 1-1) Mapped URL path [/static/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
23:10:27,419 INFO  [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter] (MSC service thread 1-1) Looking for @ControllerAdvice: Root WebApplicationContext: startup date [Wed Jan 10 23:10:22 EAT 2018]; root of context hierarchy
23:10:27,661 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-1) Root WebApplicationContext: initialization completed in 5420 ms
23:10:28,209 INFO  [io.undertow.servlet] (MSC service thread 1-1) Initializing Spring FrameworkServlet 'dispatcher'
23:10:28,210 INFO  [org.springframework.web.servlet.DispatcherServlet] (MSC service thread 1-1) FrameworkServlet 'dispatcher': initialization started
23:10:28,213 INFO  [org.springframework.web.context.support.AnnotationConfigWebApplicationContext] (MSC service thread 1-1) Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Wed Jan 10 23:10:28 2018]; parent: Root WebApplicationContext
23:10:28,215 INFO  [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (MSC service thread 1-1) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
23:10:28,240 INFO  [org.springframework.web.servlet.DispatcherServlet] (MSC service thread 1-1) FrameworkServlet 'dispatcher': initialization completed in 29 ms
23:10:28,241 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) JBAS017534: Registered web context: /CompanyRestService
23:10:28,302 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "CompanyRestService.war" (runtime-name : "CompanyRestService.war")
23:10:28,426 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
23:10:28,428 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
23:10:28,429 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.0.Final "Tweek" started in 56635ms - Started 1115 of 1170 services (92 services are lazy, passive or on-demand)

Manual deployment successful on WildFly 8.2.0.Final. This task should somehow be automated using plugins in the Maven build file (pom.xml)