[jira] Commented: (JETTY-1154) Config error setting reloadInterval from context file

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (JETTY-1154) Config error setting reloadInterval from context file

JIRA jira@codehaus.org

    [ http://jira.codehaus.org/browse/JETTY-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=219784#action_219784 ]

Matt Sheppard commented on JETTY-1154:
--------------------------------------

Thanks - I'll test that out.

> Config error setting reloadInterval from context file
> -----------------------------------------------------
>
>                 Key: JETTY-1154
>                 URL: http://jira.codehaus.org/browse/JETTY-1154
>             Project: Jetty
>          Issue Type: Bug
>          Components: Security and SSL
>    Affects Versions: 6.1.21, 6.1.22
>         Environment: Jetty 6.1.22, Ubuntu 9.04
>            Reporter: Matt Sheppard
>            Assignee: Joakim Erdfelt
>             Fix For: 6.1.25
>
>
> Attempting to setup a context file with a HashUserRealm which is reloaded at some interval (as described at http://docs.codehaus.org/display/JETTY/Realms), I get the following exception on start
> 2009-12-10 11:22:53.758::WARN:  Config error at <Set name="reloadInterval">500</Set>
> 2009-12-10 11:22:53.758::WARN:  Config error at <Set name="userRealm">
>       <New class="org.mortbay.jetty.security.HashUserRealm"><Set name="name">Funnelback Administration</Set><Set name="config"><SystemProperty name="funnelback.installdir"/>/conf/realm.properties</Set><Set name="reloadInterval">500</Set></New>
>     </Set>
> 2009-12-10 11:22:53.759::WARN:  Config error at <Get name="securityHandler"><Set name="userRealm">
>       <New class="org.mortbay.jetty.security.HashUserRealm"><Set name="name">Funnelback Administration</Set><Set name="config"><SystemProperty name="funnelback.installdir"/>/conf/realm.properties</Set><Set name="reloadInterval">500</Set></New>
>     </Set></Get>
> 2009-12-10 11:22:53.759::WARN:  EXCEPTION
> java.lang.NoSuchMethodException: class org.mortbay.jetty.security.HashUserRealm.setReloadInterval(class java.lang.String)
> at org.mortbay.xml.XmlConfiguration.set(XmlConfiguration.java:424)
> at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:248)
> at org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:626)
> at org.mortbay.xml.XmlConfiguration.itemValue(XmlConfiguration.java:915)
> at org.mortbay.xml.XmlConfiguration.value(XmlConfiguration.java:837)
> at org.mortbay.xml.XmlConfiguration.set(XmlConfiguration.java:286)
> at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:248)
> at org.mortbay.xml.XmlConfiguration.get(XmlConfiguration.java:468)
> at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:254)
> at org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:214)
> at org.mortbay.jetty.deployer.ContextDeployer.createContext(ContextDeployer.java:369)
> at org.mortbay.jetty.deployer.ContextDeployer.deploy(ContextDeployer.java:263)
> at org.mortbay.jetty.deployer.ContextDeployer.access$000(ContextDeployer.java:67)
> at org.mortbay.jetty.deployer.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:89)
> at org.mortbay.util.Scanner.reportAddition(Scanner.java:410)
> at org.mortbay.util.Scanner.reportDifferences(Scanner.java:324)
> at org.mortbay.util.Scanner.scan(Scanner.java:280)
> at org.mortbay.jetty.deployer.ContextDeployer.doStart(ContextDeployer.java:327)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.jetty.Server.doStart(Server.java:201)
> at org.mortbay.setuid.SetUIDServer.doStart(SetUIDServer.java:158)
> at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
> at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.mortbay.start.Main.invokeMain(Main.java:194)
> at org.mortbay.start.Main.start(Main.java:534)
> at org.mortbay.start.Main.start(Main.java:441)
> at org.mortbay.start.Main.main(Main.java:119)
> My context file looks like...
> <?xml version="1.0"  encoding="ISO-8859-1"?>
> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://j
> etty.mortbay.org/configure.dtd">
> <Configure class="org.mortbay.jetty.webapp.WebAppContext">
>   <Set name="contextPath">/search/admin/analytics</Set>
>   <Set name="war"><SystemProperty name="installdir" />/web/webapps/analytics.war</Set>
>   <Set name="extractWAR">false</Set>
>   <Set name="copyWebDir">false</Set>
>   <Get name="securityHandler">
>     <Set name="userRealm">
>       <New class="org.mortbay.jetty.security.HashUserRealm">
>         <Set name="name">Funnelback Administration</Set>
>         <Set name="config"><SystemProperty name="installdir" />/conf/realm.properties</Set>
>         <Set name="reloadInterval">500</Set>
>         <Call name="start"></Call>
>       </New>
>     </Set>
>   </Get>
> </Configure>
> But from the exception I get, it seems that XmlConfiguration is expecting a setReloadInterval method which takes a string rather than the one which exists which takes an int.
> Is there any workaround for this or am I doing something obviously wrong? Perhaps my easiest way forward is to modify HashUserRealm to include a setReloadInterval(String) method which parses the string and passes it on.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Comet with Jetty 7.1 RC1

Tony Thompson
Comet with Jetty 7.1 RC1

It looks like the latest Jetty 7.1 code has broken Comet.  Can I get updated Comet code somewhere that matches Jetty updates?

java.lang.NoSuchMethodError: org.eclipse.jetty.util.ajax.JSON.appendMap(Ljava/lang/StringBuffer;Ljava/util/Map;)V
        at org.cometd.server.MessageImpl.getJSON(MessageImpl.java:213)
        at org.cometd.server.JSONTransport.send(JSONTransport.java:48)
        at org.cometd.server.AbstractBayeux$Handler.sendMetaReply(AbstractBayeux.java:1021)
        at org.cometd.server.AbstractBayeux$HandshakeHandler.handle(AbstractBayeux.java:1227)
        at org.cometd.server.AbstractBayeux.handle(AbstractBayeux.java:274)
        at org.cometd.server.continuation.ContinuationCometdServlet.service(ContinuationCometdServlet.java:136)
        at org.cometd.server.AbstractCometdServlet.service(AbstractCometdServlet.java:258)

Thanks
Tony

 
This message (and any associated files) is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient
you are hereby notified that any dissemination, copying or
distribution of this message, or files associated with this message,
is strictly prohibited. If you have received this message in error,
please notify us immediately by replying to the message and deleting
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.

Reply | Threaded
Open this post in threaded view
|

Re: Comet with Jetty 7.1 RC1

Greg Wilkins
Tony,

this change is in the RC1 release that is coming out now.

you can get it now by building jetty trunk locally, or if you
put the jetty repo at oss.sonatype.org in your settings.xml for
maven.

cheers



Tony Thompson wrote:

> It looks like the latest Jetty 7.1 code has broken Comet.  Can I get
> updated Comet code somewhere that matches Jetty updates?
>
> java.lang.NoSuchMethodError:
> org.eclipse.jetty.util.ajax.JSON.appendMap(Ljava/lang/StringBuffer;Ljava/util/Map;)V
>         at org.cometd.server.MessageImpl.getJSON(MessageImpl.java:213)
>         at org.cometd.server.JSONTransport.send(JSONTransport.java:48)
>         at
> org.cometd.server.AbstractBayeux$Handler.sendMetaReply(AbstractBayeux.java:1021)
>         at
> org.cometd.server.AbstractBayeux$HandshakeHandler.handle(AbstractBayeux.java:1227)
>         at org.cometd.server.AbstractBayeux.handle(AbstractBayeux.java:274)
>         at
> org.cometd.server.continuation.ContinuationCometdServlet.service(ContinuationCometdServlet.java:136)
>         at
> org.cometd.server.AbstractCometdServlet.service(AbstractCometdServlet.java:258)
>
> Thanks
> Tony
>
>  
> This message (and any associated files) is intended only for the
> use of the individual or entity to which it is addressed and may
> contain information that is confidential, subject to copyright or
> constitutes a trade secret. If you are not the intended recipient
> you are hereby notified that any dissemination, copying or
> distribution of this message, or files associated with this message,
> is strictly prohibited. If you have received this message in error,
> please notify us immediately by replying to the message and deleting
> it from your computer. Messages sent to and from Stoneware, Inc.
> may be monitored.
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

RE: Comet with Jetty 7.1 RC1

Tony Thompson
RE: [jetty-dev] Comet with Jetty 7.1 RC1

I can get a Comet update from Jetty?  This seems to indicate that something was removed from the JSON class that is in RC1.  I need a version of Comet that matches RC1.

Tony

-----Original Message-----
From: Greg Wilkins [[hidden email]]
Sent: Tue 5/4/2010 6:02 PM
To: [hidden email]
Subject: Re: [jetty-dev] Comet with Jetty 7.1 RC1

Tony,

this change is in the RC1 release that is coming out now.

you can get it now by building jetty trunk locally, or if you
put the jetty repo at oss.sonatype.org in your settings.xml for
maven.

cheers



Tony Thompson wrote:
> It looks like the latest Jetty 7.1 code has broken Comet.  Can I get
> updated Comet code somewhere that matches Jetty updates?
>
> java.lang.NoSuchMethodError:
> org.eclipse.jetty.util.ajax.JSON.appendMap(Ljava/lang/StringBuffer;Ljava/util/Map;)V
>         at org.cometd.server.MessageImpl.getJSON(MessageImpl.java:213)
>         at org.cometd.server.JSONTransport.send(JSONTransport.java:48)
>         at
> org.cometd.server.AbstractBayeux$Handler.sendMetaReply(AbstractBayeux.java:1021)
>         at
> org.cometd.server.AbstractBayeux$HandshakeHandler.handle(AbstractBayeux.java:1227)
>         at org.cometd.server.AbstractBayeux.handle(AbstractBayeux.java:274)
>         at
> org.cometd.server.continuation.ContinuationCometdServlet.service(ContinuationCometdServlet.java:136)
>         at
> org.cometd.server.AbstractCometdServlet.service(AbstractCometdServlet.java:258)
>
> Thanks
> Tony
>

> This message (and any associated files) is intended only for the
> use of the individual or entity to which it is addressed and may
> contain information that is confidential, subject to copyright or
> constitutes a trade secret. If you are not the intended recipient
> you are hereby notified that any dissemination, copying or
> distribution of this message, or files associated with this message,
> is strictly prohibited. If you have received this message in error,
> please notify us immediately by replying to the message and deleting
> it from your computer. Messages sent to and from Stoneware, Inc.
> may be monitored.
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



 
This message (and any associated files) is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient
you are hereby notified that any dissemination, copying or
distribution of this message, or files associated with this message,
is strictly prohibited. If you have received this message in error,
please notify us immediately by replying to the message and deleting
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.

Reply | Threaded
Open this post in threaded view
|

RE: Comet with Jetty 7.1 RC1

Tony Thompson
RE: [jetty-dev] Comet with Jetty 7.1 RC1

Forgot to mention I am currently using Comet 1.1.0.


-----Original Message-----
From: Tony Thompson [[hidden email]]
Sent: Tue 5/4/2010 8:19 PM
To: [hidden email]; [hidden email]
Subject: RE: [jetty-dev] Comet with Jetty 7.1 RC1

I can get a Comet update from Jetty?  This seems to indicate that something was removed from the JSON class that is in RC1.  I need a version of Comet that matches RC1.

Tony

-----Original Message-----
From: Greg Wilkins [[hidden email]]
Sent: Tue 5/4/2010 6:02 PM
To: [hidden email]
Subject: Re: [jetty-dev] Comet with Jetty 7.1 RC1

Tony,

this change is in the RC1 release that is coming out now.

you can get it now by building jetty trunk locally, or if you
put the jetty repo at oss.sonatype.org in your settings.xml for
maven.

cheers



Tony Thompson wrote:
> It looks like the latest Jetty 7.1 code has broken Comet.  Can I get
> updated Comet code somewhere that matches Jetty updates?
>
> java.lang.NoSuchMethodError:
> org.eclipse.jetty.util.ajax.JSON.appendMap(Ljava/lang/StringBuffer;Ljava/util/Map;)V
>         at org.cometd.server.MessageImpl.getJSON(MessageImpl.java:213)
>         at org.cometd.server.JSONTransport.send(JSONTransport.java:48)
>         at
> org.cometd.server.AbstractBayeux$Handler.sendMetaReply(AbstractBayeux.java:1021)
>         at
> org.cometd.server.AbstractBayeux$HandshakeHandler.handle(AbstractBayeux.java:1227)
>         at org.cometd.server.AbstractBayeux.handle(AbstractBayeux.java:274)
>         at
> org.cometd.server.continuation.ContinuationCometdServlet.service(ContinuationCometdServlet.java:136)
>         at
> org.cometd.server.AbstractCometdServlet.service(AbstractCometdServlet.java:258)
>
> Thanks
> Tony
>

> This message (and any associated files) is intended only for the
> use of the individual or entity to which it is addressed and may
> contain information that is confidential, subject to copyright or
> constitutes a trade secret. If you are not the intended recipient
> you are hereby notified that any dissemination, copying or
> distribution of this message, or files associated with this message,
> is strictly prohibited. If you have received this message in error,
> please notify us immediately by replying to the message and deleting
> it from your computer. Messages sent to and from Stoneware, Inc.
> may be monitored.
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

This message (and any associated files) is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient
you are hereby notified that any dissemination, copying or
distribution of this message, or files associated with this message,
is strictly prohibited. If you have received this message in error,
please notify us immediately by replying to the message and deleting
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.

 
This message (and any associated files) is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient
you are hereby notified that any dissemination, copying or
distribution of this message, or files associated with this message,
is strictly prohibited. If you have received this message in error,
please notify us immediately by replying to the message and deleting
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.

Reply | Threaded
Open this post in threaded view
|

Re: Comet with Jetty 7.1 RC1

Greg Wilkins
Tony Thompson wrote:
> Forgot to mention I am currently using Comet 1.1.0.

Ah!  Well 1.1.0 was compiled against jetty-7.0.2
so it needs to have the jetty-util.jar from 7.0.2 in the
classpath of the webapplication.

I'm guessing you are not using a web application and are
doing an embedded server - so the java-util package from
7.1 is exposed to your cometd-1.1.0.   In which
case the change from StringBuffer to Appendable is
giving you grief.

RC1 is out like that, but I might be able to sneak
in a change to readd the StringBuffer methods as
deprecated methods in an RC2... let me talk with
the other developers and see if there is
time.

Other than that, you may have to use a context
Handler to have a slightly different class path for
the cometd server than for the server, or recompile
cometd-1.1.0....  or we can do a cometd-1.2.

Hmmm the StringBuffer signature methods would
be simplest.... I hope there is time.

cheers




>
> -----Original Message-----
> From: Tony Thompson [mailto:[hidden email]]
> Sent: Tue 5/4/2010 8:19 PM
> To: [hidden email]; [hidden email]
> Subject: RE: [jetty-dev] Comet with Jetty 7.1 RC1
>
> I can get a Comet update from Jetty?  This seems to indicate that
> something was removed from the JSON class that is in RC1.  I need a
> version of Comet that matches RC1.
>
> Tony
>
> -----Original Message-----
> From: Greg Wilkins [mailto:[hidden email]]
> Sent: Tue 5/4/2010 6:02 PM
> To: [hidden email]
> Subject: Re: [jetty-dev] Comet with Jetty 7.1 RC1
>
> Tony,
>
> this change is in the RC1 release that is coming out now.
>
> you can get it now by building jetty trunk locally, or if you
> put the jetty repo at oss.sonatype.org in your settings.xml for
> maven.
>
> cheers
>
>
>
> Tony Thompson wrote:
>> It looks like the latest Jetty 7.1 code has broken Comet.  Can I get
>> updated Comet code somewhere that matches Jetty updates?
>>
>> java.lang.NoSuchMethodError:
>>
> org.eclipse.jetty.util.ajax.JSON.appendMap(Ljava/lang/StringBuffer;Ljava/util/Map;)V
>>         at org.cometd.server.MessageImpl.getJSON(MessageImpl.java:213)
>>         at org.cometd.server.JSONTransport.send(JSONTransport.java:48)
>>         at
>>
> org.cometd.server.AbstractBayeux$Handler.sendMetaReply(AbstractBayeux.java:1021)
>>         at
>>
> org.cometd.server.AbstractBayeux$HandshakeHandler.handle(AbstractBayeux.java:1227)
>>         at
> org.cometd.server.AbstractBayeux.handle(AbstractBayeux.java:274)
>>         at
>>
> org.cometd.server.continuation.ContinuationCometdServlet.service(ContinuationCometdServlet.java:136)
>>         at
>>
> org.cometd.server.AbstractCometdServlet.service(AbstractCometdServlet.java:258)
>>
>> Thanks
>> Tony
>>
>>
>> This message (and any associated files) is intended only for the
>> use of the individual or entity to which it is addressed and may
>> contain information that is confidential, subject to copyright or
>> constitutes a trade secret. If you are not the intended recipient
>> you are hereby notified that any dissemination, copying or
>> distribution of this message, or files associated with this message,
>> is strictly prohibited. If you have received this message in error,
>> please notify us immediately by replying to the message and deleting
>> it from your computer. Messages sent to and from Stoneware, Inc.
>> may be monitored.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
> This message (and any associated files) is intended only for the
> use of the individual or entity to which it is addressed and may
> contain information that is confidential, subject to copyright or
> constitutes a trade secret. If you are not the intended recipient
> you are hereby notified that any dissemination, copying or
> distribution of this message, or files associated with this message,
> is strictly prohibited. If you have received this message in error,
> please notify us immediately by replying to the message and deleting
> it from your computer. Messages sent to and from Stoneware, Inc.
> may be monitored.
>
>  
> This message (and any associated files) is intended only for the
> use of the individual or entity to which it is addressed and may
> contain information that is confidential, subject to copyright or
> constitutes a trade secret. If you are not the intended recipient
> you are hereby notified that any dissemination, copying or
> distribution of this message, or files associated with this message,
> is strictly prohibited. If you have received this message in error,
> please notify us immediately by replying to the message and deleting
> it from your computer. Messages sent to and from Stoneware, Inc.
> may be monitored.
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

RE: Comet with Jetty 7.1 RC1

Tony Thompson
RE: [jetty-dev] Comet with Jetty 7.1 RC1

Either an updated Comet or deprecated methods in Jetty are fine with me.  Obviously we just need it to work again at this point.

Thanks for the help.
Tony


-----Original Message-----
From: Greg Wilkins [[hidden email]]
Sent: Wed 5/5/2010 7:01 AM
To: [hidden email]
Subject: Re: [jetty-dev] Comet with Jetty 7.1 RC1

Tony Thompson wrote:
> Forgot to mention I am currently using Comet 1.1.0.

Ah!  Well 1.1.0 was compiled against jetty-7.0.2
so it needs to have the jetty-util.jar from 7.0.2 in the
classpath of the webapplication.

I'm guessing you are not using a web application and are
doing an embedded server - so the java-util package from
7.1 is exposed to your cometd-1.1.0.   In which
case the change from StringBuffer to Appendable is
giving you grief.

RC1 is out like that, but I might be able to sneak
in a change to readd the StringBuffer methods as
deprecated methods in an RC2... let me talk with
the other developers and see if there is
time.

Other than that, you may have to use a context
Handler to have a slightly different class path for
the cometd server than for the server, or recompile
cometd-1.1.0....  or we can do a cometd-1.2.

Hmmm the StringBuffer signature methods would
be simplest.... I hope there is time.

cheers




>
> -----Original Message-----
> From: Tony Thompson [[hidden email]]
> Sent: Tue 5/4/2010 8:19 PM
> To: [hidden email]; [hidden email]
> Subject: RE: [jetty-dev] Comet with Jetty 7.1 RC1
>
> I can get a Comet update from Jetty?  This seems to indicate that
> something was removed from the JSON class that is in RC1.  I need a
> version of Comet that matches RC1.
>
> Tony
>
> -----Original Message-----
> From: Greg Wilkins [[hidden email]]
> Sent: Tue 5/4/2010 6:02 PM
> To: [hidden email]
> Subject: Re: [jetty-dev] Comet with Jetty 7.1 RC1
>
> Tony,
>
> this change is in the RC1 release that is coming out now.
>
> you can get it now by building jetty trunk locally, or if you
> put the jetty repo at oss.sonatype.org in your settings.xml for
> maven.
>
> cheers
>
>
>
> Tony Thompson wrote:
>> It looks like the latest Jetty 7.1 code has broken Comet.  Can I get
>> updated Comet code somewhere that matches Jetty updates?
>>
>> java.lang.NoSuchMethodError:
>>
> org.eclipse.jetty.util.ajax.JSON.appendMap(Ljava/lang/StringBuffer;Ljava/util/Map;)V
>>         at org.cometd.server.MessageImpl.getJSON(MessageImpl.java:213)
>>         at org.cometd.server.JSONTransport.send(JSONTransport.java:48)
>>         at
>>
> org.cometd.server.AbstractBayeux$Handler.sendMetaReply(AbstractBayeux.java:1021)
>>         at
>>
> org.cometd.server.AbstractBayeux$HandshakeHandler.handle(AbstractBayeux.java:1227)
>>         at
> org.cometd.server.AbstractBayeux.handle(AbstractBayeux.java:274)
>>         at
>>
> org.cometd.server.continuation.ContinuationCometdServlet.service(ContinuationCometdServlet.java:136)
>>         at
>>
> org.cometd.server.AbstractCometdServlet.service(AbstractCometdServlet.java:258)
>>
>> Thanks
>> Tony
>>
>>
>> This message (and any associated files) is intended only for the
>> use of the individual or entity to which it is addressed and may
>> contain information that is confidential, subject to copyright or
>> constitutes a trade secret. If you are not the intended recipient
>> you are hereby notified that any dissemination, copying or
>> distribution of this message, or files associated with this message,
>> is strictly prohibited. If you have received this message in error,
>> please notify us immediately by replying to the message and deleting
>> it from your computer. Messages sent to and from Stoneware, Inc.
>> may be monitored.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
> This message (and any associated files) is intended only for the
> use of the individual or entity to which it is addressed and may
> contain information that is confidential, subject to copyright or
> constitutes a trade secret. If you are not the intended recipient
> you are hereby notified that any dissemination, copying or
> distribution of this message, or files associated with this message,
> is strictly prohibited. If you have received this message in error,
> please notify us immediately by replying to the message and deleting
> it from your computer. Messages sent to and from Stoneware, Inc.
> may be monitored.
>

> This message (and any associated files) is intended only for the
> use of the individual or entity to which it is addressed and may
> contain information that is confidential, subject to copyright or
> constitutes a trade secret. If you are not the intended recipient
> you are hereby notified that any dissemination, copying or
> distribution of this message, or files associated with this message,
> is strictly prohibited. If you have received this message in error,
> please notify us immediately by replying to the message and deleting
> it from your computer. Messages sent to and from Stoneware, Inc.
> may be monitored.
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



 
This message (and any associated files) is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient
you are hereby notified that any dissemination, copying or
distribution of this message, or files associated with this message,
is strictly prohibited. If you have received this message in error,
please notify us immediately by replying to the message and deleting
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.

Reply | Threaded
Open this post in threaded view
|

Re: Comet with Jetty 7.1 RC1

Jesse McConnell
In reply to this post by Greg Wilkins
he should make this change regardless to honor our api policy with
eclipse so I am +1 adding the method back with @deprecated

cheers,
jesse

--
jesse mcconnell
[hidden email]



On Wed, May 5, 2010 at 06:01, Greg Wilkins <[hidden email]> wrote:

> Tony Thompson wrote:
>> Forgot to mention I am currently using Comet 1.1.0.
>
> Ah!  Well 1.1.0 was compiled against jetty-7.0.2
> so it needs to have the jetty-util.jar from 7.0.2 in the
> classpath of the webapplication.
>
> I'm guessing you are not using a web application and are
> doing an embedded server - so the java-util package from
> 7.1 is exposed to your cometd-1.1.0.   In which
> case the change from StringBuffer to Appendable is
> giving you grief.
>
> RC1 is out like that, but I might be able to sneak
> in a change to readd the StringBuffer methods as
> deprecated methods in an RC2... let me talk with
> the other developers and see if there is
> time.
>
> Other than that, you may have to use a context
> Handler to have a slightly different class path for
> the cometd server than for the server, or recompile
> cometd-1.1.0....  or we can do a cometd-1.2.
>
> Hmmm the StringBuffer signature methods would
> be simplest.... I hope there is time.
>
> cheers
>
>
>
>
>>
>> -----Original Message-----
>> From: Tony Thompson [mailto:[hidden email]]
>> Sent: Tue 5/4/2010 8:19 PM
>> To: [hidden email]; [hidden email]
>> Subject: RE: [jetty-dev] Comet with Jetty 7.1 RC1
>>
>> I can get a Comet update from Jetty?  This seems to indicate that
>> something was removed from the JSON class that is in RC1.  I need a
>> version of Comet that matches RC1.
>>
>> Tony
>>
>> -----Original Message-----
>> From: Greg Wilkins [mailto:[hidden email]]
>> Sent: Tue 5/4/2010 6:02 PM
>> To: [hidden email]
>> Subject: Re: [jetty-dev] Comet with Jetty 7.1 RC1
>>
>> Tony,
>>
>> this change is in the RC1 release that is coming out now.
>>
>> you can get it now by building jetty trunk locally, or if you
>> put the jetty repo at oss.sonatype.org in your settings.xml for
>> maven.
>>
>> cheers
>>
>>
>>
>> Tony Thompson wrote:
>>> It looks like the latest Jetty 7.1 code has broken Comet.  Can I get
>>> updated Comet code somewhere that matches Jetty updates?
>>>
>>> java.lang.NoSuchMethodError:
>>>
>> org.eclipse.jetty.util.ajax.JSON.appendMap(Ljava/lang/StringBuffer;Ljava/util/Map;)V
>>>         at org.cometd.server.MessageImpl.getJSON(MessageImpl.java:213)
>>>         at org.cometd.server.JSONTransport.send(JSONTransport.java:48)
>>>         at
>>>
>> org.cometd.server.AbstractBayeux$Handler.sendMetaReply(AbstractBayeux.java:1021)
>>>         at
>>>
>> org.cometd.server.AbstractBayeux$HandshakeHandler.handle(AbstractBayeux.java:1227)
>>>         at
>> org.cometd.server.AbstractBayeux.handle(AbstractBayeux.java:274)
>>>         at
>>>
>> org.cometd.server.continuation.ContinuationCometdServlet.service(ContinuationCometdServlet.java:136)
>>>         at
>>>
>> org.cometd.server.AbstractCometdServlet.service(AbstractCometdServlet.java:258)
>>>
>>> Thanks
>>> Tony
>>>
>>>
>>> This message (and any associated files) is intended only for the
>>> use of the individual or entity to which it is addressed and may
>>> contain information that is confidential, subject to copyright or
>>> constitutes a trade secret. If you are not the intended recipient
>>> you are hereby notified that any dissemination, copying or
>>> distribution of this message, or files associated with this message,
>>> is strictly prohibited. If you have received this message in error,
>>> please notify us immediately by replying to the message and deleting
>>> it from your computer. Messages sent to and from Stoneware, Inc.
>>> may be monitored.
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>> This message (and any associated files) is intended only for the
>> use of the individual or entity to which it is addressed and may
>> contain information that is confidential, subject to copyright or
>> constitutes a trade secret. If you are not the intended recipient
>> you are hereby notified that any dissemination, copying or
>> distribution of this message, or files associated with this message,
>> is strictly prohibited. If you have received this message in error,
>> please notify us immediately by replying to the message and deleting
>> it from your computer. Messages sent to and from Stoneware, Inc.
>> may be monitored.
>>
>>
>> This message (and any associated files) is intended only for the
>> use of the individual or entity to which it is addressed and may
>> contain information that is confidential, subject to copyright or
>> constitutes a trade secret. If you are not the intended recipient
>> you are hereby notified that any dissemination, copying or
>> distribution of this message, or files associated with this message,
>> is strictly prohibited. If you have received this message in error,
>> please notify us immediately by replying to the message and deleting
>> it from your computer. Messages sent to and from Stoneware, Inc.
>> may be monitored.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Comet with Jetty 7.1 RC1

Greg Wilkins
I put the StringBuffer methods back in as deprecated methods
and was able to run cometd-1.1.0 against the resulting jar
without recompiling.

cheers

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

RE: Comet with Jetty 7.1 RC1

Tony Thompson
Thanks, I will try it out.  I am replying off list because I noticed the RC is progressing on 7.1 and I wasn't sure what the odds were of getting bug #306353 and #308631 in 7.1?  I noticed you had taken a shot at the second one already.  If there is anything I can do to provide more information to duplicate them, please let me know.

Thanks
Tony


-----Original Message-----
From: Greg Wilkins [mailto:[hidden email]]
Sent: Wed 5/5/2010 9:08 AM
To: [hidden email]
Subject: Re: [jetty-dev] Comet with Jetty 7.1 RC1
 
I put the StringBuffer methods back in as deprecated methods
and was able to run cometd-1.1.0 against the resulting jar
without recompiling.

cheers

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
 
This message (and any associated files) is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient
you are hereby notified that any dissemination, copying or
distribution of this message, or files associated with this message,
is strictly prohibited. If you have received this message in error,
please notify us immediately by replying to the message and deleting
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

winmail.dat (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Comet with Jetty 7.1 RC1

Greg Wilkins

Tony Thompson wrote:
> Thanks, I will try it out.  I am replying off list

Tony,

it appears that you actually replied on the list,
so I will too :)

We are running as fast as we can with a lot of issues
and have already fixed many.  We'd really like to get
everything fixed for 7.1.0, but we are up against a
clock to get a release ready for the eclipse Helios
simultaneous release.

So I can't promise anything with regards to those two
issues, other than we will fix them  sooner or later.

Looking at them, they are probably aspects of the same
issue.  However, I've previously tried to reproduce but
failed.  I know you've attached your webapp, but it is
much much easier for us if you can reproduce within
the framework of our existing test applications.  It
takes us a lot longer to go look at new code, so such
issues get less priority.

I think 306353 looks like the easier issue to debug,
but I'm confused by your description.  It is not
clear in which of the two contexts the test servlet
is running etc.

cheers





Tony Thompson wrote:

> Thanks, I will try it out.  I am replying off list because I noticed the
> RC is progressing on 7.1 and I wasn't sure what the odds were of getting
> bug #306353 and #308631 in 7.1?  I noticed you had taken a shot at the
> second one already.  If there is anything I can do to provide more
> information to duplicate them, please let me know.
>
> Thanks
> Tony
>
>
> -----Original Message-----
> From: Greg Wilkins [mailto:[hidden email]]
> Sent: Wed 5/5/2010 9:08 AM
> To: [hidden email]
> Subject: Re: [jetty-dev] Comet with Jetty 7.1 RC1
>
> I put the StringBuffer methods back in as deprecated methods
> and was able to run cometd-1.1.0 against the resulting jar
> without recompiling.
>
> cheers
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
>
>  
> This message (and any associated files) is intended only for the
> use of the individual or entity to which it is addressed and may
> contain information that is confidential, subject to copyright or
> constitutes a trade secret. If you are not the intended recipient
> you are hereby notified that any dissemination, copying or
> distribution of this message, or files associated with this message,
> is strictly prohibited. If you have received this message in error,
> please notify us immediately by replying to the message and deleting
> it from your computer. Messages sent to and from Stoneware, Inc.
> may be monitored.
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

RE: Comet with Jetty 7.1 RC1

Tony Thompson
RE: [jetty-dev] Comet with Jetty 7.1 RC1

Yeah, M$ OWA sometimes has a mind of its own so, even though I thought I was replying off list, no such luck.  Sorry everyone else had to endure the conversation...

The test web app I attached to the one incident is just the test.war that comes with Jetty 7 with my sample servlet that configured as part of the app.  The servlet is using the RequestDispatcher to forward a 404 response to a JSP.  It fails the first time but works after that.

The 360353 issue always fails.  I also ran that sample servlet in the "test" web app that is included in Jetty 7.  The test servlet is in the "/" context.  If it would help, I can configure both of them in the sample app and attach it to one of the issues.

I understand about the other deadlines.  I always have someone pushing me to get code out the door too :)

-----Original Message-----
From: Greg Wilkins [[hidden email]]
Sent: Wed 5/5/2010 10:05 AM
To: Tony Thompson
Cc: [hidden email]
Subject: Re: [jetty-dev] Comet with Jetty 7.1 RC1


Tony Thompson wrote:
> Thanks, I will try it out.  I am replying off list

Tony,

it appears that you actually replied on the list,
so I will too :)

We are running as fast as we can with a lot of issues
and have already fixed many.  We'd really like to get
everything fixed for 7.1.0, but we are up against a
clock to get a release ready for the eclipse Helios
simultaneous release.

So I can't promise anything with regards to those two
issues, other than we will fix them  sooner or later.

Looking at them, they are probably aspects of the same
issue.  However, I've previously tried to reproduce but
failed.  I know you've attached your webapp, but it is
much much easier for us if you can reproduce within
the framework of our existing test applications.  It
takes us a lot longer to go look at new code, so such
issues get less priority.

I think 306353 looks like the easier issue to debug,
but I'm confused by your description.  It is not
clear in which of the two contexts the test servlet
is running etc.

cheers





Tony Thompson wrote:
> Thanks, I will try it out.  I am replying off list because I noticed the
> RC is progressing on 7.1 and I wasn't sure what the odds were of getting
> bug #306353 and #308631 in 7.1?  I noticed you had taken a shot at the
> second one already.  If there is anything I can do to provide more
> information to duplicate them, please let me know.
>
> Thanks
> Tony
>
>
> -----Original Message-----
> From: Greg Wilkins [[hidden email]]
> Sent: Wed 5/5/2010 9:08 AM
> To: [hidden email]
> Subject: Re: [jetty-dev] Comet with Jetty 7.1 RC1
>
> I put the StringBuffer methods back in as deprecated methods
> and was able to run cometd-1.1.0 against the resulting jar
> without recompiling.
>
> cheers
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
>

> This message (and any associated files) is intended only for the
> use of the individual or entity to which it is addressed and may
> contain information that is confidential, subject to copyright or
> constitutes a trade secret. If you are not the intended recipient
> you are hereby notified that any dissemination, copying or
> distribution of this message, or files associated with this message,
> is strictly prohibited. If you have received this message in error,
> please notify us immediately by replying to the message and deleting
> it from your computer. Messages sent to and from Stoneware, Inc.
> may be monitored.
>


 
This message (and any associated files) is intended only for the
use of the individual or entity to which it is addressed and may
contain information that is confidential, subject to copyright or
constitutes a trade secret. If you are not the intended recipient
you are hereby notified that any dissemination, copying or
distribution of this message, or files associated with this message,
is strictly prohibited. If you have received this message in error,
please notify us immediately by replying to the message and deleting
it from your computer. Messages sent to and from Stoneware, Inc.
may be monitored.