Win a copy of Head First Android this week in the Android forum!

Vinayak Hosamani

+ Follow
since Nov 19, 2013
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vinayak Hosamani

As far as what I understand from your statement is you need the bean named:"order" to be placed in a session scope, So Instead of using @SessionAttributes you can make use of http-session.
For permanent session attributes, e.g. a user authentication object, use the traditional session.setAttribute method instead.
6 years ago
Hello friends,
I am new to springs, tried to execute a simple web application in eclipse.
But unfortunately even after trying as directed in the tutorial, I am unable to execute the code

On running the application i get HTTP Status 404 -
eclipse console says:

Nov 19, 2013 2:55:31 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\Program Files\PC Connectivity Solution\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.7.0_01\bin;\;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\eclipse;;.
Nov 19, 2013 2:55:31 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:HelloWeb' did not find a matching property.
Nov 19, 2013 2:55:31 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Nov 19, 2013 2:55:31 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Nov 19, 2013 2:55:31 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 435 ms
Nov 19, 2013 2:55:31 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Nov 19, 2013 2:55:31 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.32
Nov 19, 2013 2:55:32 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(E:\New workspace after CORN\test workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\HelloWeb\WEB-INF\lib\servlet-api-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:WARN No appenders could be found for logger (org.springframework.web.servlet.DispatcherServlet).
log4j:WARN Please initialize the log4j system properly.
Nov 19, 2013 2:55:34 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'HelloWeb'
Nov 19, 2013 2:55:35 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Nov 19, 2013 2:55:35 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Nov 19, 2013 2:55:35 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3157 ms

Can anyone tell me what the problem is and how to get the application run properly.
Any kind of help is appreciated.

following is the listing of my code:

Web.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xsi:schemaLocation="" >


<beans xmlns=""

<context:component-scan base-package="com.tutorialspoint" />

<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />

package com.tutorialspoint;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.ui.ModelMap;

public class HelloController{

@RequestMapping(method = RequestMethod.GET)
public String printHello(ModelMap model) {
model.addAttribute("message", "Hello Spring MVC Framework!");

return "hello";


<%@ page contentType="text/html; charset=UTF-8" %>
<title>Hello World</title>
8 years ago