Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] Error in new servlet mapping


Dear Mark Macdonald ,

      You have told the below procedure is applicable for local desktop eclipse IDE . But orion web based IDE is it applicable ? . Because I have tried for a couple of week which is not working to me .

      org.eclipse.core.runtime.CoreException: Plug-in org.eclipse.orion.server.configurator was unable to load class org.eclipse.orion.server.zide.ZideServlet
       

<extension point="org.eclipse.equinox.http.registry.servlets">
      <servlet
            alias="/zide"
            class="org.eclipse.orion.server.zide.ZideServlet">
      </servlet>
   </extension>


      But it is working in , If i put in this class

            <extension point="org.eclipse.equinox.http.registry.servlets">
      <servlet
            alias="/zide"
            class="org.eclipse.orion.server.npm.ZideServlet">
      </servlet>
   </extension>


Regards by,

K.Vinoth kumar


---- On Thu, 20 Feb 2014 20:04:51 +0530 Mark Macdonald <mamacdon@xxxxxxxxx> wrote ----

T
he Orion server defines its servlet path mappings in the following file: bundles/org.eclipse.orion.server.configurator/plugin.xml
A servlet mapping looks something like this:

   <extension point="org.eclipse.equinox.http.registry.servlets">
      <servlet
            alias="/npm"
            class="org.eclipse.orion.server.npm.NpmServlet">
      </servlet>
   </extension>


If you want to get started quickly, you can just edit that file and re-launch your server. A better approach would be to add a new OSGi bundle to your server, that provides your servlet's functionality. Your new bundle can contain a plugin.xml file similar to Orion's, that defines your servlet path mappings.

Consult the Equinox documentation for more information. Here is a starting point: http://eclipse.org/equinox/server/http_writing_application.php

If you have more questions, the Orion Forum is a good place to ask.



On Wed, Feb 19, 2014 at 10:46 PM, vinothkumar.kp <vinothkumar.kp@xxxxxxxxxxxx> wrote:
Dear Team ,

            I want to add new servlet url like "/npm" . But it is not working in post method . How did you handle servlet mapping in orion . The error is

           

HTTP ERROR: 404

Problem accessing /zp. Reason:

    ProxyServlet: /zp

Powered by Jetty://



Regards by,

K.Vinoth kumar

_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev


_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev


Back to the top