Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] httpContext extension point not working, but servlet extension point is?

Title: httpContext extension point not working, but servlet extension point is?

Hopefully this is the correct place for this post I did not see an equivalent .usr mailing list for equinox.

I am using the servletbridge.  I can see my org.eclipse.equinox.http.registry.servlets registered servlets fine, both in a jetty container as well as in Tomcat launched within eclipse as a Java application.  But, I can not see any httpContexts registered under the extension point org.eclipse.equinox.http.registry.httpcontext.  The only context that works is that of the tomcat registered context.  In jetty, I can only access my servlets directly.

This works:

http://localhost/myServlet?foo=bar

This does not work:

        http://localhost/myWebAppContext/myServlet?foo=bar

unless I am running in Tomcat with the context registered specifically in Tomcat (5.5) as <Context path="/myWebAppContext" docBase="myPath/>

I even tried getting a servlet init param registered with the servlet so that maybe I could get the web context out that way, but I can not access the init params from the servlet code either:

These both produce a null response:

        req.getSession().getServletContext().getServletContextName()

        req.getSession().getServletContext().getInitParameter(“webAppContext”);

Any ideas?

Plugin.xml:

<plugin>

   <extension point="org.eclipse.equinox.http.registry.httpcontexts">

                <httpcontext

                        name="myWebAppContext"

                        path="/myWebAppContext ">

                </httpcontext>

        </extension>

   <extension point="org.eclipse.equinox.http.registry.servlets">

         <servlet

                class="com.compuware.myServlet"

                alias="/myServlet "

                httpcontext-name=" myWebAppContext "

                load-on-startup="true">

                           <init-param

                 name="webAppContext"

                 value="cwinfocenterBLA">

           </init-param>

                </servlet>

   </extension>

</plugin>

Regards,
James

--

James Korotney
Technical Consultant, Technical Architecture
Compuware
One Campus Martius
Detroit, Michigan 48226
313-227-2395 Direct
248-760-8218 Mobile
313-227-7300
james.korotney@xxxxxxxxxxxxx


The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.


Back to the top