reset password
Author Message
xliu15
Posts: 24
Posted 16:13 Apr 20, 2012 |

CS3 server seems not working for me(cs520stu09) now.  after I touch the web.xml.

it always shows:

HTTP Status 404 -


type Status report

message

description The requested resource () is not available.


Apache Tomcat/7.0.21

cysun
Posts: 2935
Posted 16:23 Apr 20, 2012 |

The server cannot load your application due to some error in the code:

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> index in se
rvlet mapping

        at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo
ntext.java:3155)
        at org.apache.catalina.core.StandardContext.addServletMapping(StandardCo
ntext.java:3130)
        at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1301)
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.jav
a:1327)
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfi
g.java:896)
 

xliu15
Posts: 24
Posted 17:45 Apr 20, 2012 |

I remove all the class file only left one jsp file under the www folder. it still not working

xliu15
Posts: 24
Posted 17:46 Apr 20, 2012 |

and a web.xml file 

which is:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>CS520HW</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>

Is that a problem?

tloi
Posts: 16
Posted 19:45 Apr 20, 2012 |

the "id" maybe incorrect?

xliu15
Posts: 24
Posted 19:55 Apr 20, 2012 |

it works now. thanks guys.