Thanks Ray,

But I am still having bad luck.
When I include the lib tag, as you have in my orion-application.xml:
  <library path="../../applications/sgs/log4j-core.jar" />

I still get the same ClassNotFoundError.

BTW: I am having a symbolic link between /opt/Orion/ and /opt/Oron_5.1.
It won't have anything to do with this, or not ??

Any idea is welcome.
Does anyone want's to deploy my ear file, to see if it complaints ??

:{


----- Original Message -----
From: "Ray Harrison" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 05, 2001 12:59 AM
Subject: Re: Classpath and library path ERROR ??? --> PLEASE again ???


> Eddie (posting to your email address directly - hope you don't mind as the
list can take a while)-
> I am sure this is not the best way to approach this, but here's what I did
in a (perhaps?) similar
> situation where I needed to have access to an ldap security manager jar
file. The MyApp.ear file
> as in your case is deployed in the %ORION_HOME%\applications directory.
Expanded, of course it
> becomes %ORION_HOME%\applications\MyApp....
>
> So within the ear file I have, among other items...
>
> MyApp-ejb.jar
> MyApp-web.war
> META-INF...etc
> and then I have...
> MySecurity-app.jar (its own separate file)
> (which is the file I need access to)
>
> Within my orion-application.xml for my lib dir, after playing around I
ended up specifying it by
> giving it the relative address as in:
>
> <library path="..\..\applications\MyApp\MySecurity-app.jar" />
>
> after which I was able to set my user manager class and all that good
stuff - since it had access
> to the classes stored in the jar file listed in the library path.
>
>
> Try setting the library path as above...sorry if I am not quite getting
what you are trying to do.
>
> Cheers
> Ray
>
> --- Eddie <[EMAIL PROTECTED]> wrote:
> > SV: Classpath and library path ERROR ??? --> PLEASE again ???Helllu ????
> >
> > I still haven't been able to solve the problem below and I already had a
lot of sleepless
> > nights... so please some help, as I realy can't continue!!
> > (see below for the problem).
> > Does someone has a tinnnny example that proves that it must work, which
I can test on my Orion
> > ????
> >
> > Eddie
> >   ----- Original Message -----
> >   From: Eddie
> >   To: Orion-Interest
> >   Sent: Friday, June 29, 2001 11:19 PM
> >   Subject: Re: Classpath and library path ERROR ??? --> PLEASE again ???
> >
> >
> >   Hellu again,
> >
> >   Finally I have been able to jar the project to a ear file and deploy
it. I included the
> > log4j-core.jar file in my ear file, by including it in a ejb.jar file.
> >   I did this like Magnus suggested below: including the jar file in one
of the ejb.jar files and
> > put it in the MANIFEST.MF file.
> >   However, Orion still complains that it can't find the log4j-core.jar
file!!
> >   Please some help with the configuration ??:
> >   The ear files contains (locates in $ORION_HOME/applications):
> >   -----
> >   META-INF
> >   sgs-web.war
> >   um-ejb.jar
> >   ----
> >
> >
> >   They um-ejb.jar contains :
> >   ------
> >   ....
> >   log4j-core.jar
> >   META-INF/MANIFEST.MF
> >   META-INF/ejb-jar.xml
> >   ....
> >   ------
> >
> >
> >   And the MANIFEST.MF file contains:
> >   -------
> >   Manifest-Version: 1.0
> >   Created-By: Ant 1.3
> >   Class-Path: log4j-core.jar
> >   -------
> >
> >
> >   So, please can someone tell me what the ... am I doing wrong, as it
drives my grazy !!!????
> >
> >   BTW: I also included the log4j-core.jar file in a lib dir, which I did
put in the
> > orion-application.xml file with the 'library path' tag, like the
elephantwalker suggested, but
> > still had the same problem!! (ofcourse I included everything in the ear
file).
> >
> >   Musn't I include the log4j-core.jar in the MANIFEST.MF file of the ear
file, instead of the
> > ejb.jar file, as Magnus suggested ??
> >
> >
> >   Grrrrr,
> >   Eddie
> >     ----- Original Message -----
> >     From: Magnus Rydin
> >     To: Orion-Interest
> >     Sent: Monday, June 25, 2001 8:22 AM
> >     Subject: SV: Classpath and library path ERROR ??? --> PLEASE again
???
> >
> >
> >     I guess thats orion-application.xml right?
> >
> >     Another way would be to include the jar in the .ear file, and make
one of the ejb .jar:s
> > manifest files point it out. This is according to my interpretation of
the specification, so Im
> > pretty sure this will work with most J2EE servers out there.
> >
> >     WR
> >
> >     > -----Ursprungligt meddelande-----
> >     > Från: Ye He [mailto:[EMAIL PROTECTED]]
> >     > Skickat: den 22 juni 2001 09:09
> >     > Till: Orion-Interest
> >     > Ämne: Re: Classpath and library path ERROR ??? --> PLEASE again
???
> >     >
> >     >
> >     > i speicify my CLASSPATH thru applications.xml's
> >     > <library path=".." /> tag, using absolute path.  i'm on
> >     > SuSE 7.1 (kernel 2.4.0) with IBM jdk 1.3.0
> >     >
> >     > --- Eddie <[EMAIL PROTECTED]> wrote:
> >     > > Helllu ??
> >     > >
> >     > > What do you need to do to get an answer from this newsgroup
> >     > > when you are
> >     > > really in trouble ?? :(
> >     > >
> >     > > I still haven't be able to include a jar file in the
> >     > > orion-application.xml,
> >     > > that can be used by my application. It is able to use my jar
> >     > > when I put it
> >     > > in the $ORION_HOME/lib dir, but that's not what I want, as
> >     > > every application
> >     > > needs his own copy.
> >     > >
> >     > > I like to hear from Linux users how they did this, as I
> >     > > noticed that all the
> >     > > people that talked about it in the newsgroup, where all
> >     > > Windoze hackers. (I
> >     > > use: redhat 7.0 with sun jdk and orion 1.5.1)
> >     > >
> >     > > PLEASE some help, see below for more info ??
> >     > >
> >     > > Eddie :(
> >     > >
> >     > >
> >     > >
> >     > > ----- Original Message -----
> >     > > From: Eddie
> >     > > To: Orion-Interest
> >     > > Sent: Tuesday, June 19, 2001 11:20 AM
> >     > > Subject: Re: Classpath and library path ERROR ??? --> PLEASE
> >     > > again ???
> >     > >
> >     > >
> >     > > Thanks,
> >     > >
> >     > > Indeed the library tag wasn't on the correct place in the
> >     > > orion-application.xml.
> >     > > However, after placing it in the correct place it still
> >     > > doesn't work:
> >     > > --------
> >     > > .....
> >     > >  <web-module id="web" path="web" />
> >     > >  <persistence path="persistence" />
> >     > >
> >     > >         <library path="./lib" />
> >     > >         <library path="./lib/log4j-core.jar" />
> >     > >         <library path="./lib/log4j.jar" />
> >     > >
> >     > >  <principals path="principals.xml" />
> >     > >         <log>
> >     > >   <file path="application.log" />
> >     > >  </log>
> >     > >  <namespace-access>
> >     > > ....
> >     > > -------
> >     > >
> >     > > I also tried the orion-web.xml:
> >     > > ----
> >     > > ....
> >     > > <orion-web-app
> >     > >  deployment-version="1.5.1"
> >     > >  development="true"
> >     > >  jsp-cache-directory="./persistence"
> >     > >  temporary-directory="./temp"
> >     > >  servlet-webdir="/servlets/"
> >     > > >
> >     > >         <classpath path="./lib/log4j-core.jar" />
> >     > >  <ejb-ref-mapping name="ejb/UserManagerHome" />
> >     > > ...
> >     > > ----
> >     > >
> >     > > But didn't had much luck, which didn't suprise me, as I am
> >     > > using the lib
> >     > > files in my ejb's.
> >     > > I am sure that the jar files can be find by Orion, as it
> >     > > complaints when it
> >     > > can't find the files.
> >     > >
> >     > > But are you using Linux ?? I have a friend that has exatly the
> >     > > same problems
> >     > > on his linux machine!! .--> :(
> >     > > Shoudn't I put it all in a ear file ?? and if so, where ??
> >     > >
> >     > > Hope you have some ideas as I don't have them anymore. Neither
> >     > > do I know how
> >     > > to debug this, as Orion doesn't show that it loads the jar
> >     > > file...or where
> >     > > it looks..
> >     > > Hmmm... frustrating..
> >     > > Eddie
> >     > > ----- Original Message -----
> >     > > From: elephantwalker
> >     > > To: Orion-Interest
> >     > > Sent: Monday, June 18, 2001 6:20 PM
> >     > > Subject: RE: Classpath and library path ERROR ??? --> PLEASE
> >     > > again ???
> >     > >
> >     > >
> >     > > The dtd for orion-application.xml says about library:
> >     > >
> >     > > <!-- A relative/absolute path/URL to a directory or a
> >     > > .jar/.zip to add as a
> >     > > library-path for this server. Directories are scanned for
> >     > > jars/zips to
> >     > > include at startup. -->
> >     > > <!ELEMENT library (#PCDATA)>
> >     > > <!ATTLIST library path CDATA #IMPLIED
> >     > > >
> >     > >
> >     > > The main orion-application element is:
> >     > >
> >
> === message truncated ===
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>

Reply via email to