Trivial classpath problem ?

2002-01-13 Thread Yuval_Goldstein


Hi,
Although this is an oc4j question ( oracles wrapper for orion ), im sure
some of you would be able to help me ( the engines are the same down there
:).
Ive tried adding a new jar to oc4js classpath. Our application depends on
this jar.
I couldnt.
Ive tried adding the jar as a 'library-path' tag within the server.xml.
Then added it to the command line running oc4j ( -cp =  ). It didnt do
the trick.
Ive only made some progress when putting it straight into oc4js lib
directory.
Im confused.
1. What does the 'library-path' tab enable?
2. Whats the difference between using it and supplying jars to the oc4js
runtime classpath ( -cp ).
3. What is the recommended way, to simply add a jar upon my application
depends of?

Any help would be apreceated,
Yuval.







RE: Trivial classpath problem ?

2002-01-13 Thread The elephantwalker

Yuval,

In your orion-application.xml of your ear application, you can put this tag:

library path=lib /

This is after the persistance tag and before the principals tag.

In your ear layout, include a directory lib, so now the layout should look
like this:

META-INF
META-INF/application.xml
META-INF/orion-application.xml
mywarfiles.war
myejbfiles.jar
lib
lib/mylibraryfiles.jar


The reason orion was picking up your jar files from the lib directory in
orion is that the config/application.xml (which is the orion-application.xml
of the global-application, or default app as it is sometimes called) has a
tag in it

libarary path=../lib /

regards,

the elephantwalker
www.elephantwalker.com





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Saturday, January 12, 2002 11:36 PM
To: Orion-Interest
Cc: [EMAIL PROTECTED]
Subject: Trivial classpath problem ?



Hi,
Although this is an oc4j question ( oracles wrapper for orion ), im sure
some of you would be able to help me ( the engines are the same down there
:).
Ive tried adding a new jar to oc4js classpath. Our application depends on
this jar.
I couldnt.
Ive tried adding the jar as a 'library-path' tag within the server.xml.
Then added it to the command line running oc4j ( -cp =  ). It didnt do
the trick.
Ive only made some progress when putting it straight into oc4js lib
directory.
Im confused.
1. What does the 'library-path' tab enable?
2. Whats the difference between using it and supplying jars to the oc4js
runtime classpath ( -cp ).
3. What is the recommended way, to simply add a jar upon my application
depends of?

Any help would be apreceated,
Yuval.








Re: A word of warning: SwiftMQ and Resource providers.

2002-01-13 Thread Graham Bennett

On Tue, Nov 20, 2001 at 12:29:54PM +0200, Lachezar Dobrev wrote:
Recently looking at the Resource-Providers docs, and EAGER to use
an external JMS for my MDBs I and a colleague decided to run the
demos.  As quite a surprise the demo run ok. The MDB did everything
when a message was sent to the Queue.
 
The BIG disappointment was, when we tried to do the same with the
topic.  In short: It does not work.

 Error deploying
 file:/D:/Temp/Orion/applications/Orion2SwiftMQ/Orion2SwiftMQ.jar
 homes: JMS Error: Queue 'testtopic' is not local! Can't create a
 Consumer on it!

has this now been fixed?  I'm getting the same error with SwiftMQ and
the latest build.

cheers,

-- 
Graham Bennett
[EMAIL PROTECTED]




Re: A word of warning: SwiftMQ and Resource providers.

2002-01-13 Thread Ray Harrison

According to Magnus R, the problem will be fixed in the next release. I don't know if 
you can use
SwiftMQ / Topics with the Oracle code base (OC4J), but maybe worth a shot. Hopefully 
soon from the
good folks at Orion!
--- Graham Bennett [EMAIL PROTECTED] wrote:
 On Tue, Nov 20, 2001 at 12:29:54PM +0200, Lachezar Dobrev wrote:
 Recently looking at the Resource-Providers docs, and EAGER to use
 an external JMS for my MDBs I and a colleague decided to run the
 demos.  As quite a surprise the demo run ok. The MDB did everything
 when a message was sent to the Queue.
  
 The BIG disappointment was, when we tried to do the same with the
 topic.  In short: It does not work.
 
  Error deploying
  file:/D:/Temp/Orion/applications/Orion2SwiftMQ/Orion2SwiftMQ.jar
  homes: JMS Error: Queue 'testtopic' is not local! Can't create a
  Consumer on it!
 
 has this now been fixed?  I'm getting the same error with SwiftMQ and
 the latest build.
 
 cheers,
 
 -- 
 Graham Bennett
 [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/




Re: Trivial classpath problem ?

2002-01-13 Thread Scott Farquhar

Yuval,

The following new tutorial on our knowledge base may help you:

   http://kb.atlassian.com/content/atlassian/howto/classloaders.jsp

It details all the different levels of classloaders available in Orion. 
  Please feel free to annotate the page with any comments:

 
http://kb.atlassian.com/content/atlassian/howto/classloaders.jsp#annotations 



Cheers,
Scott

-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World




[EMAIL PROTECTED] wrote:

 Hi,
 Although this is an oc4j question ( oracles wrapper for orion ), im sure
 some of you would be able to help me ( the engines are the same down there
 :).
 Ive tried adding a new jar to oc4js classpath. Our application depends on
 this jar.
 I couldnt.
 Ive tried adding the jar as a 'library-path' tag within the server.xml.
 Then added it to the command line running oc4j ( -cp =  ). It didnt do
 the trick.
 Ive only made some progress when putting it straight into oc4js lib
 directory.
 Im confused.
 1. What does the 'library-path' tab enable?
 2. Whats the difference between using it and supplying jars to the oc4js
 runtime classpath ( -cp ).
 3. What is the recommended way, to simply add a jar upon my application
 depends of?
 
 Any help would be apreceated,
 Yuval.