Problem in Startup

2005-07-04 Thread Tewari,kuldeep
Hi,
I have tomcat 5.0 installed in my machine.
but suddenly it started giving these messages during the startup.
I guess, this all started happening after I installed Sun Java System
Application Server 8.1 in my machine.
Please help.


Jul 5, 2005 10:15:41 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jul 5, 2005 10:15:41 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jul 5, 2005 10:15:41 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jul 5, 2005 10:15:41 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jul 5, 2005 10:15:41 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jul 5, 2005 10:15:41 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jul 5, 2005 10:15:41 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path
Jul 5, 2005 10:15:43 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Jul 5, 2005 10:15:43 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Jul 5, 2005 10:15:43 AM org.apache.struts.util.PropertyMessageResources
init
INFO: Initializing, config='ApplicationResources', returnNull=true
Jul 5, 2005 10:15:44 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 84 column 11: The content of element type
web-app must match (icon?,display-name?,description?,dis
ef*).
org.xml.sax.SAXParseException: The content of element type web-app must
match (icon?,display-name?,description?,distributable?
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
...
..
.
.

.
Regards.
Kuldeep.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with startup script for tomcat in linux

2004-07-16 Thread Kamaleshwaran Sivalingam
 Hi all,

          I have a problem  using startup script for tomcat in linux.  It actually 
starts 
up when booting up. but then, it says  [Failed]   and the reason is 
JAVA_HOME variable not defined correctly. This environment variable is  
neccesary for running this program. 

But I have defined the environment variable in my startup script. 

I am using Tomcat 4.1.18 with j2sdk1.4.1_02 in redhat linux.
tomcat directory is /usr/local/jakarta-tomcat-4.1.18 and the java directory is /usr/
java/j2sdk1.4.1_02

I placed the startup script  named tomcatd.sh  in  /etc/rc.d/init.d

The following is my startup script.

#!/bin/bash
#
# Startup script for Jakarta Tomcat
#
# chkconfig: 345 84 16
# description: Jakarta Tomcat Java Servlet/JSP Container



TOMCAT_HOME=/usr/local/jakarta-tomcat-4.1.18
TOMCAT_START=/usr/local/jakarta-tomcat-4.1.18/bin/startup.sh
TOMCAT_STOP=/usr/local/jakarta-tomcat-4.1.18/bin/shutdown.sh

#Necessary environment variables
export CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.18
export JAVA_HOME=/usr/java/jdk1.4.1_02

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = no ]  exit 0

#Check for tomcat script
if [ ! -f $TOMCAT_HOME/bin/catalina.sh ]
then
    echo Tomcat not available...
    exit
fi

start() {
    echo -n Starting Tomcat: 
    daemon $TOMCAT_START
    echo
    touch /var/lock/subsys/tomcatd
# We may need to sleep here so it will be up for apache
#    sleep 5
#Instead should check to see if apache is up by looking for http.pid
}

stop() {
    echo -n $Shutting down Tomcat: 
    daemon $TOMCAT_STOP
    rm -f /var/lock/subsys/tomcatd.pid
    echo
}

case $1 in
    start)
        start
        ;;
    stop)
        stop
        ;;
    restart)
        stop
        sleep 3
        start
        ;;
    *)
        echo Usage: tomcatd {start|stop|restart}
    exit 1
esac

Can anyone help me out?. 

Thanks in advance,
kamaleshwaran sivalingam

Re: Problem with startup script for tomcat in linux

2004-07-16 Thread David Smith
Typo in your script.  the JAVA_HOME line should read:
JAVA_HOME=/usr/java/j2sdk1.4.1_02
--David
Kamaleshwaran Sivalingam wrote:
Hi all,
 I have a problem  using startup script for tomcat in linux.  It actually starts 
up when booting up. but then, it says  [Failed]   and the reason is 
JAVA_HOME variable not defined correctly. This environment variable is  
neccesary for running this program. 

But I have defined the environment variable in my startup script. 

I am using Tomcat 4.1.18 with j2sdk1.4.1_02 in redhat linux.
tomcat directory is /usr/local/jakarta-tomcat-4.1.18 and the java directory is /usr/
java/j2sdk1.4.1_02
I placed the startup script  named tomcatd.sh  in  /etc/rc.d/init.d
The following is my startup script.
#!/bin/bash
#
# Startup script for Jakarta Tomcat
#
# chkconfig: 345 84 16
# description: Jakarta Tomcat Java Servlet/JSP Container

TOMCAT_HOME=/usr/local/jakarta-tomcat-4.1.18
TOMCAT_START=/usr/local/jakarta-tomcat-4.1.18/bin/startup.sh
TOMCAT_STOP=/usr/local/jakarta-tomcat-4.1.18/bin/shutdown.sh
#Necessary environment variables
export CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.18
export JAVA_HOME=/usr/java/jdk1.4.1_02
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ ${NETWORKING} = no ]  exit 0
#Check for tomcat script
if [ ! -f $TOMCAT_HOME/bin/catalina.sh ]
then
   echo Tomcat not available...
   exit
fi
start() {
   echo -n Starting Tomcat: 
   daemon $TOMCAT_START
   echo
   touch /var/lock/subsys/tomcatd
# We may need to sleep here so it will be up for apache
#sleep 5
#Instead should check to see if apache is up by looking for http.pid
}
stop() {
   echo -n $Shutting down Tomcat: 
   daemon $TOMCAT_STOP
   rm -f /var/lock/subsys/tomcatd.pid
   echo
}
case $1 in
   start)
   start
   ;;
   stop)
   stop
   ;;
   restart)
   stop
   sleep 3
   start
   ;;
   *)
   echo Usage: tomcatd {start|stop|restart}
   exit 1
esac
Can anyone help me out?. 

Thanks in advance,
kamaleshwaran sivalingam
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: Problem with startup script for tomcat in linux

2004-07-16 Thread Kamaleshwaran Sivalingam
 Hi david,
 Thanks a lot. I really appreciate that... I never noticed thatthat was 
worst 
silly mistake that I have ever doneIt works fine now.

Thanks for notifying  me...

kamaleshwaran sivalingam

On Sat, 17 Jul 2004 David Smith wrote :
Typo in your script.  the JAVA_HOME line should read:

JAVA_HOME=/usr/java/j2sdk1.4.1_02

--David

Kamaleshwaran Sivalingam wrote:

Hi all,

  I have a problem  using startup script for tomcat in linux.  It actually 
starts up when booting up. but then, it says  [Failed]   and the reason is 
JAVA_HOME variable not defined correctly. This environment variable is  
neccesary for running this program. 

But I have defined the environment variable in my startup script. 
I am using Tomcat 4.1.18 with j2sdk1.4.1_02 in redhat linux.
tomcat directory is /usr/local/jakarta-tomcat-4.1.18 and the java directory is /
usr/
java/j2sdk1.4.1_02

I placed the startup script  named tomcatd.sh  in  /etc/rc.d/init.d

The following is my startup script.

#!/bin/bash
#
# Startup script for Jakarta Tomcat
#
# chkconfig: 345 84 16
# description: Jakarta Tomcat Java Servlet/JSP Container



TOMCAT_HOME=/usr/local/jakarta-tomcat-4.1.18
TOMCAT_START=/usr/local/jakarta-tomcat-4.1.18/bin/startup.sh
TOMCAT_STOP=/usr/local/jakarta-tomcat-4.1.18/bin/shutdown.sh

#Necessary environment variables
export CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.18
export JAVA_HOME=/usr/java/jdk1.4.1_02

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = no ]  exit 0

#Check for tomcat script
if [ ! -f $TOMCAT_HOME/bin/catalina.sh ]
then
echo Tomcat not available...
exit
fi

start() {
echo -n Starting Tomcat: 
daemon $TOMCAT_START
echo
touch /var/lock/subsys/tomcatd
# We may need to sleep here so it will be up for apache
#sleep 5
#Instead should check to see if apache is up by looking for http.pid
}

stop() {
echo -n $Shutting down Tomcat: 
daemon $TOMCAT_STOP
rm -f /var/lock/subsys/tomcatd.pid
echo
}

case $1 in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 3
start
;;
*)
echo Usage: tomcatd {start|stop|restart}
exit 1
esac

Can anyone help me out?. 
Thanks in advance,
kamaleshwaran sivalingam
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jsp page loading problem during startup

2003-12-10 Thread Romeo Dickason
Hi

We are facing a problem in Apache Tomcat 4.0.1. We want to load a jsp during
the load of the web application. So, we have specified that particular jsp
page in web.xml and given load-on-startup as 1. This is executing fine in
Tomcat 3.2.3 but not in 4.0.1. The Tomcat 4.0.1 is not loading that
particular page during the startup. Please let us know how to solve this
problem,  your help is really appreciated.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jsp page loading problem during startup

2003-12-10 Thread Bill Barker
This is a traditional Tomcat bug that comes back from the dead from time to
time ;-).  AFAIK, the load-on-startup wasn't working in 4.0.1 for JSPs.
You'll need to upgrade your Tomcat version to have this working correctly.

Romeo Dickason [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi

 We are facing a problem in Apache Tomcat 4.0.1. We want to load a jsp
during
 the load of the web application. So, we have specified that particular jsp
 page in web.xml and given load-on-startup as 1. This is executing fine in
 Tomcat 3.2.3 but not in 4.0.1. The Tomcat 4.0.1 is not loading that
 particular page during the startup. Please let us know how to solve this
 problem,  your help is really appreciated.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with startup

2003-01-02 Thread seemanto
hi

i am new to tomcat. The problem is i am not able to startup the server and 
it is exiting with an exception which says : Error loading server.xml.
I haven't touched server.xml after installation. what could be the problem.

bye


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




NT Service Problem for startup-servlet

2001-07-11 Thread abdur raheem

Hi all,
I make tomcat as NT service. Its working.
but i created a startup servlet and also made changes in web.xml
according to that.
but when i started thru net service the startup servlet is not loaded,
at the same i start Tomcat thru startup the startup-servlet
is working and i am getting results. In startup servlet i instanciated
Singleton objects, using Database tables of Oracle 8i and i am using
jdbcOdbcDriver.

whats the problem when i start thru service-applet?
plese help me.
thanks in advance

Raheem


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: NT Service Problem for startup-servlet

2001-07-11 Thread Alberto Torna Jr.

Compare the classpaths. Use Tomcat -env to view the complete classpath in that instance. Then modify the wrapper.properties and ensure all classpaths are correct. 


From: "abdur raheem" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
Subject: NT Service Problem for startup-servlet 
Date: Wed, 11 Jul 2001 13:02:36 - 
 
Hi all, 
I make tomcat as NT service. Its working. 
but i created a startup servlet and also made changes in web.xml 
according to that. 
but when i started thru net service the startup servlet is not 
loaded, 
at the same i start Tomcat thru "startup" the startup-servlet 
is working and i am getting results. In startup servlet i 
instanciated 
Singleton objects, using Database tables of Oracle 8i and i am using 
jdbcOdbcDriver. 
 
whats the problem when i start thru service-applet? 
plese help me. 
thanks in advance 
 
Raheem 
 
 
_ 
Get Your Private, Free E-mail from MSN Hotmail at 
http://www.hotmail.com. 
 
Get your FREE download of MSN Explorer at http://explorer.msn.com


Problem with startup

2000-11-17 Thread Devendra Gera


I get this out put when I run "tomcat run" from the dos promt -
"org\apache\tomcat\service\http\HttpConnectionHandle
java.lang.ClassnotFound Exception. I am running Windows 95 with JDK1.2
(defined java_home tomcat_home directories) Please answer my query at
[EMAIL PROTECTED]


Thanx,

Devendra Gera