Re: BUILD FAILED: Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found ...
> Maybe try to download a fresh copy of Ant and compare it with your > installation? thank you, that did it: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ $ date; _DT=$(date +%Y%m%d%H%M%S); ant test -logfile ant_test_apache-tomcat-7.0.35-src_${_DT}.log 2>&1; date Fri Feb 8 14:27:09 UTC 2013 Buildfile: /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/build.xml Fri Feb 8 14:50:03 UTC 2013 $ tail -n 10 ant_test_apache-tomcat-7.0.35-src_${_DT}.log [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 2.451 sec test-apr-exists: test-apr: test: BUILD SUCCESSFUL Total time: 22 minutes 53 seconds ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ then I got: "Error: Could not find or load main class org.apache.catalina.startup.Bootstrap" and after looking a little deeper into the running context $ ./startup.sh Using CATALINA_BASE: /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src Using CATALINA_HOME: /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src Using CATALINA_TMPDIR: /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/temp Using JRE_HOME:/media/sdb1/inst/sw/jdk/x86/jdk1.7.0_11 Using CLASSPATH: /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/bin/bootstrap.jar:/media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/bin/tomcat-juli.jar and noticing "bootstrap.jar" was not where tc was looking for it (SOMETHING I THINK SHOULD HAVE BEEN CHECKED AND STATED EXPLICITLY AS PART OF THE ERROR MESSAGE OF THE LOG FILE) $ cat /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/logs/catalina.out Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap Caused by: java.lang.ClassNotFoundException: org.apache.catalina.startup.Bootstrap at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: org.apache.catalina.startup.Bootstrap. Program will exit. Error: Could not find or load main class org.apache.catalina.startup.Bootstrap Error: Could not find or load main class org.apache.catalina.startup.Bootstrap Error: Could not find or load main class org.apache.catalina.startup.Bootstrap Error: Could not find or load main class org.apache.catalina.startup.Bootstrap $ ls -l /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/bin/bootstrap.jar ls: cannot access /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/bin/bootstrap.jar: No such file or directory I looked for it find /media/sdb1 -type f -iname "bootstrap.jar" and found it in the output dir created by the build: /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/output/build/bin/bootstrap.jar so I opened a new terminal tab and reset the whole context $ pwd /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/output/build $ export JAVA_HOME=/media/sdb1/inst/sw/jdk/x86/jdk1.7.0_11 $ export PATH=$JAVA_HOME/bin:$PATH $ export ANT_HOME=/media/sdb1/inst/sw/apache-ant-1.8.4 $ export TOMCAT_HOME=/media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/output/build $ export CATALINA_HOME=/media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/output/build $ cd bin $ pwd /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/output/build/bin $ ls -l *.sh -rwxr-xr-x 1 knoppix knoppix 19189 Feb 8 11:55 catalina.sh -rwxr-xr-x 1 knoppix knoppix 1982 Feb 8 11:55 configtest.sh -rwxr-xr-x 1 knoppix knoppix 7492 Feb 8 11:55 daemon.sh -rwxr-xr-x 1 knoppix knoppix 2021 Feb 8 11:55 digest.sh -rwxr-xr-x 1 knoppix knoppix 3524 Feb 8 11:55 setclasspath.sh -rwxr-xr-x 1 knoppix knoppix 1960 Feb 8 11:55 shutdown.sh -rwxr-xr-x 1 knoppix knoppix 1961 Feb 8 11:55 startup.sh -rwxr-xr-x 1 knoppix knoppix 5086 Feb 8 11:55 tool-wrapper.sh -rwxr-xr-x 1 knoppix knoppix 1965 Feb 8 11:55 version.sh $ ./catalina.sh start Using CATALINA_BASE: /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/output/build Using CATALINA_HOME: /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/output/build Using CATALINA_TMPDIR: /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/output/build/temp Using JRE_HOME:/media/sdb1/inst/sw/jdk/x86/jdk1.7.0_11 Using CLASSPATH: /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/output/build/bin/bootstrap.jar:/media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/output/build/bin/tomcat-juli.jar $ cat /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/output/build/logs/catalina.out Feb 08, 2013 4:03:54 PM org.apache.catalina.core.AprLifecycleListener init INFO
Re: BUILD FAILED: Cause: the class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found ...
2013/2/8 Albretch Mueller : > after (apparently) compiling tc just fine: > > > $ java -version > java version "1.6.0_39" > > $ ant -version > Apache Ant(TM) version 1.8.4 compiled on October 13 2012 > > $ ant -logfile ant_apache-tomcat-7.0.35-src_201308075437.log 2>&1 > Buildfile: > /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/build.xml > $ tail -n 3 ant_apache-tomcat-7.0.35-src_20130208075437.log 2>&1 > > BUILD SUCCESSFUL > Total time: 28 seconds > > $ ls -l /media/sdb1/inst/sw/tc/7.0.35 > total 24 > drwxr-xr-x 3 knoppix knoppix 4096 Feb 8 11:54 commons-daemon-1.0.10 > drwxr-xr-x 5 knoppix knoppix 4096 Feb 8 11:54 commons-dbcp-1.4-src > drwxr-xr-x 3 knoppix knoppix 4096 Feb 8 11:54 commons-pool-1.5.7-src > drwxr-xr-x 2 knoppix knoppix 4096 Feb 8 11:54 ecj-4.2.1 > drwxr-xr-x 3 knoppix knoppix 4096 Feb 8 11:54 tomcat7-deps > drwxr-xr-x 2 knoppix knoppix 4096 Feb 8 11:54 tomcat-native-1.1.24 > > > I am having problems while trying to run the ant tests: > > > $ date; _DT=$(date +%Y%m%d%H%M%S); ant -lib > /media/sdb1/inst/sw/apache-ant-1.8.4/lib/junit.jar 1. The actual file name in your listing below is not junit.jar. Though as those jars are in ANT_HOME/lib folder, there should be no need to use the "-lib" option. > test -logfile > ant_test_apache-tomcat-7.0.35-src_${_DT}.log 2>&1; date > Fri Feb 8 12:29:26 UTC 2013 > Buildfile: > /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/build.xml > Fri Feb 8 12:29:30 UTC 2013 > $ tail -n 18 ant_test_apache-tomcat-7.0.35-src_${_DT}.log > > BUILD FAILED > /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/build.xml:1168: > The following error occurred while executing this line: > /media/sdb1/prjx/tomcat/srcs/7.0.35/apache-tomcat-7.0.35-src/build.xml:1201: > Problem: failed to create task or type junit > Cause: the class > org.apache.tools.ant.taskdefs.optional.junit.JUnitTask was not found. > This looks like one of Ant's optional components. > Action: Check that the appropriate optional JAR exists in > -/media/sdb1/inst/sw/apache-ant-1.8.4/lib > -/home/knoppix/.ant/lib > -a directory added on the command line with the -lib argument > > Do not panic, this is a common problem. > The commonest cause is a missing JAR. > > This is not a bug; it is a configuration problem > > > Total time: 3 seconds > $ ls -l $ANT_HOME/lib | grep junit > -rw-r--r-- 1 knoppix knoppix6257 Oct 8 20:11 ant-junit4.jar > -rw-r--r-- 1 knoppix knoppix 18549 Oct 8 20:11 ant-junit.jar > -rw-r--r-- 1 knoppix knoppix 253160 Feb 8 12:24 junit-4.10.jar > > 2. Ant documentation is at http://ant.apache.org/manual/ Maybe try to download a fresh copy of Ant and compare it with your installation? 3. I do not have junit.jar in my ANT_HOME/lib, but I can successfully build & run the tests for Tomcat. Tomcat build script downloads and uses junit 4.8.2. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: BUILD FAILED apache-tomcat-7.0.22-src build.xml (lines 2211, 2313) ...
Caldarale, Charles R unisys.com> writes: > > Subject: BUILD FAILED apache-tomcat-7.0.22-src build.xml (lines 2211, 2313) > > I am getting build errors I don't quite understand. > > As I recall, > due to Sun/Oracle-created incompatibilities in various interface > classes, you can't build Tomcat with JDK 7; you'll need to use JDK 6. > You can happily run such a Tomcat on JDK 7 once it's built. > Worked for me :) compiled latest tomcat with JDK6 instead of JDK7. (tomcat 7.0.29) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: BUILD FAILED apache-tomcat-7.0.22-src build.xml (lines 2211, 2313) ...
well I got the same error. I think I will have follow Chucks advice when I have a little more time. I will let you know how it all went then thing is that while using the 1.6 version that comes with knoppix I was getting other kinds of errors relation to ant, so I will have to install 1.6 from sun locally first lbrtchx # ant clean clean-depend Buildfile: /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22-src/build.xml clean: [delete] Deleting directory /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22-src/output [delete] Deleting: /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22-src/java/org/apache/catalina/startup/catalina.properties clean: [mkdir] Created dir: /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22-src/modules/jdbc-pool/output [delete] Deleting: /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22-src/webapps/docs/jdbc-pool.xml clean-depend: [delete] Deleting directory /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp BUILD SUCCESSFUL Total time: 0 seconds # ant download-compile ... BUILD FAILED /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22-src/build.xml:2211: The following error occurred while executing this line: /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22-src/build.xml:2313: Compile failed; see the compiler error output for details. Total time: 4 seconds # - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: BUILD FAILED apache-tomcat-7.0.22-src build.xml (lines 2211, 2313) ...
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Albrecht, On 10/25/2011 5:44 PM, Albretch Mueller wrote: > # ant -v -f build.xml > REF_20111025172851_servlets_build.txt > 2>&1 > > [javac] > /media/sda7/inst/java/jars/j2ee/servlets/apache-tomcat-7.0.22/tomcat7-deps/dbcp/src/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java:53: > > error: BasicDataSource is not abstract and does not override abstract > method getParentLogger() in CommonDataSource [javac] public class > BasicDataSource implements DataSource { [javac]^ I suspect your dependencies are not up-to-date. Try doing a clean build: $ ant clean clean-depend Then run the "download" target: $ ant download-compile Then run the build: $ ant [deploy] (Note that "deploy" is the default target). Hope the helps, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6naXYACgkQ9CaO5/Lv0PAUUACfa7LPAD8bJI+WFQe5rc7gw2Cd PxgAn0gEUdIQxkxi0pr20p+0C6d65/Uo =iLEM -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: BUILD FAILED apache-tomcat-7.0.22-src build.xml (lines 2211, 2313) ...
> From: Albretch Mueller [mailto:lbrt...@gmail.com] > Subject: BUILD FAILED apache-tomcat-7.0.22-src build.xml (lines 2211, 2313) > ... > I am getting build errors I don't quite understand. As I recall, due to Sun/Oracle-created incompatibilities in various interface classes, you can't build Tomcat with JDK 7; you'll need to use JDK 6. You can happily run such a Tomcat on JDK 7 once it's built. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: BUILD FAILED ...
~ I think it is working, but it is way too slow. ~ 64.66.192.62 is the address of the proxy I am using ~ 64.66.192.62 - - [28/Nov/2008:04:37:30 -0500] "GET / HTTP/1.1" 200 7857 64.66.192.62 - - [28/Nov/2008:04:37:30 -0500] "GET /tomcat-power.gif HTTP/1.1" 200 2324 64.66.192.62 - - [28/Nov/2008:04:42:36 -0500] "GET /examples/servlets/ HTTP/1.1" 200 5222 64.66.192.62 - - [28/Nov/2008:04:42:36 -0500] "GET /examples/servlets/images/execute.gif HTTP/1.1" 200 1242 64.66.192.62 - - [28/Nov/2008:04:42:36 -0500] "GET /examples/servlets/images/code.gif HTTP/1.1" 200 292 64.66.192.62 - - [28/Nov/2008:04:42:41 -0500] "GET /examples/servlets/images/return.gif HTTP/1.1" 200 1231 64.66.192.62 - - [28/Nov/2008:04:42:55 -0500] "GET /examples/servlets/servlet/RequestHeaderExample HTTP/1.1" 200 1616 ~ lbrtchx - 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: BUILD FAILED ...
> From: Albretch Mueller [mailto:[EMAIL PROTECTED] > Subject: Re: BUILD FAILED ... > > I did, but I still think I am having some networking problems Highly likely. Can you ping the Tomcat system from your client machine? Try running Wireshark or equivalent on the Tomcat system and see if anything is making it to your TCP/IP stack from the outside. If not, you've got a firewall or some other misconfiguration blocking the traffic. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and 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]
Re: BUILD FAILED ...
> Change the name back to "localhost" ~ I did, but I still think I am having some networking problems ~ I am running wireshark (the network sniffer) to see that there are only requests from my box going out though the transparent proxy (208.62.125.146) but nothing is coming back ~ No. TimeSourceDestination Protocol Info 3 0.000111192.168.1.249 208.62.125.146TCP 54350 > www [SYN] Seq=0 Len=0 MSS=1460 TSV=8506996 TSER=0 WS=5 4 2.991454192.168.1.249 208.62.125.146TCP 54350 > www [SYN] Seq=0 Len=0 MSS=1460 TSV=8507746 TSER=0 WS=5 5 8.991084192.168.1.249 208.62.125.146TCP 54350 > www [SYN] Seq=0 Len=0 MSS=1460 TSV=8509246 TSER=0 WS=5 6 20.990330 192.168.1.249 208.62.125.146TCP 54350 > www [SYN] Seq=0 Len=0 MSS=1460 TSV=8512246 TSER=0 WS=5 7 44.988836 192.168.1.249 208.62.125.146TCP 54350 > www [SYN] Seq=0 Len=0 MSS=1460 TSV=8518246 TSER=0 WS=5 10 92.985842 192.168.1.249 208.62.125.146TCP 54350 > www [SYN] Seq=0 Len=0 MSS=1460 TSV=8530246 TSER=0 WS=5 ~ lbrtchx On 11/27/08, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> From: Albretch Mueller [mailto:[EMAIL PROTECTED] >> Subject: Re: BUILD FAILED ... >> >> >> > autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> > > Change the name back to "localhost"; this is not an IP address, and > you must have one element that matches the defaultHost from the > . The only time you need to change the name attribute is if > you are supporting multiple s each with their own appBase. You don't > have that condition. > > If you do want to configure a specific IP address (you don't have to), that > goes into the element(s). Normally, Tomcat listens on all IP > addresses configured on the box, so you only configure a specific one if you > want Tomcat to not listen on certain ones. Again, you're not in that > situation. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and 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: BUILD FAILED ...
> From: Albretch Mueller [mailto:[EMAIL PROTECTED] > Subject: Re: BUILD FAILED ... > > > autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> Change the name back to "localhost"; this is not an IP address, and you must have one element that matches the defaultHost from the . The only time you need to change the name attribute is if you are supporting multiple s each with their own appBase. You don't have that condition. If you do want to configure a specific IP address (you don't have to), that goes into the element(s). Normally, Tomcat listens on all IP addresses configured on the box, so you only configure a specific one if you want Tomcat to not listen on certain ones. Again, you're not in that situation. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and 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]
Re: BUILD FAILED ...
Thanks anyway Chuck you are this list's angel ~ I did set up 80 as the port and the internal address of my box in the conf/server.xml file ~ this is what my conf/server.xml file looks like: ~ On 11/27/08, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> From: Albretch Mueller [mailto:[EMAIL PROTECTED] >> Subject: Re: BUILD FAILED ... >> >> So I need to be able to access the >> webserver by going http:/// > > Have you configured Tomcat to use port 80? (The default HTTP port is 8080.) > If you want to use port 80, you'll have to run Tomcat as root (not > recommended), or use iptables to forward port 80 requests to 8080, or use > jsvc: > http://tomcat.apache.org/tomcat-6.0-doc/setup.html#Unix%20daemon > > Make sure you don't have a firewall somewhere blocking whatever port you do > have configured. > >> I think, I am not getting right the setting of >> "/etc/network/interfaces" and "/etc/resolv.conf" > > I'm not a Linux network configuration expert, so someone else will have to > answer that. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and 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: BUILD FAILED ...
> From: Albretch Mueller [mailto:[EMAIL PROTECTED] > Subject: Re: BUILD FAILED ... > > So I need to be able to access the > webserver by going http:/// Have you configured Tomcat to use port 80? (The default HTTP port is 8080.) If you want to use port 80, you'll have to run Tomcat as root (not recommended), or use iptables to forward port 80 requests to 8080, or use jsvc: http://tomcat.apache.org/tomcat-6.0-doc/setup.html#Unix%20daemon Make sure you don't have a firewall somewhere blocking whatever port you do have configured. > I think, I am not getting right the setting of > "/etc/network/interfaces" and "/etc/resolv.conf" I'm not a Linux network configuration expert, so someone else will have to answer that. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and 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]
Re: BUILD FAILED ...
~ Thanks so much Chuck ~ I am still having little problems (which I think don't exactly related to java/tomcat) ~ Everything seems to be working fine locally (I haven't still set up logging), but I can't see the server from out there. And as I said I am using my raw IP address for now. So I need to be able to access the webserver by going http:/// ~ I think, I am not getting right the setting of "/etc/network/interfaces" and "/etc/resolv.conf" ~ is there any tutorial out there that explains it steo by step? ~ Thanks lbrtchx ~ Here si the configuration I have right now ~ sh-3.1# cat /etc/network/interfaces # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface # automatically added when upgrading auto lo iface lo inet loopback allow-hotplug eth0 iface eth0 inet dhcp pre-up ifconfig eth0 up sh-3.1# cat /etc/resolv.conf nameserver 66.114.74.40 nameserver 66.114.74.195 sh-3.1# ~ On 11/27/08, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> From: Albretch Mueller [mailto:[EMAIL PROTECTED] >> Subject: Re: BUILD FAILED ... > >> and by the way I noticed tc doesn't seem to be using the /common >> directory anymore > > Correct; the default directory structure has been greatly simplified: > http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and 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: BUILD FAILED ...
> From: Albretch Mueller [mailto:[EMAIL PROTECTED] > Subject: Re: BUILD FAILED ... > and by the way I noticed tc doesn't seem to be using the /common > directory anymore Correct; the default directory structure has been greatly simplified: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and 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]
Re: BUILD FAILED ...
yeah! I had to take the result of the build from ~ /media/hda3/tc/tc-6.0.18/output/build ~ and by the way I noticed tc doesn't seem to be using the /common directory anymore ~ Thank you again lbrtchx - 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: BUILD FAILED ...
> From: Caldarale, Charles R > Subject: RE: BUILD FAILED ... > > > From: Albretch Mueller [mailto:[EMAIL PROTECTED] > > Subject: Re: BUILD FAILED ... > > > > sh-3.1# pwd > > /media/hda3/tc/tc-6.0.18/bin > It's been a while since I've done a Tomcat build O.k., I just downloaded a 1.5 JDK and did a Tomcat build, albeit on a Vista 64 box. Looks like you're trying to run Tomcat from the source files rather than the build output directory. Your current directory really should be: /media/hda3/tc/tc-6.0.18/output/build/bin when you try to run the generated Tomcat. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and 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]
RE: BUILD FAILED ...
> From: Albretch Mueller [mailto:[EMAIL PROTECTED] > Subject: Re: BUILD FAILED ... > > sh-3.1# pwd > /media/hda3/tc/tc-6.0.18/bin Seems to be missing the requisite jars: bootstrap.jar commons-daemon.jar tomcat-juli.jar Looks like your build either did not create them, or did not place them properly. > Also I noticed even if the build apparently worked fine, I am missing > directories such as ${tomcat.home}/lib and ${tomcat.home}/common Another indication that the build did not actually complete properly. It's been a while since I've done a Tomcat build (since there's almost never any reason to do so), so I can't tell you much more. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and 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]
Re: BUILD FAILED ...
>> Exception in thread "main" java.lang.NoClassDefFoundError: >> org/apache/catalina/startup/Bootstrap > What's in the /media/hda3/tc/tc-6.0.18/bin directory? ~ sh-3.1# pwd /media/hda3/tc/tc-6.0.18/bin ~ sh-3.1# ls -l total 100 -rw-r--r-- 1 root root 1201 Jul 21 20:01 Tomcat6.launch -rw-r--r-- 1 root root 2374 Jul 21 20:01 catalina-tasks.xml -rw-r--r-- 1 root root 9670 Jul 21 20:01 catalina.bat -rwxr-xr-x 1 root root 12907 Jul 21 20:01 catalina.sh -rw-r--r-- 1 root root 1307 Jul 21 20:01 cpappend.bat -rw-r--r-- 1 root root 2048 Jul 21 20:01 digest.bat -rwxr-xr-x 1 root root 1624 Jul 21 20:01 digest.sh -rw-r--r-- 1 root root 4820 Jul 21 20:01 service.bat -rw-r--r-- 1 root root 3220 Jul 21 20:01 setclasspath.bat -rwxr-xr-x 1 root root 4447 Jul 21 20:01 setclasspath.sh -rw-r--r-- 1 root root 2037 Jul 21 20:01 shutdown.bat -rwxr-xr-x 1 root root 1563 Jul 21 20:01 shutdown.sh -rw-r--r-- 1 root root 2038 Jul 21 20:01 startup.bat -rwxr-xr-x 1 root root 1956 Jul 21 20:01 startup.sh -rw-r--r-- 1 root root 3110 Jul 21 20:01 tool-wrapper.bat -rwxr-xr-x 1 root root 3291 Jul 21 20:01 tool-wrapper.sh -rw-r--r-- 1 root root 2042 Jul 21 20:01 version.bat -rwxr-xr-x 1 root root 1567 Jul 21 20:01 version.sh ~ > Do you have the CLASSPATH variable set? It must not be when running Tomcat. ~ No actually I don't ~ sh-3.1# echo $CLASSPATH sh-3.1# ~ I think (and you certainly know) it is set by tomcat as it starts up ~ Also I noticed even if the build apparently worked fine, I am missing directories such as ${tomcat.home}/lib and ${tomcat.home}/common ~ sh-3.1# ls -lS total 228 -rw-r--r-- 1 root root 37951 Jul 21 20:01 LICENSE -rw-r--r-- 1 root root 30608 Jul 21 20:01 dist.xml -rw-r--r-- 1 root root 30284 Jul 21 20:01 build.xml -rw-r--r-- 1 root root 17826 Jul 21 20:01 KEYS -rw-r--r-- 1 root root 11384 Jul 21 20:01 extras.xml -rw-r--r-- 1 root root 7320 Jul 21 20:01 RELEASE-NOTES -rw-r--r-- 1 root root 6587 Jul 21 20:01 RUNNING.txt -rw-r--r-- 1 root root 4757 Nov 26 18:17 build.properties -rw-r--r-- 1 root root 4730 Jul 21 20:01 BUILDING.txt -rw-r--r-- 1 root root 4698 Jul 21 20:01 build.properties.default drwxr-xr-x 2 root root 4096 Nov 26 18:08 bin drwxr-xr-x 2 root root 4096 Nov 26 18:57 conf drwxr-xr-x 4 root root 4096 Jul 21 20:01 java drwxr-xr-x 2 root root 4096 Nov 26 18:30 logs drwxr-xr-x 3 root root 4096 Jul 21 20:01 native drwxr-xr-x 4 root root 4096 Nov 26 18:22 output drwxr-xr-x 6 root root 4096 Nov 26 18:08 res drwxr-xr-x 10 root root 4096 Nov 26 18:22 share drwxr-xr-x 3 root root 4096 Nov 26 18:08 test drwxr-xr-x 7 root root 4096 Jul 21 20:01 webapps -rw-r--r-- 1 root root 2548 Jul 21 20:01 STATUS.txt -rw-r--r-- 1 root root 2392 Jul 21 20:01 RELEASE-PLAN-6.0.txt -rw-r--r-- 1 root root 556 Jul 21 20:01 NOTICE ~ lbrtchx - 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: BUILD FAILED ...
> From: Albretch Mueller [mailto:[EMAIL PROTECTED] > Subject: Re: BUILD FAILED ... > However, tc doc states: "version 1.5.x or later" and > to me "later" meant 1.6.0_07 should be fine Yes, it would have worked under 1.6 except for Sun changing the JDBC spec in an incompatible fashion. The problem wasn't discovered until well after Tomcat 6 went out. There are changes in the trunk to replace the DB connection pooling mechanism with one that isn't impacted by the 1.6 change. > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/catalina/startup/Bootstrap What's in the /media/hda3/tc/tc-6.0.18/bin directory? Do you have the CLASSPATH variable set? It must not be when running Tomcat. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and 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]
Re: BUILD FAILED ...
On Wed, Nov 26, 2008 at 4:08 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> sh-3.1# java -version >> java version "1.6.0_07" > > Tomcat must be built with a 1.5 JDK at the moment, due to incompatibilities > introduced by Sun in 1.6. ~ However, tc doc states: "version 1.5.x or later" and to me "later" meant 1.6.0_07 should be fine ~ > Looks like you skipped the "ant download" part. ~ I think the jdk version issue would have made it fail anyway ~ > > For curiosity's sake, why are you bothering to build Tomcat? ~ I like to keep the source baseline of anything I use for production (well, anything anyway) ~ After doing the changes you suggested I got a "NoClassDefFoundError", when I tried to run it: ~ sh-3.1# sh ./catalina.sh run Using CATALINA_BASE: /media/hda3/tc/tc-6.0.18 Using CATALINA_HOME: /media/hda3/tc/tc-6.0.18 Using CATALINA_TMPDIR: /media/hda3/tc/tc-6.0.18/temp Using JRE_HOME: /media/hda3/jdk1.5.0_16 Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap ~ Thanks Chuck lbrtchx - 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: BUILD FAILED ...
> From: Albretch Mueller [mailto:[EMAIL PROTECTED] > Subject: BUILD FAILED ... > > sh-3.1# java -version > java version "1.6.0_07" Tomcat must be built with a 1.5 JDK at the moment, due to incompatibilities introduced by Sun in 1.6. > I cannot believe you must have eclipse installed if you > want to run java. What is going on here? Mostly you're not following the instructions here: http://tomcat.apache.org/tomcat-6.0-doc/building.html#Building%20Tomcat Looks like you skipped the "ant download" part. For curiosity's sake, why are you bothering to build Tomcat? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and 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]
Re: BUILD FAILED ...
Albretch Mueller wrote: > about some eclipse classes. I cannot believe you must have eclipse > installed if you want to run java. What is going on here? You need to download the dependencies (which includes the Eclipse JDT compiler) before you try a build. http://tomcat.apache.org/tomcat-6.0-doc/building.html Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]