Jdk 1.5 and tomcat 6.0.14, all running under osx 10.5.  Can't give you
the exact jdk version now since I'm not at my machine.

On 5/25/08, Mick Knutson <[EMAIL PROTECTED]> wrote:
> What version of Tomcat? What JDK?
>
> On Sun, May 25, 2008 at 10:19 AM, John Mikhail <[EMAIL PROTECTED]> wrote:
>
>> Yeah that's the bizzar thing about it.  Do you notice anything in my
>> config
>> that would not cause it to deploy?  Tomcat comes up fine with no errors
>> and
>> I can see my application context loaded fine.  I know its going to be
>> something small too.
>>
>> John
>>
>>
>> On May 25, 2008, at 9:56 AM, "Mick Knutson" <[EMAIL PROTECTED]> wrote:
>>
>>  afaik, you should be able to see the services that are deployed. If you
>> do
>>> not see them, then they are not deployed correctly.
>>>
>>>
>>>
>>> On Sun, May 25, 2008 at 9:43 AM, John Mikhail <[EMAIL PROTECTED]> wrote:
>>>
>>>  No I don't.  Anything after / produces that error.
>>>>
>>>> On Sun, May 25, 2008 at 1:35 AM, Mick Knutson <[EMAIL PROTECTED]>
>>>> wrote:
>>>>
>>>>  do you see the service listed when you go to fooService/ ???
>>>>>
>>>>>
>>>>> On Sun, May 25, 2008 at 1:20 AM, John Mikhail <[EMAIL PROTECTED]>
>>>>>
>>>> wrote:
>>>>
>>>>>
>>>>>  Hello,
>>>>>>
>>>>>> I'm building a RESTful service using cxf and I'm consistently getting
>>>>>>
>>>>> "No
>>>>>
>>>>>> operation matching request path /fooService/foo/1/ is found,
>>>>>>
>>>>> ContentType
>>>>
>>>>> :
>>>>>
>>>>>> */*, Accept :
>>>>>> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8."
>>>>>>
>>>>>> This is a very simple service (source code at the end).  I simply
>>>>>>
>>>>> return
>>>>
>>>>> back the ID that I pass in.  I followed the instructions at
>>>>>> http://cwiki.apache.org/CXF20DOC/jax-rs-jsr-311.html, so I'm not doing
>>>>>> anything different.  This service is deployed using spring 2.5 under
>>>>>>
>>>>> tomcat
>>>>>
>>>>>> 6.0.14.
>>>>>>
>>>>>> Would anyone happen to know what's going on?  I've racked my brain
>>>>>> over
>>>>>> this
>>>>>> for hours, trying everything I can possibly think of, but with no
>>>>>> luck.
>>>>>> Any
>>>>>> help would be greatly appreciated.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> John
>>>>>>
>>>>>> --
>>>>>> Java Source:
>>>>>>
>>>>>> import javax.ws.rs.GET;
>>>>>>
>>>>>> import javax.ws.rs.Path;
>>>>>>
>>>>>> import javax.ws.rs.PathParam;
>>>>>>
>>>>>>
>>>>>> @Path("/fooService/")
>>>>>>
>>>>>> public class FooService {
>>>>>>
>>>>>>
>>>>>> /**
>>>>>>
>>>>>>  * Class Constructor
>>>>>>
>>>>>>  */
>>>>>>
>>>>>> public FooService() {
>>>>>>
>>>>>> }
>>>>>>
>>>>>>
>>>>>> @GET
>>>>>>
>>>>>> @Path("/foo/{id}")
>>>>>>
>>>>>> public String getFoo(@PathParam("id") String id) {
>>>>>>
>>>>>>  return "test: " + id;
>>>>>>
>>>>>> }
>>>>>>
>>>>>>
>>>>>> @GET
>>>>>>
>>>>>> @Path("/foos")
>>>>>>
>>>>>> public String getFoos() {
>>>>>>
>>>>>>  return "test2";
>>>>>>
>>>>>> }
>>>>>>
>>>>>> }
>>>>>>
>>>>>>
>>>>>> Spring application context:
>>>>>>
>>>>>>
>>>>>> <beans xmlns="http://www.springframework.org/schema/beans";
>>>>>>
>>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>>>>
>>>>>> xmlns:jaxrs="http://cxf.apache.org/jaxrs";
>>>>>>
>>>>>> xsi:schemaLocation=
>>>>>>
>>>>>>  "http://www.springframework.org/schema/beans
>>>>>> http://www.springframework.org/schema/beans/spring-beans.xsd
>>>>>>
>>>>>>   http://cxf.apache.org/jaxrs
>>>>>>
>>>>> http://cxf.apache.org/schemas/jaxrs.xsd
>>>>
>>>>> ">
>>>>>
>>>>>>
>>>>>>
>>>>>> <import resource="classpath:META-INF/cxf/cxf.xml" />
>>>>>>
>>>>>> <import
>>>>>>
>>>>> resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml"
>>>>>
>>>>>> />
>>>>>>
>>>>>> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
>>>>>>
>>>>>>
>>>>>> <!-- Define the REST service implementations -->
>>>>>>
>>>>>> <bean id="fooService"
>>>>>>
>>>>>>      class="com.foo.FooService"
>>>>>>
>>>>>>      autowire="byType"/>
>>>>>>
>>>>>>
>>>>>> <!--
>>>>>>
>>>>>>  REST service server configurations
>>>>>>
>>>>>>  -->
>>>>>>
>>>>>> <jaxrs:server id="fooServiceServer"
>>>>>>
>>>>>>              address="/">
>>>>>>
>>>>>>  <jaxrs:serviceBeans>
>>>>>>
>>>>>>     <ref bean="fooService"/>
>>>>>>
>>>>>>  </jaxrs:serviceBeans>
>>>>>>
>>>>>> </jaxrs:server>
>>>>>>
>>>>>> </beans>
>>>>>>
>>>>>>
>>>>>> web.xml:
>>>>>>
>>>>>>
>>>>>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>>>>>
>>>>>> <web-app xmlns="http://java.sun.com/xml/ns/javaee";
>>>>>>
>>>>>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>>>>
>>>>>>  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>>>>>> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
>>>>>>
>>>>>>  version="2.5">
>>>>>>
>>>>>>
>>>>>> <context-param>
>>>>>>
>>>>>>  <description>Spring Context Locations</description>
>>>>>>
>>>>>>  <param-name>contextConfigLocation</param-name>
>>>>>>
>>>>>>  <param-value>classpath:/com/foo/applicationContext.xml</param-value>
>>>>>>
>>>>>> </context-param>
>>>>>>
>>>>>>
>>>>>> <listener>
>>>>>>
>>>>>>
>>>>>> <listener-class>org.springframework.web.context.ContextLoaderListener</
>>>>>
>>>>>> listener-class>
>>>>>>
>>>>>> </listener>
>>>>>>
>>>>>>
>>>>>>
>>>>>> <servlet>
>>>>>>
>>>>>>  <display-name>CXF Servlet</display-name>
>>>>>>
>>>>>>  <servlet-name>CXFServlet</servlet-name>
>>>>>>
>>>>>>  <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</
>>>>>> servlet-class>
>>>>>>
>>>>>>  <load-on-startup>1</load-on-startup>
>>>>>>
>>>>>> </servlet>
>>>>>>
>>>>>>
>>>>>> <servlet-mapping>
>>>>>>
>>>>>>  <servlet-name>CXFServlet</servlet-name>
>>>>>>
>>>>>>  <url-pattern>/*</url-pattern>
>>>>>>
>>>>>> </servlet-mapping>
>>>>>>
>>>>>> </web-app>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> ---
>>>>> Thank You…
>>>>>
>>>>> Mick Knutson
>>>>> BASE Logic, inc.
>>>>>
>>>>> Website: http://www.baselogic.com
>>>>> Blog: http://www.baselogic.com/blog
>>>>> BLiNC Magazine: http://www.blincmagazine.com
>>>>> Linked IN: http://www.linkedin.com/in/mickknutson
>>>>> DJ Mick: http://www.djmick.com
>>>>> MySpace: http://www.myspace.com/mickknutson
>>>>> Tahoe: http://tahoe.baselogic.com
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> ---
>>> Thank You…
>>>
>>> Mick Knutson
>>> BASE Logic, inc.
>>>
>>> Website: http://www.baselo
>>>
>>
>
>
> --
> ---
> Thank You…
>
> Mick Knutson
> BASE Logic, inc.
>
> Website: http://www.baselogic.com
> Blog: http://www.baselogic.com/blog
> BLiNC Magazine: http://www.blincmagazine.com
> Linked IN: http://www.linkedin.com/in/mickknutson
> DJ Mick: http://www.djmick.com
> MySpace: http://www.myspace.com/mickknutson
> Tahoe: http://tahoe.baselogic.com
>

Reply via email to