Yeah, this is what I figured but it's not going to be as easy as that.

1) you'd have to share the JSP api of the app server through the bridge via
the system bundle (As you've found) .. it's not easy and may lead to huge
dependency battle
2) you can't use the JSP servlet of the webapp under which the bridge is
running because it's not designed to handle your resources inside of osgi
3) you _may_ be able to instantiate your own JSP servlet from that impl but
I assure you that you will soon want to shoot yourself in the head with how
complex it is to get the compilation to work across the bridge ... perhaps
even impossible

You are FAR better to ignore the JSP support of the app server, and go with
one that's already able to run from within the osgi container.

There are a couple impl that I know of:
- equinox has one
- PAX-web also has one
- can't recall if the felix project has one (I don't think so, they were
smart..)

Lastly, JSP is not easy, trust me.

I have 2 main suggestions for you:

1) go with a known existing solution (as indicated above)
2) forget about JSPs completely and go with some other view tech

Sincerely,
- Ray


On Tue, Jul 29, 2014 at 1:53 PM, David Cao <govel...@gmail.com> wrote:

> Tomcat 6. We are taking the route to embed Equinox in Tomcat using the
> bridge project.
>
> Kind regards,
> --David
> On Jul 29, 2014 5:35 PM, "Raymond Auge" <raymond.a...@liferay.com> wrote:
>
>> Before answering that, who's (who do you expect to be) the provider of
>> the JSP servlet you're going to use?
>>
>>
>> On Tue, Jul 29, 2014 at 1:23 PM, David Cao <govel...@gmail.com> wrote:
>>
>>> Hello there,
>>>
>>> My OSGi'rized webapp has a run-time dependency on "*jsp-api.jar*" under
>>> Tomcat 6 lib. Is there a way I can inherit package from Tomcat catalina
>>> classpath? what are my other options here?
>>>
>>> Thanks a lot!
>>> David
>>>
>>>
>>>
>>> _______________________________________________
>>> equinox-dev mailing list
>>> equinox-dev@eclipse.org
>>> To change your delivery options, retrieve your password, or unsubscribe
>>> from this list, visit
>>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>>
>>
>>
>>
>> --
>> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
>>  (@rotty3000)
>> Senior Software Architect
>> *Liferay, Inc.* <http://www.liferay.com> (@Liferay)
>>
>>
>> _______________________________________________
>> equinox-dev mailing list
>> equinox-dev@eclipse.org
>> To change your delivery options, retrieve your password, or unsubscribe
>> from this list, visit
>> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>>
>
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>



-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect
*Liferay, Inc.* <http://www.liferay.com> (@Liferay)
_______________________________________________
equinox-dev mailing list
equinox-dev@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to