This week's book giveaway is in the Go forum.
We're giving away four copies of Head First Go and have Jay McGavren on-line!
See this thread for details.
Win a copy of Head First Go this week in the Go forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

500 error on invoking my URL.  RSS feed

 
Ranch Hand
Posts: 200
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
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 ?


 
Saloon Keeper
Posts: 9869
199
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Philippe Ponceblanc
Ranch Hand
Posts: 200
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks you,

i have a new 500 error




Why tomcat output writed no output folder ?
 
Stephan van Hulst
Saloon Keeper
Posts: 9869
199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!