Skip to main content



      Home
Home » Archived » Hudson » Classpath in Hudson
Classpath in Hudson [message #1234064] Tue, 21 January 2014 01:39 Go to next message
Eclipse UserFriend
Hi,
I have set of Integration test cases which are using spring JUnit class runner @RunWith(SpringJUnit4ClassRunner.class). I have referred applicationContext.xml and other required xml files using @ContextConfiguration annotation.

@ContextConfiguration(locations = { "classpath:spring/components/framework-context-integrationTest.xml",
"classpath:spring/components/bi-connector-context.xml",
"classpath:spring/components/dataservices-context.xml",
"classpath:spring/components/service-context.xml",
"classpath:spring/resources/pojo/aci-data-sources-def.xml" })

I have executed these test cases and they are running file on my local machine. The problem is when I execute these test cases using Hudson they don't run and throw exception

Caused by: org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [spring/components/framework-context-integrationTest.xml] cannot be opened because it does not exist

On local machine I have set class path before execute the test case but on Hudson somehow classpath is not being set. I tried setting classpath in 'Set environment variables' of Configure Job of Hudson but nothing worked.

Please can someone explain how do I set classpath so that a job can read it.

Thanks
Re: Classpath in Hudson [message #1284991 is a reply to message #1234064] Fri, 04 April 2014 23:31 Go to previous message
Eclipse UserFriend
What kind of build script are you using. If you are using maven, then the dependencies will be correctly resolved and you can specify the classpath in the sure-fire plugin properties
Previous Topic:Build Execution time in Hudson
Next Topic:Migration to 3.0 - security problem
Goto Forum:
  


Current Time: Tue Jul 22 18:50:15 EDT 2025

Powered by FUDForum. Page generated in 0.03923 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top