PDA

View Full Version : spring libraries not displaying



ashario
May 21st, 2006, 01:01 AM
Hi all

I have Eclipse 3.1.2 and SpringIDE 1.3.0 installed (well kind of...)

I have been following the instructions outlined at http://springide.org/project/wiki/SpringideGuide#AddSpringprojectnature in order to add the Spring project nature to my Dynamic Web Project, but it seems as though the spring jars arent being added to my java project.

From looking at the screenshots in the guide (notably http://springide.org/project/attachment/wiki/SpringideGuide/AddConfigFiles3.png) there is a Spring library added to the project. This does not happen for me.

So although I can do things like add config files using Properties -> Spring Beans, I'm experiencing errors when I actually reference any spring related classes either in my java source or in my applicationContext.xml

For example, if I try to add


<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTran sactionManager">
</bean>

to applicationContext.xml, I receive the error
"Class 'org.springframework.jdbc.datasource.DataSourceTra nsactionManager not found"

What happens for other people when they add the Spring project nature to their dynamic web project? Does the spring library appear? Amy I missing something? Do I need to manually add spring.jar to WEB-INF/lib? The screenshot link above suggests not, as Spring seems to be added automatically as a preconfigured library.

Thanks

Christian Dupuis
May 21st, 2006, 06:23 AM
Hi,

Spring IDE currently does not install any libraries or classpath variables in your Eclipse project if you enable the Spring project nature.

You should add your the spring.jar and other dependencies on your own.

Cheers
Christian

ashario
May 22nd, 2006, 09:44 PM
Hi,

Spring IDE currently does not install any libraries or classpath variables in your Eclipse project if you enable the Spring project nature.

You should add your the spring.jar and other dependencies on your own.

Cheers
Christian

understood. thanks