|
|
|
|
Re: Jetty failure accessing JSP [message #135237 is a reply to message #135197] |
Fri, 10 July 2009 07:55 |
Maurizio Messages: 34 Registered: July 2009 |
Member |
|
|
Hi Simon,
Thanks for your reply.
I'm registering the JSPs in my plugin.xml using:
"
<extension
point="org.eclipse.equinox.http.registry.servlets">
<servlet
alias="/index.jsp"
class="org.eclipse.equinox.jsp.jasper.registry.JSPFactory" />
</extension>
"
For this I've also installed two bundles:
org.eclipse.equinox.jsp.jasper_1.0.100.v20080427-0830, and
org.eclipse.equinox.jsp.jasper.registry_1.0.0.v20080427-0830
I think that the above means that "I'm using the extension registry and
NOT the OSGi HttpService". I presume that this is OK, is it?
I'm NOT using org.eclipse.equinox.jsp.jasper.JspServlet.
My servlet is defined like:
"
...
public class Servlet1 extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
....
resp.sendRedirect("/index.jsp");
}
"
That's all I need to do.
What should I do for getting my "index.jsp" visible from that context?
Note also that I've checked via
"getServletContext().getResource("/index.jsp")" and
"getServletContext().getResourcePaths("/")", and both of them return valid
info. The seconds indicate:
"
[/bin/, /index.jsp, /.classpath, /WEB-INF/, /build.properties,
/.settings/, /plugin.xml, /.project, /src/, /hello.jsp, /META-INF/]
"
This looks like that my "index.jsp" is a valid resource for the context.
Is it?
Thanks in advance for your help.
Kind regards.
Maurizio
|
|
|
Re: Jetty failure accessing JSP [message #135249 is a reply to message #135237] |
Fri, 10 July 2009 08:15 |
|
Maurizio schrieb:
> For this I've also installed two bundles:
> org.eclipse.equinox.jsp.jasper_1.0.100.v20080427-0830, and
> org.eclipse.equinox.jsp.jasper.registry_1.0.0.v20080427-0830
You need a bit more bundles. They have dependencies which will need to
be satisfied.
Can you launch with "-console" and type "ss" in the console to see if
all bundles resolve correctly?
-Gunnar
--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05872 seconds