• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem running Spring Application

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

I am new to Spring. This is my first Spring Application but I was unable to successfully run it. I have tried a lot but I am not getting the reason why it is not running.

Application name: SequenceGenerator


bean.xml


SequenceGenerator.java


Main.java




When I press the run button in eclipse the Output is :




Please help me on this.

 
Ranch Hand
Posts: 85
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The program has no faults in it, It works fine on my machine

Just check your classpath for conflicting jar files (Different version of files)
 
chandan kumar mitwaa
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Vivek

I am using eclipse. I created a new project using New Spring Project wizard. I had downloaded Spring framework 3 from the official spring site. Now I extracted it somewhere on my computer. Then I add the jar files in the folder "dist" to my project classpath.

The structure as it appears in my Project Explorer is like this:

SequenceGenerator

:Spring Elements
:Beans
>bean.xml
:src
:mit
>Main.java
>SequenceGenerator.java
@JRE System Library

#org.springframework.aop-3.0.0.RELEASE.jar
#org.springframework.asm-3.0.0.RELEASE.jar
#org.springframework.aspects-3.0.0.RELEASE.jar
#org.springframework.beans-3.0.0.RELEASE.jar
#org.springframework.context-3.0.0.RELEASE.jar
#org.springframework.context.support-3.0.0.RELEASE.jar
#org.springframework.core-3.0.0.RELEASE.jar
#org.springframework.expression-3.0.0.RELEASE.jar
#org.springframework.instrument-3.0.0.RELEASE.jar
#org.springframework.instrument.tomcat-3.0.0.RELEASE.jar
#org.springframework.jdbc-3.0.0.RELEASE.jar
#org.springframework.jms-3.0.0.RELEASE.jar
#org.springframework.orm-3.0.0.RELEASE.jar
#org.springframework.oxm-3.0.0.RELEASE.jar
#org.springframework.spring-library-3.0.0.RELEASE.libd
#org.springframework.test-3.0.0.RELEASE.jar
#org.springframework.transaction-3.0.0.RELEASE.jar
#org.springframework.web-3.0.0.RELEASE.jar
#org.springframework.web.portlet-3.0.0.RELEASE.jar
#org.springframework.web.servlet-3.0.0.RELEASE.jar
#org.springframework.web.struts-3.0.0.RELEASE.jar


Please help me on this, what am I missing?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic