tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BoyePeter <p...@brooklyncottage.demon.co.uk>
Subject Re: HTTP 400 Error when trying to check Tomcat installation
Date Thu, 11 Dec 2008 13:54:26 GMT

Hi mks,
I have installed Tomcat version 6.
I copied the servlet-api.jar to the JDK directory because, according to Java
for Dummies, it is needed to compile my servlets. If it is not there,
Eclipse reports errors when trying to import javax.servlet.* and when I try
to use "extends HttpServlet".

Perhaps I should have mentioned that I am trying to learn how to program in
Java and I am trying to set up the test environment for this. I am not
trying to set up a Web Server for the internet. The books that I read and
the Tomcat documentation said to change the invoker stuff.

I had a look at the Tomcat logs but, being the novice that I am, they didn't
mean anything to me.

Not sure how to turn off IE's friendly messages nor what would be the result
if I did so.

Pete



Markus Sch├Ânhaber-10 wrote:
> 
> BoyePeter:
> 
>> I am running Windows XP Professional version 2002 SP 3 with all updates
>> applied.
>> I am running Internet Explorer v 7.0.5730.11.
>> I have installed Java JDK 1.6.0_11 with the JRE from the same download.
> 
> Care to mention the Tomcat version you're using?
> 
>> I copied the servlet-api.jar to the JDK directory\jre\lib\ext.
> 
> Why?
> Don't do that.
> 
>> I edited the c:\tomcat\conf\context.xml file to have <Context
>> reloadable=true>.
>> I edited the c:\tomcat\conf\web.exl file to un-comment the invoker entrie
>> for <servlet> and <servlet_mappings>.
> 
> Why?
> The Invoker Servlet is evil. It may be OK for a quick test but is a big
> no-no for any installation reachable over the net.
> I suggest you get used to create a webapp with a real deployment
> descriptor instead.
> 
>> when I try to test the installation using the examples that come with
>> tomcat
>> using the URL http://localhost:8080/ I get the HTTP 400 Bad Request
>> message.
>> 
>> This tells me that IE was able to connect to the web server but the web
>> page
>> could not be found because of a problem with the address.
> 
> What do Tomcat's log messages show?
> If you've not already done so, turn off IE's "friendly" error messages.
> 
> Regards
>   mks
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/HTTP-400-Error-when-trying-to-check-Tomcat-installation-tp20953242p20955851.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message