[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Equinox internal JSP compiler with ServletBride?

Wow, thanks Tom!. Downgrading the JSP engine seems to work as I do not get any exception/error now, well no errors anywhere rather than 404 on the browser.

Hence, I need the sources of the packages added from Indigo R2 in order to see what it is going wrong at this time. Unfortunately, I'm unable to find such old sources as they seem as don't migrated to Git and I'm neither able to find the old repository (Subversion?).Â
Might you please share the the url or the source bundles?

Thanks very much!
Pablo.

PS: As far as I can see currently, the jsp alias has been resolved against the registry and something is happening form inside the JspServlet. Looking into the sources of Luna it it would be failing due an unexpected configuration (the JspServlet thinks it is running on an Tomcat compatible environment which is not true in this case. It is running under a very constrained environment provided by the Atlassian's plugin framework which provides a customized servlet environment not fully compatible with Tomcat: no "WEB-INF" folder exists, for instance...).





2014-11-17 23:13 GMT+01:00 Thomas Watson <tjwatson@xxxxxxxxxx>:
From the looks of things Equinox is trying to use the 'internal' jsp compiler (org.apache.jsp.glassfish). The problem is that jsp compiler requires serlvet 3.0 or greater. You would need to grab the jsp support from an earlier release of equinox. ÂI think the Indigo (3.7.2) release is the last equinox jsp version that supported something less than servlet 3.0. I don't think you would need to downgrade everything from the equinox server-side support, only the jsp related things.

I would point you to the archive jars to try out, but currently our archive download site seems to be broken (https://bugs.eclipse.org/bugs/show_bug.cgi?id=451917). ÂIn the mean time you should be able to download the last Equinox SDK with jsp support for < 3.0 Servlet at http://archive.eclipse.org/equinox/drops/R-3.7.2-201202080800/download.php?dropFile=equinox-SDK-3.7.2.zip

Tom





From: Â Â Â ÂPablo Beltran <pbeltranl@xxxxxxxxx>
To: Â Â Â Âequinox-dev@xxxxxxxxxxx
Date: Â Â Â Â11/16/2014 04:56 PM
Subject: Â Â Â ÂRe: [equinox-dev] Equinox internal JSP compiler with ServletBride?
Sent by: Â Â Â Âequinox-dev-bounces@xxxxxxxxxxx




I meant Eclipse Luna has jetty 8 which could be used to compile JSP files rather than expecting that the ServletBridge runs on Tomcat (or any compatible server) which will provide the JSP configuration. In this particular case, the ServletBridge runs on a servlet environment (2.3 version) without support for JSP (no Jasper).

Please, if it is possible, any help pointing to the documentation to configure it would be greatly appreciated!

Thanks!



2014-11-15 19:55 GMT+01:00 Pablo Beltran <pbeltranl@xxxxxxxxx>:
Hi,

I want to run Eclipse Infocenter to run on a Java Application server that does not support JSPs. So, the "infocenter/index.jsp" page raises an exception as it looks like Equinox relies on the 3rd party application server to compile JSP files. How can I configure Equinox to use the internal JSP compiler for that?

I've build an Infocenter distribution from Eclipse Luna and it works with Tomcat without any problem. However, the same Infocenter distribution running on a no-JSP-support app server raises the exception. As the Infocenter distribution is built against Eclipse Luna, the internal JSP compiler implementation is:

org.apache.jasper.glassfish_2.2.2.v201205150955.jar
Â
The full exception stack trace is shown below. It fails because theÂgetJspConfigDescriptor()Âis not implemented as the 3rd party web app server supports the servlet-api 2.3 version only. But this would not be a problem whether Equinox would use the internal JSP compiler rather than rely on an external one for that.

Thanks!
Pablo

org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:634)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.eclipse.equinox.jsp.jasper.JspServlet.service(JspServlet.java:155)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:138)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) Â<+14> (ApplicationFilterChain.java:305) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:87) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (XContentTypeOptionsNoSniffFilter.java:22) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (HeaderSanitisingFilter.java:44) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:70)
at com.atlassian.jira.tzdetect.IncludeResourcesFilter.doFilter(IncludeResourcesFilter.java:39) Â<+3> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70)
at com.atlassian.jira.baseurl.IncludeResourcesFilter.doFilter(IncludeResourcesFilter.java:38) Â<+8> (AbstractHttpFilter.java:31) (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70) (ContextFilter.java:25) (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70)
at com.atlassian.mywork.client.filter.ServingRequestsFilter.doFilter(ServingRequestsFilter.java:37) Â<+3> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70)
at com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter.doFilter(PrettyUrlsSiteMeshFixupFilter.java:36) Â<+3> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70)
at com.atlassian.prettyurls.filter.PrettyUrlsDispatcherFilter.doFilter(PrettyUrlsDispatcherFilter.java:60) Â<+3> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70)
at com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter.doFilter(PrettyUrlsSiteMeshFilter.java:92) Â<+3> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70)
at com.atlassian.prettyurls.filter.PrettyUrlsMatcherFilter.doFilter(PrettyUrlsMatcherFilter.java:56) Â<+3> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70)
at com.atlassian.labs.botkiller.BotKillerFilter.doFilter(BotKillerFilter.java:36) Â<+3> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70)
at com.atlassian.labs.httpservice.resource.ResourceFilter.doFilter(ResourceFilter.java:59) Â<+23> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AccessLogFilter.java:103) (AccessLogFilter.java:87) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (XsrfTokenAdditionRequestFilter.java:54) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (SiteMeshFilter.java:181) (SiteMeshFilter.java:85) (SitemeshPageFilter.java:124) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:87) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:70)
at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61) Â<+22> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (SecurityFilter.java:239) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (TrustedApplicationsFilter.java:100) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (BaseLoginFilter.java:172) (JiraLoginFilter.java:70) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:70) (OAuthFilter.java:69) (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70)
at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61) Â<+16> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ProfilingFilter.java:99) (JIRAProfilingFilter.java:19) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractJohnsonFilter.java:71) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractJohnsonFilter.java:71) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210)
at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92) Â<+10> (UrlRewriteFilter.java:394) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (GzipFilter.java:88) (GzipFilter.java:59) (JiraGzipFilter.java:55) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:70)
at com.atlassian.fastdev.AutoReloadFilter.doFilter(AutoReloadFilter.java:63) Â<+3> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70)
at com.atlassian.analytics.client.filter.JiraAnalyticsFilter.doFilter(JiraAnalyticsFilter.java:41) Â<+4> (AbstractHttpFilter.java:31) (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:70)
at com.atlassian.prettyurls.filter.PrettyUrlsCombinedMatchDispatcherFilter.doFilter(PrettyUrlsCombinedMatchDispatcherFilter.java:61) Â<+40> (DelegatingPluginFilter.java:78) (IteratingFilterChain.java:42) (ServletFilterModuleContainerFilter.java:77) (ServletFilterModuleContainerFilter.java:63) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:87) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractCachingFilter.java:33) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (AbstractEncodingFilter.java:41) (AbstractHttpFilter.java:31) (PathMatchingEncodingFilter.java:49) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (JiraStartupChecklistFilter.java:79) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (MultipartBoundaryCheckFilter.java:41) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:87) (JiraFirstFilter.java:60) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (StandardWrapperValve.java:222) (StandardContextValve.java:123) (AuthenticatorBase.java:472) (StandardHostValve.java:171) (ErrorReportValve.java:99) (AccessLogValve.java:953) (StandardEngineValve.java:118) (CoyoteAdapter.java:408) (AbstractHttp11Processor.java:1008) (AbstractProtocol.java:589) (JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy3493.getJspConfigDescriptor(Unknown Source)
at org.apache.jasper.compiler.JspConfig.processWebDotXml(JspConfig.java:106)
at org.apache.jasper.compiler.JspConfig.init(JspConfig.java:196)
at org.apache.jasper.compiler.JspConfig.findJspProperty(JspConfig.java:259)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:625)
... 198 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.jsp.jasper.JspServlet$ServletContextAdaptor.invoke(JspServlet.java:251)
... 205 more
Caused by: java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy3492.getJspConfigDescriptor(Unknown Source)
... 211 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.http.servlet.internal.ServletContextAdaptor.invoke(ServletContextAdaptor.java:80)
at org.eclipse.equinox.http.servlet.internal.ServletContextAdaptor$1.invoke(ServletContextAdaptor.java:70)
... 212 moreCaused by: java.lang.AbstractMethodError: com.atlassian.plugin.servlet.PluginServletContextWrapper.getJspConfigDescriptor()Ljavax/servlet/descriptor/JspConfigDescriptor;
... 218 more

_______________________________________________
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