You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by "Shaw, Richard A" <ri...@atkinsglobal.com> on 2006/09/21 02:13:20 UTC

Building and META-INF

If I put my bus-extensions.xml file into a resources directory and then build and run in eclipse the file doesn't get loaded because it is not in the classpath.

What is the accepted way of resolving this ?

Should I just ensure that I run maven whenever I change my resources so that it gets moved to the target direcory ?

Richard Shaw

¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤

Richard Shaw  
Technical Design Authority - Information Solutions Consultancy  
Intelligent Transport Systems 

Atkins Highways and Transportation 
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW

Tel: +44 (0) 1372 756407 
Fax: +44 (0) 1372 740055
Mob: 07740 817586 
E-mail: richard.shaw@atkinsglobal.com

www.atkinsglobal.com/its



This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.

Re: Building and META-INF

Posted by Jiang Ning <ni...@iona.com>.
Add one note :)
Jiang Ning wrote:

> Hi Richard,
>
> Comments are in the mail.
>
> Shaw, Richard A wrote:
>
>> If I put my bus-extensions.xml file into a resources directory and 
>> then build and run in eclipse the file doesn't get loaded because it 
>> is not in the classpath.
>>  
>>
> Can you describe your eclipse workspace and project buildpath 
> configuration or you can take the http transport or jms transport  
> project setting as a reference.
> It could be much easy if you try to use maven.  The only thing you 
> need to do is to write a pom :).
> BTW: You can add CXF trunk in to eclipse as the Celtix eclipse setup. 
> (just need to hack  the  Celtix  build.xml's setup.eclipse ant task)
>
>> What is the accepted way of resolving this ?
>>  
>>
> When I doing my JMS transport work, the system test project build path 
> include all CXF rt and transport project so the system test 's class 
> path have the JMS transport reference. And the JMS can be  can be 
> loaded by bus. So I think you just need to take care of your project's 
> build path.
>
>
> Should I just ensure that I run maven whenever I change my resources 
> so that it gets moved to the target direcory ?

You can take a look at your build path , If your project depends on the 
other projects , It will be OK for just run in eclipse.
If your project depends the jar in the maven repository's you should run 
mvn install to get effect. :)


>>
>> Richard Shaw
>>
>> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤
>>
>> Richard Shaw  Technical Design Authority - Information Solutions 
>> Consultancy  Intelligent Transport Systems
>> Atkins Highways and Transportation Woodcote Grove, Ashley Road, 
>> Epsom, Surrey, KT18 5BW
>>
>> Tel: +44 (0) 1372 756407 Fax: +44 (0) 1372 740055
>> Mob: 07740 817586 E-mail: richard.shaw@atkinsglobal.com
>>
>> www.atkinsglobal.com/its
>>
>>
>>
>> This email and any attached files are confidential and copyright 
>> protected. If you are not the addressee, any dissemination of this 
>> communication is strictly prohibited. Unless otherwise expressly 
>> agreed in writing, nothing stated in this communication shall be 
>> legally binding.
>>
>>  
>>
>
>


Re: Building and META-INF

Posted by Jiang Ning <ni...@iona.com>.
Hi Richard,

Comments are in the mail.

Shaw, Richard A wrote:

>If I put my bus-extensions.xml file into a resources directory and then build and run in eclipse the file doesn't get loaded because it is not in the classpath.
>  
>
Can you describe your eclipse workspace and project buildpath 
configuration or you can take the http transport or jms transport  
project setting as a reference.
It could be much easy if you try to use maven.  The only thing you need 
to do is to write a pom :).
BTW: You can add CXF trunk in to eclipse as the Celtix eclipse setup. 
(just need to hack  the  Celtix  build.xml's setup.eclipse ant task)

>What is the accepted way of resolving this ?
>  
>
When I doing my JMS transport work, the system test project build path 
include all CXF rt and transport project so the system test 's class 
path have the JMS transport reference. And the JMS can be  can be loaded 
by bus. So I think you just need to take care of your project's build path.


>Should I just ensure that I run maven whenever I change my resources so that it gets moved to the target direcory ?
>
>Richard Shaw
>
>¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤
>
>Richard Shaw  
>Technical Design Authority - Information Solutions Consultancy  
>Intelligent Transport Systems 
>
>Atkins Highways and Transportation 
>Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
>
>Tel: +44 (0) 1372 756407 
>Fax: +44 (0) 1372 740055
>Mob: 07740 817586 
>E-mail: richard.shaw@atkinsglobal.com
>
>www.atkinsglobal.com/its
>
>
>
>This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.
>
>  
>


-- 
Willem Jiang
Software Engineer

IONA Asia Pacific Software Development Center
2/F, Unit A, Information Center
Zhongguancun Software Park Haidian District,
Beijing, P.R.China (100094)

Tel: +86-10-82825151 - 523
Fax: +86-10-82825210
Email: ning.jiang@iona.com



Re: Building and META-INF

Posted by James Mao <ja...@iona.com>.
> If I put my bus-extensions.xml file into a resources directory and then build and run in eclipse the file doesn't get loaded because it is not in the classpath.
>   
I assume you put your bus-extensions.xml under 
src/main/resources/META-INF dir,
After you add the file,  i think clean/build-all(CTRL+B) should works in 
eclipse, i mean when you run your project, it should be found in your 
classpath.
> What is the accepted way of resolving this ?
>
> Should I just ensure that I run maven whenever I change my resources so that it gets moved to the target direcory ?
>
> Richard Shaw
>
> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤
>
> Richard Shaw  
> Technical Design Authority - Information Solutions Consultancy  
> Intelligent Transport Systems 
>
> Atkins Highways and Transportation 
> Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
>
> Tel: +44 (0) 1372 756407 
> Fax: +44 (0) 1372 740055
> Mob: 07740 817586 
> E-mail: richard.shaw@atkinsglobal.com
>
> www.atkinsglobal.com/its
>
>
>
> This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.
>
>