You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Albretch Mueller <lb...@gmail.com> on 2008/11/26 21:58:21 UTC
BUILD FAILED ...
Hi,
~
I installed java and ant in my box:
~
sh-3.1# which java
/media/hda3/jdk1.6.0_07/bin/java
~
sh-3.1# java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
~
sh-3.1# echo $JAVA_HOME
/media/hda3/jdk1.6.0_07
~
sh-3.1# which ant
/media/hda3/inst/sw/java/JARs/ant-1.7.1/bin/ant
sh-3.1# ant -version
Apache Ant version 1.7.1 compiled on June 27 2008
~
then I downloaded tomcat sources
~
sh-3.1# wget http://mirror.candidhosting.com/pub/apache/tomcat/tomcat-6/v6.0.18/src/apache-tomcat-6.0.18-src.tar.gz
--12:58:10-- http://mirror.candidhosting.com/pub/apache/tomcat/tomcat-6/v6.0.18/src/apache-tomcat-6.0.18-src.tar.gz
=> `apache-tomcat-6.0.18-src.tar.gz'
Resolving mirror.candidhosting.com... 66.230.217.253
Connecting to mirror.candidhosting.com|66.230.217.253|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3,484,249 (3.3M) [application/x-gzip]
100%[===================================================================>]
3,484,249 131.14K/s ETA 00:00
12:58:36 (137.48 KB/s) - `apache-tomcat-6.0.18-src.tar.gz' saved
[3484249/3484249]
~
sh-3.1# ls -l apache*
-rw-r--r-- 1 root root 3484249 Jul 30 05:51 apache-tomcat-6.0.18-src.tar.gz
-rw-r--r-- 1 root root 197 Aug 11 08:25 apache-tomcat-6.0.18-src.tar.gz.asc
-rw-r--r-- 1 root root 67 Jul 30 05:51 apache-tomcat-6.0.18-src.tar.gz.md5
~
sh-3.1# md5sum apache-tomcat-6.0.18-src.tar.gz
9bdbb1c1d79302c80057a70b18fe6721 apache-tomcat-6.0.18-src.tar.gz
~
sh-3.1# cat apache-tomcat-6.0.18-src.tar.gz.md5
9bdbb1c1d79302c80057a70b18fe6721
*apache-tomcat-6.0.18-src.tar.gz
~
sh-3.1# gpg --import KEYS
gpg: directory `/home/root/.gnupg' created
gpg: can't open `/gnupg/options.skel': No such file or directory
gpg: keyring `/home/root/.gnupg/secring.gpg' created
gpg: keyring `/home/root/.gnupg/pubring.gpg' created
gpg: /home/root/.gnupg/trustdb.gpg: trustdb created
gpg: key F22C4FED: public key "Andy Armstrong <an...@tagish.com>" imported
gpg: key 86867BA6: public key "Jean-Frederic Clere (jfclere)
<JF...@fujitsu-siemens.com>" imported
gpg: key E86E29AC: public key "kevin seguin <se...@apache.org>" imported
gpg: key 307A10A5: public key "Henri Gomez
<hg...@users.sourceforge.net>" imported
gpg: key 564C17A3: public key "Mladen Turk (*** DEFAULT SIGNING KEY
***) <mt...@apache.org>" imported
gpg: key 7C037D42: public key "Yoav Shapira <yo...@apache.org>" imported
gpg: key 33C60243: public key "Mark E D Thomas <ma...@apache.org>" imported
gpg: key 288584E7: public key "Rémy Maucherat <re...@apache.org>" imported
gpg: key 0D811BBE: public key "Yoav Shapira <yo...@computer.org>" imported
gpg: Total number processed: 9
gpg: imported: 9
gpg: no ultimately trusted keys found
~
sh-3.1# gpg --verify apache-tomcat-6.0.18-src.tar.gz.asc
gpg: Signature made Mon Aug 11 08:21:37 2008 EDT using DSA key ID 288584E7
gpg: Good signature from "Rémy Maucherat <re...@apache.org>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 541F BE7D 8F78 B25E 055D DEE1 3C37 0389 2885 84E7
~
and tried to compile them, but the build failed and it is complaining
about some eclipse classes. I cannot believe you must have eclipse
installed if you want to run java. What is going on here?
~
sh-3.1# ls -l b*.xml
-rw-r--r-- 1 root root 30284 Jul 21 20:01 build.xml
sh-3.1# ant
Buildfile: build.xml
build-prepare:
[mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/classes
[mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/build
[mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/build/bin
[mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/build/conf
[mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/build/lib
[mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/build/temp
[mkdir] Created dir: /media/hda3/tc/tc-6.0.18/output/build/webapps
compile:
[javac] Compiling 1047 source files to
/media/hda3/tc/tc-6.0.18/output/classes
[javac] /media/hda3/tc/tc-6.0.18/java/org/apache/jasper/compiler/JDTCompiler.java:38:
package org.eclipse.jdt.core.compiler does not exist
[javac] import org.eclipse.jdt.core.compiler.IProblem;
[javac] ^
[javac] /media/hda3/tc/tc-6.0.18/java/org/apache/jasper/compiler/JDTCompiler.java:39:
package org.eclipse.jdt.internal.compiler does not exist
[javac] import org.eclipse.jdt.internal.compiler.ClassFile;
[javac] ^
[javac] /media/hda3/tc/tc-6.0.18/java/org/apache/jasper/compiler/JDTCompiler.java:40:
package org.eclipse.jdt.internal.compiler does not exist
[javac] import org.eclipse.jdt.internal.compiler.CompilationResult;
[javac] ^
[javac] /media/hda3/tc/tc-6.0.18/java/org/apache/jasper/compiler/JDTCompiler.java:41:
package org.eclipse.jdt.internal.compiler does not exist
[javac] import org.eclipse.jdt.internal.compiler.Compiler;
[javac] ^
[javac] /media/hda3/tc/tc-6.0.18/java/org/apache/jasper/compiler/JDTCompiler.java:42:
package org.eclipse.jdt.internal.compiler does not exist
[javac] import
org.eclipse.jdt.internal.compiler.DefaultErrorHandlingPolicies;
[javac] ^
[javac] /media/hda3/tc/tc-6.0.18/java/org/apache/jasper/compiler/JDTCompiler.java:43:
package org.eclipse.jdt.internal.compiler does not exist
[javac] import org.eclipse.jdt.internal.compiler.ICompilerRequestor;
...
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 67 errors
[javac] 2 warnings
BUILD FAILED
/media/hda3/tc/tc-6.0.18/build.xml:109: Compile failed; see the
compiler error output for details.
Total time: 16 secondsa
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: BUILD FAILED ...
Posted by Mark Thomas <ma...@apache.org>.
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: BUILD FAILED ...
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Albretch Mueller [mailto:lbrtchx@gmail.com]
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: BUILD FAILED ...
Posted by Albretch Mueller <lb...@gmail.com>.
~
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: BUILD FAILED ...
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Albretch Mueller [mailto:lbrtchx@gmail.com]
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: BUILD FAILED ...
Posted by Albretch Mueller <lb...@gmail.com>.
> Change the <Host> 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. Time Source Destination Protocol Info
3 0.000111 192.168.1.249 208.62.125.146 TCP
54350 > www [SYN] Seq=0 Len=0 MSS=1460 TSV=8506996 TSER=0 WS=5
4 2.991454 192.168.1.249 208.62.125.146 TCP
54350 > www [SYN] Seq=0 Len=0 MSS=1460 TSV=8507746 TSER=0 WS=5
5 8.991084 192.168.1.249 208.62.125.146 TCP
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.146 TCP
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.146 TCP
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.146 TCP
54350 > www [SYN] Seq=0 Len=0 MSS=1460 TSV=8530246 TSER=0 WS=5
~
lbrtchx
On 11/27/08, Caldarale, Charles R <Ch...@unisys.com> wrote:
>> From: Albretch Mueller [mailto:lbrtchx@gmail.com]
>> Subject: Re: BUILD FAILED ...
>>
>> <Engine name="Catalina" defaultHost="localhost">
>> <Host name="192.168.1.249" appBase="webapps" unpackWARs="true"
>> autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
>
> Change the <Host> name back to "localhost"; this is not an IP address, and
> you must have one <Host> element that matches the defaultHost from the
> <Engine>. The only time you need to change the <Host> name attribute is if
> you are supporting multiple <Host>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 <Connector> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: BUILD FAILED ...
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Albretch Mueller [mailto:lbrtchx@gmail.com]
> Subject: Re: BUILD FAILED ...
>
> <Engine name="Catalina" defaultHost="localhost">
> <Host name="192.168.1.249" appBase="webapps" unpackWARs="true"
> autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
Change the <Host> name back to "localhost"; this is not an IP address, and you must have one <Host> element that matches the defaultHost from the <Engine>. The only time you need to change the <Host> name attribute is if you are supporting multiple <Host>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 <Connector> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: BUILD FAILED ...
Posted by Albretch Mueller <lb...@gmail.com>.
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:
~
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" />
<Listener className="org.apache.catalina.core.JasperListener" />
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
/>
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Host name="192.168.1.249" appBase="webapps" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
</Host>
</Engine>
</Service>
</Server>
On 11/27/08, Caldarale, Charles R <Ch...@unisys.com> wrote:
>> From: Albretch Mueller [mailto:lbrtchx@gmail.com]
>> Subject: Re: BUILD FAILED ...
>>
>> So I need to be able to access the
>> webserver by going http://<IP_address>/
>
> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: BUILD FAILED ...
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Albretch Mueller [mailto:lbrtchx@gmail.com]
> Subject: Re: BUILD FAILED ...
>
> So I need to be able to access the
> webserver by going http://<IP_address>/
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: BUILD FAILED ...
Posted by Albretch Mueller <lb...@gmail.com>.
~
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://<IP_address>/
~
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 <Ch...@unisys.com> wrote:
>> From: Albretch Mueller [mailto:lbrtchx@gmail.com]
>> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: BUILD FAILED ...
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Albretch Mueller [mailto:lbrtchx@gmail.com]
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: BUILD FAILED ...
Posted by Albretch Mueller <lb...@gmail.com>.
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: BUILD FAILED ...
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Caldarale, Charles R
> Subject: RE: BUILD FAILED ...
>
> > From: Albretch Mueller [mailto:lbrtchx@gmail.com]
> > 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: BUILD FAILED ...
Posted by Albretch Mueller <lb...@gmail.com>.
>> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: BUILD FAILED ...
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Albretch Mueller [mailto:lbrtchx@gmail.com]
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: BUILD FAILED ...
Posted by Albretch Mueller <lb...@gmail.com>.
On Wed, Nov 26, 2008 at 4:08 PM, Caldarale, Charles R
<Ch...@unisys.com> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: BUILD FAILED ...
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Albretch Mueller [mailto:lbrtchx@gmail.com]
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org