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 :(
|
Title: SV: Including jar files in my web app ?
- SV: Including jar files in my web app ? Magnus Rydin
- Re: Including jar files in my web app ? Eddie
- Re: Including jar files in my web app ? Jasper Straaten
- Re: Including jar files in my web app ? Johan Fredriksson
- RE: Including jar files in my web app ? Carter, Shane
- RE: Including jar files in my web app ? Peter Neil
- RE: Including jar files in my web app ? Kesav Kumar
- RE: Including jar files in my web app ? Ed Bras
- Re: Including jar files in my web app ? Court Demas
- Re: Including jar files in my web app ? Hani Suleiman