referencing another EJB via Class-Path entry in manifest.mf

User avatar
OBender
Уже с Приветом
Posts: 1564
Joined: 27 Nov 2001 10:01
Location: Live free or die

referencing another EJB via Class-Path entry in manifest.mf

Post by OBender »

вот вопрос я его задавал на JBossовском форуме и на TheServerSide, там пока молчат может тут кто знает.
-------------------------------------------------------------------------------
I'm migrating our application from WebSphere to JBoss 3.2.5.
During this migration I faced rather anoying problem.
Or EAR file has a lot of EJB jar files and many of them
reference each other via Class-Path entry in manifest.mf file.

manifest.mf for EJB X looks like this (excerpt):

Class-Path: ./common.jar
./ejbA.jar
./ejbB.jar
./ejbC.raj

What I'm getting with JBoss is this:

Code: Select all

[org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.JARDeployer@1319c
[org.jboss.deployment.MainDeployer] new manifest entry for sdi at ejbX.jar entry is ./common.jar
[org.jboss.deployment.MainDeployer] Copying file:/m:/xxx.ear/common.jar -> Y:\JBoss-3.2.5\server\esp\tmp\deploy\tmp42609common.jar
[org.jboss.deployment.JARDeployer] No xml files found
[org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.JARDeployer@1319c
[org.jboss.deployment.MainDeployer] new manifest entry for sdi at ejbX.jar entry is ./ejbA.jar
[org.jboss.deployment.MainDeployer] new manifest entry for sdi at ejbX.jar entry is ./ejbB.jar
[org.jboss.deployment.MainDeployer] Copying file:/m:/xxx.ear/ejbC.jar -> Y:\JBoss-3.2.5\server\esp\tmp\deploy\tmp42610ejbC.jar
[org.jboss.deployment.MainDeployer] using deployer org.jboss.ejb.EJBDeployer@1db6bb
[org.jboss.deployment.MainDeployer] The manifest entry in file:/m:/xxx.ear/ejbX.jar references URL file:/m:/xxx.ear/ejbC.jar which could not be opened, entry ignored


Where common.jar is just a library and ejb[A|B|C] are EJBs used by ejbX.
No references are specified in ejbX's ejb-jar.xml file to other EJBs.

It happens for different referenced EJB in different JARs.

First question is why JBoss decided to copy ejbC.jar (and Tidy.jar)on deployment but didn't
copy ejbA.jar and ejbB.jar?

Second why does it fail in JBoss at all when it works fine in WebSphere?
The failure shows itself when I try to lookup bean ejbX, even though
JBoss reports it as deployed I get NamingException.

Any ideas?
Интересный вы человек! Все у вас в порядке. Удивительно, с таким счастьем - и на свободе. (C) О.Бендер
Бродяга
Уже с Приветом
Posts: 16086
Joined: 22 Apr 2003 17:57
Location: Колыбель

Post by Бродяга »

А deployment descriptors Вы переписали для JBoss?
Бог создал людей разными, Линкольн дал людям свободу, а Кольт всех уравнял.
User avatar
OBender
Уже с Приветом
Posts: 1564
Joined: 27 Nov 2001 10:01
Location: Live free or die

Post by OBender »

Я так понял что jboss.xml это опшенал файл, т.е. не обязательно к ejb-jar.xml делать еще и jboss.xml, или я не прав? Тогда что необходимо писать в jboss.xml?
Интересный вы человек! Все у вас в порядке. Удивительно, с таким счастьем - и на свободе. (C) О.Бендер
User avatar
OBender
Уже с Приветом
Posts: 1564
Joined: 27 Nov 2001 10:01
Location: Live free or die

Post by OBender »

О! Раз вы работали с JBoss есть еще один вопрос. Как и где можно описать зависимочть между модулями. Т.е. есть ejbA.jar и ejbB.jar и нужно что бы ejbB.jar деплоился перед ejbA.jar.
Пока что ненашел ничего на JBoss.com.
Интересный вы человек! Все у вас в порядке. Удивительно, с таким счастьем - и на свободе. (C) О.Бендер

Return to “Вопросы и новости IT”