I work on Fedora 28 x86_64 server, I develop an example of Spring web MVC encoding in a maven project with a pom.xml file.
after implementing my classes with Spring MVC annotations I set up my controllers!
This example is quite simple, I compiled my project with the command: mvn clean compile war: exploded
Tomcat 8.5 is run with the catalina run command, but the docBase is well informed and noted as reloadable = "true".
however I have a 500 error on invoking my URL.
here is the error:
I create the WEB-INF / dispatcher-servlet.xml :
I do not know how to fill the web.xml file,
do I have to fill the mapping of my sample.jsp page ?
You messed up the schemaLocation attribute. Its value is a list of key-value pairs, where each key is a namespace and each value is the location of the schema for that namespace. For instance, the XML parser thinks that you are using the http://www.springframework.org/schema/beans/spring-beans.xsd namespace, and the location of the schema that validates that namespace is http://www.springframework.org/schema/context/spring-context.xsd, which is obviously wrong.
Additionally, you are declaring namespaces that you're not using. Clean up your XML. This is what you want:
posted 1 year ago
i have a new 500 error
Why tomcat output writed no output folder ?
Stephan van Hulst
posted 1 year ago
Likely the user account that is running Tomcat doesn't have complete access to the Tomcat folder. Usually that's because an installer runs with elevated privileges and installs the server in a location where other processes don't have access to.
Figure out what account Tomcat is running under and give it write access to the Tomcat installation folder.
The harder I work, the luckier I get. -Sam Goldwyn So tiny. - this ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop