4 Replies Latest reply on May 26, 2008 8:54 AM by killerskrl

    Could not access web appliaction deployed in JBoss from anot

    tarek7elmy

      Could not access web appliaction deployed in JBoss from another machine

      i can access web appliaction deployed in JBoss from my machine
      as
      http://localhost:8080/jmx-console

      but when i try to access it throw ip address or name
      it give me server not found
      E.g
      http://thelmy-xp-itworx.com:8080/mywebapp

      note there is no service running on pot 8080

      could anyone tell me how can i fix this problem

        • 1. Re: Could not access web appliaction deployed in JBoss from
          jaikiran

          Use the -b option to start JBoss. See this for more details http://wiki.jboss.org/wiki/JBoss42FAQ

          • 2. Re: Could not access web appliaction deployed in JBoss from
            tarek7elmy

            note that my JBoss version is jboss-4.2.2.GA

            and when i try to run -b 0.0.0.0
            i coud not access any web appliaction also jmx-console

            and the JBoss log write

            http://10.10.17.180:8988/Bobcat-ForecastTool-context-root/ForecastController?assemblyLineName=GWN_SSL&forecastId=1&forecastDate=Mar-2008&userid=22

            • 3. Re: Could not access web appliaction deployed in JBoss from
              jaikiran

              Can you post the console logs when you start the server using -b 0.0.0.0? And when you say, you could not access any web application, what exactly happens? Any errors?

              • 4. Re: Could not access web appliaction deployed in JBoss from

                I am having the same problem. I can get to the JBoss console from http://localhost/ but cannot access it from the web. I have setup a Dynamic DNS with dyndns.com for my router ip, opened all the ports on the router for JBoss but am unable to get to jmx-console or web-console. Here is the output from running JBoss. I am using the -b 0.0.0.0 and I have security setup.

                C:\jboss-4.2.2.GA\bin>run -b 0.0.0.0
                ===============================================================================

                JBoss Bootstrap Environment

                JBOSS_HOME: C:\jboss-4.2.2.GA

                JAVA: C:\Program Files\Java\jdk1.7.0\bin\java

                JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcIn
                terval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

                CLASSPATH: C:\Program Files\Java\jdk1.7.0\lib\tools.jar;C:\jboss-4.2.2.GA\bin\
                run.jar

                ===============================================================================

                07:41:38,390 INFO [Server] Starting JBoss (MX MicroKernel)...
                07:41:38,390 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=
                JBoss_4_2_2_GA date=200710221139)
                07:41:38,390 INFO [Server] Home Dir: C:\jboss-4.2.2.GA
                07:41:38,390 INFO [Server] Home URL: file:/C:/jboss-4.2.2.GA/
                07:41:38,390 INFO [Server] Patch URL: null
                07:41:38,390 INFO [Server] Server Name: default
                07:41:38,390 INFO [Server] Server Home Dir: C:\jboss-4.2.2.GA\server\default
                07:41:38,390 INFO [Server] Server Home URL: file:/C:/jboss-4.2.2.GA/server/defa
                ult/
                07:41:38,406 INFO [Server] Server Log Dir: C:\jboss-4.2.2.GA\server\default\log

                07:41:38,406 INFO [Server] Server Temp Dir: C:\jboss-4.2.2.GA\server\default\tm
                p
                07:41:38,406 INFO [Server] Root Deployment Filename: jboss-service.xml
                07:41:38,640 INFO [ServerInfo] Java version: 1.7.0-ea,Sun Microsystems Inc.
                07:41:38,640 INFO [ServerInfo] Java VM: OpenJDK Client VM 12.0-b03,Sun Microsys
                tems Inc.
                07:41:38,640 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
                07:41:38,968 INFO [Server] Core system initialized
                07:41:41,234 INFO [WebService] Using RMI server codebase: http://localhost:8083
                /
                07:41:41,234 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
                ce:jboss-log4j.xml
                07:41:41,703 INFO [TransactionManagerService] JBossTS Transaction Service (JTA
                version) - JBoss Inc.
                07:41:41,703 INFO [TransactionManagerService] Setting up property manager MBean
                and JMX layer
                07:41:41,859 INFO [TransactionManagerService] Starting recovery manager
                07:41:41,937 INFO [TransactionManagerService] Recovery manager started
                07:41:41,937 INFO [TransactionManagerService] Binding TransactionManager JNDI R
                eference
                07:41:44,046 INFO [EJB3Deployer] Starting java:comp multiplexer
                07:41:45,000 INFO [STDOUT]
                -------------------------------------------------------
                GMS: address is 192.168.2.101:2297
                -------------------------------------------------------
                07:41:47,031 INFO [TreeCache] viewAccepted(): [192.168.2.101:2297|0] [192.168.2
                .101:2297]
                07:41:47,046 INFO [TreeCache] TreeCache local address is 192.168.2.101:2297
                07:41:47,046 INFO [TreeCache] State could not be retrieved (we are the first me
                mber in group)
                07:41:47,046 INFO [TreeCache] parseConfig(): PojoCacheConfig is empty
                07:41:47,125 INFO [STDOUT] no object for null
                07:41:47,125 INFO [STDOUT] no object for null
                07:41:47,140 INFO [STDOUT] no object for null
                07:41:47,156 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
                07:41:47,171 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
                07:41:48,843 INFO [NativeServerConfig] JBoss Web Services - Native
                07:41:48,843 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=20071021
                0837)
                07:41:49,484 INFO [SnmpAgentService] SNMP agent going active
                07:41:49,765 INFO [DefaultPartition] Initializing
                07:41:49,812 INFO [STDOUT]
                -------------------------------------------------------
                GMS: address is 192.168.2.101:2302
                -------------------------------------------------------
                07:41:51,828 INFO [DefaultPartition] Number of cluster members: 1
                07:41:51,828 INFO [DefaultPartition] Other members: 0
                07:41:51,828 INFO [DefaultPartition] Fetching state (will wait for 30000 millis
                econds):
                07:41:51,828 INFO [DefaultPartition] State could not be retrieved (we are the f
                irst member in group)
                07:41:51,859 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, bac
                klog=50, bindAddress=/0.0.0.0
                07:41:51,875 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.
                0.0.0:1102, group=230.0.0.4, HA-JNDI address=192.168.2.101:1100
                07:41:52,406 INFO [TreeCache] No transaction manager lookup class has been defi
                ned. Transactions cannot be used
                07:41:52,687 INFO [STDOUT]
                -------------------------------------------------------
                GMS: address is 192.168.2.101:2306
                -------------------------------------------------------
                07:41:54,703 INFO [TreeCache] viewAccepted(): [192.168.2.101:2306|0] [192.168.2
                .101:2306]
                07:41:54,703 INFO [TreeCache] TreeCache local address is 192.168.2.101:2306
                07:41:54,812 INFO [STDOUT]
                -------------------------------------------------------
                GMS: address is 192.168.2.101:2310
                -------------------------------------------------------
                07:41:56,812 INFO [TreeCache] viewAccepted(): [192.168.2.101:2310|0] [192.168.2
                .101:2310]
                07:41:56,828 INFO [TreeCache] TreeCache local address is 192.168.2.101:2310
                07:41:57,250 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6
                D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E300000000
                0000200000000000000F8000102000000000E3139322E3136382E322E313031000DC8000000114A4
                26F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000
                000010000001C0000000000010001000000010501000100010109000000010501000100000021000
                0007000000000000000010000000000000024000000200000007E00000000000000010000000E313
                9322E3136382E322E313031000DC9004000000000000806066781020101010000001704010008060
                66781020101010000000764656661756C74000000000000000000000000000000000000000020000
                00004000000000000001F00000004000000030000000100000020000000000000000200000020000
                00004000000000000001F0000000400000003]
                07:41:57,343 INFO [CorbaTransactionService] TransactionFactory: [IOR:0000000000
                00003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E46616374
                6F72794578743A312E30000000000200000000000000F8000102000000000E3139322E3136382E32
                2E313031000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000
                000008000000004A414300000000010000001C000000000001000100000001050100010001010900
                00000105010001000000210000007000000000000000010000000000000024000000200000007E00
                000000000000010000000E3139322E3136382E322E313031000DC900400000000000080606678102
                010101000000170401000806066781020101010000000764656661756C7400000000000000000000
                000000000000000000002000000004000000000000001F0000000400000003000000010000002000
                000000000000020000002000000004000000000000001F0000000400000003]
                07:41:57,937 INFO [Embedded] Catalina naming disabled
                07:41:58,093 INFO [AprLifecycleListener] The Apache Tomcat Native library which
                allows optimal performance in production environments was not found on the java
                .library.path: C:\Program Files\Java\jdk1.7.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\W
                INDOWS\system32;C:\WINDOWS;C:\Program Files\Microsoft Visual Studio 9.0\Common7\
                IDE;C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files\Microso
                ft Visual Studio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WI
                NDOWS\Microsoft.NET\Framework\v3.5\Microsoft .NET Framework 3.5 (Pre-Release Ver
                sion);C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft V
                isual Studio 9.0\VC\VCPackages;C:\Program Files\\Microsoft SDKs\Windows\v6.0A\bi
                n;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\
                jdk1.7.0\bin;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\PROGRA~1\Bo
                rland\Delphi6\Bin;C:\PROGRA~1\Borland\Delphi6\Projects\Bpl;C:\Program Files\SEGA
                \Taito Legends;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program F
                iles\Microsoft SQL Server\90\DTS\Binn\;C:\WINDOWS\DPDrv;C:\Program Files\QuickTi
                me\QTSystem\;C:\Program Files\Tomcat 6.0\lib;C:\Sun\AppServer\bin;C:\Sun\AppServ
                er\bin;;C:\Sun\jwsdp-2.0\jwsdp-shared\bin;
                07:41:58,156 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0
                -80
                07:41:58,156 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-0.0.0.0-8010

                07:41:58,156 INFO [Catalina] Initialization processed in 219 ms
                07:41:58,156 INFO [StandardService] Starting service jboss.web
                07:41:58,156 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
                07:41:58,203 INFO [Catalina] Server startup in 46 ms
                07:41:58,312 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-w
                eb.deployer/ROOT.war/
                07:41:58,843 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/
                httpha-invoker.sar/invoker.war/
                07:41:58,953 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/
                jbossws.sar/jbossws-context.war/
                07:41:59,031 INFO [TomcatDeployer] deploy, ctxPath=/juddi, warUrl=.../deploy/ju
                ddi-service.sar/juddi.war/
                07:41:59,109 INFO [RegistryServlet] Loading jUDDI configuration.
                07:41:59,109 INFO [RegistryServlet] Resources loaded from: /WEB-INF/juddi.prope
                rties
                07:41:59,109 INFO [RegistryServlet] Initializing jUDDI components.
                07:41:59,343 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../
                deploy-hasingleton/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
                07:41:59,562 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep
                loy/management/console-mgr.sar/web-console.war/
                07:41:59,953 INFO [MailService] Mail Service bound to java:/Mail
                07:42:00,343 INFO [RARDeployment] Required license terms exist, view META-INF/r
                a.xml in .../deploy/jboss-ha-local-jdbc.rar
                07:42:00,375 INFO [RARDeployment] Required license terms exist, view META-INF/r
                a.xml in .../deploy/jboss-ha-xa-jdbc.rar
                07:42:00,406 INFO [RARDeployment] Required license terms exist, view META-INF/r
                a.xml in .../deploy/jboss-local-jdbc.rar
                07:42:00,437 INFO [RARDeployment] Required license terms exist, view META-INF/r
                a.xml in .../deploy/jboss-xa-jdbc.rar
                07:42:00,484 INFO [RARDeployment] Required license terms exist, view META-INF/r
                a.xml in .../deploy/jms/jms-ra.rar
                07:42:00,515 INFO [RARDeployment] Required license terms exist, view META-INF/r
                a.xml in .../deploy/mail-ra.rar
                07:42:00,562 INFO [RARDeployment] Required license terms exist, view META-INF/r
                a.xml in .../deploy/quartz-ra.rar
                07:42:00,562 INFO [QuartzResourceAdapter] start quartz!!!
                07:42:00,625 INFO [SimpleThreadPool] Job execution threads will use class loade
                r of thread: main
                07:42:00,656 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
                07:42:00,656 INFO [RAMJobStore] RAMJobStore initialized.
                07:42:00,656 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzSchedule
                r' initialized from default resource file in Quartz package: 'quartz.properties'

                07:42:00,656 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
                07:42:00,656 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUS
                TERED started.
                07:42:01,171 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
                oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
                07:42:01,390 INFO [A] Bound to JNDI name: queue/A
                07:42:01,406 INFO [B] Bound to JNDI name: queue/B
                07:42:01,406 INFO [C] Bound to JNDI name: queue/C
                07:42:01,406 INFO [D] Bound to JNDI name: queue/D
                07:42:01,406 INFO [ex] Bound to JNDI name: queue/ex
                07:42:01,421 INFO [testTopic] Bound to JNDI name: topic/testTopic
                07:42:01,421 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
                07:42:01,421 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic

                07:42:01,421 INFO [testQueue] Bound to JNDI name: queue/testQueue
                07:42:01,453 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.
                0.0:8093
                07:42:01,500 INFO [DLQ] Bound to JNDI name: queue/DLQ
                07:42:01,593 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
                oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
                07:42:01,609 INFO [TomcatDeployer] deploy, ctxPath=/AcesHiiiiiiiigh.kicks-ass.n
                et, warUrl=.../deploy/AcesHiiiiiiiigh.kicks-ass.net.war/
                07:42:01,703 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
                loy/jmx-console.war/
                07:42:01,781 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.2.2.GA/
                server/default/deploy/TestApplication.ear/
                07:42:02,265 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jbo
                ss.ejb3.stateless.StatelessContainer
                07:42:02,265 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=TestA
                pplication.ear,jar=TestApplicationEJB.jar,name=HelloWorldBean,service=EJB3 with
                dependencies:
                07:42:02,421 INFO [EJBContainer] STARTED EJB: lesson.stateless.HelloWorldBean e
                jbName: HelloWorldBean
                07:42:02,484 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.2.2.GA/server/defau
                lt/deploy/TestApplication.ear/TestApplicationEJB.jar/
                07:42:02,484 INFO [TomcatDeployer] deploy, ctxPath=/TestApplicationWeb, warUrl=
                .../deploy/TestApplication.ear/TestApplicationWeb.war/
                07:42:02,562 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-4.2.2.
                GA/server/default/deploy/TestApplication.ear/
                07:42:02,671 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-80
                07:42:02,718 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8010
                07:42:02,718 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBos
                s_4_2_2_GA date=200710221139)] Started in 24s:312ms

                Thanks,

                Kenneth