1 Reply Latest reply on Oct 7, 2010 9:11 PM by Jeffrey Jia

    can't access application via http protocal

    superload zc Newbie

      i just config my env according with quick start guide and comments jboss ajp protocal for http protocal to access my appclication but can't access successfully by http.   if open ajp, everything is ok.   i don't know why .  could anybody help me to resolve it?

       

      Env:

             httpd-2.2.16        modc-cluster1.0.3GA for jboss 5.1.0GA

       

      my http.conf below:

       

      <VirtualHost 192.168.1.100:9999>
                <Directory />
                Order deny,allow
                Allow from all
              </Directory>

       

              KeepAliveTimeout 60
              MaxKeepAliveRequests 0

       

              ManagerBalancerName mycluster
              ServerAdvertise On
              AdvertiseFrequency 5
             ProxyPass / balancer://mycluster/
      </VirtualHost>

      <Location /mod_cluster-manager>
                SetHandler mod_cluster-manager
                Order deny,allow
      #         Deny from all
                Allow from all
              </Location>

       

       

      There is some exception when access appcliation via URL

       

      21:32:57,629 INFO  [DefaultMCMPHandler] IO error sending command STATUS to proxy 192.168.1.100:9999
      java.net.ConnectException: Connection refused
              at java.net.PlainSocketImpl.socketConnect(Native Method)
              at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
              at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
              at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
              at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
              at java.net.Socket.connect(Socket.java:529)
              at java.net.Socket.connect(Socket.java:478)
              at java.net.Socket.<init>(Socket.java:375)
              at java.net.Socket.<init>(Socket.java:218)
              at javax.net.DefaultSocketFactory.createSocket(SocketFactory.java:212)
              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler$Proxy.getConnection(DefaultMCMPHandler.java:1139)
              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler$Proxy.getConnectionWriter(DefaultMCMPHandler.java:1164)
              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.sendRequest(DefaultMCMPHandler.java:774)
              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.sendRequest(DefaultMCMPHandler.java:884)
              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.sendRequest(DefaultMCMPHandler.java:692)
              at org.jboss.modcluster.CatalinaEventHandler.status(CatalinaEventHandler.java:331)
              at org.jboss.modcluster.CatalinaEventHandler.status(CatalinaEventHandler.java:55)
              at org.jboss.modcluster.CatalinaEventHandlerAdapter.lifecycleEvent(CatalinaEventHandlerAdapter.java:163)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
              at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1348)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1612)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1601)
              at java.lang.Thread.run(Thread.java:619)
      21:35:48,476 INFO  [DefaultMCMPHandler] IO error sending command STATUS to proxy 192.168.1.100:9999
      java.net.SocketException: Connection reset
              at java.net.SocketInputStream.read(SocketInputStream.java:168)
              at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
              at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
              at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
              at java.io.InputStreamReader.read(InputStreamReader.java:167)
              at java.io.BufferedReader.fill(BufferedReader.java:136)
              at java.io.BufferedReader.readLine(BufferedReader.java:299)
              at java.io.BufferedReader.readLine(BufferedReader.java:362)
              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.sendRequest(DefaultMCMPHandler.java:792)
              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.sendRequest(DefaultMCMPHandler.java:884)
              at org.jboss.modcluster.mcmp.impl.DefaultMCMPHandler.sendRequest(DefaultMCMPHandler.java:692)
              at org.jboss.modcluster.CatalinaEventHandler.status(CatalinaEventHandler.java:331)
              at org.jboss.modcluster.CatalinaEventHandler.status(CatalinaEventHandler.java:55)
              at org.jboss.modcluster.CatalinaEventHandlerAdapter.lifecycleEvent(CatalinaEventHandlerAdapter.java:163)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
              at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1348)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1612)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1601)
              at java.lang.Thread.run(Thread.java:619)