RE: [offtopic] IDE for Tomcat?

2002-06-14 Thread John Niven

 -Original Message-
 From: Turner, John [mailto:[EMAIL PROTECTED]] 
 Sent: 13 June 2002 19:14
 To: 'Tomcat Users List'
 Subject: RE: [offtopic] IDE for Tomcat?
 
 
 
 Hi -
 
 This was just posted earlier today: http://www.netbeans.org/  
 It looks very promising, but I haven't worked with it.
 
 We're using Borland's JBuilder...it seems to be the most 
 neutral of the available options.  MSFT's Java IDE isn't 
 current anymore, as far as I know. 
 http://www.borland.com/jbuilder/  I believe  the personal 
 edition is free, but it might not have all the features you 
 are looking for.
 

Any features lacking from the freebie-version of JBuilder could probably be
replaced by Ant?  Personally, I use the Enterprise Edition of JBuilder, but
rarely use most of its built-in functionality - I let Ant take care of that.

Best wishes
John

 There's also things like MetroWerks CodeWarrior: 
 http://www.metrowerks.com/desktop/java/
 
 HTH
 
 John Turner
 
 [EMAIL PROTECTED]
 http://www.aas.com
 
 --
John Niven
Please reply through mailing list

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




RE: REMOVING EXAMPLES AND WEBDAV PERMANENTLY

2002-06-13 Thread John Niven

 -Original Message-
From:   Charles Sanders [mailto:[EMAIL PROTECTED]] 
Sent:   12 June 2002 21:59
To: Tomcat Users List (E-mail)
Subject:REMOVING EXAMPLES AND WEBDAV PERMANENTLY

I need some help with getting the paths to /examples and /webdav
removed at startup. I have tried removing all context from the server.xml
file and they still will display as installed and running under
/manager/list?. I can remove them manually with the /manager/remove?
command, but I don't want them installed on startup. Any help would be
greatly appreciated. 

Thanks,
Charles  File: ATT07261.txt  

Charles

Are the examples and webdav directories still in place below webapps?  If
so, you'll need to remove them: any directories under webapps have contexts
automatically generated at Tomcat-startup, even if you've removed the
Context... tags from server.xml.

Hope that helps,
John

 --
John Niven
Please reply through mailing list

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




RE: help me

2002-06-12 Thread John Niven

 -Original Message-
 From: siva murugan [mailto:[EMAIL PROTECTED]] 
 Sent: 12 June 2002 01:24
 To: [EMAIL PROTECTED]
 Subject: help me 
 
 
 Sir/Madam,
 
...snip...
 
  The JAVA_HOME environment variable is not defined
  This environment Variable is needed to run this
 program
  Using CATALINA_BASE:  ..
  Using CATALINA_HOME:  .. 
  Using CATALINA_TEMPDIR:  ..\temp
  Using JAVA_HOME:
  The System cannot find the file
 -Djava.endorsed.dirs=.
 
 So i tried to set the JAVA_HOME enviroment variable as 
 c:\jdk1.3\bin; Then i tried again, now also iam getting the 
 same error. What wrong? Please help me.. 
 

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt

* Set an environment variable JAVA_HOME to the pathname of the directory
  into which you installed the JDK release.

set JAVA_HOME=c:\jdk1.3


  Iam using 
   JAVA VERSION 1.3.01
   JAVA(TM)2 RUN TIMEENVIRONMENT, STANDARD EDITION
 (BUILD1.3.01)
   JAVA HOTSPOT(TM) CLIENT VM (BUILD 1.3.01, MIXED
 MODE)
 
  Waiting for a +ive and immediate mail from U
 Sir/Madam.
 
 Love,
 Siva
 

HTH
John

 --
John Niven
Please reply through mailing list

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




RE: Black magic Authentication Digest and JDBC Realm on Tomcat 4 .0.3

2002-06-12 Thread John Niven

 -Original Message-
 From: PATTUS Jean-Philippe [mailto:[EMAIL PROTECTED]] 
 Sent: 12 June 2002 14:49
 To: [EMAIL PROTECTED]
 Subject: TR: Black magic Authentication Digest and JDBC Realm 
 on Tomcat 4 .0.3 
 
 
 Nobody for my little pb, should i try black magic?
 
  -Message d'origine-
  De: PATTUS Jean-Philippe [SMTP:[EMAIL PROTECTED]]
  Date:   mercredi 12 juin 2002 10:46
  À:  [EMAIL PROTECTED]
  Objet:  Authentication Digest and  JDBC Realm on Tomcat 4.0.3
  
  Hello,
  I'm working on Tomcat 4.0.3.
  i'm trying to put an authentication on my web app,
  if the auth-method is BASIC and 
  the Realm is   
  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=oracle.jdbc.driver.OracleDriver
   connectionName=Name
   connectionPassword=Password
connectionURL=jdbc:oracle:thin:@host:1521:toto
userTable=userTable userNameCol=userNameCol 
  userCredCol=userCredCol
userRoleTable=userRole roleNameCol=roleNameCol /
  it works fine.
  But, if i replace BASIC by DIGEST, my authentication is KO. 
 I've seen in
  the
  code that
   JDBCRealm::getPassword() always return null!!!  
  

Just an idea (I don't know) but this could be by design - if getPassword()
returns the hased-password, it's a potential security risk (an attacker
would just need to hash a dictionary until they came across a matching
hash).

Not sure how JDBCRealm deals with this, though...sorry.

  How can i configure my Tomcat in order to have JDBC Realm 
 and Digest 
  authentication???
  
  Thanks
  

Well, don't know how useful I've been :(
Cheers
John

 --
John Niven
Please reply through mailing list

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




RE: id and password for Manager application?

2002-05-31 Thread John Niven

 -Original Message-
 From: Sandeep Contractor [mailto:[EMAIL PROTECTED]] 
 Sent: 31 May 2002 13:16
 To: [EMAIL PROTECTED]
 Subject: id and password for Manager application?
 
 
 what is id and password for Manager application?
 
 thanks,
 
 sandeep
 

Sandeep

You need to create your own - either use the MemoryRealm that Tomcat uses by
default, and add your chosen username and password (and role=manager) to
tomcat-users.xml in $CATALINA_HOME/conf, or configure and use a JDBC or JNDI
realm.

HTH,
John

 --
John Niven
Please reply through mailing list

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




RE: old load-on-startup tag

2002-05-31 Thread John Niven

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] 
 Sent: 31 May 2002 14:49
 To: Tomcat Users List
 Subject: RE: old load-on-startup tag
 
 
 
 ok that's help me..
 i have another problem. Tomcat crash probably because i have 
 a problem with the servlet which is loaded on startup. The 
 problem is that i can see the trace of the error because the 
 DOS window is closed automatically. How can i change this behaviour ?
 
 
Patrick

Two options:

1. Open up a DOS window (_DON'T_ double-click on startup.bat).  Change
directory (CD) to $CATALINA_HOME/bin.  Type catalina run.  Tomcat will run
as normal, but the DOS window won't disappear when Tomcat crashes.

2. Install Tomcat as an NT service (check the archives - there are numerous
posts on how to do this).  The messages you'd normally get in the DOS window
will now be logged to $CATALINA_HOME/logs/stderr.txt

HTH
John

 --
John Niven
Please reply through mailing list

 Patrick PIERRA
 Linedata Services Luxembourg
 00 352 29 56 65 282
 [EMAIL PROTECTED]
 

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




RE: Tomcat 4 install / config

2002-05-29 Thread John Niven

 -Original Message-
 From: Eric Etkin [mailto:[EMAIL PROTECTED]] 
 Sent: 29 May 2002 14:49
 To: 'Tomcat Users List'
 Subject: Tomcat 4 install / config
 
 
 Configuration:
 
 RH Linux 7.3
 Tomcat 4.1
 Apache 2.0
 
 Installations done via RPM for everything
 I have installed Apache, and it works fine (i.e I get the 
 default page) I installed Tomcat and all the related prerequisites.
 
 
 I cannot find the startup.sh file, I have looked everywhere.  
 Is it missing from my RPM somehow?  I tried running: tomcat4 
 start and it looks like it does something, but when I try to 
 browse to 127.0.0.1:8080 I get nothing.
 

Eric

Try 127.0.0.1:8180 - I believe some Linux RPMs of Tomcat use 8180 as the
default Tomcat port (YMMV).

 Any advice would be much appreciated.
 
 I'm a Linux Newbie, so please be gentle. :)

I suspect it's the Windows (l)users (like me) who need to ask that!!!

 
 Thanks!
 
 -Eric Etkin
 
 

Good luck,
John

 --
John Niven
Please reply through mailing list

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




RE: Tomcat 4 install / config

2002-05-29 Thread John Niven

 -Original Message-
 From: Eric Etkin [mailto:[EMAIL PROTECTED]] 
 Sent: 29 May 2002 14:57
 To: 'Tomcat Users List'
 Subject: RE: Tomcat 4 install / config
 
 
 I saw some of that on the newsgroups, that is surely worth 
 checking into.
 
 If I change the port in the server.xml file to port 80 will 
 Apache or Tomcat process the request?  Or will it be both??
 

Apache-Tomcat issues are -way- over my head, I'm afraid!  I know that
Tomcat can run off port 80 on its own, but when it's running off the back of
Apache?  I don't know.  Anyone else?

 Eric Etkin
 

Cheers
John

 --
John Niven
Please reply through mailing list

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




RE: startup problem

2002-05-29 Thread John Niven

 -Original Message-
 From: Sharifuddin Ahmed [mailto:[EMAIL PROTECTED]] 
 Sent: 29 May 2002 17:41
 To: [EMAIL PROTECTED]
 Subject: startup problem
 
 
 hello everyone i was wondering if anybody can help me.I have jdk1.3 
 installed in C:\program files\jdk1.3\bin
 
 In tomcat.bat i added  in the environment variables 
 
 SET JAVA_HOME=C=\PROGRAM FILES\jdk1.3\bin
 

Sharifuddin,

Change it to:
SET JAVA_HOME=C=\PROGRAM FILES\jdk1.3

 when startup at 
 
 C:\jakarta-tomcat-3.2.4\bin
 
 i get the error
 C:\jakarta-tomcat-3.2.4\binstartup
 Including all jars in c:\jakarta-tomcat-3.2.4\lib in your CLASSPATH.
 
 Using CLASSPATH: c:\jakarta-tomcat-3.2.4\classes;c:\jakarta-
 tomcat-3.2.4\lib\ant
 .jar;c:\jakarta-tomcat-3.2.4\lib\classes12.jar;c:\jakarta-tomcat-
 3.2.4\lib\crims
 on.jar;c:\jakarta-tomcat-3.2.4\lib\jasper.jar;c:\jakarta-tomcat-
 3.2.4\lib\jaxp.j
 ar;c:\jakarta-tomcat-3.2.4\lib\servlet.jar;c:\jakarta-tomcat-
 3.2.4\lib\webserver
 .jar;c:\jakarta-tomcat-3.2.4\lib\XALAN.JAR;c:\jakarta-tomcat-
 3.2.4\lib\XERCES.JA
 R;C:\Program Files\Oracle\JDeveloper 
 3.1\jdbc\lib\oracle8.1.6\classes12.zip;%cla
 sspath%;C:\Program Files\jdk1.3\classes
 
 Starting Tomcat in new window
 The system cannot find the file C:\Program Files\jdk1.3\bin\bin\java.
 C:\jakarta-tomcat-3.2.4\binc:
 
 Now the startup is a big problem because its looking for 2 
 directories 
 bin\bin
 
 Why is this so???
 

Because Tomcat is looking for the /bin directory in your Java install.
Reset your JAVA_HOME env variable, and all should be well.

Hope that helps,
John

 --
John Niven
Please reply through mailing list

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




RE: Re[2]: reloading with ant

2002-05-23 Thread John Niven

 -Original Message-
 From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
 Sent: 22 May 2002 16:59
 To: Tomcat Users List
 Subject: Re[2]: reloading with ant
 
 
 Hello John,
 
 I wouldn't mind see your working version even if it is 
 copy/pasted. At least we know that it works and can extend 
 from that example.
 

Jake

I've attached the build file, hope it's useful.

For folk new to this thread, it's basically the same build file that comes
in the sample app with Tomcat, but I've added tasks to:
(a) deploy, remove and list web-apps, based on the catalina-ant.jar that
comes with more recent builds of Tomcat.
(b) archive src, docs, and war. (into a zip file - I've not implemented the
targz target I mention in the comments).

 thanks,
 
 jake
 

No problem.
John


 --
John Niven
Please reply through mailing list




catalina-ant-build.xml
Description: Binary data

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


RE: Tomcat on Windows2000 as a service

2002-05-23 Thread John Niven

 -Original Message-
 From: Mohammed Omar [mailto:[EMAIL PROTECTED]] 
 Sent: 23 May 2002 13:55
 To: Tomcat Users List
 Subject: Re: Tomcat on Windows2000 as a service
 
 
 Check your %JAVA_HOME%\jre\bin\ directory - you may not 
 have a classic
  directory in it, you may have hotspot directory instead 
 (and I think 
  there are other possibilities, instead of classic/hotspot?)
 
 My Answer :
 --
 I have no hotspot nor classic directory in 
 %JAVA_HOME%\jre\bin\ , I have 2 folders called server and 
 client contains the jvm.dll ,  I used the server directory .
 

OK, I'm still on JDK1.2.2 - not used these but they sound right.  I suspect
server is the right one - anyone care to coment?

 
 If that doesn't work, I'd check that CATALINA_HOME and 
 JAVA_HOME are set
  correctly - from a command prompt
 
 My Answer :
 --
 They are set correctly

OK.

 
 
 I found that %CATALINA_HOME%\logs\stderr.log is empty .
 And the service is exist in the control panel , but can not 
 be started and give a message saying internal error upon 
 restarting it!!!
 
 Here it is my command again :
 
 C:\Tomcat\jakarta-tomcat-4.0.3\bintomcat.exe -install 
 ApacheTomcat %JAVA_HOME% \jre\bin\client\jvm.dll 

There seems to be a   [space] between %JAVA_HOME% and \jre on the 2nd
line...but I'm clutching at straws now.

 -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%J
 AVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% 
 -xrs -start org.apach e.catalina.Bootstrap -params start 
 -stop org.apache.catalina.startup.Bootstrap - params stop 
 -out %CATALINA_HOME%\logs\stderr.log The service was 
 successfully installed.

One final thing: if you can't get this to work from the command line there's
a product (Service+, I think) that will automate the process - I've not
used it, but it's been mentioned on this list.

 
 
 Any idea

Fast running out, I'm afraid!

Good luck,
John

 --
John Niven
Please reply through mailing list

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




RE: Tomcat on Windows2000 as a service

2002-05-23 Thread John Niven

 -Original Message-
 From: Mohammed Omar [mailto:[EMAIL PROTECTED]] 
 Sent: 23 May 2002 14:32
 To: Tomcat Users List
 Subject: Re: Tomcat on Windows2000 as a service
 
 
 Thanks for your help
 I downloaded Jk_nt_service ,  it solved all problems.
 

OK, my turn to ask for _your_ help!  What's jk-nt-service, and where can I
find it - I've had more than my fair share of problems trying to install
Tomcat as an NT service...!

 Thanks
 

Best wishes
John

 --
John Niven
Please reply through mailing list

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




RE: Tomcat on Windows2000 as a service

2002-05-22 Thread John Niven

 -Original Message-
 From: Mohammed Omar [mailto:[EMAIL PROTECTED]] 
 Sent: 22 May 2002 10:15
 To: Tomcat Users List
 Subject: Re: Tomcat on Windows2000 as a service
 
 
 Where I write that :
 
 
 %CATALINA_HOME%\bin\tomcat.exe -install ApacheTomcat  
 %JAVA_HOME%\jre\bin\classic\jvm.dll
  
 -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOM
 E%\lib\tools.
 j
  ar -Dcatalina.home=%CATALINA_HOME% -Xrs -start  
 org.apache.catalina.startup.Bootstrap -params start -stop  
 org.apache.catalina.startup.Bootstrap -params stop -out  
 %CATALINA_HOME%\logs\stderr.log
 
 Thanks
 
 

Mohammed

From a command prompt/console.  Click Start, Run, then type cmd.  At
the command prompt that will appear, type the long string from my earlier
posting.

Good luck!

John

 --
John Niven
Please reply through mailing list

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




RE: Tomcat on Windows2000 as a service

2002-05-22 Thread John Niven

 -Original Message-
 From: Mohammed Omar [mailto:[EMAIL PROTECTED]] 
 Sent: 22 May 2002 12:44
 To: Tomcat Users List
 Subject: Re: Tomcat on Windows2000 as a service
 
 
 I made that and the service exist now and i can stop and 
 start it ,  but i see that the stop and restart of the 
 service has no effect on Tomcat ,  wen i call a servlet from 
 IIS , it does not run untill I startup tomcat from its 
 startup command in the bin directory whether the service 
 started in the control panel or not .
 
 any idea!!
 

Mohammed

Check your %JAVA_HOME%\jre\bin\ directory - you may not have a classic
directory in it, you may have hotspot directory instead (and I think there
are other possibilities, instead of classic/hotspot?)  If so, change the
install line accordingly.

(Before changing the install script and re-installing the Tomcat service,
you'll first need to uninstall the service - use this:
%CATALINA_HOME%\bin\tomcat.exe -uninstall ApacheTomcat
)

If that doesn't work, I'd check that CATALINA_HOME and JAVA_HOME are set
correctly - from a command prompt, type:
echo %CATALINA_HOME%
(expected response: path to Tomcat)

echo %JAVA_HOME%
(expected response: path to JDK)

One final thing - you are running Tomcat 4+, aren't you?  If you're running
Tomcat 3 you'll need to replace CATALINA_HOME with TOMCAT_HOME - and
there may be other changes required.  Sorry, but the only times I've used
Tomcat 3 in anger is on Solaris.


 thanks
 

HTH!
John

 --
John Niven
Please reply through mailing list

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




RE: reloading with ant

2002-05-22 Thread John Niven

 -Original Message-
 From: Marc Logemann [mailto:[EMAIL PROTECTED]] 
 Sent: 22 May 2002 15:03
 To: [EMAIL PROTECTED]
 Subject: reloading with ant
 
 
 Hi,
 
 i just wanna ask if the following scenario is the best for 
 re-deploying WARs:
 
 I am doing my build task with ant and transfer the WAR file 
 of my application into the webapps folder of tomcat. Then i 
 do a GET task with ant in order to re-deploy it, exacltly i 
 would do a MANAGER REMOVE and MANAGER INSTALL with ant. I 
 could delete the existing appfolder before i do install, but 
 it should be the same.
 
 Are there any better routines for automatic re-deploy or hot-deploy? 
 
 Of course in order to do a manager remoce or manager install, 
 i have to edit the web.xml of the manager app in order not to 
 come up with basic http authentication or?
 
 I am quite sure that there must be tons of developers which 
 solved this problem cause the ANT-Tomcat workflow seems very common :)
 
 

Marc

Have you looked at the sample build.xml that comes with the sample webapp
with Tomcat?  I merged that with the catalina-ant tasks (using the Ant
script snippets in the manager-app howto) to create a generic build file
that I use for most web-app development.

Now I can deploy and remove my web-app during a build.  I also use a list
task just so I'm sure my web-app has been deployed!

I'd recommend you start by looking at these two files and seeing if you can
extend them to suit your needs.  If you're still having problems, let me
know, and I'll post my build.xml (mine, in that I did the
copying/pasting...!)

HTH
John

 --
John Niven
Please reply through mailing list

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




RE: Re[2]: reloading with ant

2002-05-22 Thread John Niven

 -Original Message-
 From: Jacob Kjome [mailto:[EMAIL PROTECTED]] 
 Sent: 22 May 2002 16:59
 To: Tomcat Users List
 Subject: Re[2]: reloading with ant
 
 
 Hello John,
 
 I wouldn't mind see your working version even if it is 
 copy/pasted. At least we know that it works and can extend 
 from that example.
 

No problem - thought it'll have to be tomorrow before I post it: it's at
home, and I'm not (yet!)

 thanks,
 
 jake
 

HTH
John

 --
John Niven
Please reply through mailing list

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




RE: WAR and server.xml

2002-05-22 Thread John Niven

 -Original Message-
 From: Mohammed Omar [mailto:[EMAIL PROTECTED]] 
 Sent: 22 May 2002 17:20
 To: Tomcat Users List
 Subject: WAR and server.xml
 
 
 Dear All
 I have a war file , and tomcat4 deployed it succefully after 
 restarting tomcat , and the application works well ,  but i 
 dont know why it is working well ? why should not I write a 
 context line for it in server.xml??!! how it works without 
 writing a context line in server.xml?!!
 

Mohammed

My understanding is that any web-app (even normal, non-war web-apps) that
are located in Tomcat's web-apps folder do not need to be declared in
server.xml: it's only when you have web-apps in non-standard places that you
need to state where they're located.

wars are either copied into the web-apps folder, and then picked up by
Tomcat when it starts, or deployed (by Tomcat's manager app) once Tomcat is
running.  Either way, they exist in the web-apps folder.

disclaimer I'm getting out of my depth here - can someone step up if
I've got this wrong?

 Thanks
 

HTH
John

 --
John Niven
Please reply through mailing list

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




RE: Tomcat on Windows2000 as a service

2002-05-21 Thread John Niven

 -Original Message-
 From: Mohammed Omar [mailto:[EMAIL PROTECTED]] 
 Sent: 21 May 2002 12:19
 To: [EMAIL PROTECTED]
 Subject: Tomcat on Windows2000 as a service
 
 
 Dear all
 
 I installed tomcat v4 on windows 2000 server from its zip 
 file , and i started it by the startup command in the bin 
 directory.  how i enable this installation to be a service ?
 
 thanks in advance
 
 waiting your reply
 
 

Mohammed

This worked for me, YMMV:

%CATALINA_HOME%\bin\tomcat.exe -install ApacheTomcat
%JAVA_HOME%\jre\bin\classic\jvm.dll
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.j
ar -Dcatalina.home=%CATALINA_HOME% -Xrs -start
org.apache.catalina.startup.Bootstrap -params start -stop
org.apache.catalina.startup.Bootstrap -params stop -out
%CATALINA_HOME%\logs\stderr.log

You need to enter this all as one line.  You may also need to change the
\classic\jvm.dll to \hotspot\jvm.dll - check the mailing list archive for
the exact details.

HTH
John

 --
John Niven
Please reply through mailing list

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




RE: which version ?

2002-05-20 Thread John Niven

 -Original Message-
 From: Paul Balanoiu [mailto:[EMAIL PROTECTED]] 
 Sent: 17 May 2001 15:32
 To: Tomcat Users List
 Subject: Re: which version ?
 
 
 It's not about using Tomcat 4.0.3 or 4.1.
 I always preffer to develop with the latest version of the 
 product (no matter which). Even more, I try to port (if there 
 are any changes) my code to the latest version as soon as 
 possible. This way I prevent future problems (it's easier to 
 require a newer version of a product to someone that uses 
 your code, than to tell him that you don't support the new 
 version he already has).
 
 Paul

Paul

Thanks for the explanation - makes sense to me.  I re-read my post and
realised how much it sounded like flame-bait - apologies for that...!

Cheers
John

 --
John Niven
Please reply through mailing list

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




RE: JDBCRealm and Oracle Not working

2002-05-20 Thread John Niven

 -Original Message-
 From: Chad Perry [mailto:[EMAIL PROTECTED]] 
 Sent: 20 May 2002 15:22
 To: [EMAIL PROTECTED]
 Subject: Re: JDBCRealm and Oracle Not working
 
 
 By default the drvier (classes12_01.jar) is placed in Apache 
 Tomcat 4.0\lib.
 
 I can connect to Oracle just fine in a JSP or servlet!
 
 It is the JDBCRealm functionality that is broken. :-(
 
 -Late
 

Chad

Tomcat 4.0.4b3?  I don't think JDBC Realm is broken (with Oracle 8.1.7) - I
think I've had it up and running, though I'll need to check - I've been
swapping various recent Tomcat's around recently (and I didn't hang around
4.0.4b3 long before moving to 4.1alpha...wanderlust I guess ;)  Certainly
JDBC Realm works with earlier versions, so I'd be surprised if it was
broken.

Sorry if this muddies rather than clarifies...

John

 --
John Niven
Please reply through mailing list

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




RE: ant task to know if a webapp is deployed

2002-05-20 Thread John Niven

-Original Message-
 From: Emerson Cargnin - MSA [mailto:[EMAIL PROTECTED]] 
 Sent: 20 May 2002 17:58
 To: Tomcat Users List
 Subject: ant task to know if a webapp is deployed
 
 Is there any form to make sure an webapp is deployed through ant tasks?
 How is the better approach to let my build file generic, i mean : never
giving me an error either the webapp is already 
 deployed or not.
 
 Emerson Cargnin - MSA
 SICREDI - Ramal 3358-4860

Emerson

It's not ideal, but I use the list task: I run ant list to check whether
the web-app is installed, if it is I run ant remove.  Then I run ant
deploy.  These tasks are copied verbatim from the examples in the
manager-app how-to.

Hopefully someone else will provide a custom task that sets a property if
the web-app is already deployed -- then I can copy that, too ;)

HTH
John

 --
John Niven
Please reply through mailing list

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




RE: Where must I put the code of my application?

2002-05-17 Thread John Niven

 -Original Message-
 From: Luca Ventura [mailto:[EMAIL PROTECTED]] 
 Sent: 17 May 2002 12:42
 To: tomcat-user; tomcat-dev
 Subject: Where must I put the code of my application?
 
 Hello!
 
 I have installed Tomcat 4  as servlet/jsp container and IIS 
 as Web Server. I developed a Web application and I want to 
 put it not in /webapps/examples folder of Tomcat but in 
 another folder, for example /webapps/myproject. The problem 
 is  that when I try to connect to it IIS redirects corretly 
 my request to Tomcat 4 (I have set the Web Server in this 
 way) but Tomcat says The requested resource 
 (/myproject/demo.jsp) is not available.. Why? I have read 
 that I have to modify the file server.xml file when I 
 develop a new application and add a new context...but in 
 which way? Can someone give me a working example please? I 
 tried to do it but unsuccessful :-(

Luca

You need to use something like this:

Context path=/atrmin
 docBase=c:\www\atrmin
 debug=99
 reloadable=true
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=atr_min_log.
  suffix=.txt
  timestamp=true /
/Context

path is the context part of the URL, the part that appears after the
domain/port: http://sepa:8180/atrmin;
docBase is the physical location in the file-system/
debug can be from 0 to 99: 0 logs minimal info, 99 logs everything.
Typically you'll use =0 for production servers and =99 for development
servers.
reloadable indicates to Tomcat whether you want the web-app to reload if a
new .war is deployed - I think?  I rarely use this: I get Ant to stop
Tomcat, delete the .war and web-app, then redeploy the web-app.
The Logger... / tag tells Tomcat how to handle logging within this
context:
prefix - what appears at the start of the logfile name.
suffix - what appears at the end of the logfile name.
timestamp - record date/time in the log.

 
 I hope someone can help me.

Well, I hope you find this useful.  Take a look at the examples context
definition, and any others in server.xml - that's what got me started.

 
 Thanks in advance.
 
 Luca
 

Good luck!
John

 --
John Niven
Please reply through mailing list

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

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




RE: customize error page ini Servlet

2002-05-17 Thread John Niven

 -Original Message-
 From: Vaneet Sharma [mailto:[EMAIL PROTECTED]] 
 Sent: 17 May 2002 13:16
 To: 'Tomcat Users List'
 Subject: RE: customize error page ini Servlet
 
 
 paul
   i am using servlets.. so tell me something i can put in my 
 servlet code 
  thankx
 

Vaneet
try {
...
} catch (Exception e) {
response.sendRedirect(errorURL);
}

Hope that's what you're after,
John

 --
John Niven
Please reply through mailing list

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




RE: which version ?

2002-05-17 Thread John Niven

 -Original Message-
 From: Paul Balanoiu [mailto:[EMAIL PROTECTED]] 
 Sent: 17 May 2001 15:03
 To: Tomcat Users List
 Subject: Re: which version ?
 
 
 4.1

Paul

Just out of curiosity, *why*?

At the moment, I'd be too wary to use 4.1 for production, though I've been
using it for dev for a while.

Note that I'm not flaming, just asking ;)

Cheers
John

 --
John Niven
Please reply through mailing list

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




RE: Where is catalina-ant.jar file?

2002-05-17 Thread John Niven

 -Original Message-
 From: Alex Colic [mailto:[EMAIL PROTECTED]] 
 Sent: 17 May 2002 15:29
 To: Tomcat
 Subject: Where is catalina-ant.jar file?
 
 
 Hi,
 
 I am going through the build instructions online and they 
 refer to catalina-ant.jar. I checked my install of tomcat 
 4.03 and I do not have that file.
 
 Any idea where I can get it?

Alex

catalina-ant.jar is in any nightly build.  I don't think it's made it
through to release builds yet, YMMV.

 
 Thanks
 
 Alex
 

Cheers
John

 --
John Niven
Please reply through mailing list

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




RE: Xerces Jar

2002-05-16 Thread John Niven

 -Original Message-
 From: Claude Montpetit [mailto:[EMAIL PROTECTED]] 
 Sent: 16 May 2002 16:54
 To: Tomcat Users List
 Subject: Re: Xerces Jar
 
 
 
 Yes, I had done that too. But I want to be able to only ship 
 a WAR file for my app. I do not want to make changes to the 
 standard Tomcat install. I can do this only in the 
 configuration described below.
 

Claude

You can build a war with applets anywhere in the web-app-tree - in fact, I
don't think war will care where your applets are: it'll treat them as just
another file.

HTH
John

 --

 --
John Niven
Please reply through mailing list

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




RE: Oracle 8.1.7 and TomCat 4.0.1

2002-05-15 Thread John Niven

 -Original Message-
 From: Bejaoui Sam [mailto:[EMAIL PROTECTED]] 
 Sent: 15 May 2002 14:57
 To: [EMAIL PROTECTED]
 Subject: Oracle 8.1.7 and TomCat 4.0.1
 
 
 Hi, I'm a student engaged in a school project and I use 
 Oracle 8i and the last release of TomCat.
 

Samir

I've been developing a system using Tomcat 4.0.x that links to an Oracle
8.1.7 db...

 I developped servlet that I want now to put in my servlet 
 engine. Unfortunetly, the access at the database didn't take 
 place. I suppose I have to configure something or maybe 
 integrate Apache and TomCat ...
 

Show us the servlet, or at least the bit the accesses the db.  Are you
getting any error messages?  Show them, too.  Check your logs, and send any
relevant sections.

You shouldn't need to configure anything, unless you want to use Oracle as a
Tomcat realm (user authentication).  However...do you have the Oracle
driver installed?  It's called classes12.zip, you should rename it to
classes12.jar and install it in ${webapp}/WEB-INF/lib (or in
${CATALINA_HOME}/common/lib or in ${CATALINA_HOME}/lib if you want all your
web-apps to access Oracle).

 I don't really know what I have to do ...
 Thamks for helps ...
 

For what it's worth, once you've got Tomcat and Oracle talking, it's
relatively painless from that point forwards...!

 Regards ...
 

Best of luck,
John

 BEJAOUI Samir
 Casa dello Studente 
 Stanza A 28
 Via Cesare Battisti
 98100 Messina
 ITALIA
 0039090713696
 


 --
John Niven
Please reply through mailing list

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




RE: Tomcat as automatic service in WinNT 4.0

2002-05-10 Thread John Niven

 -Original Message-
 From: Jayakumar P [mailto:[EMAIL PROTECTED]] 
 Sent: 10 May 2002 14:04
 To: Tomcat Users List; Rajesh Harikrishnan
 Subject: Re: Tomcat as automatic service in WinNT 4.0

 I'm using tomcat 4.0.2.
 Jk_ntservice..Does this work even for higher versions..
 

Jayakumar,

I've used the following code snippet to set up an NT service on NT4 (Tomcat
4.0...2?):

%CATALINA_HOME%\bin\tomcat.exe -install ApacheTomcat
%JAVA_HOME%\jre\bin\classic\jvm.dll
-Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.j
ar -Dcatalina.home=%CATALINA_HOME% -Xrs -start
org.apache.catalina.startup.Bootstrap -params start -stop
org.apache.catalina.startup.Bootstrap -params stop -out
%CATALINA_HOME%\logs\stderr.log

(That's all one line, by the way).

This code was taken from a website, URL published on this list a while ago
(sorry, I don't have it to hand).  To uninstall the service, use:

%CATALINA_HOME%\bin\tomcat.exe -uninstall ApacheTomcat

Obviously, you can replace ApacheTomcat with something else: I chose that
name because it then appeared near the beginning of the services list ;-)

There's a couple of caveats:
1. replace \jre\bin\classic\jvm.dll with \jre\bin\hotspot\jvm.dll if your
JDK is 1.3+.
2. my install constantly fails when I shut down the service -- I believe
(but I've not yet confirmed) that this is due to my CATALINA_HOME: I
installed Tomcat off x:\Program Files\ - I'd recommend installing Tomcat
somewhere with _no_spaces_ in the filepath.  Anecdotal evidence suggests
this is the cause of my shutdown problem.


 Jayakumar
 

Hope that helps,
John

 --
John Niven
Please reply through mailing list

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




RE: The Catalina installation path

2002-05-03 Thread John Niven

 -Original Message-
 From: Vernon Wu [mailto:[EMAIL PROTECTED]] 
 Sent: 2 May 2002 09:54
 To: Tomcat Users List
 Subject: Re: The Catalina installation path
 
 
 
 Thanks, Jake for your input.
 
 In fact, I had tried using Apache~1. (Indeed, it is on 
 Windows). It doesn't work. 

Vernon,
Have you tried Apache~2 etc?  If you have any other Apache software
installed (eg. the HTTP server) that would change the number after the ~.
There's a way to get the DOS 8.3 name of files, but it escapes me at the
moment - I tend to still use the 8.3 naming convention for Java stuff.

 
 If there is not solution, I have to uninstall and reinstall 
 using the zip file format.
 

I'd probably recommend this anyway - but I'm a little too paranoid when it
comes to software installers...!

Best of luck
John

 
 

 --
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: how to set application variable in tomcat

2002-05-01 Thread John Niven

 -Original Message-
 From: Deep Singh Bhau [mailto:[EMAIL PROTECTED]] 
 Sent: 1 May 2002 09:37
 To: [EMAIL PROTECTED]
 Subject: how to set application variable in tomcat
 

Hi Deep,

 
 
 could any one plz tell me how to set application variable in tomcat
 

jsp:useBean id=myAppVar scope=application
class=com.foobar.system.SystemProperties /

 Thanx in advance
 

HTH!
John

 regards,
 Deep
 


 --
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat service-- command line restart

2002-03-27 Thread John Niven

 -Original Message-
 From: John Roth [mailto:[EMAIL PROTECTED]] 
 Sent: 27 March 2002 14:12
 To: 'Tomcat Users List'
 Subject: RE: Tomcat service-- command line restart 
 
 
 You can do:
 net stop Tomcat
 net start Tomcat
 
 - assuming, of course that Tomcat is your service name.  I 
 have multiple instances on each server, so my names vary by 
 which instance.

John

I've currently got one Tomcat (4.0.3) instance on a server running as an NT
service.  The instance is shared by 2+ developers, and I've been thinking
about setting up a unique instance for each developer.  Ideally I'd like
each instance to run as a service - how easy is this to do?  Any
pointers/avoids that you can offer?

Cheers
John


 
 John
 
 
 

 --
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Who use Tomcat as a stand-alone server in production environm ent ?

2002-03-27 Thread John Niven

 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]] 
 Sent: 27 March 2002 15:40
 To: 'Tomcat Users List'
 Subject: RE: Who use Tomcat as a stand-alone server in 
 production environm ent ?
 

  -Original Message-
  From: Laurent Comte [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, March 27, 2002 11:17 AM
  To: Tomcat Users List
  Subject: RE: Who use Tomcat as a stand-alone server in production 
  environment ?
  
...
 
 
  
  But my question was : Who use Tomcat as a stand-alone server in a 
  production environment ?
 
 I don't, not do I know anyone who does.

We do - or are in the process of doing - though probably only as a temporary
measure.  I'll elaborate...

I've been working on an intranet application developed (by a different
development house) on Tomcat, then migrated to JRun.  It currently runs on
JRun/IIS.  The client has issues with JRun, and we're currently moving back
to Tomcat.  At the same time, we're moving towards a distributed model, with
Tomcat servers dotted over a WAN.  As only the application (a time recording
app) is hosted on the Tomcat servers, there's no longer any need for a
dedicated HTTP server, and for simplicity we're sticking to
standalone-Tomcat -- for the moment at least.

If the various regional offices decide to develop their own web-services,
it's highly likely we'd recommend that they use IIS or Apache with Tomcat
(the local boxes are all NT, but the client shares our concerns about IIS).

Hope this helps,
John


 
   Rand
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


 --
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: What is j_security_check?

2002-03-26 Thread John Niven

 -Original Message-
 From: Lee Kyon [mailto:[EMAIL PROTECTED]] 
 Sent: 26 March 2002 08:42
 To: 'Tomcat Users List'
 Subject: What is j_security_check?
 
 What exactly is j_security_check in the authentication 
 form? Built in security servlet? And if so is there any way 
 to modify or even look at it?

Lee

J_security_check is an authentication system, part of the servlet
specification.  Check out Tomcat's Realm documentation:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html

 
 Thanks
 
 Lee

Hope that helps,
John

 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: JSP Examples not working HTTP 500

2002-03-26 Thread John Niven

 -Original Message-
 From: balash hauser [mailto:[EMAIL PROTECTED]] 
 Sent: 26 March 2002 04:24
 To: [EMAIL PROTECTED]
 Subject: JSP Examples not working HTTP 500
 
 
 I just installed Tomcat 4.0.3 in my w2k pc. I can get
 to http://localhost:8080/index.html OK. But if I view
 the JSP Examples that came with the install (ie:
 http://localhost:8080/examples/jsp/dates/date.jsp)
 Im getting internal server error. Any clue?
 

Balash

Do the servlet examples work?  (JSPs are ultimately servlets, but Tomcat
compiles them first.  If normal servlets work you can narrow down the
problem to JSPs/compilation).

Also, what 500 error are you getting - do you get a complete stack dump?
Could you post it here?

If the 500 error on the browser isn't very detailed, try looking in Tomcat's
logs: CATALINA_HOME/logs.  I'd recommend you stop Tomcat, delete (or copy
into a different location) all the existing files, restart Tomcat, try the
index.html page (check the logs), try a servlet example (check the logs),
then try a JSP example (check the logs).  Post the log results here if you
can't follow them.

Good luck!
John

 
 
 __
 Do You Yahoo!?
 Yahoo! Movies - coverage of the 74th Academy Awards(r) 
http://movies.yahoo.com/


 --
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: installation of Tomcat 4.0

2002-03-20 Thread John Niven

Will

 -Original Message-
 From: Kwan, William [mailto:[EMAIL PROTECTED]] 
 Sent: 19 March 2002 18:28
 To: 'Tomcat Users List'
 Subject: RE: installation of Tomcat 4.0
 
 
 John,
 
 Alexander suggested that and I tried that but get an error message:
 
  C:\catalina debug start
  Using CATALINA_BASE:   C:\JAVA\APACHE TOMCAT 4.0
  Using CATALINA_HOME:   C:\JAVA\APACHE TOMCAT 4.0
  Using CATALINA_TMPDIR: C:\JAVA\APACHE TOMCAT 4.0\temp
  Using JAVA_HOME:   C:\JAVA\JDK1.3.1_02
  Initializing jdb...
  tomcat
  Command 'tomcat' is not valid until the VM is started with 
 the 'run' 
  command run
  run org.apache.catalina.startup.Bootstrap start start
  
  VM Started:
  Exception occurred: java.lang.NoClassDefFoundError (uncaught) 
  thread=main, 
  org.apache.catalina.loader.StandardClassLoader.findClass(), 
 line=670,
 bci=179
 
 any ideas what the error message means??
 

I'm not entirely sure -- see my earlier posting in which I mention I'm out
of my depth! -- but I believe that an essential .jar isn't being picked up
by Tomcat - either because it's not on the classpath, or it's been
corrupted, or some thing similar.

One thing I've noticed in your classpath (which may well not solve the
problem...) is that C:\java\jdk1.3.1_02 is used along with %JAVA_HOME% -
it might be worth replacing one with t'other, seeing if that either solves
the problem or makes it worse.  I can't promise this will work, but it's
something I'd try.

I'm still curious about the error message - when I've had problems with
NoClassDefFound (and believe me, I've had a few...!) I typically don't see
and line numbers offered - I guess this is because you're using the -debug
switch?  If you've got access to the source code you could take a look at
the offending line and see if that sheds any light?

Best of luck
John

 My classpath is:  
 
 C:\JAVA\APACHE TOMCAT 
 4.0\BIN\bootstrap.jar;C:\JAVA\JDK1.3.1_02\LIB\;C:\JAVA\JDK1.3.
 1_02\jre;c:\ja
 va\jdk1.3.1_02;%JAVA_HOME%\BIN;%CATALINA_HOME%\BIN
 
 My Path is:
 
 c:\java\apache tomcat 4.0\bin;C:\Program Files\Seagate 
 Software\NOTES\; C:\Program Files\Seagate 
 Software\NOTES\DATA\;%SystemRoot%\system32;%SystemRoot%;%Syste
 mRoot%\System3
 2\Wbem;C:\MSSQL7\BINN;C:\Program Files\Microsoft SQL 
 Server\80\Tools\BINN;c:\java\jdk1.3.1_02\bin
 
 thanks for you help.
 Will
 
 
 -Original Message-
 From: John Niven [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, March 19, 2002 9:54 AM
 To: 'Tomcat Users List'
 Subject: RE: installation of Tomcat 4.0
 
 
  -Original Message-
  From: Kwan, William [mailto:[EMAIL PROTECTED]]
  Sent: 19 March 2002 17:06
  To: 'Tomcat Users List'
  Subject: RE: installation of Tomcat 4.0
  
  
  Raj,
  
  I did do that.  I kept the directory names the same except by
  putting it in a directory called java.  Everytime I try to 
  start tomcat, a dos window appears and then a few seconds, it 
  disappears.  I check the services and I couldnt start tomcat 
  there either.
  
  Will
  
  
 Will
 
 Instead of starting Tomcat by double-clicking on startup.bat, 
 open up a console and start Tomcat manually: 
 C:\%CATALINA_HOME%\bin\catalina run Tomcat won't open a DOS 
 box that promptly shuts, and you'll get a chance to see the 
 error msg (without having to wade through reams of unfamiliar 
 logs, as I had too...)
 
 Good luck
 John
 
  --
 John Niven
 Please reply through mailing list
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Multiple Tomcat 4.0.2 instances

2002-03-20 Thread John Niven

 -Original Message-
 From: Chris Ruegger [mailto:[EMAIL PROTECTED]] 
 Sent: 20 March 2002 17:11
 To: [EMAIL PROTECTED]
 Subject: Multiple Tomcat 4.0.2 instances
 
 
 I should have been more specific earlier. I'm running Tomcat 
 4.0.2 and interested in setting up multiple instances on one 
 machine. Any references greatly appreciated! -Chris
 
Chris

I've been skim-reading this thread so far, only just now read it properly.

I contributed to a recent thread on this topic:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg46851.html

We were talking, I think, about Tomcat 4 in general, but my specific
experience was (then) with Tomcat 4.0.2.  (Since then I've repeated the
process on 4.0.3).

Sorry to be basic, but have you located/read CATALINA_HOME/running.txt?  I
used that as the basis for my experiments with multiple instances.

Best of luck
John

 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: installation of Tomcat 4.0

2002-03-19 Thread John Niven

 -Original Message-
 From: Kwan, William [mailto:[EMAIL PROTECTED]] 
 Sent: 19 March 2002 17:06
 To: 'Tomcat Users List'
 Subject: RE: installation of Tomcat 4.0
 
 
 Raj,
 
 I did do that.  I kept the directory names the same except by 
 putting it in a directory called java.  Everytime I try to 
 start tomcat, a dos window appears and then a few seconds, it 
 disappears.  I check the services and I couldnt start tomcat 
 there either.
 
 Will
 
 
Will

Instead of starting Tomcat by double-clicking on startup.bat, open up a
console and start Tomcat manually:
C:\%CATALINA_HOME%\bin\catalina run
Tomcat won't open a DOS box that promptly shuts, and you'll get a chance to
see the error msg (without having to wade through reams of unfamiliar logs,
as I had too...)

Good luck
John

 --
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: installation of Tomcat 4.0

2002-03-19 Thread John Niven

 -Original Message-
 From: Alexander Reifinger [mailto:[EMAIL PROTECTED]] 
 Sent: 19 March 2002 17:57
 To: Tomcat Users List
 Subject: AW: installation of Tomcat 4.0
 
 
 Ermmm - He does not seem to find some class. Anyone else please...

Ermmm is right -- I'm out of my depth.  I'm concerned at the error msg too:
is that normal?  That's why I was suggesting stripping away the catalina
debug start to the bare minimum: catalina or catalina run.  As to what
class is missing, I'd not want to chance a guess... :(

John

 
 Alexander
 
  I did try it and here is what i get:
 
  C:\catalina debug start
  Using CATALINA_BASE:   C:\JAVA\APACHE TOMCAT 4.0
  Using CATALINA_HOME:   C:\JAVA\APACHE TOMCAT 4.0
  Using CATALINA_TMPDIR: C:\JAVA\APACHE TOMCAT 4.0\temp
  Using JAVA_HOME:   C:\JAVA\JDK1.3.1_02
  Initializing jdb...
   tomcat
  Command 'tomcat' is not valid until the VM is started with 
 the 'run' 
  command
   run
  run org.apache.catalina.startup.Bootstrap start start
  
  VM Started:
  Exception occurred: java.lang.NoClassDefFoundError (uncaught) 
  thread=main, org
  .apache.catalina.loader.StandardClassLoader.findClass(), 
 line=670, bci=179
  any ideas??
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Lib placement problem

2002-03-18 Thread John Niven

 -Original Message-
 From: Alexander Reifinger [mailto:[EMAIL PROTECTED]] 
 Sent: 18 March 2002 13:08
 To: Tomcat Users List
 Subject: Lib placement problem
 
 
 Hello all,
 
 In our JSP application I included an dynamic output as PDF, 
 done via Cocoon on tomcat 3.2.
 
 This has worked once, but somehow does not anymore. After 
 fiddling around and reading FAQ's and so on I decided to try 
 Cocoon 2 and Tomcat 4, but could not get it to work again.
 
 Anyway, right now I am back to cocoon 1.8.2 on tomcat 4.0.3 
 and I seem to be stuck to the following error message no 
 matter what I try:
 
Alexander

Have you tried _both_ /server/lib and /ROOT/lib?  I believe there's a
documented issue with Tomcat 4 earlier than 4.0.4 that's resolved by placing
jars in both the server-only /lib folder (/server/lib), and in the
web-apps-only /lib folder (/lib).

Disclaimer: this is from recollection, and a recent problem I had porting a
site to Tomcat (from Jrun 3.0).  Your milage may vary, I'd appreciate it if
someone with more knowledge than me added comments if I've got it wrong...

Best of luck,
John

 java.lang.RuntimeException: Error loading logicsheet at 
 resource://org/apache/cocoon/processor/xsp/library/java/util.x
 sl due to
 java.lang.Exception: Resource not found or retrieving error.
   at 
 org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor
 .java:302)
 [...]
 at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
 [...]
 
 This util.xsl is included in the cocoon.jar, which he 
 obviously found, as the Cocoon.init() line shows.
 
 I thought it might have something to do with the placement of 
 the jars (in WEB-INF/lib, in tomcat/lib, in 
 tomcat/common/lib...), but the error shows no matter where I 
 place the jars. Also renaming cocoon.jar to acocoon.jar or 
 zcocoon.jar to try to alter its position in the Classpath 
 does not change anything.
 
 What else could I look at to find what's going wrong? I was 
 wondering whether to post this here or in the cocoon list, 
 but I think it has something to do with a problem in (my 
 understanding of) searching the classpath so I decided to 
 post it here. In case you think this was a wrong decision, 
 tell me so and I will contact the cocoon group.
 
 Thanks in advance,
 Alexander Reifinger
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: MOVED TO TOMCAT

2002-03-15 Thread John Niven

 -Original Message-
 From: Rodrigo Gonzalez Asensio [mailto:[EMAIL PROTECTED]] 
 Sent: 14 March 2002 19:35
 To: [EMAIL PROTECTED]
 Subject: MOVED TO TOMCAT
 
 
 TODAY, I DECIDED MOVE TO TOMCAT FROM SERVLETEXEC.
 I HAVE DEVELOPED SEVERAL WEBAPPS BASED ON A SERVLETCENTRAL.
 I HAVE DETERMINED MY ROOT DIRECTORIES AND FILES LOCATIONS.
 
 MY DOUBT:
 HOW CAN I POINT THE ROOT OF TOMCAT TO MY 
 c:\RGA\WEBAPPS\DEFAULT ??? In server.xml ??? What tag.

Rodrigo,

You're correct, it's the /conf/server.xml file:

!-- ... Code snipped ... --
  !-- Define the default virtual host --
  Host name=localhost debug=0 appBase=webapps unpackWARs=true

!-- ... Code snipped ... --

!-- Tomcat Root Context --
!--
  Context path= docBase=F:\Sites\ROOT debug=0/
--

!-- Rodrigo Context --
!-- === --
Context path=/rodrigo
 docBase=F:\Sites\rodrigo
 debug=99
 reloadable=true
/Context

!-- ... Code snipped ... --
  /Host
!-- ... Code snipped ... --

Docs: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html

 
 Tks!!

No probs -- but check the documentation, it's pretty thorough.

Cheers
John

 
 --- 
 
 Rodrigo Gonzalez Asensio
 División de Ingeniería - Platino - GUI Development
 Gilbarco Latin America
 Congreso 3450 - C1430AZD Buenos Aires - Argentina
 TE: +54 (11) 5167-5634 - +54 (11) 4545-5600 (x 5634)
 

 --
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How to run tomcat as service program in Win2k

2002-03-14 Thread John Niven

 -Original Message-
 From: Galbayar [mailto:[EMAIL PROTECTED]] 
 Sent: 14 March 2002 09:38
 To: Tomcat Users List
 Subject: Re: How to run tomcat as service program in Win2k
 
 
 which kind your Tomcat and jdk version?

Tomcat 3.2 up through to 4.0.3, all with jdk 1.2.2 (I really should migrate
that app to jdk 1.4...)  I've always installed from a zip, but from what I
can gather, there's an exe version of Tomcat, that offers the option to
install Tomcat as a service.  

John

 - Original Message -
 From: Xiao Juguang [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, March 13, 2002 15:25
 Subject: Re: How to run tomcat as service program in Win2k
 
 
  I think you are careless when installing. There is an option to make
 Tomcat
  as Windows NT Service.
 

 --
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Multiple instancess of Tomcat on the same machine.

2002-03-13 Thread John Niven

 -Original Message-
 From: Venkatesh Sangam [mailto:[EMAIL PROTECTED]] 
 Sent: 12 March 2002 19:55
 To: Tomcat Users List
 Subject: Multiple instancess of Tomcat on the same machine.

Venkatesh -

 
 
 hi,
 
 I am running an experimental setup for Load balaning on the 
 webservers. I am using Tomcat as the webserver. For this 
 experimental setup,I will be running multiple instances of 
 Tomcat on the same machine(listening on differnt ports).

This isn't strictly necessary, you could use one copy and still have
multiple instances, but I guess since you'll ultimately be using multiple
copies on multiple machines this makes sense.

 I 
 have multiple copies of Tomcat stored on the same machine. 
 The default port is 8080. I will make the other instances of 
 tomcat run on differnt ports.
 
 Is this the only change required or do I have to make any 
 other changes. As I was going thorugh the Server.xml file, I 
 see different other ports specified like Port 8443, 
 8009(Ajp13Connector). I am using Non SSL Http.

Any ports that are being used will need to be changed.  If you're just using
Tomcat-Standalone, and not using SSL, then you should comment-out or remove
references to these ports.

Disclaimer: I'm not far away from being a newbie.  Please, someone chime in
if I've got this bit wrong.

 
 Please advise.
 
 Thanks,
 Venkatesh.
 

No probs!
John

 
 Venkatesh Sangam, 
   
 Research Assistant,   
  
 Dept. of Computer Science,

 Arizona State University

--
John Niven
Please reply via mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How to run tomcat as service program in Win2k

2002-03-13 Thread John Niven

 -Original Message-
 From: Xiao Juguang [mailto:[EMAIL PROTECTED]] 
 Sent: 13 March 2002 07:25
 To: Tomcat Users List
 Subject: Re: How to run tomcat as service program in Win2k
 
 
 I think you are careless when installing. There is an option 
 to make Tomcat as Windows NT Service.
 

I've got to admit I missed it too, but found instructions later:

Enter the following at a command prompt (it's all one line, but I've added
carriage returns here for legibility):

%CATALINA_HOME%\bin\tomcat.exe
 -install Tomcat 
%JAVA_HOME%\jre\bin\classic\jvm.dll 
 -Djava.class.path=
%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
 -Dcatalina.home=%CATALINA_HOME%
 -Xrs 
 -start org.apache.catalina.startup.Bootstrap -params start 
 -stop org.apache.catalina.startup.Bootstrap -params stop 
 -out %CATALINA_HOME%\logs\stderr.log

I got these instructions from a URL posted here recently - a search of the
archives should show it up.  The only change I had to make was the path to
jvm.dll - I'm using JDK1.2.2 and had to change to ...jre\bin\classic\...
from ...jre\bin\hotspot\

Incidentally, and this is probably my ignorance showing here, I can start
the service fine, but it spews an error when I shut it down (though it shuts
down fine apart from the error).  Does anyone have any idea what I've done
wrong?

Cheers
John

--
John Niven
Please reply through mailing list

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How to run tomcat as service program in Win2k

2002-03-13 Thread John Niven

 -Original Message-
 From: John Niven [mailto:[EMAIL PROTECTED]] 
 Sent: 13 March 2002 15:43
 To: 'Tomcat Users List'
 Subject: RE: How to run tomcat as service program in Win2k
 

Oops.  A bit of investigation and I answer my own question - ain't it always
the way...

There's a problem with the code I posted earlier - the correct version is:

%CATALINA_HOME%\bin\tomcat.exe
 -install Tomcat 
%JAVA_HOME%\jre\bin\classic\jvm.dll 
 -Djava.class.path=
%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
 -Dcatalina.home=%CATALINA_HOME%
 -Xrs 
 -start org.apache.catalina.startup.Bootstrap -params start 
 -stop org.apache.catalina.startup.Bootstrap -params stop 
 -out %CATALINA_HOME%\logs\stderr.log

Note the position of the final '' in the last line.  This is why I had
problems shutting down the service.

Hope this clarifies/helps,
John

 ...
 
 %CATALINA_HOME%\bin\tomcat.exe
  -install Tomcat 
 %JAVA_HOME%\jre\bin\classic\jvm.dll 
  -Djava.class.path=
 %CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
  -Dcatalina.home=%CATALINA_HOME%
  -Xrs 
  -start org.apache.catalina.startup.Bootstrap -params start 
  -stop org.apache.catalina.startup.Bootstrap -params stop 
  -out %CATALINA_HOME%\logs\stderr.log
 
 ...
 
 Incidentally, and this is probably my ignorance showing here, 
 I can start
 the service fine, but it spews an error when I shut it down 
 (though it shuts
 down fine apart from the error).  Does anyone have any idea 
 what I've done
 wrong?
 
 Cheers
 John
 
 --
 John Niven
 Please reply through mailing list
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tc4-- multiple catalina bases, one binary

2002-03-05 Thread John Niven

 -Original Message-
 From: Rami Friedman [mailto:[EMAIL PROTECTED]] 
 Sent: 4 March 2002 18:59
 To: [EMAIL PROTECTED]
 Subject: tc4-- multiple catalina bases, one binary
 
 
 
 Hi.

Hi Rami

 
 I'm trying to create an environment in which many developers 
 can develop on a single instance of tomcat on a single host.  
 I've written a script that sets each user's CATALINA_BASE 
 appropriately and creates the webapps and conf directories 
 under the respective base dirs.  It also assigns a unique 
 port to each developer and puts that port in the developer's 
 server.xml (port attribute of the Connector element).
 
 My problem is that the startup.sh and shutdown.sh scripts for 
 any given developer appear to be starting and stopping the 
 entire tomcat instance-- not just the connector listening on 
 the developer's assigned port.
 

What do the generated startup.sh and shutdown.sh look like?  I presume that
they referenece the correct ports?

 
 What am I doing wrong?
 
 Thanks.
 

Cheers
John

 
 (BTW, I did search the archives before posting this question.)
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat waiting in linux

2002-02-28 Thread John Niven

Robert

 -Original Message-
 From: tlug [mailto:[EMAIL PROTECTED]] 
 Sent: 27 February 2002 21:21
 To: [EMAIL PROTECTED]
 Subject: tomcat waiting in linux
 
 I am running
   Java 1.4 from sun for linux
  RedHat 7.2
  and TomCat 4.0.2 from the rpm file
 
 I get the following message on my screen
 Using CATALINA_BASE:   /var/tomcat4
 Using CATALINA_HOME:   /var/tomcat4
 Using CATALINA_TMPDIR: /var/tomcat4/temp
 Using JAVA_HOME:   /usr/java/j2sdk1.4.0
 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.2
 Starting service Tomcat-Apache
 Apache Tomcat/4.0.2
That looks OK to my newbie-ish eyes.  Put another way, that's what I get on
a Windows box, and my setup works OK.

 which looks wrong since I am trying to run it just 
 Standalone.  Does it come pre configured to run with apache?
I'll defer answering that to someone who knows what they're talking about ;)
but like I say, I get the Starting servive Tomcat-Apache lines on my
console at startup.

 I load up Konqueror and goto http://localhost:8080/ and 
 http://127.0.0.1:8080/ which comes back with  cannot connect 
 to localhost port 8080.  Tomcat should work fine with the 
 above verisons right?
You mentioned you installed Tomcat from the RPM?  If so, I think you may
need to use port 8180, not 8080 - check the archives.  Based on the
Starting services... messages above, I think Tomcat is running OK.  I'm
not a *nix person - is there a handy command to list activity on all ports
that you could run?  Check if there's an unusual port active in the 8000's
range.

 Thanks,
 Robert
Hope that helps,
John

--
John Niven
Reply via Mailing List
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: tomcat waiting in linux

2002-02-28 Thread John Niven

Swamy

 -Original Message-
 From: Thutika, Swamy [mailto:[EMAIL PROTECTED]] 
 Sent: 28 February 2002 16:35
 To: 'Tomcat Users List'
 Subject: RE: tomcat waiting in linux
 
  I used to get the same display when i run the tomcat33a / 
 tomact402. I removed the  Apache service set up from 
 server.xml. Everything works fine even after that.  My 
 feeling is that the examples erver.xml has this server 
 predfeined within it.
I suspect you're right - my attitude (as a newbie grateful just to get it
working) has tended to be: if it works, don't try and fix it!  I should
probably try pruning my server.xml file...

 
  HTH,
  Swamy  
 

Many thanks!
John

--
John Niven
Reply via Mailing List

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: 2 instance of tomcat within 1 machine

2002-02-27 Thread John Niven

Hi Jason

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: 27 February 2002 03:25
 To: Tomcat Users List
 Subject: RE: 2 instance of tomcat within 1 machine
 
 
 
 John,
 
 Could you please post the contents of you server.xml?

Will do - I had promised I'd do it today, but I still don't have copies of
the files.  FWIW, Sriram Narayanan's post filled in most of the gaps from my
post.  I appreciate it's often better to see a complete file, though, so
I'll get a copy to the list.

 I'm 
 trying to do exactly what you've done with only 2 tomcat 
 instances and am having difficulty.  Also, I'm confused at 
 which tomcat subdirectories needed to be present in each 
 CATALINA_BASE directory. The running.txt file mentions the 
 conf, logs, webapps, and work directories but you mention 
 having to edit the catalina.bat file (in the bin 
 sub-directory) for each instance. So the bin directory is 
 needed to be copied as well?

I'd consider the bin directory optional - I added it as a convenience,
because there's no way on earth I'm ever going to remember individual port
numbers!  Having easy access to a statup script makes life a lot easier.
Apart from the bin directory, the only other directories I've got are those
detailed on running.txt: conf, logs, webapps, and work.

 
 Thanks,
 
 Jason Brawner
 

Apologies for not being better organised today... ;( ... And good luck!

Cheers
John

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: 2 instance of tomcat within 1 machine

2002-02-27 Thread John Niven

Hi Keith

Received and understood...!  It's likely to be tomorrow/this evening before
I manage it -- I've stupidly forgotten to bring copies into work...sorry
about that.

Cheers
John

 -Original Message-
 From: Keith Ng [mailto:[EMAIL PROTECTED]] 
 Sent: 3 March 2002 07:50
 To: Tomcat Users List
 Subject: RE: 2 instance of tomcat within 1 machine
 
 
 John would u pls send me yr copy of the bat file? Thank...
 
 -Original Message-
 From: John Niven [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 26, 2002 9:49 PM
 To: 'Tomcat Users List'
 Subject: RE: 2 instance of tomcat within 1 machine
 
 
 Hi Keith (response inline)
 
 This is supplementary info to Remy's: I think we've both got 
 different set-ups.
 
  -Original Message-
  From: Keith Ng [mailto:[EMAIL PROTECTED]]
  Sent: 2 March 2002 11:40
  To: Tomcat Users List
  Subject: RE: 2 instance of tomcat within 1 machine
 
 
  Which version of tomcat are u using?
  im using 4.0.2
 
 
 I've recently got 5 instances running on one 'lil-ole 
 workstation, used for personal development work.  My goal was 
 to have multiple instances that I could mess around with, 
 without destroying the live (documentation, examples, etc) server.
 
  how did u configure? Must i have more then 1 copy of tomcat?
 
 No. I've installed tomcat (4.0.2) on my D: drive (should have 
 said: Windows 2000 Pro, 2 hard-drives with multiple 
 partitions - D: is apps, I: is
 development) and the various instances on my I: drive:
 
 CATALINA_HOME:
 D:\tomcat\
 CATALINA_BASEs:
 i:\tomcat-servers\server01\
 i:\tomcat-servers\server02\
 i:\tomcat-servers\server03\
 etc
 
 Follow the instructions in running.txt for which directories 
 to copy - I'm at work just now (JRun ;-( ) but off-hand I 
 think it's bin, conf, lib  webapps.  Within /conf, you need 
 to edit server.xml so the various ports don't conflict.  Eg. 
 if the CATALINA_HOME/conf/server.xml uses port 8080, 
 /server01/conf/server.xml could be 8081 for example.  There 
 are three locations in the server.xml which I edited - I 
 don't have the file to hand at the moment, but if you'd like 
 a copy I can post it tonight/tomorrow.
 
 Once you've created the directory heirarchy, and edited the 
 server.xml files, you should be able to start your new 
 instances from the command line/shell.  I'm lazy, so I just 
 edited the catalina.bat files in /server0x/bin/ to set 
 CATALINA_BASE and CATALINA_HOME - again, if you'd like a copy 
 I'll post it tomorrow.
 
  I really dunno... pls help
 
 
 
 Basically, most of the info is in running.txt from your 
 Tomcat install.  I found the only real gotcha was that I 
 needed to renumber the ports.  Once I'd got that sorted out 
 the rest was plain sailing ;)
 
 Best of luck, and if you're still stuck let me know and I'll 
 post files.
 
 Cheers
 John
 
 --
 John Niven
 Reply via mailing-list.
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: 2 instance of tomcat within 1 machine

2002-02-27 Thread John Niven

Hi Jason, Keith

Attached are 2 copies of my server.xml. One's from D:\Program Files\Apache
Group\jakarta-tomcat-4.0.2\conf, which is down from my CATALINA_HOME.  The
other is from I:\tomcat-servers\server01\conf.  In this 2nd server.sml
you'll notice that I:\tomcat-servers\server01 is set up to be CATALINA_BASE
for that server.

The important parts are highlighted in the 2nd server.xml file:

!--
**
--
Server port=8010 shutdown=SHUTDOWN debug=0
!--
**
--
...
!--
**
--
!--server00: 8080 / 8443
server01: 8081 / 8444
server02: 8082 / 8445
server03: 8083 / 8446
server04: 8084 / 8447
--
!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.catalina.connector.http.HttpConnector
   port=8081 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8444
   acceptCount=10 debug=0 connectionTimeout=6/
!-- Note : To disable connection timeouts, set connectionTimeout value 
 to -1 --
!--
**
--
...
!--
**
--
Connector className=org.apache.catalina.connector.warp.WarpConnector
 port=8011 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0/
!--
**
--

I incremented the http connector port and redirect port by 1 for each new
server (as you can see from the server01:  /  list in the comment).
The other ports were all incremented by 5.  I settled on this by
trial-and-error; it works for me but isn't necessarily the best way to do
it.  Sriram Narayanan posted earlier in this thread, and it seemed to me
that he had a better set-up than me, and had managed to cut out bits that I
didn't need (but had left in anyway).  Naturally, I'd welcome suggestions as
to anything I can strip out of my own server.xml files - I'm running Tomcat
standalone.

One last thing, I've added /bin into my server instances hierarchy.  This is
purely for convenience: I've copied in the startup, shutdown and catalina
scripts, and then edited the catalina script.  (I'm on Windows, *nix users
will need to adapt accordingly).  I've added this to the top of my catalina
script:

rem *** start additions ***
echo tomcat server01
@echo off
set CATALINA_BASE=I:\tomcat-servers\server01
set CATALINA_HOME=D:\Program Files\Apache Group\jakarta-tomcat-4.0.2
rem *** end additions ***

Obviously, you'll need to alter CATALINA_BASE for each server instance.

Hope this helps,
John

--
John Niven
(Please reply through mailing list)




server.xml
Description: Binary data


server.xml
Description: Binary data

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


RE: 2 instance of tomcat within 1 machine

2002-02-26 Thread John Niven

Hi Keith (response inline)

This is supplementary info to Remy's: I think we've both got different
set-ups.

 -Original Message-
 From: Keith Ng [mailto:[EMAIL PROTECTED]] 
 Sent: 2 March 2002 11:40
 To: Tomcat Users List
 Subject: RE: 2 instance of tomcat within 1 machine
 
 
 Which version of tomcat are u using?
 im using 4.0.2
 

I've recently got 5 instances running on one 'lil-ole workstation, used for
personal development work.  My goal was to have multiple instances that I
could mess around with, without destroying the live (documentation,
examples, etc) server.

 how did u configure? Must i have more then 1 copy of tomcat? 

No. I've installed tomcat (4.0.2) on my D: drive (should have said: Windows
2000 Pro, 2 hard-drives with multiple partitions - D: is apps, I: is
development) and the various instances on my I: drive:

CATALINA_HOME:
D:\tomcat\
CATALINA_BASEs:
i:\tomcat-servers\server01\
i:\tomcat-servers\server02\
i:\tomcat-servers\server03\
etc

Follow the instructions in running.txt for which directories to copy - I'm
at work just now (JRun ;-( ) but off-hand I think it's bin, conf, lib 
webapps.  Within /conf, you need to edit server.xml so the various ports
don't conflict.  Eg. if the CATALINA_HOME/conf/server.xml uses port 8080,
/server01/conf/server.xml could be 8081 for example.  There are three
locations in the server.xml which I edited - I don't have the file to hand
at the moment, but if you'd like a copy I can post it tonight/tomorrow.

Once you've created the directory heirarchy, and edited the server.xml
files, you should be able to start your new instances from the command
line/shell.  I'm lazy, so I just edited the catalina.bat files in
/server0x/bin/ to set CATALINA_BASE and CATALINA_HOME - again, if you'd like
a copy I'll post it tomorrow.

 I really dunno... pls help
 
 

Basically, most of the info is in running.txt from your Tomcat install.  I
found the only real gotcha was that I needed to renumber the ports.  Once
I'd got that sorted out the rest was plain sailing ;)

Best of luck, and if you're still stuck let me know and I'll post files.

Cheers
John

--
John Niven
Reply via mailing-list.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: problems with JDBCRealm and oracle

2002-01-18 Thread John Niven

Tommi

I had this exact problem last night, and solved it (eventually).  I'd need
to check my code (I'm at work, with Jrun, not at home with Tomcat!) but I
think the connectionURL needs to lose the user and password, and you need to
add two additional name/value pairs to Realm... : connectionUser and
connectionPassword (I think: check the JDBC-Realm docs).

Check the docs, give that a try, and if it doesn't work let me know (though
I doubt I'll be able to answer before Monday - sorry!).

Best of luck
John

John Niven


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] 
 Sent: 18 January 2002 15:11
 To: [EMAIL PROTECTED]
 Subject: AW: problems with JDBCRealm and oracle
 
 
 Hello Michael!
 Yes I'm able to connect to Oracle with scott/tiger@db02, but 
 the realm doesn't work. Thanks tommi
 
 -Ursprüngliche Nachricht-
 Von: Michael Wentzel [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 18. Januar 2002 14:11
 An: 'Tomcat Users List'
 Betreff: RE: problems with JDBCRealm and oracle
 
 
  My tomcat 4.0.1 runs on a WinNT-machine. In server.xml i'
  have configured a
  JDBC Realm with the following code:
  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=oracle.jdbc.driver.OracleDriver
   
  connectionURL=jdbc:oracle:thin:@iv003866:1521:db02?user=scott
  ;password=tige
  r
userTable=users userNameCol=user_name 
  userCredCol=user_pass
userRoleTable=user_roles roleNameCol=role_name /
  
  But when I try to start tomcat I get the following error messages:
  Catalina.start: LifecycleException:  Exception opening
  database connection:
  a.sql.SQLException: Ung³ltige Argumente in Aufruf (= invalid 
  arguments when
  calling)
  LifecycleException:  Exception opening database connection:
  java.sql.SQLExce
  on: Ung³ltige Argumente in Aufruf
  at 
  org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
  at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:11
 
 Are you able to log into that database directly through the 
 oracle admin tools using that username and password?
 
 
 ---
 Michael Wentzel
 Software Developer
 Software As We Think - http://www.aswethink.com
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 **
 
  Diese E-Mail und angehaengte Dateien sind vertraulich und 
 ausschliesslich 
  fuer den oder die als Empfaenger eingetragenen Personen 
 bestimmt. 
  Sollten Sie diese Nachricht aufgrund eines Fehlers oder 
 Irrtums 
  erhalten haben, informieren Sie bitte den Systemverwalter 
 oder Absender 
  der Nachricht.   

   

  Diese Fussnote bestaetigt auch, dass diese E-Mail auf Viren 
 ueberprueft
  wurde. Dies stellt jedoch keine Garantie auf voellige 
 Virenfreiheit dar. 
   

  Bayerische Versorgungskammer 

 http://www.versorgungskammer.de 
**

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone Mode

2002-01-15 Thread John Niven

Steve

I'm not sure (I'm a relative newbie and my platform is typically Windows :(
) but I thought the default port on Linux was 8180, not 8080.  If you've not
changed the defaults, have you tried http://localhost:8180?

Best wishes,
John

John Niven
johnDOTnivenATmarcatDOTcom


 -Original Message-
 From: Steve [mailto:[EMAIL PROTECTED]]
 Sent: 14 January 2002 10:33
 To: Tomcat Users List
 Subject: Re: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In Stand Alone
 Mode
 
 
 Hi Nelson.
 
 I did download  install the jdk 1.3.1_02, tomcat 4.0.1
 
 I put my JAVA_HOME, TOMCAT_HOME,  CATALINA_HOME paths into 
 /etc/profile
 ( so I could use these things any where ).
 
 
 The paths are set and tomcat is reporting the correct paths back to me
 before it sits there and does nothing.
 
 
 
 
 Nelson Yip wrote:
 
   FOLLOW THESE SIMPLE INSTRUCTIONS AND IT SHOULD WORK.
   BTW, I INSTALLED TOMCAT ON REDHAT 7.2.
  
   1.  Download both attached file j2sdk-1_3_1_02-linux-i386.bin and
   jakarta-tomcat-4.0.1.tar.gz
   2.  Ftp the files over to your home directory.
   3.  Gunzip the file gunzip jakarta-tomcat-4.0.1.tar.gz 
 after that you
   should see a file name jakarta-tomcat-4.0.1.tar
   4.  Extract the tar file tar -xvf 
 jakarta-tomcat-4.0.1.tar you should
   get a folder called jakarta-tomcat-4.0.1
   5.  This is a binary file and we no compiling is needed.
   6.  The folder is currently in your home directory and all 
 you need to
   do is move it over to the path you want Tomcat to be located.  mv
   jakarta-tomcat-4.0.1 /usr/local/bin
   7.  You cannot run Tomcat without installing the java jdk pack.
   8.  Next is to install j2sdk-1_3_1_02-linux-i386.bin
   9.  Just type the command ./j2sdk-1_3_1_02-linux-i386.bin
   10.  Follow the on screen instruction for the install and 
 you should
   have specify the path to be /usr/local/bin
   11.  The next thing is to set your environment so it will 
 recognized
   JAVA_HOME and TOMCAT_HOME.
   12.  I am running the bash shell, so you must edit your 
 .bash_profile,
   the file is hidden and is located in your home directory.
   13.  Make sure your .bash_profile contains the following:
  # .bash_profile
  
  # Get the aliases and functions
  if [ -f ~/.bashrc ]; then
  . ~/.bashrc
  fi
  
  # User specific environment and startup programs
  
  PATH=$PATH:$HOME/bin
  BASH_ENV=$HOME/.bashrc
  JAVA_HOME=$JAVA_HOME/usr/local/bin/jdk1.3.1_02
  TOMCAT_HOME=$TOMCAT_HOME/usr/local/bin/jakarta-tomcat-4.0.1
  
  export TOMCAT_HOME JAVA_HOME BASH_ENV PATH
  unset USERNAME
   14.  The final step is to reboot the Linux box by typing 
 shutdown -r
   now
   15.  You can startup Tomcat by type 
 $TOMCAT_HOME/bin/catalina.sh start
   16.  To check if Tomcat is working type this in your browser
   http://www.domain.com:8080;, make sure you use port 8080.
   17.  Done.
   -Original Message-
   From: Todd Wright [mailto:[EMAIL PROTECTED]]
   Sent: Monday, January 14, 2002 4:37 PM
   To: Tomcat Users List
   Subject: RE: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In 
 Stand Alone
   Mode
  
   I have Suse 7.2 with jdk 1.4beta-3 fresh install and It 
 came right up. I
  
   never use the distro jdk, I've been burnt too many times.
  
   Todd Wright
  
   At 04:14 PM 1/14/2002 -0500, you wrote:
  
  Do you have jdk installed on your system?
  Also did u setup your JAVA_HOME and CATALINA_HOME?
  
  -n
  
  -Original Message-
  From: Steve [mailto:[EMAIL PROTECTED]]
  Sent: Monday, January 14, 2002 3:37 AM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 4.0.1 Suse 7.2 Can't Get It To Work In 
 Stand Alone Mode
  
  Hi;
  
  I've been trying to install and use Tomcat 4.0.1 in stand 
 alone mode on
  Suse 7.2 linux.
  
  I haven't been able to get my tomcat files to come up in 
 my browser(
  Netscape 6.2.1 ) using http://localhost:8080/
  
  I also haven't gotten any error messages that might give 
 me a clue :).
  
  I don't have a web server or any kind of networking 
 software running on
  my box.
  
  These are the messages I got from std out when I ran startup.sh:
  
  ===
  Using CLASSPATH:
  /usr/local/Tomcat/bin/bootstrap.jar:/usr/local/JDK/lib/tools.jar
  Using CATALINA_BASE: /usr/local/Tomcat
  Using CATALINA_HOME: /usr/local/Tomcat
  Using JAVA_HOME: /usr/local/JDK
  ===
  
  
  These are the messages I got when running shutdown.sh:
  
  
  ===
  steves linux /usr/local/Tomcat/bin/catalina.sh  line 234: 
 1265 Segment
  Fault  $JAVA_HOME
  /usr/local/JDK/bin/java$CATALINA_OPTS -classpath $CP
  -Dcatalina.base=$CATALINA_BASE -Dcatalina.home=$CATALINA_HOME
  org.apache.catalina.startup.Bootstrap $@ stop
  root@linux:/home/steve/KDesktop 
  
  Using CLASSPATH:
  
 /usr/local/Tomcat/bin/bootstrap.jar:/usr/local/JDK/lib/tools
 .jar Using
  CATALINA_BASE