Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Spring spring first example

Have Programming Question? Ask it here!
 
 
 


kalpana
spring first example
1 Answer(s)      4 years and a month 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??????????

Advertisement
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
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 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 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
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
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 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 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 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
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 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
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
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 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
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
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 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
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...: Satya = 101 Rohit = 102 Aniket = 103 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 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">
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
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
Writing first JPA 2.1 example
/tools are need for developing the first JPA 2.1 example application: Java... the application easily. Let's start developing our first JPA 2.1 example. Step 1... the example. First go the the fistexample directory where pom.xml file is present
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
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..., this.email);  } } Output of the Spring Injection Example
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
spring
spring  sir can you explain me the flow of sample example by using spring? thanks
Please..please provide me a good Hibernate in Spring example
, Can anyone please provide me a Hibernate in Spring example with simple explanation... hope the following links would be very useful to you: Hibernate Spring Example Hibernate Spring Integration Spring 3 MVC and Hibernate 3 Example Part 3 Let
please give me an example about shopping cart using spring and hibernate
please give me an example about shopping cart using spring and hibernate  who can give me an ex about shoppingcart using spring and hibernate intergration ? thanks alot
Develop Hello World example using Spring 3.0 Framework
Spring 3 Hello World Example   ...; example code Step 1: The Spring 3.0 at least requires JDK 5. So, make sure... to the project. Now we can proceed with our Spring 3 Hello World example. Step 8
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
Spring 3 MVC Login Form Example with Database MySql
Spring 3 MVC Login Form Example with Database MySql  Sir i have checked your project of Spring 3 MVC Login Form Example But Sir Not able to do It with database Mysql. Can you Provide code for login with database. Thanks
How to create spring 4 hibernate 4 maven example program?
How to create spring 4 hibernate 4 maven example program?  Hi, Tell me the easiest to create integrated spring 4 hibernate 4 example which is maven based and can create the war file from the command tool. Thanks
Spring Injection Example
Spring Injection Example       XML Bean-Injection, The given example below gives...);   } } Output of the Spring Injection Example
Spring Framework 4: Spring Framework 4 Tutorials and Example
Hoeller, the co founder of the Spring Framework has said that the first milestone... to the framework. Spring 3.0, which was releases, first of all in December... Hello World Example Spring 4 MVC Examples Spring 4 MVC Login
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 - 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 3.0 MVC Form, Spring 3.0 MVC Form Example
Spring 3 MVC Form Example In this tutorial we are going to develop Spring 3 MVC form example. This  application will help you learn the concept of Spring 3 MVC forms. After completing this tutorial you will be able to understand
spring
spring   hi how can we make spring bean as prototype how can we load applicationcontext in spring what is dependency injection
Spring MVC Say Hello Example
Say Hello application in Spring 2.5 MVC   ... with the development of form based application in Spring MVC. You will learn how.... Then application displays name with "Hello" message. For example we will enter
Advertisements
 

 

 

DMCA.com