Home Answers Viewqa Spring spring first example

 
 


kalpana
spring first example
1 Answer(s)      2 years and 10 months ago
Posted in : Spring

I am trying my first example of spring from the link
http://www.maestric.com/doc/java/spring/setup
But I am not getting the simple "Hi" message ,I have created simple one jsp page and /WEB_INF/web.xml it is showing status 404
HTTP Status 404 - /springapp/

--------------------------------------------------------------------------------

type Status report

message /springapp/

description The requested resource (/springapp/) is not available.


--------------------------------------------------------------------------------

It is showing in log of tomcat(manager notepad like below message repeated)
Apache Tomcat/5.5.30
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Jul 16, 2010 3:20:21 PM org.apache.catalina.core.ApplicationContext log

and in catlina log it is showing like
Jul 16, 2010 2:07:52 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\Apache Software Foundation\Tomcat 5.5\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Java\jdk1.6.0\bin;C:\ANT\bin;
Jul 16, 2010 2:07:52 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 16, 2010 2:07:52 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 547 ms
Jul 16, 2010 2:07:52 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 16, 2010 2:07:52 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.30
Jul 16, 2010 2:07:52 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 16, 2010 2:07:53 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\springexample\WEB-INF\lib\jsp-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class
Jul 16, 2010 2:07:53 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\springexample\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Jul 16, 2010 2:07:53 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 16, 2010 2:07:53 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 16, 2010 2:07:53 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
Jul 16, 2010 2:07:53 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jul 16, 2010 2:07:53 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1015 ms
Jul 16, 2010 2:20:16 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jul 16, 2010 2:20:18 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jul 16, 2010 2:20:18 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jul 16, 2010 2:20:22 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\Apache Software Foundation\Tomcat 5.5\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Java\jdk1.6.0\bin;C:\ANT\bin;
Jul 16, 2010 2:20:22 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 16, 2010 2:20:22 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 563 ms
Jul 16, 2010 2:20:22 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 16, 2010 2:20:22 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.30
Jul 16, 2010 2:20:22 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 16, 2010 2:20:23 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\springexample\WEB-INF\lib\jsp-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class
Jul 16, 2010 2:20:23 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\springexample\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Jul 16, 2010 2:20:23 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 16, 2010 2:20:23 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 16, 2010 2:20:23 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
Jul 16, 2010 2:20:23 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jul 16, 2010 2:20:23 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1109 ms
Jul 16, 2010 2:25:45 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jul 16, 2010 2:25:46 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jul 16, 2010 2:25:47 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jul 16, 2010 2:25:51 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\Apache Software Foundation\Tomcat 5.5\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Java\jdk1.6.0\bin;C:\ANT\bin;
Jul 16, 2010 2:25:51 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 16, 2010 2:25:51 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 688 ms
Jul 16, 2010 2:25:51 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 16, 2010 2:25:51 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.30
Jul 16, 2010 2:25:51 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 16, 2010 2:25:52 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\springexample\WEB-INF\lib\jsp-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class
Jul 16, 2010 2:25:52 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\springexample\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Jul 16, 2010 2:25:52 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 16, 2010 2:25:52 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 16, 2010 2:25:52 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32 config=null
Jul 16, 2010 2:25:52 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jul 16, 2010 2:25:52 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1031 ms
Jul 16, 2010 3:07:32 PM org.apache.catalina.startup.HostConfig checkResources
INFO: Undeploying context [/springapp]
Jul 16, 2010 3:20:53 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started

please suggest me what can I do to run the application,I am trying from two days and I have copied some jar files into lib folder as suggested by some forums but no effect...................
please give me some suggestions??????????
View Answers

July 16, 2010 at 4:35 PM


Hi Friend,

Please visit the following link:

http://www.roseindia.net/spring/index.shtml

Thanks









Related Pages:
spring first example - Spring
spring first example  I am trying my first example of spring from the link http://www.maestric.com/doc/java/spring/setup But I am not getting the simple "Hi" message ,I have created simple one jsp page and /WEB_INF/web.xml
spring
spring  sir can you explain me the flow of sample example by using spring? thanks
Spring 3 MVC hello world, Spring 3.0 Web MVC Example
Spring 3 MVC Hello World Example Getting stated with the Spring 3 MVC by developing first Hello World MVC example. This is the first example of writing first example in Spring MVC. After completing the tutorial you will be able
Struts first example - Struts
Struts first example  when i am doing struts first example , it is raising 404 error sometimes it is raised 500 error. what is the problem, and how to do the first program in struts. please give reply with regad's
struts first example - Struts
struts first example  I got errors in struts first example like can not find form bean collections  MessageResources.properties # -- welcome -- welcome.title=Struts Blank Application welcome.heading=Welcome
Spring
Spring  I understand spring as dependency injection. It can avoid... values are accommodated at memory? for example, statis variables are accommodated... are created. By the same way i want to know how spring injected property
Struts first example - Struts
Struts first example  Hi! I have field price. I want to check require and input data type is int. can you give me an example code..." for example : field : postcode type : int 6 10
Struts First Example - Framework
Struts First Example  HI i am new to Struts and developing a single loginForm project. But it gives me the following exception javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean
spring - Spring
spring  give me the explanation about spring>and give me the difference between spring and EJB 3.0 WHAT IS THE USAGE OF SPRING WHERE WE HAVE TO USE IT? GIVE ME ONE EXAMPLE
Spring Bean Example, Spring Bean Creation
Basic Bean Creation The Spring bean can typically be POJO(Plain Old Java Object) in the IoC container. Here in this tutorial you will see at first a simple...;http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
Working Example for Spring AOP - Spring
Working Example for Spring AOP  Hi All, I need a complete working Java example /Code/Logic for Spring -Aspect Oriented Programming. Code provided will be highly appreciated. -- Deepak Lal
spring - Spring
spring   hi, I need sample example user update profile using spring with hibernate and spring jsp. I need the sample code very urgently. Please... the following link: http://www.roseindia.net/struts/hibernate-spring/index.shtml
Spring SimpleJdbcTemplate example
Spring SimpleJdbcTemplate example The SimpleJdbcTemplate has all the features... are not genric. EXAMPLE In this example , we are fetching record using...(String specialty, int age) { String sql = "select id, first_name, last_name
Spring MVC XmlViewResolver Example
Spring web VelocityViewResolver... velocity as view you need to first add the VelocityConfigurer as <bean.../schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context
Spring Lazy Initialization, Spring Lazy Loading example
Spring Lazy Initialization In general all bean are initialized at startup... the bean instance when it if first requested The lazy-init attribute.../spring-beans.xsd">   <bean id="studentBean"
spring basic example
spring basic example  hi,, i cannot understand the flow of the spring mvc example. can you explain execution flow of the spring example project?? thanks
Hibernate Spring Example
In this section, you will learn how to Integration Hibernate with Spring with an example
Spring SqlRowSet example
Spring SqlRowSet example The 'SqlRowSet' is used to handle the result... as you are using with 'ResultSet' of core java. Given below is example...(srs.getString("id") + " - " + srs.getString("first_name
First Java Program Example
First Java Program Example In this section we will discuss about the first java program example. To create a Java program we would be required to create... your first program in Java. In this example I have created a simple class named
spring - Spring
spring  what is session bean?what is session factory?give me the proper example
BeanNameUrlHandlerMapping example in Spring 2.5 Web MVC framework
BeanNameUrlHandlerMapping Example       BeanNameUrlHandlerMapping example in Spring 2.5 MVC framework First of all, we will discuss about what HandlerMapping
An introduction to spring framework
a simple example in Spring in next article... SPRING Framework... AN INTRODUCTION...; (PUBLISHED IN DEVELOPER IQ - September2005) Spring is an open-source
JDBC ResultSet first() Example
JDBC ResultSet first() Example: The ResultSet first() are use to moves the cursor to the first row in the ResultSet object. It return true if the cursor... are create a example of ResultSet first(). Example: package 
Spring Batch Example
Spring Batch Example       JDBC Template Batch update example, In the tutorial we have discussed about  batchUpdate()  method of class JdbcTemplate in Spring framework
spring mvc3 and hibernate with annotation example
spring mvc3 and hibernate with annotation example  please send an example which is used to store the form data into database using spring with hibernate using annotations
Spring Injection Example
Spring Injection Example       XML Bean-Injection, The given example below gives the brief...; Output of the Spring Injection Example program Nov 25, 2008 1:03
Spring Usage - Spring
Spring Usage  Hi This is Chandra Mohan, I want to work with Spring. SO, i want to working with spring, what are the API's required i.e. how to set the classpath,jar files and Structure of the Spring project. Please
First Ajax Example
Ajax First Example - Print Date and Time   .... This is the first example in Ajax that will give you quick start in the Ajax... Datetime example.   Here is the code of HTML File:  
spring Web Services - Spring
spring Web Services  Hi, Can any one explains or give me some example which gives me that how to start up spring web services. Thanks, mahi
spring MVC frame work - Spring
spring MVC frame work  Example of spring MVC frame work
struts first - Struts
struts first  struts first program example
Spring MVC Login Example
Spring MVC Login example       Spring 2.5... using Spring MVC module. In this login example we are not connecting to any... it. The result is: Download Code of Spring MVC Login Example discussed here
first entity bean example in eclipse europa - EJB
first entity bean example in eclipse europa  pls provide steps to create simple ejb3.0 application in eclipse .And also how to create entity bean...://www.roseindia.net/ejb/example-of-statelfulbean.shtml Hope that they will be helpful
Spring MVC User Registration example
Spring MVC User Registration example  hi, I am unable to find springMVCUserRegistration example full code can u send me full code of this example   Please visit the following link: Spring MVC USer Registration
Spring examples - Spring
Spring examples  Hi, I need the sample example for how to retrieve the values from jdbc using spring. Please send the sample example immediately... visit the following link: http://www.roseindia.net/spring/jdbc-template-batch
Spring CustomEditorConfigurer, Spring Custom Editor
Spring CustomEditorConfigurer Passing a date format in the bean property... in CustomEditorConfigurer first so that it will convert the bean properties which...://www.springframework.org/schema/beans/spring-beans-2.5.xsd">   <
Struts to database connection first example. - Struts
Struts to database connection first example.  Hi All, I am new to Struts technology. I want to retriew the values of database to the browser page using struts2. Please help me. I am waiting for the answer. Regards
java programming - Spring
in this example: using JCreatorPro program Write a Java program that does... the user for his score in the first exam // TODO, ask the user for his score...(); System.out.println("Enter score of first subject: "); int sub1=input.nextInt
Spring with scheduler
Spring with scheduler  how quartz scheduler relates with spring.need example with spring and quartz scheduler
Spring Restful webservice and client example
Spring Restful webservice and client example  Hi, I need the Spring Restful webservices generation using dao ,dto and controller format. Then tell me how can i generate the client for the above service. Please send the code
Learn Features of Spring 3.0
use all the latest features of Java 5 with Spring 3 framework. The first... Spring 3.0 Features - Spring 3 new features       The Spring 3 new features
@Controller Annotation Example in Spring 3
@Controller Annotation Example in Spring 3: In this section we will see how we can create annoted controller class in Spring 3. You can @Controller... eclipse IDE for this example. Step 1: First we will create Dynamic Web
Spring web service - Spring
Spring web service   Respected service, I have found an error in this manner(Connecting to tomcat then coming this error at first time only) and then working correctly. error coming only at first time. What
Questions on Spring - Spring
in Spring ? 3> what is Spring - Aspect Oriented Programming,Please explain with a working Example for Spring - Aspect oriented Programming Concept.?  ...Questions on Spring  1> what is Spring Framework ? why does
Spring 3 MVC Login Form Example
Spring 3 MVC Login Form Example  In this tutorials  we are showing you and example to create LoginForm in Spring 3.0. In this tutorial we.... In the example we are creating a LoginForm. In the login form there are two
First Program
Now, lets move ahead for printing the first and most simple & common example of programming “Hello World”. <html> <body> <.... For further clarification, lets see another example: 1. <html> 2.  <
spring bind - Spring
spring bind  I'm trying to retrieve a list in my jsp using the command object. Is this statement permissable? dataSource="" Here's the first part of the jsp: " cssClass="gridTable"> I'm putting the list in my
Spring - Framework
Spring  can anyone explain me how spring mvc works.plz give some example so that it is easy to understand  Hi friend, For read more information on spring : http://www.roseindia.net/spring/ Thanks
example
example  i need ex on struts-hibernate-spring intergration example   Struts Spring Hibernate Integration
Spring Resource Example
Spring Resource Example The Resource interface is used as an argument type in many method signatures when a resource is need. In this example you will see how to use Resource interface in spring framework. AppMain.java package

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.