[jboss-user] [Installation, Configuration & Deployment] - Specify jar-file in persistence.xml at certain position

pieterjan do-not-reply at jboss.com
Wed Jul 19 05:28:48 EDT 2006


I'm still using JBossAS 4.0.3 SP1 so therefore my applications are deployed as .par instead of .jar.

Anyway, I'm referencing entity beans from one .par file in another .par file.
So I added the referenced classes in the persistence.xml file. And everything works fine.

But now, I would rather have the jar-file mentioned in the persistence.xml than the individual classes (for obvious maintenance reasons).

And here's the thing: I found out that, 

the following line will look in : jboss-4.0.3SP1/bin

the following line will look in : jboss-4.0.3SP1/server/barc/deploy/BARC/applicationtwo/
and this is okay when the par files are located in the same directory
but in my case each project has its own directory, so...

the following line will look in : jboss-4.0.3SP1/server/barc/deploy/BARC/applicationtwo/pplicationone
As you can see letter 'a' has been removed and the two dots did not make the deployer move/look in the correct directory.

To make it even more obvious...
the following line will look in: jboss-4.0.3SP1/server/barc/deploy/BARC/applicationtwo/icationone

So can anyone tell me what I'm doing wrong? Does the deployer use the dots as special characters and is there a workaround?

In summary. What I want is to reference 
jboss-4.0.3SP1/server/barc/deploy/BARC/applicationone/referenced_project.par from the persistence.xml file in

Pieter-Jan Savat

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959062#3959062

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959062

More information about the jboss-user mailing list