Deployment Spring MVC application in JBOSS 7.1.1 - spring

I'm stuck for days in how to deploy my web application on server JBOSS 7.1.1. I already tried a lot of things but so far I didn't have any success.
In Jetty or Tomcat Server my application is running normally, but when I try with JBoss or Deploy in OpenShift, it doesn't work and there is no error messages on the log.
This is my Log:
11:24:48,705 INFORMAÇÕES [org.jboss.modules] JBoss Modules version 1.1.1.GA
11:24:48,939 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
11:24:48,994 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
11:24:49,797 INFO [org.xnio] XNIO Version 3.0.3.GA
11:24:49,797 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
11:24:49,807 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
11:24:49,813 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
11:24:49,836 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
11:24:49,843 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
11:24:49,845 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
11:24:49,898 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
11:24:49,926 INFO [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: Starting Naming Service
11:24:49,933 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
11:24:49,933 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
11:24:49,939 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
11:24:49,943 INFO [org.jboss.as.security] (MSC service thread 1-6) JBAS013100: Current PicketBox version=4.0.7.Final
11:24:49,967 INFO [org.jboss.as.mail.extension] (MSC service thread 1-5) JBAS015400: Bound mail session [java:jboss/mail/Default]
11:24:50,037 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
11:24:50,045 INFO [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
11:24:50,172 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-6) JBoss Web Services - Stack CXF Server 4.0.2.GA
11:24:50,460 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-8) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080
11:24:50,647 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on localhost/127.0.0.1:4447
11:24:50,648 INFO [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on localhost/127.0.0.1:9999
11:24:50,656 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory C:\eclipse\servers\jboss-as-7.1.1.Final\standalone\deployments
11:24:50,692 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found eatpiz.war in deployment directory. To trigger deployment create a file called eatpiz.war.dodeploy
11:24:50,791 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
11:24:50,816 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "eatpiz.war"
11:24:53,538 WARN [org.jboss.as.ee] (MSC service thread 1-6) JBAS011006: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.springframework.web.context.request.async.StandardServletAsyncWebRequest
at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
11:24:53,553 WARN [org.jboss.as.ee] (MSC service thread 1-6) JBAS011006: Not installing optional component org.springframework.http.server.ServletServerHttpAsyncRequestControl due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.springframework.http.server.ServletServerHttpAsyncRequestControl
at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
11:24:53,783 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
11:24:53,786 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.fabric.jdbc.FabricMySQLDriver (version 5.1)
11:24:53,890 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/eatpiz]] (MSC service thread 1-2) Spring WebApplicationInitializers detected on classpath: [br.com.maven.pizzaria.Aplicacao#55077118, br.com.maven.pizzaria.SegurancaAplicacao#5b920a44]
11:24:54,076 INFORMAÇÕES [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-2) Inicializando Mojarra 2.1.7-jbossorg-1 (20120227-1401) para o contexto '/eatpiz'
11:24:55,739 INFO [org.hibernate.validator.util.Version] (MSC service thread 1-2) Hibernate Validator 4.2.0.Final
11:24:56,585 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/eatpiz]] (MSC service thread 1-2) Initializing Spring root WebApplicationContext
11:24:56,587 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization started
11:24:56,590 INFO [org.springframework.web.context.support.AnnotationConfigWebApplicationContext] (MSC service thread 1-2) Refreshing Root WebApplicationContext: startup date [Tue Mar 08 11:24:56 BRT 2016]; root of context hierarchy
11:24:56,724 INFO [org.springframework.web.context.support.AnnotationConfigWebApplicationContext] (MSC service thread 1-2) Found 8 annotated classes in package [br.com.maven.pizzaria.configuracoes]
11:24:57,392 INFO [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (MSC service thread 1-2) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
11:24:57,585 INFO [com.mchange.v2.log.MLog] (MSC service thread 1-2) MLog clients using log4j logging.
11:24:57,615 INFO [com.mchange.v2.c3p0.C3P0Registry] (MSC service thread 1-2) Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]
11:24:57,705 INFO [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (MSC service thread 1-2) Building JPA container EntityManagerFactory for persistence unit 'default'
11:24:57,713 INFO [org.hibernate.jpa.internal.util.LogHelper] (MSC service thread 1-2) HHH000204: Processing PersistenceUnitInfo [
name: default
...]
11:24:57,774 INFO [org.hibernate.Version] (MSC service thread 1-2) HHH000412: Hibernate Core {4.3.7.Final}
11:24:57,776 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-2) HHH000206: hibernate.properties not found
11:24:57,778 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-2) HHH000021: Bytecode provider name : javassist
11:24:57,902 INFO [org.hibernate.annotations.common.Version] (MSC service thread 1-2) HCANN000001: Hibernate Commons Annotations {4.0.5.Final}
11:24:57,977 INFO [com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource] (MSC service thread 1-2) Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hgfdvm9fo16s5ksw6rqp|77e46a1b, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hgfdvm9fo16s5ksw6rqp|77e46a1b, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost:3306/pizzaria, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
11:24:58,263 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-2) HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
11:24:58,269 INFO [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-2) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
11:24:58,453 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-2) HHH000397: Using ASTQueryTranslatorFactory
11:24:58,877 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-2) HHH000227: Running hbm2ddl schema export
11:25:01,957 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-2) HHH000230: Schema export complete
11:25:02,518 WARN [org.hibernate.hql.internal.ast.HqlSqlWalker] (MSC service thread 1-2) [DEPRECATION] Encountered positional parameter near line 1, column 107. Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
11:25:02,540 WARN [org.hibernate.hql.internal.ast.HqlSqlWalker] (MSC service thread 1-2) [DEPRECATION] Encountered positional parameter near line 1, column 89. Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
11:25:03,083 INFO [org.springframework.security.web.DefaultSecurityFilterChain] (MSC service thread 1-2) Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher#1, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter#19bee2be, org.springframework.security.web.context.SecurityContextPersistenceFilter#32724d8d, org.springframework.security.web.header.HeaderWriterFilter#6b8685a8, org.springframework.security.web.csrf.CsrfFilter#3dc3b2aa, org.springframework.security.web.authentication.logout.LogoutFilter#4a751562, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#4025b207, org.springframework.security.web.savedrequest.RequestCacheAwareFilter#377ab3, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter#7182f76f, org.springframework.security.web.authentication.AnonymousAuthenticationFilter#43183526, org.springframework.security.web.session.SessionManagementFilter#336ed891, org.springframework.security.web.access.ExceptionTranslationFilter#499ab329, org.springframework.security.web.access.intercept.FilterSecurityInterceptor#2bf883ca]
11:25:03,131 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/clientes],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.ClienteController.index(org.springframework.ui.Model)
11:25:03,133 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/clientes/pizza/{nomePizza}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.ClienteController.index(java.lang.String,org.springframework.ui.Model)
11:25:03,135 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/contatos/email/{id}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public br.com.maven.pizzaria.modelo.entidades.Email br.com.maven.pizzaria.configuracoes.controladores.ContatoController.buscarEmail(java.lang.Long)
11:25:03,136 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/contatos/email],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.ContatoController.salvarEmail(br.com.maven.pizzaria.modelo.entidades.Email,org.springframework.validation.BindingResult,org.springframework.ui.Model)
11:25:03,139 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/contatos/email/{id}],methods=[DELETE],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.http.ResponseEntity<java.lang.String> br.com.maven.pizzaria.configuracoes.controladores.ContatoController.deletarEmail(java.lang.Long)
11:25:03,141 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/contatos/telefone/{id}],methods=[DELETE],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.http.ResponseEntity<java.lang.String> br.com.maven.pizzaria.configuracoes.controladores.ContatoController.deletarTelefone(java.lang.Long)
11:25:03,143 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/contatos/telefone],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.ContatoController.salvarTelefone(br.com.maven.pizzaria.modelo.entidades.Telefone,org.springframework.validation.BindingResult,org.springframework.ui.Model)
11:25:03,144 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/contatos/telefone/{id}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public br.com.maven.pizzaria.modelo.entidades.Telefone br.com.maven.pizzaria.configuracoes.controladores.ContatoController.buscarTelefone(java.lang.Long)
11:25:03,146 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/contatos],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.ContatoController.listarContatos(org.springframework.ui.Model)
11:25:03,150 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/ingredientes],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.IngredienteController.salvarIngrediente(br.com.maven.pizzaria.modelo.entidades.Ingrediente,org.springframework.validation.BindingResult,org.springframework.ui.Model)
11:25:03,152 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/ingredientes/{id}],methods=[DELETE],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.http.ResponseEntity<java.lang.String> br.com.maven.pizzaria.configuracoes.controladores.IngredienteController.deletarIngrediente(java.lang.Long)
11:25:03,153 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/ingredientes],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.IngredienteController.listarIngredientes(org.springframework.ui.Model)
11:25:03,154 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/ingredientes/{id}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public br.com.maven.pizzaria.modelo.entidades.Ingrediente br.com.maven.pizzaria.configuracoes.controladores.IngredienteController.buscarIndregiente(java.lang.Long)
11:25:03,156 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/pizzas/{pizzaId}],methods=[DELETE],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.http.ResponseEntity<java.lang.String> br.com.maven.pizzaria.configuracoes.controladores.PizzaController.deletarPizza(java.lang.Long)
11:25:03,157 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/pizzas],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.PizzaController.listarPizzas(org.springframework.ui.Model)
11:25:03,158 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/pizzas],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.PizzaController.salvarPizza(org.springframework.ui.Model,br.com.maven.pizzaria.modelo.entidades.Pizza,org.springframework.validation.BindingResult)
11:25:03,159 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/pizzas/{pizzaId}],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.http.ResponseEntity<br.com.maven.pizzaria.modelo.entidades.Pizza> br.com.maven.pizzaria.configuracoes.controladores.PizzaController.buscarPizza(java.lang.Long)
11:25:03,161 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/home],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.PizzariaController.homePizzaria(org.springframework.ui.Model)
11:25:03,162 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/cadastrar],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.PizzariaController.showFormCadastrar(org.springframework.ui.Model)
11:25:03,163 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/editar],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.PizzariaController.editarPizzaria(br.com.maven.pizzaria.modelo.entidades.Pizzaria,org.springframework.validation.BindingResult,org.springframework.web.servlet.mvc.support.RedirectAttributes)
11:25:03,164 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/cadastrar],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.PizzariaController.salvarPizzaria(br.com.maven.pizzaria.modelo.entidades.Pizzaria,org.springframework.validation.BindingResult,org.springframework.web.servlet.mvc.support.RedirectAttributes)
11:25:03,165 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-2) Mapped "{[/pizzarias/editar],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String br.com.maven.pizzaria.configuracoes.controladores.PizzariaController.showFormEditar(org.springframework.ui.Model)
11:25:03,177 INFO [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (MSC service thread 1-2) Mapped URL path [/clientes] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
11:25:03,178 INFO [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (MSC service thread 1-2) Mapped URL path [/pizzarias/login] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
11:25:03,178 INFO [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (MSC service thread 1-2) Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
11:25:03,192 INFO [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (MSC service thread 1-2) Mapped URL path [/static/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
11:25:03,338 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter] (MSC service thread 1-2) Looking for #ControllerAdvice: Root WebApplicationContext: startup date [Tue Mar 08 11:24:56 BRT 2016]; root of context hierarchy
11:25:03,386 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization completed in 6799 ms
11:25:03,389 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/eatpiz]] (MSC service thread 1-2) Initializing Spring FrameworkServlet 'appServlet'
11:25:03,390 INFO [org.springframework.web.servlet.DispatcherServlet] (MSC service thread 1-2) FrameworkServlet 'appServlet': initialization started
11:25:03,403 INFO [org.springframework.web.servlet.DispatcherServlet] (MSC service thread 1-2) FrameworkServlet 'appServlet': initialization completed in 13 ms
11:25:03,413 INFO [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /eatpiz
11:25:03,420 INFO [org.jboss.as] (MSC service thread 1-5) JBAS015951: Admin console listening on http://127.0.0.1:9990
11:25:03,421 INFO [org.jboss.as] (MSC service thread 1-5) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 15031ms - Started 382 of 459 services (76 services are passive or on-demand)
11:25:03,504 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "eatpiz.war"
When I try to access my initial page (localhost:8080/eatpiz/), I receive a 404 Not Found error.

Related

How to connect to Port 8080 wildfly on Windows server 2012?

i want to connect to port 8080 from a wildfly.
This wilfly is on my windows server 2012.
I can connect to the ISS (80 Port).
I also made rules on the firewall for 8080, but it doesn't work?
Somebody knows how to fix it ? Or what did I forgot?
cheers Ciao
2017-12-19 16:47:47,904 INFO [org.jboss.modules] (main) JBoss Modules version 1.6.1.Final
2017-12-19 16:47:54,842 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.7.SP1
2017-12-19 16:47:55,688 INFO [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: Keycloak 3.4.1.Final (WildFly Core 3.0.8.Final) starting
2017-12-19 16:47:55,695 DEBUG [org.jboss.as.config] (MSC service thread 1-1) Configured system properties:
awt.toolkit = sun.awt.windows.WToolkit
file.encoding = Cp1252
file.encoding.pkg = sun.io
file.separator = \
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\jboss-modules.jar
java.class.version = 52.0
java.endorsed.dirs = C:\Program Files (x86)\Java\jre1.8.0_151\lib\endorsed
java.ext.dirs = C:\Program Files (x86)\Java\jre1.8.0_151\lib\ext;C:\Windows\Sun\Java\lib\ext
java.home = C:\Program Files (x86)\Java\jre1.8.0_151
java.io.tmpdir = C:\Users\ADMINI~1\AppData\Local\Temp\2\
java.library.path = C:\Program Files (x86)\Java\jre1.8.0_151\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;;.
java.net.preferIPv4Stack = true
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.8.0_151-b12
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.8
java.util.logging.manager = org.jboss.logmanager.LogManager
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
java.version = 1.8.0_151
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) Client VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.8
java.vm.vendor = Oracle Corporation
java.vm.version = 25.151-b12
javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder
javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory
javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory
javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory
javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory
javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory
javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory
javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory
javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory
javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory
jboss.home.dir = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final
jboss.host.name = win-3n1he53opph
jboss.modules.dir = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\modules
jboss.modules.system.pkgs = org.jboss.byteman
jboss.node.name = win-3n1he53opph
jboss.qualified.host.name = win-3n1he53opph
jboss.server.base.dir = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\standalone
jboss.server.config.dir = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\standalone\configuration
jboss.server.data.dir = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\standalone\data
jboss.server.deploy.dir = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\standalone\data\content
jboss.server.log.dir = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\standalone\log
jboss.server.name = win-3n1he53opph
jboss.server.persist.config = true
jboss.server.temp.dir = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\standalone\tmp
line.separator =
logging.configuration = file:C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\standalone\configuration/logging.properties
module.path = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\modules
org.jboss.boot.log.file = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\standalone\log\server.log
org.jboss.resolver.warning = true
org.xml.sax.driver = __redirected.__XMLReaderFactory
os.arch = x86
os.name = Windows Server 2016
os.version = 10.0
path.separator = ;
program.name = standalone.bat
sun.arch.data.model = 32
sun.boot.class.path = C:\Program Files (x86)\Java\jre1.8.0_151\lib\resources.jar;C:\Program Files (x86)\Java\jre1.8.0_151\lib\rt.jar;C:\Program Files (x86)\Java\jre1.8.0_151\lib\sunrsasign.jar;C:\Program Files (x86)\Java\jre1.8.0_151\lib\jsse.jar;C:\Program Files (x86)\Java\jre1.8.0_151\lib\jce.jar;C:\Program Files (x86)\Java\jre1.8.0_151\lib\charsets.jar;C:\Program Files (x86)\Java\jre1.8.0_151\lib\jfr.jar;C:\Program Files (x86)\Java\jre1.8.0_151\classes
sun.boot.library.path = C:\Program Files (x86)\Java\jre1.8.0_151\bin
sun.cpu.endian = little
sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop = windows
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\jboss-modules.jar -mp C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\modules org.jboss.as.standalone -Djboss.home.dir=C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = Cp1252
sun.management.compiler = HotSpot Client Compiler
sun.os.patch.level =
sun.stderr.encoding = cp850
sun.stdout.encoding = cp850
user.country = US
user.country.format = CH
user.dir = C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\bin
user.home = C:\Users\Administrator
user.language = en
user.language.format = fr
user.name = Administrator
user.script =
user.timezone = Europe/Berlin
user.variant =
2017-12-19 16:47:55,696 DEBUG [org.jboss.as.config] (MSC service thread 1-1) VM Arguments: -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Dorg.jboss.boot.log.file=C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\standalone\log\server.log -Dlogging.configuration=file:C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\standalone\configuration/logging.properties
2017-12-19 16:48:10,596 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 future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
2017-12-19 16:48:10,643 INFO [org.jboss.as.controller.management-deprecated] (ServerService Thread Pool -- 5) WFLYCTL0028: Attribute 'security-realm' in the resource at address '/subsystem=undertow/server=default-server/https-listener=https' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
2017-12-19 16:48:10,659 INFO [org.wildfly.security] (ServerService Thread Pool -- 19) ELY00001: WildFly Elytron version 1.1.6.Final
2017-12-19 16:48:10,878 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http)
2017-12-19 16:48:10,925 INFO [org.xnio] (MSC service thread 1-2) XNIO version 3.5.4.Final
2017-12-19 16:48:11,034 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 43) 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.
2017-12-19 16:48:11,081 INFO [org.jboss.as.security] (ServerService Thread Pool -- 42) WFLYSEC0002: Activating Security Subsystem
2017-12-19 16:48:11,159 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 37) WFLYNAM0001: Activating Naming Subsystem
2017-12-19 16:48:11,175 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) WFLYCLINF0001: Activating Infinispan subsystem.
2017-12-19 16:48:11,190 INFO [org.jboss.as.jaxrs] (ServerService Thread Pool -- 32) WFLYRS0016: RESTEasy version 3.0.24.Final
2017-12-19 16:48:10,972 INFO [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.5.4.Final
2017-12-19 16:48:11,690 INFO [org.jboss.as.connector] (MSC service thread 1-1) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.4.6.Final)
2017-12-19 16:48:11,902 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 26) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
2017-12-19 16:48:12,246 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 30) WFLYIO001: Worker 'default' has auto-configured to 2 core threads with 16 task threads based on your 1 available processors
2017-12-19 16:48:12,980 INFO [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 5.0.5.Final
2017-12-19 16:48:13,308 INFO [org.jboss.as.security] (MSC service thread 1-1) WFLYSEC0001: Current PicketBox version=5.0.2.Final
2017-12-19 16:48:13,761 INFO [org.jboss.as.naming] (MSC service thread 1-2) WFLYNAM0003: Starting Naming Service
2017-12-19 16:48:13,925 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0003: Undertow 1.4.18.Final starting
2017-12-19 16:48:13,925 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0018: Started Driver service with driver-name = h2
2017-12-19 16:48:13,941 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 44) WFLYUT0014: Creating file handler for path 'C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]']
2017-12-19 16:48:13,972 INFO [org.jboss.as.mail.extension] (MSC service thread 1-2) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default]
2017-12-19 16:48:13,988 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 16 (per class), which is derived from thread worker pool sizing.
2017-12-19 16:48:14,004 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 4 (per class), which is derived from the number of CPUs on this host.
2017-12-19 16:48:15,113 INFO [org.jboss.as.patching] (MSC service thread 1-1) WFLYPAT0050: Keycloak cumulative patch ID is: base, one-off patches include: none
2017-12-19 16:48:15,160 WARN [org.jboss.as.domain.management.security] (MSC service thread 1-2) WFLYDM0111: Keystore C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\standalone\configuration\application.keystore not found, it will be auto generated on first use with a self signed certificate for host localhost
2017-12-19 16:48:15,175 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0012: Started server default-server.
2017-12-19 16:48:15,175 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) WFLYDS0013: Started FileSystemDeploymentService for directory C:\Users\Administrator\Downloads\keycloak-3.4.1.Final\keycloak-3.4.1.Final\standalone\deployments
2017-12-19 16:48:15,269 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "keycloak-server.war" (runtime-name: "keycloak-server.war")
2017-12-19 16:48:15,332 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0018: Host default-host starting
2017-12-19 16:48:15,519 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080
2017-12-19 16:48:15,956 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) WFLYEJB0493: EJB subsystem suspension complete
2017-12-19 16:48:16,222 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0006: Undertow HTTPS listener https listening on 127.0.0.1:8443
2017-12-19 16:48:16,503 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0001: Bound data source [java:jboss/datasources/KeycloakDS]
2017-12-19 16:48:16,519 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
2017-12-19 16:48:18,899 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-1) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.8.Final
2017-12-19 16:48:20,122 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 57) WFLYCLINF0002: Started client-mappings cache from ejb container
2017-12-19 16:48:20,169 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 48) WFLYCLINF0002: Started sessions cache from keycloak container
2017-12-19 16:48:20,169 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 56) WFLYCLINF0002: Started realms cache from keycloak container
2017-12-19 16:48:20,185 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 55) WFLYCLINF0002: Started authorization cache from keycloak container
2017-12-19 16:48:20,185 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 54) WFLYCLINF0002: Started offlineClientSessions cache from keycloak container
2017-12-19 16:48:20,185 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 52) WFLYCLINF0002: Started offlineSessions cache from keycloak container
2017-12-19 16:48:20,185 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 50) WFLYCLINF0002: Started actionTokens cache from keycloak container
2017-12-19 16:48:20,200 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 51) WFLYCLINF0002: Started keys cache from keycloak container
2017-12-19 16:48:20,200 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 46) WFLYCLINF0002: Started work cache from keycloak container
2017-12-19 16:48:20,200 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 49) WFLYCLINF0002: Started loginFailures cache from keycloak container
2017-12-19 16:48:20,325 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 58) WFLYCLINF0002: Started authenticationSessions cache from keycloak container
2017-12-19 16:48:20,325 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 53) WFLYCLINF0002: Started users cache from keycloak container
2017-12-19 16:48:20,325 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 47) WFLYCLINF0002: Started clientSessions cache from keycloak container
2017-12-19 16:48:23,258 INFO [org.keycloak.services] (ServerService Thread Pool -- 55) KC-SERVICES0001: Loading config from standalone.xml or domain.xml
2017-12-19 16:48:25,934 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 55) WFLYCLINF0002: Started realmRevisions cache from keycloak container
2017-12-19 16:48:25,950 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 55) WFLYCLINF0002: Started userRevisions cache from keycloak container
2017-12-19 16:48:25,997 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 55) WFLYCLINF0002: Started authorizationRevisions cache from keycloak container
2017-12-19 16:48:25,997 INFO [org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory] (ServerService Thread Pool -- 55) Node name: win-3n1he53opph, Site name: null
2017-12-19 16:48:30,438 INFO [org.keycloak.connections.jpa.updater.liquibase.LiquibaseJpaUpdaterProvider] (ServerService Thread Pool -- 55) Initializing database schema. Using changelog META-INF/jpa-changelog-master.xml
2017-12-19 16:48:32,696 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 55) HHH000204: Processing PersistenceUnitInfo [
name: keycloak-default
...]
2017-12-19 16:48:32,913 INFO [org.hibernate.Version] (ServerService Thread Pool -- 55) HHH000412: Hibernate Core {5.1.10.Final}
2017-12-19 16:48:32,921 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 55) HHH000206: hibernate.properties not found
2017-12-19 16:48:32,931 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 55) HHH000021: Bytecode provider name : javassist
2017-12-19 16:48:33,068 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 55) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2017-12-19 16:48:33,522 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 55) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2017-12-19 16:48:33,556 WARN [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 55) HHH000431: Unable to determine H2 database version, certain features may not work
2017-12-19 16:48:33,686 INFO [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 55) Envers integration enabled? : true
2017-12-19 16:48:35,004 INFO [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool --
This is the standalon print from the wilfly.
Does this help more ? I don't know how i can connect...
FULL Log : https://plnkr.co/UybtGtz1XMTeW5774mS9
fail on browser
By event log Undertow listen on 127.0.0.1:8080, which is local interface.
Try to use following to start wildfly listening on all network interfaces:
bin/standalone.sh -b=0.0.0.0
If it will not work, it will be firewall configuration problem.
Parameter above affects public ports only. To open management too use:
bin/standalone.sh -b=0.0.0.0 -bmanagement=0.0.0.0
Check following blogpost for more info: Bind WildFly to a different IP address, or all addresses on multihomed

Spring boot deploy on wildfly many logs when start application

When i just deploy my application on wildfly 8.2 everything is ok but there is many logs and application starts very slowly.
this is my spring boot pom configuration :
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.2.2.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencyManagement>
And my logs for example but it is only small part of that logs :
23:24:23,734 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.734] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/spring.jmx.server]
23:24:23,734 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.734] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/spring.jmx.server] not found - trying original name [spring.jmx.server]. javax.naming.NameNotFoundException: env/spring.jmx.server -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env."spring.jmx.server"
23:24:23,734 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.734] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [spring.jmx.server]
23:24:23,734 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.734] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [spring.jmx.server] threw NamingException with message: spring.jmx.server -- service jboss.naming.context.java."spring.jmx.server". Returning null.
23:24:23,734 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.734] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/spring.jmx.SERVER]
23:24:23,734 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.734] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/spring.jmx.SERVER] not found - trying original name [spring.jmx.SERVER]. javax.naming.NameNotFoundException: env/spring.jmx.SERVER -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env."spring.jmx.SERVER"
23:24:23,734 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.734] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [spring.jmx.SERVER]
23:24:23,735 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.735] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [spring.jmx.SERVER] threw NamingException with message: spring.jmx.SERVER -- service jboss.naming.context.java."spring.jmx.SERVER". Returning null.
23:24:23,751 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.751] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/spring_jmx_server]
23:24:23,751 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.751] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/spring_jmx_server] not found - trying original name [spring_jmx_server]. javax.naming.NameNotFoundException: env/spring_jmx_server -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env.spring_jmx_server
23:24:23,752 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.752] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [spring_jmx_server]
23:24:23,752 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.752] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [spring_jmx_server] threw NamingException with message: spring_jmx_server -- service jboss.naming.context.java.spring_jmx_server. Returning null.
23:24:23,752 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.752] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/spring_jmx_SERVER]
23:24:23,752 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.752] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/spring_jmx_SERVER] not found - trying original name [spring_jmx_SERVER]. javax.naming.NameNotFoundException: env/spring_jmx_SERVER -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env.spring_jmx_SERVER
23:24:23,752 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.752] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [spring_jmx_SERVER]
23:24:23,752 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.752] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [spring_jmx_SERVER] threw NamingException with message: spring_jmx_SERVER -- service jboss.naming.context.java.spring_jmx_SERVER. Returning null.
23:24:23,752 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.752] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/springJmx.server]
23:24:23,752 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.752] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/springJmx.server] not found - trying original name [springJmx.server]. javax.naming.NameNotFoundException: env/springJmx.server -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env."springJmx.server"
23:24:23,752 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.752] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [springJmx.server]
23:24:23,753 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.753] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [springJmx.server] threw NamingException with message: springJmx.server -- service jboss.naming.context.java."springJmx.server". Returning null.
23:24:23,754 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.754] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/springJmx.SERVER]
23:24:23,754 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.754] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/springJmx.SERVER] not found - trying original name [springJmx.SERVER]. javax.naming.NameNotFoundException: env/springJmx.SERVER -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env."springJmx.SERVER"
23:24:23,754 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.754] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [springJmx.SERVER]
23:24:23,755 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.754] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [springJmx.SERVER] threw NamingException with message: springJmx.SERVER -- service jboss.naming.context.java."springJmx.SERVER". Returning null.
23:24:23,755 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.755] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/springjmx.server]
23:24:23,755 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.755] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/springjmx.server] not found - trying original name [springjmx.server]. javax.naming.NameNotFoundException: env/springjmx.server -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env."springjmx.server"
23:24:23,755 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.755] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [springjmx.server]
23:24:23,755 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.755] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [springjmx.server] threw NamingException with message: springjmx.server -- service jboss.naming.context.java."springjmx.server". Returning null.
23:24:23,755 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.755] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/springjmx.SERVER]
23:24:23,755 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.755] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/springjmx.SERVER] not found - trying original name [springjmx.SERVER]. javax.naming.NameNotFoundException: env/springjmx.SERVER -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env."springjmx.SERVER"
23:24:23,755 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.755] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [springjmx.SERVER]
23:24:23,755 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.755] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [springjmx.SERVER] threw NamingException with message: springjmx.SERVER -- service jboss.naming.context.java."springjmx.SERVER". Returning null.
23:24:23,756 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.756] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/SPRING.JMX.server]
23:24:23,756 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.756] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/SPRING.JMX.server] not found - trying original name [SPRING.JMX.server]. javax.naming.NameNotFoundException: env/SPRING.JMX.server -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env."SPRING.JMX.server"
23:24:23,756 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.756] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [SPRING.JMX.server]
23:24:23,756 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.756] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [SPRING.JMX.server] threw NamingException with message: SPRING.JMX.server -- service jboss.naming.context.java."SPRING.JMX.server". Returning null.
23:24:23,756 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.756] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/SPRING.JMX.SERVER]
23:24:23,756 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.756] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/SPRING.JMX.SERVER] not found - trying original name [SPRING.JMX.SERVER]. javax.naming.NameNotFoundException: env/SPRING.JMX.SERVER -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env."SPRING.JMX.SERVER"
23:24:23,756 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.756] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [SPRING.JMX.SERVER]
23:24:23,756 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.756] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [SPRING.JMX.SERVER] threw NamingException with message: SPRING.JMX.SERVER -- service jboss.naming.context.java."SPRING.JMX.SERVER". Returning null.
23:24:23,757 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.756] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/SPRING_JMX_server]
23:24:23,757 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.757] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/SPRING_JMX_server] not found - trying original name [SPRING_JMX_server]. javax.naming.NameNotFoundException: env/SPRING_JMX_server -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env.SPRING_JMX_server
23:24:23,757 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.757] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [SPRING_JMX_server]
23:24:23,757 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.757] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [SPRING_JMX_server] threw NamingException with message: SPRING_JMX_server -- service jboss.naming.context.java.SPRING_JMX_server. Returning null.
23:24:23,757 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.757] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/SPRING_JMX_SERVER]
23:24:23,757 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.757] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/SPRING_JMX_SERVER] not found - trying original name [SPRING_JMX_SERVER]. javax.naming.NameNotFoundException: env/SPRING_JMX_SERVER -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env.SPRING_JMX_SERVER
23:24:23,757 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.757] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [SPRING_JMX_SERVER]
23:24:23,757 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.757] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [SPRING_JMX_SERVER] threw NamingException with message: SPRING_JMX_SERVER -- service jboss.naming.context.java.SPRING_JMX_SERVER. Returning null.
23:24:23,757 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.757] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/SPRINGJMX.server]
23:24:23,785 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.784] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/SPRINGJMX.server] not found - trying original name [SPRINGJMX.server]. javax.naming.NameNotFoundException: env/SPRINGJMX.server -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env."SPRINGJMX.server"
23:24:23,785 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.785] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [SPRINGJMX.server]
23:24:23,785 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.785] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [SPRINGJMX.server] threw NamingException with message: SPRINGJMX.server -- service jboss.naming.context.java."SPRINGJMX.server". Returning null.
23:24:23,785 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.785] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [java:comp/env/SPRINGJMX.SERVER]
23:24:23,785 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.785] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiLocatorDelegate: Converted JNDI name [java:comp/env/SPRINGJMX.SERVER] not found - trying original name [SPRINGJMX.SERVER]. javax.naming.NameNotFoundException: env/SPRINGJMX.SERVER -- service jboss.naming.context.java.module.seiton-homepage-ear.seiton-homepage-rest.env."SPRINGJMX.SERVER"
23:24:23,785 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.785] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiTemplate: Looking up JNDI object with name [SPRINGJMX.SERVER]
23:24:23,785 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.785] boot - 27644 DEBUG [MSC service thread 1-16] --- JndiPropertySource: JNDI lookup for name [SPRINGJMX.SERVER] threw NamingException with message: SPRINGJMX.SERVER -- service jboss.naming.context.java."SPRINGJMX.SERVER". Returning null.
23:24:23,785 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.785] boot - 27644 DEBUG [MSC service thread 1-16] --- DefaultListableBeanFactory: Creating shared instance of singleton bean 'mbeanServer'
23:24:23,786 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.785] boot - 27644 DEBUG [MSC service thread 1-16] --- DefaultListableBeanFactory: Creating instance of bean 'mbeanServer'
23:24:23,786 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.786] boot - 27644 DEBUG [MSC service thread 1-16] --- DefaultListableBeanFactory: Returning cached instance of singleton bean 'org.springframework.boot.autoconfigure.jmx.JmxAutoConfiguration'
23:24:23,788 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.788] boot - 27644 DEBUG [MSC service thread 1-16] --- JmxUtils: Found MBeanServer: org.jboss.as.jmx.PluggableMBeanServerImpl#2222f2e4
23:24:23,789 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.789] boot - 27644 DEBUG [MSC service thread 1-16] --- DefaultListableBeanFactory: Eagerly caching bean 'mbeanServer' to allow for resolving potential circular references
23:24:23,789 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.789] boot - 27644 DEBUG [MSC service thread 1-16] --- CachedIntrospectionResults: Not strongly caching class [org.jboss.as.jmx.PluggableMBeanServerImpl] because it is not cache-safe
23:24:23,790 INFO [stdout] (MSC service thread 1-16) [2015-03-12 23:24:23.790] boot - 27644 DEBUG [MSC service thread 1-16] --- DefaultListableBeanFactory: Finished creating instance of bean 'mbeanServer'
23:24:23,791 INFO [stdout] (MSC service thread 1-16) [2015-03-12
Separate the Embedded Tomcat Server From the Spring Boot App
First of all, open the pom.xml and add the Tomcat dependency. Next, you can change the scope to the provided. When we make the scope as provided that means this dependency will be available during compile time only and will not be available at run-time. This is because we need this dependency in compile time to compile the web-component-related files.
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<!-- Make sure that you changed the packaging to war -->
<packaging>war</packaging>
Then, extend the SpringBootServletInitializer class in your Spring Boot main class and override the configure method. We need to do this to initialize the application in any other servlet container like JBoss.
You can see the code below that extends the SpringBootServletInitializer and overrides the configure method.
#SpringBootApplication
#EnableSwagger2
public class SpringBootDemoApplication extends SpringBootServletInitializer {
#Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder){
return builder.sources(SpringBootDemoApplication.class);
}
public static void main(String[] args){
SpringApplication.run(SpringBootDemoApplication.class, args);
}
}
With this configuration, the application is ready to deploy to any external application server.
Once this is done, you can package your Spring Boot application as a war and deploy it to the JBoss server. To do that, you need to run mvn clean package, which will generate the war file.

DataNucleus auto create table

I have maven multi-module project with Spring 4, DataNucleus 4, and Postgres 9 on JBoss Wildfly.
I want configure their for work together.
But now DataNucleus do not auto create table on databases.
Here my pom of "persistance" maven module :
<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">
<parent>
<artifactId>somem</artifactId>
<groupId>somem</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>persistence</artifactId>
<packaging>jar</packaging>
<name>persistence</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.jdo</groupId>
<artifactId>jdo-api</artifactId>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-core</artifactId>
<version>4.0.4</version>
</dependency>
<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-api-jdo</artifactId>
<version>4.0.5</version>
</dependency>
<dependency>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-rdbms</artifactId>
<version>4.0.7</version>
</dependency>
<dependency>
<artifactId>spring-orm</artifactId>
<groupId>org.springframework</groupId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.3-1102-jdbc41</version>
</dependency>
</dependencies>
</project>
this is a User entity :
#PersistenceCapable
public class User {
#PrimaryKey
#Persistent( valueStrategy = IdGeneratorStrategy.IDENTITY )
private Long id;
#Persistent
private String name;
public User() {}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
my JDOConfigure with Spring
#Configuration
#EnableTransactionManagement
public class JDOConfiguration{
#Bean
public PersistenceManagerFactory persistenceManagerFactory() {
PersistenceManagerFactory persistenceManagerFactory = JDOHelper.getPersistenceManagerFactory("jdo.properties");
return persistenceManagerFactory;
}
#Bean
public JdoTransactionManager JdoTransactionManager() {
JdoTransactionManager JdoTransactionManager = new JdoTransactionManager();
JdoTransactionManager.setPersistenceManagerFactory(persistenceManagerFactory());
return JdoTransactionManager;
}
}
and jdo.properties as config for PersistenceManagerFactory :
datanucleus.autoCreateSchema=true
javax.jdo.PersistenceManagerFactoryClass=org.datanucleus.api.jdo.JDOPersistenceManagerFactory
javax.jdo.option.ConnectionURL= jdbc:postgresql://localhost/somem
javax.jdo.option.ConnectionUserName = dom
javax.jdo.option.ConnectionPassword = dom
javax.jdo.option.ConnectionDriverName = org.postgresql.Driver
Why datanucleus don't create a User table on database?
My output :
/usr/lib/jvm/oracle/jdk1.7.0_21/bin/java -classpath /home/user/software/idea-IU-139.659.2/lib/idea_rt.jar:/home/user/software/idea-IU-139.659.2/lib/util.jar -Dfile.encoding=UTF-8 com.intellij.rt.execution.CommandLineWrapper /tmp/classpath0.tmp com.intellij.javaee.oss.process.JavaeeProcess 37134 com.intellij.javaee.oss.jboss.agent.JBoss71Agent
/home/user/software/wildfly-8.2.0.Final/bin/standalone.sh
[2015-02-06 03:23:19,788] Artifact admin:war: Server is not connected. Deploy is not available.
=========================================================================
[2015-02-06 03:23:19,789] Artifact web:war: Server is not connected. Deploy is not available.
Detected server admin port: 9990
JBoss Bootstrap Environment
Detected server http port: 8080
JBOSS_HOME: /home/user/software/wildfly-8.2.0.Final
JAVA: /usr/lib/jvm/oracle/jdk1.7.0_21/bin/java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
=========================================================================
[0m03:23:18,776 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final
[0m[0m03:23:19,437 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
[0m[0m03:23:19,640 INFO [org.jboss.as] (MSC service thread 1-7) JBAS015899: WildFly 8.2.0.Final "Tweek" starting
[0m[0m03:23:21,824 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
[0m[0m03:23:21,854 INFO [org.xnio] (MSC service thread 1-1) XNIO version 3.3.0.Final
[0m[0m03:23:21,881 INFO [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.3.0.Final
[0m[0m03:23:21,918 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
[0m[0m03:23:21,922 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.
[0m[0m03:23:21,965 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 38) JBAS012615: Activated the following JSF Implementations: [main]
[0m[0m03:23:21,982 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem
[0m[0m03:23:21,985 INFO [org.jboss.as.security] (ServerService Thread Pool -- 45) JBAS013171: Activating Security Subsystem
[0m[0m03:23:21,988 INFO [org.jboss.as.security] (MSC service thread 1-4) JBAS013170: Current PicketBox version=4.0.21.Final
[0m[0m03:23:21,999 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
[0m[33m03:23:22,016 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.
[0m[0m03:23:22,027 INFO [org.jboss.as.connector.logging] (MSC service thread 1-7) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.9.Final)
[0m[0m03:23:22,051 INFO [org.wildfly.extension.undertow] (MSC service thread 1-5) JBAS017502: Undertow 1.1.0.Final starting
[0m[0m03:23:22,051 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017502: Undertow 1.1.0.Final starting
[0m[0m03:23:22,061 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010417: Started Driver service with driver-name = h2
[0m[0m03:23:22,070 INFO [org.jboss.as.naming] (MSC service thread 1-8) JBAS011802: Starting Naming Service
[0m[0m03:23:22,071 INFO [org.jboss.as.mail.extension] (MSC service thread 1-8) JBAS015400: Bound mail session [java:jboss/mail/Default]
[0m[0m03:23:22,072 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
[0m[0m03:23:22,126 INFO [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 4.0.6.Final
[0m[0m03:23:22,394 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017527: Creating file handler for path /home/user/software/wildfly-8.2.0.Final/welcome-content
[0m[0m03:23:22,472 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017525: Started server default-server.
[0m[0m03:23:22,489 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) JBAS017531: Host default-host starting
[0m[0m03:23:22,645 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) JBAS017519: Undertow HTTP listener default listening on /127.0.0.1:8080
[0m[0m03:23:23,195 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-6) JBAS015012: Started FileSystemDeploymentService for directory /home/user/software/wildfly-8.2.0.Final/standalone/deployments
[0m[0m03:23:23,205 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
[0m[0m03:23:23,562 INFO [org.jboss.ws.common.management] (MSC service thread 1-4) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.3.2.Final
[0m[0m03:23:23,777 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
[0m[0m03:23:23,778 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
[0m[0m03:23:23,779 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: WildFly 8.2.0.Final "Tweek" started in 5650ms - Started 184 of 234 services (82 services are lazy, passive or on-demand)
[0mConnected to server
[2015-02-06 03:23:23,964] Artifact admin:war: Artifact is being deployed, please wait...
[2015-02-06 03:23:23,965] Artifact web:war: Artifact is being deployed, please wait...
[0m03:23:24,384 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "admin.war" (runtime-name: "admin.war")
[0m[0m03:23:24,849 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017534: Registered web context: /admin
[0m[0m03:23:25,335 INFO [org.jboss.as.server] (management-handler-thread - 3) JBAS018559: Deployed "admin.war" (runtime-name : "admin.war")
[0m[2015-02-06 03:23:25,366] Artifact admin:war: Artifact is deployed successfully
[2015-02-06 03:23:25,366] Artifact admin:war: Deploy took 1,402 milliseconds
[0m03:23:25,632 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "web.war" (runtime-name: "web.war")
[0m[33m03:23:26,995 WARN [org.jboss.as.ee] (MSC service thread 1-2) JBAS011006: Not installing optional component org.springframework.http.server.ServletServerHttpAsyncRequestControl due to an exception (enable DEBUG log level to see the cause)
[0m[33m03:23:27,005 WARN [org.jboss.as.ee] (MSC service thread 1-2) JBAS011006: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to an exception (enable DEBUG log level to see the cause)
[0m[0m03:23:27,084 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.3)
[0m[0m03:23:27,102 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-5) JBAS010417: Started Driver service with driver-name = web.war_org.postgresql.Driver_9_3
[0m[0m03:23:27,140 INFO [io.undertow.servlet] (MSC service thread 1-4) Spring WebApplicationInitializers detected on classpath: [somem.web.configuration.WebAppInitializer#4aedfc7b]
[0m[0m03:23:27,193 INFO [stdout] (MSC service thread 1-4) test222
[0m[0m03:23:27,205 INFO [io.undertow.servlet] (MSC service thread 1-4) Initializing Spring root WebApplicationContext
[0m[0m03:23:27,208 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-4) Root WebApplicationContext: initialization started
[0m[0m03:23:27,279 INFO [org.springframework.web.context.support.AnnotationConfigWebApplicationContext] (MSC service thread 1-4) Refreshing Root WebApplicationContext: startup date [Fri Feb 06 03:23:27 ICT 2015]; root of context hierarchy
[0m[0m03:23:27,352 INFO [org.springframework.web.context.support.AnnotationConfigWebApplicationContext] (MSC service thread 1-4) Registering annotated classes: [class somem.persistence.config.JDOConfiguration]
[0m[0m03:23:27,523 INFO [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (MSC service thread 1-4) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
[0m[0m03:23:28,409 INFO [stdout] (MSC service thread 1-4) test system
[0m[0m03:23:28,451 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-4) Root WebApplicationContext: initialization completed in 1243 ms
[0m[0m03:23:28,454 INFO [io.undertow.servlet] (MSC service thread 1-4) Initializing Spring FrameworkServlet 'dispatcher'
[0m[0m03:23:28,454 INFO [org.springframework.web.servlet.DispatcherServlet] (MSC service thread 1-4) FrameworkServlet 'dispatcher': initialization started
[0m[0m03:23:28,458 INFO [org.springframework.web.context.support.AnnotationConfigWebApplicationContext] (MSC service thread 1-4) Refreshing WebApplicationContext for namespace 'dispatcher-servlet': startup date [Fri Feb 06 03:23:28 ICT 2015]; parent: Root WebApplicationContext
[0m[0m03:23:28,460 INFO [org.springframework.web.context.support.AnnotationConfigWebApplicationContext] (MSC service thread 1-4) Registering annotated classes: [class somem.web.configuration.WebConfiguration]
[0m[0m03:23:28,600 INFO [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (MSC service thread 1-4) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
[0m[0m03:23:28,844 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (MSC service thread 1-4) Mapped "{[/],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String somem.web.controller.MainController.test(javax.servlet.http.HttpServletResponse)
[0m[0m03:23:28,890 INFO [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (MSC service thread 1-4) Mapped URL path [/resources/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
[0m[0m03:23:28,902 INFO [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (MSC service thread 1-4) Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler]
[0m[0m03:23:29,235 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-4) HV000001: Hibernate Validator 5.1.3.Final
[0m[0m03:23:29,328 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter] (MSC service thread 1-4) Looking for #ControllerAdvice: WebApplicationContext for namespace 'dispatcher-servlet': startup date [Fri Feb 06 03:23:28 ICT 2015]; parent: Root WebApplicationContext
[0m[0m03:23:29,414 INFO [org.springframework.web.servlet.DispatcherServlet] (MSC service thread 1-4) FrameworkServlet 'dispatcher': initialization completed in 960 ms
[0m[0m03:23:29,414 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017534: Registered web context: /web
[0m[0m03:23:29,672 INFO [org.jboss.as.server] (management-handler-thread - 1) JBAS018559: Deployed "web.war" (runtime-name : "web.war")
[0m[2015-02-06 03:23:29,708] Artifact web:war: Artifact is deployed successfully
[2015-02-06 03:23:29,708] Artifact web:war: Deploy took 5,743 milliseconds
datanucleus.autoCreateSchema is not a valid property in DataNucleus 4.0 (see the properties doc), as defined by the migration guide from v3.x. Using datanucleus.schema.autoCreateAll would make more sense.

Spring security error on JBoss 7.1 > No bean named 'springSecurityFilterChain' is defined

I am using JBoss 7.1. My app is using spring 3.1, spring security, and for JSF 2 components it is using Richfaces [4.2.1 final].
Here is part of my web.xml >
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:**/*Context.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Inside WEB-INF, I have applicationContext.xml and securityContext.xml for spring configurations.
I have tried with this configuration too >
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:**/applicationContext.xml, classpath:**/securityContext.xml </param-value>
</context-param>
And, as I checked I could see WEB-INF\lib folder includes all spring jars as expected according to my maven dependencies [after failed deployment inside $JBOSS_HOME\standalone\deployments\projectname\WEB-INF\lib]
And, now error stacktrace when I try to deploy it from Eclipse:
09:52:50,588 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
09:52:51,998 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
09:52:52,179 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
09:52:59,384 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
09:52:59,435 INFO [org.xnio] XNIO Version 3.0.3.GA
09:52:59,563 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
09:52:59,623 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
09:52:59,784 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
09:52:59,983 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
09:52:59,982 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
09:52:59,995 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
09:52:59,992 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
09:52:59,990 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
09:52:59,991 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
09:53:00,580 INFO [org.jboss.as.security] (MSC service thread 1-5) JBAS013100: Current PicketBox version=4.0.7.Final
09:53:00,906 INFO [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
09:53:02,387 INFO [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
09:53:02,478 INFO [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]
09:53:03,552 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
09:53:05,215 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-8) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080
09:53:07,662 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.2.GA
09:53:10,500 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory F:\work\softwares\Application Servers\JBoss\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\standalone\deployments
09:53:10,648 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found com.misl.treasury.ui.war in deployment directory. To trigger deployment create a file called com.misl.treasury.ui.war.dodeploy
09:53:10,719 INFO [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on localhost/127.0.0.1:4447
09:53:10,719 INFO [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on /127.0.0.1:9999
09:53:11,471 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
09:53:12,046 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "com.misl.treasury.ui.war"
09:53:24,162 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.misl.treasury.ui]] (MSC service thread 1-2) No Spring WebApplicationInitializer types detected on classpath
09:53:24,238 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.misl.treasury.ui]] (MSC service thread 1-2) Initializing Spring root WebApplicationContext
09:53:24,242 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization started
09:53:24,337 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-2) Refreshing Root WebApplicationContext: startup date [Wed Oct 24 09:53:24 ALMT 2012]; root of context hierarchy
09:53:24,472 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-2) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory#15dd61: defining beans []; root of factory hierarchy
09:53:24,479 INFO [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization completed in 234 ms
09:53:24,575 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.misl.treasury.ui]] (MSC service thread 1-2) Exception starting filter springSecurityFilterChain: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529) [spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095) [spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277) [spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) [spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1097) [spring-context-3.1.0.RELEASE.jar:3.1.0.RELEASE]
at org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:326) [spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:236) [spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:194) [spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3269) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3865) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]
09:53:24,613 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Error filterStart
09:53:24,615 ERROR [org.apache.catalina.core.StandardContext] (MSC service thread 1-2) Context [/com.misl.treasury.ui] startup failed due to previous errors
09:53:24,617 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.misl.treasury.ui]] (MSC service thread 1-2) Closing Spring root WebApplicationContext
09:53:24,620 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-2) Closing Root WebApplicationContext: startup date [Wed Oct 24 09:53:24 ALMT 2012]; root of context hierarchy
09:53:24,623 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-2) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory#15dd61: defining beans []; root of factory hierarchy
09:53:24,688 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.web.deployment.default-host."/com.misl.treasury.ui": org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/com.misl.treasury.ui": JBAS018040: Failed to start context
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:95)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]
09:53:24,703 INFO [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console listening on http://127.0.0.1:9990
09:53:24,705 ERROR [org.jboss.as] (MSC service thread 1-2) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 35657ms - Started 460 of 539 services (2 services failed or missing dependencies, 76 services are passive or on-demand)
09:53:24,908 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "com.misl.treasury.ui.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host.\"/com.misl.treasury.ui\"" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host.\"/com.misl.treasury.ui\": JBAS018040: Failed to start context"}}
09:53:24,913 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.web.deployment.default-host."/com.misl.treasury.ui": org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/com.misl.treasury.ui": JBAS018040: Failed to start context
09:53:24,937 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.web.deployment.default-host.\"/com.misl.treasury.ui\"" => "org.jboss.msc.service.StartException in service jboss.web.deployment.default-host.\"/com.misl.treasury.ui\": JBAS018040: Failed to start context"}}}}
09:53:25,282 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment com.misl.treasury.ui.war in 361ms
This app was working fine untill I started to migrate it from tomcat 7 to JBoss 7.1
Thanks in advance
/WEB-INF is not on the classpath. You have to include your Spring configuration files like below:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext.xml
/WEB-INF/securityContext.xml
</param-value>
</context-param>
See also:
Is WEB-INF in the CLASSPATH?
Spring security with GAE
try instead of:
<param-value>
/WEB-INF/applicationContext.xml
/WEB-INF/applicationContext-security.xml
</param-value>
to do the following in /WEB-INF/applicationContext.xml:
<import resource="applicationContext-security.xml"/>

Error deploying JSF 2, Spring 3.1 app on JBoss 7.1.1 > java.lang.NoClassDefFoundError: javax/servlet/ServletOutputStream

Trying to deploy a JSF 2 app with Spring 3.1 + JPA 2 (Hibernte 3.6.8) into JBoss 7.1.1 AS. The app was working fine on tomcat 7. Now, I have already added and changed some configurations.
Added jboss-deployment-structure.xml >
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<deployment>
<exclusions>
<module name="org.apache.log4j" />
<module name="javax.faces.api" slot="main"/>
<module name="com.sun.jsf-impl" slot="main"/>
<module name="org.hibernate"/>
<module name="org.javassist" />
<module name="javaee.api" />
<module name="org.hibernate.validator" />
<module name="org.jboss.as.web" />
<module name="org.jboss.logging" />
<module name="javax.persistence.api" />
<module name="org.jboss.interceptor" />
</exclusions>
</deployment>
</jboss-deployment-structure>
2. Inside web.xml added these lines:
<persistence-unit-ref>
<persistence-unit-ref-name>persistence/persistenceUnit</persistence-unit-ref-name>
<persistence-unit-name>persistenceUnit</persistence-unit-name>
</persistence-unit-ref>
3. Inside applicationContext.xml, changed bean definition for entityManagerFactory by adding this property>
<property name="persistenceXmlLocation"
value="classpath*:META-INF/persistence.xml"/>
Now, do I still need to do something more than these which is obvious to you?
Because, while I am trying to deploy it from eclipse indigo SR2,
getting this >
14:10:32,046 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
14:10:33,054 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
14:10:33,200 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
14:10:36,375 INFO [org.xnio] XNIO Version 3.0.3.GA
14:10:36,384 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
14:10:36,432 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
14:10:36,462 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
14:10:36,587 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
14:10:36,714 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
14:10:36,735 INFO [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
14:10:37,043 INFO [org.jboss.as.mail.extension] (MSC service thread 1-6) JBAS015400: Bound mail session [java:jboss/mail/Default]
14:10:37,208 INFO [org.jboss.as.connector] (MSC service thread 1-7) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
14:10:37,295 INFO [org.jboss.as.security] (MSC service thread 1-7) JBAS013100: Current PicketBox version=4.0.7.Final
14:10:37,740 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
14:10:38,792 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.2.GA
14:10:38,833 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080
14:10:39,534 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory F:\work\softwares\Application Servers\JBoss\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\standalone\deployments
14:10:39,618 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on localhost/127.0.0.1:4447
14:10:39,623 INFO [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /127.0.0.1:9999
14:10:39,698 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment treasury.war
14:10:39,706 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found com.misl.treasury.ui.war in deployment directory. To trigger deployment create a file called com.misl.treasury.ui.war.dodeploy
14:10:40,105 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
14:10:40,399 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "com.misl.treasury.ui.war"
14:10:40,405 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "treasury.war"
14:10:55,283 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'
14:10:55,289 WARN [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'
14:10:55,428 INFO [org.jboss.as.jpa] (MSC service thread 1-7) JBAS011401: Read persistence.xml for persistenceUnit
14:10:55,843 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'
14:10:55,849 WARN [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'
14:10:56,010 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."com.misl.treasury.ui.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."com.misl.treasury.ui.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "com.misl.treasury.ui.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]
Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletOutputStream
at java.lang.Class.getDeclaredConstructors0(Native Method) [rt.jar:1.6.0_23]
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389) [rt.jar:1.6.0_23]
at java.lang.Class.getConstructor0(Class.java:2699) [rt.jar:1.6.0_23]
at java.lang.Class.getConstructor(Class.java:1657) [rt.jar:1.6.0_23]
at org.jboss.as.web.deployment.jsf.JsfManagedBeanProcessor.deploy(JsfManagedBeanProcessor.java:108)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletOutputStream from [Module "deployment.com.misl.treasury.ui.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 11 more
14:10:56,628 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."treasury.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."treasury.war".PARSE: Failed to process phase PARSE of deployment "treasury.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: SAXException parsing vfs:/F:/work/softwares/Application Servers/JBoss/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final/bin/content/treasury.war/WEB-INF/beans.xml
at org.jboss.as.weld.deployment.BeansXmlParser.parse(BeansXmlParser.java:100)
at org.jboss.as.weld.deployment.processors.BeansXmlProcessor.parseBeansXml(BeansXmlProcessor.java:133)
at org.jboss.as.weld.deployment.processors.BeansXmlProcessor.deploy(BeansXmlProcessor.java:97)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:175)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:394)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)
at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1459)
at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:903)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)
at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)
at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555)
at org.apache.xerces.jaxp.SAXParserImpl.parse(SAXParserImpl.java:289)
at org.jboss.as.weld.deployment.BeansXmlParser.parse(BeansXmlParser.java:94)
... 8 more
14:10:56,670 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console listening on http://127.0.0.1:9990
14:10:56,672 ERROR [org.jboss.as] (MSC service thread 1-1) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 25527ms - Started 143 of 222 services (2 services failed or missing dependencies, 76 services are passive or on-demand)
14:10:56,671 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "treasury.war" was rolled back with no failure message
14:10:56,679 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "com.misl.treasury.ui.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"com.misl.treasury.ui.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"com.misl.treasury.ui.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"com.misl.treasury.ui.war\""}}
14:10:56,851 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment com.misl.treasury.ui.war in 172ms
14:10:57,068 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment treasury.war in 395ms
14:10:57,070 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."treasury.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."treasury.war".PARSE: Failed to process phase PARSE of deployment "treasury.war"
service jboss.deployment.unit."com.misl.treasury.ui.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."com.misl.treasury.ui.war".POST_MODULE: Failed to process phase POST_MODULE of deployment "com.misl.treasury.ui.war"
14:10:57,079 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"com.misl.treasury.ui.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"com.misl.treasury.ui.war\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"com.misl.treasury.ui.war\""}}}}
14:10:57,087 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back
I have never tried JBoss before. Any help would be highly appreciated.
Deleted <module name="javaee.api" /> entry from jboss-deployment-structure and thus got rid of ClassNotFoundException: javax.servlet.ServletOutputStream error [because javaee api jar implements that class]. But, unfortunately, that was not all. It just cleared the path to show another error. This time, it is about hibernate.
java.lang.NoClassDefFoundError:
org/jboss/as/jpa/hibernate3/infinispan/SharedInfinispanRegionFactory
After searching a bit, it seems, it probably is a bug in JBoss 7.1.1. [Pity they won't release any newer version]
Anyway, I would be trying a hack from here. Looks like its a big journey towards an error free deployment!

Resources