New poster - so please redirect me if this is not the proper forum. It is not clear to me where this should be posted, so starting here...
I have a simple web application in which I am trying to render a JSP page. When trying to visit the page, I am hit with the following error: PWC6181: File /javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd not found
To make sure my entire plugin was not messed up, I coded up a very simple Servlet to output some text. I was able to see the output, so I know the basic wirings are ok.
The contents of the page is merely:
<html>
<body>
<%@ taglib prefix="c" uri="h t tp : / / java.sun.com/jsp/jstl/core" %>
<c:out value="Hello World"/>
</body>
</html>
My MANIFEST.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Webapp
Bundle-SymbolicName: org.eclipse.jetty.example.webapp;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: org.eclipse.jetty.example.webapp.Activator
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Import-Package: javax.servlet;version="2.6.0",
javax.servlet.http;version="2.6.0",
javax.servlet.jsp.resources,
org.eclipse.equinox.jsp.jasper;version="1.0.0",
org.eclipse.equinox.jsp.jasper.registry,
org.osgi.framework;version="1.3.0",
org.osgi.service.http;version="1.2.1",
org.osgi.util.tracker;version="1.5.1"
Bundle-ClassPath: lib/org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar,
.
My plugin.xml:
<?xml version="1.0"?>
<plugin>
<extension point="org.eclipse.equinox.http.registry.servlets">
<servlet
alias="/test"
class="org.eclipse.jetty.example.webapp.Servlet"/>
<servlet alias="/jsp/*.jsp" class="org.eclipse.equinox.jsp.jasper.registry.JSPFactory:/WEB-INF/jsps"/>
</extension>
</plugin>
I am using Eclipse SDK 4.2.2 and my 'Target Platform' is merely the default 'Running Platform'. I do have org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar referenced in a /lib directory for the taglib definitions.
In the osgi console, I see that javax.servlet.jsp.resources package is resolved by javax.servlet.jsp_2.2.0.v201112011158.jar. Inspecting that jar, the file that is claimed to be missing is actually present.
Can anyone shed any light on what is going on here?
I have included an export of my project for the sake of reproducing.
Thanks!