概述
http://developers.redhat.com/products/devstudio/get-started/
1. 下载 Red Hat JBoss Developer studio
2. 安装 eclipse
3. 打开 eclipse
4. 配置maven
5. 下载 jboss helloworld 项目
6. 运行 helloworld
进入 控制台
http://localhost:8080
在 Deployments 菜单中可以看到已经成功部署的 war 项目(可以在这里查看项目的具体信息)
然后直接访问
http://localhost:8080/jboss-helloworld/
就可以了
如下是正确日志:
18:39:02,480 INFO [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final-redhat-1 18:39:02,780 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final-redhat-1 18:39:02,934 INFO [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1) starting 18:39:06,455 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found jboss-helloworld.war in deployment directory. To trigger deployment create a file called jboss-helloworld.war.dodeploy 18:39:06,456 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found jboss-springmvc-webapp.war in deployment directory. To trigger deployment create a file called jboss-springmvc-webapp.war.dodeploy 18:39:06,536 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http) 18:39:06,589 INFO [org.xnio] (MSC service thread 1-6) XNIO version 3.3.6.Final-redhat-1 18:39:06,600 INFO [org.xnio.nio] (MSC service thread 1-6) XNIO NIO Implementation Version 3.3.6.Final-redhat-1 18:39:06,736 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 54) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique. 18:39:06,747 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 38) WFLYCLINF0001: Activating Infinispan subsystem. 18:39:06,799 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 37) WFLYIO001: Worker 'default' has auto-configured to 8 core threads with 64 task threads based on your 4 available processors 18:39:06,814 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 44) WFLYJSF0007: Activated the following JSF Implementations: [main] 18:39:06,930 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 56) WFLYWS0002: Activating WebServices Extension 18:39:06,943 INFO [org.jboss.as.security] (ServerService Thread Pool -- 53) WFLYSEC0002: Activating Security Subsystem 18:39:06,980 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0003: Undertow 1.3.21.Final-redhat-1 starting 18:39:06,976 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 46) WFLYNAM0001: Activating Naming Subsystem 18:39:06,983 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0003: Undertow 1.3.21.Final-redhat-1 starting 18:39:07,007 INFO [org.jboss.as.security] (MSC service thread 1-2) WFLYSEC0001: Current PicketBox version=4.9.6.Final-redhat-1 18:39:07,054 INFO [org.jboss.as.connector] (MSC service thread 1-8) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.3.Final-redhat-1) 18:39:07,496 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 33) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) 18:39:07,570 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 55) WFLYUT0014: Creating file handler for path 'F:ejbossjbossruntimesjboss-eap-7.0/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]'] 18:39:07,587 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) WFLYJCA0018: Started Driver service with driver-name = h2 18:39:07,974 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0012: Started server default-server. 18:39:07,991 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0018: Host default-host starting 18:39:08,077 INFO [org.jboss.remoting] (MSC service thread 1-6) JBoss Remoting version 4.0.18.Final-redhat-1 18:39:08,090 INFO [org.jboss.as.naming] (MSC service thread 1-2) WFLYNAM0003: Starting Naming Service 18:39:08,095 INFO [org.jboss.as.mail.extension] (MSC service thread 1-1) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default] 18:39:08,237 INFO [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:8080 18:39:08,487 INFO [org.jboss.as.ejb3] (MSC service thread 1-7) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a max instance size of 64 (per class), which is derived from thread worker pool sizing. 18:39:08,489 INFO [org.jboss.as.ejb3] (MSC service thread 1-8) WFLYEJB0482: Strict pool mdb-strict-max-pool is using a max instance size of 16 (per class), which is derived from the number of CPUs on this host. 18:39:09,163 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS] 18:39:09,576 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0027: Starting deployment of "jboss-springmvc-webapp.war" (runtime-name: "jboss-springmvc-webapp.war") 18:39:09,577 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "jboss-helloworld.war" (runtime-name: "jboss-helloworld.war") 18:39:09,586 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) WFLYDS0013: Started FileSystemDeploymentService for directory F:ejbossjbossruntimesjboss-eap-7.0standalonedeployments 18:39:10,570 INFO [org.jboss.ws.common.management] (MSC service thread 1-7) JBWS022052: Starting JBossWS 5.1.3.SP1-redhat-1 (Apache CXF 3.1.4.redhat-1) 18:39:11,866 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-8) ISPN000128: Infinispan version: Infinispan 'Mahou' 8.1.2.Final-redhat-1 18:39:13,028 INFO [org.jboss.weld.deployer] (MSC service thread 1-6) WFLYWELD0003: Processing weld deployment jboss-helloworld.war 18:39:13,365 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-6) HV000001: Hibernate Validator 5.2.4.Final-redhat-1 18:39:13,588 WARN [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0059: Class Path entry xml-apis.jar in /F:/e/jboss/jbossruntimes/jboss-eap-7.0/standalone/deployments/jboss-springmvc-webapp.war/WEB-INF/lib/serializer-2.7.1.jar does not point to a valid jar for a Class-Path reference. 18:39:13,593 WARN [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0059: Class Path entry xercesImpl.jar in /F:/e/jboss/jbossruntimes/jboss-eap-7.0/standalone/deployments/jboss-springmvc-webapp.war/WEB-INF/lib/xalan-2.7.1.jar does not point to a valid jar for a Class-Path reference. 18:39:13,595 WARN [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0059: Class Path entry xml-apis.jar in /F:/e/jboss/jbossruntimes/jboss-eap-7.0/standalone/deployments/jboss-springmvc-webapp.war/WEB-INF/lib/xalan-2.7.1.jar does not point to a valid jar for a Class-Path reference. 18:39:13,596 WARN [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0059: Class Path entry serializer.jar in /F:/e/jboss/jbossruntimes/jboss-eap-7.0/standalone/deployments/jboss-springmvc-webapp.war/WEB-INF/lib/xalan-2.7.1.jar does not point to a valid jar for a Class-Path reference. 18:39:13,774 INFO [org.jboss.as.jpa] (MSC service thread 1-1) WFLYJPA0002: Read persistence.xml for primarybasic 18:39:13,841 WARN [org.jboss.as.connector] (MSC service thread 1-1) WFLYJCA0091: -ds.xml file deployments are deprecated. Support may be removed in a future version. 18:39:14,089 INFO [org.jboss.weld.deployer] (MSC service thread 1-6) WFLYWELD0006: Starting Services for CDI deployment: jboss-helloworld.war 18:39:14,150 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0001: Bound data source [java:jboss/datasources/jboss-springmvc-webappDSBasic] 18:39:14,164 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 59) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'jboss-springmvc-webapp.war#primarybasic' 18:39:14,220 INFO [org.jboss.weld.Version] (MSC service thread 1-6) WELD-000900: 2.3.3 (redhat) 18:39:14,316 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 59) HHH000204: Processing PersistenceUnitInfo [ name: primarybasic ...] 18:39:14,323 WARN [org.jboss.as.ee] (MSC service thread 1-2) WFLYEE0007: Not installing optional component org.springframework.http.server.ServletServerHttpAsyncRequestControl due to an exception (enable DEBUG log level to see the cause) 18:39:14,331 WARN [org.jboss.as.ee] (MSC service thread 1-2) WFLYEE0007: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to an exception (enable DEBUG log level to see the cause) 18:39:14,424 INFO [org.jboss.weld.deployer] (MSC service thread 1-1) WFLYWELD0009: Starting weld service for deployment jboss-helloworld.war 18:39:14,745 INFO [org.hibernate.Version] (ServerService Thread Pool -- 59) HHH000412: Hibernate Core {5.0.9.Final-redhat-1} 18:39:14,748 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 59) HHH000206: hibernate.properties not found 18:39:14,751 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 59) HHH000021: Bytecode provider name : javassist 18:39:14,862 INFO [org.hibernate.orm.deprecation] (ServerService Thread Pool -- 59) HHH90000001: Found usage of deprecated setting for specifying Scanner [hibernate.ejb.resource_scanner]; use [hibernate.archive.scanner] instead 18:39:14,886 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 59) HCANN000001: Hibernate Commons Annotations {5.0.1.Final-redhat-2} 18:39:15,093 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 59) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'jboss-springmvc-webapp.war#primarybasic' 18:39:15,996 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 59) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect 18:39:16,018 WARN [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 59) HHH000431: Unable to determine H2 database version, certain features may not work 18:39:16,125 INFO [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 59) Envers integration enabled? : true 18:39:16,691 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 60) WFLYUT0021: Registered web context: /jboss-helloworld 18:39:17,205 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 59) HHH000227: Running hbm2ddl schema export 18:39:17,217 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 59) HHH000476: Executing import script '/import.sql' 18:39:17,219 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 59) HHH000230: Schema export complete 18:39:17,391 INFO [io.undertow.servlet] (ServerService Thread Pool -- 70) No Spring WebApplicationInitializer types detected on classpath 18:39:17,394 INFO [io.undertow.servlet] (ServerService Thread Pool -- 70) Initializing Spring root WebApplicationContext 18:39:17,396 INFO [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 70) Root WebApplicationContext: initialization started 18:39:17,463 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (ServerService Thread Pool -- 70) Refreshing Root WebApplicationContext: startup date [Wed Sep 28 18:39:17 CST 2016]; root of context hierarchy 18:39:17,495 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (ServerService Thread Pool -- 70) Loading XML bean definitions from class path resource [META-INF/spring/applicationContext.xml] 18:39:17,671 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (ServerService Thread Pool -- 70) Loading XML bean definitions from class path resource [META-INF/spring/infrastructure.xml] 18:39:17,790 INFO [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (ServerService Thread Pool -- 70) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 18:39:17,985 INFO [org.springframework.transaction.jta.JtaTransactionManager] (ServerService Thread Pool -- 70) Using JTA UserTransaction: org.jboss.tm.usertx.client.ServerVMClientUserTransaction@15387eac 18:39:17,986 INFO [org.springframework.transaction.jta.JtaTransactionManager] (ServerService Thread Pool -- 70) Using JTA TransactionManager: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate@602da51e 18:39:17,986 INFO [org.springframework.transaction.jta.JtaTransactionManager] (ServerService Thread Pool -- 70) Using JTA TransactionSynchronizationRegistry: org.jboss.as.txn.service.internal.tsr.TransactionSynchronizationRegistryWrapper@4d9cb240 18:39:17,992 INFO [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 70) Root WebApplicationContext: initialization completed in 596 ms 18:39:18,006 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 70) Initializing Mojarra 2.2.12-jbossorg-2 for context '/jboss-springmvc-webapp' 18:39:20,324 INFO [io.undertow.servlet] (ServerService Thread Pool -- 70) Initializing Spring FrameworkServlet 'jboss-as-kitchensink' 18:39:20,325 INFO [org.springframework.web.servlet.DispatcherServlet] (ServerService Thread Pool -- 70) FrameworkServlet 'jboss-as-kitchensink': initialization started 18:39:20,330 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (ServerService Thread Pool -- 70) Refreshing WebApplicationContext for namespace 'jboss-as-kitchensink-servlet': startup date [Wed Sep 28 18:39:20 CST 2016]; parent: Root WebApplicationContext 18:39:20,332 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (ServerService Thread Pool -- 70) Loading XML bean definitions from ServletContext resource [/WEB-INF/jboss-as-spring-mvc-context.xml] 18:39:20,509 INFO [org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor] (ServerService Thread Pool -- 70) JSR-330 'javax.inject.Inject' annotation found and supported for autowiring 18:39:20,798 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (ServerService Thread Pool -- 70) Mapped "{[/],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.jboss.tools.example.springmvc.controller.MemberController.displaySortedMembers(org.springframework.ui.Model) 18:39:20,798 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (ServerService Thread Pool -- 70) Mapped "{[/],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.jboss.tools.example.springmvc.controller.MemberController.registerNewMember(org.jboss.tools.example.springmvc.model.Member,org.springframework.validation.BindingResult,org.springframework.ui.Model) 18:39:20,801 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (ServerService Thread Pool -- 70) Mapped "{[/rest/members/{id}],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto public org.jboss.tools.example.springmvc.model.Member org.jboss.tools.example.springmvc.controller.MemberRestController.lookupMemberById(java.lang.Long) 18:39:20,801 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] (ServerService Thread Pool -- 70) Mapped "{[/rest/members],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}" onto public java.util.List<org.jboss.tools.example.springmvc.model.Member> org.jboss.tools.example.springmvc.controller.MemberRestController.listAllMembers() 18:39:21,401 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter] (ServerService Thread Pool -- 70) Looking for @ControllerAdvice: WebApplicationContext for namespace 'jboss-as-kitchensink-servlet': startup date [Wed Sep 28 18:39:20 CST 2016]; parent: Root WebApplicationContext 18:39:21,441 INFO [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter] (ServerService Thread Pool -- 70) Looking for @ControllerAdvice: WebApplicationContext for namespace 'jboss-as-kitchensink-servlet': startup date [Wed Sep 28 18:39:20 CST 2016]; parent: Root WebApplicationContext 18:39:21,573 INFO [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 70) Mapped URL path [/static/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0' 18:39:21,603 INFO [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] (ServerService Thread Pool -- 70) Mapped URL path [/**] onto handler 'org.springframework.web.servlet.resource.DefaultServletHttpRequestHandler#0' 18:39:21,617 INFO [org.springframework.web.servlet.DispatcherServlet] (ServerService Thread Pool -- 70) FrameworkServlet 'jboss-as-kitchensink': initialization completed in 1292 ms 18:39:21,618 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 70) WFLYUT0021: Registered web context: /jboss-springmvc-webapp 18:39:21,670 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "jboss-springmvc-webapp.war" (runtime-name : "jboss-springmvc-webapp.war") 18:39:21,671 INFO [org.jboss.as.server] (ServerService Thread Pool -- 34) WFLYSRV0010: Deployed "jboss-helloworld.war" (runtime-name : "jboss-helloworld.war") 18:39:21,848 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management 18:39:21,848 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990 18:39:21,849 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1) started in 20042ms - Started 861 of 1156 services (394 services are lazy, passive or on-demand)
关键字:Deployed
ps:
eclipse 中启动,相当于
转载于:https://www.cnblogs.com/zno2/p/5968808.html
最后
以上就是深情大米为你收集整理的jboss hello world的全部内容,希望文章能够帮你解决jboss hello world所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复