Re: Where is my Tomcat

2006-07-26 Thread OOzy Pal

On 7/26/06, Martin Gainty <[EMAIL PROTECTED]> wrote:

Now that I see the exceptions from your log I can see you have some old and or 
corrupted version sitting in the Tomcat work folder so I would..

stop Tomcat


delete ALL of the stuff from the Tomcat work folder
  %TOMCAT_HOME%/work/*.*
make sure the folder is clean
start Tomcat


Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: "OOzy Pal" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, July 26, 2006 9:57 AM
Subject: Re: Where is my Tomcat


> On 7/25/06, David Smith <[EMAIL PROTECTED]> wrote:
>>
>>
>> OOzy Pal wrote:
>>
>> > On 7/25/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>> >
>> >> All Tomcat installations come with startup. and
>> >> shutdown. located in $TOMCAT_HOME/bin
>> >> run the startup. first in some sort of console (xterm...) and
>> >> note the errors
>> >> e.g. If it cant find $JAVA_HOME it will output debug messages to
>> >> screem saying so
>> >>
>> >> When and only when your install has been running reliably well for
>> >> some time
>> >> place startup script in init.d
>> >> M-
>> >> *
>> >> This email message and any files transmitted with it contain
>> >> confidential
>> >> information intended only for the person(s) to whom this email
>> >> message is
>> >> addressed.  If you have received this email message in error, please
>> >> notify
>> >> the sender immediately by telephone or email and destroy the original
>> >> message without making a copy.  Thank you.
>> >>
>> >>
>> >>
>> >> - Original Message -
>> >> From: "OOzy Pal" <[EMAIL PROTECTED]>
>> >> To: "Tomcat Users List" 
>> >> Sent: Tuesday, July 25, 2006 9:58 AM
>> >> Subject: Re: Where is my Tomcat
>> >>
>> >>
>> >> > On 7/25/06, Martin Millnert <[EMAIL PROTECTED]> wrote:
>> >> >> On Mon, 2006-07-24 at 23:02 +0200, edward wrote:
>> >> >> > OOzy Pal wrote:
>> >> >> >
>> >> >> > >>
>> >> >> > >>
>> >> >> > >
>> >> >> > > I found the JKD but I am not sure how start tomcat. I am
>> >> really stuck.
>> >> >> > > I am not sure what am I missing? Is there a good tutorial for
>> >> >> > > installing tomcat?
>> >> >> > >
>> >> >> > > Any help is appreciated.
>> >> >> >
>> >> >> 
>> >> >> > Chances are that the Debian tomcat init scripts point to gcj not
>> >> to the
>> >> >> > Sun jdk. It's OK, you can fix that. Try javac -version, it will
>> >> tell you
>> >> >> > about the compiler (which is part of the jdk, not the jre).
>> >> Probably
>> >> >> > you will find that /usr/bin/java and about half a dozen other
>> >> >> > /usr/bin/javax commands including javac and javah are symlinks
>> >> to the
>> >> >> > gcj versions of java somewhere in /usr/lib. So what you need to
>> >> do is to
>> >> >> > change those symlinks to point to the Sun ones, probably in
>> >> >> > /usr/share/lib. Some distros have a command which lets you
>> >> change the
>> >> >> > system's version of java (Gentoo does, I'm not sure about Debian)
>> >> >> > without manually editing all the symlinks.
>> >> >> >
>> >> >> 
>> >> >>
>> >> >> For reference, on a Ubuntu dapper desktop machine, here's how to
>> >> manage
>> >> >> the symlinks:
>> >> >> [EMAIL PROTECTED]:~# which java
>> >> >> /usr/bin/java
>> >> >> [EMAIL PROTECTED]:~# ls -al /usr/bin/java*
>> >> >>

Re: Where is my Tomcat

2006-07-26 Thread Martin Gainty
Now that I see the exceptions from your log I can see you have some old and or 
corrupted version sitting in the Tomcat work folder so I would..

stop Tomcat 


delete ALL of the stuff from the Tomcat work folder
  %TOMCAT_HOME%/work/*.*
make sure the folder is clean
start Tomcat


Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: "OOzy Pal" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Wednesday, July 26, 2006 9:57 AM
Subject: Re: Where is my Tomcat


> On 7/25/06, David Smith <[EMAIL PROTECTED]> wrote:
>>
>>
>> OOzy Pal wrote:
>>
>> > On 7/25/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>> >
>> >> All Tomcat installations come with startup. and
>> >> shutdown. located in $TOMCAT_HOME/bin
>> >> run the startup. first in some sort of console (xterm...) and
>> >> note the errors
>> >> e.g. If it cant find $JAVA_HOME it will output debug messages to
>> >> screem saying so
>> >>
>> >> When and only when your install has been running reliably well for
>> >> some time
>> >> place startup script in init.d
>> >> M-
>> >> *
>> >> This email message and any files transmitted with it contain
>> >> confidential
>> >> information intended only for the person(s) to whom this email
>> >> message is
>> >> addressed.  If you have received this email message in error, please
>> >> notify
>> >> the sender immediately by telephone or email and destroy the original
>> >> message without making a copy.  Thank you.
>> >>
>> >>
>> >>
>> >> - Original Message -
>> >> From: "OOzy Pal" <[EMAIL PROTECTED]>
>> >> To: "Tomcat Users List" 
>> >> Sent: Tuesday, July 25, 2006 9:58 AM
>> >> Subject: Re: Where is my Tomcat
>> >>
>> >>
>> >> > On 7/25/06, Martin Millnert <[EMAIL PROTECTED]> wrote:
>> >> >> On Mon, 2006-07-24 at 23:02 +0200, edward wrote:
>> >> >> > OOzy Pal wrote:
>> >> >> >
>> >> >> > >>
>> >> >> > >>
>> >> >> > >
>> >> >> > > I found the JKD but I am not sure how start tomcat. I am
>> >> really stuck.
>> >> >> > > I am not sure what am I missing? Is there a good tutorial for
>> >> >> > > installing tomcat?
>> >> >> > >
>> >> >> > > Any help is appreciated.
>> >> >> >
>> >> >> 
>> >> >> > Chances are that the Debian tomcat init scripts point to gcj not
>> >> to the
>> >> >> > Sun jdk. It's OK, you can fix that. Try javac -version, it will
>> >> tell you
>> >> >> > about the compiler (which is part of the jdk, not the jre).
>> >> Probably
>> >> >> > you will find that /usr/bin/java and about half a dozen other
>> >> >> > /usr/bin/javax commands including javac and javah are symlinks
>> >> to the
>> >> >> > gcj versions of java somewhere in /usr/lib. So what you need to
>> >> do is to
>> >> >> > change those symlinks to point to the Sun ones, probably in
>> >> >> > /usr/share/lib. Some distros have a command which lets you
>> >> change the
>> >> >> > system's version of java (Gentoo does, I'm not sure about Debian)
>> >> >> > without manually editing all the symlinks.
>> >> >> >
>> >> >> 
>> >> >>
>> >> >> For reference, on a Ubuntu dapper desktop machine, here's how to
>> >> manage
>> >> >> the symlinks:
>> >> >> [EMAIL PROTECTED]:~# which java
>> >> >> /usr/bin/java
>> >> >> [EMAIL PROTECTED]:~# ls -al /usr/bin/java*
>> >> >> lrwxrwxrwx 1 root root 22 2006-02-02 15:29 /usr/bin/java
>

Re: Where is my Tomcat

2006-07-26 Thread OOzy Pal

On 7/25/06, David Smith <[EMAIL PROTECTED]> wrote:



OOzy Pal wrote:

> On 7/25/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
>> All Tomcat installations come with startup. and
>> shutdown. located in $TOMCAT_HOME/bin
>> run the startup. first in some sort of console (xterm...) and
>> note the errors
>> e.g. If it cant find $JAVA_HOME it will output debug messages to
>> screem saying so
>>
>> When and only when your install has been running reliably well for
>> some time
>> place startup script in init.d
>> M-
>> *
>> This email message and any files transmitted with it contain
>> confidential
>> information intended only for the person(s) to whom this email
>> message is
>> addressed.  If you have received this email message in error, please
>> notify
>> the sender immediately by telephone or email and destroy the original
>> message without making a copy.  Thank you.
>>
>>
>>
>> ----- Original Message -
>> From: "OOzy Pal" <[EMAIL PROTECTED]>
>> To: "Tomcat Users List" 
>> Sent: Tuesday, July 25, 2006 9:58 AM
>> Subject: Re: Where is my Tomcat
>>
>>
>> > On 7/25/06, Martin Millnert <[EMAIL PROTECTED]> wrote:
>> >> On Mon, 2006-07-24 at 23:02 +0200, edward wrote:
>> >> > OOzy Pal wrote:
>> >> >
>> >> > >>
>> >> > >>
>> >> > >
>> >> > > I found the JKD but I am not sure how start tomcat. I am
>> really stuck.
>> >> > > I am not sure what am I missing? Is there a good tutorial for
>> >> > > installing tomcat?
>> >> > >
>> >> > > Any help is appreciated.
>> >> >
>> >> 
>> >> > Chances are that the Debian tomcat init scripts point to gcj not
>> to the
>> >> > Sun jdk. It's OK, you can fix that. Try javac -version, it will
>> tell you
>> >> > about the compiler (which is part of the jdk, not the jre).
>> Probably
>> >> > you will find that /usr/bin/java and about half a dozen other
>> >> > /usr/bin/javax commands including javac and javah are symlinks
>> to the
>> >> > gcj versions of java somewhere in /usr/lib. So what you need to
>> do is to
>> >> > change those symlinks to point to the Sun ones, probably in
>> >> > /usr/share/lib. Some distros have a command which lets you
>> change the
>> >> > system's version of java (Gentoo does, I'm not sure about Debian)
>> >> > without manually editing all the symlinks.
>> >> >
>> >> 
>> >>
>> >> For reference, on a Ubuntu dapper desktop machine, here's how to
>> manage
>> >> the symlinks:
>> >> [EMAIL PROTECTED]:~# which java
>> >> /usr/bin/java
>> >> [EMAIL PROTECTED]:~# ls -al /usr/bin/java*
>> >> lrwxrwxrwx 1 root root 22 2006-02-02 15:29 /usr/bin/java
>> >> -> /etc/alternatives/java
>> >> lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javac
>> >> -> /etc/alternatives/javac
>> >> lrwxrwxrwx 1 root root 25 2006-03-02 14:25 /usr/bin/javadoc
>> >> -> /etc/alternatives/javadoc
>> >> lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javah
>> >> -> /etc/alternatives/javah
>> >> lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javap
>> >> -> /etc/alternatives/javap
>> >> lrwxrwxrwx 1 root root 24 2006-03-02 14:26 /usr/bin/javaws
>> >> -> /etc/alternatives/javaws
>> >>
>> >> These commands does not have to be run as root, Ubuntu favours not
>> using
>> >> the root account but sudo instead -- which is how OOzy was working.
>> >> The above shows and proves that the Ubuntu-style method is in fact in
>> >> use, and unorthodox methods has not been introduced to the
>> packages. ;)
>> >> There are clear advantages of managing the JDKs as real packages, and
>> >> there is plenty of reference on this online:
>> >>
>> http://www.google.se/search?hl=sv&q=the+correct+way+to+install+sun+java
>> >> +jdk+on+ubuntu&btnG=S%C3%B6k&meta=
>> >>
>> >> Ubuntu (as well as Debian) ships with the update-alternatives
>> program,
>> >> which manages the symlinks and it is necessary to redirect these
>> i

Re: Where is my Tomcat

2006-07-25 Thread David Smith



OOzy Pal wrote:


On 7/25/06, Martin Gainty <[EMAIL PROTECTED]> wrote:

All Tomcat installations come with startup. and 
shutdown. located in $TOMCAT_HOME/bin
run the startup. first in some sort of console (xterm...) and 
note the errors
e.g. If it cant find $JAVA_HOME it will output debug messages to 
screem saying so


When and only when your install has been running reliably well for 
some time

place startup script in init.d
M-
*
This email message and any files transmitted with it contain 
confidential
information intended only for the person(s) to whom this email 
message is
addressed.  If you have received this email message in error, please 
notify

the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: "OOzy Pal" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, July 25, 2006 9:58 AM
Subject: Re: Where is my Tomcat


> On 7/25/06, Martin Millnert <[EMAIL PROTECTED]> wrote:
>> On Mon, 2006-07-24 at 23:02 +0200, edward wrote:
>> > OOzy Pal wrote:
>> >
>> > >>
>> > >>
>> > >
>> > > I found the JKD but I am not sure how start tomcat. I am 
really stuck.

>> > > I am not sure what am I missing? Is there a good tutorial for
>> > > installing tomcat?
>> > >
>> > > Any help is appreciated.
>> >
>> 
>> > Chances are that the Debian tomcat init scripts point to gcj not 
to the
>> > Sun jdk. It's OK, you can fix that. Try javac -version, it will 
tell you
>> > about the compiler (which is part of the jdk, not the jre).  
Probably

>> > you will find that /usr/bin/java and about half a dozen other
>> > /usr/bin/javax commands including javac and javah are symlinks 
to the
>> > gcj versions of java somewhere in /usr/lib. So what you need to 
do is to

>> > change those symlinks to point to the Sun ones, probably in
>> > /usr/share/lib. Some distros have a command which lets you 
change the

>> > system's version of java (Gentoo does, I'm not sure about Debian)
>> > without manually editing all the symlinks.
>> >
>> 
>>
>> For reference, on a Ubuntu dapper desktop machine, here's how to 
manage

>> the symlinks:
>> [EMAIL PROTECTED]:~# which java
>> /usr/bin/java
>> [EMAIL PROTECTED]:~# ls -al /usr/bin/java*
>> lrwxrwxrwx 1 root root 22 2006-02-02 15:29 /usr/bin/java
>> -> /etc/alternatives/java
>> lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javac
>> -> /etc/alternatives/javac
>> lrwxrwxrwx 1 root root 25 2006-03-02 14:25 /usr/bin/javadoc
>> -> /etc/alternatives/javadoc
>> lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javah
>> -> /etc/alternatives/javah
>> lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javap
>> -> /etc/alternatives/javap
>> lrwxrwxrwx 1 root root 24 2006-03-02 14:26 /usr/bin/javaws
>> -> /etc/alternatives/javaws
>>
>> These commands does not have to be run as root, Ubuntu favours not 
using

>> the root account but sudo instead -- which is how OOzy was working.
>> The above shows and proves that the Ubuntu-style method is in fact in
>> use, and unorthodox methods has not been introduced to the 
packages. ;)

>> There are clear advantages of managing the JDKs as real packages, and
>> there is plenty of reference on this online:
>> 
http://www.google.se/search?hl=sv&q=the+correct+way+to+install+sun+java

>> +jdk+on+ubuntu&btnG=S%C3%B6k&meta=
>>
>> Ubuntu (as well as Debian) ships with the update-alternatives 
program,
>> which manages the symlinks and it is necessary to redirect these 
if you

>> have installed and are planning on using the Sun JDK.
>>
>> Example:
>>
>> [EMAIL PROTECTED]:~# update-alternatives --config java
>>
>> There are 5 alternatives which provide `java'.
>>
>>   SelectionAlternative
>> ---
>>   1/usr/lib/j2sdk1.5-sun/bin/java
>> * 2/usr/lib/j2sdk1.4-sun/bin/java
>>   3/usr/bin/gij-wrapper-4.1
>>   4/usr/bin/gij-wrapper-4.0
>>  +5/usr/lib/jvm/java-gcj/jre/bin/java
>>
>> Press enter to keep the default[*], or type selection number:
>>
>>
>> Note that this only configures the `which java`-program. You should
>> point all programs to the same version. At the very least make sure
>> "java" and "javac" are pointing to t

Re: Where is my Tomcat

2006-07-25 Thread OOzy Pal

On 7/25/06, Martin Gainty <[EMAIL PROTECTED]> wrote:

All Tomcat installations come with startup. and shutdown. 
located in $TOMCAT_HOME/bin
run the startup. first in some sort of console (xterm...) and note the 
errors
e.g. If it cant find $JAVA_HOME it will output debug messages to screem saying 
so

When and only when your install has been running reliably well for some time
place startup script in init.d
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: "OOzy Pal" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, July 25, 2006 9:58 AM
Subject: Re: Where is my Tomcat


> On 7/25/06, Martin Millnert <[EMAIL PROTECTED]> wrote:
>> On Mon, 2006-07-24 at 23:02 +0200, edward wrote:
>> > OOzy Pal wrote:
>> >
>> > >>
>> > >>
>> > >
>> > > I found the JKD but I am not sure how start tomcat. I am really stuck.
>> > > I am not sure what am I missing? Is there a good tutorial for
>> > > installing tomcat?
>> > >
>> > > Any help is appreciated.
>> >
>> 
>> > Chances are that the Debian tomcat init scripts point to gcj not to the
>> > Sun jdk. It's OK, you can fix that. Try javac -version, it will tell you
>> > about the compiler (which is part of the jdk, not the jre).  Probably
>> > you will find that /usr/bin/java and about half a dozen other
>> > /usr/bin/javax commands including javac and javah are symlinks to the
>> > gcj versions of java somewhere in /usr/lib. So what you need to do is to
>> > change those symlinks to point to the Sun ones, probably in
>> > /usr/share/lib. Some distros have a command which lets you change the
>> > system's version of java (Gentoo does, I'm not sure about Debian)
>> > without manually editing all the symlinks.
>> >
>> 
>>
>> For reference, on a Ubuntu dapper desktop machine, here's how to manage
>> the symlinks:
>> [EMAIL PROTECTED]:~# which java
>> /usr/bin/java
>> [EMAIL PROTECTED]:~# ls -al /usr/bin/java*
>> lrwxrwxrwx 1 root root 22 2006-02-02 15:29 /usr/bin/java
>> -> /etc/alternatives/java
>> lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javac
>> -> /etc/alternatives/javac
>> lrwxrwxrwx 1 root root 25 2006-03-02 14:25 /usr/bin/javadoc
>> -> /etc/alternatives/javadoc
>> lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javah
>> -> /etc/alternatives/javah
>> lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javap
>> -> /etc/alternatives/javap
>> lrwxrwxrwx 1 root root 24 2006-03-02 14:26 /usr/bin/javaws
>> -> /etc/alternatives/javaws
>>
>> These commands does not have to be run as root, Ubuntu favours not using
>> the root account but sudo instead -- which is how OOzy was working.
>> The above shows and proves that the Ubuntu-style method is in fact in
>> use, and unorthodox methods has not been introduced to the packages. ;)
>> There are clear advantages of managing the JDKs as real packages, and
>> there is plenty of reference on this online:
>> http://www.google.se/search?hl=sv&q=the+correct+way+to+install+sun+java
>> +jdk+on+ubuntu&btnG=S%C3%B6k&meta=
>>
>> Ubuntu (as well as Debian) ships with the update-alternatives program,
>> which manages the symlinks and it is necessary to redirect these if you
>> have installed and are planning on using the Sun JDK.
>>
>> Example:
>>
>> [EMAIL PROTECTED]:~# update-alternatives --config java
>>
>> There are 5 alternatives which provide `java'.
>>
>>   SelectionAlternative
>> ---
>>   1/usr/lib/j2sdk1.5-sun/bin/java
>> * 2/usr/lib/j2sdk1.4-sun/bin/java
>>   3/usr/bin/gij-wrapper-4.1
>>   4/usr/bin/gij-wrapper-4.0
>>  +5/usr/lib/jvm/java-gcj/jre/bin/java
>>
>> Press enter to keep the default[*], or type selection number:
>>
>>
>> Note that this only configures the `which java`-program. You should
>> point all programs to the same version. At the very least make sure
>> "java" and "javac" are pointing to the same JDK to avoid confusion.
>> To poi

Re: Where is my Tomcat

2006-07-25 Thread Martin Gainty
All Tomcat installations come with startup. and shutdown. 
located in $TOMCAT_HOME/bin
run the startup. first in some sort of console (xterm...) and note the 
errors
e.g. If it cant find $JAVA_HOME it will output debug messages to screem saying 
so

When and only when your install has been running reliably well for some time
place startup script in init.d
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: "OOzy Pal" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, July 25, 2006 9:58 AM
Subject: Re: Where is my Tomcat


> On 7/25/06, Martin Millnert <[EMAIL PROTECTED]> wrote:
>> On Mon, 2006-07-24 at 23:02 +0200, edward wrote:
>> > OOzy Pal wrote:
>> >
>> > >>
>> > >>
>> > >
>> > > I found the JKD but I am not sure how start tomcat. I am really stuck.
>> > > I am not sure what am I missing? Is there a good tutorial for
>> > > installing tomcat?
>> > >
>> > > Any help is appreciated.
>> >
>> 
>> > Chances are that the Debian tomcat init scripts point to gcj not to the
>> > Sun jdk. It's OK, you can fix that. Try javac -version, it will tell you
>> > about the compiler (which is part of the jdk, not the jre).  Probably
>> > you will find that /usr/bin/java and about half a dozen other
>> > /usr/bin/javax commands including javac and javah are symlinks to the
>> > gcj versions of java somewhere in /usr/lib. So what you need to do is to
>> > change those symlinks to point to the Sun ones, probably in
>> > /usr/share/lib. Some distros have a command which lets you change the
>> > system's version of java (Gentoo does, I'm not sure about Debian)
>> > without manually editing all the symlinks.
>> >
>> 
>>
>> For reference, on a Ubuntu dapper desktop machine, here's how to manage
>> the symlinks:
>> [EMAIL PROTECTED]:~# which java
>> /usr/bin/java
>> [EMAIL PROTECTED]:~# ls -al /usr/bin/java*
>> lrwxrwxrwx 1 root root 22 2006-02-02 15:29 /usr/bin/java
>> -> /etc/alternatives/java
>> lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javac
>> -> /etc/alternatives/javac
>> lrwxrwxrwx 1 root root 25 2006-03-02 14:25 /usr/bin/javadoc
>> -> /etc/alternatives/javadoc
>> lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javah
>> -> /etc/alternatives/javah
>> lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javap
>> -> /etc/alternatives/javap
>> lrwxrwxrwx 1 root root 24 2006-03-02 14:26 /usr/bin/javaws
>> -> /etc/alternatives/javaws
>>
>> These commands does not have to be run as root, Ubuntu favours not using
>> the root account but sudo instead -- which is how OOzy was working.
>> The above shows and proves that the Ubuntu-style method is in fact in
>> use, and unorthodox methods has not been introduced to the packages. ;)
>> There are clear advantages of managing the JDKs as real packages, and
>> there is plenty of reference on this online:
>> http://www.google.se/search?hl=sv&q=the+correct+way+to+install+sun+java
>> +jdk+on+ubuntu&btnG=S%C3%B6k&meta=
>>
>> Ubuntu (as well as Debian) ships with the update-alternatives program,
>> which manages the symlinks and it is necessary to redirect these if you
>> have installed and are planning on using the Sun JDK.
>>
>> Example:
>>
>> [EMAIL PROTECTED]:~# update-alternatives --config java
>>
>> There are 5 alternatives which provide `java'.
>>
>>   SelectionAlternative
>> ---
>>   1/usr/lib/j2sdk1.5-sun/bin/java
>> * 2/usr/lib/j2sdk1.4-sun/bin/java
>>   3/usr/bin/gij-wrapper-4.1
>>   4/usr/bin/gij-wrapper-4.0
>>  +5/usr/lib/jvm/java-gcj/jre/bin/java
>>
>> Press enter to keep the default[*], or type selection number:
>>
>>
>> Note that this only configures the `which java`-program. You should
>> point all programs to the same version. At the very least make sure
>> "java" and "javac" are pointing to the same JDK to avoid confusion.
>> To point all programs in a one-liner, you could use:
>>

Re: Where is my Tomcat

2006-07-25 Thread OOzy Pal

On 7/25/06, Martin Millnert <[EMAIL PROTECTED]> wrote:

On Mon, 2006-07-24 at 23:02 +0200, edward wrote:
> OOzy Pal wrote:
>
> >>
> >>
> >
> > I found the JKD but I am not sure how start tomcat. I am really stuck.
> > I am not sure what am I missing? Is there a good tutorial for
> > installing tomcat?
> >
> > Any help is appreciated.
>

> Chances are that the Debian tomcat init scripts point to gcj not to the
> Sun jdk. It's OK, you can fix that. Try javac -version, it will tell you
> about the compiler (which is part of the jdk, not the jre).  Probably
> you will find that /usr/bin/java and about half a dozen other
> /usr/bin/javax commands including javac and javah are symlinks to the
> gcj versions of java somewhere in /usr/lib. So what you need to do is to
> change those symlinks to point to the Sun ones, probably in
> /usr/share/lib. Some distros have a command which lets you change the
> system's version of java (Gentoo does, I'm not sure about Debian)
> without manually editing all the symlinks.
>


For reference, on a Ubuntu dapper desktop machine, here's how to manage
the symlinks:
[EMAIL PROTECTED]:~# which java
/usr/bin/java
[EMAIL PROTECTED]:~# ls -al /usr/bin/java*
lrwxrwxrwx 1 root root 22 2006-02-02 15:29 /usr/bin/java
-> /etc/alternatives/java
lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javac
-> /etc/alternatives/javac
lrwxrwxrwx 1 root root 25 2006-03-02 14:25 /usr/bin/javadoc
-> /etc/alternatives/javadoc
lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javah
-> /etc/alternatives/javah
lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javap
-> /etc/alternatives/javap
lrwxrwxrwx 1 root root 24 2006-03-02 14:26 /usr/bin/javaws
-> /etc/alternatives/javaws

These commands does not have to be run as root, Ubuntu favours not using
the root account but sudo instead -- which is how OOzy was working.
The above shows and proves that the Ubuntu-style method is in fact in
use, and unorthodox methods has not been introduced to the packages. ;)
There are clear advantages of managing the JDKs as real packages, and
there is plenty of reference on this online:
http://www.google.se/search?hl=sv&q=the+correct+way+to+install+sun+java
+jdk+on+ubuntu&btnG=S%C3%B6k&meta=

Ubuntu (as well as Debian) ships with the update-alternatives program,
which manages the symlinks and it is necessary to redirect these if you
have installed and are planning on using the Sun JDK.

Example:

[EMAIL PROTECTED]:~# update-alternatives --config java

There are 5 alternatives which provide `java'.

  SelectionAlternative
---
  1/usr/lib/j2sdk1.5-sun/bin/java
* 2/usr/lib/j2sdk1.4-sun/bin/java
  3/usr/bin/gij-wrapper-4.1
  4/usr/bin/gij-wrapper-4.0
 +5/usr/lib/jvm/java-gcj/jre/bin/java

Press enter to keep the default[*], or type selection number:


Note that this only configures the `which java`-program. You should
point all programs to the same version. At the very least make sure
"java" and "javac" are pointing to the same JDK to avoid confusion.
To point all programs in a one-liner, you could use:
[EMAIL PROTECTED]:~# cd /usr/bin && for PROGRAM in `ls java*`; do
update-alternatives --config $PROGRAM ; done

If you're using the sudo administration method, modify the line
accordingly:
[EMAIL PROTECTED]:~# cd /usr/bin && for PROGRAM in `ls java*`; do sudo
update-alternatives --config $PROGRAM ; done

This requires you to possibly write in the password as many times as
there are PROGRAMs, unless your system cache your sudo credentials.
A more complicated method to achieve the same result is:
sudo bash -c 'cd /usr/bin && for PROGRAM in `ls java*`; do
update-alternatives --config $PROGRAM ; done'


HTH,
Regards
--
Martin Millnert <[EMAIL PROTECTED]>


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQBExdyjApq14zkeZkwRAqHaAJ4z9Y9kniiIZdqMtEdZrZP37cFgcQCfactI
SU3qpmEIh5uxUowdGjbBn/Q=
=eQ5x
-END PGP SIGNATURE-




I am really lost. How about starting over? I will remove everything
and start from scratch. I just want some good tutorial on how to
install everything again.

Anyhow is some info of the my current system:

$java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.0 (Ubuntu 4.1.0-1ubuntu8)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-

$javac -version
Eclipse Java Compiler v_585_R31x, 3.1.2 release, Copyright IBM Corp
2000, 2006. All rights reserved.



--
OOzy
Kubuntu-Dapper

-
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: Where is my Tomcat

2006-07-25 Thread Martin Millnert
On Mon, 2006-07-24 at 23:02 +0200, edward wrote:
> OOzy Pal wrote:
> 
> >>
> >>
> >
> > I found the JKD but I am not sure how start tomcat. I am really stuck.
> > I am not sure what am I missing? Is there a good tutorial for
> > installing tomcat?
> >
> > Any help is appreciated.
> 

> Chances are that the Debian tomcat init scripts point to gcj not to the
> Sun jdk. It's OK, you can fix that. Try javac -version, it will tell you
> about the compiler (which is part of the jdk, not the jre).  Probably
> you will find that /usr/bin/java and about half a dozen other
> /usr/bin/javax commands including javac and javah are symlinks to the
> gcj versions of java somewhere in /usr/lib. So what you need to do is to
> change those symlinks to point to the Sun ones, probably in
> /usr/share/lib. Some distros have a command which lets you change the
> system's version of java (Gentoo does, I'm not sure about Debian)
> without manually editing all the symlinks.
> 


For reference, on a Ubuntu dapper desktop machine, here's how to manage
the symlinks:
[EMAIL PROTECTED]:~# which java
/usr/bin/java
[EMAIL PROTECTED]:~# ls -al /usr/bin/java*
lrwxrwxrwx 1 root root 22 2006-02-02 15:29 /usr/bin/java
-> /etc/alternatives/java
lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javac
-> /etc/alternatives/javac
lrwxrwxrwx 1 root root 25 2006-03-02 14:25 /usr/bin/javadoc
-> /etc/alternatives/javadoc
lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javah
-> /etc/alternatives/javah
lrwxrwxrwx 1 root root 23 2006-03-02 14:25 /usr/bin/javap
-> /etc/alternatives/javap
lrwxrwxrwx 1 root root 24 2006-03-02 14:26 /usr/bin/javaws
-> /etc/alternatives/javaws

These commands does not have to be run as root, Ubuntu favours not using
the root account but sudo instead -- which is how OOzy was working.
The above shows and proves that the Ubuntu-style method is in fact in
use, and unorthodox methods has not been introduced to the packages. ;)
There are clear advantages of managing the JDKs as real packages, and
there is plenty of reference on this online:
http://www.google.se/search?hl=sv&q=the+correct+way+to+install+sun+java
+jdk+on+ubuntu&btnG=S%C3%B6k&meta=

Ubuntu (as well as Debian) ships with the update-alternatives program,
which manages the symlinks and it is necessary to redirect these if you
have installed and are planning on using the Sun JDK.

Example:

[EMAIL PROTECTED]:~# update-alternatives --config java

There are 5 alternatives which provide `java'.

  SelectionAlternative
---
  1/usr/lib/j2sdk1.5-sun/bin/java
* 2/usr/lib/j2sdk1.4-sun/bin/java
  3/usr/bin/gij-wrapper-4.1
  4/usr/bin/gij-wrapper-4.0
 +5/usr/lib/jvm/java-gcj/jre/bin/java

Press enter to keep the default[*], or type selection number: 


Note that this only configures the `which java`-program. You should
point all programs to the same version. At the very least make sure
"java" and "javac" are pointing to the same JDK to avoid confusion.
To point all programs in a one-liner, you could use:
[EMAIL PROTECTED]:~# cd /usr/bin && for PROGRAM in `ls java*`; do
update-alternatives --config $PROGRAM ; done

If you're using the sudo administration method, modify the line
accordingly:
[EMAIL PROTECTED]:~# cd /usr/bin && for PROGRAM in `ls java*`; do sudo
update-alternatives --config $PROGRAM ; done

This requires you to possibly write in the password as many times as
there are PROGRAMs, unless your system cache your sudo credentials.
A more complicated method to achieve the same result is:
sudo bash -c 'cd /usr/bin && for PROGRAM in `ls java*`; do
update-alternatives --config $PROGRAM ; done'


HTH,
Regards
-- 
Martin Millnert <[EMAIL PROTECTED]>


signature.asc
Description: This is a digitally signed message part


Re: Where is my Tomcat

2006-07-24 Thread edward
OOzy Pal wrote:

>>
>>
>
> I found the JKD but I am not sure how start tomcat. I am really stuck.
> I am not sure what am I missing? Is there a good tutorial for
> installing tomcat?
>
> Any help is appreciated.


The init scripts that come with the package are generally a pretty good
way to start it, as you did - /etc/init.d/tomcat5 start.  Especially if
you want to use them at boot time. But they're not working, for reasons
you've found out, i.e. that the $JAVA_HOME is pointing to a JRE not a JDK.

Ubuntu is based on Debian, and I don't know how it varies. But Debian
distros ship with gcj as the java compiler, and while it's free, it will
give you grief compared to the Sun one, so you're right (in every way
apart, perhaps, from the free-software-purist philosophical way) to try
and use the Sun version.

Chances are that the Debian tomcat init scripts point to gcj not to the
Sun jdk. It's OK, you can fix that. Try javac -version, it will tell you
about the compiler (which is part of the jdk, not the jre).  Probably
you will find that /usr/bin/java and about half a dozen other
/usr/bin/javax commands including javac and javah are symlinks to the
gcj versions of java somewhere in /usr/lib. So what you need to do is to
change those symlinks to point to the Sun ones, probably in
/usr/share/lib. Some distros have a command which lets you change the
system's version of java (Gentoo does, I'm not sure about Debian)
without manually editing all the symlinks.

Now you say you're using Tomcat 5 - this isn't quite a complete answer.
Tomcat5 comes in two flavours, the 5.0 series and the 5.5.  If you have
a 5.0 series, it will work with a 1.4.2 jdk out of the box, whereas 5.5
prefers a 1.5 (Java 5) jdk, Again I think the standard Debian tomcat 5
package, even in unstable, is a 5.0, because there aren't yet any free
1.5 javacs. Just don't go using Java 5 stuff like generics in your
servlets.

Don't think of this as a trial, think of it as a learning experience...
you'll find your way round your system, so that editing a symlink and
exporting an environment variable become second nature.  Getting to the
welcome orangey-yellow cat will only be the first part; what you really
want to see is your own webapp...


-
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: Where is my Tomcat

2006-07-24 Thread Propes, Barry L
try this, and see if any of the links along the left side get you where you 
need to go.

http://tomcat.apache.org/

-Original Message-
From: OOzy Pal [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 3:31 PM
To: Tomcat Users List
Subject: Re: Where is my Tomcat


On 7/24/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:
> are you looking for it up on UNIX or on Windows?
>
> I'd say on UNIX, use Putty or some such and run some -sl or -la commands.
>
> Windows, use the Find feature.
>
> -Original Message-
> From: OOzy Pal [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 24, 2006 12:54 PM
> To: Tomcat Users List
> Subject: Re: Where is my Tomcat
>
>
> On 7/24/06, Hassan Schroeder <[EMAIL PROTECTED]> wrote:
> > On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:
> >
> > > After searching the archive, I checked catalina.out and here is the log
> > >
> > > The JAVA_HOME environment variable is not defined correctly
> > > This environment variable is needed to run this program
> > > NB: JAVA_HOME should point to a JDK not a JRE
> > >
> > > hmm, where is my JDK, I installed it.
> >
> > So you need to locate it and set that environment variable.
> >
> > This is the reason people who use "installers" need to become very
> > proficient with the "find" command :-)
> >
> > --
> > Hassan Schroeder  [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]
> >
> >
>
> Where should I look for? I did this
>
> $ slcoate -u
>
> then
>
> slocate jdk
>
> I got so many /usr/share/doc kinda files?
>
> How can I find my JDK?
>
> OOzy
> --
> OOzy
> Kubuntu-Dapper
>
> -
> 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]
>
>

I found the JKD but I am not sure how start tomcat. I am really stuck.
I am not sure what am I missing? Is there a good tutorial for installing tomcat?

Any help is appreciated.

-- 
OOzy
Kubuntu-Dapper

-
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: Where is my Tomcat

2006-07-24 Thread OOzy Pal

On 7/24/06, Propes, Barry L <[EMAIL PROTECTED]> wrote:

are you looking for it up on UNIX or on Windows?

I'd say on UNIX, use Putty or some such and run some -sl or -la commands.

Windows, use the Find feature.

-Original Message-
From: OOzy Pal [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 12:54 PM
To: Tomcat Users List
Subject: Re: Where is my Tomcat


On 7/24/06, Hassan Schroeder <[EMAIL PROTECTED]> wrote:
> On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:
>
> > After searching the archive, I checked catalina.out and here is the log
> >
> > The JAVA_HOME environment variable is not defined correctly
> > This environment variable is needed to run this program
> > NB: JAVA_HOME should point to a JDK not a JRE
> >
> > hmm, where is my JDK, I installed it.
>
> So you need to locate it and set that environment variable.
>
> This is the reason people who use "installers" need to become very
> proficient with the "find" command :-)
>
> --
> Hassan Schroeder  [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]
>
>

Where should I look for? I did this

$ slcoate -u

then

slocate jdk

I got so many /usr/share/doc kinda files?

How can I find my JDK?

OOzy
--
OOzy
Kubuntu-Dapper

-
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]




I found the JKD but I am not sure how start tomcat. I am really stuck.
I am not sure what am I missing? Is there a good tutorial for installing tomcat?

Any help is appreciated.

--
OOzy
Kubuntu-Dapper

-
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: Where is my Tomcat

2006-07-24 Thread Propes, Barry L
are you looking for it up on UNIX or on Windows?

I'd say on UNIX, use Putty or some such and run some -sl or -la commands.

Windows, use the Find feature.

-Original Message-
From: OOzy Pal [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 12:54 PM
To: Tomcat Users List
Subject: Re: Where is my Tomcat


On 7/24/06, Hassan Schroeder <[EMAIL PROTECTED]> wrote:
> On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:
>
> > After searching the archive, I checked catalina.out and here is the log
> >
> > The JAVA_HOME environment variable is not defined correctly
> > This environment variable is needed to run this program
> > NB: JAVA_HOME should point to a JDK not a JRE
> >
> > hmm, where is my JDK, I installed it.
>
> So you need to locate it and set that environment variable.
>
> This is the reason people who use "installers" need to become very
> proficient with the "find" command :-)
>
> --
> Hassan Schroeder  [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]
>
>

Where should I look for? I did this

$ slcoate -u

then

slocate jdk

I got so many /usr/share/doc kinda files?

How can I find my JDK?

OOzy
-- 
OOzy
Kubuntu-Dapper

-
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: Where is my Tomcat

2006-07-24 Thread Propes, Barry L
search for j2sdk in your files, folders.

-Original Message-
From: OOzy Pal [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 12:36 PM
To: users@tomcat.apache.org
Subject: Re: Where is my Tomcat


On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:
> Guys/Gals,
>
> I am running (K)ubuntu. I installed the following packages:
>
> Apache 1.3 connector for the Tomcat Java servlet engine
> Servlet 2.3 and JSP 1.2 Java classes and documentation
> Servlet 2.4 and JSP 2.0 Java classes and documentation
> Java Servlet engine -- core libraries (libtomcat5)
> Java Servlet 2.4 engine with JSP 2.0 support (tomcat5)
> Java Servlet engine -- admin web interfaces(tomcat5-admin)
> Sun Java(TM) Development Kit (JDK) 5.0
> Sun Java(TM) Runtime Environment (JRE) 5.0
>
> plus other Java libs,
>
> Then I type
>
> $sudo /etc/init.d/tomcat5 start
>
> I get:
>
> Starting Tomcat 5 servlet engine using Java from /usr/lib/j2se/1.4:
>
> when I type:
>
> sudo /usr/share/tomcat5/bin/startup.sh
>
> I get:
>
> Using CATALINA_BASE:   /usr/share/tomcat5
> Using CATALINA_HOME:   /usr/share/tomcat5
> Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
> Using JAVA_HOME:   /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/
>
> $netstat -l -t -e | grep tomcat
>
> I get nothing.
>
> When I type
>
> $sudo /etc/init.d/tomcat5 stop
>
> I get
>
> Stopping Tomcat 5 servlet engine: (not running)
>
> Where is my tomcat how can I run it and test it?
>
> --
> OOzy
> Kubuntu-Dapper
>

After searching the archive, I checked catalina.out and here is the log

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

hmm, where is my JDK, I installed it.
-- 
OOzy
Kubuntu-Dapper

-
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: Where is my Tomcat

2006-07-24 Thread Hassan Schroeder

On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:


> This is the reason people who use "installers" need to become very
> proficient with the "find" command :-)



How can I find my JDK?


Uh, did I mention the "find" command

Start with `man find`, perhaps.

And I heartily second rthe recommendation to uninstall all this stuff
and install the JDK and Tomcat from tar files...

Good luck,
--
Hassan Schroeder  [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: Where is my Tomcat

2006-07-24 Thread Steve Ochani
On 24 Jul 2006 at 20:53, OOzy Pal wrote:

> On 7/24/06, Hassan Schroeder <[EMAIL PROTECTED]> wrote:
> > On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:
> >
> > > After searching the archive, I checked catalina.out and here is
> > > the log
> > >
> > > The JAVA_HOME environment variable is not defined correctly
> > > This environment variable is needed to run this program
> > > NB: JAVA_HOME should point to a JDK not a JRE
> > >
> > > hmm, where is my JDK, I installed it.

--snip--

> Where should I look for? I did this
>
> $ slcoate -u
>
> then
>
> slocate jdk
>
> I got so many /usr/share/doc kinda files?
>
> How can I find my JDK?


Try
which javac

if not found then.

Try running
javac -version
from the command line, if you can run it then it has to be in your path, search 
those path
directories with find.

I know you're not going to like this but I would advise to unload all the 
packages, download
and instal the jdk from sun manually and tomcat from apache.org. It's really 
not that hard and
it would give you some practice in using your system which it seems like you 
need (no
offense intended)

-Steve O.

«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»
Steve O.
http://www.steveo.us

Maui Vacation Pics.
http://steveo.us/maui/

B17G and B24
http://www.steveo.us/B17-B24

B17G WWII Bomber "Yankee Lady" Flight
http://www.steveo.us/b17ride

SUNY NCC MATH/COMPUTER Dept.
http://www.matcmp.ncc.edu



-
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: Where is my Tomcat

2006-07-24 Thread OOzy Pal

On 7/24/06, Sunitha Kumar (sunithak) <[EMAIL PROTECTED]> wrote:

Hi,
what is your tomcat version?  Is there any later versions of tomcat that
would work with only JRE ?
thnx
-sunitha

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 10:49 AM
To: Tomcat Users List
Subject: Re: Where is my Tomcat

On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:

> After searching the archive, I checked catalina.out and here is the
> log
>
> The JAVA_HOME environment variable is not defined correctly This
> environment variable is needed to run this program
> NB: JAVA_HOME should point to a JDK not a JRE
>
> hmm, where is my JDK, I installed it.

So you need to locate it and set that environment variable.

This is the reason people who use "installers" need to become very
proficient with the "find" command :-)

--
Hassan Schroeder  [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]




Tomcat 5
--
OOzy
Kubuntu-Dapper

-
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: Where is my Tomcat

2006-07-24 Thread Sunitha Kumar \(sunithak\)
Hi,
what is your tomcat version?  Is there any later versions of tomcat that
would work with only JRE ?
thnx
-sunitha

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 24, 2006 10:49 AM
To: Tomcat Users List
Subject: Re: Where is my Tomcat

On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:

> After searching the archive, I checked catalina.out and here is the 
> log
>
> The JAVA_HOME environment variable is not defined correctly This 
> environment variable is needed to run this program
> NB: JAVA_HOME should point to a JDK not a JRE
>
> hmm, where is my JDK, I installed it.

So you need to locate it and set that environment variable.

This is the reason people who use "installers" need to become very
proficient with the "find" command :-)

--
Hassan Schroeder  [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: Where is my Tomcat

2006-07-24 Thread OOzy Pal

On 7/24/06, Hassan Schroeder <[EMAIL PROTECTED]> wrote:

On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:

> After searching the archive, I checked catalina.out and here is the log
>
> The JAVA_HOME environment variable is not defined correctly
> This environment variable is needed to run this program
> NB: JAVA_HOME should point to a JDK not a JRE
>
> hmm, where is my JDK, I installed it.

So you need to locate it and set that environment variable.

This is the reason people who use "installers" need to become very
proficient with the "find" command :-)

--
Hassan Schroeder  [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]




Where should I look for? I did this

$ slcoate -u

then

slocate jdk

I got so many /usr/share/doc kinda files?

How can I find my JDK?

OOzy
--
OOzy
Kubuntu-Dapper

-
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: Where is my Tomcat

2006-07-24 Thread Hassan Schroeder

On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:


After searching the archive, I checked catalina.out and here is the log

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

hmm, where is my JDK, I installed it.


So you need to locate it and set that environment variable.

This is the reason people who use "installers" need to become very
proficient with the "find" command :-)

--
Hassan Schroeder  [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: Where is my Tomcat

2006-07-24 Thread edward
OOzy Pal wrote:

> Guys/Gals,
>
> I am running (K)ubuntu. I installed the following packages:
>
> Apache 1.3 connector for the Tomcat Java servlet engine
> Servlet 2.3 and JSP 1.2 Java classes and documentation
> Servlet 2.4 and JSP 2.0 Java classes and documentation
> Java Servlet engine -- core libraries (libtomcat5)
> Java Servlet 2.4 engine with JSP 2.0 support (tomcat5)
> Java Servlet engine -- admin web interfaces(tomcat5-admin)
> Sun Java(TM) Development Kit (JDK) 5.0
> Sun Java(TM) Runtime Environment (JRE) 5.0
>
> plus other Java libs,
>
> Then I type
>
> $sudo /etc/init.d/tomcat5 start
>
> I get:
>
> Starting Tomcat 5 servlet engine using Java from /usr/lib/j2se/1.4:
>
> when I type:
>
> sudo /usr/share/tomcat5/bin/startup.sh
>
> I get:
>
> Using CATALINA_BASE:   /usr/share/tomcat5
> Using CATALINA_HOME:   /usr/share/tomcat5
> Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
> Using JAVA_HOME:   /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/
>
> $netstat -l -t -e | grep tomcat
>
> I get nothing.
>
> When I type
>
> $sudo /etc/init.d/tomcat5 stop
>
> I get
>
> Stopping Tomcat 5 servlet engine: (not running)
>
> Where is my tomcat how can I run it and test it?
>
it appears not to have started, so have a look at the log file(s)
(catalina.out probably, and probably  in /var/log/tomcat5 where it is
symlinked from your installation directory) and see where it fell over.

to find it, if it is running, point a browser at it - it's a server,
innit.  probably at http://localhost:8080/ but maybe the debian tomcat
packages uses port 8180 instead. Look at your server.xml file to see
where it has specified the catalina connector to run.

-
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: Where is my Tomcat

2006-07-24 Thread OOzy Pal

On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:

Guys/Gals,

I am running (K)ubuntu. I installed the following packages:

Apache 1.3 connector for the Tomcat Java servlet engine
Servlet 2.3 and JSP 1.2 Java classes and documentation
Servlet 2.4 and JSP 2.0 Java classes and documentation
Java Servlet engine -- core libraries (libtomcat5)
Java Servlet 2.4 engine with JSP 2.0 support (tomcat5)
Java Servlet engine -- admin web interfaces(tomcat5-admin)
Sun Java(TM) Development Kit (JDK) 5.0
Sun Java(TM) Runtime Environment (JRE) 5.0

plus other Java libs,

Then I type

$sudo /etc/init.d/tomcat5 start

I get:

Starting Tomcat 5 servlet engine using Java from /usr/lib/j2se/1.4:

when I type:

sudo /usr/share/tomcat5/bin/startup.sh

I get:

Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JAVA_HOME:   /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/

$netstat -l -t -e | grep tomcat

I get nothing.

When I type

$sudo /etc/init.d/tomcat5 stop

I get

Stopping Tomcat 5 servlet engine: (not running)

Where is my tomcat how can I run it and test it?

--
OOzy
Kubuntu-Dapper



After searching the archive, I checked catalina.out and here is the log

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

hmm, where is my JDK, I installed it.
--
OOzy
Kubuntu-Dapper

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]