voyent
AHS and Tomcat 6.0.14  XML
Forum Index -> Async HTTP Server
Author Message
sendewelt

Joined: 04/Sep/2007 00:00:00
Messages: 47
Offline


Hi,

i tried so set up ahs as a servlet on tomcat 6.0.14 with the surrent sources (1.7 beta). ahs servlet gets initialized, here a snippet from my server startup:

12.03.2008 13:50:49 org.apache.catalina.core.ApplicationContext log
INFO: default: DefaultServlet.init: input buffer size=2048, output buffer size=2048
2008-03-12 13:50:49,546 INFO JMSAdapter - JMS Environment:
java.naming.provider.url = tcp://localhost:61616?wireFormat.maxInactivityDuration=0
java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory

2008-03-12 13:50:49,953 INFO ThreadFactory - New thread: MessageReceiver Thread [1]
2008-03-12 13:50:49,953 INFO JMSSubscriberConnection$MessageReceiver - MessageReceiver [message_type = 'BufferedContextEvents' OR message_type = 'ContextEvent'] started.
2008-03-12 13:50:49,984 INFO ThreadFactory - New thread: MessageReceiver Thread [2]
2008-03-12 13:50:49,984 INFO JMSSubscriberConnection$MessageReceiver - MessageReceiver [message_type = 'Announcement' OR message_type = 'Purge' OR message_type = 'UpdatedViews' AND (destination_nodeAddress IS NULL OR destination_nodeAddress = '217.148.131.144')] started.
2008-03-12 13:50:49,984 INFO AsyncHttpServlet - Starting the Asynchronous HTTP Server in servlet-mode...

seems to be fine !!??
but when i now try do sth in the webapp i get the followng exception:

2008-03-12 13:52:20,453 ERROR AsyncServerDetector - Failed to instantiate AsyncHttpServerAdaptingServlet!
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.icesoft.faces.webapp.http.core.AsyncServerDetector.<init>(AsyncServerDetector.java:37)
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.<init>(MainSessionBoundServlet.java:85)
at com.icesoft.faces.webapp.http.servlet.MainServlet$3.newServlet(MainServlet.java:61)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.sessionCreated(SessionDispatcher.java:59)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.notifySessionInitialized(SessionDispatcher.java:82)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.notifyIfNew(SessionDispatcher.java:41)
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:34)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:79)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:343)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:54)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.valves.CometConnectionManagerValve.invoke(CometConnectionManagerValve.java:256)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:354)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: org.apache.activemq.ActiveMQConnectionFactory cannot be cast to javax.jms.TopicConnectionFactory
at com.icesoft.net.messaging.jms.JMSAdapter.initialize(JMSAdapter.java:403)
at com.icesoft.net.messaging.jms.JMSAdapter.subscribe(JMSAdapter.java:294)
at com.icesoft.net.messaging.MessageServiceClient.subscribe(MessageServiceClient.java:791)
at com.icesoft.net.messaging.MessageServiceClient.subscribe(MessageServiceClient.java:759)
at com.icesoft.faces.async.server.AsyncHttpServerAdaptingServlet.setUpMessageClientService(AsyncHttpServerAdaptingServlet.java:148)
at com.icesoft.faces.async.server.AsyncHttpServerAdaptingServlet.<init>(AsyncHttpServerAdaptingServlet.java:92)
... 53 more



Any help would be greatly appreciated,


Br,

Andi
sendewelt

Joined: 04/Sep/2007 00:00:00
Messages: 47
Offline


hi folks,

we solved the problem. we two jms.jar files in the classpath, after removing it from the webapp lib (one in tomcat lib remains). the ahs seems to work fine now.


thx anyways,

andi
elhade

Joined: 07/Apr/2008 00:00:00
Messages: 1
Offline


Hi all. I got these error messages. What does it mean? How to coup such kind of situation?

05.05.2008 08:56:46 *ERROR* MessageServiceConfigurationProperties: Parameter not defined: com.icesoft.net.messaging.properties (MessageServiceConfigurationProperties.java, line 85)
05.05.2008 08:56:46 *ERROR* AsyncServerDetector: Failed to instantiate AsyncHttpServerAdaptingServlet! (AsyncServerDetector.java, line 61)

If the topic already discussed, let me know the URL...

Regards
jack.van.ooststroom


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


Hello,

If you're trying to get your ICEfaces application to run on Tomcat 6 with the Asynchronous HTTP Server (AHS) as well, using ActiveMQ as the JMS Message Broker, please make sure the com.icesoft.net.messaging.properties context parameter is defined in your application's web.xml. In this case the value should be activemq.properties. Depending on what mode you want AHS to run in, servlet-mode or server-mode, other context parameters need to be defined as well. Please refer to "Introduction to the Asynchronous HTTP Server" section on page 75 of the ICEfaces Developer's Guide - Version 1.7 for more information on AHS.

Regards,
Jack...

Jack van Ooststroom
Senior Developer
ICEsoft Technologies, Inc.
[Email]
 
Forum Index -> Async HTTP Server
Go to:   
Powered by JForum 2.1.7ice © JForum Team