SourceForge.net Logo

Chapter 5. Starting JBoss

You are now ready to start JBoss. Open a command shell and start d:\pgm\jboss-4.0.1\bin\run.bat. You should verify the following lines in the console output:

Verify whether the start options are as configured in run.bat described earlier:

Example 5-1. JBoss start options.

===============================================================================
.
  JBoss Bootstrap Environment
.
  JBOSS_HOME: D:\pgm\jboss-4.0.1\bin\\..
.
  JAVA: D:\pgm\j2sdk1.4.2\bin\java
.
  JAVA_OPTS:  -Dprogram.name=run.bat -Xms128m -Xmx512m 
-Dorg.openmdx.compatibility.base.application.j2ee.domain=apps  
-Dorg.openmdx.compatibility.base.application.j2ee.server=server1  
-Djava.protocol.handler.pkgs=org.openmdx.kernel.url.protocol  
-Dorg.openmdx.log.config.filename=D:\pgm\jboss-4.0.1\server\default\server.log.properties 
-Dmail.SSLSocketFactory.class=org.opencrx.kernel.mail.SendMailSSLSocketFactory
.
  CLASSPATH: D:\pgm\j2sdk1.4.2\lib\tools.jar;D:\pgm\jboss-4.0.1\bin\\run.jar
.
===============================================================================

Example 5-2. Deployment of database datasource.

[jdbc_opencrx_CRX-MAXDB] Bound connection factory for resource adapter for ConnectionManager
'jboss.jca:service=LocalTxCM,name=jdbc_opencrx_CRX-MAXDB to JNDI name 'java:/jdbc_opencrx_CRX-MAXDB'

Example 5-3. Deployment of opencrx-core-CRX-App.ear.

11:08:19,297 INFO  [EARDeployer] Init J2EE application: file:/D:/pgm/jboss-4.0.1/server/default/deploy/opencrx-core-CRX-App.ear
11:08:26,587 INFO  [EjbModule] Deploying opencrx_core_CRX_gateway_mandatory
11:08:26,768 INFO  [EjbModule] Deploying opencrx_core_CRX_gateway_noOrNew
11:08:27,068 INFO  [EjbModule] Deploying opencrx_core_CRX_kernel_mandatory
11:08:27,198 INFO  [EjbModule] Deploying opencrx_core_CRX_security_mandatory
11:08:27,298 INFO  [EjbModule] Deploying opencrx_core_CRX_ui_never
11:08:27,429 INFO  [EJBDeployer] Deployed: 
file:/D:/pgm/jboss-4.0.1/server/default/tmp/deploy/tmp59451opencrx-core-CRX-App.ear-contents/gateway.jar
11:08:28,050 INFO  [EJBDeployer] Deployed: 
file:/D:/pgm/jboss-4.0.1/server/default/tmp/deploy/tmp59451opencrx-core-CRX-App.ear-contents/kernel.jar
11:08:28,130 INFO  [EJBDeployer] Deployed: 
file:/D:/pgm/jboss-4.0.1/server/default/tmp/deploy/tmp59451opencrx-core-CRX-App.ear-contents/security.jar
11:08:28,180 INFO  [EJBDeployer] Deployed: 
file:/D:/pgm/jboss-4.0.1/server/default/tmp/deploy/tmp59451opencrx-core-CRX-App.ear-contents/ui.jar
11:08:28,210 INFO  [TomcatDeployer] deploy, ctxPath=/opencrx-core-CRX/client-gateway, warUrl=
file:/D:/pgm/jboss-4.0.1/server/default/tmp/deploy/tmp59451opencrx-core-CRX-App.ear-contents/client-gateway-exp.war/
11:08:28,430 INFO  [EARDeployer] Started J2EE application: 
file:/D:/pgm/jboss-4.0.1/server/default/deploy/opencrx-core-CRX-App.ear

Example 5-4. Deployment of opencrx-core-CRX-web.ear and opencrx-core-CRX-Root-web.ear.

11:08:28,430 INFO  [EARDeployer] Init J2EE application: file:/D:/pgm/jboss-4.0.1/server/default/deploy/opencrx-core-CRX-Root-web.ear/
11:08:35,110 INFO  [TomcatDeployer] deploy, ctxPath=/opencrx-core-CRX-Root, warUrl=
file:/D:/pgm/jboss-4.0.1/server/default/deploy/opencrx-core-CRX-Root-web.ear/opencrx-core-CRX-Root.war/
11:08:36,021 INFO  [EARDeployer] Started J2EE application: file:/D:/pgm/jboss-4.0.1/server/default/deploy/opencrx-core-CRX-Root-web.ear/
11:08:36,021 INFO  [EARDeployer] Init J2EE application: file:/D:/pgm/jboss-4.0.1/server/default/deploy/opencrx-core-CRX-web.ear/
11:08:42,420 INFO  [TomcatDeployer] deploy, ctxPath=/opencrx-core-CRX, warUrl=
file:/D:/pgm/jboss-4.0.1/server/default/deploy/opencrx-core-CRX-web.ear/opencrx-core-CRX.war/
11:08:43,251 INFO  [EARDeployer] Started J2EE application: file:/D:/pgm/jboss-4.0.1/server/default/deploy/opencrx-core-CRX-web.ear/

If there are any errors you must first fix them before you proceed. For troubleshooting please also refer to here.

Example 5-5. JBoss running - last few lines of console output.

11:08:43,492 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
11:08:44,363 INFO  [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
11:08:44,363 INFO  [JkMain] Jk running ID=0 time=0/30  config=null
11:08:44,403 INFO  [Server] JBoss (MX MicroKernel) [4.0.1 (build: CVSTag=JBoss_4_0_1 date=200412230944)] Started in 38s:529ms

Now you are ready to continue with the openCRX QuickStart Guide or you can Install openCRX as Windows Service.

http://www.crixp.com/ http://www.openmdx.org/