Tomcat 4 rewrites server.xml when a new application are deployed throgh manager app

2004-08-19 Thread Johan Bång
Hi!
Im using ant to deploy my applications on a tomcat 4 server, and my 
server.xml are being rewritten
each time I deploy an application.

Is there any way to tell the manager application to _not_ modify my 
server.xml?

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


Deploying problem with ant and the manager application

2004-06-17 Thread Johan Bång
Hi
I'm trying to deploy a application using ANT but I don't get it to work.
I know that I'm doing som general error here, but since it's my first 
build.xml script I just couldn't figure it out.

My install task looks something like this:
target name=list
  description=List installed applications on servelet 
container.

listurl=${manager.url}
username=${manager.username}
password=${manager.password}
/
  /target
And I get the following error:
BUILD FAILED
file:/home/johan/development/javaxptest/build.xml:183: 
java.io.FileNotFoundException: 
jar:file:/home/johan/development/javaxptest/dist/xptest.war (No such 
file or directory)

But my script have created a xptest.war file in the directory so I 
don't know whats wrong.

Is it a permission error or what have I missed?
Please help
Regards, Johan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Whats the difference between Tomcat, Tomcat embedded and Tomcat Deplyer

2004-02-16 Thread Johan Bång
Hi!
There are three downloadable tomcat tarballs;
Tomcat,
Tomcat Embedded and
Tomcat Deployer (ment)
What is the difference between the versions?
I have tried to figure it out by my self, but I cant find any 
particular information about the differences.
I downloaded the files and there are some large differences between 
them.

Please explain for me or point me to some documentation

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


Trying to write my own startup script, but seems to missed something....

2004-01-15 Thread Johan Bång
Hi!
I am trying to write my own init script to tomcat 5 for Fedora Core 1
I have tryed to decode what the startup.sh, catalina.sh and 
setclasspath.sh
is doing, and I think that I have figured out some of it, but according 
to catalina.out
it isn't enought.

Could someone who knows how tomcat is support to start please tell me 
what I hacve done wrong?

I get this error message when I tries to start Tomcat:
Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/catalina/startup/Bootstrap

My .conf file, witch is supposed to set the nessesary env variables 
looks someting like this:
# Where the tomcat installations lives.
CATALINA_HOME=/home/johan/download/tomcat
CATALINA_BASE=/home/johan/download/tomcat
CATALINA_TMPDIR=/home/johan/download/tomcat/tmp

# Tomcat options. These are passed to Tomcat as-is.
CATALINA_OPTS=
# Java settings. If you use Sun's JDK, you might want to add -server 
here.
JAVA_HOME=/usr/java/j2sdk1.4.2_03
JAVA_OPTS=-server

# Classpath settings. You migth add your custom classes here.
CLASSPATH=
And the part of the init script, where the magic is suppose to happend:
# Get tomcat config options
. /etc/tomcat.conf
# Functions
start()
{
echo -n Starting tomcat: 
# Adding stuff to classpath
CLASSPATH=$JAVA_HOME/lib/tools.jar
CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar

CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/commons-logging-api.jar

JAVA_ENDORSED_DIRS=$CATALINA_HOME/common/endorsed

# Starting Tomcat
$JAVA_HOME/bin/java $JAVA_OPTS $CATALINA_OPTS \
-Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS -classpath 
$CLASSPATH \
-Dcatalina.base=$CATALINA_BASE \
-Dcatalina.home=$CATALINA_HOME \
-Djava.io.tmpdir=$CATALINA_TMPDIR \
org.apache.catalina.startup.Bootstrap $@ start \
 $CATALINA_BASE/logs/catalina.out 21 

echo $!  $CATALINA_PID

retun $RETVAL
}
Regards
Johan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Trying to compile jsvc from tomcat 5

2004-01-15 Thread Johan Bång
Hi!
I'm currently trying to compile jsvc witch are included in the binary 
release of Tomcat5
I'm following the instructions and the compilation ends without any 
errors, but nothing
happends when I try to execute the Tomcat.sh script (after I have 
updated it with my settings).

The only error message I get is:
 jsvc.exec error: Cannot find daemon loader 
org/apache/commons/daemon/support/DaemonLoader

But what I can see, is commons-daemon.jar included in the classpath  
($CATALINA_HOME/bin)

Have I missed someting?

Regards
Johan
-: Det är av misstagen man lär sig, om inte av andras så väl av egna. :-

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


Tomcat RPM for Fedora Core 1

2004-01-05 Thread Johan Bång
Hi everybody.
I'm a tomcat newbie, so I apologize if this question is sent to the 
wrong forum.
I'm looking for a good rpm for tomcat witch will work on Fedora Core 1.

Are there any official RedHat  rpms of tomcat?

I have done some extensive googling but haven't found any rpm package 
that feels
supported (will be updated). I found the jpackage website, but their 
tomcat rpm has
to many dependencies (in my opinion).

I bought Tomcat the definite guide from O´reilly, witch have a rpm 
download reference
who doesn't seems to work anymore.

The solution so far is to download the binary distribution and so I 
did, but I would
prefer an rpm installation. Especially when it comes to my deployment 
system.

Could someone please tell me where to find .rpms?

Thanks in advance
Johan
-: ...men du missförstår mig om du tror att det är öppet för 
diskussion. :-

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