Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] [jetty-dev] Jetty 9.2.3.v20140905 / 8.1.16.v20140903 / 7.6.16.v20140903 Released!

Hi Jan,

Ok will do that if I still stuck. That aside, I think the current osgi documentation needs to be updated for the few issues that I've mention earlier ( jetty annotation expect your project to have either /bin or /target/classes as output folder, the required jar listed for jsp is not up to date, the boot delegation package setting and the system extra packages setting). I think it is also worthwhile to consider adding the null check for name ( line 199 ) to org.eclipse.jetty.osgi.annotations.AnnotationParser that I've mention in my other mail in this thread.

thanks for your help.

Regards,
Low

On Fri, Sep 12, 2014 at 5:55 AM, Jan Bartel <janb@xxxxxxxxxxx> wrote:
Hi Low,

I'm getting kind of lost in what exactly you're doing and the
environment you're running it in. Can I ask you to open a bug report
for the problem you are seeing, and put in all the info on your jvm,
platform, osgi container, how you're deploying your webapp, which
bundles you have deployed and attaching any log output and output from
console "status" command.
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Jetty

thanks,
Jan

On 12 September 2014 02:27, Heng Sin Low <hengsin@xxxxxxxxx> wrote:
> Hi Jan,
>
> Still can't solve the apache-jsp issue but I've found my problems with the
> jetty-annotation module.
>
> Issues encounter with org.eclipse.jetty.osgi.annotations.AnnotationParser:
> 1. At line 163, the output folder of project is hardcoded to either /bin or
> /target/classes. Some of my eclipse project doesn't uses /bin as output
> folder so I need to change that before jetty-annotation can work. It is easy
> fix for me but I think that at least warrant an entry in the osgi
> documentation page.
> 2. At line 199, there isn't a check to ensure name is not null before the
> transformation to shortName and invoke scanClass. Couple with the issue
> above, it can leads to NullPointerException and stop the deployment of the
> whole web bundle.
>
> Regards,
> Low
>
> On Thu, Sep 11, 2014 at 2:10 PM, Heng Sin Low <hengsin@xxxxxxxxx> wrote:
>>
>> Hi Jan,
>>
>> For the setting of boot delegation and system packages,  I'm referring to
>> the configure method at
>> http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootWithAnnotations.java.
>> There's the CoreOptions.bootDelegationPackages and
>> CoreOptions.systemPackages call in there.
>>
>> Regards,
>> Low
>>
>> On Thu, Sep 11, 2014 at 11:17 AM, Jan Bartel <janb@xxxxxxxxxxx> wrote:
>>>
>>> Low,
>>>
>>>
>>> On 11 September 2014 12:22, Heng Sin Low <hengsin@xxxxxxxxx> wrote:
>>> > Hi Jan,
>>> >
>>> > Here it goes - http://pastebin.com/PMbP2z9n
>>>
>>> Thanks for that, looking at your deployed bundle list and will get
>>> back to you on that.
>>>
>>>
>>> > Also, since the jetty jsp fragment 2.3.3 is working fine for me, does I
>>> > miss
>>> > anything if I stick with that instead ?
>>>
>>> You don't need it if you are using the apache jsp jars, and it may in
>>> fact be detrimental - its only there because some of the glassfish
>>> jars lack a correct manifest.
>>>
>>> > Just notice that there is setting of boot delegation and system
>>> > packages in
>>> > the jetty osgi unit testing code ( wasn't mention in the osgi doc ) ,
>>> > is
>>> > that a must to get the whole thing working  ?
>>>
>>> I don't think I added anything to the default delegation and system
>>> packages for apache jsp - whatever you had for glassfish jsp should be
>>> sufficient. However, if you're trying to use the apache jstl jars,
>>> they may require something extra, I won't know until I try to use them
>>> myself.
>>>
>>> Jan
>>>
>>> >
>>> > Regards,
>>> > Low
>>> >
>>> > On Thu, Sep 11, 2014 at 9:22 AM, Jan Bartel <janb@xxxxxxxxxxx> wrote:
>>> >>
>>> >> Hi Heng,
>>> >>
>>> >> How about you post the output of a console "status" command from
>>> >> eclipse so I can see which bundles you have deployed and their
>>> >> resolution status?
>>> >>
>>> >>
>>> >>
>>> >> On 11 September 2014 11:01, Heng Sin Low <hengsin@xxxxxxxxx> wrote:
>>> >> ...
>>> >> > 1. The jstl related jar listed in the osgi documentation is
>>> >> > different
>>> >> > from
>>> >> > what is being use in the 9.2.3 distribution. Is that because that's
>>> >> > the
>>> >> > only
>>> >> > combination that will work for the OSGi environment ?
>>> >>
>>> >> Ah. The names of the jstl jars look a bit mangled in the
>>> >> documentation. Darn. I'll have to fix that up. They should be:
>>> >>
>>> >> org.eclipse.jetty.orbit:javax.servlet.jsp.jstl:1.2.0.v201105211821
>>> >> org.glassfish.web:javax.servlet.jsp.jstl:1.2.2
>>> >>
>>> >> Note that these are the glassfish jstl jars. I haven't tested against
>>> >> the apache jstl jars yet - I'll take a look at their manifests and see
>>> >> if they are compatible.
>>> >>
>>> >> > 2. I've been testing this against the equinox 3.10 ( eclipse luna )
>>> >> > environment. Perhaps that's not a supported environment yet ?
>>> >>
>>> >> Its been tested on kepler and luna.
>>> >>
>>> >>
>>> >> > Regarding the updated doc, I think one missing piece of information
>>> >> > is
>>> >> > which
>>> >> > bundle needs to be set as auto start.
>>> >>
>>> >> I'm deploying this using the pax unit test environment for osgi and
>>> >> the default there seems to be to start all bundles that aren't
>>> >> fragments. Which bundle are you needing to set autostart on??
>>> >>
>>> >> thanks
>>> >> Jan
>>> >>
>>> >> >
>>> >> > Thanks.
>>> >> >
>>> >> > Regards,
>>> >> >
>>> >> > Low
>>> >> >
>>> >> >
>>> >> > On Thu, Sep 11, 2014 at 6:08 AM, Jan Bartel <janb@xxxxxxxxxxx>
>>> >> > wrote:
>>> >> >>
>>> >> >> Hi Low,
>>> >> >>
>>> >> >> The doco is now updated and online:
>>> >> >>
>>> >> >> https://www.eclipse.org/jetty/documentation/9.2.3.v20140905/index.html
>>> >> >>
>>> >> >> cheers
>>> >> >> Jan
>>> >> >>
>>> >> >> On 10 September 2014 17:53, Jan Bartel <janb@xxxxxxxxxxx> wrote:
>>> >> >> > Hi Low,
>>> >> >> >
>>> >> >> > Actually, I'm working on it as we speak.
>>> >> >> >
>>> >> >> > If you take a look in the jetty sources at the
>>> >> >> > TestJettyOSGiBootWithAnnotations class (and also the superclass
>>> >> >> > TestJettyOSGiBootCore), it will help get you started as to which
>>> >> >> > jars
>>> >> >> > you need to deploy. Here's a link to the src:
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > https://github.com/eclipse/jetty.project/blob/master/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootWithAnnotations.java
>>> >> >> >
>>> >> >> > In addition to the standard jetty jars, for apache-jsp use:
>>> >> >> >
>>> >> >> > org.mortbay.jasper:apache-el:8.0.9.M3
>>> >> >> > org.mortbay.jasper:apache-jsp:8.0.9.M3
>>> >> >> > org.eclipse.jetty:apache-jsp:9.2.3
>>> >> >> > the usual jstl api jar
>>> >> >> > the usual jstl impl jar
>>> >> >> > the usual jdt jar
>>> >> >> > you'll need all of the recommended jars for annotations as per
>>> >> >> > the
>>> >> >> > current documentation
>>> >> >> > take out any jetty-schema jar you have and replace it with the
>>> >> >> > org.eclipse.jetty.toolchain:jetty-osgi-servlet-api:3.1.M0
>>> >> >> >
>>> >> >> >
>>> >> >> > Hopefully this will point you in the right direction.
>>> >> >> >
>>> >> >> > I should have the doc updated shortly and pushed up to the
>>> >> >> > documentation page. I'll let you know.
>>> >> >> >
>>> >> >> > Jan
>>> >> >> >
>>> >> >> > On 10 September 2014 17:12, Heng Sin Low <hengsin@xxxxxxxxx>
>>> >> >> > wrote:
>>> >> >> >> Hi Jan,
>>> >> >> >>
>>> >> >> >> I can only find the setup documentation (
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> http://www.eclipse.org/jetty/documentation/current/framework-jetty-osgi.html
>>> >> >> >> ) for the grassfish jsp engine. Where can I find the
>>> >> >> >> documentation
>>> >> >> >> for
>>> >> >> >> the
>>> >> >> >> setup of the apache jsp engine for 9.2.3 ? The
>>> >> >> >> jetty-jsp-fragment is
>>> >> >> >> always
>>> >> >> >> working for me but I couldn't get the apache jsp engine up and
>>> >> >> >> running
>>> >> >> >> and
>>> >> >> >> without any documentation, it is always a struggle to know
>>> >> >> >> whether
>>> >> >> >> I've
>>> >> >> >> miss
>>> >> >> >> anything.
>>> >> >> >>
>>> >> >> >> Regards,
>>> >> >> >> Low
>>> >> >> >>
>>> >> >> >> On Wed, Sep 10, 2014 at 12:04 PM, Jan Bartel <janb@xxxxxxxxxxx>
>>> >> >> >> wrote:
>>> >> >> >>>
>>> >> >> >>> And for OSGi users out there, please note that with 9.2.3 we
>>> >> >> >>> swapped
>>> >> >> >>> over to using apache jsp (jasper 8.0.9), the same as we use for
>>> >> >> >>> the
>>> >> >> >>> distribution.
>>> >> >> >>>
>>> >> >> >>> cheers
>>> >> >> >>> Jan
>>> >> >> >>>
>>> >> >> >>> On 10 September 2014 02:50, Jesse McConnell
>>> >> >> >>> <jesse.mcconnell@xxxxxxxxx>
>>> >> >> >>> wrote:
>>> >> >> >>> > We are pleased to announce the availability of Jetty 9.2.3,
>>> >> >> >>> > Jetty
>>> >> >> >>> > 8.1.16 and Jetty 7.6.16!
>>> >> >> >>> >
>>> >> >> >>> > The Jetty 9 release is a standard point release with 25 total
>>> >> >> >>> > issues
>>> >> >> >>> > resolved.  The Jetty 7 and Jetty 8 releases continue to be
>>> >> >> >>> > released
>>> >> >> >>> > in
>>> >> >> >>> > lockstep with 3 and 7 issues resolved respectively.
>>> >> >> >>> >
>>> >> >> >>> > We encourage everyone using Jetty 9.2.2 to update when they
>>> >> >> >>> > get
>>> >> >> >>> > the
>>> >> >> >>> > chance.  Additionally we encourage anyone using Jetty 7 and 8
>>> >> >> >>> > to
>>> >> >> >>> > update as well, ideally to Jetty 9.  We have been clear for
>>> >> >> >>> > some
>>> >> >> >>> > time
>>> >> >> >>> > now that public support for Jetty 7 and 8 will dry up on the
>>> >> >> >>> > mailing
>>> >> >> >>> > lists over time and our current plans are to cease
>>> >> >> >>> > maintenance
>>> >> >> >>> > releases for anything outside of a security vulnerability for
>>> >> >> >>> > Jetty
>>> >> >> >>> > 7
>>> >> >> >>> > and 8 entirely at years end.
>>> >> >> >>> >
>>> >> >> >>> > If you haven't already, now is the time to plan your
>>> >> >> >>> > migration to
>>> >> >> >>> > Jetty
>>> >> >> >>> > 9.
>>> >> >> >>> >
>>> >> >> >>> > The issues resolved are listed below.
>>> >> >> >>> >
>>> >> >> >>> > Distribution Downloads:
>>> >> >> >>> >
>>> >> >> >>> > - http://download.eclipse.org/jetty/
>>> >> >> >>> >
>>> >> >> >>> > The artifacts are also available in the Global Central
>>> >> >> >>> > Repository.
>>> >> >> >>> >
>>> >> >> >>> > - http://central.maven.org/
>>> >> >> >>> >
>>> >> >> >>> > Eclipse P2 repositories are available as well.
>>> >> >> >>> >
>>> >> >> >>> > If you find an issue with this release you can open a bug
>>> >> >> >>> > through
>>> >> >> >>> > the
>>> >> >> >>> > guided bugzilla page located here:
>>> >> >> >>> >
>>> >> >> >>> > -
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Jetty&format=guided
>>> >> >> >>> >
>>> >> >> >>> > Documentation can be found at our documentation hub
>>> >> >> >>> >
>>> >> >> >>> > - https://www.eclipse.org/jetty/documentation/
>>> >> >> >>> >
>>> >> >> >>> > Finally, a reminder that both dev and prod support are
>>> >> >> >>> > offered
>>> >> >> >>> > through
>>> >> >> >>> > Webtide
>>> >> >> >>> > (www.webtide.com), feel free to contact us through that site
>>> >> >> >>> > or
>>> >> >> >>> > ping
>>> >> >> >>> > me directly if you are interested in learning more.
>>> >> >> >>> > Documentation
>>> >> >> >>> > PDF's are available for direct download on the webtide.com
>>> >> >> >>> > website
>>> >> >> >>> > as
>>> >> >> >>> > well.
>>> >> >> >>> >
>>> >> >> >>> > cheers,
>>> >> >> >>> > The Jetty Development Team
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > jetty-9.2.3.v20140905 - 05 September 2014
>>> >> >> >>> >  + 347110 renamed class transformer methods
>>> >> >> >>> >  + 411163 Add embedded jetty code example with JSP enabled
>>> >> >> >>> >  + 435322 Added a idleTimeout to the SharedBlockerCallback
>>> >> >> >>> >  + 435533 Handle 0 sized async gzip
>>> >> >> >>> >  + 435988 ContainerLifeCycle: beans never stopped on remove
>>> >> >> >>> >  + 436862 Update jetty-osgi to asm-5 and spifly-1.0.1
>>> >> >> >>> >  + 438500 Odd NoClassDef errors when shutting down the
>>> >> >> >>> > jetty-maven-plugin via
>>> >> >> >>> >    the stop goal
>>> >> >> >>> >  + 440255 ensure 500 is logged on thrown Errors
>>> >> >> >>> >  + 441073 isEarlyEOF on HttpInput
>>> >> >> >>> >  + 441475 org.eclipse.jetty.server.ResourceCache exceptions
>>> >> >> >>> > under
>>> >> >> >>> > high
>>> >> >> >>> > load
>>> >> >> >>> >  + 441479 Jetty hangs due to deadlocks in session manager
>>> >> >> >>> >  + 441649 Update to jsp and el Apache Jasper 8.0.9
>>> >> >> >>> >  + 441756 Ssl Stackoverflow on renegotiate
>>> >> >> >>> >  + 441897 Fixed etag handling in gzipfilter
>>> >> >> >>> >  + 442048 fixed sendRedirect %2F encoding
>>> >> >> >>> >  + 442383 Improved insufficient threads message
>>> >> >> >>> >  + 442628 Update example xml file for second server instance
>>> >> >> >>> > to
>>> >> >> >>> > extract
>>> >> >> >>> > wars
>>> >> >> >>> >  + 442642 Quickstart generates valid XML
>>> >> >> >>> >  + 442759 Allow specific ServletContainerInitializers to be
>>> >> >> >>> > excluded
>>> >> >> >>> >  + 442950 Embedded Jetty client requests to localhost hangs
>>> >> >> >>> > with
>>> >> >> >>> > high
>>> >> >> >>> > cpu usage
>>> >> >> >>> >    (NIO OP_CONNECT Solaris/Sparc).
>>> >> >> >>> >  + 443049 Improved HttpParser illegal character messages
>>> >> >> >>> >  + 443158 Fixed HttpOutput spin
>>> >> >> >>> >  + 443172 web-fragment.xml wrongly parsed for applications
>>> >> >> >>> > running
>>> >> >> >>> > in
>>> >> >> >>> > serlvet
>>> >> >> >>> >    2.4 mode
>>> >> >> >>> >  + 443231 java.lang.NullPointerException on scavenge
>>> >> >> >>> > scheduling
>>> >> >> >>> > when
>>> >> >> >>> > session id
>>> >> >> >>> >    manager declared before shared scheduler
>>> >> >> >>> >  + 443262 Distinguish situation where jetty looks for tlds in
>>> >> >> >>> > META-INF
>>> >> >> >>> > but
>>> >> >> >>> >    finds none vs does not look
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > jetty-8.1.16.v20140903 - 03 September 2014
>>> >> >> >>> >  + 409788 Large POST body causes
>>> >> >> >>> > java.lang.IllegalStateException:
>>> >> >> >>> > SENDING =>
>>> >> >> >>> >    HEADERS.
>>> >> >> >>> >  + 433689 Evict idle HttpDestinations from client
>>> >> >> >>> >  + 433802 check EOF in send1xx
>>> >> >> >>> >  + 438996 Scavenger-Timer in HashSessionManager can die
>>> >> >> >>> > because
>>> >> >> >>> > of
>>> >> >> >>> >    IllegalStateException from getMaxInactiveInterval
>>> >> >> >>> >  + 442048 fixed sendRedirect %2F encoding
>>> >> >> >>> >  + 442839 highly fragmented websocket messages can result in
>>> >> >> >>> > corrupt
>>> >> >> >>> > binary
>>> >> >> >>> >    messages
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > jetty-7.6.16.v20140902 - 02 September 2014
>>> >> >> >>> >  + 409788 Large POST body causes
>>> >> >> >>> > java.lang.IllegalStateException:
>>> >> >> >>> > SENDING =>
>>> >> >> >>> >    HEADERS.
>>> >> >> >>> >  + 433802 check EOF in send1xx
>>> >> >> >>> >  + 442839 highly fragmented websocket messages can result in
>>> >> >> >>> > corrupt
>>> >> >> >>> > binary
>>> >> >> >>> >    messages
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > --
>>> >> >> >>> > jesse mcconnell
>>> >> >> >>> > jesse.mcconnell@xxxxxxxxx
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>> > ---------------------------------------------------------------------
>>> >> >> >>> > To unsubscribe from this list, please visit:
>>> >> >> >>> >
>>> >> >> >>> >     http://xircles.codehaus.org/manage_email
>>> >> >> >>> >
>>> >> >> >>> >
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>>
>>> >> >> >>> --
>>> >> >> >>> Jan Bartel <janb@xxxxxxxxxxx>
>>> >> >> >>> www.webtide.com
>>> >> >> >>> 'Expert Jetty/CometD developer,production,operations advice'
>>> >> >> >>> _______________________________________________
>>> >> >> >>> jetty-users mailing list
>>> >> >> >>> jetty-users@xxxxxxxxxxx
>>> >> >> >>> To change your delivery options, retrieve your password, or
>>> >> >> >>> unsubscribe
>>> >> >> >>> from this list, visit
>>> >> >> >>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> _______________________________________________
>>> >> >> >> jetty-users mailing list
>>> >> >> >> jetty-users@xxxxxxxxxxx
>>> >> >> >> To change your delivery options, retrieve your password, or
>>> >> >> >> unsubscribe
>>> >> >> >> from
>>> >> >> >> this list, visit
>>> >> >> >> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > --
>>> >> >> > Jan Bartel <janb@xxxxxxxxxxx>
>>> >> >> > www.webtide.com
>>> >> >> > 'Expert Jetty/CometD developer,production,operations advice'
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> --
>>> >> >> Jan Bartel <janb@xxxxxxxxxxx>
>>> >> >> www.webtide.com
>>> >> >> 'Expert Jetty/CometD developer,production,operations advice'
>>> >> >> _______________________________________________
>>> >> >> jetty-users mailing list
>>> >> >> jetty-users@xxxxxxxxxxx
>>> >> >> To change your delivery options, retrieve your password, or
>>> >> >> unsubscribe
>>> >> >> from this list, visit
>>> >> >> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>> >> >
>>> >> >
>>> >> >
>>> >> > _______________________________________________
>>> >> > jetty-users mailing list
>>> >> > jetty-users@xxxxxxxxxxx
>>> >> > To change your delivery options, retrieve your password, or
>>> >> > unsubscribe
>>> >> > from
>>> >> > this list, visit
>>> >> > https://dev.eclipse.org/mailman/listinfo/jetty-users
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Jan Bartel <janb@xxxxxxxxxxx>
>>> >> www.webtide.com
>>> >> 'Expert Jetty/CometD developer,production,operations advice'
>>> >> _______________________________________________
>>> >> jetty-users mailing list
>>> >> jetty-users@xxxxxxxxxxx
>>> >> To change your delivery options, retrieve your password, or
>>> >> unsubscribe
>>> >> from this list, visit
>>> >> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > jetty-users mailing list
>>> > jetty-users@xxxxxxxxxxx
>>> > To change your delivery options, retrieve your password, or unsubscribe
>>> > from
>>> > this list, visit
>>> > https://dev.eclipse.org/mailman/listinfo/jetty-users
>>>
>>>
>>>
>>> --
>>> Jan Bartel <janb@xxxxxxxxxxx>
>>> www.webtide.com
>>> 'Expert Jetty/CometD developer,production,operations advice'
>>> _______________________________________________
>>> jetty-users mailing list
>>> jetty-users@xxxxxxxxxxx
>>> To change your delivery options, retrieve your password, or unsubscribe
>>> from this list, visit
>>> https://dev.eclipse.org/mailman/listinfo/jetty-users
>>
>>
>
>
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Jan Bartel <janb@xxxxxxxxxxx>
www.webtide.com
'Expert Jetty/CometD developer,production,operations advice'
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top