Take the 2-minute tour ×

When I send this request using jquery:

<form id="myForm" action="http://myIp/../cat/create" method="post">
<legend>jQuery.post Form Submit</legend>
    Cat Id  : <INPUT type="text" name="catId">
    Cat Name: <INPUT type="text" name="catName">

The script:

 $(document).ready(function() { 
        alert("Thank you for your comment!"); 

The JAX-RS(REST) cannot identify the correct method to call and print the following message: INFO: The system cannot find any method in the "My Class" class that supports OPTIONS. Verify that a method exists.

Hence when I do the same without using jquery but with just plain HTML everything is fine:

<FORM action="http://myaddress/../car/create" method="post">
    Car Id  : <INPUT type="text" name="carId">
    Car Name: <INPUT type="text" name="carName"><

Can anybody tell me what I'm doing wrong with jquery?

share|improve this question
try capitals method="POST" –  EGL 2-101 Mar 17 '11 at 7:14
add comment

1 Answer

I suggest putting HTTP Proxy (you can use Fiddler2) and see what is the difference between the requests. The error states that your class doesn't support OPTIONS. In Fiddler you can see if OPTIONS is really sent instead of POST.

share|improve this answer
I found out that the same works with IE7 –  BigWonder Mar 24 '11 at 21:29
Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 that what I see in headers. I don't see application/x-www-form-urlencoded though I set is in jquery: contentType: "application/x-www-form-urlencoded" –  BigWonder Mar 25 '11 at 22:30
add comment

Your Answer


