server on multiple ports: Tomcat runs, JBoss doesnt
jawanrc Dec 27, 2004 2:24 PMHi,
I'm having trouble running JBoss on multiple ports.
I dont want to implement clustering but just have JBoss server different 'website' at different ports.
I have the default website running at port 8080, now I want to bring up another one at port 8000.
JBoss does listen at port 8000 but is not serving any pages. Firefox shows an empty page and IE shows IE's default 400-Bad Request page.
Settings done in Tomcat5 worked, but similar settings in JBoss' tomcat doesnt seem to work.
I made the following modification in
C:\JBoss\jboss-4.0.0\server\default\deploy\jbossweb-tomcat50.sar\server.xml <!-- ======================================= --> <!-- Define the PionZone Stand-Alone Service --> <!-- ======================================= --> <Service name="PionZone"> <!-- Define a non-SSL HTTP/1.1 Connector on port 8000 --> <Connector port="8000" address="${jboss.bind.address}" maxPostSize="0" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> <!-- Define a SSL HTTP/1.1 Connector on port 8443 --> <!-- <HTTP port="82" address="${jboss.bind.address}" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" /> --> <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector port="9009" address="${jboss.bind.address}" enableLookups="false" redirectPort="90" protocol="AJP/1.3" /> <!-- Define the top level container in our container hierarchy --> <Engine name="PionZone" defaultHost="pionapps"> <Host name="pionapps" appBase="${jboss.server.home.dir}/pionwebapp" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>localhost</Alias> <Alias>pionzone.com</Alias> <Alias>www.pionzone.com</Alias> </Host> </Engine> </Service>
My pionweb folder structure is
C:\JBoss\jboss-4.0.0\server\default\pionwebapp
C:\JBoss\jboss-4.0.0\server\default\pionwebapp\ROOT.war
C:\JBoss\jboss-4.0.0\server\default\pionwebapp\ROOT.war\index.html
C:\JBoss\jboss-4.0.0\server\default\pionwebapp\ROOT.war\META-INF
C:\JBoss\jboss-4.0.0\server\default\pionwebapp\ROOT.war\META-INF\context.xml
C:\JBoss\jboss-4.0.0\server\default\pionwebapp\ROOT.war\WEB-INF
C:\JBoss\jboss-4.0.0\server\default\pionwebapp\ROOT.war\WEB-INF\web.xml
context.xml page contains the following line
<context path="" />
The following is the screen dump of JBoss
C:\JBoss\jboss-4.0.0\bin>run =============================================================================== . JBoss Bootstrap Environment . JBOSS_HOME: C:\JBoss\jboss-4.0.0\bin\\.. . JAVA: C:\Java\jdk1.5.0\bin\java . JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m . CLASSPATH: C:\Java\jdk1.5.0\lib\tools.jar;C:\JBoss\jboss-4.0.0\bin\\run.jar . =============================================================================== . 14:08:14,850 INFO [Server] Starting JBoss (MX MicroKernel)... 14:08:14,850 INFO [Server] Release ID: JBoss [Zion] 4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200 418) 14:08:14,850 INFO [Server] Home Dir: C:\JBoss\jboss-4.0.0 14:08:14,850 INFO [Server] Home URL: file:/C:/JBoss/jboss-4.0.0/ 14:08:14,850 INFO [Server] Library URL: file:/C:/JBoss/jboss-4.0.0/lib/ 14:08:14,850 INFO [Server] Patch URL: null 14:08:14,850 INFO [Server] Server Name: default 14:08:14,850 INFO [Server] Server Home Dir: C:\JBoss\jboss-4.0.0\server\default 14:08:14,850 INFO [Server] Server Home URL: file:/C:/JBoss/jboss-4.0.0/server/default/ 14:08:14,850 INFO [Server] Server Data Dir: C:\JBoss\jboss-4.0.0\server\default\data 14:08:14,866 INFO [Server] Server Temp Dir: C:\JBoss\jboss-4.0.0\server\default\tmp 14:08:14,866 INFO [Server] Server Config URL: file:/C:/JBoss/jboss-4.0.0/server/default/conf/ 14:08:14,866 INFO [Server] Server Library URL: file:/C:/JBoss/jboss-4.0.0/server/default/lib/ 14:08:14,866 INFO [Server] Root Deployment Filename: jboss-service.xml 14:08:14,866 INFO [Server] Starting General Purpose Architecture (GPA)... 14:08:15,381 INFO [ServerInfo] Java version: 1.5.0-rc,Sun Microsystems Inc. 14:08:15,381 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0-rc-b63,Sun Microsystems In c. 14:08:15,381 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 14:08:15,975 INFO [Server] Core system initialized 14:08:19,350 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml 14:08:19,475 INFO [WebService] Using RMI server codebase: http://rchaudhary-33222:8083/ 14:08:19,788 INFO [NamingService] Started jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0. 0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad09 3076 14:08:34,959 INFO [Embedded] Catalina naming disabled 14:08:35,740 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080 14:08:35,803 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8000 14:08:35,803 INFO [Catalina] Initialization processed in 766 ms 14:08:35,803 INFO [StandardService] Starting service jboss.web 14:08:35,803 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.28 14:08:35,834 INFO [StandardHost] XML validation disabled 14:08:35,881 INFO [StandardService] Starting service PionZone 14:08:35,881 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.28 14:08:35,881 INFO [StandardHost] XML validation disabled 14:08:35,881 INFO [StandardHost] Create Host deployer for direct deployment ( non-jmx ) 14:08:35,896 WARN [HostConfig] Exception while expanding web application archive ROOT.war 14:08:35,943 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8000 14:08:36,131 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:9009 14:08:36,131 INFO [JkMain] Jk running ID=0 time=0/78 config=null 14:08:36,146 INFO [Catalina] Server startup in 343 ms 14:08:36,412 INFO [TomcatDeployer] deploy, ctxPath=/ebxmlrr, warUrl=file:/C:/JBoss/jboss-4.0.0/serv er/default/deploy/ebxmlrr-service.sar/ebxmlrr.war/ 14:08:36,834 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined 14:08:37,178 INFO [STDOUT] Initialized REST 14:08:37,303 INFO [SAAJServlet] init 14:08:38,053 INFO [SAAJServlet] init 14:08:38,412 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/C:/JBoss/jboss-4.0.0/server /default/tmp/deploy/tmp60269jboss-ws4ee-exp.war/ 14:08:38,662 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/JBoss/jboss-4.0.0/server/defa ult/deploy/jbossweb-tomcat50.sar/ROOT.war/ 14:08:43,037 INFO [STDOUT] [ jacorb.home unset! Will use '.' ] 14:08:43,037 INFO [STDOUT] [ File .\jacorb.properties for configuration jacorb not found ] 14:08:43,381 INFO [interceptors] InterceptorManager started with 2 SIs, 2 CIs and 4 IORIs 14:08:43,568 INFO [orb] ORB run 14:08:43,756 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734 E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000E8000102000000000C313 02E31362E34302E3839000DC80000000000114A426F73732F4E616D696E672F726F6F7400000000000006000000000000000 8000000004A414300000000010000001C0000000000010001000000010501000100010109000000010501000100000014000 000080000001A00000DC90000002100000050000000000000000100000000000000240000001E0000007E000000000000000 10000000C31302E31362E34302E3839000DC9000000000000000000000000000000000000000000000000000000000000000 0002000000004000000000000001F000000040000000300000001000000440000000000000003000000010000001C0000000 00001000100000001050100010001010900000001050100010000002000000004000000000000001F0000000400000003] 14:08:43,927 INFO [naming] re-Bound name: TransactionService 14:08:43,927 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F7267 2F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E3000000000020000000000 0000E8000102000000000C31302E31362E34302E3839000DC80000000000144A426F73732F5472616E73616374696F6E732F 46000000060000000000000008000000004A414300000000010000001C000000000001000100000001050100010001010900 0000010501000100000014000000080000001A00000DC9000000210000005000000000000000010000000000000024000000 1E0000007E00000000000000010000000C31302E31362E34302E3839000DC900000000000000000000000000000000000000 00000000000000000000000000002000000004000000000000001F0000000400000003000000010000004400000000000000 03000000010000001C0000000000010001000000010501000100010109000000010501000100000020000000040000000000 00001F0000000400000003] 14:08:43,943 INFO [naming] re-Bound name: UserTransaction 14:08:45,240 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/J Boss/jboss-4.0.0/server/default/deploy/jboss-local-jdbc.rar 14:08:45,459 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/J Boss/jboss-4.0.0/server/default/deploy/jboss-xa-jdbc.rar 14:08:45,818 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/J Boss/jboss-4.0.0/server/default/deploy/jms/jms-ra.rar 14:08:47,334 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for Conn ectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS to JNDI name 'java:DefaultDS' 14:08:47,724 INFO [ConnectionFactoryBindingService] Bound connection factory for resource adapter f or ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA to JNDI name 'java:JmsXA ' 14:08:48,490 INFO [A] Bound to JNDI name: queue/A 14:08:48,505 INFO [B] Bound to JNDI name: queue/B 14:08:48,505 INFO [C] Bound to JNDI name: queue/C 14:08:48,505 INFO [D] Bound to JNDI name: queue/D 14:08:48,505 INFO [ex] Bound to JNDI name: queue/ex 14:08:49,177 INFO [testTopic] Bound to JNDI name: topic/testTopic 14:08:49,177 INFO [securedTopic] Bound to JNDI name: topic/securedTopic 14:08:49,193 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic 14:08:49,193 INFO [testQueue] Bound to JNDI name: queue/testQueue 14:08:49,193 INFO [DLQ] Bound to JNDI name: queue/DLQ 14:08:49,443 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093 14:08:50,005 INFO [MailService] Mail Service bound to java:/Mail 14:08:50,162 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C:/JBoss/jboss-4.0.0/ server/default/deploy/jmx-console.war/ 14:08:50,505 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/JBoss/jboss-4.0.0/ server/default/deploy/management/web-console.war/ 14:08:51,427 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/JBoss/jboss-4.0.0/server/defa ult/pionwebapp/ROOT.war/ 14:08:51,912 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080 14:08:51,958 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009 14:08:51,958 INFO [JkMain] Jk running ID=0 time=0/15 config=null 14:08:51,974 INFO [Server] JBoss (MX MicroKernel) [4.0.0 (build: CVSTag=JBoss_4_0_0 date=2004092004 18)] Started in 37s:30ms