spring first example

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 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 Tutorials/Questions & Answers:
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
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
Advertisements
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
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
How to write first example in Ajax?
How to write first example in Ajax?  Hi, I am beginner in Ajax and want learn it. How can I write first example in Ajax? Thanks   Hi, Please check the tutorial First Ajax Example. Thank
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... how to write your first program in Java. In this example I have created
Simple Spring Boot Example
Simple Spring Boot Example - First example of Spring Boot for counting no of beans Spring Boot Simple Example, writing and running the first example code.... In this tutorial we are going to create a very simple and first Spring Boot
Simple Spring Boot Example
Simple Spring Boot Example - First example of Spring Boot for counting no of beans Spring Boot Simple Example, writing and running the first example code... In this first example of Spring Boot we have developed a simple spring boot
How to write first JSP Hello World example?
How to write first JSP Hello World example?  Hi, How to make first simple JSP program which prints simple Hello World example? I want to learn to make fist JSP page which prints the Hello World example. Thanks   Hi
First Ajax Example
Ajax First Example - Print Date and Time   ... from scratch. This is the first example in Ajax that will give you quick start... and develop our fist Ajax Datetime example.  ADS_TO_REPLACE_2 Here is the code
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
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
First Hibernate 4 Example with Eclipse
First Hibernate 4 Example with Eclipse In this tutorial you will learn that how easily you can do your first example of Hibernate 4 with Eclipse First of all to do an example of Hibernate 4 you should have installed an appropriate
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
Hibernate Spring Example
In this section, you will learn how to Integration Hibernate with Spring with an example
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
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
What should I learn first Spring or Hibernate?
What should I learn first Spring or Hibernate?  Hi, What should I learn first Spring or Hibernate? I learned Java and JDBC. I also have project experience in JSP/Servlet. I used tomcat for running my application. Thanks
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 
Java Compilation error. Hibernate code problem. Struts first example - Hibernate
Java Compilation error. Hibernate code problem. Struts first example  Java Compilation error. Hibernate code problem. Struts first example
Writing first JPA 2.1 example
Following software/tools are need for developing the first JPA 2.1 example...(product) method. Step 5: Create pom.xml file and test the example. First go... the JPA 2.1 First example code here.ADS_TO_REPLACE_13    
Still have the same problem--First Example of Struts2 - Struts
Still have the same problem--First Example of Struts2  Hi I tried the example in the link. But still I am getting the same problem like as I tried my own example. Its not displaying the "Struts Welcome" message and also
I need Spring 2.5 example.
I need Spring 2.5 example.  Hello, I am looking forward to learn Spring framework and hence I need Spring 2.5 and Spring 3.0 example.. Thanks
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 description of the extension name spaces that can be used in the spring framework
Spring 4 MVC Hello World Example: Spring 4 MVC Tutorial will full source code
Spring 4 MVC Hello World example and run on Tomcat Server In this video.... First of you will learn Features of Spring 4 Framework and How Spring MVC... information will help you master the example given here easily. Spring 4 MVC
spring 5 maven dependency example
spring 5 maven dependency example  Hi, I am interested in learning how to use the spring 5 dependency with example. Can anyone please guide on this? Share me good examples. Thanks
Spring 4 Introduction and example
Spring 4 Introduction and creating example in Eclipse In this video... and explained you the code for first Spring Bean based application. You will learn... framework. Through this video we are teaching you to develop your first Spring
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 bean annotation example
Spring bean annotation example  Hi, How to configure Bean using annotation in Spring Framework? Thank   Hi, I will explain you how...(); } } @Configuration annotated class is used by the Spring IoC container as a source of bean
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
Spring Framework 4.1 - First Release candidate available
Spring Framework 4.1 First Release candidate is available It is a good news for the developers of Spring framework as the Spring Framework 4.1 is available with many new features and many themes support. Currently Spring
Spring 3.0 Tutorials with example code
Spring 3.0 - Tutorials and example code of Spring 3.0 framework... of example code. The Spring 3.0 tutorial explains you different modules... will learn all the features of the Spring 3.0 with example code. With the help
Spring Map Example
Spring Map Example In this example you will see how bean is prepared for injecting Map collection type key and its values. MapBean.java... Download this example code
Spring 3.2 MVC Hello World Example
In this section, you will learn about Hello World example in Spring 3.2.
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
The @configuration annotation example in Spring 3.0 Framework
The @configuration annotation example in Spring 3.0 Framework  I was going through the tutorial on Spring for "The @configuration annotation example in Spring 3.0 Framework" but I am getting following error when I Run
Spring MVC Hello World Example
Spring MVC Hello World Example       Spring MVC Hello World Example in Spring 2.5 In this tutorial we will develop the Spring MVC Example and then run on the Tomcat server. We
Java Applet - Creating First Applet Example
Java Applet - Creating First Applet Example       Introduction First of all we will know about... navigator or Internet Explorer. In this example you will see, how to write
example
example  i need ex on struts-hibernate-spring intergration example   Struts Spring Hibernate Integration
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">
Spring 3 MVC Login Form Example
Spring 3 MVC Login Form Example  Spring 3 MVC Login Form Example index.jsp file have code.... Simple Form request will be handle by SimpleFormController @Controller public class @Controller public class
Spring 3 MVC Login Form Example
Spring 3 MVC Login Form Example  Spring 3 MVC Login Form Example index.jsp file have code.... Simple Form request will be handle by SimpleFormController @Controller public class @Controller public class
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 Injection Example
Spring Injection Example       XML Bean-Injection, The given example below gives the brief...;} } Output of the Spring Injection Example programADS_TO_REPLACE_4
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
First Program
Now, lets move ahead for printing the first and most simple & common example of programming “Hello World”. <html> <body> <... code. For further clarification, lets see another example:ADS_TO_REPLACE_2 1
Request for complete code of the Spring 2.5 MVC User Registration Example
Request for complete code of the Spring 2.5 MVC User Registration Example  Hi, The Spring 2.5 MVC User Registration Example is very helpfull to understand the Spring WebMVC flow but it is not complete. Can you please send me

Ads