Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

500 error on invoking my URL.

 
Ranch Hand
Posts: 210
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: 12163
258
  • 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: 210
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: 12163
258
  • 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.
 
Create symphonies in seed and soil. For this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic