Guys!!! index.html works nowwwww! yesss!!! Thank you again for all your help
guys.

However I am having an issue with accessing the cgi file from my html page
which looks as follow:

<form name="mainform" method="get" action="../../bin/test.cgi"> ( which is a
button to calls the file test.cgi)

and the test.cgi is located in /usr/local/tomcat/bin
and the hesearch.html is located in /usr/local/tomcat/webapps/mms_test

and when I click on the button in the hesearch.html i get the following
error:

HTTP Status 404 - /bin/test.cgi
------------------------------

*type* Status report

*message* */bin/test.cgi*

*description* *The requested resource (/bin/test.cgi) is not available.*
------------------------------
Apache Tomcat/6.0.18

Any idea what's going on? I checked the following:

1) the location
2) the permission

Thank you again for all your helps

regards

zia

On Sun, Feb 1, 2009 at 7:30 PM, zia mohades <zia.si...@gmail.com> wrote:

> Hi everyone ,
>
> Dear andre: I have just included the index.html in the web.xml , but still
> doesn't work.
>
> However I will continue using index.jsp until i find a solution. However I
> have a new problem. I have another file called hesearch.html which calls a
> .cgi file called test.cgi here is what it looks like:
>
> ...........
> <form name="mainform" method="get" action="../bin/test.cgi">
> ............
> however when click on the button which sends action to test.cgi i get this
> error:
>
> HTTP Status 404 - /bin/test.cgi
> ------------------------------
>
> *type* Status report
>
> *message* */bin/test.cgi*
>
> *description* *The requested resource (/bin/test.cgi) is not available.*
> ------------------------------
> Apache Tomcat/6.0.18
> any idea what's going on? i have given all the permission it needs?
>
>
> Thank you again for all your helps.
>
> Regards,
>
> zia
>
>
>
>
> On Sun, Feb 1, 2009 at 6:58 PM, zia mohades <zia.si...@gmail.com> wrote:
>
>>
>>
>> On Sun, Feb 1, 2009 at 6:41 PM, André Warnier <a...@ice-sa.com> wrote:
>>
>>> zia mohades wrote:
>>> [...]
>>>
>>>>   but again, I can successfully access http://localhost:8080 and blank
>>>> for
>>>> http://localhost:8080/mms_test. so the log files are not very
>>>> informative.
>>>>
>>>> 2) I have downloaded LiveHttpHeaders plugin and followed your
>>>> instructions.
>>>> Believe it or not when I access http://localhost:8080/mms_test or
>>>> http://localhost:8080 or http://localhost:8080/mms_test , and when i
>>>> click
>>>> on "Live http headers" form tools , the headers are empty. However when
>>>> I
>>>> access any other sites , like google , the headers has info in it( as it
>>>> is
>>>> expected)
>>>>
>>>>
>>  Here are answers :
>>
>>
>>>
>>>  You are right, I don't believe it.
>>> I do not believe the combination above : that you can succesfully access
>>> http://localhost:8080, but do not see headers in LiveHttpHeaders when
>>> you do that.  Something in that combination is wrong.
>>>
>>> So, do exactly the following :
>>>
>>> 1) Tell me again :
>>> - what is your OS ?
>>>
>>      I am using Ubuntu
>>
>>> - what version of Tomcat is this ?
>>
>>       I am using   Apache Tomcat Version 6.0.18
>>
>>>
>>> - where did you get it from ?
>>>
>>        I used to the synaptic manager in ubuntu to install it
>>
>>>
>>> 2)
>>> - stop Tomcat
>>> - in a command window, enter : netstat -tan | grep LISTEN
>>
>>  tcp        0      0 127.0.0.1:3306          0.0.0.0:*
>> LISTEN
>> tcp        0      0 127.0.0.1:631           0.0.0.0:*
>> LISTEN
>>
>>>
>>>
>>> - start Tomcat
>>>
>>>
>> tcp        0      0 127.0.0.1:3306          0.0.0.0:*
>> LISTEN
>> tcp        0      0 127.0.0.1:631           0.0.0.0:*
>> LISTEN
>> tcp6       0      0 127.0.0.1:8005          :::*
>> LISTEN
>> tcp6       0      0 :::8080                 :::*
>> LISTEN
>>
>>>
>>>
>>> (Yes, the same 2 times. Once with Tomcat stopped, once with Tomcat
>>> started.)
>>>
>>> 3) Then, also copy here the portion of your tomcat conf/server.xml which
>>> looks like this :
>>>
>>> <Connector port="xxxx" maxHttpHeaderSize="8192"
>>>    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
>>>    enableLookups="false" redirectPort="8443" acceptCount="100"
>>>    connectionTimeout="20000" disableUploadTimeout="true" />
>>>
>>
>>
>> These are all my <connector port :
>>  <Connector port="8080" protocol="HTTP/1.1"
>>                connectionTimeout="20000"
>>                redirectPort="8443" />
>>     <!-- A "Connector" using the shared thread pool-->
>>
>>     <Connector executor="tomcatThreadPool"
>>                port="8080" protocol="HTTP/1.1"
>>                connectionTimeout="20000"
>>                redirectPort="8443" />
>>
>>     <!-- Define a SSL HTTP/1.1 Connector on port 8443
>>          This connector uses the JSSE configuration, when using APR, the
>>          connector should be using the OpenSSL style configuration
>>          described in the APR documentation -->
>>
>>     <Connector port="8080" protocol="HTTP/1.1" SSLEnabled="true"
>>                maxThreads="150" scheme="https" secure="true"
>>                clientAuth="false" sslProtocol="TLS" />
>>
>>
>>
>>
>>>
>>> 4)
>>> - close Firefox
>>> - re-open Firefox
>>> - click on Tools..LiveHttpHeader.  *Leave that window open*, and make
>>> sure that the checkbox "capture headers" is checked.
>>> - go back to the main browser window
>>> - enter http://localhost:8080
>>> - go back to the LiveHttpHeaders window
>>> - what is in it ? (you can cut and paste it here)
>>
>>
>>     Absolutely nothing: :( blank
>>
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>>
>>
>

Reply via email to