Hi,all.

 I got stuck when integrate resteasy with spring.

I got error messages:

1355 [http-bio-8080-exec-1] ERROR org.jboss.resteasy.core.ExceptionHandler -
failed to execute

javax.ws.rs.NotFoundException: Could not find resource for full path:
http://localhost:8080/VICAdmin/rest/opLog/create/world

    at org.jboss.resteasy.core.registry.ClassNode.match(ClassNode.java:72)

    at
org.jboss.resteasy.core.registry.RootClassNode.match(RootClassNode.java:48)

    at
org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMe
thodRegistry.java:444)

    at
org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatch
er.java:234)

    at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.j
ava:171)

 

Here is my web.xml:

<listener>  

 
<listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap<
/listener-class>  

   </listener>

   

   <listener>  

 
<listener-class>org.jboss.resteasy.plugins.spring.SpringContextLoaderListene
r</listener-class>  

  </listener>  

  

   <servlet>

      <servlet-name>Resteasy</servlet-name>

 
<servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatch
er</servlet-class>

   </servlet>

 

   <servlet-mapping>  

      <servlet-name>Resteasy</servlet-name>  

      <url-pattern>/rest/*</url-pattern>  

   </servlet-mapping>

     

    <context-param>

         <param-name>resteasy.servlet.mapping.prefix</param-name>

         <param-value>/rest</param-value>

   </context-param>

 

    <display-name>vicadmin</display-name>

       

    <context-param>

        <param-name>contextConfigLocation</param-name>

        <param-value>classpath:services.xml</param-value>

    </context-param>

 

 Here is my services.xml:

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans";

       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

       xsi:schemaLocation="http://www.springframework.org/schema/beans

           http://www.springframework.org/schema/beans/spring-beans.xsd";>

           

    <bean id="opLogServicePoint"
class="com.linxun.vicadmin.rest.OpLogServicePoint"/>  

    

</beans>

 

Within my java file:

package com.linxun.vicadmin.rest;

 

import javax.ws.rs.GET;

import javax.ws.rs.Path;

import javax.ws.rs.PathParam;

 

@Path("/opLog")  

public class OpLogServicePoint {

 

           @GET  

           @Path( "/create/{message}")  

           public String getMessage(    @PathParam("message")  String
message)  

             {  

 

                          System.out.println( "hello,"+message);

                 return "hello,"+message;  

             }  

}

 

What`s wrong with them?

Thanks for your kindly reply.

 

Best Regards 

 

Rixin liu

 

 

 

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to