(Answer) (Category) FAQ-O-Matic : (Category) Borland Application Server (aka Inprise Application Server, BAS, IAS) :
I have an ejb module and its XML config file in a jar. I want to read the XML with a ClassLoader.getResourceAsStream() but IAS 4.1.1 doesn't seem to allow this. What can I do?
Krishnan Subramanian writes:

Version 4.1.1 had some problems in loading resources as streams. (i.e. known issue -- how convenient ;)

The only way to get around the problem in the above version was to use the system classloader (-DEJBNoClassLoader) with the jar file you are trying to deploy in the classpath as well.

Also verify that the resource file you are trying to load is present the root directory of the jar file and not the sub-directory (or package) where your ejb classes are.

2001-Sep-05 9:43am gyles19@visi.com

[Append to This Answer]
2001-Sep-05 9:43am
Previous: (Answer) Is there a way to write from a SB or EB in the ejb container error log?
Next: (Answer) What is the difference between EJB linked reference and EJB not linked reference (with JNDI Name?) What should I use if I want to enforce local call in my container (and my j2EE stack) between multiple jars?
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=264
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

Java Community
Java Tools
Code Central
JB OpenTools
Community
Recent
Threads
Borland Chat
Chat FAQ
Feature Matrices
3.0 |  3.5 |  4.0
5.0 |  6.0 |  7.0
Shop for
JBuilder
JBuilder
Downloads
and reg keys
Report Piracy
Online Manuals
4.0 |  5.0 |  6.0
7.0
Borland
DevSupport's
Bug/RFE Form

Quality Central Client
JB Patches &
Updates
JBuilder FAQs TIs
JBuilder
Newsgroups
Tamaracka's
News Archive
Mr. Haki's
JBuilder Machine
JGuru's
JBuilder FAQ
Sun's Bug
Parade
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]