Which URL path are you receiving the 405 error code from? The root ( */* ) or within the */rest/* path? Does your code insert the proper annotations for method and path? I assume that the GET requests are returning a 405 status code; what happens if you try a POST request or another method ( you can send requests using different methods by using plugins such as https://addons.mozilla.org/en-us/firefox/addon/http-resource-test/ ).
Is there any other error text other than the 405 code? ----------------- -Vinny P Technology & Media Consultant Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com On Thu, Jul 10, 2014 at 7:31 PM, mimittaz <[email protected]> wrote: > hello, > i want to deploy my java restful web service with jersey implementation on > Google App Engine,i added the plugin to eclipse and created a new project > added the jersey jars and all seems ok no error, but when i run the url at > local host i get error405 > here is my web.xml > <?xml version="1.0" encoding="utf-8"?> > <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> > <init-param> > <!-- speed up initial Jersey loading by deactivating WADL --> > <param-name>com.sun.jersey.config.feature.DisableWADL</param-name> > <param-value>true</param-value> > </init-param> > <servlet> > <servlet-name>test_webservice</servlet-name> > <servlet-class> > com.sun.jersey.spi.container.servlet.ServletContainer > </servlet-class> > <init-param> > <param-name>com.sun.jersey.config.property.packages</param-name> > <!-- Enter your Jersey resources to speed up initial Jersey > loading --> > <!-- You can separate the java packages using , --> > <param-value>com.test.webservice</param-value> > </init-param> > <load-on-startup>1</load-on-startup> > </servlet> > > > <servlet-mapping> > <servlet-name>test_webservice</servlet-name> > <url-pattern>/rest/*</url-pattern> > </servlet-mapping> > > <welcome-file-list> > <welcome-file>index.html</welcome-file> > </welcome-file-list> > </web-app> > > can any one help me please,how can i run my web service throw google app > engin > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
