WEB-INF/lib/*.jar
Dear all, it seems to me that my lib packages which are located under myapp/web/WEB-INF/lib can not be recognized by Tomcat. If I move my packages to common/lib, then it works fine. Is there any trick how the packages under myapp/web/WEB-INF/lib can be found by Tomcat? Thanks, Gop - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: WEB-INF/lib/*.jar
thanks all for your reply. actually, I have this kind of directory hierarchy: myapp/build.properties myapp/build.xml myapp/web/*.jsp myapp/web/WEB-INF/web.xml myapp/web/WEB-INF/lib/requiredlibs.jar myapp/web/WEB-INF/classes myapp/src/../*.java and after running ant install, I have this directory structure and I foudn every neccesary jars in the lib directory. build/*.jsp build/WEB-INF/web.xml build/WEB-INF/lib/requiredlibs.jar build/WEB-INF/classes/../myclasses.class According to your recommendation (also servet spec), my WEB-INF should be at the first level of the app deployment directory. It is really at the correct place, isn't it? Or do I have to specify any path to find WEB-INF/lib/*.jar? thanks for your help. Cheers, Gop - Originalnachricht - Von: "Caldarale, Charles R" <[EMAIL PROTECTED]> Datum: Mittwoch, 22. November 2006 5:19 pm Betreff: RE: WEB-INF/lib/*.jar > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > > Subject: WEB-INF/lib/*.jar > > > > it seems to me that my lib packages which are located under > > myapp/web/WEB-INF/lib can not be recognized by Tomcat. > > Read the servlet spec: WEB-INF must be at the first level of the app > deployment directory (or .war file), not the second. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE > PROPRIETARYMATERIAL and is thus for use only by the intended > recipient. If you > received this in error, please contact the sender and delete the e- > mailand its attachments from all computers. > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WEB-INF/lib/*.jar
Dear David, yes, there is a target in the build.xml which is used to deploy an application: ant install. I found the deployment directory as you suggested as follows: conpro/apache-tomcat-5.5.17 $ ls webapps/prolog/WEB-INF/lib/ activation.jar commons-logging-1.1.jar jstl.jar logging-log4j-1.3alpha-8 mail.jar commons-logging-1.1 commons-logging-1.1.tar log4j-1.3alpha-8.jar logging-log4j-1.3alpha-8.zip standard.jar -- They are all jar files I need. But the problem remains that they can not be found? Is there anything I forgot? thanks. Gop - Originalnachricht - Von: David Delbecq <[EMAIL PROTECTED]> Datum: Donnerstag, 23. November 2006 11:16 am Betreff: Re: WEB-INF/lib/*.jar > [EMAIL PROTECTED] a écrit : > > thanks all for your reply. > > > > actually, I have this kind of directory hierarchy: > > myapp/build.properties > > myapp/build.xml > > myapp/web/*.jsp > > myapp/web/WEB-INF/web.xml > > myapp/web/WEB-INF/lib/requiredlibs.jar > > myapp/web/WEB-INF/classes > > myapp/src/../*.java > > > This is the source, you organize it whatever way you want it > organized,it has nothing to do with tomcat > > and after running ant install, I have this directory structure > and I > > foudn every neccesary jars in the lib directory. > > > > build/*.jsp > > build/WEB-INF/web.xml > > build/WEB-INF/lib/requiredlibs.jar > > build/WEB-INF/classes/../myclasses.class > > > Your ant script is building to build/ directory, nice, but again > nothingto do with tomcat > > According to your recommendation (also servet spec), my WEB-INF > should> be at the first level of the app deployment directory. It > is really at > > the correct place, isn't it? > > > It's in your "build" directory that has nothing to do with the > "deployment" directory. The build directory has to do with the way you > compile and organize your source. It's not related in any way to > tomcator any other webapp server. You are missing the step where > you need to > transfer your builded application to the server (this step is named > "thedeployment"). > > To do this either put the content of your build/ directory to dir>/webapps//, either create a webapp>.war file with the content of your build/ directory and > deploy it > to tomcat using the tomcat manager. There is even a ant task to do > this(see tomcat docs about deployment for more informations) > > Or do I have to specify any path to find WEB-INF/lib/*.jar? > > > > thanks for your help. > > Cheers, > > > > Gop > > > > > > > > - Originalnachricht - > > Von: "Caldarale, Charles R" <[EMAIL PROTECTED]> > > Datum: Mittwoch, 22. November 2006 5:19 pm > > Betreff: RE: WEB-INF/lib/*.jar > > > > > >>> From: [EMAIL PROTECTED] > >>> > >> [mailto:[EMAIL PROTECTED] > >> > >>> Subject: WEB-INF/lib/*.jar > >>> > >>> it seems to me that my lib packages which are located under > >>> myapp/web/WEB-INF/lib can not be recognized by Tomcat. > >>> > >> Read the servlet spec: WEB-INF must be at the first level of the > app>> deployment directory (or .war file), not the second. > >> > >> - Chuck > >> > >> > >> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE > >> PROPRIETARYMATERIAL and is thus for use only by the intended > >> recipient. If you > >> received this in error, please contact the sender and delete the > e- > >> mailand its attachments from all computers. > >> > >> - > --- > >> - > >> To start a new topic, e-mail: users@tomcat.apache.org > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > > -- > --- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WEB-INF/lib/*.jar
Sorry David, I have found the problem. We have to declare the external dependencies in the build.xml file so that the compilation can find required *.jar. thanks for for help. Cheers, Gop - Originalnachricht - Von: David Delbecq <[EMAIL PROTECTED]> Datum: Donnerstag, 23. November 2006 11:16 am Betreff: Re: WEB-INF/lib/*.jar > [EMAIL PROTECTED] a écrit : > > thanks all for your reply. > > > > actually, I have this kind of directory hierarchy: > > myapp/build.properties > > myapp/build.xml > > myapp/web/*.jsp > > myapp/web/WEB-INF/web.xml > > myapp/web/WEB-INF/lib/requiredlibs.jar > > myapp/web/WEB-INF/classes > > myapp/src/../*.java > > > This is the source, you organize it whatever way you want it > organized,it has nothing to do with tomcat > > and after running ant install, I have this directory structure > and I > > foudn every neccesary jars in the lib directory. > > > > build/*.jsp > > build/WEB-INF/web.xml > > build/WEB-INF/lib/requiredlibs.jar > > build/WEB-INF/classes/../myclasses.class > > > Your ant script is building to build/ directory, nice, but again > nothingto do with tomcat > > According to your recommendation (also servet spec), my WEB-INF > should> be at the first level of the app deployment directory. It > is really at > > the correct place, isn't it? > > > It's in your "build" directory that has nothing to do with the > "deployment" directory. The build directory has to do with the way you > compile and organize your source. It's not related in any way to > tomcator any other webapp server. You are missing the step where > you need to > transfer your builded application to the server (this step is named > "thedeployment"). > > To do this either put the content of your build/ directory to dir>/webapps//, either create a webapp>.war file with the content of your build/ directory and > deploy it > to tomcat using the tomcat manager. There is even a ant task to do > this(see tomcat docs about deployment for more informations) > > Or do I have to specify any path to find WEB-INF/lib/*.jar? > > > > thanks for your help. > > Cheers, > > > > Gop > > > > > > > > - Originalnachricht - > > Von: "Caldarale, Charles R" <[EMAIL PROTECTED]> > > Datum: Mittwoch, 22. November 2006 5:19 pm > > Betreff: RE: WEB-INF/lib/*.jar > > > > > >>> From: [EMAIL PROTECTED] > >>> > >> [mailto:[EMAIL PROTECTED] > >> > >>> Subject: WEB-INF/lib/*.jar > >>> > >>> it seems to me that my lib packages which are located under > >>> myapp/web/WEB-INF/lib can not be recognized by Tomcat. > >>> > >> Read the servlet spec: WEB-INF must be at the first level of the > app>> deployment directory (or .war file), not the second. > >> > >> - Chuck > >> > >> > >> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE > >> PROPRIETARYMATERIAL and is thus for use only by the intended > >> recipient. If you > >> received this in error, please contact the sender and delete the > e- > >> mailand its attachments from all computers. > >> > >> - > --- > >> - > >> To start a new topic, e-mail: users@tomcat.apache.org > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > > -- > --- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
server not reachable in regular period of time
Hi all, I run a Linux script to check every 5 minutes whether my server is still on: #! /bin/bash while true; do sleep 300 `wget http://localhost:8080/myapp/index.jsp -o stdout` result=`grep -c 'OK' stdout` if [ $result -eq 0 ]; then echo "server down" | mail -s "warning:server down" [EMAIL PROTECTED] fi done >From this script I noticed that my server is not reachable every 70 minutes. Then, I open a browser and request my application. It still works. Could any body please have an explanation for this phenomenon? Thanks. Gop - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: server not reachable in regular period of time
unfortunately it is in German: --15:17:51-- http://localhost:8080/myapp/index.jsp (Versuch: 5) => `index.jsp' Verbindungsaufbau zu xxx|yyy|:8080... fehlgeschlagen: Die Wartezeit für die Verbindung ist abgelaufen. Erneuter Versuch. in English the whole stdout should mean: --15:17:51-- http://localhost:8080/myapp/index.jsp (attempt: 5) => `index.jsp' connection establishing to xxx|yyy|:8080... failed: the idle time for the connection is expred. new attemtpt. - Originalnachricht - Von: David Smith <[EMAIL PROTECTED]> Datum: Dienstag, 28. November 2006 1:31 pm Betreff: Re: server not reachable in regular period of time > What does stdout have in it when your script registers a server down > condition? > > --David > > [EMAIL PROTECTED] wrote: > > >Hi all, > > > >I run a Linux script to check every 5 minutes whether my server is > still on: > > > >#! /bin/bash > >while true; do > > sleep 300 > > `wget http://localhost:8080/myapp/index.jsp -o stdout` > >result=`grep -c 'OK' stdout` > > if [ $result -eq 0 ]; then > > echo "server down" | mail -s "warning:server down" > >[EMAIL PROTECTED] > >fi > > done > > > >From this script I noticed that my server is not reachable every 70 > >minutes. Then, I open a browser and request my application. It > still works. > > > >Could any body please have an explanation for this phenomenon? > > > >Thanks. > > > >Gop > > > > > >--- > -- > >To start a new topic, e-mail: users@tomcat.apache.org > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to add a library path in build.xml?
Dear all, I want to run an application which requires a special native libray as the following error shows: There was 1 error: [java] 1) testQuery(its.prolog.Test)java.lang.UnsatisfiedLinkError: no jpl in java.library.path [java] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) [java] at java.lang.Runtime.loadLibrary0(Runtime.java:822) [java] at java.lang.System.loadLibrary(System.java:992) This line tells me what my current library.path is: /usr/lib/j2sdk1.5-sun/jre/lib/i386/client:/usr/lib/j2sdk1.5-sun/jre/lib/i386:/usr/lib/j2sdk1.5-sun/jre/../lib/i386 I would like to add a new library path to the current one. How can I specify that in build.xml? Thank you in advance Gop - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to add a library path in build.xml?
I specify the -Djava.library.path as follows: and in the clasas its.prolog.Test I have this line System.out.println(System.getProperty("java.library.path")); which prints out the following java.library.path value: ./opt/pkg/pl/lib/pl-5.6.6/lib/i686-linux That means the path I specified in build.xml associates to my current directory? Is something wrong with this path? after the Test class has been run, the line prints out the normal java.library.path value: /usr/lib/j2sdk1.5-sun/jre/lib/i386/client:/usr/lib/j2sdk1.5-sun/jre/lib/i386:/usr/lib/j2sdk1.5-sun/jre/../lib/i386 Why is it so? Thanks Gop - Originalnachricht - Von: David Delbecq <[EMAIL PROTECTED]> Datum: Freitag, 2. Februar 2007 1:09 pm Betreff: Re: how to add a library path in build.xml? > For execution classpath: > http: > > For compilation classpath: > http: > > En l'instant précis du 02/02/07 12:43, [EMAIL PROTECTED] > s'exprimait en ces termes: > > Dear all, > > > > I want to run an application which requires a special native > libray as > > the following error shows: > > > > There was 1 error: > > [java] 1) > testQuery(its.prolog.Test)java.lang.UnsatisfiedLinkError:> no jpl > in java.library.path > > [java] at > java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)> > [java] at java.lang.Runtime.loadLibrary0(Runtime.java:822) > > [java] at java.lang.System.loadLibrary(System.java:992) > > > > > > This line tells me what my current library.path is: > > /usr/lib/j2sdk1.5-sun/jre/lib/i386/client:/usr/lib/j2sdk1.5- > sun/jre/lib/i386:/usr/lib/j2sdk1.5-sun/jre/../lib/i386 > > > > I would like to add a new library path to the current one. How > can I > > specify that in build.xml? > > > > Thank you in advance > > > > Gop > > > > > > > > -- > --- > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > - > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]