[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Continuations in Jetty 7?
|
Kevin,
You need to copy the jetty-continuation jar into WEB-INF/lib of your
webapp. Its just in $JETTY_HOME/lib so its inside the distribution.
Possibly we should move it out of there to avoid confusion.
regards
Jan
On 21/09/10 06:58, Kevin Jordan wrote:
I'm using the Jetty Hightide distribution extracted straight out from a
download and unless there's another jar I need,
jetty-continuation-7.1.6.v20100715 is in the Jetty lib directory. I get
java.lang.IllegalStateException: !(Jetty || Servlet 3.0 ||
ContinuationFilter) as the error whenever I go to it, which comes when I
do a ContinuationSupport.getContinuation. I notice references to Jetty 6
stuff in the source for it, which is why I thought I needed the
jetty-util-6 jar.
On Mon, Sep 20, 2010 at 3:48 PM, Jan Bartel <janb@xxxxxxxxxxx
<mailto:janb@xxxxxxxxxxx>> wrote:
Kevin,
Here's 2 pages on eclipse that talk about continuations in jetty-7:
1.
http://wiki.eclipse.org/Jetty/Starting/Porting_to_Jetty_7#Continuations
2. http://wiki.eclipse.org/Jetty/Feature/Continuations
If you code to the jetty-7 api discussed in link 2 above, then
it will work on jetty-6 and jetty-7 (and any servlet 3.x container).
You need the jetty-continuations-7.x.jar in your webapp's WEB-INF/lib.
If you code to the jetty-7 api and then deploy in jetty-6 you'll get
a warning about the ConfigurationFilter (used for backward
compatibility) not being configured. Here's the reference for it:
http://download.eclipse.org/jetty/stable-7/xref/org/eclipse/jetty/continuation/ContinuationFilter.html
regards
Jan
On 21/09/10 02:10, Kevin Jordan wrote:
I get now that I need the jetty-util-6 jar in there, but I'm having
problems making Jetty use it. First I just dumped it in the lib
directory hoping Jetty would pick it up, but it didn't. Then I
tried it
in my webapp's lib directory and no luck there either. Then I tried
adding it to the CLASSPATH env variable, but that didn't seem to do
anything either.
ContinuationSupport.class.getClassLoader().loadClass("org.mortbay.util.ajax.Continuation")
seems to get a NoClassFoundException. Where do I need to put the
jetty-util-6 jar to get Jetty to load it so that part will work?
On Wed, Sep 15, 2010 at 4:04 PM, Kevin Jordan <kevin@xxxxxxxxxxx
<mailto:kevin@xxxxxxxxxxx>
<mailto:kevin@xxxxxxxxxxx <mailto:kevin@xxxxxxxxxxx>>> wrote:
How are continuations supposed to be used in Jetty 7? When
I try to
use them, I get !(Jetty || Servlet 3.0 ||
ContinuationFilter). I
have the ContinuationFilter on, but it seems to have
initParameters
for jetty6, partial, and faux continuations. But I also look at
ContinuationSupport and it seems to have references
to org.mortbay.util.ajax.Continuation which is supposed to be
renamed under the move to the org.eclipse package space.
Can anyone
give me an example of how to set it up? I can't seem to
find much
on the wiki in relation to doing it under Jetty 7.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx <mailto:jetty-users@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/jetty-users
--
Jan Bartel, Webtide LLC | janb@xxxxxxxxxxx <mailto:janb@xxxxxxxxxxx>
| http://www.webtide.com
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users
--
Jan Bartel, Webtide LLC | janb@xxxxxxxxxxx | http://www.webtide.com