Hi,
I am a first time poster so I apologize if this is the wrong forum for this question..
I am trying to use jsp inside equinox container. I am not very experienced in neither jsp nor osgi so i can't pinpoint my exact problem. Here is what i have done so far:
I have created a simple plugin project. My project structure is in ss.png (sorry i am not allowed to post pictures before sending 25 posts )
In my activator class, I am creating an HttpServiceTracker object which registers my "/web" folder to "/".
in my web.xml, iam mapping test.jsp to "/test.jsp"
<web-app>
<servlet>
<servlet-name>test.jsp</servlet-name>
<jsp-file>/test.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>test.jsp</servlet-name>
<url-pattern>/test.jsp</url-pattern>
</servlet-mapping>
</web-app>
I have also added "org.eclipse.equinox.http.registry.servlets" to extensions as shown in ss2.png
here is my plugin.xml
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="org.eclipse.equinox.http.registry.servlets">
<servlet
alias="/test.jsp"
class="org.eclipse.equinox.jsp.jasper.registry.JSPFactory:/">
</servlet>
</extension>
</plugin>
When i open localhost/test.jsp I expect to see a hello world page but instead i got an empty page.
if i register "/web" folder to "/test" and try to open localhost/test/test.jsp, jsp page is not being processed so an "open with" dialogue page is displayed as shown in ss3.png
btw i am trying to run my bundle from command line with "java -jar org.eclipse.osgi_3.7.0.v20110613.jar -console" command and all bundles start without a problem. But again i am not sure if there is a missing file. ss4.png shows all the active bundles in equinox container.
Any help is appreciated