Title: SV: Including jar files in my web app ?
I suppose you tried with orion/lib directory?
 
It might not be what you want to do but it might help you try out the jar file and let development go on while testing the other issue.
 
What about referencing your classpath
 
as
 
./appname/app-web/web-inf/lib
 
instead?
 
If you do a File file = new File() in orion, it will be placed in the root of the app-dir so maybe this is how you have to specify your dirs.
 
Johan
----- Original Message -----
Sent: Thursday, April 12, 2001 12:00 PM
Subject: Re: Including jar files in my web app ?

Hi Eddie,
 
I have been experiencing the same classpath-related problems.
Searching through this maillinglist i found out more people have
problems with this.
 
One thing that seems to be working is starting orion without -jar orion.jar
but with com.evermind.server.ApplicationServer but still it seems you need to
put all application-specific classes in the classpath before starting orion because
when i put <classpath path="./WEB-INF/lib/" /> in my orion-web.xml (where i
have a jar-file containing application-specific classes in the WEB-INF/lib-dir.) and
startup orion with just the normal orion-jars and without the application-specific
classes in the classpath he still can't find the classes.
But when i put them in the classpath when starting orion, there are no problems.
 
But when only this way works, what's the use of the <classpath../>-tag (and other
classpath/library-related tags) when it's not working anyway without putting them
all in the classpath before starting orion ?
 
So my question also is, is there a standard way, not putting al the application-classes
in the classpath before starting orion, of solving these kind of classpath-problems?
Because this way, when i add a new application i also may have to change my startup-script
which can't be how it's supposed to be, or at least i think so.(?)
 
Any help and/or thoughts on this matter would be greatly appreciated!
 
Jasper.
 
----- Original Message -----
From: Eddie
Sent: Wednesday, April 11, 2001 6:53 PM
Subject: Re: Including jar files in my web app ?

Hi Magnus and others ofcourse,
 
It has been a while since this issue passed by, but that is because we have been struggling with it since.
I am still not able to include jar files that I put in my WEB-INF/lib dir, particular: velocity.jar.
Also someone else in this newsgroup has been busy with it, on orion 1.4.7, on the same application on a different machine and has the same problem.
BTW: I am able to use the jar when i put it in orion/config/application.xml with <library path...> it works but it contains a static class and I need one for every application.
 Everytime I get the error that it can't find the class (ClassDefNotFound).
What I tried:
- Just putting them in the WEB-INF/lib dir, but it can't find it.
- putting the velocity.jar in other places, like in the root of the application.
- jar file in the WEB-INF/lib and putting the following tag in the orion-web.xml:
        <classpath path="./WEB-INF/lib/" />
- and also tried
        <classpath path="./WEB-INF/lib/velocity.jar" />
- unpacking the jar and putting it in the WEB-INF/classes dir where the servlets are located in packages that I call through servlet ref's
- When I put the WEB-INF/lib/velocity.jar in the CLASSPATH, yes it does find it, but then all applications find the same velocity.jar and that doesn't work.!!!
- Tried to include the jar int the META-INF/application.xml:
 <module>
  <ejb>/opt/Orion/lib/counter.jar</ejb>
 </module>
 but is than complains:
-------
Error auto-deploying application-client at velocity.jar: Unable to find/read assembly info for /home/development/sgs/velocity.jar (META-INF/application-client.xml)
--------
The file exists and has the necessary tags, only it is empty as I don't know what to put in it.
- I find in the newsgroup archive, that solved the problem by starting orion with:
com.evermind.server.ApplicationServer insted through orion.jar
- I think I tried some more things.... but reallu nothing worked.
 
PLEASSE tell me how I can see where Orion looks for the jar file, as this problem is really driving my comletely nuts...!!
I found a lot of little things about this subject. I tried about everyting, but nothing helped. I lost the logic here, so hope that someone can help me out, here, otherwise I .....
 
Eddie :(
 
 
 
 

 
 
----- Original Message -----
Sent: Thursday, April 05, 2001 11:05 AM
Subject: SV: Including jar files in my web app ?

This is strange..
I have no problem with having a couple of jars in /WEB-INF/lib


> -----Ursprungligt meddelande-----
> Fr�n: Court Demas [mailto:[EMAIL PROTECTED]]
> Skickat: den 5 april 2001 00:36
> Till: Orion-Interest
> �mne: Re: Including jar files in my web app ?
>
>
> I just had a similar problem.  Orion saw classes *either* in
> WEB-INF/classes
> *or* in WEB-INF/lib.
>
> My solution was to either unpack all classes into
> WEB-INF/classes (removing the
> lib directory), or create one huge JAR file in WEB-INF/lib
> (removing the
> classes directory).
>
> I hope there's a better solution!
>
> court
>
>
> Eddie wrote:
>
> > I don't seem be able to tell Orion 1.4.7 te read my bla.jar
> that is located
> > in the WEB-INF/lib ??
> >
> > To me it's not really clear how to do that. The bla.jar is
> there but it
> > keeps giving an ClassDefNotFound error.
> > I also tried it with tablib (which is basically for JSP
> only not ???) but
> > that neither worked:
> > ---
> >         <taglib>
> >          <taglib-uri>bla</taglib-uri>
> >          <taglib-location>/WEB-INF/lib/bla.jar</taglib-location>
> >         </taglib>
> > ---
> >
> > What am I doing wrong ? and how can I see more in detail
> where is looking ??
> >
> > Ahhhh,
> > Eddie
> >
> > ----
> > bash-2.04$ pwd
> > /home/development/sgs/web/WEB-INF/lib
> > bash-2.04$ ll
> > total 428
> > -rwxr--r--    1 program  users      369846 Apr  4 17:01 bla.jar
> > bash-2.04$
> > -----------------
>
>

Reply via email to