Problem with the Getting started tutorial

120 views
Skip to first unread message

Wush

unread,
Jul 15, 2012, 10:00:49 PM7/15/12
to google-visua...@googlegroups.com
Hi, I am new to Tomcat and I have followed the instructions on this link https://developers.google.com/chart/interactive/docs/dev/dsl_get_started
under

Creating a Web Application on Apache Tomcat

and when I click http://localhost:8080/myWebApp/simpleexample I get an error called :

"HTTP Status 404 - /myWebApp/simpleexample"


i tried copy pasting the SimpleExampleServlet.java in tomcat/webapps/myWebApp folder and still keep getting errors. What is it that I did that is wrong? I clearly followed the steps listed.


Thank you very much if you can help me :D

asgallant

unread,
Jul 16, 2012, 3:51:22 PM7/16/12
to google-visua...@googlegroups.com
Can you confirm that Apache is working?  If it isn't, you should consult their support resources.

Wush

unread,
Jul 16, 2012, 10:47:40 PM7/16/12
to google-visua...@googlegroups.com

yes sir, the apachet is working as i can access http://localhost:8080/ no problem.

e rararaw

unread,
Oct 25, 2013, 1:01:29 PM10/25/13
to google-visua...@googlegroups.com
Thank you, Rodrigo, this fix is great.. Sorry for digging up this old post, just wanted to share that I had success [today] after removing these lines.

<servlet-mapping>
      <servlet-name>graph</servlet-name>
      <url-pattern>/graph</url-pattern>
    </servlet-mapping>




On Thursday, August 23, 2012 2:45:31 PM UTC-4, Rodrigo Baeza wrote:
I was following the same tutorial, and got the 404 error as well.

The Apache logs showed where the problem was. You need to edit the web.xml file, and remove these lines:

    <servlet-mapping>
      <servlet-name>graph</servlet-name>
      <url-pattern>/graph</url-pattern>
    </servlet-mapping>

After removing them, the example worked fine for me.

Rodrigo 
Reply all
Reply to author
Forward
0 new messages