1 Reply Latest reply on Feb 2, 2005 5:00 PM by George A Loose Jr

    server on multiple ports: Tomcat runs, JBoss doesnt

    Rahul Chaudhary Newbie

      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

       <!-- ======================================= -->
       <!-- 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">

      My pionweb folder structure is

      context.xml page contains the following line
      <context path="" />

      The following is the screen dump of JBoss
       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
      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
      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
      14:08:34,959 INFO [Embedded] Catalina naming disabled
      14:08:35,740 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-
      14:08:35,803 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-
      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-
      14:08:36,131 INFO [ChannelSocket] JK2: ajp13 listening on /
      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
      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
      14:08:38,662 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/JBoss/jboss-4.0.0/server/defa
      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
      14:08:43,927 INFO [naming] re-Bound name: TransactionService
      14:08:43,927 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F7267
      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
      14:08:45,459 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/J
      14:08:45,818 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/J
      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 : /
      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/
      14:08:50,505 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/JBoss/jboss-4.0.0/
      14:08:51,427 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/JBoss/jboss-4.0.0/server/defa
      14:08:51,912 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-
      14:08:51,958 INFO [ChannelSocket] JK2: ajp13 listening on /
      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

        • 1. Re: server on multiple ports: Tomcat runs, JBoss doesnt
          George A Loose Jr Newbie

          I'm very new to installing and running JBoss, but during my experiment to run on an IBM AS400 under OS400 V5R2, I found I was having a problem with the jacorb.properties file not being located.

          I believe I understand that an application may not need to use ORB services, but in case this is related to your problem, I'll log my observations.

          This seems to be one of the files that contributes to a multi-port implementation, allowing you to specify IP addresses and ports. Thus, if this file is not found by the JBoss start-up process, your configuration will never be recognized.

          The best I can tell, it is the intention of JBoss to find the jacorb.properties in the JBOSS_HOME/server/<my_server_name>/conf directory. The 4.0 distro includes four variations of the server: all, default, minimal and standard. There is a copy of the jacorb.portal file in the /conf directory under each server definition. If you don't specify a server name as a parameter given to the run.sh (or your method of starting JBoss), then JBoss uses the default server definitions.

          The problem I see appearing in your start-up log, same as in mine, is that just after the TomcatDeploy runs, the attempt to start an ORB begins with the INFO warning:

          [STDOUT] [ jacorb.home unset! Will use '.' ]

          In other words, JBoss is failing to discover the jacorb.properties file in the /conf directory for a given server. I'm still researching how it might be possible to set the property "jacorb.home" and feed that into the start-up process. There is probably some xml file in the JBoss directories that I can configure to overcome this apparent deficiency in the JBoss default start-up routines.

          Meanwhile, the work-around I found that allowed me to engage a modified copy of jacorb.properties was suggested by the error message above. I copied my modified version of this file in the the default home directory for the start-up process, which for me (and I assume, in general) is jboss.home/bin/. Once I had placed a copy in the /bin directory under the JBoss install directory, the start-up routines were able to locate and use my custom configuration.

          HELP?: I would appreciate any response about how the jacorb.home attribute can be set!