[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Access Tomcat lib jar from Equinox Servlet Bridge

Thanks so much for the detailed explaination!! our new web app is not based on jsp. The error was from an old code that throws a "javax.servlet.jsp.JspException" when a condition failed ... I have put a temporary fix to get moving ...

However, my really problem now is to configure http context used in Equinox bridge. I have a question post at "http://dev.eclipse.org/mhonarc/lists/equinox-dev/msg07949.html". Basically how do I configure bridge http context of those "<context-param>, <security-role>, <security-constraint>, <login-config>" descriptors. Do you have any ideas on that?

thanks!!
David


On Tue, Jul 29, 2014 at 6:04 PM, Raymond Auge <raymond.auge@xxxxxxxxxxx> wrote:
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 <govelogo@xxxxxxxxx> 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.auge@xxxxxxxxxxx> 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 <govelogo@xxxxxxxxx> 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@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev



--
Raymond AugÃÂ(@rotty3000)
Senior Software Architect
Liferay, Inc.Â(@Liferay)


_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
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@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev



--
Raymond AugÃÂ(@rotty3000)
Senior Software Architect
Liferay, Inc.Â(@Liferay)


_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/equinox-dev