This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Spring and the fly likes Problem running Spring Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Problem running Spring Application" Watch "Problem running Spring Application" New topic
Author

Problem running Spring Application

chandan kumar mitwaa
Ranch Hand

Joined: Jul 01, 2009
Posts: 49
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.


Thanks,
Chandan Kumar
Vivek K Singh
Ranch Hand

Joined: Dec 22, 2009
Posts: 85

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)


SCJP 6
chandan kumar mitwaa
Ranch Hand

Joined: Jul 01, 2009
Posts: 49
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem running Spring Application