I did this:
my.ear:
my.jar
lib/my-ibatis-lib.jar
lib/ibatis-common-2.jar
lib/ibatis-sqlmap-2.jar
lib/ibatis-dao-2.jar
my.jar/MANIFEST.MF
Class-Path: lib/my-ibatis-lib.jar lib/ibatis-common-2.jar etc.
my-ibatis-lib.jar
blah/blah/blah/sqlMapConfig.xml
>From within EJB3 my.jar, I'm doing getResourceAsReader("blah/blah/blah/sqlMapConfig.xml") and I still get IOException, it can't find it. OMG...I'm gong to pull out all of my hair and I'm already bald!. If iBatis is added to the system classloader due to the MANIFEST entry then I maybe screwed no matter what. My only last resort is to see if java2Parent delegation will have an effect on this.
This is such a basic configuration and I cna't believe I'm the only one who has ran into this. Has anyone used iBatis from an EAR under JBoss? If so, can you please just give me your package layout?
-aps
On 4/7/06, Beemsterboer Software <[EMAIL PROTECTED]> wrote:
Alexander,
When I understand it correctly, you have the iBatis jar files in the EAR
project and
the iBatis configuration in the EJB project.
Can you try to extract these configuration files and add them as a
'shared library' to your application?
This is a 'good practice':
- You can configure your application without changing the EAR file.
Also, it may solve your classloading problem.
Greetings,
Hans.
--
"What lies behind us and what lies in front of us is of little concern to what lies within us." -Ralph Waldo Emerson
