Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » HTTP JSP Bundle
HTTP JSP Bundle [message #71191] Tue, 01 August 2006 13:42 Go to next message
Eclipse UserFriend
Originally posted by: krishna.dantam.mro.com

Hi,

I am trying to get the JSP Examples work on the OSGi Equinox Platfrom going
through the HTTP Servlet bridge after looking at the following issue and
following the guidelines provided by Simon.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=140430

I am able to successfully run the helloworld servlet and JSP examples in
BEA
WebLogic 9.2 environment. I am trying to run now on IBM WebSphere 6.1
release and running into an issue.

I deployed and ran the sample helloworld servlet successfully. I can
access JSP examples index.html page successfully through the servlet
bridge. When I click on to execute the JSP pages, I see all the
JspServlet code getting executed etc and I also noticed that the Jasper
code is generating the compiled version of the JSP file (both the java and
class files), but then the code fails with ClassFormatError. I just want
to know whether anyone ran across the
same issue or not with WebSphere 6.1

I tried deploying the Web Application to use Parent-Last class loader
also, but no luck.

Thanks
Krishna
Re: HTTP JSP Bundle [message #71581 is a reply to message #71191] Fri, 04 August 2006 23:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: simon.kaegi.cognos.com

Hmm.... a ClassFormatError is a big deal and also unusual.

I'm a bit suspicious of the interaction between the Eclipse compiler
packaged with Jasper and the release of J9 in Websphere 8.1 however have
been unbale to prove anything. (Eventually the jasper bundle might use the
current jdt.compiler but for now is using the version packaged with Jasper
in Tomcat 5.5.)

I won't have access to WS 8.1 for a week or two, so I've tried the version
of J9 that comes with the IBM Dev Package 2.01 both in Tomcat and with the
embedded Jetty Http Service without having any problems. The VM I used
was...
java.fullversion=J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32
j9vmwi3223-20060222a (JIT enabled)
J9VM - 20060220_05389_lHdSMR
JIT - 20060220_2133_r8
GC - 20060214_AA

I wonder if anyone else can reproduce the ClassFormatError?

Probably the best way forward is to open a bug report and add a test case.
Thanks.

-Simon


"Krishna" <krishna.dantam@mro.com> wrote in message
news:9c42dbba68f5f8fcc6b02f584e367938$1@www.eclipse.org...
> Hi,
>
> I am trying to get the JSP Examples work on the OSGi Equinox Platfrom
> going
> through the HTTP Servlet bridge after looking at the following issue and
> following the guidelines provided by Simon.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=140430
>
> I am able to successfully run the helloworld servlet and JSP examples in
> BEA
> WebLogic 9.2 environment. I am trying to run now on IBM WebSphere 6.1
> release and running into an issue.
>
> I deployed and ran the sample helloworld servlet successfully. I can
> access JSP examples index.html page successfully through the servlet
> bridge. When I click on to execute the JSP pages, I see all the
> JspServlet code getting executed etc and I also noticed that the Jasper
> code is generating the compiled version of the JSP file (both the java and
> class files), but then the code fails with ClassFormatError. I just want
> to know whether anyone ran across the
> same issue or not with WebSphere 6.1
>
> I tried deploying the Web Application to use Parent-Last class loader
> also, but no luck.
>
> Thanks
> Krishna
>
Re: HTTP JSP Bundle [message #72024 is a reply to message #71581] Fri, 11 August 2006 21:11 Go to previous message
Eclipse UserFriend
Originally posted by: krishna.dantam.mro.com

The issue has been resolved. It is a problem with the configuration. I have
changed the following to get the JSP examples work correctly. The
org.eclipse.equinox.servlet.bridge.extensionbundle_3.2.0 has the following
manifest information. Removed the equinox.servlet.api bundle from the
bundles.
Used the osgi.parentClassloader=boot setting in the launch.ini file.

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Servlet Bridge Extension Bundle
Bundle-SymbolicName: org.eclipse.equinox.servlet.bridge.extensionbundle
Fragment-Host: system.bundle; extension:=framework
Bundle-Version: 3.2.0
Export-Package: org.eclipse.equinox.servlet.bridge.launcher,
javax.servlet; version=2.4,
javax.servlet.http; version=2.4,
javax.servlet.jsp; version=2.0,
javax.servlet.jsp.el; version=2.0,
javax.servlet.jsp.resources; version=2.0,
javax.servlet.jsp.tagext; version=2.0,
javax.servlet.resources; version=2.4


The XML API jars need to be bundled, otherwise,
the bundles cannot find the XML DOM implementation classes. Temporarily I
got
things to work by bundling the xerces jar. I think this will eventually be
addressed
Previous Topic:OSGi bundle class loader
Next Topic:Extension points
Goto Forum:
  


Current Time: Fri Apr 26 14:28:30 GMT 2024

Powered by FUDForum. Page generated in 0.03524 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top