You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@esme.apache.org by Imtiaz Ahmed H E <in...@gmail.com> on 2010/07/12 07:05:12 UTC

api2/session not found...

Simple question, I guess ---

I started up Esme in Tomcat...

Then at the cygwin prompt ( I work on Windows XP SP3.... ) I typed and got the following --- What could be the problem ?

$ curl --dump-header headers -d "token=HEZTQKM525SAMIPN4EDVRUOGHI40AKBL" http:/
/localhost:8080/api2/session
<html><head><title>Apache Tomcat/5.5.29 - Error report</title><style><!--H1 {fon
t-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:
22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525
D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;backgro
und-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;col
or:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:w
hite;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;backgroun
d:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR
{color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /api2/session</
h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message<
/b> <u>/api2/session</u></p><p><b>description</b> <u>The requested resource (/ap
i2/session) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache T
omcat/5.5.29</h3></body></html>
imtiaz@imtiaz-20100131 /cygdrive/d/temp
$ cat headers
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 991
Date: Mon, 12 Jul 2010 04:56:49 GMT


imtiaz@imtiaz-20100131 /cygdrive/d/temp
$

Imtiaz

Re: api2/session not found...

Posted by Richard Hirsch <hi...@gmail.com>.
Then the url should be:

http://localhost:8080/esme-server-apache-esme-1.0-RC1-incubating/api2/session


On Mon, Jul 12, 2010 at 8:35 AM, Imtiaz Ahmed H E <in...@gmail.com> wrote:
> I use this war file name -
>   esme-server-apache-esme-1.0-RC1-incubating.war
> and there is a directory
>   esme-server-apache-esme-1.0-RC1-incubating
> in the webapps directory
>
> and everything else work fine.
>
> ----- Original Message ----- From: "Richard Hirsch" <hi...@gmail.com>
> To: <es...@incubator.apache.org>
> Sent: Monday, July 12, 2010 12:02 PM
> Subject: Re: api2/session not found...
>
>
>> What is the name of the war file you used to deploy esme on Tomcat? If
>> you deployed it via a war file called esme.war then there should be a
>> directory called "esme" in the webapps directory.
>>
>> The call to the API2 would then look like this
>> $ curl --dump-header headers -d
>> "token=HEZTQKM525SAMIPN4EDVRUOGHI40AKBL"
>> http://localhost:8080/esme/api2/session
>>
>> D.
>>
>> On Mon, Jul 12, 2010 at 7:05 AM, Imtiaz Ahmed H E <in...@gmail.com>
>> wrote:
>>>
>>> Simple question, I guess ---
>>>
>>> I started up Esme in Tomcat...
>>>
>>> Then at the cygwin prompt ( I work on Windows XP SP3.... ) I typed and
>>> got the following --- What could be the problem ?
>>>
>>> $ curl --dump-header headers -d "token=HEZTQKM525SAMIPN4EDVRUOGHI40AKBL"
>>> http:/
>>> /localhost:8080/api2/session
>>> <html><head><title>Apache Tomcat/5.5.29 - Error
>>> report</title><style><!--H1 {fon
>>>
>>> t-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:
>>> 22px;} H2
>>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525
>>> D76;font-size:16px;} H3
>>> {font-family:Tahoma,Arial,sans-serif;color:white;backgro
>>> und-color:#525D76;font-size:14px;} BODY
>>> {font-family:Tahoma,Arial,sans-serif;col
>>> or:black;background-color:white;} B
>>> {font-family:Tahoma,Arial,sans-serif;color:w
>>> hite;background-color:#525D76;} P
>>> {font-family:Tahoma,Arial,sans-serif;backgroun
>>> d:white;color:black;font-size:12px;}A {color : black;}A.name {color :
>>> black;}HR
>>> {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 -
>>> /api2/session</
>>> h1><HR size="1" noshade="noshade"><p><b>type</b> Status
>>> report</p><p><b>message<
>>> /b> <u>/api2/session</u></p><p><b>description</b> <u>The requested
>>> resource (/ap
>>> i2/session) is not available.</u></p><HR size="1"
>>> noshade="noshade"><h3>Apache T
>>> omcat/5.5.29</h3></body></html>
>>> imtiaz@imtiaz-20100131 /cygdrive/d/temp
>>> $ cat headers
>>> HTTP/1.1 404 Not Found
>>> Server: Apache-Coyote/1.1
>>> Content-Type: text/html;charset=utf-8
>>> Content-Length: 991
>>> Date: Mon, 12 Jul 2010 04:56:49 GMT
>>>
>>>
>>> imtiaz@imtiaz-20100131 /cygdrive/d/temp
>>> $
>>>
>>> Imtiaz
>
>

Re: api2/session not found...

Posted by Imtiaz Ahmed H E <in...@gmail.com>.
I use this war file name -
    esme-server-apache-esme-1.0-RC1-incubating.war
and there is a directory
    esme-server-apache-esme-1.0-RC1-incubating
in the webapps directory

and everything else work fine.

----- Original Message ----- 
From: "Richard Hirsch" <hi...@gmail.com>
To: <es...@incubator.apache.org>
Sent: Monday, July 12, 2010 12:02 PM
Subject: Re: api2/session not found...


> What is the name of the war file you used to deploy esme on Tomcat? If
> you deployed it via a war file called esme.war then there should be a
> directory called "esme" in the webapps directory.
>
> The call to the API2 would then look like this
> $ curl --dump-header headers -d
> "token=HEZTQKM525SAMIPN4EDVRUOGHI40AKBL"
> http://localhost:8080/esme/api2/session
>
> D.
>
> On Mon, Jul 12, 2010 at 7:05 AM, Imtiaz Ahmed H E <in...@gmail.com> 
> wrote:
>> Simple question, I guess ---
>>
>> I started up Esme in Tomcat...
>>
>> Then at the cygwin prompt ( I work on Windows XP SP3.... ) I typed and 
>> got the following --- What could be the problem ?
>>
>> $ curl --dump-header headers -d "token=HEZTQKM525SAMIPN4EDVRUOGHI40AKBL" 
>> http:/
>> /localhost:8080/api2/session
>> <html><head><title>Apache Tomcat/5.5.29 - Error 
>> report</title><style><!--H1 {fon
>> t-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:
>> 22px;} H2 
>> {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525
>> D76;font-size:16px;} H3 
>> {font-family:Tahoma,Arial,sans-serif;color:white;backgro
>> und-color:#525D76;font-size:14px;} BODY 
>> {font-family:Tahoma,Arial,sans-serif;col
>> or:black;background-color:white;} B 
>> {font-family:Tahoma,Arial,sans-serif;color:w
>> hite;background-color:#525D76;} P 
>> {font-family:Tahoma,Arial,sans-serif;backgroun
>> d:white;color:black;font-size:12px;}A {color : black;}A.name {color : 
>> black;}HR
>> {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - 
>> /api2/session</
>> h1><HR size="1" noshade="noshade"><p><b>type</b> Status 
>> report</p><p><b>message<
>> /b> <u>/api2/session</u></p><p><b>description</b> <u>The requested 
>> resource (/ap
>> i2/session) is not available.</u></p><HR size="1" 
>> noshade="noshade"><h3>Apache T
>> omcat/5.5.29</h3></body></html>
>> imtiaz@imtiaz-20100131 /cygdrive/d/temp
>> $ cat headers
>> HTTP/1.1 404 Not Found
>> Server: Apache-Coyote/1.1
>> Content-Type: text/html;charset=utf-8
>> Content-Length: 991
>> Date: Mon, 12 Jul 2010 04:56:49 GMT
>>
>>
>> imtiaz@imtiaz-20100131 /cygdrive/d/temp
>> $
>>
>> Imtiaz 


Re: api2/session not found...

Posted by Richard Hirsch <hi...@gmail.com>.
What is the name of the war file you used to deploy esme on Tomcat? If
you deployed it via a war file called esme.war then there should be a
directory called "esme" in the webapps directory.

The call to the API2 would then look like this
$ curl --dump-header headers -d
"token=HEZTQKM525SAMIPN4EDVRUOGHI40AKBL"
http://localhost:8080/esme/api2/session

D.

On Mon, Jul 12, 2010 at 7:05 AM, Imtiaz Ahmed H E <in...@gmail.com> wrote:
> Simple question, I guess ---
>
> I started up Esme in Tomcat...
>
> Then at the cygwin prompt ( I work on Windows XP SP3.... ) I typed and got the following --- What could be the problem ?
>
> $ curl --dump-header headers -d "token=HEZTQKM525SAMIPN4EDVRUOGHI40AKBL" http:/
> /localhost:8080/api2/session
> <html><head><title>Apache Tomcat/5.5.29 - Error report</title><style><!--H1 {fon
> t-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:
> 22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525
> D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;backgro
> und-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;col
> or:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:w
> hite;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;backgroun
> d:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR
> {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /api2/session</
> h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message<
> /b> <u>/api2/session</u></p><p><b>description</b> <u>The requested resource (/ap
> i2/session) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache T
> omcat/5.5.29</h3></body></html>
> imtiaz@imtiaz-20100131 /cygdrive/d/temp
> $ cat headers
> HTTP/1.1 404 Not Found
> Server: Apache-Coyote/1.1
> Content-Type: text/html;charset=utf-8
> Content-Length: 991
> Date: Mon, 12 Jul 2010 04:56:49 GMT
>
>
> imtiaz@imtiaz-20100131 /cygdrive/d/temp
> $
>
> Imtiaz