jsp vs php.....

2001-09-07 Thread Kennice Low

Hi,

Can anyone give me some advise/opinion/suggestion on jsp vs php ?
What are the advantages of JSP over PHP, or vice versa ?

Any helps/opinion is appreciated.  ;)

best regards,
Kennice




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: More understanding on startup.sh and shutdown.sh

2001-08-19 Thread Kennice Low

Hi Rob and Larry,
Thank you for yours advice.  Your are right, I shouldn't set 
tomcat-internal-related and the webapps. I have remove the unnecessary 
setting on CLASSPATH and the jsp and servlet work fine.  But, the message 
still displayed when I shutdown and startup tomcat :
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/tomcat/shell/Startup

1) Do you have any ideals ?  I suspect one of the servlet or xml file is 
looking for the directory org/apache/tomcat/shell/Startup, but the directory 
is not there.

2) Forgot to mention the jsp and servlet work fine all the time.  The only 
thing is I would like to learn more who does the startup and shutdown work.

3) Back to the 1st mail, do your have any ideal what is $BASEDIR.

best regards,
Kennice


Rob  wrote on 17/8/01 :
There should be nothing tomcat-internal-related in your CLASSPATH.  Tomcat
sets the CLASSPATH for you, by automatically adding all of the jars from
your $TOMCAT_HOME/lib directory to your CLASSPATH.

Larry wrote on 17/8/01:
$TOMCAT_HOME/webapps/ROOT/WEB-INF/classes shouldn't be in your
CLASSPATH since it is part of a web application.  If it is there
to get something to work, what goes wrong when it isn't there.

Larry

  -Original Message-
  From: Kennice Low [mailto:[EMAIL PROTECTED]]
  Sent: Friday, August 17, 2001 2:32 AM
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: RE: More understanding on startup.sh and shutdown.sh
 
 
  Hi Rob,
  Thank you for your helps.
 
  when you do set | grep TOMCAT_HOME you should get
  something like this:
  TOMCAT_HOME=/var/jakarta-tomcat-3.2.2
 
  Have you set the TOMCAT_HOME and JAVA_HOME environment
  variables?  The
  error
  you're getting seems to be that the server's jar file isn't in the
  CLASSPATH
  (which Tomcat sets for you).
 
  here is my setting of profile.
 
  --
  --
  . /home/pseudo/profile
 
  alias ls='ls -l'
  alias la='ls -a'
  export PS1=\w
 
  . .java
 
  #export JAVA_HOME=/local/pkg/jdk/1.3
  export TOMCAT_HOME=/var/jakarta-tomcat-3.2.2
  export MYSQL_HOME=/usr/local/mysql-3.23.39-pc-linux-gnu-i686
  export BIN=/usr/bin
  export APACHE=/etc/init.d
 
  export
  PATH=$JAVA_HOME/bin:$MYSQL_HOME/bin:$TOMCAT_HOME:$BIN:$APACHE:$PATH
 
  export
  CLASSPATH=$TOMCAT_HOME/lib/servlet.jar:$TOMCAT_HOME/lib/jasper
  .jar:$TOMCAT_HOME/lib/webserver.jar:$TOMCAT_HOME/webapps/ROOT/
  WEB-INF/classes:$TOMCAT_HOME/lib/mm.m
  ysql-2.0.6.jar:$TOMCAT_HOME/conn
 
  ---end of profile---
  Is there any error on the setting ?
 
  Thank you :-)
  regards
  Kennice
 
 
 
  From: Rob S. [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: RE: More understanding on startup.sh and shutdown.sh
  Date: Thu, 16 Aug 2001 07:16:09 -0400
  
  Hiya Ken,
  
  Have you set the TOMCAT_HOME and JAVA_HOME environment
  variables?  The
  error
  you're getting seems to be that the server's jar file isn't in the
  CLASSPATH
  (which Tomcat sets for you).  I can only think that you've
  improperly set
  TOMCAT_HOME.
  
  when you do set | grep TOMCAT_HOME you should get
  something like this:
  
  TOMCAT_HOME=/usr/local/tomcat
  
  where that is the root of your tomcat installation.  Make
  sure that's set
  correctly and let us know what happens...
  
  - r
  
-Original Message-
From: Kennice Low [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 5:33 AM
To: [EMAIL PROTECTED]
Subject: More understanding on startup.sh and shutdown.sh
   
   
Hi,
   
I am using Linux o/s.  I am very new to tomcat.  Can anyone
enlightened me
on the starting and stopping of Tomcat ?
   
Here is my startup.sh  and shutdown.sh
startup.sh:
   
  --
  --
BASEDIR=`dirname $0`
   
$BASEDIR/tomcat.sh start $@
   
  -end--
  --
shutdown.sh:
   
  --
  --
BASEDIR=`dirname $0`
   
$BASEDIR/tomcat.sh stop $@
---end
  -
   
   
Here is my questions :
1)What is $BASEDIR ?
2)Whenever I run startup.sh or shutdown.sh, the 1st line shown:
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/tomcat/shell/Startup
I counld not find the directory /shell from the server. Where the
system get
these directory ?
   
Any help or info is appreciated. Thank you.
   
Best Regards,
Kennice
   
   
 
 
  _
  Get your FREE download of MSN Explorer at
  http://explorer.msn.com/intl.asp
 


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: More understanding on startup.sh and shutdown.sh

2001-08-19 Thread Kennice Low

Hi Rob,
Can you enlightened me on TOMCAT_OPTS :-?   TQ.

regards,
Kennice

From: Rob S. [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Kennice Low [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: More understanding on startup.sh and shutdown.sh
Date: Sun, 19 Aug 2001 22:15:03 -0400

Hi Kennice,

Unsetting your CLASSPATH before starting Tomcat is a good idea.  You really
shouldn't need to bother with the startup and shutdown scripts.  If you 
want
to mess with the Java command line used to start Tomcat, you can export
TOMCAT_OPTS to those options.

- r

  Hi Rob and Larry,
  Thank you for yours advice.  Your are right, I shouldn't set
  tomcat-internal-related and the webapps. I have remove the unnecessary
  setting on CLASSPATH and the jsp and servlet work fine.  But, the 
message
  still displayed when I shutdown and startup tomcat :
  Exception in thread main java.lang.NoClassDefFoundError:
  org/apache/tomcat/shell/Startup
 
  1) Do you have any ideals ?  I suspect one of the servlet or xml file is
  looking for the directory org/apache/tomcat/shell/Startup, but
  the directory
  is not there.
 
  2) Forgot to mention the jsp and servlet work fine all the time.
  The only
  thing is I would like to learn more who does the startup and
  shutdown work.
 
  3) Back to the 1st mail, do your have any ideal what is $BASEDIR.
 
  best regards,
  Kennice
 
 
  Rob  wrote on 17/8/01 :
  There should be nothing tomcat-internal-related in your
  CLASSPATH.  Tomcat
  sets the CLASSPATH for you, by automatically adding all of the jars 
from
  your $TOMCAT_HOME/lib directory to your CLASSPATH.
 
  Larry wrote on 17/8/01:
  $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes shouldn't be in your
  CLASSPATH since it is part of a web application.  If it is there
  to get something to work, what goes wrong when it isn't there.
  
  Larry
  
-Original Message-
From: Kennice Low [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 2:32 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: More understanding on startup.sh and shutdown.sh
   
   
Hi Rob,
Thank you for your helps.
   
when you do set | grep TOMCAT_HOME you should get
something like this:
TOMCAT_HOME=/var/jakarta-tomcat-3.2.2
   
Have you set the TOMCAT_HOME and JAVA_HOME environment
variables?  The
error
you're getting seems to be that the server's jar file isn't in the
CLASSPATH
(which Tomcat sets for you).
   
here is my setting of profile.
   
--
--
. /home/pseudo/profile
   
alias ls='ls -l'
alias la='ls -a'
export PS1=\w
   
. .java
   
#export JAVA_HOME=/local/pkg/jdk/1.3
export TOMCAT_HOME=/var/jakarta-tomcat-3.2.2
export MYSQL_HOME=/usr/local/mysql-3.23.39-pc-linux-gnu-i686
export BIN=/usr/bin
export APACHE=/etc/init.d
   
export
PATH=$JAVA_HOME/bin:$MYSQL_HOME/bin:$TOMCAT_HOME:$BIN:$APACHE:$PATH
   
export
CLASSPATH=$TOMCAT_HOME/lib/servlet.jar:$TOMCAT_HOME/lib/jasper
.jar:$TOMCAT_HOME/lib/webserver.jar:$TOMCAT_HOME/webapps/ROOT/
WEB-INF/classes:$TOMCAT_HOME/lib/mm.m
ysql-2.0.6.jar:$TOMCAT_HOME/conn
   
---end of profile---
Is there any error on the setting ?
   
Thank you :-)
regards
Kennice
   
   
   
From: Rob S. [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: More understanding on startup.sh and shutdown.sh
Date: Thu, 16 Aug 2001 07:16:09 -0400

Hiya Ken,

Have you set the TOMCAT_HOME and JAVA_HOME environment
variables?  The
error
you're getting seems to be that the server's jar file isn't in the
CLASSPATH
(which Tomcat sets for you).  I can only think that you've
improperly set
TOMCAT_HOME.

when you do set | grep TOMCAT_HOME you should get
something like this:

TOMCAT_HOME=/usr/local/tomcat

where that is the root of your tomcat installation.  Make
sure that's set
correctly and let us know what happens...

- r

  -Original Message-
  From: Kennice Low [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 16, 2001 5:33 AM
  To: [EMAIL PROTECTED]
  Subject: More understanding on startup.sh and shutdown.sh
 
 
  Hi,
 
  I am using Linux o/s.  I am very new to tomcat.  Can anyone
  enlightened me
  on the starting and stopping of Tomcat ?
 
  Here is my startup.sh  and shutdown.sh
  startup.sh:
 
--
--
  BASEDIR=`dirname $0`
 
  $BASEDIR/tomcat.sh start $@
 
-end--
--
  shutdown.sh

RE: More understanding on startup.sh and shutdown.sh

2001-08-17 Thread Kennice Low

Hi Rob,
Thank you for your helps.

when you do set | grep TOMCAT_HOME you should get something like this:
TOMCAT_HOME=/var/jakarta-tomcat-3.2.2

Have you set the TOMCAT_HOME and JAVA_HOME environment variables?  The 
error
you're getting seems to be that the server's jar file isn't in the 
CLASSPATH
(which Tomcat sets for you).

here is my setting of profile.


. /home/pseudo/profile

alias ls='ls -l'
alias la='ls -a'
export PS1=\w

. .java

#export JAVA_HOME=/local/pkg/jdk/1.3
export TOMCAT_HOME=/var/jakarta-tomcat-3.2.2
export MYSQL_HOME=/usr/local/mysql-3.23.39-pc-linux-gnu-i686
export BIN=/usr/bin
export APACHE=/etc/init.d

export PATH=$JAVA_HOME/bin:$MYSQL_HOME/bin:$TOMCAT_HOME:$BIN:$APACHE:$PATH

export 
CLASSPATH=$TOMCAT_HOME/lib/servlet.jar:$TOMCAT_HOME/lib/jasper.jar:$TOMCAT_HOME/lib/webserver.jar:$TOMCAT_HOME/webapps/ROOT/WEB-INF/classes:$TOMCAT_HOME/lib/mm.m
ysql-2.0.6.jar:$TOMCAT_HOME/conn

---end of profile---
Is there any error on the setting ?

Thank you :-)
regards
Kennice



From: Rob S. [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: More understanding on startup.sh and shutdown.sh
Date: Thu, 16 Aug 2001 07:16:09 -0400

Hiya Ken,

Have you set the TOMCAT_HOME and JAVA_HOME environment variables?  The 
error
you're getting seems to be that the server's jar file isn't in the 
CLASSPATH
(which Tomcat sets for you).  I can only think that you've improperly set
TOMCAT_HOME.

when you do set | grep TOMCAT_HOME you should get something like this:

TOMCAT_HOME=/usr/local/tomcat

where that is the root of your tomcat installation.  Make sure that's set
correctly and let us know what happens...

- r

  -Original Message-
  From: Kennice Low [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 16, 2001 5:33 AM
  To: [EMAIL PROTECTED]
  Subject: More understanding on startup.sh and shutdown.sh
 
 
  Hi,
 
  I am using Linux o/s.  I am very new to tomcat.  Can anyone
  enlightened me
  on the starting and stopping of Tomcat ?
 
  Here is my startup.sh  and shutdown.sh
  startup.sh:
  
  BASEDIR=`dirname $0`
 
  $BASEDIR/tomcat.sh start $@
  -end
  shutdown.sh:
  
  BASEDIR=`dirname $0`
 
  $BASEDIR/tomcat.sh stop $@
  ---end -
 
 
  Here is my questions :
  1)What is $BASEDIR ?
  2)Whenever I run startup.sh or shutdown.sh, the 1st line shown:
  Exception in thread main java.lang.NoClassDefFoundError:
  org/apache/tomcat/shell/Startup
  I counld not find the directory /shell from the server. Where the
  system get
  these directory ?
 
  Any help or info is appreciated. Thank you.
 
  Best Regards,
  Kennice
 
 


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




More understanding on startup.sh and shutdown.sh

2001-08-16 Thread Kennice Low

Hi,

I am using Linux o/s.  I am very new to tomcat.  Can anyone enlightened me 
on the starting and stopping of Tomcat ?

Here is my startup.sh  and shutdown.sh
startup.sh:

BASEDIR=`dirname $0`

$BASEDIR/tomcat.sh start $@
-end
shutdown.sh:

BASEDIR=`dirname $0`

$BASEDIR/tomcat.sh stop $@
---end -


Here is my questions :
1)What is $BASEDIR ?
2)Whenever I run startup.sh or shutdown.sh, the 1st line shown:
Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/tomcat/shell/Startup
I counld not find the directory /shell from the server. Where the system get 
these directory ?

Any help or info is appreciated. Thank you.

Best Regards,
Kennice




_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp