IntelliJ create Web App

I want to create with Java Spring, Hibernate and Glassfish an Web App.
But, I already have problems to generate an Website. IntelliJ says that the artifact is eployed successfull.

At the moment I have:

   public class HelloController {
 @RequestMapping(method= RequestMethod.GET)
 public String printWelcome(ModelMap model){
    model.addAttribute("message","hello world");
   return "hallo";

I didn´t changed anything in the web.xml or in the index.jsp, they are the generated ones from IntelliJ.

In Glassfish I have

and domain1

In the Project Structure were some problems, but IntelliJ fixed it.

When I run it I get an 404 and the mime is not jsp, but form – which is the specified one in .
The log File shows no Errors but the Warning:

 org.springframework.web.servlet.PageNotFound] [tid: _ThreadID=24 _ThreadName=http-listener-1(5)] [timeMillis: 1432336020566] [levelValue: 900] [[
 No mapping found for HTTP request with URI [/dgj:war_exploded/index.form]     in DispatcherServlet with name 'dispatcher']]

Source: jsp

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.