Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem running Spring Application

 
chandan kumar mitwaa
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • 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.

 
Vivek K Singh
Ranch Hand
Posts: 85
Java Spring
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic