Russ,

Comment here is that this is an Orion specific solution.  If you want a
cross server deployable app, as pointed out in the previous post, you must
duplicate the classes in the EAR file.

John N Alegre
Andante Systems

On 30-Nov-00 Russ White wrote:
> Hi Alex,
> 
> I too had this problem, and solved it by creating a library directory which I
> now have library tags in my orion-applcation.xml files which point to a class
> repository (could just as easily be a jar file).
> 
> like this:
> in orion-application.xml
> (or config/application.xml if you want these classes to be available to all
> apps)
> <library path="../../dev/java/classes"/>
> 
> then I do not have any jar files or classes at all in my web-inf/class
> web-inf/lib directories.
> 
> nor do I have any classes or jars in my ejb deployment directory. For my EJBs
> all I need is a directory for the beans and a META-INF directory under that.
> I
> put the ejb-jar.xml in that directory and that is all. Then the EJBs and the
> servlets share the some library.
> 
> Really slick.
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]On Behalf Of Alexander
>> Sparkowsky
>> Sent: Thursday, November 30, 2000 12:45 PM
>> To: Orion-Interest
>> Subject: Classpath problems
>>
>>
>> I have some problems dealing with the classpathes in orion.
>>
>> I have a web module and some ejb module. Some classes are used by the
>> web and ejb modules. First I added these classes only to one of  the
>> ejb modules and got a NoClassDefFoundError in the servlet. I then
>> added the class to the web module. I tried both in a .jar file in
>> WEB-INF/lib or as separatefile with no success. Other classes could
>> be loaded from both locations without anyproblems!.
>> When finally copying all classes to orion/lib my app ran. But this is
>> not the way I like to have it.
>>
>> Can somebody help?
>>
>> Alex
>>
>>
>>
> 

----------------------------------
E-Mail: John N. Alegre <[EMAIL PROTECTED]>
Date: 30-Nov-00
Time: 19:39:24

This message was sent by XFMail
----------------------------------

Reply via email to