You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by dcave555 <dc...@gmail.com> on 2007/06/09 15:59:58 UTC

Deployment problem

Hi all 

i have 3 projects 

1. A project - jar
2. B project - jar
3. C project war

In Project A I have xml file in resources.
Project B  depends on Project A (included in pom.xml)
Project C depends on Project B (oncluded in pom.xml)

My problem is when the server starts to run Project C (war file) i am
getting error that xml file (which is in Project A) not exists. I opened and
checked Project A jar file and i can see my xml file there in the right
place.

When i open war file i can see Project B jar file there , and when i am
opening Project B jar file i can see Project A jar file also there.

I tried to deploy project C without war file (folder with all appropriate
jars - Project B jar which include Project A jar) and it worked.

so the problem is that war file can not expand right jars.

Please help me to solve this problem.

Thx
-- 
View this message in context: http://www.nabble.com/Deployment-problem-tf3894406s177.html#a11040545
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Deployment problem

Posted by dcave555 <dc...@gmail.com>.


Wendy Smoak-3 wrote:
> 
> On 6/9/07, dcave555 <dc...@gmail.com> wrote:
> 
>> 1. A project - jar
>> 2. B project - jar
>> 3. C project war
>>
>> In Project A I have xml file in resources.
>> Project B  depends on Project A (included in pom.xml)
>> Project C depends on Project B (oncluded in pom.xml)
>>
>> My problem is when the server starts to run Project C (war file) i am
>> getting error that xml file (which is in Project A) not exists. I opened
>> and
>> checked Project A jar file and i can see my xml file there in the right
>> place.
>>
>> When i open war file i can see Project B jar file there , and when i am
>> opening Project B jar file i can see Project A jar file also there.
> 
> Are you saying that B.jar *contains* the file A.jar ?
> 
> Try arranging it so that the webapp has A.jar and B.jar both,
> separately, in WEB-INF/lib.
> 
> -- 
> Wendy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

Thx for your reply
Yes B.jar *contains* the file A.jar

What you are suggesting is to add to C.war pom.xml A.jar dependency 
But Only B.jar using A.jar
If i am adding A.jar dependency to C.war it's make no sense



-- 
View this message in context: http://www.nabble.com/Deployment-problem-tf3894406s177.html#a11040698
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Deployment problem

Posted by Wendy Smoak <ws...@gmail.com>.
On 6/9/07, dcave555 <dc...@gmail.com> wrote:

> 1. A project - jar
> 2. B project - jar
> 3. C project war
>
> In Project A I have xml file in resources.
> Project B  depends on Project A (included in pom.xml)
> Project C depends on Project B (oncluded in pom.xml)
>
> My problem is when the server starts to run Project C (war file) i am
> getting error that xml file (which is in Project A) not exists. I opened and
> checked Project A jar file and i can see my xml file there in the right
> place.
>
> When i open war file i can see Project B jar file there , and when i am
> opening Project B jar file i can see Project A jar file also there.

Are you saying that B.jar *contains* the file A.jar ?

Try arranging it so that the webapp has A.jar and B.jar both,
separately, in WEB-INF/lib.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org