Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316909

Summary: CNFE: org.xml.sax.SAXException on org.eclipse.jetty.osgi.boot start with jsp fragment
Product: [RT] Jetty Reporter: Dmytro Pishchukhin <dmytro.pishchukhin>
Component: osgiAssignee: Hugues Malphettes <hmalphettes>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: gregw, hmalphettes, jetty-inbox, mgorovoy
Version: 7.1.4   
Target Milestone: 7.1.x   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Issue details none

Description Dmytro Pishchukhin CLA 2010-06-15 10:13:11 EDT
Build Identifier: 7.1.4.v20100610

There is an CNFE exception when I try to start Jetty 7.1.4 with JSP support on Equinox 3.5.2. 

 

Reproducible: Always

Steps to Reproduce:
All details in the attachment
Comment 1 Dmytro Pishchukhin CLA 2010-06-15 10:15:41 EDT
Created attachment 171934 [details]
Issue details
Comment 2 Hugues Malphettes CLA 2010-06-15 11:56:19 EDT
Hi Dmytro,
Thanks for filing the bug.
This sounds exactly like bug 315004

However it should be fixed :/
I just verified that the manifest of the osgi.boot bundle does import org.xml.sax

Could you let me know how you start the application and which jdk you are using?

Thanks!
Comment 3 Dmytro Pishchukhin CLA 2010-06-15 12:01:25 EDT
(In reply to comment #2)

Hi Hugues,

1. I use JDK 1.6.x
2. To reproduce it you can use the list of bundles from the attachment. I use bundles from JettySDK4EclipseRT-7.1.4.v20100610-win32.win32.x86.zip.

Regards.

> Hi Dmytro,
> Thanks for filing the bug.
> This sounds exactly like bug 315004
> 
> However it should be fixed :/
> I just verified that the manifest of the osgi.boot bundle does import
> org.xml.sax
> 
> Could you let me know how you start the application and which jdk you are
> using?
> 
> Thanks!
Comment 4 Hugues Malphettes CLA 2010-06-15 12:58:51 EDT
(In reply to comment #3)
> (In reply to comment #2)
> 
> Hi Hugues,
> 
> 1. I use JDK 1.6.x
> 2. To reproduce it you can use the list of bundles from the attachment. I use
> bundles from JettySDK4EclipseRT-7.1.4.v20100610-win32.win32.x86.zip.
> 
Ok. I just double-checked that I can download and start the app on windows 32.
I started it on the command line through start.bat.

How do you start it? I you use a launch configuration, could you attach it to this bug please?

Could you type in the OSGi console 
>osgi packages.org.xml.sax

I am struggling to reproduce this issue.
Comment 5 Dmytro Pishchukhin CLA 2010-06-15 12:59:51 EDT
Hugues,

FYI: I've made some tests with similar host-fragment bundles configuration. It does not work even with import-package org.xml.sax in fragment bundle :( (tested on 3.5.2 and 3.6.R4).

I'm just trying to find any workaround for this issues. 

Regards
Comment 6 Hugues Malphettes CLA 2010-06-15 13:02:39 EDT
(In reply to comment #5)
> Hugues,
> 
> FYI: I've made some tests with similar host-fragment bundles configuration. It
> does not work even with import-package org.xml.sax in fragment bundle :(
> (tested on 3.5.2 and 3.6.R4).
> 
> I'm just trying to find any workaround for this issues. 
> 
> Regards

OK so if we add to the jsp fragment "org.xml.sax" to the imported packages then we are fine?
I'll do that and send you a new experimental distrib to verify if that is ok with you.
Comment 7 Dmytro Pishchukhin CLA 2010-06-15 13:14:47 EDT
(In reply to comment #6)
> (In reply to comment #5)
> > Hugues,
> > 
> > FYI: I've made some tests with similar host-fragment bundles configuration. It
> > does not work even with import-package org.xml.sax in fragment bundle :(
> > (tested on 3.5.2 and 3.6.R4).
> > 
> > I'm just trying to find any workaround for this issues. 
> > 
> > Regards
> 
> OK so if we add to the jsp fragment "org.xml.sax" to the imported packages then
> we are fine?
> I'll do that and send you a new experimental distrib to verify if that is ok
> with you.

No, it won't help me. I've already tried. :(

I have not any idea why it works fine in SDK and does not work in my configuration. Maybe some system properties are missed in my configuration. I have to check. It takes some time....

Thank you for support.
Comment 8 Hugues Malphettes CLA 2010-06-15 13:25:51 EDT
(In reply to comment #7)
> 
> No, it won't help me. I've already tried. :(
> 
> I have not any idea why it works fine in SDK and does not work in my
> configuration. Maybe some system properties are missed in my configuration. I
> have to check. It takes some time....
> 
> Thank you for support.
Oh Dymtro: I had not realized you were the reporter of bug 315004
Ok, well there is something different in the way OSGi is setup there. I asked around my co-workers if they knew more about execution profiles and why org.xml.sax is not available.

If you can share a testcase to reproduce this I can try some more.
Comment 9 Dmytro Pishchukhin CLA 2010-06-15 13:54:57 EDT
(In reply to comment #8)
> (In reply to comment #7)
> > 
> > No, it won't help me. I've already tried. :(
> > 
> > I have not any idea why it works fine in SDK and does not work in my
> > configuration. Maybe some system properties are missed in my configuration. I
> > have to check. It takes some time....
> > 
> > Thank you for support.
> Oh Dymtro: I had not realized you were the reporter of bug 315004
> Ok, well there is something different in the way OSGi is setup there. I asked
> around my co-workers if they knew more about execution profiles and why
> org.xml.sax is not available.
> 
> If you can share a testcase to reproduce this I can try some more.

I'll ask also in Equinox tree
Comment 10 Hugues Malphettes CLA 2010-06-16 16:06:42 EDT
Dymtro identified the core issue and filed a bug about it: bug 317007
Comment 11 Hugues Malphettes CLA 2010-06-24 01:44:38 EDT
This specific issue is fixed.
It will require org.apache.jasper.glassfish v201006231034 or later from eclipse orbit.

I'll add a second packaging to the jetty-test-webapp to also make it a web-bundle: currently the project jetty-test-webapp produces a war and a sources.jar.
I'll add another artifact that will be the same web-app as a web-bundle. It will be attached to the same maven project as the artifact jetty-test-webapp-webbundle.jar
I'll mark this bug fixed once I can run this test webapp with felix via pax-exam.
I'll need to add the unzipping of the web-bundles to support the jsp pages inside the web-bundle.
Comment 12 Hugues Malphettes CLA 2010-07-06 18:04:24 EDT
Fixed for 7.1.5.v20100705
I was able to run the jetty-test webapp packaged as a webbundle and automated the testing of a simple jsp page.