Salut,
doris chen wrote:
> Hi,
> I tried the following to enable the comet support. However, GF v3 b47
> does not even start properly in NB. I also tried to start GFv3b47
> manually, failed again. Here is the msg
> Macintosh-187:~ dorischen$
> /Users/dorischen/glassfishv3b47preview/glassfish/bin/startserv ; exit;
> java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException
> Command start-domain failed.
File an issue in GlassFish. Something is broken there as we can't enable
Comet using -D
Thanks!
-- Jeanfrancois
>
> Any ideas,
>
> Doris
>
> Jeanfrancois Arcand wrote:
>> Salut,
>>
>> add: enable-comet-support=true to the http element:
>>
>>> <protocol name="http-listener-1">
>>> <http header-buffer-length="8192"
>>> forced-response-type="text/plain; charset=iso-8859-1"
>>> default-virtual-server="server" max-connections=
>>> "250" server-name="" default-response-type="text/plain;
>>> charset=iso-8859-1">
>>> <file-cache enabled="false"></file-cache>
>>> </http>
>>
>> or add a jvm-options: -Dv3.grizzly.cometSupport=true
>>
>> Thanks
>>
>> -- Jeanfrancois
>>
>> doris chen wrote:
>>> Hi,
>>> Yes, it does seem that the cometSupport is not enabled. See the
>>> following error msg. How do I add in domain.xml file as I don't even
>>> see http-listener tag anymore?
>>>
>>> SEVERE: StandardWrapperValve[Grizzly Cometd Servlet]: PWC1406:
>>> Servlet.service() for servlet Grizzly Cometd Servlet threw exception
>>> java.lang.IllegalStateException: Make sure you have enabled Comet or
>>> make sure the Thread invoking that method is the same as the
>>> Servlet.service() Thread.
>>> at
>>> com.sun.grizzly.comet.CometContext.<clinit>(CometContext.java:182)
>>> at
>>> com.sun.grizzly.comet.CometEngine.register(CometEngine.java:300)
>>> at
>>> com.sun.grizzly.comet.CometEngine.register(CometEngine.java:275)
>>> at
>>> com.sun.grizzly.comet.CometEngine.register(CometEngine.java:260)
>>> at
>>> com.sun.grizzly.cometd.BayeuxParser.createCometContext(BayeuxParser.java:504)
>>>
>>> at
>>> com.sun.grizzly.cometd.BayeuxParser.getCometContext(BayeuxParser.java:496)
>>>
>>> at
>>> com.sun.grizzly.cometd.BayeuxParser.onConnect(BayeuxParser.java:205)
>>> at
>>> com.sun.grizzly.cometd.BayeuxParser.parse(BayeuxParser.java:139)
>>> at
>>> com.sun.grizzly.cometd.EventRouterImpl.route(EventRouterImpl.java:110)
>>> at
>>> com.sun.grizzly.cometd.servlet.CometdServlet.doPost(CometdServlet.java:128)
>>>
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>>> at
>>> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1461)
>>>
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:293)
>>>
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:187)
>>>
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:647)
>>>
>>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
>>> at
>>> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
>>>
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
>>>
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:351)
>>>
>>> at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:249)
>>>
>>> at
>>> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:140)
>>>
>>> at
>>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:740)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:631)
>>> at
>>> com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:900)
>>> at
>>> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:162)
>>>
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:136)
>>>
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
>>>
>>> at
>>> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
>>>
>>> at
>>> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>>>
>>> at
>>> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>>>
>>> at
>>> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>>>
>>> at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>>>
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>>>
>>> at java.lang.Thread.run(Thread.java:637)
>>>
>>> Thanks,
>>>
>>> Doris
>>>
>>>
>>>
>>> Jeanfrancois Arcand wrote:
>>>> Salut,
>>>>
>>>> doris chen wrote:
>>>>> Jeanfrancois,
>>>>> I actually enabled the comet support in NB 6.5 with GF V3 (GUI
>>>>> enable). I can enable the comet support this way in b44 and
>>>>> before. It looks like it is enabled. Are you saying it may not?
>>>>> May be a NB issue?
>>>>
>>>> Yes I doubt it will work as the domain.xml has completely changed.
>>>> Do you see any exception in the logs? What are the issue with the
>>>> chat application?
>>>>
>>>> Thanks
>>>>
>>>> -- jeanfrancois
>>>>
>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Doris
>>>>>
>>>>>
>>>>> Jeanfrancois Arcand wrote:
>>>>>> Salut,
>>>>>>
>>>>>> doris chen wrote:
>>>>>>> Hi,
>>>>>>> I am getting close for my Comet hands on lab for JavaOne. I
>>>>>>> would like to choose the most recent build for GF v3. I tested
>>>>>>> the following version (most current one) from
>>>>>>> http://download.java.net/glassfish/v3/promoted/glassfish-v3-preview-b47.zip
>>>>>>>
>>>>>>>
>>>>>>> However, I can not make the chat application to work.
>>>>>>
>>>>>> What is the issue exactly? Any exception in domain.xml? The way
>>>>>> comet gets configured has changed and I suspect comet may not be
>>>>>> enabled?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> -- Jeanfrancois
>>>>>>
>>>>>>
>>>>>> FYI, the same
>>>>>>> chat application is working on GF v3 b44 ea which is 3 versions
>>>>>>> before this b47.
>>>>>>> http://download.java.net/glassfish/v3/promoted/glassfish-v3-ea-b44.zip
>>>>>>>
>>>>>>>
>>>>>>> Can you tell me the change in Grizzly version? Any ideas?
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> Doris
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>>>>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>>>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
>> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>