Re: update servlet not working

2007-09-06 Thread Tom Hill
I don't use the java client, but when I switched to 1.2, I'd get that
message when I forget to add the content type header, as described in
CHANGES.txt

>  9. The example solrconfig.xml maps /update to XmlUpdateRequestHandler using
the new request dispatcher (SOLR-104).  This requires posted content to
have a valid contentType: curl -H 'Content-type:text/xml; charset=utf-8'
The response format matches that of /select and returns standard error
codes.  To enable solr1.1 style /update, do not map "/update" to any
handler in solrconfig.xml (ryan)

But your request log shows a GET, should be a POST, I would think. I'd
double check the parameters on post.jar


On 9/6/07, Benjamin Li <[EMAIL PROTECTED]> wrote:
> oops, sorry, its says "missing content stream"
>
> as far as logs go: i have a request log, didn't find anything with
> stack traces though. where is it? we're using the example one packaged
> with solr.
> "GET /solr/update HTTP/1.1" 400 1401
>
> just to make sure, i typed "java -jar post.jar solrfile.xml"
>
> thanks!
>
> On 9/6/07, Chris Hostetter <[EMAIL PROTECTED]> wrote:
> > : We are able to navigate to the solr/admin page, but when we try to
> > : POST an xml document via the command line, there is a fatal error. It
> > : seems that the solr/update servlet isnt running, giving a http 400
> > : error.
> >
> > a 400 could mean a lot of things ... what is the full HTTP response you
> > get back from Solr?  what kinds of Stack traces show up in the Jetty log
> > output?
> >
> >
> >
> >
> > -Hoss
> >
> >
>
>
> --
> cheers,
> ben
>


Re: update servlet not working

2007-09-06 Thread Benjamin Li
oops, sorry, its says "missing content stream"

as far as logs go: i have a request log, didn't find anything with
stack traces though. where is it? we're using the example one packaged
with solr.
"GET /solr/update HTTP/1.1" 400 1401

just to make sure, i typed "java -jar post.jar solrfile.xml"

thanks!

On 9/6/07, Chris Hostetter <[EMAIL PROTECTED]> wrote:
> : We are able to navigate to the solr/admin page, but when we try to
> : POST an xml document via the command line, there is a fatal error. It
> : seems that the solr/update servlet isnt running, giving a http 400
> : error.
>
> a 400 could mean a lot of things ... what is the full HTTP response you
> get back from Solr?  what kinds of Stack traces show up in the Jetty log
> output?
>
>
>
>
> -Hoss
>
>


-- 
cheers,
ben


Re: update servlet not working

2007-09-06 Thread Chris Hostetter
: We are able to navigate to the solr/admin page, but when we try to
: POST an xml document via the command line, there is a fatal error. It
: seems that the solr/update servlet isnt running, giving a http 400
: error.

a 400 could mean a lot of things ... what is the full HTTP response you 
get back from Solr?  what kinds of Stack traces show up in the Jetty log 
output?




-Hoss



update servlet not working

2007-09-06 Thread Benjamin Li
Hi,

We have the example solr installed with jetty.

We are able to navigate to the solr/admin page, but when we try to
POST an xml document via the command line, there is a fatal error. It
seems that the solr/update servlet isnt running, giving a http 400
error.

does anyone have any clue what is going on?

thats in advance!

-- 
cheers,
ben