eclipse - java.lang.IllegalArgumentException: Invalid <url-pattern> WelcomeServlet in servlet mapping -
this question has answer here:
i have installed tomcat server work dynamic web project on eclipse luna. server seems running fine when dont load project file when load project gives error "server tomcat v7.0 server @ localhost failed start." have checked project , there seems no error in it. these server startup messages get:
caused by: java.lang.illegalargumentexception: invalid <url-pattern> welcomeservlet in servlet mapping @ org.apache.catalina.core.standardcontext.addservletmapping(standardcontext.java:3325) @ org.apache.catalina.core.standardcontext.addservletmapping(standardcontext.java:3300) @ org.apache.catalina.deploy.webxml.configurecontext(webxml.java:1438) @ org.apache.catalina.startup.contextconfig.webconfig(contextconfig.java:1357) @ org.apache.catalina.startup.contextconfig.configurestart(contextconfig.java:889) @ org.apache.catalina.startup.contextconfig.lifecycleevent(contextconfig.java:386) @ org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:117) @ org.apache.catalina.util.lifecyclebase.firelifecycleevent(lifecyclebase.java:90) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5419) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) ... 6 more
you used incorrect syntax url pattern of welcomeservlet. make <url-pattern>/welcomeservlet</url-pattern>. added / before name of servlet.
Comments
Post a Comment