I have a ch1Servlet.class file in the Tomcat webApps ch1 webinf classes folder:
I am running another servlet site in eclipse, which works. The eclipse files are in my eclipse workspace, but not in the tomcat folder. I thought that eclipse copies automatic the files to Tomcat (Webxml and servlet classes)?
Maybe something is wrong with Tomcat folder?
The servlet from chapter 1 of the book runs on port 8080?
I invariably advise beginners not to use the Eclipse/Tomcat integration, but instead to run Tomcat as a standalone server. Many issues that tend to confuse beginners (like the ones you describe) can be avoided that way.
The eclipse Tomcat is stopped, so there should be no conflicts with my tomcat web app without ide (--> core webapp).
I again enclose the web.xml:
When I start tomcat, I get the following message:SEVERE: Parse error in application web.xml file at jndi:/localhost/ch1/WEB-INF/w
eb.xml... ch1 startup failed
When I copy the web.xml to eclipse and try to save: Error-Character encoding 8851 - 1 is not supported.
In my editor, I use ANSI.
If i switch tu Ansi as Utf8, I get the same parse error, but server startup.
There is one exception java.io.UnsupportedEncodingException: ISO-8851-1
these are all methods? They seem all related to xml ? InputStreamReader is a class, but there is <init> which seems a method?
I have to delete these errors before continuing? My goal is to start the web app ch1 with Servlet serv1