Re: Persistence manager ClassNotFoundException during deserialization

2005-03-09 Thread Antony Paul
It is working in 4.1.31. Thanks for the help

rgds
Antony Paul


On Tue, 08 Mar 2005 22:52:50 +, Mark Thomas [EMAIL PROTECTED] wrote:
 What happens on 4.1.31?
 
 Mark
 
 Antony Paul wrote:
  I created a sample application and is available at
  http://geocities.com/antonypaul24/web.html . Any one can download it
  and test.
 
  rgds
  Antony Paul
 
 
  On Tue, 8 Mar 2005 10:01:13 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 
 I am waiting for some knowledgeable person to answer my questions.
 Meanwhile I will write a test application, download Tomcat source code
 and try to debug the problem.
 
 rgds
 Antony Paul
 
 
 On Mon, 7 Mar 2005 18:30:47 +0530, Antony Paul [EMAIL PROTECTED] wrote:
 
 Hi all,
 I am getting ClassNotFoundException when deserialising
 arrays/Lists stored in session. It have no problem with normal objects
 but have error when it is made an array or List.
 The set up is Tomcat 4.1.12 standalone. Sun J2SE 1.4.2_04. Using
 Filestore persistent manager which is set in example config.
 The full stack trace is given below from catalina.out.
 
 2005-03-07 18:22:23 CoyoteAdapter An exception or error occurred in
 the container during the request processing
 java.lang.IllegalStateException: Error deserializing Session
 8D30D6F68AA046F5DEB574FCA3C8E06F: java.lang.ClassNotFoundException:
 [Lmd.edrugstore.model.AuthenticatedWebUser;
 at 
  org.apache.catalina.session.PersistentManagerBase.swapIn(PersistentManagerBase.java:717)
 at 
  org.apache.catalina.session.PersistentManagerBase.findSession(PersistentManagerBase.java:593)
 at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173)
 at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at 
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
 at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at 
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at 
  org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at 
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at 
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at 
  org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at 
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
 at 
  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
 at 
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
 at 
  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
 at java.lang.Thread.run(Thread.java:534)
 
 rgds
 Antony Paul
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: Redirect from http:// to https://

2005-03-09 Thread Peter Johnson
Or write a valve/filter to do the same thing
PJ
Antony Paul wrote:
You use Tomcat standalone or along with Apache. 
In Tomcat stand alone you can 
1, In index.jsp or whatever be the welcome page check
response.isSecure() then redirect.
2. There is an option in web.xml in security element
transport-guarantee which can be specified for certain resources. On
accessing these resources it will automatically redirect to the https.
You need to properly configure redirectport in Connector element in
server.xml for this to work.

   In Apache use mod_rewrite.
On Tue, 8 Mar 2005 23:27:54 + (GMT), Sanjeev Srivastava
[EMAIL PROTECTED] wrote:
 

Hi All!,
Can anone tell me how can I redirect http://
to https:// . I want as soon as the user type
http://abc.com it will go to https://abc.com
(SSL Config).
Please help..
Regards,
Sanjeev
Send instant messages to your online friends http://uk.messenger.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


 

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


Re: Trying to retrieve the ROOT context in Servlet.

2005-03-09 Thread Lionel Farbos
I'd want to say the Default context (see bug 33831 for more explanations)
This is the tomcat behaviour if your put crossContext=true (but you already 
have solved your needs, no ?).

On Tue, 8 Mar 2005 09:30:01 -0600
Jeffrey Lanham [EMAIL PROTECTED] wrote:

 So, hitting an invalid context gets you the root context?  Isn't that a 
 little insecure?
 
 Jeff
 
 -Original Message-
 From: Lionel Farbos [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 08, 2005 3:49 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Trying to retrieve the ROOT context in Servlet.
 
 Hi Jeffrey,
 
 I use Tomcat 5.0.30 and, 
 when I use getServletContext().getContext(/toto),
 if the Context toto doesn't exist, it returns the root context.
 
 On Mon, 7 Mar 2005 15:32:25 -0600
 Jeffrey Lanham [EMAIL PROTECTED] wrote:
 
  I have been trying for days and tons of google searches and mail archive 
  searches and can't find an answer to the quandry I find
  myself in.
  
  I need to allow users to upload to a directory in the ROOT context of my 
  tomcat server.  For some reason, and it may be a security
  deal, I can't retrieve the server context for / so I can get the actual 
  path to upload the file.  It always comes back null.  I
  know that the Java servlet specifications say the null may be returned if 
  the container, for some reason, doesn't want to return
 the
  context.  I don't know if it's a tomcat configuration, or if there is some 
  other mechanism to use besides
  getServletContext().getContext(/).  Any help would be appreciated.
  
   
  
  Thanks,
  
  Jeffrey Lanham
  
  Miller Curtain Company
  
   
  
   
  
  
 
 -
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



stop context properly or in a forced way

2005-03-09 Thread Lionel Farbos
Hi all,

When I want to upgrade my webapp,
I want to stop my context without interrupting its running threads.
But, for exploitation needs, 
I can want to force the stop of my context.

For this 2 needs, Tomcat provide only one solution : within the manager, a 
force stop context.
And they don't want to provide another solution for the proper stop context 
(bug 33589 WONTFIX).

So, I can hack my code in order to have a proper stop context (see the 
MotherSerlvet proposed in bug 33589),
BUT now, I don't know HOW TO hack my code for the force stop context ... :-(

Any suggest would be appreciated.

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



Re: How to access web site from other computers

2005-03-09 Thread James T. Studebaker
When you type in http://dummy.dnsalias.net/web/JSP/login.html in the IE do
you get a tomcat error or do you get a The page cannot be displayed or do
you get some other error?

Thank you
James T. Studebaker

- Original Message - 
From: U K Laxmi [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, March 09, 2005 1:50 AM
Subject: RE: How to access web site from other computers


Thank you for the detailed info. I appreciate it. May
be, in future i may go for a static IP address. But
for testing purposes, i would like to do some wrok
around specified by you.

I went to www.dyndns.org and selected 'Dynamic DNS'
and did whatever it asked me to. I'm able to access it
locally. ie.

http://dummy.dnsalias.net/web/JSP/login.html

But not from other computers (one at office). I'm able
to ping to this machine. But not able to see the web
application. Is this is a firewall issue? How can i
identify what are the firewalls/spywares running in my
system and how to allow the IP Address to be visible.

Pls help. Thanks to everyone for the answers.

--- [EMAIL PROTECTED] wrote:

 OK.  There have been suggestions that you get a
 static ip address.  If
 your internet service provider will assign you a
 static ip address, that
 will solve your problem if you are trying to access
 the tomcat service
 using a domain name.

 However if your internet service provider is
 unwilling to provide a static
 IP address, which is the case for most providers,
 you still can access the
 tomcat service from the internet.  What you can do
 is define a dynamic dns
 service at a provider such as dyndns.org.  You can
 set up a dynamic dns
 service where the ip address is updated from a
 program you install on your
 local windows machine using one of their domains.
 You have several
 choices of such programs available on the dyndns.org
 site.  The program
 you install on your local windows machine detects
 when the IP address of
 your local machine changes.  The program then sends
 the new IP address to
 the dyndns.org service and the ip address of the
 dynamic dns service you
 set up with them is automatically updated.  This
 service is free for a
 limited number of machines.

 You could also buy a domain name from a domain name
 service provider.
 Dyndns.org does sell domain names also.  You can
 then define a dynamic dns
 service with dyndns.org just the same as described
 above using your
 domain.  I believe dyndns.org will charge you an
 annual fee for using your
 own domain name.

 Let me know if this helps.

 As a side issue you can access the tomcat service on
 your local windows
 machine from another computer on the internet in a
 test situation with out
 establishing a dynamic dns account. You can do this
 by entering a record
 in the hosts file of the computer from which you
 wish to access the tomcat
 service.  I expect you to find the host file at:
 c:/windows/system32/drivers/etc/host or
 c:/winnt/system32/drivers/etc/host.

 Enter a line in the form:
 domainname ipaddress

 Supply your domain name for the host account defined
 in tomcat
 configuration for domainname.  Do not include the
  or the  characters.
  Localhost will not work.  If you have not defined a
 host other than
 localhost in tomcat configuration, you will have to
 define another host
 account.  Supply the ip address assigned to your
 machine where tomcat is
 running for ipaddress.  Do not include the  or
 the  characters.  Here
 is an example how the line should look:

 jimstudebaker.org 65.254.62.178

 Then save the host file.  Open the IE and type in
 the url
 http://domainname:8080/.  This assumes your tomcat
 port is the default
 8080.  This obviously not a general permanent
 solution, since the internet
 dns servers do not have a record for the entry you
 put in the host file.
 It is a quick and easy way to test access to the
 service from another
 machine on the internet however.

 Good luck.

 Let me know if this was of help.

  The machine is connected to internet thro'
 broadband
  connection.
 
  --- [EMAIL PROTECTED] wrote:
  An answer to this question would require a little
  more information.
 
  When you say My computer is in network is the
  network you are refering
  to a local area network or is the window machine
  connected directly to the
  internet through a broadband connection or a dial
 up
  connection?
 
  Send a response to this question and then I can
 go
  on to the next question.
 
   -Original Message-
   From: U K Laxmi [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 08, 2005 11:13 AM
   To: Tomcat Users List
   Subject: How to access web site from other
  computers
  
  
   I've a web application developed using apache
 and
   tomcat on windows 2000 machine. I can access
 the
   application locally. ie. using
  http://localhost/web/JSP/login.html and
   also using machine name ie.
  http://dummy/web/JSP/login.html. My computer
   is in network. But i'm unable access my web
  

sun.jdbc.odbc.JdbcOdbcDriver not found ?

2005-03-09 Thread Philippe Couas
Hi,
 
I use Tomcat 4.1.31 with IBM JDK1.4.1 and
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); is not found why ?
It seems me ODBC is inside JDK ?
 
Regards
Philippe

 
 
[EMAIL PROTECTED] contentType=text/html%
[EMAIL PROTECTED] import=java.sql.*%
%/*
 * dbReadData.jsp
 * 
 * @title JDBC JSP Demo
 * @author Melvin Dave P. Vivas
 * @email [EMAIL PROTECTED]
 * @version 1.0
 * @requirements: Tomcat 4.0, SUN JVM 1.3.1
 */
%
html
headtitleReading Data from an Database and Displaying using
JSP/title/head
body
 
% System.out.println(T1);Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
   System.out.println(T2); String url = jdbc:odbc:AGI;
   Connection cn = DriverManager.getConnection(url);
  System.out.println(T3); Statement stmt = cn.createStatement();
   ResultSet rs = stmt.executeQuery(SELECT * FROM IFPAYS);%
  
  TABLE align=center border=1
TR
  TD align=centerFONT
face=arialSTRONGNAME/STRONG/FONT/TD
  TD align=centerFONT
face=arialSTRONGAGE/STRONG/FONT/TD
   /TR
  %while(rs.next()){%
   TR
  TD align=leftFONT
face=arial%=rs.getString(code)%/FONT/TD
  TD align=rightFONT
face=arial%=rs.getString(age)%/FONT/TD
   /TR
 
  %}%
  /TABLE
 
/body
/html

 
/body
/html

 
 
 
Philippe COUAS
Responsable Développement
INFODEV S.A.
 


New to Tomcat

2005-03-09 Thread Amrish Bharatiya
Hi All, 

I am new to tomcat and want a nice tutorial for JSP Development. Can
anybody suggest me some links for the same.

-- 
Thanks in Advance,
Amrish

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



Re: New to Tomcat

2005-03-09 Thread Geertjan Wielenga
Amrish Bharatiya wrote:
Hi All, 

I am new to tomcat and want a nice tutorial for JSP Development. Can
anybody suggest me some links for the same.
 

Here's something: http://www.netbeans.org/kb/using-netbeans/40/dbconn.html
It tells you how to use Tomcat connection pooling (with the help of 
NetBeans IDE).

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


Query on changing the path for catalina.out

2005-03-09 Thread mandar.mohan

Hi,



I need to change the default location of Catalina.out log file. So I

modified the server.xml file in the conf dir in the following way:



!-- Global logger unless overridden at lower levels --

Logger className=3Dorg.apache.catalina.logger.FileLogger

directory=3D/var/log/tomcat prefix=3Dcatalina_log.

suffix=3D.txt timestamp=3Dtrue/



But inspite of doing this my catalina.out is gets logged in

CATALINA_BASE/logs/ directory. There are two scripts in tomcat/bin/

directory catalina.sh and Catalina.50.sh which are doing a=



touch $CATALINA_BASE/logs/catalina.out



So are my changes made in the server.xml are getting overridden by these

Scripts?



If yes, please let me know a way to handle this. Your inputs will be

extremely helpful for me.



Thanks and Regards,

Mandar M Kelvekar









Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

RE: Query on changing the path for catalina.out

2005-03-09 Thread Dale, Matt

The location of the catalina.out log file is not controlled from server.xml. 
This is other log files.

Look in catalina.sh for  $CATALINA_BASE/logs/catalina.out 21  and 
change that, to change the location of catalina.out.

Ta
Matt

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 09 March 2005 12:04
To: tomcat-user@jakarta.apache.org
Subject: Query on changing the path for catalina.out



Hi,




I need to change the default location of Catalina.out log file. So I

modified the server.xml file in the conf dir in the following way:




!-- Global logger unless overridden at lower levels --

Logger className=3Dorg.apache.catalina.logger.FileLogger

directory=3D/var/log/tomcat prefix=3Dcatalina_log.

suffix=3D.txt timestamp=3Dtrue/




But inspite of doing this my catalina.out is gets logged in

CATALINA_BASE/logs/ directory. There are two scripts in tomcat/bin/

directory catalina.sh and Catalina.50.sh which are doing a=




touch $CATALINA_BASE/logs/catalina.out




So are my changes made in the server.xml are getting overridden by these

Scripts?




If yes, please let me know a way to handle this. Your inputs will be

extremely helpful for me.




Thanks and Regards,

Mandar M Kelvekar











Confidentiality Notice


The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



com.sybase.jdbc2.jdbc.SybDriver error

2005-03-09 Thread PGibbonsX
Hi there,  
i'm sure this issue has been raised before, i get the following error when  
running one of my jsp pages:
 
java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDriver
 
Now i now this class resides in C:\Tomcat\jConnect-5_5\classes\jconn2.jar  
which is in my classpath. When i execute my test class outside of tomcat, my  
script works fine.
 
why the difference, and what should i do to fix my problem?
 
CLASSPATH=C:\Tomcat\jConnect-5_5\classes\jconn2.jar;C:\Tomcat\jConnect-5_5\cla
sses\jTDS2.jar;C:\Tomcat\jakarta-regexp-1.3\jakarta-regexp-1.3.jar;\c:\Java;c:
\java\hall;c:\sybtools\ASEP\Monclass.zip;c:\sybtools\ASEP\3pclass.zip;



Re: com.sybase.jdbc2.jdbc.SybDriver error

2005-03-09 Thread David Smith
Move jconn2.jar to C:\Tomcat\common\lib and restart.  Tomcat ignores the 
classpath in favor of it's classloaders and eliminates a huge load of 
headaches with it.

--David
[EMAIL PROTECTED] wrote:
Hi there,  
i'm sure this issue has been raised before, i get the following error when  
running one of my jsp pages:

java.lang.ClassNotFoundException: com.sybase.jdbc2.jdbc.SybDriver
Now i now this class resides in C:\Tomcat\jConnect-5_5\classes\jconn2.jar  
which is in my classpath. When i execute my test class outside of tomcat, my  
script works fine.

why the difference, and what should i do to fix my problem?
CLASSPATH=C:\Tomcat\jConnect-5_5\classes\jconn2.jar;C:\Tomcat\jConnect-5_5\cla
sses\jTDS2.jar;C:\Tomcat\jakarta-regexp-1.3\jakarta-regexp-1.3.jar;\c:\Java;c:
\java\hall;c:\sybtools\ASEP\Monclass.zip;c:\sybtools\ASEP\3pclass.zip;
 

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


RE: load-balancing

2005-03-09 Thread Sng Wee Jim

I am using IIS 5.0 on Win2k Server edition. Will jk 1.2.9 solve the issue for 
IIS too?

- Jim



From: Mladen Turk [mailto:[EMAIL PROTECTED]
Sent: Wed 3/9/2005 2:30 AM
To: Tomcat Users List
Subject: Re: load-balancing



Sng Wee Jim wrote:
 I am load-balancing tomcat 5.0.28 using JK1.2/AJP1.3.

Cool ;)



 I noticed the loadbalancer virtual JK worker redirect requests to the tomcat 
 instances in a round-robin fashion, without taking into account which tomcat
 has a higher number of active sessions.

You must note what jk version and web server you are using.
If using 1.2.8 you will have up to 20% load-presumption error if
using Apache prefork or worker mpm, because the load balancing data
is maintained per child process.

The 1.2.9 (not released yet, but will be this week I hope) has that
resolved using shared memory.

Regards,
Mladen






The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorized. If you are not
an intended recipient, please notify the sender of this email
immediately. You should not copy, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com/



Re: load-balancing

2005-03-09 Thread Mladen Turk
Sng Wee Jim wrote:
I am using IIS 5.0 on Win2k Server edition. Will jk 1.2.9 solve the issue for 
IIS too?
IIS and Apache on Windows are single child systems so the runtime data
was already shared among all clients.
I speak here about 1.2.8. Previous versions have lb code broken.
You'll have to give more details if jk 1.2.8 is what you are using,
at least the config params, etc...
Regards,
Mladen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


HTTP connector running out of processors under heavy load - our solution

2005-03-09 Thread Karau, Joe
In no way am I trying to say that this is the final solution to the
referenced problem, but just thought I'd share what we encountered in
relation to the referenced bug.
Bug ID: 5735 
http://issues.apache.org/bugzilla/show_bug.cgi?id=5735
Short version: Using the client VM instead of the server VM seemed to
alleviate the symptoms we were encountering.
Longer version:
Recently we had been running into a problem with symptoms similar to the
reported bug referenced above.  We'd run the application, under
(relatively) heavy and sometimes not so heavy load, at times the
connectors would appear to stop responding.  Tomcat was still up and
running, plenty of processor and memory was still available, but
requests would no longer be answered by Tomcat.  We would take away the
load, and Tomcat would still not respond.
We tried Tomcat 4.1.30  Tomcat 5.5.6 (I know not the latest, but that
is what we had regressed our app on).  Running on both a single and
multi-processor Windows machine.  The Sun's JDK version was 1.4.2.
Finally, I noticed that we were using the server VM instead of the
client.  We switched it to the client, and our problems seemed to
disappear.  I know that this solution doesn't make much sense because
the VM's should be functionally identical, but we were able to increase
the number of concurrent users we could support by +600% after the
switch.

thanks

Joseph Karau 
Kingland Systems 
[EMAIL PROTECTED] 
507-536-3629 
AIM: jkarau3629 



CONFIDENTIALITY NOTICE:  This e-mail communication, including attachments, is 
covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is 
confidential, and may be legally privileged.  If you are not the intended 
recipient or believe you received this communication in error, please reply to 
the sender indicating that fact and delete the copy you received.  In addition, 
retention, dissemination, distribution, copying, or otherwise use of the 
information contained in this communication is strictly prohibited.  Thank you.


Re: How to access web site from other computers

2005-03-09 Thread jtsbaker
I do not get a ping for dummy.dynalias.net.  Is this the actual dynamic
dns name you defined?

- Original Message -
From: James T. Studebaker [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, March 09, 2005 5:53 AM
Subject: Re: How to access web site from other computers


When you type in http://dummy.dnsalias.net/web/JSP/login.html in the IE do
you get a tomcat error or do you get a The page cannot be displayed or do
you get some other error?

Thank you
James T. Studebaker

- Original Message -
From: U K Laxmi [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, March 09, 2005 1:50 AM
Subject: RE: How to access web site from other computers


Thank you for the detailed info. I appreciate it. May
be, in future i may go for a static IP address. But
for testing purposes, i would like to do some wrok
around specified by you.

I went to www.dyndns.org and selected 'Dynamic DNS'
and did whatever it asked me to. I'm able to access it
locally. ie.

http://dummy.dnsalias.net/web/JSP/login.html

But not from other computers (one at office). I'm able
to ping to this machine. But not able to see the web
application. Is this is a firewall issue? How can i
identify what are the firewalls/spywares running in my
system and how to allow the IP Address to be visible.

Pls help. Thanks to everyone for the answers.

--- [EMAIL PROTECTED] wrote:

 OK.  There have been suggestions that you get a
 static ip address.  If
 your internet service provider will assign you a
 static ip address, that
 will solve your problem if you are trying to access
 the tomcat service
 using a domain name.

 However if your internet service provider is
 unwilling to provide a static
 IP address, which is the case for most providers,
 you still can access the
 tomcat service from the internet.  What you can do
 is define a dynamic dns
 service at a provider such as dyndns.org.  You can
 set up a dynamic dns
 service where the ip address is updated from a
 program you install on your
 local windows machine using one of their domains.
 You have several
 choices of such programs available on the dyndns.org
 site.  The program
 you install on your local windows machine detects
 when the IP address of
 your local machine changes.  The program then sends
 the new IP address to
 the dyndns.org service and the ip address of the
 dynamic dns service you
 set up with them is automatically updated.  This
 service is free for a
 limited number of machines.

 You could also buy a domain name from a domain name
 service provider.
 Dyndns.org does sell domain names also.  You can
 then define a dynamic dns
 service with dyndns.org just the same as described
 above using your
 domain.  I believe dyndns.org will charge you an
 annual fee for using your
 own domain name.

 Let me know if this helps.

 As a side issue you can access the tomcat service on
 your local windows
 machine from another computer on the internet in a
 test situation with out
 establishing a dynamic dns account. You can do this
 by entering a record
 in the hosts file of the computer from which you
 wish to access the tomcat
 service.  I expect you to find the host file at:
 c:/windows/system32/drivers/etc/host or
 c:/winnt/system32/drivers/etc/host.

 Enter a line in the form:
 domainname ipaddress

 Supply your domain name for the host account defined
 in tomcat
 configuration for domainname.  Do not include the
  or the  characters.
  Localhost will not work.  If you have not defined a
 host other than
 localhost in tomcat configuration, you will have to
 define another host
 account.  Supply the ip address assigned to your
 machine where tomcat is
 running for ipaddress.  Do not include the  or
 the  characters.  Here
 is an example how the line should look:

 jimstudebaker.org 65.254.62.178

 Then save the host file.  Open the IE and type in
 the url
 http://domainname:8080/.  This assumes your tomcat
 port is the default
 8080.  This obviously not a general permanent
 solution, since the internet
 dns servers do not have a record for the entry you
 put in the host file.
 It is a quick and easy way to test access to the
 service from another
 machine on the internet however.

 Good luck.

 Let me know if this was of help.

  The machine is connected to internet thro'
 broadband
  connection.
 
  --- [EMAIL PROTECTED] wrote:
  An answer to this question would require a little
  more information.
 
  When you say My computer is in network is the
  network you are refering
  to a local area network or is the window machine
  connected directly to the
  internet through a broadband connection or a dial
 up
  connection?
 
  Send a response to this question and then I can
 go
  on to the next question.
 
   -Original Message-
   From: U K Laxmi [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 08, 2005 11:13 AM
   To: Tomcat Users List
   Subject: How to access web site from other
  computers
  
 

[Fwd: Re: How to access web site from other computers]

2005-03-09 Thread jtsbaker
What is the IP address of the machine you have the tomcat server running
on.  What is the port you are running tomcat on?

You should be able to reach the default welcome page on the tomcat server
by typing the url http://ipaddress:portnumber/.

If you can reach the tomcat server from an external machine on the
internet using the url above, then you do not have a firewall problem.  If
you can not reach the tomcat server from an external machine on the
internet using the url above, then you may have a firewall problem.

Let me know the results.

If you give me your ip address and port number by direct email I can try
the test myself.  Send an email to [EMAIL PROTECTED]

 Original Message 
Subject: Re: How to access web site from other computers
From:[EMAIL PROTECTED]
Date:Wed, March 9, 2005 9:40 am
To:  Tomcat Users List tomcat-user@jakarta.apache.org
--

I do not get a ping for dummy.dynalias.net.  Is this the actual dynamic
dns name you defined?

- Original Message -
From: James T. Studebaker [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, March 09, 2005 5:53 AM
Subject: Re: How to access web site from other computers


When you type in http://dummy.dnsalias.net/web/JSP/login.html in the IE do
you get a tomcat error or do you get a The page cannot be displayed or
do you get some other error?

Thank you
James T. Studebaker

- Original Message -
From: U K Laxmi [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, March 09, 2005 1:50 AM
Subject: RE: How to access web site from other computers


Thank you for the detailed info. I appreciate it. May
be, in future i may go for a static IP address. But
for testing purposes, i would like to do some wrok
around specified by you.

I went to www.dyndns.org and selected 'Dynamic DNS'
and did whatever it asked me to. I'm able to access it
locally. ie.

http://dummy.dnsalias.net/web/JSP/login.html

But not from other computers (one at office). I'm able
to ping to this machine. But not able to see the web
application. Is this is a firewall issue? How can i
identify what are the firewalls/spywares running in my
system and how to allow the IP Address to be visible.

Pls help. Thanks to everyone for the answers.

--- [EMAIL PROTECTED] wrote:

 OK.  There have been suggestions that you get a
 static ip address.  If
 your internet service provider will assign you a
 static ip address, that
 will solve your problem if you are trying to access
 the tomcat service
 using a domain name.

 However if your internet service provider is
 unwilling to provide a static
 IP address, which is the case for most providers,
 you still can access the
 tomcat service from the internet.  What you can do
 is define a dynamic dns
 service at a provider such as dyndns.org.  You can
 set up a dynamic dns
 service where the ip address is updated from a
 program you install on your
 local windows machine using one of their domains.
 You have several
 choices of such programs available on the dyndns.org
 site.  The program
 you install on your local windows machine detects
 when the IP address of
 your local machine changes.  The program then sends
 the new IP address to
 the dyndns.org service and the ip address of the
 dynamic dns service you
 set up with them is automatically updated.  This
 service is free for a
 limited number of machines.

 You could also buy a domain name from a domain name
 service provider.
 Dyndns.org does sell domain names also.  You can
 then define a dynamic dns
 service with dyndns.org just the same as described
 above using your
 domain.  I believe dyndns.org will charge you an
 annual fee for using your
 own domain name.

 Let me know if this helps.

 As a side issue you can access the tomcat service on
 your local windows
 machine from another computer on the internet in a
 test situation with out
 establishing a dynamic dns account. You can do this
 by entering a record
 in the hosts file of the computer from which you
 wish to access the tomcat
 service.  I expect you to find the host file at:
 c:/windows/system32/drivers/etc/host or
 c:/winnt/system32/drivers/etc/host.

 Enter a line in the form:
 domainname ipaddress

 Supply your domain name for the host account defined
 in tomcat
 configuration for domainname.  Do not include the
  or the  characters.
  Localhost will not work.  If you have not defined a
 host other than
 localhost in tomcat configuration, you will have to
 define another host
 account.  Supply the ip address assigned to your
 machine where tomcat is
 running for ipaddress.  Do not include the  or
 the  characters.  Here
 is an example how the line should look:

 jimstudebaker.org 65.254.62.178

 Then save the host file.  Open the IE and type in
 the url
 http://domainname:8080/.  This assumes your tomcat
 port is 

Re: How to access web site from other computers

2005-03-09 Thread U K Laxmi
The actual dynamic dns name is: raghu.dnsalias.net.

When accessed from other machines, it says page not
accessible it seems. Since i'm not the one who is
accessing from other machines, i couldn't get the
proper information about actual error message. Sorry
about that.

By the error message, looks like web server is not
responding. Is it so? Do i need do configure anything
else? My apache server and tomcat are running even
now.  Default port for tomcat is 8080.


--- [EMAIL PROTECTED] wrote:

 I do not get a ping for dummy.dynalias.net.  Is this
 the actual dynamic
 dns name you defined?
 
 - Original Message -
 From: James T. Studebaker
 [EMAIL PROTECTED]
 To: Tomcat Users List
 tomcat-user@jakarta.apache.org
 Sent: Wednesday, March 09, 2005 5:53 AM
 Subject: Re: How to access web site from other
 computers
 
 
 When you type in
 http://dummy.dnsalias.net/web/JSP/login.html in the
 IE do
 you get a tomcat error or do you get a The page
 cannot be displayed or do
 you get some other error?
 
 Thank you
 James T. Studebaker
 
 - Original Message -
 From: U K Laxmi [EMAIL PROTECTED]
 To: Tomcat Users List
 tomcat-user@jakarta.apache.org
 Sent: Wednesday, March 09, 2005 1:50 AM
 Subject: RE: How to access web site from other
 computers
 
 
 Thank you for the detailed info. I appreciate it.
 May
 be, in future i may go for a static IP address. But
 for testing purposes, i would like to do some wrok
 around specified by you.
 
 I went to www.dyndns.org and selected 'Dynamic DNS'
 and did whatever it asked me to. I'm able to access
 it
 locally. ie.
 
 http://dummy.dnsalias.net/web/JSP/login.html
 
 But not from other computers (one at office). I'm
 able
 to ping to this machine. But not able to see the web
 application. Is this is a firewall issue? How can i
 identify what are the firewalls/spywares running in
 my
 system and how to allow the IP Address to be
 visible.
 
 Pls help. Thanks to everyone for the answers.
 
 --- [EMAIL PROTECTED] wrote:
 
  OK.  There have been suggestions that you get a
  static ip address.  If
  your internet service provider will assign you a
  static ip address, that
  will solve your problem if you are trying to
 access
  the tomcat service
  using a domain name.
 
  However if your internet service provider is
  unwilling to provide a static
  IP address, which is the case for most providers,
  you still can access the
  tomcat service from the internet.  What you can do
  is define a dynamic dns
  service at a provider such as dyndns.org.  You can
  set up a dynamic dns
  service where the ip address is updated from a
  program you install on your
  local windows machine using one of their domains.
  You have several
  choices of such programs available on the
 dyndns.org
  site.  The program
  you install on your local windows machine detects
  when the IP address of
  your local machine changes.  The program then
 sends
  the new IP address to
  the dyndns.org service and the ip address of the
  dynamic dns service you
  set up with them is automatically updated.  This
  service is free for a
  limited number of machines.
 
  You could also buy a domain name from a domain
 name
  service provider.
  Dyndns.org does sell domain names also.  You can
  then define a dynamic dns
  service with dyndns.org just the same as described
  above using your
  domain.  I believe dyndns.org will charge you an
  annual fee for using your
  own domain name.
 
  Let me know if this helps.
 
  As a side issue you can access the tomcat service
 on
  your local windows
  machine from another computer on the internet in a
  test situation with out
  establishing a dynamic dns account. You can do
 this
  by entering a record
  in the hosts file of the computer from which you
  wish to access the tomcat
  service.  I expect you to find the host file at:
  c:/windows/system32/drivers/etc/host or
  c:/winnt/system32/drivers/etc/host.
 
  Enter a line in the form:
  domainname ipaddress
 
  Supply your domain name for the host account
 defined
  in tomcat
  configuration for domainname.  Do not include
 the
   or the  characters.
   Localhost will not work.  If you have not defined
 a
  host other than
  localhost in tomcat configuration, you will have
 to
  define another host
  account.  Supply the ip address assigned to your
  machine where tomcat is
  running for ipaddress.  Do not include the  or
  the  characters.  Here
  is an example how the line should look:
 
  jimstudebaker.org 65.254.62.178
 
  Then save the host file.  Open the IE and type in
  the url
  http://domainname:8080/.  This assumes your tomcat
  port is the default
  8080.  This obviously not a general permanent
  solution, since the internet
  dns servers do not have a record for the entry you
  put in the host file.
  It is a quick and easy way to test access to the
  service from another
  machine on the internet however.
 
  Good luck.
 
  Let me know if this was of help.
 
   The machine is connected to 

development / production server

2005-03-09 Thread Ben Kim

What is the common practice to handle file sync between development server
and production server? Is there a trivial way in netbeans to upload the
files as frequently as I would, just by saving it locally, without using
the version control systems or uploading through the manager/html page?

Is it possible to mount a remote directory (sftp, hopefully) like a local
directory?

Thanks.

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas AM University


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



Re: JNDI LDAP Resource

2005-03-09 Thread sudip shrestha
At the moment, Tomcat does not support JNDIRealm for LDAP via SSL with
.  However there an alternative available and I have documented it at:
http://www.geocities.com/dipsth/myDocs/LDAPRealmTomcat.txt
It makes use of mozilla Java-LDAP SDKI have successfully tested it
with Tomcat 5.0.x, but haven't been successful with 5.5.xI guess
you need to play with custom mbeans..which comes with the jar from the
original author's site...Let me know if you are successful with the
latter version of Tomcat.


On Tue, 08 Mar 2005 10:04:30 -0600, Justin Crabtree [EMAIL PROTECTED] wrote:
 
 I am trying to setup a JNDI Resource in my server.xml for a SSL
 connection to a LDAP server.  I have setup and used JDBC resources, but
 I have been unable to find any examples on setting up a LDAP connection.
 
 Is this even possible?  If so, anyone have some good examples of how to
 set it up?  If not, any suggestions on how to get the connection stuff
 out of the Java code and into some sort of config file?
 
 Thanks in advance for any help.
 
 --
 Justin Crabtree
 Java Programmer
 Ozarks Technical Community College
 447-7533
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: development / production server

2005-03-09 Thread Woodchuck
correct me if i'm wrong, but if you do that, you would be turning your
production server into your development server!

yikes.

woodchuck

--- Ben Kim [EMAIL PROTECTED] wrote:
 
 What is the common practice to handle file sync between development
 server
 and production server? Is there a trivial way in netbeans to upload
 the
 files as frequently as I would, just by saving it locally, without
 using
 the version control systems or uploading through the manager/html
 page?
 
 Is it possible to mount a remote directory (sftp, hopefully) like a
 local
 directory?
 
 Thanks.
 
 Ben Kim
 Database Developer/Systems Administrator
 434E Harrington Tower / College of Education 
 Texas AM University
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



RE: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-09 Thread Phillip Qin
Could any one who has tested it post his result? I am really frustrated by
the sometime buggy 5.5 releases and I had to revert to 5.0.28.

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED] 
Sent: March 8, 2005 6:23 PM
To: Tomcat Users List
Subject: Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x


On Tue, 08 Mar 2005 15:16:41 -0800, Hassan Schroeder [EMAIL PROTECTED]
wrote:
 Richard Mixon (qwest) wrote:
 
  We upgraded from Tomcat 5.0.19 to Tomcat 5.5.7 in production and are 
  now getting JDBC connection errors when the site has not been 
  accessed for a while.  This is happening when a user tries to login 
  - we use a JDBCRealm to authenticate the user.
 
  Would using the DataSourceReal provide any help here?
 
 I'm using a DataSourceRealm with 5.5.7 and not seeing any problems 
 reconnecting at any time (MySQL 4.1.7 + Connector/J 3.1.6)...

Be careful about this bug with the DataSourceRealm (fixed in 5.5.8):
http://issues.apache.org/bugzilla/show_bug.cgi?id=33357
Similarly, I would appreciate testing of the fix.

I agree there's absolutely no reason to use the regular JDBC realm, which
can be a bottleneck in some cases.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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


!DSPAM:422e33ec287371584411517!


RE: Trying to retrieve the ROOT context in Servlet.

2005-03-09 Thread Jeffrey Lanham
So, it's not called the root context but the default context?  And, yes, I did 
solve it with the crossContext attribute in the
context.xml.  Thanks for the suggestion.

-Original Message-
From: Lionel Farbos [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005 3:43 AM
To: [EMAIL PROTECTED]
Cc: Tomcat Users List
Subject: Re: Trying to retrieve the ROOT context in Servlet.

I'd want to say the Default context (see bug 33831 for more explanations)
This is the tomcat behaviour if your put crossContext=true (but you already 
have solved your needs, no ?).

On Tue, 8 Mar 2005 09:30:01 -0600
Jeffrey Lanham [EMAIL PROTECTED] wrote:

 So, hitting an invalid context gets you the root context?  Isn't that a 
 little insecure?
 
 Jeff
 
 -Original Message-
 From: Lionel Farbos [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 08, 2005 3:49 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Trying to retrieve the ROOT context in Servlet.
 
 Hi Jeffrey,
 
 I use Tomcat 5.0.30 and, 
 when I use getServletContext().getContext(/toto),
 if the Context toto doesn't exist, it returns the root context.
 
 On Mon, 7 Mar 2005 15:32:25 -0600
 Jeffrey Lanham [EMAIL PROTECTED] wrote:
 
  I have been trying for days and tons of google searches and mail archive 
  searches and can't find an answer to the quandry I find
  myself in.
  
  I need to allow users to upload to a directory in the ROOT context of my 
  tomcat server.  For some reason, and it may be a
security
  deal, I can't retrieve the server context for / so I can get the actual 
  path to upload the file.  It always comes back null.
I
  know that the Java servlet specifications say the null may be returned if 
  the container, for some reason, doesn't want to return
 the
  context.  I don't know if it's a tomcat configuration, or if there is some 
  other mechanism to use besides
  getServletContext().getContext(/).  Any help would be appreciated.
  
   
  
  Thanks,
  
  Jeffrey Lanham
  
  Miller Curtain Company
  
   
  
   
  
  
 
 -
 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



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



RE: development / production server

2005-03-09 Thread Allistair Crossley
The usual way is to use a build tool (Ant say) to package up your web 
application code for production deployment (WAR, EAR etc..). The application 
server / servlet container usually takes care of deploying that. 

In practice, you will want to hot patch files onto a production server 
without the hassle of such packaging, and if you are used to ASP.net/PHP web 
apps you'll get frustrated that J2EE servers are not always good at handling 
class changes (JSPs are ok if you don't precompile). 

We've found no real answer to this problem other than scheduling time to 
restart Tomcat after class redeployment. This could be us getting it wrong with 
our deployment methods, but although we try and free up as much stuff as 
possible using a context listener, including static members we find reloads 
within Tomcat do not release enough memeory to make it a viable alternative to 
restarts. We'll look at a dual server setup next month I believe.


 -Original Message-
 From: Woodchuck [mailto:[EMAIL PROTECTED]
 Sent: 09 March 2005 15:37
 To: Tomcat Users List
 Subject: Re: development / production server
 
 
 correct me if i'm wrong, but if you do that, you would be turning your
 production server into your development server!
 
 yikes.
 
 woodchuck
 
 --- Ben Kim [EMAIL PROTECTED] wrote:
  
  What is the common practice to handle file sync between development
  server
  and production server? Is there a trivial way in netbeans to upload
  the
  files as frequently as I would, just by saving it locally, without
  using
  the version control systems or uploading through the manager/html
  page?
  
  Is it possible to mount a remote directory (sftp, hopefully) like a
  local
  directory?
  
  Thanks.
  
  Ben Kim
  Database Developer/Systems Administrator
  434E Harrington Tower / College of Education 
  Texas AM University
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
   
   
 __ 
 Celebrate Yahoo!'s 10th Birthday! 
 Yahoo! Netrospective: 100 Moments of the Web 
 http://birthday.yahoo.com/netrospective/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



deploying a tomcat application

2005-03-09 Thread t.n.a.
The question's probably fairly simple, so I'd be thankfull for a link or 
two if it's been answered before, but here's what I'd like to know...
I have a tapestry application I develop on a local tomcat instance and 
it's my first app of that type.
In a couple of days I'll have to upload it to a server of an ISP where 
tomcat is running. As a minimum, I'll have to upload the .war file 
(which I don't know how to build, but never mind that) and set up a 
deployment descriptor so that tomcat knows where the application. Am I 
missing something important? What possible problems should I be aware 
of? Can I make tomcat load the application without a restart?

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


Re: development / production server

2005-03-09 Thread Tim Funk
Use CVS for version control. (or any version control)
Write a script which
- Checks out from CVS the version tagged for production
- Builds and precompiles the webapp
- Copies the webapp to production
- Restarts the webapp (or tomcat)
*Always build your production webapp from a CVS tagged revision.*
If the build machine is different from production, mirror.pl works great for 
FTP syncing files.

-Tim
Ben Kim wrote:
What is the common practice to handle file sync between development server
and production server? Is there a trivial way in netbeans to upload the
files as frequently as I would, just by saving it locally, without using
the version control systems or uploading through the manager/html page?
Is it possible to mount a remote directory (sftp, hopefully) like a local
directory?
Thanks.
Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas AM University

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


RE: Being lost in the mailing list

2005-03-09 Thread Richard Mixon (qwest)
Klaus,

Was there a reason you did not use the preconfigured Java 1.4, Tomcat
5.0.19 and JK connectors that come with SuSE Pro 9.1? These are listed
under the SuSE YAST Install Software panel. Just select RPM groups
Productivity-Networking-Web-FrontEnds.

The SuSE prepared README
(/usr/share/doc/packages/jakarta-tomcat/README.SuSE) gives a great
explanation of how to configure Apache and Tomcat. This is a bit
different than just just expanding the archives, but you get the
following benefits:

1) Tomcat is integrated into the Linux file structure (i.e. config files
are under /etc/apache2, /etc/sysconfig/j2ee, etc; shared files are under
/usr/share/tomcat, doc is under
/usr/share/doc/packages/jakarta-tomcat,...)

2) Tomcat is installed as a daemon that can be stopped/started/restarted
with rctomcat.

3) SuSE does provide security patches for their packages also that can
be automatically applied with their Online Update utility.

HTH - Richard

-Original Message-
From: Klaus-F. Kaal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 12:52 AM
To: Tomcat Users List
Subject: Re: Being lost in the mailing list


Hi Doug,

sorry, that I had to shout out, but I can see that every specialist gets
tons of eMails every day. And if he or she does not answer straight away
to some mails, the others will be dumped in a bin and ... lost.
And nobody answered by mails since days...

Thanks for your reply.

I have aquired a dedicated server with Suse 9.1 preconfigured. It came
with Apache 2.0.48, which is working well. I installed

- JDK 1.4
- Tomcat 5.0.28
- The latest binary package from mod_JK2

Apache and Tomcat are working well individually. The logs are showing,
that Tomcat accepts mod_JK2 well and is prepared to communicate on port
8009. It also creates the /conf/auto/mod_jk.conf, which I show later in
this text. Apache is not showing anything in the log. It just states
that it did not find the document in its normal public_html space, when
I try to call a JSP page.  But, I havn't modified the log-level (by the
way, where can I do that??).

There are soo many how-to's which are all doing different things. I
tried to find the essence from several. I must say at this point: I hate
to compile packages when I can use binaries. So, I did not follow
how-to's which asked me to do that.

All other infos are given below.

Can you do something with this info? Thanks for any help or hint!

Klaus




Parsons Technical Services schrieb:

 There are plenty. You have to be patient. And yes you can get lost. I
 have several times.

 Now, where was I?

 Oh!

 A few questions for you.

 Why are you using Apache?

 What how-to did you follow?

 Are you using mod-jk or mod-jk2 ?

 Doug


 - Original Message - From: Klaus-F. Kaal
 [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Monday, March 07, 2005 6:58 PM
 Subject: Being lost in the mailing list


 Hi,

 I tired to get an answer to my serious questions for quite a while
( I
 assume, if a question is not answered within a few days, it will be
 lost ).

 This mailing-list did not react to my problems. Are there no
 knowledgeable people out there? To connect Apache to Tomcat should
not
 be a real problem. I just need a little hint to be successful and - I
 swear - to help other people with my knowledge. But I feel lost. Are
 alle people circeling around exotic themes? Maybe someone just
gives a
 link where to ask for anwers.

 Would be very kind and helful.

 Klaus



 - My previous questions



 - Apache still seems to ignore my mod_jk.

 _In my Tomcat log, I can see:_

 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 06.03.2005 00:54:10 org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=5/43
config=/usr/tomcat/conf/jk2.properties

 _I included my automatically created mod_jk.conf into the
httpd.conf:_

 Include /usr/tomcat/conf/auto/mod_jk.conf

 This mod_jk.conf looks like this:

 IfModule !mod_jk.c
  LoadModule jk_module /usr/lib/apache2-prefork/mod_jk.so
 /IfModule

 JkWorkersFile /etc/apache2/workers2.properties
 JkLogFile /usr/tomcat/logs/mod_jk.log

 JkLogLevel emerg

 _The workers2.properties is here:_

 [channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009

 [uri:/jsp-examples/*]
 worker=ajp13.localhost:8009

 [uri:www.technologyserver.com/*.jsp]
 worker=ajp13:localhost:8009




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



Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-09 Thread Remy Maucherat
On Wed, 9 Mar 2005 10:40:37 -0500, Phillip Qin
[EMAIL PROTECTED] wrote:
 Could any one who has tested it post his result? I am really frustrated by
 the sometime buggy 5.5 releases and I had to revert to 5.0.28.

You can also use the realms form 5.5.4, as they don't have problems.

The regressions were introduced when adding digest authentication
support to the database realms.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



5.5.7 service.bat popup: Overlapped I/O Operation is in progress; NonAlpha 46

2005-03-09 Thread J Malcolm
On Windows Server 2003, when I run service.bat I get a popup with the
message: Overlapped I/O Operation is in progress;  NonAlpha 46

I can run service.bat on the 5.0 installation and add/remove the service
with no problem.  But it will not install 5.5.7 service.

Did Tomcat start using a new port (46?) or something in 5.5?

Suggestions?

Thanks.


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



Usint getRemoteUser() method

2005-03-09 Thread Amrish Bharatiya
Hi All, 

I am using Tomacat server. I want to authenticate a client making the
request to this server. I have deployed my server on an Intranet and
want to use Window's Domain Authentication.

When i use request.getRemoteUser() method to get the user name it
returns null. when i looked into its help, it says that this method
returns null if the user is not authenticated. How can i authenticate
this user?

-- 
Thanks in Advance,
Amrish

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



Re: Usint getRemoteUser() method

2005-03-09 Thread Jason Bainbridge
On Wed, 9 Mar 2005 22:04:17 +0530, Amrish Bharatiya [EMAIL PROTECTED] wrote:
 Hi All,
 
 I am using Tomacat server. I want to authenticate a client making the
 request to this server. I have deployed my server on an Intranet and
 want to use Window's Domain Authentication.
 
 When i use request.getRemoteUser() method to get the user name it
 returns null. when i looked into its help, it says that this method
 returns null if the user is not authenticated. How can i authenticate
 this user?

http://jcifs.samba.org

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: stop context properly or in a forced way

2005-03-09 Thread Lionel Farbos
I receive no response,
so I think there is, for now, no solution without a patch of Tomcat (for 
example : new Stop Context in Tomcat Manager + info added in the 
ServletContext...).

But I am alone for this needs ?
Or a lot of people need this but they don't know how to do because it is not 
possible with Tomcat ?

On Wed, 9 Mar 2005 10:59:57 +0100
Lionel Farbos [EMAIL PROTECTED] wrote:

 Hi all,
 
 When I want to upgrade my webapp,
 I want to stop my context without interrupting its running threads.
 But, for exploitation needs, 
 I can want to force the stop of my context.
 
 For this 2 needs, Tomcat provide only one solution : within the manager, a 
 force stop context.
 And they don't want to provide another solution for the proper stop context 
 (bug 33589 WONTFIX).
 
 So, I can hack my code in order to have a proper stop context (see the 
 MotherSerlvet proposed in bug 33589),
 BUT now, I don't know HOW TO hack my code for the force stop context ... :-(
 
 Any suggest would be appreciated.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: Usint getRemoteUser() method

2005-03-09 Thread Allistair Crossley
Or easier is to use IIS and then turn tomcatAuthentication off. Read my blog at 
www.adcworks.com/blogs to see how to do this. IIS can pass your NTLM value to 
Tomcat happily without jCIFs.

 -Original Message-
 From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
 Sent: 09 March 2005 16:39
 To: Tomcat Users List; Amrish Bharatiya
 Subject: Re: Usint getRemoteUser() method
 
 
 On Wed, 9 Mar 2005 22:04:17 +0530, Amrish Bharatiya 
 [EMAIL PROTECTED] wrote:
  Hi All,
  
  I am using Tomacat server. I want to authenticate a client 
 making the
  request to this server. I have deployed my server on an Intranet and
  want to use Window's Domain Authentication.
  
  When i use request.getRemoteUser() method to get the user name it
  returns null. when i looked into its help, it says that this method
  returns null if the user is not authenticated. How can i 
 authenticate
  this user?
 
 http://jcifs.samba.org
 
 Regards,
 -- 
 Jason Bainbridge
 http://kde.org - [EMAIL PROTECTED]
 Personal Site - http://jasonbainbridge.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



multiple services for each Tomcat instance on NT

2005-03-09 Thread Bedrijven.nl
Hello,

I installed Tomcat 557 and create several instances for development
applications by using the CATALINA_BASE parameter.
So I set up about 10 webapplication on my localhost that I can start with
startup.bat. Now what I want to do is to create for each webapplication an
own service on NT (otherwise I have to run each time startup.bat and the CMD
box appear). The first one I can install, but when I try another (given it
another name) failed.
Is it possible to this and second how can I do this?

thanx

Maarten


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



Re: Usint getRemoteUser() method

2005-03-09 Thread Jason Bainbridge
On Wed, 9 Mar 2005 16:46:08 -, Allistair Crossley
[EMAIL PROTECTED] wrote:
 Or easier is to use IIS and then turn tomcatAuthentication off. Read my blog 
 at www.adcworks.com/blogs to see how to do this. IIS can pass your NTLM value 
 to Tomcat happily without jCIFs.

I disagree, setting up IIS is un-ncessary evil and setting up jcifs is
a LOT easier than all those hoops you need to jump through for IIS,
just drop in the .jar file, add a few parameters to your web.xml and
you're up and running. to go the IIS route you end up with another
webserver to maintain and I'm guessing most people dealing with Tomcat
aren't going to have IIS experience to begin with and then you have to
get the connector working between IIS  Jrun.

A lot more work than just dropping in a .jar file and adding a few
parameters to your web.xml.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



RE: Usint getRemoteUser() method

2005-03-09 Thread Allistair Crossley
I disagree if you are not using Apache as a webserver, IIS - Tomcat via JK is 
very easy these days. Not only that, you can take advantage of IIS's point and 
click configuration and also get it serving out static resources nice and 
easily from Tomcat, all easily configurable. Plus it leverages existing 
Microsoft infrastructure and knowledge that exists in Windows-based 
organisations. If you're using Apache as a webserver, fair enough I agree with 
you, jCIFs is fine.

Cheers, Allistair.

 -Original Message-
 From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
 Sent: 09 March 2005 17:02
 To: Allistair Crossley
 Cc: Tomcat Users List; Amrish Bharatiya
 Subject: Re: Usint getRemoteUser() method
 
 
 On Wed, 9 Mar 2005 16:46:08 -, Allistair Crossley
 [EMAIL PROTECTED] wrote:
  Or easier is to use IIS and then turn tomcatAuthentication 
 off. Read my blog at www.adcworks.com/blogs to see how to do 
 this. IIS can pass your NTLM value to Tomcat happily without jCIFs.
 
 I disagree, setting up IIS is un-ncessary evil and setting up jcifs is
 a LOT easier than all those hoops you need to jump through for IIS,
 just drop in the .jar file, add a few parameters to your web.xml and
 you're up and running. to go the IIS route you end up with another
 webserver to maintain and I'm guessing most people dealing with Tomcat
 aren't going to have IIS experience to begin with and then you have to
 get the connector working between IIS  Jrun.
 
 A lot more work than just dropping in a .jar file and adding a few
 parameters to your web.xml.
 
 Regards,
 -- 
 Jason Bainbridge
 http://kde.org - [EMAIL PROTECTED]
 Personal Site - http://jasonbainbridge.com
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



Re: 5.5.7 service.bat popup: Overlapped I/O Operation is in progress; NonAlpha 46

2005-03-09 Thread Jason Bainbridge
On Wed, 9 Mar 2005 10:30:23 -0600, J Malcolm [EMAIL PROTECTED] wrote:
 On Windows Server 2003, when I run service.bat I get a popup with the
 message: Overlapped I/O Operation is in progress;  NonAlpha 46
 
 I can run service.bat on the 5.0 installation and add/remove the service
 with no problem.  But it will not install 5.5.7 service.
 
 Did Tomcat start using a new port (46?) or something in 5.5?
 
 Suggestions?

Sounds like something DCOM permissions related, no idea why it would
work in 5.0 and not 5.5, have you got a restrictive set of permissions
in place at all? Some articles I read recommended running:

gpupdate /force

to refresh the loal groups and policies from the Active Directory but
it would be strange if that was your problem. Possibly the
installation of services has changed in Tomcat to effect the
credentials used to install the service somehow?

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: multiple services for each Tomcat instance on NT

2005-03-09 Thread Mladen Turk
Bedrijven.nl wrote:
Hello,
I installed Tomcat 557 and create several instances for development
applications by using the CATALINA_BASE parameter.
So I set up about 10 webapplication on my localhost that I can start with
startup.bat. Now what I want to do is to create for each webapplication an
own service on NT (otherwise I have to run each time startup.bat and the CMD
box appear). The first one I can install, but when I try another (given it
another name) failed.
Is it possible to this and second how can I do this?
You will need the service.bat file.
Simply run:
'service.bat install Tomcat1'
'service.bat install Tomcat2'
'service.bat install Tomcat3'
etc...
Of course launch from the directory where each instance is installed.
You can rename tomcat5w.exe to reflect the service name like:
tomcat1w.exe, tomcat2w.exe, etc... This will allow that you just click
on the service manager (the service name will be found from executable
name).
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Redirect from http:// to https://

2005-03-09 Thread Sanjeev Srivastava
Thanks a lot PJ !, It worked..

Regards,
Sanjeev
--- Peter Johnson [EMAIL PROTECTED] wrote:
 Or write a valve/filter to do the same thing
 
 PJ
 
 Antony Paul wrote:
 
 You use Tomcat standalone or along with Apache. 
 In Tomcat stand alone you can 
 1, In index.jsp or whatever be the welcome page
 check
 response.isSecure() then redirect.
 2. There is an option in web.xml in security
 element
 transport-guarantee which can be specified for
 certain resources. On
 accessing these resources it will automatically
 redirect to the https.
 You need to properly configure redirectport in
 Connector element in
 server.xml for this to work.
 
 In Apache use mod_rewrite.
 
 
 On Tue, 8 Mar 2005 23:27:54 + (GMT), Sanjeev
 Srivastava
 [EMAIL PROTECTED] wrote:
   
 
 Hi All!,
  Can anone tell me how can I redirect
 http://
 to https:// . I want as soon as the user type
 http://abc.com it will go to https://abc.com
 
 (SSL Config).
 
 Please help..
 
 Regards,
 Sanjeev
 
 Send instant messages to your online friends
 http://uk.messenger.yahoo.com
 

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

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

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



Re: Redirect from http:// to https://

2005-03-09 Thread Sanjeev Srivastava
Thanks a lot Paul !!, It worked

Regards,
Sanjeev
--- Antony Paul [EMAIL PROTECTED] wrote:
 You use Tomcat standalone or along with Apache. 
 In Tomcat stand alone you can 
 1, In index.jsp or whatever be the welcome page
 check
 response.isSecure() then redirect.
 2. There is an option in web.xml in security element
 transport-guarantee which can be specified for
 certain resources. On
 accessing these resources it will automatically
 redirect to the https.
 You need to properly configure redirectport in
 Connector element in
 server.xml for this to work.
 
 In Apache use mod_rewrite.
 
 
 On Tue, 8 Mar 2005 23:27:54 + (GMT), Sanjeev
 Srivastava
 [EMAIL PROTECTED] wrote:
  Hi All!,
   Can anone tell me how can I redirect
 http://
  to https:// . I want as soon as the user type
  http://abc.com it will go to https://abc.com
  
  (SSL Config).
  
  Please help..
  
  Regards,
  Sanjeev
  
  Send instant messages to your online friends
 http://uk.messenger.yahoo.com
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 -- 
 rgds
 Antony Paul
 http://www.geocities.com/antonypaul24/
 

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

Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



RE: 5.5.7 service.bat popup: Overlapped I/O Operation is in progress; NonAlpha 46

2005-03-09 Thread J Malcolm
Resolved...

OK, I dug into the bat file and learned a couple of things... I was doing
service install Tomcat5.5.7  The service name must not be able to have
periods in it.  I just changed the default values in the bat file to
Tomcat55 and the display name to Apache Tomcat 5.5.  No clue how that
cryptic error message was intended to point me to the fact there are periods
in the service name  But it might not hurt to document that little
period restriction 'gotcha'.

Thanks.

Jerry

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005 11:33 AM
To: Tomcat Users List
Subject: Re: 5.5.7 service.bat popup: Overlapped I/O Operation is in
progress; NonAlpha 46

On Wed, 9 Mar 2005 10:30:23 -0600, J Malcolm [EMAIL PROTECTED] wrote:
 On Windows Server 2003, when I run service.bat I get a popup with the
 message: Overlapped I/O Operation is in progress;  NonAlpha 46
 
 I can run service.bat on the 5.0 installation and add/remove the service
 with no problem.  But it will not install 5.5.7 service.
 
 Did Tomcat start using a new port (46?) or something in 5.5?
 
 Suggestions?

Sounds like something DCOM permissions related, no idea why it would
work in 5.0 and not 5.5, have you got a restrictive set of permissions
in place at all? Some articles I read recommended running:

gpupdate /force

to refresh the loal groups and policies from the Active Directory but
it would be strange if that was your problem. Possibly the
installation of services has changed in Tomcat to effect the
credentials used to install the service somehow?

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



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



RE: 5.5.7 service.bat popup: Overlapped I/O Operation is in progress; NonAlpha 46

2005-03-09 Thread Caldarale, Charles R
 From: J Malcolm [mailto:[EMAIL PROTECTED]
 Subject: RE: 5.5.7 service.bat popup: Overlapped I/O Operation is in
 progress; NonAlpha 46
 
 No clue how that cryptic error message was intended to point me 
 to the fact there are periods in the service name

Looking at the code chart hanging on my wall, a period is a decimal 46 in ASCII 
and its variants.  What that has to do with overlapped I/O is yet another 
Microsoft Mystery.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

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



RE: 5.5.7 service.bat popup: Overlapped I/O Operation is in progress; NonAlpha 46

2005-03-09 Thread J Malcolm
Intuitively obvious to the casual observer :-)

J.

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 09, 2005 2:38 PM
To: Tomcat Users List; Jason Bainbridge
Subject: RE: 5.5.7 service.bat popup: Overlapped I/O Operation is in
progress; NonAlpha 46

 From: J Malcolm [mailto:[EMAIL PROTECTED]
 Subject: RE: 5.5.7 service.bat popup: Overlapped I/O Operation is in
 progress; NonAlpha 46
 
 No clue how that cryptic error message was intended to point me 
 to the fact there are periods in the service name

Looking at the code chart hanging on my wall, a period is a decimal 46 in
ASCII and its variants.  What that has to do with overlapped I/O is yet
another Microsoft Mystery.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.

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



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



Re: mod_jk: download speed problem

2005-03-09 Thread Mikhail Kruk
No one responded to my previous question, so let me try again.
Is anyone here running Tomcat 5.0.x + mod_jk + Apache and downloading 
large files through it with normal a throughput?

On Tue, 8 Mar 2005, Mikhail Kruk wrote:

 apache 2.0.53
 tomcat 5.0.29
 mod_jk 1.2.8, worker configured to do ajp13
 Red Hat ES 3
 
 Going straight to Tomcat or straight to Apache downloads work fast.
 Going through mod_jk uploads work fast.
 Going through mod_jk downloads go at 70Kb/sec.
 
 Everything tested from localhost, so it's not a network issue.
 Similar setup but with apache 1.3 and Red Hat 7.x running the same
 application works fast for both uploads and downloads.
 
 I'm stuck and will really appreciate any suggestions!
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: mod_jk: download speed problem

2005-03-09 Thread Phillip Qin
Why don't you JkUnMount /download_dir your_worker?

-Original Message-
From: Mikhail Kruk [mailto:[EMAIL PROTECTED] 
Sent: March 9, 2005 4:46 PM
To: Tomcat Users List
Subject: Re: mod_jk: download speed problem


No one responded to my previous question, so let me try again. Is anyone
here running Tomcat 5.0.x + mod_jk + Apache and downloading 
large files through it with normal a throughput?

On Tue, 8 Mar 2005, Mikhail Kruk wrote:

 apache 2.0.53
 tomcat 5.0.29
 mod_jk 1.2.8, worker configured to do ajp13
 Red Hat ES 3
 
 Going straight to Tomcat or straight to Apache downloads work fast. 
 Going through mod_jk uploads work fast. Going through mod_jk downloads 
 go at 70Kb/sec.
 
 Everything tested from localhost, so it's not a network issue. Similar 
 setup but with apache 1.3 and Red Hat 7.x running the same application 
 works fast for both uploads and downloads.
 
 I'm stuck and will really appreciate any suggestions!
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


!DSPAM:422f6e9085278295916668!


Re: mod_jk: download speed problem

2005-03-09 Thread Mladen Turk
Mikhail Kruk wrote:
No one responded to my previous question, so let me try again.
Is anyone here running Tomcat 5.0.x + mod_jk + Apache and downloading 
large files through it with normal a throughput?


Server Software:Apache/2.0.53
Server Hostname:localhost
Server Port:8008
Document Path:  /servlets-examples/test.jpg
Document Length:1513456 bytes
Concurrency Level:  1
Time taken for tests:   9.203125 seconds
Complete requests:  100
Failed requests:0
Write errors:   0
Total transferred:  151370900 bytes
HTML transferred:   151345600 bytes
Requests per second:10.87 [#/sec] (mean)
Time per request:   92.031 [ms] (mean)
Time per request:   92.031 [ms] (mean, across all concurrent requests)
Transfer rate:  16062.26 [Kbytes/sec] received
This is on WIN32, also localhost.
I've tried on RH9, SLES8.2 and FreeBSD 4.11 and found no slowdown.
Can you post your config files?
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat ask me for User/password?

2005-03-09 Thread Daxin Zuo
Usually I use Tomcat5.0.19 via Apache 2. Today , I try to use tomcat only:
http://localhost:8080 to do a test, it asks me user name and password. I did
not know the user name and password. Both Apache and Tomcat are on my
computer and inslled by myself. I like to know which configuration causes
it. OP is windows 2000.

Thanks.


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



RE: Tomcat ask me for User/password?

2005-03-09 Thread Kevin.Griesmar
In your $CATALINA_HOME/conf there is a file called tomcat-users.xml. Edit the 
file and create an admin role and user.

For example:

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=standard/
  role rolename=manager/
  role rolename=admin/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat,role1/
  user username=role1 password=tomcat roles=role1/
  user username=admin password=tomcat roles=standard,manager,admin/
/tomcat-users

Restart tomcat and login.

Kevin Griesmar




-Original Message-
From: Daxin Zuo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 4:07 PM
To: Tomcat Users List
Subject: Tomcat ask me for User/password?


Usually I use Tomcat5.0.19 via Apache 2. Today , I try to use tomcat only:
http://localhost:8080 to do a test, it asks me user name and password. I did
not know the user name and password. Both Apache and Tomcat are on my
computer and inslled by myself. I like to know which configuration causes
it. OP is windows 2000.

Thanks.


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



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



RE: mod_jk: download speed problem

2005-03-09 Thread Mikhail Kruk
The large download is generated by a servlet, it's not a static file.
This is secure application and it only gives out downloads to 
authenticated sessions.

 Why don't you JkUnMount /download_dir your_worker?
 
 -Original Message-
 From: Mikhail Kruk [mailto:[EMAIL PROTECTED] 
 Sent: March 9, 2005 4:46 PM
 To: Tomcat Users List
 Subject: Re: mod_jk: download speed problem
 
 
 No one responded to my previous question, so let me try again. Is anyone
 here running Tomcat 5.0.x + mod_jk + Apache and downloading 
 large files through it with normal a throughput?
 
 On Tue, 8 Mar 2005, Mikhail Kruk wrote:
 
  apache 2.0.53
  tomcat 5.0.29
  mod_jk 1.2.8, worker configured to do ajp13
  Red Hat ES 3
  
  Going straight to Tomcat or straight to Apache downloads work fast. 
  Going through mod_jk uploads work fast. Going through mod_jk downloads 
  go at 70Kb/sec.
  
  Everything tested from localhost, so it's not a network issue. Similar 
  setup but with apache 1.3 and Red Hat 7.x running the same application 
  works fast for both uploads and downloads.
  
  I'm stuck and will really appreciate any suggestions!
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 !DSPAM:422f6e9085278295916668!
 

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



file watcher

2005-03-09 Thread deepak suldhal
Hi,
   I need to keep a file watcher program running.
Is it possible for me to start this automatically when

tomcat is hosted.

Thanks
D




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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




Re: mod_jk: download speed problem

2005-03-09 Thread Mikhail Kruk
 Document Path:  /servlets-examples/test.jpg

And this goes through mod_jk, right?

 Document Length:1513456 bytes
 This is on WIN32, also localhost.
 I've tried on RH9, SLES8.2 and FreeBSD 4.11 and found no slowdown.
 Can you post your config files?

What did you use to get this nice output?

Here is the relevant part of httpd.conf:

# Load mod_jk module
LoadModulejk_module  modules/mod_jk.so
# Declare the module for IfModule directive
#AddModule mod_jk.c
# Where to find workers.properties
JkWorkersFile /usr/local/apache2/conf/workers.properties
# Where to put jk logs
JkLogFile /var/log/httpd/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLeveldebug
# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat %w %V %T
# Send servlet for context /examples to worker named worker1
JkMount  /myapp worker1
JkMount  /myapp/* worker1

- cut --
Here is workers.properties:

workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/local/j2sdk
ps=/
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
#worker.worker1.lbfactor=50
#worker.worker1.cachesize=10
#worker.worker1.cache_timeout=600
#worker.worker1.socket_keepalive=1
#worker.worker1.reclycle_timeout=300
- cut ---

I was playing with the workers.properties file (commenting those lines out 
on the bottom) and managed to get the speed to drop from 70 Kb/sec to 
40 Kb/sec.  Not sure which of the settings did it though.

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



Re: mod_jk: download speed problem

2005-03-09 Thread Mikhail Kruk
 workers.tomcat_home=/usr/local/tomcat
 workers.java_home=/usr/local/j2sdk
 ps=/
 worker.list=worker1
 worker.worker1.type=ajp13
 worker.worker1.host=localhost
 worker.worker1.port=8009
 #worker.worker1.lbfactor=50
 #worker.worker1.cachesize=10
 #worker.worker1.cache_timeout=600
 #worker.worker1.socket_keepalive=1
 #worker.worker1.reclycle_timeout=300
 - cut ---
 
 I was playing with the workers.properties file (commenting those lines out 
 on the bottom) and managed to get the speed to drop from 70 Kb/sec to 
 40 Kb/sec.  Not sure which of the settings did it though.

Yes, if I uncomment the recycle_timeout setting I get 70Kb/sec, when it is 
commented out it drops to 40Kb/sec.
If I set it to something high like 3000 it drops to 40Kb/sec again.
Nice.

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



RE: Tomcat ask me for User/password?

2005-03-09 Thread Daxin Zuo
Thnaks for the reply, I tried all the user/password. I still unable to
login.

In the Prompt window, it asks for (daxin is my computer's name)
   Enter username and password for XDB at http://daxin:8080

Thanks.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 2:55 PM
To: tomcat-user@jakarta.apache.org
Subject: RE: Tomcat ask me for User/password?


In your $CATALINA_HOME/conf there is a file called tomcat-users.xml. Edit
the file and create an admin role and user.

For example:

?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=standard/
  role rolename=manager/
  role rolename=admin/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat,role1/
  user username=role1 password=tomcat roles=role1/
  user username=admin password=tomcat roles=standard,manager,admin/
/tomcat-users

Restart tomcat and login.

Kevin Griesmar




-Original Message-
From: Daxin Zuo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 4:07 PM
To: Tomcat Users List
Subject: Tomcat ask me for User/password?


Usually I use Tomcat5.0.19 via Apache 2. Today , I try to use tomcat only:
http://localhost:8080 to do a test, it asks me user name and password. I did
not know the user name and password. Both Apache and Tomcat are on my
computer and inslled by myself. I like to know which configuration causes
it. OP is windows 2000.

Thanks.


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



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


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



RE: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-09 Thread alexander dosher
Phillip Qin [EMAIL PROTECTED]:
Could any one who has tested it post his result? I am really
frustrated by the sometime buggy 5.5 releases and I had to revert
to 5.0.28.
here's a summation of my experiences  interpretations of answers from 
the list, so far:

JDBCRealm (5.5.4): worked i think, but no longer available on tomcat 
website that i can find
JDBCRealm (5.5.7, 5.5.8a): doesn't reopen dropped connections

DataSourceRealm (5.5.4): doesn't support digest authentication
DataSourceRealm (5.5.7): doesn't work or is unconfigurable by me - i've 
got a
Server
  GlobalNamingResources
Resource type=javax.sql.DataSource name=UserDatabase

and an
Engine
  Realm className=org.apache.catalina.realm.DataSourceRealm 
name=UserDatabase

and i get
java.lang.NullPointerException
  at javax.naming.NameImpl.init
  at javax.naming.CompositeName.init
  at org.apache.naming.NamingContext.lookup
(etc.)
so please accept my application to the Frustration Club.  :(
--alex.

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


Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-09 Thread Hassan Schroeder
alexander dosher wrote:
DataSourceRealm (5.5.7): doesn't work or is unconfigurable by me - i've 
got a
Server
  GlobalNamingResources
Resource type=javax.sql.DataSource name=UserDatabase

and an
Engine
  Realm className=org.apache.catalina.realm.DataSourceRealm 
name=UserDatabase
snip/
How about something like:
GlobalNamingResources
Resource name=jdbc/authorization
auth=Container
type=javax.sql.DataSource
username=ren
password=stimpy
driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/authority?autoReconnect=true/ 
/GlobalNamingResources

:: and ::
Realm
className=org.apache.catalina.realm.DataSourceRealm
dataSourceName=jdbc/authorization
userTable=users
userNameCol=user_name
userCredCol=user_pass
userRoleTable=user_roles
roleNameCol=role_name/
:: which -- season to taste -- works for me :-)
FWIW!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Help - Byte [] to String

2005-03-09 Thread Sanjeev Srivastava
Hi All 

Can anybody tell me how to convert this Byte [] to
String..

 byte[] buf =
x509certificate.getPublicKey().getEncoded();


Please help

Thanks,
Sanjeev


Send instant messages to your online friends http://uk.messenger.yahoo.com 

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



RE: Tomcat ask me for User/password?

2005-03-09 Thread Ben Kim
 In the Prompt window, it asks for (daxin is my computer's name)
Enter username and password for XDB at http://daxin:8080

I'm not sure if it's the case, but I had the same prompt once. 

It was because there was an Oracle webserver running on port 8080. If
oracle is a valid suspect, you may want to see the services control
panel and see if it's running.

You could shut down all Oracle's webserver, or at least change the
tomcat's port to something else (like 8081, maybe) and see if it works.


Regards,

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas AM University


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



Re:OT Help - Byte [] to String

2005-03-09 Thread Parsons Technical Services
String cert = String(buf);
http://java.sun.com/j2se/1.4.2/docs/api/index.html
And look up the String class
Doug
- Original Message - 
From: Sanjeev Srivastava [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, March 09, 2005 9:35 PM
Subject: Help - Byte [] to String


Hi All
Can anybody tell me how to convert this Byte [] to
String..
byte[] buf =
x509certificate.getPublicKey().getEncoded();
Please help
Thanks,
Sanjeev
Send instant messages to your online friends http://uk.messenger.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: Help - Byte [] to String

2005-03-09 Thread xue daoming
I think you can do as just below:
byte[] buf  = x509certificate.getPublicKey().getEncoded();
String s = new String(buf);


On Thu, 10 Mar 2005 02:35:03 + (GMT), Sanjeev Srivastava
[EMAIL PROTECTED] wrote:
 Hi All
 
 Can anybody tell me how to convert this Byte [] to
 String..
 
 byte[] buf =
 x509certificate.getPublicKey().getEncoded();
 
 Please help
 
 Thanks,
 Sanjeev
 
 Send instant messages to your online friends http://uk.messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: development / production server

2005-03-09 Thread Ben Kim

Thank you all for advices. 

In my case I run Netbeans on my PC and deploy the result to the server.
It's an addition to existing applications so overwriting production files
is not a concern. I just wondered if there's a trivial way to sync files,
like I would in Dreamweaver. I gather perhaps version control is the only
way.


Thanks.

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas AM University


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



Re: file watcher

2005-03-09 Thread Antony Paul
What you mean ?. You need a file watcher program or you have one.
To start it when tomcat is started, 
1. If it is servlet in web.xml use load-on-startup in servlet
declaration and run it from init() method.
2. Write a ContextListener and start it from there.

rgds
Antony Paul 


On Wed, 9 Mar 2005 15:31:12 -0800 (PST), deepak suldhal
[EMAIL PROTECTED] wrote:
 Hi,
I need to keep a file watcher program running.
 Is it possible for me to start this automatically when
 
 tomcat is hosted.
 
 Thanks
 D
 
 __
 Celebrate Yahoo!'s 10th Birthday!
 Yahoo! Netrospective: 100 Moments of the Web
 http://birthday.yahoo.com/netrospective/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-09 Thread alexander dosher
Hassan Schroeder makes my day:
How about something like:
 (the correct answer)
YES, thank you.  i had a resourceName instead of a dataSourceName in my 
DataSourceRealm, left over from trying to use a UserDatabaseRealm, which 
i didn't really understand and isn't even in the docs anymore anyway. 
duh.  *and* this method *is* reopening connections, which JDBCRealm 
didn't. yay!

   dream.  code.
no, thank you. had an awk dream once. i don't recommend it.  ;-)
--alex.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Parallel install of 5.5 with existing 5.0? (Win Server 2003)

2005-03-09 Thread Ben Kim

 a popup error: Overlapped I/O Operation is in progress;  NonAlpha 46  I've
...
 where it saying something about a 3rd party backup program that needs to be
 removed... (???).

It seems the error happens with other software too, due to a real-time
backup software.


Regards,

Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education 
Texas AM University



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



RE: Query on changing the path for catalina.out

2005-03-09 Thread mandar.mohan

Thanks Dave,

Is there any other way of doing this as in my environment, I cannot
modify those files as I do not have permission for changing them.

Thanks and Regards,
Mandar M Kelvekar


-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 09, 2005 5:41 PM
To: Tomcat Users List
Subject: RE: Query on changing the path for catalina.out


The location of the catalina.out log file is not controlled from
server.xml. This is other log files.

Look in catalina.sh for  $CATALINA_BASE/logs/catalina.out 21 
and change that, to change the location of catalina.out.

Ta
Matt

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 09 March 2005 12:04
To: tomcat-user@jakarta.apache.org
Subject: Query on changing the path for catalina.out



Hi,




I need to change the default location of Catalina.out log file. So I

modified the server.xml file in the conf dir in the following way:




!-- Global logger unless overridden at lower levels --

Logger className=3Dorg.apache.catalina.logger.FileLogger

directory=3D/var/log/tomcat prefix=3Dcatalina_log.

suffix=3D.txt timestamp=3Dtrue/




But inspite of doing this my catalina.out is gets logged in

CATALINA_BASE/logs/ directory. There are two scripts in tomcat/bin/

directory catalina.sh and Catalina.50.sh which are doing a=




touch $CATALINA_BASE/logs/catalina.out




So are my changes made in the server.xml are getting overridden by these

Scripts?




If yes, please let me know a way to handle this. Your inputs will be

extremely helpful for me.




Thanks and Regards,

Mandar M Kelvekar











Confidentiality Notice


The information contained in this electronic message and any attachments
to this message are intended
for the exclusive use of the addressee(s) and may contain confidential
or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or
[EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

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




Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



Query on mod_jk.log

2005-03-09 Thread mandar.mohan

Hi All,

I need to change the location of mod_jk.log file. Presently it gets
logged in /apache/logs. I need to put it in /var/log/apache.

How to accomplish this?

Thanks and Regards,
Mandar M Kelvekar




Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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



RE: multiple services for each Tomcat instance on NT

2005-03-09 Thread Bedrijven.nl
Hi,

I tried this. But it didn't work. So you say I CAN do rename the tomcat.exe?
Or MUST I do this?
I changed the path to CATALINA_BASE to the directory where the instance is
installed. Let CATALINA_HOME point to the original Tomcat installation and
run the service.bat install applicationname.
Can you see I forget something??

Maarten







-Oorspronkelijk bericht-
Van: Mladen Turk [mailto:[EMAIL PROTECTED]
Verzonden: Wednesday, March 09, 2005 7:11 PM
Aan: Tomcat Users List
Onderwerp: Re: multiple services for each Tomcat instance on NT


Bedrijven.nl wrote:
 Hello,

 I installed Tomcat 557 and create several instances for development
 applications by using the CATALINA_BASE parameter.
 So I set up about 10 webapplication on my localhost that I can start with
 startup.bat. Now what I want to do is to create for each webapplication an
 own service on NT (otherwise I have to run each time startup.bat and the
CMD
 box appear). The first one I can install, but when I try another (given it
 another name) failed.
 Is it possible to this and second how can I do this?


You will need the service.bat file.
Simply run:
'service.bat install Tomcat1'
'service.bat install Tomcat2'
'service.bat install Tomcat3'
etc...
Of course launch from the directory where each instance is installed.

You can rename tomcat5w.exe to reflect the service name like:
tomcat1w.exe, tomcat2w.exe, etc... This will allow that you just click
on the service manager (the service name will be found from executable
name).


Mladen.

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


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