voyent
Asynchronous HTTP Server configuration to use AJP incorrect  XML
Forum Index -> Async HTTP Server
Author Message
zzzz8

Joined: 07/Dec/2005 00:00:00
Messages: 270
Offline


I followed the AHS deployment guide in an attempt to configure AHS. Unfortunately, when I tried the AJP configuration on page 11 of the AHS deployment guide, it didn't work. Since I'm not an expert in Apache, I don't know what to look for, but I didn't find anything incriminating in the Apache logs. Interestingly, if I use the mod_jk configuration, then it works!

I have the following configuration:

Windows XP Pro (for development)
JBoss 4.0.5GA (installed from JEMS installer 1.2.0GA)
Java 5
Apache 2.2.4 (w/ SSL)
ICEfaces 1.6
ICEfaces AHS 1.6

zzzz8

Joined: 07/Dec/2005 00:00:00
Messages: 270
Offline


JIRA: http://jira.icefaces.org/browse/ICE-1959
jack.van.ooststroom


Joined: 26/Oct/2004 00:00:00
Messages: 223
Offline


Hi,

Can you post your Apache configuration file (httpd.conf), or otherwise the VirtualHost part of the configuration file that configures the ICEfaces and Asynchronous HTTP Server traffic?

Regards,

Jack van Ooststroom
Senior Developer
ICEsoft Technologies, Inc.
[Email]
zzzz8

Joined: 07/Dec/2005 00:00:00
Messages: 270
Offline


Here's my VirtualHost configuration:

Code:
<VirtualHost _default_>
 ServerAdmin webmaster@host.example.com
 DocumentRoot /var/www/html/host.example.com
 ServerName host.example.com
 ErrorLog logs/host.example.com-error_log
 TransferLog logs/host.example.com-access_log
 <IfModule mod_proxy.c>
 ProxyRequests Off
 <Proxy *>
 Order deny,allow
 Allow from all
 </Proxy>
 # The following two directives will route all blocking requests to the
 # Asynchronous HTTP Server (identified by host:port).
 ProxyPass /MyApp/block/receive-updated-views http://localhost:51315/MyApp/block/receive-updated-views
 ProxyPassReverse /MyApp/block/receive-updated-views http://localhost:51315/MyApp/block/receive-updated-views
 # The following two directives will route all other requests to the
 # application server (identified by host:port).
 ProxyPass /MyApp ajp://localhost:8009/MyApp
 ProxyPassReverse /MyApp ajp://localhost:8009/MyApp
 </IfModule>
 
 RewriteEngine On
 
 RewriteCond %{SERVER_PORT} ^80
 RewriteCond %{REQUEST_URI} ^/MyApp
 RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [R=301,L]
 </VirtualHost>


Of course, "MyApp" is my application context root.
jack.van.ooststroom


Joined: 26/Oct/2004 00:00:00
Messages: 223
Offline


Try to move the RewriteEngine, RewriteCond and RewriteRule directives before the IfModule container.

Regards,

Jack van Ooststroom
Senior Developer
ICEsoft Technologies, Inc.
[Email]
zzzz8

Joined: 07/Dec/2005 00:00:00
Messages: 270
Offline


After your suggestion, I'm seeing the following error right now:

Code:
23:57:00,812 FATAL [AsyncHttpServer] Failed to subscribe to topic: icefaces.cont
 extEventTopic
 com.icesoft.util.net.messaging.MessageServiceException: javax.naming.Communicati
 onException: Could not obtain connection to any of these urls: localhost:1099 an
 d discovery failed with error: javax.naming.CommunicationException: Receive time
 d out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Ro
 ot exception is javax.naming.CommunicationException: Failed to retrieve stub fro
 m server localhost:1099 [Root exception is java.io.EOFException]]
         at com.icesoft.util.net.messaging.jms.JMSAdapter.subscribe(JMSAdapter.ja
 va:310)
         at com.icesoft.util.net.messaging.MessageServiceClient.subscribe(Message
 ServiceClient.java:791)
         at com.icesoft.util.net.messaging.MessageServiceClient.subscribe(Message
 ServiceClient.java:759)
         at com.icesoft.faces.async.server.AsyncHttpServer.setUpMessageServiceCli
 ent(AsyncHttpServer.java:1165)
         at com.icesoft.faces.async.server.AsyncHttpServer.start(AsyncHttpServer.
 java:981)
         at com.icesoft.faces.async.server.AsyncServlet.init(AsyncServlet.java:18
 4)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
 java:1105)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:93
 2)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
 t.java:3951)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
 225)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
 .java:759)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
 9)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
 
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:
 503)
         at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:1
 64)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.apache.catalina.core.StandardContext.init(StandardContext.java:50
 52)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:
 503)
         at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:1
 64)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatD
 eployer.java:297)
         at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.
 java:103)
         at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
 
         at org.jboss.web.WebModule.startModule(WebModule.java:83)
         at org.jboss.web.WebModule.startService(WebModule.java:61)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
 upport.java:289)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
 eanSupport.java:245)
         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
 er.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
 java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
 ler.java:978)
         at $Proxy0.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:417)
         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
 er.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
 java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy42.start(Unknown Source)
         at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:46
 6)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
 er.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
 or.java:133)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
 BeanOperationInterceptor.java:142)
         at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor
 .java:97)
         at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(Intercepto
 rServiceMBeanSupport.java:238)
         at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInte
 rceptor.java:92)
         at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
 start(SubDeployerInterceptorSupport.java:188)
         at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
 ptor.java:95)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
 java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy43.start(Unknown Source)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
         at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
 er.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
 or.java:133)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
 BeanOperationInterceptor.java:142)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
 java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy8.deploy(Unknown Source)
         at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
 tScanner.java:421)
         at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
 canner.java:634)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
 doScan(AbstractDeploymentScanner.java:263)
         at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
 bstractDeploymentScanner.java:336)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
 upport.java:289)
         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
 eanSupport.java:245)
         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
 er.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
 java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
 ler.java:978)
         at $Proxy0.start(Unknown Source)
         at org.jboss.system.ServiceController.start(ServiceController.java:417)
         at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
 er.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
 java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy4.start(Unknown Source)
         at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
         at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
 er.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
 or.java:133)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
 BeanOperationInterceptor.java:142)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
 java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
         at $Proxy5.deploy(Unknown Source)
         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
         at org.jboss.Main.boot(Main.java:200)
         at org.jboss.Main$1.run(Main.java:490)
         at java.lang.Thread.run(Thread.java:595)
 Caused by: javax.naming.CommunicationException: Could not obtain connection to a
 ny of these urls: localhost:1099 and discovery failed with error: javax.naming.C
 ommunicationException: Receive timed out [Root exception is java.net.SocketTimeo
 utException: Receive timed out] [Root exception is javax.naming.CommunicationExc
 eption: Failed to retrieve stub from server localhost:1099 [Root exception is ja
 va.io.EOFException]]
         at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1414)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
         at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
         at javax.naming.InitialContext.lookup(InitialContext.java:351)
         at com.icesoft.util.net.messaging.jms.JMSAdapter.lookUpTopic(JMSAdapter.
 java:413)
         at com.icesoft.util.net.messaging.jms.JMSAdapter.subscribe(JMSAdapter.ja
 va:303)
         ... 142 more
 Caused by: javax.naming.CommunicationException: Failed to retrieve stub from ser
 ver localhost:1099 [Root exception is java.io.EOFException]
         at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:263)
         at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
         ... 147 more
 Caused by: java.io.EOFException
         at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream
 .java:2232)
         at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputS
 tream.java:2698)
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:750
 )
         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:268)
         at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:250)
         ... 148 more
 23:57:02,687 INFO  [ThreadFactory] New thread: MessageReceiver Thread [1]
zzzz8

Joined: 07/Dec/2005 00:00:00
Messages: 270
Offline


Actually, I see that when I use mod_jk, too. But with mod_jk, it works. Unfortunately, with AJP, it still doesn't work...
zzzz8

Joined: 07/Dec/2005 00:00:00
Messages: 270
Offline


Hmm, the stack trace didn't show up this morning. However, the AJP issue still happens...
 
Forum Index -> Async HTTP Server
Go to:   
Powered by JForum 2.1.7ice © JForum Team