Install JBoss
January 27th, 2008 . by adminIntall JBoss
-Download JBoss from http://labs.jboss.com/jbossas/downloads/. Choice File Name: 4.2.2.GA. -> jboss-4.2.2.GA.zip
-Extract File jboss-4.2.2.GA.zip zu zB. c:\jboss
-Erweitern Path um c:\jboss\bin
-Neue System variable: JBOSS_HOME=c:\jboss
-Run: C:\jboss\bin>run -c
Output:
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: C:\jboss
JAVA: C:\Java\jdk1.6.0_04\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
CLASSPATH: C:\Java\jdk1.6.0_04\lib\tools.jar;C:\jboss\bin\run.jar
===============================================================================
09:16:17,187 INFO [Server] Starting JBoss (MX MicroKernel)…
09:16:17,203 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=
JBoss_4_2_2_GA date=200710221139)
09:16:17,203 INFO [Server] Home Dir: C:\jboss
09:16:17,203 INFO [Server] Home URL: file:/C:/jboss/
09:16:17,203 INFO [Server] Patch URL: null
09:16:17,203 INFO [Server] Server Name: all
09:16:17,203 INFO [Server] Server Home Dir: C:\jboss\server\all
09:16:17,203 INFO [Server] Server Home URL: file:/C:/jboss/server/all/
09:16:17,203 INFO [Server] Server Log Dir: C:\jboss\server\all\log
09:16:17,203 INFO [Server] Server Temp Dir: C:\jboss\server\all\tmp
09:16:17,203 INFO [Server] Root Deployment Filename: jboss-service.xml
09:16:18,093 INFO [ServerInfo] Java version: 1.6.0_04,Sun Microsystems Inc.
09:16:18,109 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b19,Sun
Microsystems Inc.
09:16:18,109 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
09:16:19,015 INFO [Server] Core system initialized
09:16:23,687 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083
/
09:16:23,750 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:jboss-log4j.xml
09:16:24,765 INFO [TransactionManagerService] JBossTS Transaction Service (JTA
version) – JBoss Inc.
09:16:24,765 INFO [TransactionManagerService] Setting up property manager MBean
and JMX layer
09:16:25,171 INFO [TransactionManagerService] Starting recovery manager
09:16:25,578 INFO [TransactionManagerService] Recovery manager started
09:16:25,578 INFO [TransactionManagerService] Binding TransactionManager JNDI R
eference
09:16:30,437 INFO [EJB3Deployer] Starting java:comp multiplexer
09:16:42,843 INFO [STDOUT]
——————————————————-
GMS: address is 192.168.86.131:1046
——————————————————-
09:16:44,906 INFO [TreeCache] viewAccepted(): [192.168.86.131:1046|0] [192.168.
86.131:1046]
09:16:44,937 INFO [TreeCache] TreeCache local address is 192.168.86.131:1046
09:16:44,937 INFO [TreeCache] State could not be retrieved (we are the first me
mber in group)
09:16:44,937 INFO [TreeCache] parseConfig(): PojoCacheConfig is empty
09:16:45,078 INFO [STDOUT] no object for null
09:16:45,078 INFO [STDOUT] no object for null
09:16:45,109 INFO [STDOUT] no object for null
09:16:45,125 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
09:16:45,125 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
09:16:48,468 INFO [NativeServerConfig] JBoss Web Services – Native
09:16:48,468 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=20071021
0837)
09:16:49,671 INFO [SnmpAgentService] SNMP agent going active
09:16:50,156 INFO [DefaultPartition] Initializing
09:16:50,296 INFO [STDOUT]
——————————————————-
GMS: address is 192.168.86.131:1051
——————————————————-
09:16:52,546 INFO [DefaultPartition] Number of cluster members: 1
09:16:52,546 INFO [DefaultPartition] Other members: 0
09:16:52,546 INFO [DefaultPartition] Fetching state (will wait for 30000 millis
econds):
09:16:52,562 INFO [DefaultPartition] State could not be retrieved (we are the f
irst member in group)
09:16:52,609 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, bac
klog=50, bindAddress=/127.0.0.1
09:16:52,625 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /12
7.0.0.1:1102, group=230.0.0.4, HA-JNDI address=127.0.0.1:1100
09:16:54,296 INFO [TreeCache] No transaction manager lookup class has been defi
ned. Transactions cannot be used
09:16:54,812 INFO [STDOUT]
——————————————————-
GMS: address is 192.168.86.131:1055
——————————————————-
09:16:56,859 INFO [TreeCache] viewAccepted(): [192.168.86.131:1055|0] [192.168.
86.131:1055]
09:16:56,859 INFO [TreeCache] TreeCache local address is 192.168.86.131:1055
09:16:57,734 INFO [STDOUT]
——————————————————-
GMS: address is 192.168.86.131:1059
——————————————————-
09:16:59,781 INFO [TreeCache] viewAccepted(): [192.168.86.131:1059|0] [192.168.
86.131:1059]
09:16:59,796 INFO [TreeCache] TreeCache local address is 192.168.86.131:1059
09:17:00,734 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6
D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E300000000
0000200000000000000F8000102000000000A3132372E302E302E31000DC8000000114A426F73732
F4E616D696E672F726F6F74000000000000050000000000000008000000004A41430000000001000
0001C000000000001000100000001050100010001010900000001050100010000002100000074000
00000000000010000000000000024000000220000007E00000000000000010000000F3139322E313
6382E38362E31333100000DC90040000000000000000806066781020101010000001704010008060
66781020101010000000764656661756C74000000000000000000000000000000000000000020000
00004000000000000001F00000004000000030000000100000020000000000000000200000020000
00004000000000000001F0000000400000003]
09:17:00,843 INFO [CorbaTransactionService] TransactionFactory: [IOR:0000000000
00003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E46616374
6F72794578743A312E30000000000200000000000000F8000102000000000A3132372E302E302E31
000DC8000000144A426F73732F5472616E73616374696F6E732F4600000005000000000000000800
0000004A414300000000010000001C00000000000100010000000105010001000101090000000105
010001000000210000007400000000000000010000000000000024000000220000007E0000000000
0000010000000F3139322E3136382E38362E31333100000DC9004000000000000000080606678102
010101000000170401000806066781020101010000000764656661756C7400000000000000000000
000000000000000000002000000004000000000000001F0000000400000003000000010000002000
000000000000020000002000000004000000000000001F0000000400000003]
09:17:01,781 INFO [Embedded] Catalina naming disabled
09:17:01,953 INFO [AprLifecycleListener] The Apache Tomcat Native library which
allows optimal performance in production environments was not found on the java
.library.path: C:\Java\jdk1.6.0_04\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\syst
em32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Java\
jdk1.6.0_04\bin;c:\jboss
09:17:02,171 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0
.1-8080
09:17:02,171 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-80
09
09:17:02,187 INFO [Catalina] Initialization processed in 407 ms
09:17:02,187 INFO [StandardService] Starting service jboss.web
09:17:02,187 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
09:17:02,250 INFO [Catalina] Server startup in 68 ms
09:17:02,406 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=…/deploy/jboss-w
eb.deployer/ROOT.war/
09:17:03,375 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=…/deploy/
httpha-invoker.sar/invoker.war/
09:17:03,765 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=…/deploy/
jbossws.sar/jbossws-context.war/
09:17:03,921 INFO [TomcatDeployer] deploy, ctxPath=/juddi, warUrl=…/deploy/ju
ddi-service.sar/juddi.war/
09:17:04,093 INFO [RegistryServlet] Loading jUDDI configuration.
09:17:04,093 INFO [RegistryServlet] Resources loaded from: /WEB-INF/juddi.prope
rties
09:17:04,093 INFO [RegistryServlet] Initializing jUDDI components.
09:17:04,562 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=…/
deploy-hasingleton/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
09:17:04,921 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=…/dep
loy/management/console-mgr.sar/web-console.war/
09:17:06,187 INFO [MailService] Mail Service bound to java:/Mail
09:17:06,343 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in …/deploy/jboss-ha-local-jdbc.rar
09:17:06,421 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in …/deploy/jboss-ha-xa-jdbc.rar
09:17:06,437 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in …/deploy/jboss-local-jdbc.rar
09:17:06,500 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in …/deploy/jboss-xa-jdbc.rar
09:17:06,578 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in …/deploy/jms/jms-ra.rar
09:17:06,640 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in …/deploy/mail-ra.rar
09:17:06,750 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in …/deploy/quartz-ra.rar
09:17:06,765 INFO [QuartzResourceAdapter] start quartz!!!
09:17:06,828 INFO [SimpleThreadPool] Job execution threads will use class loade
r of thread: main
09:17:06,859 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
09:17:06,859 INFO [RAMJobStore] RAMJobStore initialized.
09:17:06,859 INFO [StdSchedulerFactory] Quartz scheduler ‘DefaultQuartzSchedule
r’ initialized from default resource file in Quartz package: ‘quartz.properties’
09:17:06,875 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
09:17:06,875 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUS
TERED started.
09:17:07,687 INFO [ConnectionFactoryBindingService] Bound ConnectionManager ‘jb
oss.jca:service=DataSourceBinding,name=DefaultDS’ to JNDI name ‘java:DefaultDS’
09:17:08,093 INFO [A] Bound to JNDI name: queue/A
09:17:08,109 INFO [B] Bound to JNDI name: queue/B
09:17:08,109 INFO [C] Bound to JNDI name: queue/C
09:17:08,125 INFO [D] Bound to JNDI name: queue/D
09:17:08,125 INFO [ex] Bound to JNDI name: queue/ex
09:17:08,171 INFO [testTopic] Bound to JNDI name: topic/testTopic
09:17:08,171 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
09:17:08,187 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
09:17:08,187 INFO [testQueue] Bound to JNDI name: queue/testQueue
09:17:08,234 INFO [UILServerILService] JBossMQ UIL service available at : /127.
0.0.1:8093
09:17:08,281 INFO [DLQ] Bound to JNDI name: queue/DLQ
09:17:08,406 INFO [ConnectionFactoryBindingService] Bound ConnectionManager ‘jb
oss.jca:service=ConnectionFactoryBinding,name=JmsXA’ to JNDI name ‘java:JmsXA’
09:17:08,437 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=…/dep
loy/jmx-console.war/
09:17:09,062 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
080
09:17:09,187 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
09:17:09,234 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBos
s_4_2_2_GA date=200710221139)] Started in 52s:16ms
——————————————————————————
In Browser run http://localhost:8080
->JBoss web page
First JSP
=========
1.Create ein Working directory zB: c:\sandbox
2.Anlegen ein file c:\sandbox\index.jsp und editiert:
3.Anlegen ein Verzeichnis c:\sandbox\META-INF
4.Anlegen ein file C:\sandbox\META-INF\application.xml
5.Erzeugen ein WAR-File enhhält: index.jsp
c:\sandbox>jar cf web-app.war index.jsp
6.Erzeugen ein EAR-File enthält: web-app.war und META-INF
c:\sandbox>jar cf helloworld.ear web-app.war META-INF
7.Copy EAR-File helloworld.ear nach C:\jboss\server\all\deploy
8. In browser run: http://localhost:8080/hello
Fazit:
-.WAR file: Web Application Archive
-application.xml: Deployment Descriptor
-.EAR: Enterprise Archive File