[Fwd: Newbie: Installing Admin on Tomcat]

2005-08-02 Thread Bruce E. Stemplewski

Anyone have any information on this?

 Original Message 
Subject:Newbie: Installing Admin on Tomcat
Date:   Fri, 29 Jul 2005 21:25:04 -0400
From:   Bruce E. Stemplewski [EMAIL PROTECTED]
Organization:   Stemplewski Software
To: Tomcat Users List tomcat-user@jakarta.apache.org
References: [EMAIL PROTECTED]



I am running Tomcat 5.5.9 on XP.   I want to install  Admin.  I think I 
found the correct download here:


http://www.mirrormonster.com/apache.org/jakarta/tomcat-5/v5.5.10-alpha/bin/jakarta-tomcat-5.5.10-admin.zip


But how do I install it?   Waht directory should I unzip it to?  


The server is installed in:

D:\Program Files\Apache Software Foundation\Tomcat 5.5




Bruce Stemplewski
www.stempsoft.com


We are all in the same boat in a stormy sea, 
and we owe each other a terrible loyalty. 
G. K. Chesterton








--

Bruce Stemplewski
www.stempsoft.com


We are all in the same boat in a stormy sea, 
and we owe each other a terrible loyalty. 
G. K. Chesterton


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



Newbie: Installing Admin on Tomcat

2005-07-29 Thread Bruce E. Stemplewski


I am running Tomcat 5.5.9 on XP.   I want to install  Admin.  I think I 
found the correct download here:


http://www.mirrormonster.com/apache.org/jakarta/tomcat-5/v5.5.10-alpha/bin/jakarta-tomcat-5.5.10-admin.zip


But how do I install it?   Waht directory should I unzip it to?  


The server is installed in:

D:\Program Files\Apache Software Foundation\Tomcat 5.5




Bruce Stemplewski
www.stempsoft.com


We are all in the same boat in a stormy sea, 
and we owe each other a terrible loyalty. 
G. K. Chesterton







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



Tomcat ignoring $CATALINA_HOME on XP.

2005-07-28 Thread Bruce E. Stemplewski
I created a system environment variable called $CATALINA_HOME on XP.
I have it set to D:\MyProjects\java\Eclipse.


If I do a CD %$CATALINA_HOME% at the DOS prompt the directory changes 
correctly.  I have an index.htm file in this directory but the default 
Tomcat page keeps coming up.  I restarted Tomcat and even rebooted XP 
but the default page keeps coming up.  Any idea what could be wrong?






Bruce Stemplewski
www.stempsoft.com


We are all in the same boat in a stormy sea, 
and we owe each other a terrible loyalty. 
G. K. Chesterton




 



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



Newbie: Connection refused first time on Tomcat

2005-07-25 Thread Bruce E. Stemplewski
I just installed Tomcat for the first time ever so please forgive the 
newbie question.  I installed Apache Tomcat 5.5.9 Server and J2RE JSE 
5.0 on an XP operating system.  Tomcat starts up fine but when I try to 
go to the Welcome page, or the Manager Page.  I get The connection was 
refused attempting to contact 127.0.0.1:8080  in FireFox, IE gives me 
this page cannot be displayed. 



I check the Tomcat logs and the  stdout log has a few entries that read:

This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.


Any ideas what I should look at first?

Bruce Stemplewski
www.stempsoft.com


We are all in the same boat in a stormy sea, 
and we owe each other a terrible loyalty. 
G. K. Chesterton



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



Re: Newbie: Connection refused first time on Tomcat

2005-07-25 Thread David E. Shapiro
I have the same problem here. If you tail -f the catalina log it never 
completes the startup.  It hangs trying to set the context for admin for me.  
Can somebody let us know what we are doing wrong?

Bruce E. Stemplewski wrote on 7/25/05 2:54 am:

I just installed Tomcat for the first time ever so please forgive the 
newbie question.  I installed Apache Tomcat 5.5.9 Server and J2RE JSE 
5.0 on an XP operating system.  Tomcat starts up fine but when I try to 
go to the Welcome page, or the Manager Page.  I get The connection was 
refused attempting to contact 127.0.0.1:8080  in FireFox, IE gives me 
this page cannot be displayed. 


I check the Tomcat logs and the  stdout log has a few entries that read:

This release of Apache Tomcat was packaged to run on J2SE 5.0 
or later. It can be run on earlier JVMs by downloading and 
installing a compatibility package from the Apache Tomcat 
binary download page.


Any ideas what I should look at first?

Bruce Stemplewski
www.stempsoft.com


We are all in the same boat in a stormy sea, 
and we owe each other a terrible loyalty. 
G. K. Chesterton


- 
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: Newbie: Connection refused first time on Tomcat

2005-07-25 Thread Bruce E. Stemplewski

Where does this get installed?  Remember, I am a total newbie at this.

And do I even need this?  The error says:

This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.

But my Tomcat JVM setting is at:

C:\Program Files\Java\jre1.5.0_04\bin\client\jvm.dll

Isn't 1.5.0   J2SE 5.0?








Bruce Stemplewski
www.stempsoft.com


We are all in the same boat in a stormy sea, 
and we owe each other a terrible loyalty. 
G. K. Chesterton




Larry Meadors wrote:


You need the compatibility stuff:

http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi

Search for compat on that page, and you'll see it.

Larry


On 25 Jul 2005 18:52:00 GMT, David E. Shapiro [EMAIL PROTECTED] wrote:
 

I have the same problem here. If you tail -f the catalina log it never 
completes the startup. It hangs trying to set the context for admin for me. 
Can somebody let us know what we are doing wrong?


Bruce E. Stemplewski wrote on 7/25/05 2:54 am:

I just installed Tomcat for the first time ever so please forgive the
newbie question. I installed Apache Tomcat 5.5.9 Server and J2RE JSE
5.0 on an XP operating system. Tomcat starts up fine but when I try to
go to the Welcome page, or the Manager Page. I get The connection was
refused attempting to contact 127.0.0.1:8080 http://127.0.0.1:8080 in 
FireFox, IE gives me

this page cannot be displayed.


I check the Tomcat logs and the stdout log has a few entries that read:

This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.


Any ideas what I should look at first?

Bruce Stemplewski
www.stempsoft.com http://www.stempsoft.com


We are all in the same boat in a stormy sea,
and we owe each other a terrible loyalty.
G. K. Chesterton


-
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]



[OT] Re: email from tomcat

2005-06-14 Thread Anthony E. Carlos

Jenny:

Try this: http://java.sun.com/products/javamail/
Click on Technical Articles  Tips

This is off topic and not a specific Tomcat question. However, it is a 
good place to start.


-Anthony

On Jun 14, 2005, at 1:55 PM, Jenny Yang wrote:

Can anyone tell me how to use email from tomcat?

I was given that task to do before my summer
internship starts.  I did numerous google searches,
and checked out Tomcat books at the bookstore.  I
haven't found anything helpful besides this list.

Thanks.


Jenny Yang

Dream your dreams with open eyes and make them come true.  ~t.e. 
lawrence


Fall seven times, stand up eight.  ~japanese proverb




__
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

-
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: Tomcat vs Apache

2005-05-18 Thread Anthony E. Carlos
I think I need to ask a question before offering any information.
When you say applet, do you mean a java applet that runs in a client's 
browser window? Or, do you have a web application comprised of 
servlets/jsps (or some analogous configuration)?

-Anthony
On May 18, 2005, at 10:37 AM, Chris wrote:
I've been working with Tomcat for a while now, but I haven't messed 
with Apache yet.  Could someone explain or point me to something 
explaining the differences between Tomcat and Apache?  I have a large 
applet hosted on Tomcat, and am investigating using Apache instead.  Is 
this feasable? TIA.

Chris
-
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: Tomcat vs Apache

2005-05-18 Thread Anthony E. Carlos
Chris:
I guess that the applet is just a static file that is served to the 
client's browser window. Therefore, ANY web server would work just 
fine. There are no appreciable differences between Tomcat and Apache 
for your requirements so far. They act very similarly when serving 
static content. Some can spout off about performance, configurability, 
etc... But, if you've got it working on Tomcat, I don't think that 
you'll see any difference using Apache-- unless, of course, there's 
more to your situation than meets the eye.

Hope it helps,
-Anthony
On May 18, 2005, at 12:14 PM, Chris wrote:
I think I need to ask a question before offering any information.
When you say applet, do you mean a java applet that runs in a client's 
browser window? Or, do you have a web application comprised of 
servlets/jsps (or some analogous configuration)?
We have a large java applet that runs in the client's browser window.
Chris
-
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: Tomcat 5 slow, it's in production, please help!

2005-05-06 Thread e
What JK version do you use?  To quote Mladen:

You are probably using prefork mpm, so there is no way to
control the number of connections to Tomcat in any way, trough
mod_jk. You can limit it only by setting MaxClients in the httpd.conf
to the maximum number desired.
Because of pre-forking mechanism each child process will eventually
establish a single connection to Tomcat, thus the number of connections
will rise from StartServers to MaxClients.

So there are two solutions for prefork.
1. Make maxThreads==MaxClients
2. Add connectionTimeout=2 to AJP connector.

On 5/6/05, Jeffrey [EMAIL PROTECTED] wrote:
 I have a apache/tomcat environment that has some
 problems recently. The environment has the following:
 1.  Apache 1.3
 2.  Tomcat 5.0.28 (Max memory 384mb)
 3.  JDK 1.4.2_06
 
 My apache has MaxClient set to 256 (apache default).
 The maxThread for tomcat is 500. The site is a
 database driven site.
 
 It seems working fine when load is low. But when there
 are more than 150 threads (from the sever status view
 of the tomcat manager), it's response time is very
 slow (5 - 10 minutes). I have tested the database
 connections, they seem responding fairly well.
 
 Interesting thing is that most of time the slow
 response time only happens when a user login. Once the
 user login and get the main menu page, the user will
 get a good response time. Is it related to KeepAlive
 connections.
 
 Another strange thing is that many threads always show
 up in the server status view on the tomcat html
 manager page even though I am sure the request has
 gone (I tested this by making a request, then close
 the browser).
 
 My CPU usage is low when the slowdown is experienced
 (Using the top command on this solaris box which has
 old solaris operating system 2.6? with 1GB memory.
 
 I set the session timeout time to 5 minutes, but in
 the session view of tomcat manager, I see message 30
 - 40 minutes:136 sessions. How a session that is
 more than 30 minutes is still there. Maybe I don't
 understand this message correctly.
 
 Please advice. This is a production machine. Helps are
 greatly appreciated.
 
 Thanks.
 
 Jeffrey.
 
 Discover Yahoo!
 Get on-the-go sports scores, stock quotes, news and more. Check it out!
 http://discover.yahoo.com/mobile.html
 
 -
 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]



Tomcat5 Service

2005-04-19 Thread Ferguson, Richard E
Hi,

 

I am new to this and Tomcat and Java are not my specialties!  What I
need to accomplish is an install the Tomcat5 service with a log on
account in a silent and unattended mode.  The vendor that has supplied
the Tomcat5 install has StartMode = jvm, so I am unable to use the -User
command.  The BAT file that they have setup is below and they have tried
changing the StartMode to a mode that will except the -User command but
they have stated it fails.  Any ideas on how to get this to work?

 

@echo off

if %OS% == Windows_NT setlocal

rem

---

rem NT Service Install/Uninstall script

rem

rem Options

rem installInstall the service using Tomcat5 as service
name.

remService is installed using default settings.

rem remove Remove the service from the System.

rem

rem name(optional) If the second argument is present it is
considered

remto be new service name


rem

rem $Id: service.bat,v 1.5.2.1 2004/08/23 22:54:32 mturk Exp $

rem

---

 

rem Guess CATALINA_HOME if not defined

set CURRENT_DIR=%cd%

if not %CATALINA_HOME% ==  goto gotHome

set CATALINA_HOME=%cd%

if exist %CATALINA_HOME%\bin\tomcat5.exe goto okHome

rem CD to the upper dir

cd ..

set CATALINA_HOME=%cd%

:gotHome

if exist %CATALINA_HOME%\bin\tomcat5.exe goto okHome

echo The tomcat.exe was not found...

echo The CATALINA_HOME environment variable is not defined correctly.

echo This environment variable is needed to run this program

goto end

rem Make sure prerequisite environment variables are set

if not %JAVA_HOME% ==  goto okHome

echo The JAVA_HOME environment variable is not defined

echo This environment variable is needed to run this program

goto end 

:okHome

if not %CATALINA_BASE% ==  goto gotBase

set CATALINA_BASE=%CATALINA_HOME%

:gotBase

 

set EXECUTABLE=%CATALINA_HOME%\bin\tomcat5.exe

 

rem Set default Service name

set SERVICE_NAME=Tomcat5

set PR_DISPLAYNAME=Apache Tomcat

 

if %1 ==  goto displayUsage

if %2 ==  goto setServiceName

set SERVICE_NAME=%2

set PR_DISPLAYNAME=Apache Tomcat %2

:setServiceName

if %1 == install goto doInstall

if %1 == remove goto doRemove

echo Unknown parameter %1

:displayUsage

echo 

echo Usage: service.bat install/remove [service_name]

goto end

 

:doRemove

rem Remove the service

%EXECUTABLE% //DS//%SERVICE_NAME%

echo The service '%SERVICE_NAME%' has been removed

goto end

 

:doInstall

rem Install the service

echo Installing the service '%SERVICE_NAME%' ...

echo Using CATALINA_HOME:%CATALINA_HOME%

echo Using JAVA_HOME:%JAVA_HOME%

 

rem Use the environment variables as an exaple

rem Each command line option is prefixed with PR_

 

set PR_DESCRIPTION=Apache Tomcat Server -
http://jakarta.apache.org/tomcat

set PR_INSTALL=%EXECUTABLE%

set PR_LOGPATH=%CATALINA_HOME%\logs

set
PR_CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar

rem Set the server jvm frrom JAVA_HOME

set PR_JVM=%JAVA_HOME%\jre\bin\server\jvm.dll

rem You can use the 'set PR_JVM=auto' for default JVM

%EXECUTABLE% //IS//%SERVICE_NAME% --StartClass
org.apache.catalina.startup.Bootstrap --StopClass
org.apache.catalina.startup.Bootstrap --StartParams start --StopParams
stop

rem Clear the environment variables. They are not needed any more.

set PR_DISPLAYNAME=

set PR_DESCRIPTION=

set PR_INSTALL=

set PR_LOGPATH=

set PR_CLASSPATH=

set PR_JVM=

rem Set extra parameters

%EXECUTABLE% //US//%SERVICE_NAME% --JvmOptions
-Dcatalina.base=%CATALINA_BASE%;-Dcatalina.home=%CATALINA_HOME%;-Djava.
endorsed.dirs=%CATALINA_HOME%\common\endorsed --StartMode jvm
--StopMode jvm

rem More extra parameters

set PR_STDOUTPUT=%CATALINA_HOME%\logs\stdout.log

set PR_STDERROR=%CATALINA_HOME%\logs\stderr.log

%EXECUTABLE% //US//%SERVICE_NAME% ++JvmOptions
-Djava.io.tmpdir=%CATALINA_BASE%\temp --JvmMs 128 --JvmMx 256

echo The service '%SERVICE_NAME%' has been installed.

 

:end

cd %CURRENT_DIR%

 

Thanks

 

Rich

 



Re: Archive?

2005-04-18 Thread e
here is one...
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2

On 4/18/05, John Najarian [EMAIL PROTECTED] wrote:
 Is there an archive of the questions and replies?  If so where?  What is the 
 URL.
 
 Thank you,
 
 John Najarian
 
 -
 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: Performance monitoring

2005-04-05 Thread e
http://mc4j.sourceforge.net/ScreenShots.html

On Apr 5, 2005 2:20 PM, Tony Tomcat [EMAIL PROTECTED] wrote:
 I started writing a Filter for my tomcat to monitor performance but
 then I started wondering..  Is there a solution already out there that
 I can use?  Can I pull data from Tomcat's MBeanServer?
 
 What I would like to know is how long my servlets are taking to run.
 I need the Min, Max and  Average times.   I then would build a servlet
 to output the data in XML or HTML format.  I also would want the data
 over the past hour and past 24 hours.
 
 Thanks in advance for any pointers or suggestions!
 Tony
 
 -
 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]



JK 1.2.9 Apache - Tomcat thread synchronization

2005-03-30 Thread e
I watched the JBoss webinar, which was very helpful, but I still can't
understand how to tune the thread settings.

I use tc 5.5.7 and worker apache2.  In the webinar, it was stated that
apache maxclients should be the same value as maxThreads on tomcat. On
a heavily loaded apache, with 10 tc workers, does this still apply? 
For example on apache2 maxclients=150 and all 10 tomcats
maxthreads=150?

Thanks

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



isUserInRole

2005-03-30 Thread e-Denton Subscriber

I see that the session object is stored in the request object
(request.getSession).  And, I suppose, the methods such as isUserInRole from
the request are actually querying the stuff from the session object. So, if
the session is gone (invalidated), then there is no authorization info. Does
this mean the authorization info is kept in the session object?


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



JkShmSize

2005-03-27 Thread e
Under what circumstances would you change it from the defualt 1mb?

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



JK : Connection aborted or network problems

2005-03-22 Thread e
Hi,

Any idea what could cause these network problems?

[Tue Mar 22 14:41:08 2005] [info] 
ajp_process_callback::jk_ajp_common.c (1357): Connection aborted or
network problems
[Tue Mar 22 14:41:08 2005] [error] ajp_service::jk_ajp_common.c
(1699): Client connection aborted or network problems

thanks

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



Re: php and apache tomcat

2005-03-20 Thread Pablo E. Siciliano
I haven't tried this, but I suppose you can also compile php as CGI and use
it via CGI servlet. And you can configure apache + tomcat using mod_jk, and
serve php pages with the Apache server.



Regards,
Pablo E. Siciliano.

- Original Message - 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Sunday, March 20, 2005 9:22 PM
Subject: Re: php and apache tomcat


 Benson Margulies wrote:
  Apache isn't the same thing as 'Apache Software Foundation / Jakarta
  Tomcat'. The usual PHP requires plain old Apache, not Tomcat.

 Well -- yes to the first, not exactly to the second.

 The chances are good that the original poster is confused about the
 difference between Apache httpd and Tomcat, but PHP 4 has an option
 in the `configure` script to build a PHP servlet.

 I've built it, run it, used it for lightweight PHP stuff. Works OK,
 more or less, but any significant glitch takes the whole JVM down.
 In other words, not suitable for serious production use, but fine
 for running one calendar app, or some such trivia  :-)

 The servlet build function seems to be missing in PHP5, though.

 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]



 -- 
 No virus found in this incoming message.
 Checked by AVG Anti-Virus.
 Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 15/03/05




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



Re: Jk1 jkstatus?

2005-03-16 Thread e
Yes, any word on when jk 1.2.9 will be released?  days, weeks?


On Wed, 16 Mar 2005 09:00:55 -0500, Guernsey, Byron (GE Consumer 
Industrial) [EMAIL PROTECTED] wrote:
 
 That status page is what I'm looking for, but its introduced in jk
 1.2.9-dev.  The current stable release is 1.2.8 and it does not appear
 to have the scorebaord functionality.  The presentation claims 1.2.10
 would be out in March, yet its march and 1.2.9 hasn't even been marked
 as stable.  I've learned several hard lessons from running jk2 dev
 releases in production.
 
 Byron
 
 
 -Original Message-
 From: Carlos Cajina [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 15, 2005 4:15 PM
 To: Tomcat Users List
 Subject: Re: Jk1 jkstatus?
 
 Good afternoon Byron.
 
 There is a way in JK to check the status of your workers and even
 configure them to some degree. It requires pretty much the same setup as
 in JK2; for details about this and other VERY useful info on putting
 Apache and Tomcat together see this webinar:
 https://jboss.webex.com/jboss/onstage/tool/record/viewrecording1.php?Eve
 ntID=136098785.
 
 Regards,
 
 Carlos
 
 * Be adbvised that in order to view the webinar you need to install an
 ActiveX control in your IExplorer.
 
 - Original Message -
 From: Guernsey, Byron (GE Consumer  Industrial)
 [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Tuesday, March 15, 2005 2:03 PM
 Subject: Jk1 jkstatus?
 
 So with JK 1.2.8, is there any equivilent method of finding the data in
 the jkstatus scoreboard from mod_jk2??
 
 I understand jk2 is no longer the choice module for Apache 2.0.x. Funny,
 when we first upgraded to Apache 2, the official line was that mod_jk1
 should not be used with Apache 2, and we needed to get with the program
 and move to the refactored jk2- once we did, jk2 was no longer supported
 and considered flaky- meanwhile on the Apache 2 developers list there
 continues to be threads asking why people still use Apache 1.3 and
 aren't upgrading to 2.0, or may even be downgrading in some cases from 2
 back to 1.3- I think its partly because things like the jkX confusion.
 
 So now we are running on an unsupported platform where at any time a
 patch could create problems with mod_jk2 with no resolution except to
 fix it ourselves, and sure ajp13_proxy is coming, but we won't be first
 in line with apache 2.2 after playing musical chairs with jk1/jk2.
 
 So what other things besides the scoreboard will I have to live without
 when downgrading back to JK1?
 
 Byron
 
 -
 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]



Access Denied, now what?

2005-03-13 Thread Ing. Jorge E. Abramian



Hi everybody,

Iwas trying to install Tomcat 5.5.8 for a few 
days now with noresults. I am using win 98 SE. This is the result of the 
run when I execute the start.pifgenerated when I changed the memory 
variable of the start.bat

CATALINA_BASE: C:\archivos de 
programa\java\jakarta-tomcat-5.5.8Using CATALINA_HOME: 
C:\archivos de programa\java\jakarta-tomcat-5.5.8Using CATALINA_TMPDIR: 
C:\archivos de programa\java\jakarta-tomcat-5.5.8\tempUsing 
JAVA_HOME: C:\archivos de 
programa\java\jdk1.5.0_01Acceso denegado.

For who does not understand spanish the last line 
says "denied access". 
I got to this point after trying a lot of different 
things, 'cause at first, I had a lot of problems with the installation exe file, 
and then setting the environment variables.

Thanks in advance for any help.
Jorge 


No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.2 - Release Date: 11/03/05

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

Monitoring Tomcat Clusters

2005-03-05 Thread e
Hi,
I'm looking for some examples on implementing a summary page on the
current and historical usage of tomcat instances.   I'm mostly
interested in number of user sessions and JVM stats graphed over time.

Basiclly, something exactly like this:
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/gallery/dgo-01.html

I'm have a decent understanding on how to do it(poll manager, store
results, generate graphs), but I would rather adapt something already
out there rather that do it all from scatch.

Thanks

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



Re: Server on Mac

2005-03-01 Thread Anthony E. Carlos
Try this?
http://wiki.apache.org/jakarta-tomcat/TomcatOnMacOS
On Mar 1, 2005, at 8:26 PM, Lisa Thompson wrote:
I am new to website development, use Dreamweaver to develop my sites, 
and
have been attempting to get the Tomcat server running on my Mac OSX 
system.
I would like to integrate a database using Dreamweaver with their 
Coldfusion
technology. Macromedia recommended Tomcat for the server technology. I
downloaded it, installed it, and now would like to deploy it. I am not
familiar with the use of Terminal, however. So, being a novice, can 
anyone
direct me in how to get it going?
Thanks,
Lisa

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


Re: Memory leak in tomcat 5.0.28

2005-02-03 Thread Marx, Mitchell E \(Mitch\), ALABS

I see the bugzilla ID: 
http://issues.apache.org/bugzilla/show_bug.cgi?id=33368

Anyone know if this is present in Tomcat 4.1.30?

- Original Message -
From: Robert Wille [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Wednesday, February 02, 2005 1:25 PM
Subject: RE: Memory leak in tomcat 5.0.28


I've figured out my problem. I'm posting what I've discovered for the
benefit of others. The SystemLogHandler uses a map called logs where the
key
is a ThreadWithAttributes and the value is a stack of CaptureLogs. The
problem is that when a thread dies, the ThreadWithAttributes object
lives
forever because the map is never cleaned out. Threads come and go in the
thread pool, so stuff keeps accumulating there forever. You can prevent
the
problem by turning off swallowOutput.

logs should be a ThreadLocal, not a map. That way the
ThreadWithAttributes
objects can be collected (as well as the stack of CaptureLogs).


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



Re: Re: Tomcat 4.1/java 1.4.1.02/winxp/Download a xml file from a server

2005-01-17 Thread Ramien E. Rosillo G.


Hi, I already did that...But still doesnt work.Probably the key is in the configuration of the IIS wich I'm using to redirect, I set up the MIME types in the MIME mappingson the IIS, any idea?When I'm not using IIS the system is working fine, the tomcat recognize the xml file format without a problem.Thanks for the answers.RR.-
[EMAIL PROTECTED]Re: Tomcat 4.1/java 1.4.1.02/winxp/Download a xml file from a server("Content-Disposition",
 "attachment;filename=\"" + nombreBorrador+"\"");

I think the end result is supposed to be:
"attachment;filename=filename.ext"

without the quotes around the filename.




-----
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Walla! Mail - get your free 1G mail today-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Tomcat 4.1/java 1.4.1.02/winxp/Download a xml file from a server

2005-01-14 Thread Ramien E. Rosillo G.


Hi guys,I have a JSP applicaction using tomcat 4.1 wich is accesed from internet using an IIS server for the redirection.In my servlet I'm generating a XML file wich will be downloaded by the client, in the servlet I set up this header, like in the others forums some fellows told.response.setHeader("Cache-Control","no-cache");response.setHeader("Pragma","no-cache");response.setDateHeader ("Expires", 0);response.setContentType("application/octet-stream");response.setHeader("Content-Disposition", "attachment;filename=\"" + nombreBorrador + "\"");I'm having a problem downloading a file from a server, the download dialog box says in the filename the name of the servlet instead of the name of the XML file.Any comments will be really appreciated.Best Regards JCh.-Walla! Mail - get your free 1G mail today-----
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat JRE vs JDK Issue

2004-11-16 Thread Anthony E. Carlos
Chris:
I think TC requires the JDK (not just the JRE) so that it can compile 
JSPs. If this doesn't make sense, I can explain further.

-Anthony Carlos
On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote:
does the client machine have JAVA_HOME as an environment variable?
-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED]
Sent: 16 November 2004 15:09
To: [EMAIL PROTECTED]
Subject: Tomcat JRE vs JDK Issue
I'm trying to run Tomcat 5.0.28 on W2k client machine.  On my
machine, it
runs fine, with no problems.  But when I copy it over to the
client machine,
which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it
requires the JDK.  Why is this, and is there a workaround, or
do I have to
install the JDK?  I don't remember having this issue with
4.x.  Is it 5.x
specific?  TIA.
Chris
-
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat JRE vs JDK Issue

2004-11-16 Thread Anthony E. Carlos
Damn! I was minutes away from actually helping someone (instead of 
always sucking up advice from the fast experts on this list)...

On Nov 16, 2004, at 10:23 AM, Anthony E. Carlos wrote:
Chris:
I think TC requires the JDK (not just the JRE) so that it can compile 
JSPs. If this doesn't make sense, I can explain further.

-Anthony Carlos
On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote:
does the client machine have JAVA_HOME as an environment variable?
-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED]
Sent: 16 November 2004 15:09
To: [EMAIL PROTECTED]
Subject: Tomcat JRE vs JDK Issue
I'm trying to run Tomcat 5.0.28 on W2k client machine.  On my
machine, it
runs fine, with no problems.  But when I copy it over to the
client machine,
which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it
requires the JDK.  Why is this, and is there a workaround, or
do I have to
install the JDK?  I don't remember having this issue with
4.x.  Is it 5.x
specific?  TIA.
Chris
-
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]
-
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: Tomcat JRE vs JDK Issue

2004-11-16 Thread Anthony E. Carlos
JSP technology is an extension of the servlet technology created to 
support authoring of HTML and XML pages.

If you've ever written servlets, you know what a tremendous pain it is 
to write and maintain all those out.println() statements. JSP was 
designed to allow more HTML-centric (aka presentation-side) people to 
create pages that get turned into servlets that are compiled into 
bytecode for the java interpreter to interpret. If you peek around the 
work directory, you'll find an XXX_jsp.java and an XXX_jsp.class file 
for every JSP.

That's why a JRE isn't enough-- you need a compiler from the JDK to 
compile the JSP into servlets.

Phew!
HTH,
-Anthony
On Nov 16, 2004, at 10:27 AM, Allistair Crossley wrote:
go on Anthony .. you deserve it :) lol

-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED]
Sent: 16 November 2004 15:20
To: 'Tomcat Users List'
Subject: RE: Tomcat JRE vs JDK Issue
Feel free to explain. :)
Chris
-Original Message-
From: Anthony E. Carlos [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 16, 2004 10:23 AM
To: Tomcat Users List
Subject: Re: Tomcat JRE vs JDK Issue
Chris:
I think TC requires the JDK (not just the JRE) so that it can compile
JSPs. If this doesn't make sense, I can explain further.
-Anthony Carlos
On Nov 16, 2004, at 10:17 AM, Allistair Crossley wrote:
does the client machine have JAVA_HOME as an environment variable?
-Original Message-
From: Hubble, Christopher [mailto:[EMAIL PROTECTED]
Sent: 16 November 2004 15:09
To: [EMAIL PROTECTED]
Subject: Tomcat JRE vs JDK Issue
I'm trying to run Tomcat 5.0.28 on W2k client machine.  On my
machine, it
runs fine, with no problems.  But when I copy it over to the
client machine,
which has the 1.4.2_05 JRE on it, Tomcat won't run, and says that it
requires the JDK.  Why is this, and is there a workaround, or
do I have to
install the JDK?  I don't remember having this issue with
4.x.  Is it 5.x
specific?  TIA.
Chris

-
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]
-
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: Root directory...

2004-11-09 Thread e-Denton Subscriber
Create a context element, something like this:

Context displayName=myApp
 path=
 docBase=/myApp
 reloadable=true
 useNaming=true
 debug=5 

- Original Message - 
From: Luc Vantroys [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; e-Denton
Subscriber [EMAIL PROTECTED]
Sent: Sunday, November 07, 2004 7:48 PM
Subject: Re: Root directory...


 Hi,

 What do you mean by this?

 thanks,

 Luc.
 - Original Message -
 From: e-Denton Subscriber [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, November 07, 2004 7:44 PM
 Subject: Re: Root directory...


  Create a context for your app with path=. That makes it the root app.
 
  - Original Message -
  From: Luc Vantroys [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Saturday, November 06, 2004 9:40 PM
  Subject: Root directory...
 
 
   Hi,
  
   I work in a regular directory but I'm tired to have to reload the
   application all the time after I recompiled the source code...
  
   I don't understand how I am suppose to work with the ROOT directory,
 I've
   heard that when the classes are in the ROOT directory, they are
relaoded
   each time you need them.
   so
   Can anybody help me? I copied my application in the root directory but
I
  can
   access it. How can I do?
  
   Thanks,
  
   Luc.
  
  
   -
   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: ClassLoader question

2004-11-08 Thread e-Denton Subscriber
shared is the right directory for things to be shared by all your web apps
(shared class loader).
server/lib is for the Catalina class loader.


- Original Message - 
From: Mark Claassen [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, November 08, 2004 1:40 PM
Subject: ClassLoader question


 What is the difference between the server/lib and shared directories as
far
 as the class loaders are concerned?

 Background:
 ---
 I was having trouble with CGI scripts, so I wanted to creat a new
CGIServlet
 to run some tests.  To start the process, I copied source of the tomcat
 CGIServlet file into my own package structure.  Once I got this working I
 would alter that code and try to see why the CGI scripts where not
executing
 correctly.

 Part I Don't Understand:
 ---
 I put my jar file containing the CGIServlet into the server/lib directory
 (where the tomcat CGIServlet resides).  This, however, would not start up
 and gave me ClassNotFound exceptions.  However, when I moved my jar to the
 shared directory, everything seems to work.

 Question:
 -
 I thought everything had access to things in the server/lib directory.
What
 is going on here?

 Thanks,
 Mark


 Confidentiality Notice:  OCIESERVICE
 -
 The contents of this e-mail message and any attachments are intended
 solely for the addressee(s) named in this message. This communication
 is intended to be and to remain confidential.  If you are not the
 intended recipient of this message, or if this message has been
 addressed to you in error, please immediately alert the sender by
 reply e-mail and then delete this message and its attachments. Do not
 deliver, distribute, copy, disclose the contents or take any action
 in reliance upon the information contained in the communication or
 any attachments.
 -
 Mark Claassen
 Donnell Systems, Inc.
 300 S. St. Louis Blvd. Ste. 203
 South Bend, IN 46617
 E-mail: mailto:[EMAIL PROTECTED]
 Voice: (574)232-3784
 Fax: (574)232-4014




 -
 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: Root directory...

2004-11-07 Thread e-Denton Subscriber
Create a context for your app with path=. That makes it the root app.

- Original Message - 
From: Luc Vantroys [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, November 06, 2004 9:40 PM
Subject: Root directory...


 Hi,

 I work in a regular directory but I'm tired to have to reload the
 application all the time after I recompiled the source code...

 I don't understand how I am suppose to work with the ROOT directory, I've
 heard that when the classes are in the ROOT directory, they are relaoded
 each time you need them.
 so
 Can anybody help me? I copied my application in the root directory but I
can
 access it. How can I do?

 Thanks,

 Luc.


 -
 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: Deployment error

2004-10-30 Thread e-Denton Subscriber
I am not sure if this is your problem, but there can be a conflict between
the versions of xml in the jdk and in tomcat. jdk ones load in preference to
tomcat ones. I loaded:

xalan.jar
xercesImpl.jar
xml-apis.jar

into tomcat/common/endorsed to fix my problem. Endorsed allows them to load
in preference to the jdk ones.

- Original Message - 
From: Vaishali Bhirud [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 30, 2004 11:42 AM
Subject: Deployment error


 Hello

 when I am trying to deploy my application it gives me an error as follows

 FAIL - Encountered exception java.io.IOException:
 org.xml.sax.SAXParseException: Content is not allowed in prolog.

 Can anyone please help me? I posted this before also. I didnt get any
reply.

 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]



Default App

2004-10-29 Thread e-Denton Subscriber
Hi,

I changed the default app to my app as follows:

Context  path= docBase=myApp
and
Host name=localhost appBase=C:/appBase

only to discover that my Struts tags werent' working (putting in the context
path), because the context path is . I would like to have my app in its
own directory under the appBase directory (appBase/myApp), rather than
putting the individual files and directories directly under appBase.

So, is there a way to have my cake (have myApp in its own directory and be
the default app) and eat it (have my Struts tags which supply the context
path work), too?

Thx.


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



MySQL upgrade Problem

2004-10-26 Thread e-Denton Subscriber
Hi,

I just upgraded from MySql 3.x to 4.0 and now I can't make connections work
from Tomcat. I have read a bunch of stuff on the Web about this or similar
problems, but, even though it worked before,  I can't make it work now.

I specify my connection info in server.xml and context.xml just like I used
to (below). The only difference is (?) the new MySql, and the fact that I am
trying to use a new, different password (with a dollar sign in it). (Oh,
and, I set appBase outside the Tomcat home directory.)  On Tomcat startup, I
get:

JDBCRealm[Catalina]:
Exception opening database connection
java.sql.SQLException: Invalid authorization specification: Access denied
for user: '[EMAIL PROTECTED]' (Using password: YES)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:659)...

I can login manually to MySql using the same user and password.
I can access the database directly from Java programs which make their own
connection.

Any ideas what's going wrong?

web.xml:
-
 Realm className=org.apache.catalina.realm.JDBCRealm
debug=99
driverName=com.mysql.jdbc.Driver
connectionURL=jdbc:mysql://127.0.0.1:3306/xxx
connectionName=yyy
connectionPassword=$zzz
userTable=portal_user
 userNameCol=clientName
 userCredCol=clientPassword
userRoleTable=portal_role
 roleNameCol=clientRole
digest=md5 /

conext.xml:
---
   Resource name=jdbc/portal auth=Container
type=javax.sql.DataSource/

ResourceParams name=jdbc/portal
  parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
parameter
nameusername/name
valueyyy/value
/parameter
parameter
namepassword/name
value$zzz/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
nameurl/name

valuejdbc:mysql://127.0.0.1:3306/xxx?autoReconnect=true/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
parameter
namemaxIdle/name
value5/value
/parameter
  parameter
   namemaxWait/name
   value1/value
  /parameter
/ResourceParams




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



Fixed: MySQL upgrade Problem

2004-10-26 Thread e-Denton Subscriber
That was my problem--thank goodness. Wish I had asked earlier, before I
tried all that futile cr*p and before I read all that MySQL stuff I didn't
really need to know ;)

PITA to fix? (Does that mean it takes a lot of bread to fix?)

Thx to all for their interest and help.

$ee you $oon!

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; e-Denton
Subscriber [EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 10:09 AM
Subject: RE: MySQL upgrade Problem



Hi,
Dollar sign in password is a no-no right now.  It gets escaped.  It's a
PITA to fix, so I (and apparently others) haven't done it yet.  If you
really want a dollar sign in your password, submit a patch ;)

Yoav Shapira http://www.yoavshapira.com



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



Re: Application Deployment on Tomcat 5.1

2004-10-26 Thread e-Denton Subscriber
I would change appBase in server.xml to pint to WebDir. Then, create a
context for each app with a URI relative to that base. Something like this:

Host name=localhost
  debug=0
  appBase=C:/WebDir

and

Context displayName=myApp1
 path=
 docBase=myApp1
...
Context displayName=myApp2
 path=/myApp1
 docBase=myApp1


- Original Message - 
From: Suryaanil Lingamallu [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 5:53 PM
Subject: Application Deployment on Tomcat 5.1


 Hi,

   I need some help on deploying applications on Tomcat 5.1. I installed
 tomcat 5.1 on Windows 2003 Server in C:\Tomcat5.1\

 I could create applications under CATALINA_HOME/webapps directory.

 I need to create a custom deployment directory which is not under
 CATALINA_HOME/webapps directory. Let's say that I need to create under
 C:\WebDir\.

 My questions are
 1. Will it possible to do this deployment?
 2. If it is possible, what is the procedure?

 Please share with me your thoughts.

 Thanks,
 Surya



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



BASIC authentication without Popup Verification window

2004-10-23 Thread e-Denton Subscriber
Hi!

I can't figure out why my BASIC authorization isn't working for my app. The
pages show up as 401 Not Authorized, but no popup authorization window pops
up! Further, the admin and manager apps are working using my JDBCRealm
(:Enter Password window does pop up). Help appreciated.

server.xml:
---
!-- 
Realm className=org.apache.catalina.realm.UserDatabaseRealm
debug=0 resourceName=UserDatabase/
Realm className=org.apache.catalina.realm.MemoryRealm /
--

Realm resourceName=PortalDatabase
className=org.apache.catalina.realm.JDBCRealm
debug=99
driverName=com.mysql.jdbc.Driver
connectionURL=jdbc:mysql://127.0.0.1:3306/myDB
connectionName=myUser
connectionPassword=myPassword
userTable=users userNameCol=user_name userCredCol=user_pass
userRoleTable=user_roles roleNameCol=role_name /

web.xml:

security-constraint
web-resource-collection
web-resource-nameMaintenance/web-resource-name
url-pattern/maint/*/url-pattern
url-pattern/maintenance.do/url-pattern
/web-resource-collection
auth-constraint
role-namemanager/role-name
/auth-constraint
/security-constraint

login-config
auth-methodBASIC/auth-method
realm-namePortal/realm-name
/login-config

security-role
descriptionmanager/description
role-namemanager/role-name
/security-role


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



Re: BASIC authentication without Popup Verification window

2004-10-23 Thread e-Denton Subscriber
Nevermind. I had a 401 page defined in web.xml, so it was being sent there
instead of the browser. My mistake.

- Original Message - 
From: e-Denton Subscriber [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, October 23, 2004 4:06 PM
Subject: BASIC authentication without Popup Verification window


 Hi!

 I can't figure out why my BASIC authorization isn't working for my app.
The
 pages show up as 401 Not Authorized, but no popup authorization window
pops
 up! Further, the admin and manager apps are working using my JDBCRealm
 (:Enter Password window does pop up). Help appreciated.

 server.xml:
 ---
 !-- 
 Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
 Realm className=org.apache.catalina.realm.MemoryRealm /
 --

 Realm resourceName=PortalDatabase
 className=org.apache.catalina.realm.JDBCRealm
 debug=99
 driverName=com.mysql.jdbc.Driver
 connectionURL=jdbc:mysql://127.0.0.1:3306/myDB
 connectionName=myUser
 connectionPassword=myPassword
 userTable=users userNameCol=user_name userCredCol=user_pass
 userRoleTable=user_roles roleNameCol=role_name /

 web.xml:
 
 security-constraint
 web-resource-collection
 web-resource-nameMaintenance/web-resource-name
 url-pattern/maint/*/url-pattern
 url-pattern/maintenance.do/url-pattern
 /web-resource-collection
 auth-constraint
 role-namemanager/role-name
 /auth-constraint
 /security-constraint

 login-config
 auth-methodBASIC/auth-method
 realm-namePortal/realm-name
 /login-config

 security-role
 descriptionmanager/description
 role-namemanager/role-name
 /security-role


 -
 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]



[Somewhat OT] Content vs. Programming

2004-10-22 Thread Anthony E. Carlos
Hello, folks!
Based on my readings, it seems that most people running Tomcat on 
dedicated boxes. Unfortunately, I'm in a shared environment running 
multiple instances of Tomcat, one for each client. My problem is that 
some clients like to update their own static content via ftp, while 
letting me, the programmer, handle the more complex stuff.

What stinks is that if they ftp content to the server, then I've got to 
merge their new and changed stuff into my development box because when 
I deploy my war file (I'm developing in a separate environment), it 
overwrites all of their stuff.

My content providers aren't technically savvy, so I can't expect them 
to learn to use CVS. They're probably using some GUI program like 
Dreamweaver to create their pages. Does anyone have a suggestion to 
help streamline the battle of content providers versus programmers?

I've thought of having them upload to a alternate directory and then 
running some ant script to copy new and changed files into the Tomcat 
directories, but that still won't help with the merging process. To 
make things even more complicated, and we're also using Tiles so my 
content providers have to ask me to add entries into struts-config.xml 
and tiles-defs.xml when they create a new page.

Is anyone else dealing with this kind of inefficiency, or do you all 
work with just other programmers?

Thanks for your opinions,
-Anthony Carlos
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Context crossContext

2004-10-15 Thread e-Denton Subscriber
Hi,

I was reading in a JSTL book about the Context crossContext attribute, but
it explains nothing.

What exactly does crossContext=true allow one to do?

Thx.


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



Subdomain Set Up

2004-10-15 Thread e-Denton Subscriber
Hi,

I am trying to get set up subdomains on a remote server (WebAppCabaret). I
want to have the following valid URLs:

cnw.xxx.com
blog.xxx.com
www.xxx.com

They are all currently routed to Tomcat.

I want each to map to a different directory or app. Do I set this up in
Tomcat or in Apache? How?

Thx for your help.


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



mod_jk compatibility

2004-10-03 Thread Anthony E. Carlos
Hello,
I have mod_jk working well with Apache 1.3.x and Tomcat 4.1.x. I'm 
trying to connect to a new Tomcat 5 instance (on a different port), but 
it doesn't work.

Here's a snippet from my server.xml on Tomcat 5:
!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8019 --
Connector port=8019
   enableLookups=false redirectPort=8443 debug=1
   protocol=AJP/1.3 /
Here's what shows up in catalina.out:
Sep 30, 2004 1:00:26 AM org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 256
01 00 03 47 00 00 00 00 00 00 00 00 00 00 00 00  | ...G
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  | 
... (a lot more lines filled with 00s)
I thought mod_jk used AJP 1.3. Is it compatible in any way with Tomcat 
5?

BTW, I cannot use mod_jk2 because of my sysadmin's grumblings.
Thanks,
-Anthony Carlos
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Beginner for Apache Tomcat: Need Help

2004-09-29 Thread Anthony E. Carlos
Welcome! Please start by reading some of the online documentation:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html
I'd recommend starting with installing tomcat first without apache. You 
may not even need apache. Once you've gotten that down, you can connect 
tomcat to apache so that apache serves static pages (if you still need 
it). I'd recommend O'Reilly's book on Tomcat for details about creating 
a connector.

On Sep 29, 2004, at 11:55 AM, TK wrote:
Hi there,
I'm a new Apache  Tomcat user. I have the following questions and
hope you can help me out. Thank you.
1. Can I install and run Apache and Tomcat on the same machine? Or, at
the first place, do I need to do so if Tomcat alone can be used as a
Web server?
2. If I install both of them on the same machine, how do I
differentiate the host names? Does http://127.0.0.1/ refers to the
Apache or Tomcat server?
3. How could I create a virtual link to point from the root directory
to another directory located at the other machine or the other disk
drive?
4. Are there any guides on setting and configuring Apache and Tomcat
in Linux environment?
5. Can I use J2EE SDK 1.4 to develop and test JSP applications? If
not, what are the tools that can be used?
6. Can I used JSP to access MS Access database? If not, what is the
recommended DBMS to be used, both in Windows and Linux environments?
That's all for this time. Thanks again.
Regards,
TK
-
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: Reloading an application via command line

2004-09-23 Thread Anthony E. Carlos
Bernhard:
You can use Ant to execute commands from the manager app. So, your  
possibilities list below is actually just one possibility. Here's a  
link to the docs:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager- 
howto.html#Executing%20Manager%20Commands%20With%20Ant

I don't know if there are other shell based commands that can do this.  
Ant works beautifully for me.

Good luck,
-Anthony Carlos
On Sep 23, 2004, at 3:15 AM, Bernhard Slominski wrote:
Hi,
for an automated build process I want to reload an application via  
command
line, is this possible?
The possibilties I found out so far were:
- ant script
- using the tomcat manager

Thanks
Bernhard Slominski
-
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: [OFF-TOPIC] printing an object whose toString() method returns null

2004-09-23 Thread Anthony E. Carlos
No need to be so surly about it, but thanks for answering his questions 
thoroughly.

On Sep 23, 2004, at 7:47 PM, Caldarale, Charles R wrote:
From: Travis Stevens [mailto:[EMAIL PROTECTED]
Subject: printing an object whose toString() method returns null
Now I know that this is a programming mistake, but it would have been
nicer if a more specific error message was thrown.  This can be easily
accomplished by adding a check to the print(Object o) method that 
checks
the result of String.valueOf().
So we should increase everyone's path length because one person does 
something completely counter to the Java API intent?

Unfortunately, the Jsp 2.0 specification does not address
this issue.
Nor should it, since this is a Java API issue, not a JSP spec one.
The print(Object o) is not documented to throw a
NullPointerException, only an IOException.

From the API spec:
public class RuntimeException extends Exception
RuntimeException is the superclass of those exceptions that can be 
thrown during the normal operation of the Java Virtual Machine.

A method is not required to declare in its throws clause any 
subclasses of RuntimeException that might be thrown during the 
execution of the method but not caught.

NullPointerException is merely the most common of the large set of 
RuntimeException subclasses.

 - Chuck
-
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: Do the jars I use affect webapp reloadability?

2004-09-22 Thread Anthony E. Carlos
Yoav,
Thanks for the response. It helps me out significantly because I have 
already found that some of the code I wrote was definitely using static 
variables that could never go out of scope. I've removed those, but the 
problem persists.

I'm using log4j and Struts and your comment about LogManager#shutdown 
begs a question: Where in my code should I be calling the shutdown 
method? Is there some method in Tomcat that I need to override to call 
the shutdown method of each library I'm using? Or, should I be calling 
those methods by the end of each Struts Action#execute method? What 
about database connection pools? (I'm using OJB). I think that I want 
to maintain the pools even after the Action is executed so that the 
next database connection is relatively inexpensive. Where would I put 
the code to shutdown the pool only when a reload is happening?

Thanks for your wisdom,
-Anthony Carlos
On Sep 21, 2004, at 9:06 AM, Shapira, Yoav wrote:
Hi,
Absolutely, the jars you used affect reloadability.  Two cases are the
classics:
- A library you use starts a non-daemon thread, and either doesn't close
it or provides some sort of a shutdown method that you're not calling.
This thread cannot be closed by Tomcat, so any of its resources
(including its classloader by definition) cannot be recycled until the
JVM is killed.
- A library you use has classes that keep references to static variables
that never go out of scope, meaning they can't be recycled, the classes
with the references can't be recycled, and the classloader itself can't
be recycled.
Two things are therefore encouraged:
- Design your app / architecture such that the need for reloads in
production is rare,
- Find which libraries do either of the above things, notify the vendor,
and get on their case to fix it.
There's also the obvious, ever-present advice, but it bears repeating:
if a library you use provides methods to shutdown, always use them.  For
example, Log4j's LogManager#shutdown and Commons-Logging
LogFactory#release/releaseAll methods.  Both are rarely used ;(
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Anthony E. Carlos [mailto:[EMAIL PROTECTED]
Sent: Monday, September 20, 2004 11:52 PM
To: [EMAIL PROTECTED]
Subject: Do the jars I use affect webapp reloadability?
Hello,
I'm experiencing a memory problem that is documented in
http://jakarta.apache.org/tomcat/faq/deployment.html at the bottom.
When I redeploy a web app, a 12MB chunk of memory gets taken by the
JVM. After a few redeployments, I get an OutOfMemory error. The faq
mentioned above blames it on the Classloader not being able to be
recycled. I know that I can increase the size of the memory, but that
isn't the real solution because eventually I'm going to have to restart
Tomcat to reclaim the lost memory.
My question is, do the jars I'm using affect the reloadability of a web
app so that the Classloader cannot be recycled? I suspect this because
as soon as I add a few jars to my apps, I start experiencing this
phenomenon. I have a suspicion that it is OJB or the Oracle JDBC
drivers, but I don't have any empirical data. Do you know of any jars
that specifically cause this? Is there anything that can be done to
ensure that the Classloader can be recycled (thus allowing me to
redeploy web apps without wasting memory)?
Thanks,
-Anthony Carlos
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

-
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: can't send request over my network ip

2004-09-21 Thread Anthony E. Carlos
Have you tried setting up a virtual host to listen to 192.168.1.172?
On Sep 21, 2004, at 10:49 AM, QM wrote:
On Tue, Sep 21, 2004 at 04:16:55PM +0200, Sebastian Kerekes wrote:
: I can access Tomcat through 127.0.0.1:8080 but not via 192.168.1.172
: (private network). I'm using Tomcat 5.0.27. I haven't changed any of
: Tomcat's settings. Do I have to change some settings or is this 
problem
: not related to Tomcat?

1/ please post a *new* message when writing to the list.  Replying to
an old (unrelated) message confuses thread-aware mailers, which makes
your question harder to find (and thus answer).
2/ sounds like a firewall issue. What OS do you use?
-QM
--
software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.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]


ROOT Problem

2004-09-20 Thread e-Denton Subscriber
Hi,

I set my context to use my app as the default app:

Context displayName=e-Denton Portal Application
 docBase=e-Denton
 path=
 reloadable=true
 useNaming=true
 debug=5

It does call my app with this URL http://127.0.0.1:8080/, but it also starts
up the app in /e-Denton. In other words, it is running both as the default
app and as its own app. What am I doing wrong?

Thx.


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



Re: ROOT Problem

2004-09-20 Thread e-Denton Subscriber
That doesn't seem to work. I still have both running. I changed the Host as
below:

  Host name=localhost appBase=webapps
   unpackWARs=true autoDeploy=false
   xmlValidation=false xmlNamespaceAware=false
   debug=5

I am running Tomcat 5.0.27

- Original Message - 
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; e-Denton
Subscriber [EMAIL PROTECTED]
Sent: Monday, September 20, 2004 11:12 AM
Subject: RE: ROOT Problem



Hi,
You have autoDeploy enabled (this is the default).  Turn it off by
modifying the Host element in your server.xml.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
Sent: Monday, September 20, 2004 12:08 PM
To: Tomcat Users List
Subject: ROOT Problem

Hi,

I set my context to use my app as the default app:

Context displayName=e-Denton Portal Application
 docBase=e-Denton
 path=
 reloadable=true
 useNaming=true
 debug=5

It does call my app with this URL http://127.0.0.1:8080/, but it also
starts
up the app in /e-Denton. In other words, it is running both as the
default
app and as its own app. What am I doing wrong?

Thx.


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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]



Do the jars I use affect webapp reloadability?

2004-09-20 Thread Anthony E. Carlos
Hello,
I'm experiencing a memory problem that is documented in 
http://jakarta.apache.org/tomcat/faq/deployment.html at the bottom. 
When I redeploy a web app, a 12MB chunk of memory gets taken by the 
JVM. After a few redeployments, I get an OutOfMemory error. The faq 
mentioned above blames it on the Classloader not being able to be 
recycled. I know that I can increase the size of the memory, but that 
isn't the real solution because eventually I'm going to have to restart 
Tomcat to reclaim the lost memory.

My question is, do the jars I'm using affect the reloadability of a web 
app so that the Classloader cannot be recycled? I suspect this because 
as soon as I add a few jars to my apps, I start experiencing this 
phenomenon. I have a suspicion that it is OJB or the Oracle JDBC 
drivers, but I don't have any empirical data. Do you know of any jars 
that specifically cause this? Is there anything that can be done to 
ensure that the Classloader can be recycled (thus allowing me to 
redeploy web apps without wasting memory)?

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


real world deployment with multiple virtual hosts

2004-09-20 Thread Anthony E. Carlos
Hello,
I've configured Tomcat with multiple virtual hosts. However, because of 
ever-increasing memory usage, (see 
http://jakarta.apache.org/tomcat/faq/deployment.html at the bottom), I 
often have to restart Tomcat. Thus a dozen or so sites all go down for 
a minute or two while each of them reloads.

My question is, what are people doing to avoid this problem? Are people 
generally running an individual instance of Tomcat for each virtual 
host? This would isolate each host and thus prevent the problem I'm 
having, but it seems like an awful waste of resources especially 
compared to Apache.

Or, is there a way to restart just one virtual host?
Thanks for your help,
-Anthony Carlos
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat question

2004-09-16 Thread Thomas E. Dukes
Hello,

Does anyone know why I am able to load .jsp files but not .jspa files?

Example:

http://localhost/forum/admin/setup/index.jsp  works

http://localhost/forum/admin/setup/setup.index!default.jspa does not work

I am using Fedora Core 2, tomcat 4.1.27 and the jk2 / AJP 1.3 connector.

Thanks


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



RE: Tomcat question

2004-09-16 Thread Thomas E. Dukes
 
 *.jspa is not mapped to the JSP servlet.
 
 See $CATALINA_HOME/conf/web.xml

Thanks, Tim,

I am really new to tomcat and java.  I took a look in the web.xml and didn't
see anything related to .jspa.  Can you please tell me what I need to add.
I tried adding:

servlet-mapping
servlet-namejspa/servlet-name
url-pattern*.jspa/url-pattern
/servlet-mapping

But that broke everything.

Thanks
 
 -Tim
 
 Thomas E. Dukes wrote:
 
  Hello,
  
  Does anyone know why I am able to load .jsp files but not 
 .jspa files?
  
  Example:
  
  http://localhost/forum/admin/setup/index.jsp  works
  
  http://localhost/forum/admin/setup/setup.index!default.jspa 
 does not 
  work
  
  I am using Fedora Core 2, tomcat 4.1.27 and the jk2 / AJP 
 1.3 connector.
  
 
 -
 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: Tomcat question

2004-09-16 Thread Thomas E. Dukes
 Hi,
 
 servlet-mapping
 servlet-namejspa/servlet-name
 url-pattern*.jspa/url-pattern
 /servlet-mapping
 
 That's pretty close: look at the servlet-mapping element for *.jsp.
 Copy and paste it, change the url-pattern to *.jspa.  That's 
 it.  Keep the servlet-name the same, don't modify it to jspa.
 

Thanks!!

Made the change.  It didn't break this time but when I try to access the
page, http://localhost/forum/admin/setup/setup.index!default.jspa, I still
get error 404 object not found


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



RE: Tomcat question

2004-09-16 Thread Thomas E. Dukes
 
 Hi,
 
 Made the change.  It didn't break this time but when I try to access
 the
 page, http://localhost/forum/admin/setup/setup.index!default.jspa, I
 still
 get error 404 object not found
 
 What's this weird URL?  Are you really running on port 80?

Hi,

I'm trying to setup jive forums.

Try this link:
http://palmettodomains.com/forum/admin/setup/main.jsp, the click the
Continue button.

Thanks!!


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



Confused

2004-09-14 Thread Thomas E. Dukes
Hello,

I have only been running tomcat for 3 days now but I am confused about
something.

Today, I change the appBase from webapps to /var/www/html for the
default virtual host in server.xml.  I restarted tomcat.  I then installed
jive forums in /var/www/html/forums but was not able to get it to work at
that location.  I changed appBase back to webapps, moved jive forums to
/var/lib/tomcat and bingo-bango, it worked.

My reasoning for this is I have several virtual hosts and didn't want to
lump all java apps together.  I'd rather spread them out to their respective
home directories.

This is a Fedora Core 2 system running tomcat 4.1.27.

Is there something I didn't do besides changing server.xml?

TIA


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



RE: SPAM MAIL FROM HSBC

2004-09-14 Thread Thomas E. Dukes
 

 -Original Message-
 From: Aris Javier [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 14, 2004 10:52 PM
 To: [EMAIL PROTECTED]
 Subject: SPAM MAIL FROM HSBC
 
 Hello to All! 
  
 Im always receiving HSBC spam mail here in tomcat mailing list...
 Am I the only one receiving this spam mail? or everybody in 
 mailing list?

I've received 50 or more of the same email.  It must be an out of office
reply or something.
 
 Can tomcat mailing list administrator block this? or its in 
 our server?

You'd think.  I don't know what they are waiting for, but I wish they'd
remove him from the list.


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



Tomcat Problems

2004-09-13 Thread Thomas E. Dukes
Hello,

I am running Fedora Core 2 with the stock version of tomcat, 4.1.27-13.  I
know this is not the latest version but I thought I'd start with what comes
with this distribution.

I have followed the howto at jakarta.apache.org.

First, if I go to http://localhost/examples, I can see the examples and run
them with no problems.

The problem is http://localhost:8080.  According to the howto, I should see
a tomcat welcome message.  All I get is connection refused.  The excerpt
from the apahace error log is:

[Mon Sep 13 10:26:27 2004] [error] channelSocket.open() connect failed
localhost:8019 111 Connection refused 
[Mon Sep 13 10:26:27 2004] [error] ajp13.connect() failed
ajp13:localhost:8019
[Mon Sep 13 10:26:27 2004] [error] ajp13.service() failed to connect
endpoint errno=111 Connection refused
[Mon Sep 13 10:26:27 2004] [error] ajp13.service() Error  forwarding
ajp13:localhost:8019 1 1
[Mon Sep 13 10:26:27 2004] [notice] ajp13.done() close endpoint
ajp13:localhost:8019 error_state 1
[Mon Sep 13 10:26:27 2004] [error] lb.service() worker failed 12 for
ajp13:localhost:8019
[Mon Sep 13 10:26:28 2004] [error] channelUn.connect() connect failed 2 No
such file or directory
[Mon Sep 13 10:26:28 2004] [error] ajp13.connect() failed
ajp13:/opt/33/work/jk2.socket
[Mon Sep 13 10:26:28 2004] [error] ajp13.service() failed to connect
endpoint errno=2 No such file or directory
[Mon Sep 13 10:26:28 2004] [error] ajp13.service() Error  forwarding
ajp13:/opt/33/work/jk2.socket 1 1
[Mon Sep 13 10:26:28 2004] [notice] channelUn.close(): close unix socket -1 
[Mon Sep 13 10:26:28 2004] [notice] ajp13.done() close endpoint
ajp13:/opt/33/work/jk2.socket error_state 1
[Mon Sep 13 10:26:28 2004] [error] lb.service() worker failed 12 for
ajp13:/opt/33/work/jk2.socket
[Mon Sep 13 10:26:28 2004] [error] channelSocket.open() connect failed
localhost:8019 111 Connection refused 
[Mon Sep 13 10:26:28 2004] [error] ajp13.connect() failed
ajp13:localhost:8019
[Mon Sep 13 10:26:28 2004] [error] ajp13.service() failed to connect
endpoint errno=111 Connection refused
[Mon Sep 13 10:26:28 2004] [error] ajp13.service() Error  forwarding
ajp13:localhost:8019 1 1
[Mon Sep 13 10:26:28 2004] [notice] ajp13.done() close endpoint
ajp13:localhost:8019 error_state 1
[Mon Sep 13 10:26:28 2004] [error] lb.service() worker failed 12 for
ajp13:localhost:8019
[Mon Sep 13 10:26:28 2004] [error] channelUn.connect() connect failed 2 No
such file or directory
[Mon Sep 13 10:26:28 2004] [error] ajp13.connect() failed
ajp13:/opt/33/work/jk2.socket
[Mon Sep 13 10:26:28 2004] [error] ajp13.service() failed to connect
endpoint errno=2 No such file or directory
[Mon Sep 13 10:26:28 2004] [error] ajp13.service() Error  forwarding
ajp13:/opt/33/work/jk2.socket 1 1
[Mon Sep 13 10:26:28 2004] [notice] channelUn.close(): close unix socket -1 
[Mon Sep 13 10:26:28 2004] [notice] ajp13.done() close endpoint
ajp13:/opt/33/work/jk2.socket error_state 1
[Mon Sep 13 10:26:28 2004] [error] lb.service() worker failed 12 for
ajp13:/opt/33/work/jk2.socket

The first thing I noticed is the ajp13:/opt/33/work/jk2.socket.  I don't
have this directory or file, anywhere.  I'm not sure if I missed installing
an rpm or there is a incorrect config file that cam with this distribution
somewhere pointing to this.  

I have searched google and the archive with no success.  Any help would be
appreciated.


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



RE: Tomcat Problems

2004-09-13 Thread Thomas E. Dukes

 -Original Message-
 From: RJ [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 13, 2004 12:07 PM
 To: Tomcat Users List
 Subject: Re: Tomcat Problems
 
 One thing that I've noticed with some installs of Fedora is 
 that out of the box the iptables firewall gets setup in a 
 weird way that rejects a lot of connections (even if it's 
 supposedly allowing the ports you want to go thru).  Flushing 
 the rules it creates, and putting the ones in that I want 
 fixes the problem.
 
 rj
 

Thanks RJ!

Got it working.  It wasn't iptables.  The problem was it was commented out
in server.xml :-(

Sorry, but you put me on the right track.

Also, I don't know if you can answer this one or not but I have 3 virtual
hosts running and I'd rather put java apps somewhere in the home directories
for each virtual host instead of lumping them all in the default location.

I saw in the jakarta virtual hosting howto that the appBase can be changed.
If I put them in the document root of the virtual host will this cause any
problems?

Thanks!!


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



not getting connection leak stacktraces

2004-07-20 Thread E
Tomcat's reporting some connection leaks in my application...but I can't 
figure out where they're coming from. The only output i see in my logs is:
AbandonedObjectPool is used 	 
([EMAIL PROTECTED])
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60

I'm running Tomcat 5.0.27, connecting to MySQL 12.22 using 
mysql-connector 3.0.11. My connection pool is setup as follows:

Resource name=jdbc/writer auth=Container 
type=javax.sql.DataSource/
ResourceParams name=jdbc/writer
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

parameter
namemaxActive/name
value10/value
/parameter
parameter
namemaxIdle/name
value2/value
/parameter
parameter
namemaxWait/name
value1/value
/parameter
parameter
nameremoveAbandoned/name
valuetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/name
value60/value
/parameter
parameter
namelogAbandoned/name
valuetrue/value
/parameter
parameter
nameusername/name
valueXXX/value
/parameter
parameter
namepassword/name
valueXXX/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:mysql://localhost:3306/mydatabase?autoReconnect=true/value
/parameter
/ResourceParams
I can't see any obvious leaks in my code, so I'm completely baffled. Any 
help is appreciated.

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


Re: Tomcat 5.0 and JavaMail - solved? not quite

2004-07-09 Thread e-Denton Subscriber
My lookup still fails (stack trace at end of this email) with
JasperException:

   Context initContext = new InitialContext();
   Context envContext  = (Context) initContext.lookup (java:comp/env);
   Session mailSession = (Session) envContext.lookup (mail/Session);
// fails

Is anyone successfully using JavaMail with JNDI lookup on Tomcat 5.0.27 ?

Should I report it as a bug?

- Original Message - 
From: e-Denton Subscriber [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 9:10 AM
Subject: Re: Tomcat 5.0 and JavaMail - solved?


 You're right! Thanks! My Tomcat 5.0.25 common/lib/naming-factory.jar
doesn't
 contain a org.apache.naming.factory.MailSessionFactory I'll try your
 solution.

 Thanks to the other posters as well. (I did forget activation.jar, even
 though I hadn't hit that problem yet).

 - Original Message - 
 From: David Smith [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, July 08, 2004 8:34 AM
 Subject: Re: Tomcat 5.0 and JavaMail


  opinion
Don't get in the habit of putting jars in java_home/jre/lib/ext.
  Those jars get loaded before everything and ugly version conflicts among
  other problems show up.
  /opinion
 
  I have a different take on your problem.  Are you using Tomcat 5.0.25?
  If so, you may want to consider upgrading or just stealing
  common/lib/naming-factory.jar from a 5.0.24 version of Tomcat.
  org.apache.naming.factory.MailSessionFactory is missing from tomcat
  5.0.25.  See this message from the archives:
 
 
http://www.mail-archive.com/[EMAIL PROTECTED]/msg128258.html
 
  --David
 
  Aris Javier wrote:
 
  you don't need to put activation.jar and mail.jar inside
  catalina_home\common\lib\ you need to put them inside
  java_home\jre\lib\ext...
  
  regards...
  aris
  
  -Original Message-
  From: Dale, Matt [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 07, 2004 11:23 PM
  To: Tomcat Users List; e-Denton Subscriber
  Subject: RE: Tomcat 5.0 and JavaMail
  
  
  
  I've found that you also need activation.jar for JavaMail, do you have
  this in common/lib too?
  
  Ta
  Matt
  
  -Original Message-
  From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
  Sent: 07 July 2004 15:49
  To: Tomcat Users List
  Subject: Tomcat 5.0 and JavaMail
  
  
  I had JavaMail working in Tomcat 4, but in Tomcat 5, I am having
  trouble. I know it's something simple, perhaps you can see the problem.
  Mail.jar is in Tomcat 5.0\common\lib.
  
  I am getting this error:
  
  javax.naming.NamingException: Cannot create resource instance:
  
  Using this context in Tomcat 5.0\conf\Catalina\localhost\e_Denton.xml
  
  Context displayName=Portal Application
   debug=5
   docBase=e-Denton
   path=/e-Denton
   reloadable=true
   useNaming=true
  
  Loader checkInterval=1 /
  
   Resource name=mail/Session auth=Container
  type=javax.mail.Session /  ResourceParams name=mail/Session
parameter
 namemail.smtp.host/name
 valuemars.webappcabaret.net/value
/parameter
   /ResourceParams
  ...
  
  And this web.xml:
  
  !-- JavaMail Resource --
   resource-ref
description
Resource reference to a factory for javax.mail.Session
preconfigured to connect to the appropriate SMTP server.
/description
res-ref-namemail/Session/res-ref-name
res-typejavax.mail.Session/res-type
res-authContainer/res-auth
   /resource-ref
  
  Accessed like this:
  
try
 {
 Context initContext = new InitialContext();
 Context envContext  = (Context) initContext.lookup(java:comp/env);
 Session session = (Session) envContext.lookup(mail/Session);
 }
catch (javax.naming.NamingException ne)

Nested Exception:
java.lang.reflect.InvocationTargetException




java.lang.reflect.InvocationTargetException at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at
org.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRunt
imeLibrary.java:355) at
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibra
ry.java:306) at
org.apache.jsp.Test_005fJavaMail_jsp._jspService(Test_005fJavaMail_jsp.java:
81) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802

Re: Tomcat 5.0 and JavaMail - solved?

2004-07-08 Thread e-Denton Subscriber
You're right! Thanks! My Tomcat 5.0.25 common/lib/naming-factory.jar doesn't
contain a org.apache.naming.factory.MailSessionFactory I'll try your
solution.

Thanks to the other posters as well. (I did forget activation.jar, even
though I hadn't hit that problem yet).

- Original Message - 
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 8:34 AM
Subject: Re: Tomcat 5.0 and JavaMail


 opinion
   Don't get in the habit of putting jars in java_home/jre/lib/ext.
 Those jars get loaded before everything and ugly version conflicts among
 other problems show up.
 /opinion

 I have a different take on your problem.  Are you using Tomcat 5.0.25?
 If so, you may want to consider upgrading or just stealing
 common/lib/naming-factory.jar from a 5.0.24 version of Tomcat.
 org.apache.naming.factory.MailSessionFactory is missing from tomcat
 5.0.25.  See this message from the archives:

 http://www.mail-archive.com/[EMAIL PROTECTED]/msg128258.html

 --David

 Aris Javier wrote:

 you don't need to put activation.jar and mail.jar inside
 catalina_home\common\lib\ you need to put them inside
 java_home\jre\lib\ext...
 
 regards...
 aris
 
 -Original Message-
 From: Dale, Matt [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 07, 2004 11:23 PM
 To: Tomcat Users List; e-Denton Subscriber
 Subject: RE: Tomcat 5.0 and JavaMail
 
 
 
 I've found that you also need activation.jar for JavaMail, do you have
 this in common/lib too?
 
 Ta
 Matt
 
 -Original Message-
 From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
 Sent: 07 July 2004 15:49
 To: Tomcat Users List
 Subject: Tomcat 5.0 and JavaMail
 
 
 I had JavaMail working in Tomcat 4, but in Tomcat 5, I am having
 trouble. I know it's something simple, perhaps you can see the problem.
 Mail.jar is in Tomcat 5.0\common\lib.
 
 I am getting this error:
 
 javax.naming.NamingException: Cannot create resource instance:
 
 Using this context in Tomcat 5.0\conf\Catalina\localhost\e_Denton.xml
 
 Context displayName=Portal Application
  debug=5
  docBase=e-Denton
  path=/e-Denton
  reloadable=true
  useNaming=true
 
 Loader checkInterval=1 /
 
  Resource name=mail/Session auth=Container
 type=javax.mail.Session /  ResourceParams name=mail/Session
   parameter
namemail.smtp.host/name
valuemars.webappcabaret.net/value
   /parameter
  /ResourceParams
 ...
 
 And this web.xml:
 
 !-- JavaMail Resource --
  resource-ref
   description
   Resource reference to a factory for javax.mail.Session
   preconfigured to connect to the appropriate SMTP server.
   /description
   res-ref-namemail/Session/res-ref-name
   res-typejavax.mail.Session/res-type
   res-authContainer/res-auth
  /resource-ref
 
 Accessed like this:
 
   try
{
Context initContext = new InitialContext();
Context envContext  = (Context) initContext.lookup(java:comp/env);
Session session = (Session) envContext.lookup(mail/Session);
}
   catch (javax.naming.NamingException ne)
 
 
 
 
 
 
 -
 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]



Tomcat 5.0 and JavaMail

2004-07-07 Thread e-Denton Subscriber
I had JavaMail working in Tomcat 4, but in Tomcat 5, I am having trouble. I
know it's something simple, perhaps you can see the problem. Mail.jar is in
Tomcat 5.0\common\lib.

I am getting this error:

javax.naming.NamingException: Cannot create resource instance:

Using this context in Tomcat 5.0\conf\Catalina\localhost\e_Denton.xml

Context displayName=Portal Application
 debug=5
 docBase=e-Denton
 path=/e-Denton
 reloadable=true
 useNaming=true

Loader checkInterval=1 /

 Resource name=mail/Session auth=Container type=javax.mail.Session /
 ResourceParams name=mail/Session
  parameter
   namemail.smtp.host/name
   valuemars.webappcabaret.net/value
  /parameter
 /ResourceParams
...

And this web.xml:

!-- JavaMail Resource --
 resource-ref
  description
  Resource reference to a factory for javax.mail.Session
  preconfigured to connect to the appropriate SMTP server.
  /description
  res-ref-namemail/Session/res-ref-name
  res-typejavax.mail.Session/res-type
  res-authContainer/res-auth
 /resource-ref

Accessed like this:

  try
   {
   Context initContext = new InitialContext();
   Context envContext  = (Context) initContext.lookup(java:comp/env);
   Session session = (Session) envContext.lookup(mail/Session);
   }
  catch (javax.naming.NamingException ne)






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



Upgrading to Tomcat 5.0

2004-07-07 Thread e-Denton Subscriber
I have another problem. webapps contains both an e-Denton.war file and an
already expanded .war file (e-Denton directory). My Context (e-Denton.xml)
is in Tomcat 5.0\conf\Catalina\localhost. Any idea why I would be getting
this message?

StandardHost[localhost]: Error deploying application at context path null
java.lang.IllegalStateException: Context path /e-Denton is already in use
 at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
 at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
 at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
 at
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:7
6)
 at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1567)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:488)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
 at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:482
)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
 at org.apache.catalina.core.StandardService.start(StandardService.java:476)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)


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



Re: Upgrading to Tomcat 5.0--Fixed

2004-07-07 Thread e-Denton Subscriber
Nevermind--I figured this one out. I had saved a copy of my old web.xml,
which Tomcat was also trying to load.

- Original Message - 
From: e-Denton Subscriber [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 11:06 AM
Subject: Upgrading to Tomcat 5.0


 I have another problem. webapps contains both an e-Denton.war file and an
 already expanded .war file (e-Denton directory). My Context (e-Denton.xml)
 is in Tomcat 5.0\conf\Catalina\localhost. Any idea why I would be getting
 this message?

 StandardHost[localhost]: Error deploying application at context path null
 java.lang.IllegalStateException: Context path /e-Denton is already in use
  at

org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
  at

org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
  at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
  at

org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:7
 6)
  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
  at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
 Source)
  at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
 her.dispatch(Unknown Source)
  at
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
  at org.apache.commons.digester.Digester.parse(Digester.java:1567)
  at

org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
 ava:488)
  at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
  at

org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:482
 )
  at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
  at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964)
  at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
  at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
 t.java:119)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:476)
  at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
  at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)


 -
 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]



Sysdeo, Eclipse, Tomcat

2004-07-03 Thread e-Denton Subscriber
I am trying to figure out how to debug servlets and JSPs. I am running
Windows ME,
Tomcat 5.0, Eclipse 2.1.3, and Sysdeo Tomcat Plugin 3.0.0.alpha1.

So, how should Sysdeo be set up?

Should I be able to set a breakpoint normally in a servlet?

How do I set a breakpoint in JSP?

Where is my soruce (and binaries) supposed to be?

Miscellaneous questions:

1. What is Tomcat base? (Preferences/Tomcat)
2. Any JVM settings needed? (Preferences/Tomcat/JVM settings)

Thanks for your help. I have already tried to find a tutorial on the Web,
but nothing has helped.




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



Como funciona tomcat en Fedora Core 2

2004-07-02 Thread Sergio E . Triviño I .
Hola Lista

Instale Fedora Core 2, veo que viene el servicio tomcat e inclusive sube el servicio 
tomcat OK. Pero como lo acceso? 
Yo pense que era por lo normal http://localhost:8080 pero no funciona. Mi pregunta es 
que tengo que hacer para que funcione o como tengo que hacer la prueba para correr JSP.

Muchas Gracias.

Tomcat 5.0 under Windows ME

2004-06-23 Thread e-Denton Subscriber
I just downloaded Tomcat 5.0 to run on my Windows ME system. When I try to
run the Configure Tomcat program, I get:

The tomcat5w.exe file is linked to missing export
NETAPI32.DLL:MetwkstaGetInfo.

NETAPI32.DLL seems to be a Windows XP file. I did the same download on my XP
machine and it is working.

Any idea what my problem is under Windows ME?

Thanks for your help.



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



Re: Tomcat 5.0 under Windows ME

2004-06-23 Thread e-Denton Subscriber
Thx for your help.

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 11:27 AM
Subject: RE: Tomcat 5.0 under Windows ME


 From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
 Subject: Tomcat 5.0 under Windows ME

 I just downloaded Tomcat 5.0 to run on my Windows ME
 system. When I try to run the Configure Tomcat program

Don't use the .exe files under older Windows versions - they are primarily
for running Tomcat as a Windows service, a concept that doesn't exist for
95/98/Me. Just use the .bat files to start it up under a DOS box. Also make
sure you have a reasonably current Sun J2SDK installed, not just a JRE.

 - 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]



Tomcat 4.1 - 5.0

2004-06-23 Thread e-Denton Subscriber
I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to
establish my context. Under 4.1, I placed a Context entry (at the end of
this email) in server.xml. I gather it should now be in its own xml file
within my application directory. But, where? and by what name? Is it found
automagically?



!-- portal context Chang  Wagers Associates Copyright 2004 --
Context displayName=e-Denton Portal Application
 docBase=e-Denton
 path=/e-Denton
 debug=3
 reloadable=true
 useNaming=true 
Loader checkInterval=1 /

Resource name=jdbc/portal auth=Container
type=javax.sql.DataSource/

ResourceParams name=jdbc/portal
  parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
parameter
nameusername/name
valuefortune/value
/parameter
parameter
namepassword/name
valuex/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
parameter
namemaxIdle/name
value5/value
/parameter
  parameter
   namemaxWait/name
   value1/value
  /parameter

/ResourceParams
/Context



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



Re: Tomcat 4.1 - 5.0

2004-06-23 Thread e-Denton Subscriber
Thanks--it works!

- Original Message - 
From: Randall Svancara [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; e-Denton
Subscriber [EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 2:23 PM
Subject: RE: Tomcat 4.1 - 5.0


I believe they go into $catalina_home/conf/Catalina/localhost/somewebapp.xml

Randall

-Original Message-
From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 1:21 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1 - 5.0


I am converting a Struts app from Tomcat 4.1 to 5.0 and don't know how to
establish my context. Under 4.1, I placed a Context entry (at the end of
this email) in server.xml. I gather it should now be in its own xml file
within my application directory. But, where? and by what name? Is it found
automagically?



!-- portal context Chang  Wagers Associates Copyright 2004 --
Context displayName=e-Denton Portal Application
 docBase=e-Denton
 path=/e-Denton
 debug=3
 reloadable=true
 useNaming=true 
Loader checkInterval=1 /

Resource name=jdbc/portal auth=Container
type=javax.sql.DataSource/

ResourceParams name=jdbc/portal
  parameter
   namefactory/name
   valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
parameter
nameusername/name
valuefortune/value
/parameter
parameter
namepassword/name
valuex/value
/parameter
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter
parameter
nameurl/name
valuejdbc:mysql://127.0.0.1:3306/x?autoReconnect=true/value
/parameter
parameter
namemaxActive/name
value10/value
/parameter
parameter
namemaxIdle/name
value5/value
/parameter
  parameter
   namemaxWait/name
   value1/value
  /parameter

/ResourceParams
/Context



-
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]



Easy /servlet question

2004-06-23 Thread e-Denton Subscriber
I have a very simple question, to which neither I nor my wife can find the
answer.

My servlet is in the WEB-INF/classes directory of my application directory.
For some reason, I can't get this simple construction--it's in all the JSP
books--to work:

http://127.0.0.1:8080/e-Denton/servlet/Upload_CnW


I get this error:

HTTP Status 404 - /e-Denton/servlet/Upload_CnW
message /e-Denton/servlet/Upload_CnW
description The requested resource (/e-Denton/servlet/Upload_CnW) is not
available.

I can get it to wotk with a sevlet mapping, but not without it.



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



Re: Easy /servlet question

2004-06-23 Thread e-Denton Subscriber
Thanks, Paul. Problem (mystery) solved.

- Original Message - 
From: Lee, Paul NYC [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, June 23, 2004 4:51 PM
Subject: RE: Easy /servlet question


 Tomcat 3.x allowed access to servlets under a common mapping (/servlet/*)
by
 default.  In Tomcat 4.x the developers stopped this behavior by default.
 This was done by the invoker servlet.

 To enable this, under $CATALINA_HOME/conf, modify the web.xml file.
Search
 for invoker and you should find something like this:

 !-- The mapping for the invoker servlet --
 !--
 servlet-mapping
 servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping
 --

 Just uncomment and it should work.  Note that /servlet/ is no longer
part
 of the specification as of 2.3.  Mapping it is recommended.

 Regards,
 Paul

 -Original Message-
 From: e-Denton Subscriber [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, June 23, 2004 4:29 PM
 To: [EMAIL PROTECTED]
 Subject: Easy /servlet question


 I have a very simple question, to which neither I nor my wife can find the
 answer.

 My servlet is in the WEB-INF/classes directory of my application
directory.
 For some reason, I can't get this simple construction--it's in all the JSP
 books--to work:

 http://127.0.0.1:8080/e-Denton/servlet/Upload_CnW


 I get this error:

 HTTP Status 404 - /e-Denton/servlet/Upload_CnW
 message /e-Denton/servlet/Upload_CnW
 description The requested resource (/e-Denton/servlet/Upload_CnW) is not
 available.

 I can get it to wotk with a sevlet mapping, but not without it.



 -
 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]



Tomcat 5.0 and NETAPI32.DLL

2004-06-22 Thread e-Denton Subscriber
Hi,

I just downloaded Tomcat 5.0 to run on my Windows ME system. When I try to
run the Configure Tomcat program, I get:

The tomcat5w.exe file is linked to missing export
NETAPI32.DLL:MetwkstaGetInfo.

NETAPI32.DLL seems to be a Windows XP file. I did the same download on my XP
machine and it is working.

Any idea what my problem is under Windows ME?

Thanks,

Will



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



ssl, verisign, no common encryption algorithm

2004-05-24 Thread Michael E. Allen
Greetings!
I am running tomcat 4.1.27 and having trouble importing a global id 
certificate from Verisign.  My server works fine with a self-generated 
certificate, but as soon as I replace my self signed certificate with 
the one from Verisign, I get a message from firefox that it is unable to 
communicate with the server securely because they have no common 
encryption algorithm.  Tomcat 5 exhibits similar behavior.

I have carefully followed the instructions at both:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html
-and-
http://www.verisign.com/support/csr/tomcat/v00.html
Any ideas?
Thanks,
Michael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Multihosting in tomcat

2004-05-11 Thread k e
I too have questions concerning multihosting with Tomcat.

Yoav has mentioned a few times about not needing a connector to IIS or 
Apache.  What I wonder is whether or not the Tomcat Standalone method would 
work in a situation where you have 20+ instances (Windows Services/JVMs) 
running on one installation of Tomcat.

There does not seem to be any documentation for Tomcat in a multihosting 
environment.  The main things which are lacking are the results of setting 
certain parameters too high or too low.

Ex. MaxProcessors (Tomcat 4.1.27)  - we have an issue where one site will 
creep up to 107 thread and be so slow that we have to restart the service 
(JVM Instance.)  Default value is 75 - how does it even get up to 107?  We 
have been constantly modifiying this along with accept count and monitoring 
trying to figure the best fit.  However, I don't know if this is a good 
value to be modifying when you have 20+ sites.

My Questions:

1) Is Tomcat Standalone (4.1.27 or higher) still a viable implementation in 
a multi-instance scenario?
2) What are the ramifications of modifing these parameters in a 
multi-instance scenario?
3) Is anyone willing to join a create a discussion group on this topic or 
should we keep posting our thoughts/concerns here?

So far the testing of standalone tomcat proves to be ok, however, I am weary 
of changing production because test environment and load tests almost never 
provide the same results as real life :)

If anyone has any experience, knowledge or thoughts - please reply.

Thanks.

_
Best Restaurant Giveaway Ever! Vote for your favorites for a chance to win 
$1 million! http://local.msn.com/special/giveaway.asp

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


JK2 (2.0.4 latest) and IIS DocUpload Problem - NEW

2004-05-05 Thread E Cunningham


Background:
I have a default instance of Tomcat (4.1.29) running
on a Windows 2000 box with the new JK2 connector
(2.0.4) latest with the fix for not being able to 
upload more than 56Kb. Using the most recent
upload.war available on http://www.servlets.com/
(yes, Jason Hunters)

Problem:
When I attempt to xfer a file (easiest with large
files like 10MB) and then cancel the upload the new
IIS redirector does not relay the fact that the 
IO stream was interrupted. Instead it closes the 
transfer. This makes the upload servlet think that 
it has received the file successfully. In fact, 
the IIS redirector does something one step uglier.
It sends two files BOTH with normal closure of the
stream and thus the servlet thinks that it has
received two files with the same name.

If I do the exact same thing without the IIS
redirector this problem does not exist.

If further information is needed please respond here.
thanks,
e




__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



Re: JK connector -- isapi2 -- file upload

2004-04-16 Thread E Cunningham

We verified this using Tomcat 4.1.30 not 5.x.
Therein may be the problem. The connector code
in Tomcat. 

Let's ask this then. 
Is there a dependency between JK2 and Tomcat?
When they started to release separately one would
think that any JK2 would work with any Tomcat?

Does JK2 need to include a jk2.jar?
JoAnn, thanks for provoking more thought on this.
e

--- JoAnn Lemm [EMAIL PROTECTED] wrote:
 Hi All,
 
 I've search the archives and I've seen several posts
 indicating that there
 is a bug in the isapi connector in regards to large
 file uploads (or not
 that large, since the error seems to occur at or
 around 50Kb.) The problem
 being that the stream ended unexpectedly. 
 
 The strange thing is, I don't see this problem when
 I upload a large file
 (3M) within our intranet (I'm using IIS6, Tomcat 5 
 jk2.0.4), only when I
 try to access from the internet.
 
 This leads me to believe there is some sort of
 timing problem (the connector
 trying to grab data that hasn't yet arrived?) 
 Interestingly, I solved the
 problem by turning debug on - forcing the isapi
 connector to log debug
 messages and making is slow down a bit. That 3M file
 uploaded with no
 problem.
 
 So, here's the question ... is there a properties
 file, ini file ...
 anything ... where I can set the size of the buffer
 in the connector? It
 looks like it's grabbing about 8Kb each time.
 
 --JoAnn 
 
 
 

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





__
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

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



Re: IIS mod_jk2 2.0.4 Bug???

2004-04-08 Thread E Cunningham

Follow-up:
Using stock Tomcat 4.1.30 and a pretty vanilla
DocUpload servlet we have been able to upload
various sized files with out error. But when adding
IIS and the redirector into the mix then we find
that the files get corrupted if the size of the file
is more than 55.1K (as described below).

This is a major bug with JK2 2.0.4.

The upload breaks between 56,462 and 56,562 bytes
(where the 56,462 works and 56,562 fails). 
I've tested with the following sized files (in the
format: archive size/actual size. '*' denotes
breakage):

2,149 bytes 1k
11,184 bytes 10k
21,224 bytes 20k
41,302 bytes 40k
51,340 bytes 50k
56,360 bytes 55k
56,462 bytes 55.1k
56,562 bytes 55.2k *
56,864 bytes 55.5k *
61,380 bytes 60k   *
81,458 bytes 80k   *

Every one of these tests works without the IIS
redirector. This is highly repeatable.

Here is the DocUpload servlet:


import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.Hashtable;

public class Upload extends HttpServlet
{
public void service(ServletRequest request,
ServletResponse response)
throws IOException
{
PrintWriter out = null;
try {
int id=0;

out = response.getWriter();

String file = new String();

MultipartParser parser = new
MultipartParser((HttpServletRequest)request, 1024 *
1024);
Part aPart;
Hashtable formElements = new Hashtable();
while( (aPart = parser.readNextPart()) != null
) {
if( aPart.isParam() == true ) {
ParamPart pPart = (ParamPart)aPart;
String field = pPart.getName();
String value = pPart.getStringValue();
if(field != null) {
if(value == null)
value = ;
formElements.put(field, value);
}
}
else if( aPart.isFile() == true ) {
FilePart fPart = (FilePart)aPart;
String field = fPart.getName();
String fileName = fPart.getFileName();
if(fileName != null) {
//write the image to a file
String dir = ;  
File theFile = new File(dir, fileName);
fPart.writeTo(theFile);
formElements.put(field, fileName);
}
}
}
out.println(File upload success);
} catch (Exception e) {
out.println(An error occurred.);
e.printStackTrace(out);
}
out.flush();
}
}





--- E Cunningham [EMAIL PROTECTED] wrote:
 
 We just downloaded the recently released 2.0.4
 mod_jk2
 
 connector and found a bug. 
 
 Upload a binary document that is larger than 48K 
 using a servlet that has been well tested for a few
 years against straight Tomcat, mod_jk and previous
 versions of mod_jk2 (v2.0.3) for both IIS and NSAPI.
 
 Then download using another well tested servlet only
 
 to find that the document was corrupted.
 
 Documents are missing 4 bytes at the 48305, 48318,
 or
 48320 byte marker (varies depending on attempt;
 reproduced with the same file uploaded several
 times.
 
 We have not verified this yet using stock Tomcat
 (4.1.29) and the stock doc upload servlet. 
 
 Is there some sort of new configuration that is
 needed
 
 to accompany this point release of mod_jk2?
 
 thanks,
 e
 
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Finance Tax Center - File online. File on
 time.
 http://taxes.yahoo.com/filing.html
 

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


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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



OSX Server and Tomcat/Apache integration

2004-03-31 Thread Ivan E. Markovic
I am hoping that someone out there will be able to help. I have spent 
about 20+ hours on this and am getting nowhere fast.

I have OSX Server (v 10.3, Panther) installed and am trying to get 
Tomcat and Apache to connect. I have read the documentation but with 
little luck. I have it all working on the plain client version of 
Panther without a problem BUT with the Server version of Panther the 
configuration is very different and it's not just a matter of copying 
across the config files or using the same concepts.

Thank you.

I v a n ...
--
Ivan Markovic
SculptLight
http://www.sculptlight.com
Mobile: (+353) 87 2939256
Office: (+353) 1 2982205
Fax: (+353) 1 2966848
2 Airfield Drive,
Churchtown,
Dublin 14,
Ireland.
VAT:   IE 9072482G

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


Re: problem with new 2.04 mod_jk2

2004-03-31 Thread E Cunningham

add libapr.dll or .so to your LD_LIBRARY_PATH?
e

--- [EMAIL PROTECTED] wrote:
 Hello,
 
 I decided to try the new mod_jk2 today.  I put all
 the files in the
 right place, but fot this error when starting up
 httpd:
 
 Starting httpd: Syntax error on line 5 of
 /etc/httpd/conf.d/jk2.conf:
 Cannot load /etc/httpd/modules/mod_jk2.so into
 server: 
 /etc/httpd/modules/mod_jk2.so: undefined symbol:
 apr_socket_send
 
 has anyone seen this or know what I have done wrong?
 
 Thanks,
 Devin


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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



IIS mod_jk2 2.0.4 Bug???

2004-03-30 Thread E Cunningham

We just downloaded the recently released 2.0.4 mod_jk2

connector and found a bug. 

Upload a binary document that is larger than 48K 
using a servlet that has been well tested for a few
years against straight Tomcat, mod_jk and previous
versions of mod_jk2 (v2.0.3) for both IIS and NSAPI. 
Then download using another well tested servlet only 
to find that the document was corrupted.

Documents are missing 4 bytes at the 48305, 48318, or
48320 byte marker (varies depending on attempt;
reproduced with the same file uploaded several times.

We have not verified this yet using stock Tomcat
(4.1.29) and the stock doc upload servlet. 

Is there some sort of new configuration that is needed

to accompany this point release of mod_jk2?

thanks,
e




__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



RE: mod_jk2 2.0.4 for Win32

2004-03-28 Thread E Cunningham


YEAH!!! 
Thank you.


--- David Short [EMAIL PROTECTED] wrote:
 Thank you!!!  I've been searching all over the place
 for the .dll.  I loaded
 the .so and things seem to be ok so far.
 
 -Original Message-
 From: Mladen Turk [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 26, 2004 10:37 PM
 To: 'Tomcat Users List'; [EMAIL PROTECTED]
 Subject: RE: mod_jk2 2.0.4 for Win32
 
 
 
 
  -Original Message-
  From: David Short [mailto:[EMAIL PROTECTED]
  Sent: Saturday, March 27, 2004 6:13 AM
  To: 'Tomcat Users List'
  Subject: mod_jk2 2.0.4 for Win32
 
  Does anyone have the binary (.dll) for the new
 mod_jk2 2.0.4 for W2K?
 
 
 They are at usual places (binaries/win32).
 You won't find the mod_jk2.dll cause it doesn't
 exist any more.
 We changed the extension to .so to comply with the
 rest of apache modules.
 
 
 MT.
 
 
 

-
 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]
 


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: AJP13 errors with Tomcat

2004-03-23 Thread E Cunningham

The error is basically stating that IIS can not write
to the AJP13 socket.
This is probably a result of a configuration problem.


--- Reis, Tom [EMAIL PROTECTED] wrote:
   I am running Tomcat version 4.0.4 with IIS 5.0 with
 tha AJP13
 connector. I am receiving the following message in
 the error log and was
 trying to understand what it means I would
 appreciate any help. Thanks.
 
 [Mon Mar 22 22:43:52 2004]  [jk_ajp13_worker.c
 (381)]: Error
 ajp13_process_callback - write failed
 [Mon Mar 22 22:43:52 2004]  [jk_isapi_plugin.c
 (498)]:
 jk_ws_service_t::write, WriteClient failed
 

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


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: Sun One Web Server connection to tomcat

2004-03-23 Thread E Cunningham

It's called nsapi_redirector.so or .dll
You can find info about it on the jakarta site.
e



--- Blumenstein, Mary K. [EMAIL PROTECTED]
wrote:
 Does anyone have any experience or knowledge of how
 to send url requests through Sun One Web server to
 the Tomcat application server?
 
 We have an extranet environment with 3 tiers. Our
 web server (Sun One Web Server 6.1 SP1) is in our
 DMZ, the Tomcat application is on our application
 server in our application layer behind a firewall.
 
 Sun tells me that I need to get a plugin that would
 be provided by the Tomcat application developers. I
 have not been able to find anything that relates a
 plugin for the Sun One web server. I would
 appreciate any information that anyone can give me. 
 
 Mary Blumenstein
 

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


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: Releasing JK 2.0.4

2004-03-19 Thread E Cunningham

When should we expect to see binary versions of 2.0.4?

thanks,
emmett


--- Mladen Turk [EMAIL PROTECTED] wrote:
 Hi,
 
 Seems that the shm is working now.
 Greg, have you been able to test it with the current
 patches?
 Anyhow IMO it should work, cause the same problem
 manifested on FreeBSD 
 has been solved.
 
 Henri, when do you plan to tag the release?
 
 MT.
 
 

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


__
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

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



Two database connectors for tomcat + cocoon

2004-03-16 Thread Pablo E. Siciliano
Hi!!

I'm using tomcat 4.1 under windows 98, with cocoon 2.0.1 , and jvm 1.4.2. I
tried to add connection pool for MS SQL 2000 server. I'm using the
connection driver provided by Microsoft in
http://www.microsoft.com/downloads/details.aspx?FamilyID=9f1874b6-f8e1-4bd6-
947c-0fc5bf05bf71DisplayLang=en.

I've added that connector to cocoon.xconf, and the driver to web.xml, and It
really stablish the pool (I can see it into SQL Server processes), but I
can't compile anything. I only obtain an OutOffMemoryError from console. I
tried even with a pool with only one connection.

Please, help me.

Pablo E. Siciliano.
Depto. Programación.
puentenet.com


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



Re: Two database connectors for tomcat + cocoon

2004-03-16 Thread Pablo E. Siciliano
I solved it adding SET JAVA_OPTS= -server -Xms512m -Xmx512m in my
autoexec.bat file.

- Original Message -
From: Pablo E. Siciliano [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 2:40 PM
Subject: Two database connectors for tomcat + cocoon


Hi!!

I'm using tomcat 4.1 under windows 98, with cocoon 2.0.1 , and jvm 1.4.2. I
tried to add connection pool for MS SQL 2000 server. I'm using the
connection driver provided by Microsoft in
http://www.microsoft.com/downloads/details.aspx?FamilyID=9f1874b6-f8e1-4bd6-
947c-0fc5bf05bf71DisplayLang=en.

I've added that connector to cocoon.xconf, and the driver to web.xml, and It
really stablish the pool (I can see it into SQL Server processes), but I
can't compile anything. I only obtain an OutOffMemoryError from console. I
tried even with a pool with only one connection.

Please, help me.

Pablo E. Siciliano.
Depto. Programación.
puentenet.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: AW: Tomcat 5 and IIS

2004-03-12 Thread E Cunningham

Generally the IIS - Redirector - Tomcat runs fine
and is reasonably documented.

The only serious problem that I have seen is returning
a response to the wrong requestor and this has
allegedly be fixed in the most recent release.

Too bad that release isn't quite out just yet.

--- [EMAIL PROTECTED] wrote:
 No Apache at all.
 Like described in

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
 You set up your IIS, then integrate the
 isapi_redirector into IIS (IIS-part
 of JK).
 This is then configured to communicate with the
 tomcat-instance(s) on that
 machine or 
 somewhere in the network.
 
 So IIS serves normal content and ASP and stuff, and
 special Webs are beeing
 redirect to the
 Tomcat-workers to handle the Java-Content. With
 WLBS, this looks like ...
 
 Client (Browser)
   ||
  WLBS
 /\
 IIS  JK IIS  JK
   |  \  /  |
   |   \/   |
   |   /\   |
   Tomcat 1  Tomcat 2
 
 MfG Björn Andersen
 _ 
 Webservices
  
 
  -Ursprüngliche Nachricht-
  Von: LILES, DAVID (CONTRACTOR)
 [mailto:[EMAIL PROTECTED] 
  Gesendet: Dienstag, 9. März 2004 14:59
  An: Tomcat Users List
  Betreff: RE: Tomcat 5 and IIS
  
  Thanks for the reply
  
  So then would we need to configure an Apache entry
 for each 
  IIS site we are currently hosting?
  
  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 09, 2004 2:03 AM
  To: [EMAIL PROTECTED]
  Subject: AW: Tomcat 5 and IIS
  
  
  Hi Dave,
  
  I'm not an expert, but we use your proposed
 environment.
  Tomcat normally runs with Apache, even in Windows.
 That's why 
  most How-To's Refere to that configuration. (e.g. 
  http://raibledesigns.com/tomcat/)  I've heared
 that it runs 
  better with Apache, but with out IIS's it does
 also well.
  We got a production environment with several IIS's
 clustered 
  with WLBS.
  These got
  JK-Plugins (isapi-redirectors) to redirect
 Java-Content. 
  Below that we got a
  
  Tomcat-Workers-Farm. Every component is redundant
 and it runs 
  quite smooth and fast.
  
  So even in bigger environments you can use Tomcat
 with IIS.
  
  --
  Björn Andersen
  _
  Webservices
   
  
   -Ursprüngliche Nachricht-
   Von: LILES, DAVID (CONTRACTOR)
 [mailto:[EMAIL PROTECTED] 
   Gesendet: Montag, 8. März 2004 21:11
   An: [EMAIL PROTECTED]
   Betreff: Tomcat 5 and IIS
   
   I am looking for an alternative to our current
 environment. 
   Currently we = are using JRun 3.0 for our Java
 needs and IIS 
   for our web configuration. = Our environment
 requires our use 
   of IIS. With regard to JRun, we = recently
 installed our 
   upgrade to version 4.0 only to find
 functionality = we 
   require has been removed and the configuration
 steps have 
   become more = complicated. We house multiple web
 applications 
   and have several JRun = server instances running
 concurrently 
   on our server. With the 4.0 = version we have
 been told by 
   Macromedia that we need to install a = separate
 JRE instance 
   for each JRun instance and copy and modify their
 = jvm.config 
   file as well plus several other steps.
   
   This was never the case with the 3.0 version,
 but the 3.0 
   version is no = longer capable of supporting our
 needs.
   
   I have been looking at Tomcat 5.0 and
 replacement but was 
   wondering how = difficult it is to configure
 with IIS and 
   support multiple web = applications. I did find
 an article 
   that talked about JK2.0 but it = mentioned the
 prerequisite 
   of configuring Apache. If this is true, isn't =
 that a bit 
   cumbersome since IIS has to be our web server?
   
   Any clarification would be greatly appreciated.
   
   Dave
   
   
 

-
   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]
 


__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



assume browser uses cookies from the beginning... how?

2004-01-27 Thread Michael E. Allen
From what I understand, the container sends both a cookie and appends 
?JSESSIONID= to the url the first time is send a url to a browser. 
  On subsequent calls, the url is not rewritten if the browser uses 
cookies.  I need to shut off that url rewrite on the first call.  Is 
there a way to do that in Tomcat?

Thanks,
Michael


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


Re: restricting access to jsp pages

2004-01-15 Thread Michael E. Allen
Ben Souther wrote:
Hiding the JSPs is easy.  
Put them under the WEB-INF directory.

Ok... but then how do I access the jsp pages?



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


Re: restricting access to jsp pages

2004-01-15 Thread Michael E. Allen
Andres Ledesma wrote:

Hi, 

I have not much experience with jsp, but I do not think this is the right way 
of doing that, your app have not to be inside WEB-INF. 

To prevent people accessing your pages, you check the user session, if for 
example, this pages can be view only by registered users only after a login, 
or something that is already there by I do not know very well, but I you can 
do a little research by yourself are the filters.

I thought about that... and I would like to set up a role in 
tomcat-users to accomplish that.  However, I don't want the user to have 
to log in, rather I want to have my guard servlet authenticate the 
user and then forward the request with the role filled in 
programmatically.  However, I can't find in the docs how Tomcat knows 
whether the user has logged in yet, so I can't programmatically fill in 
the user name.

Can someone direct me to the documentation (or source code) that looks 
for the user/role?

Thanks!



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


Re: restricting access to jsp pages

2004-01-15 Thread Michael E. Allen
[EMAIL PROTECTED] wrote:

A trivial solution is to store something (anything) in the user session during login, and then retrieve it in the JSP.  If the retrieved value is not null, then the user is logged in.  If the user is not logged in, you can redirect him to the login or an error page.

Of course, this is only one possible solution.  Others exist.  Which is best depends on what you are trying to accomplish in your site.

b.

Yes; but I don't want to check for whether user is logged in or not in 
every page... I want the page to only be accessible to a logged in user. 
   Basically I want single sign on; the webapp should not be accessible 
at all except to an authenticated user.



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


Re: restricting access to jsp pages

2004-01-15 Thread Michael E. Allen
[EMAIL PROTECTED] wrote:

Then try a servlet filter (this is what I normally do).  That should save you from having code on each JSP page.  Search the web for a good tutorial.

But you still have to decide what action you want to take when a user is not logged, since your URL is being hit and some response is required.

b.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of ext Michael E. Allen
Sent: Thursday, January 15, 2004 10:07 AM
To: [EMAIL PROTECTED]
Subject: Re: restricting access to jsp pages
[EMAIL PROTECTED] wrote:


A trivial solution is to store something (anything) in the user session during login, and then retrieve it in the JSP.  If the retrieved value is not null, then the user is logged in.  If the user is not logged in, you can redirect him to the login or an error page.

Of course, this is only one possible solution.  Others exist.  Which is best depends on what you are trying to accomplish in your site.

b.



Yes; but I don't want to check for whether user is logged in or not in 
every page... I want the page to only be accessible to a logged in user. 
Basically I want single sign on; the webapp should not be accessible 
at all except to an authenticated user.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I ended up doing this.  Actually, I had more kinds of files than just 
jsp that I wanted to restrict access to, so I moved everything but the 
Logon.jsp and index.jsp to subdirectories and set up a filter to block 
them if the session didn't have user info stored in the context.

Thank you for your help!



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


JNI

2004-01-14 Thread April (E-mail)
Do someone know if it is possible to use JNI with IIS?

April


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



restricting access to jsp pages

2004-01-14 Thread Michael E. Allen
Greetings!

I am using struts 1.1 with Tomcat 4.1.  I want to disallow a user to get 
direct access to my static pages.  That is, if the user types a url that 
ends in anything but .do, I want them redirected to /Welcome.do.  On 
the other hand, I want to be able to access jsp pages and such via the 
forwarding mechanism of struts.  When I try to simply redirect all 
requests that end in .jsp, I get a redirection limit reached error... 
apparently the struts redirects to jsp pages are also being caught.

Is there a simple solution to this?  It seems like there should be...

Thank you,
Michael


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


RE: Problems with Tomcat and JNI

2004-01-09 Thread Porter Patrick E (Eden) NPRI
Pablo - What do you mean by Tomcat Crash, is there an exception message at all?  If 
you aren't using a web-application where you could see the error message on the 
displayed page, you can check the Tomcat logs to see what Tomcat is complaining about 
prior to the crash.  

I have two different web-applications that use JNI to access a C device driver and a 
VB DLL for some server software on one of our cabinets.  In general, we would get 
something along the lines of an unsatisfied link error on the line where you first 
make a call to the native function (not where you do the System.loadLibrary(XXX), that 
usually succeeds).  

The problem for me (and a fellow developer attempting something similar) was that when 
we created the JNI header file javah -jni ... (-jni is now a default, so its 
unnecessary to specify it) we didn't include the entire path to the package/class of 
the java file using the jni.  Generally with jni (at least in my exp.), you end up 
with a header file created by jni that has a very long name - as it includes the 
entire path to the class file that uses the jni functions (such as 
mil_navy_XXX_XXX_XXX.h) in my case.  

If you have created this header file incorrectly, you will still be able to run the 
application statically - but as soon as you run it through tomcat and it attempts to 
go through the JNI to access the native function, it will fail because it cannot link 
to the appropriate location for the function.

Eden 


-Original Message-
From: J.Pablo M [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 08, 2004 1:00 PM
To: [EMAIL PROTECTED]
Subject: Problems with Tomcat and JNI

Hi.

I'm runnin a Web aplicacion wich uses a Java Class that  loads a native library (JNI). 
 This Class is placed in a jar file at  /common/lib/ The .so file is placed inside the 
jdk at  /JAVA_HOME/jre/lib/i386/ I sucesfully build and test an standalone application 
to  the use of the JNI.  But  when I test the Class method in the Web aplication with 
Tomcat, as soon as I try to use the native metod, the Tomcat CRASH.
I dont know if must keep the .so file placed at the jdk directory mencioned above, 
otherwise... WHERE shoud I place the .so file ??

Juan Pablo Muñoz Vidal

_
MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/



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



Re: Tomcat stops handling HTTP connections, socket is SYN_RECV

2004-01-08 Thread Frode E. Moe
On Wed, Jan 07, 2004 at 21:00:30 +0100, Antonio Fiol Bonnín wrote:
 I have not read through all the thread, so maybe I am repeating 
 something. If so, sorry about being lazy.
 
 You seem to be hitting maxProcessors. If you do, no more threads are 
 created, and connections start getting into SYN_RECV state, simply 
 because Tomcat is not accept()ing them, exactly as you told it to do.
 
 So, either reduce your concurrency level for the tests, or increase 
 maxProcessors.

Actually, I don't think I'm hitting maxProcessors - usually when that
happens, you only get an error message about no more threads being
available in the pool. Here, the issue is that Java is unable to create a new native
thread and therefore throws an OutOfMemoryError.

So the problem is that even after the tests are complete and there
are no active connections at all, it's no longer possible to connect.
I think perhaps the OutOfMemoryError causes whatever thread is
accept()ing new http connections to die. 

- Frode



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



Re: Static ints being cached

2004-01-08 Thread Frode E. Moe
On Thu, Jan 08, 2004 at 09:53:14 -, Allistair Crossley wrote:
 Hi All,
 
 I have an interface containing public final static ints. My servlets reference these 
 ints when making database inserts. Yesterday I reordered the values of the ints and 
 noticed that old values were still being placed into the database. I guess this was 
 somehow a caching problem. I deleted the .class from Tomcat to ensure a recompile 
 would place a new .class and restarted Tomcat, but old values still went in the 
 database! 
 
 - If I output the static ints from a JSP the new values come out.
 - If I output the static ints from a class the old values come out.
 - If I force the class using the interface to recompile, then the class starts using 
 the new values
 
 It seems that somehow references are being stored by Tomcat somewhere since a 
 restart does not work but I don't know much about this. I would like to trust that 
 when I change values that Tomcat is able to pick these up, at the very least on a 
 restart!! I don't want to go through recompiling my whole app. 
 
 I am using Ant in a multi-developer environment to compile and it compiles only 
 classes that have changed. I cannot recompile the whole app everytime I change 
 constant values.
 
 Help and understanding appreciated ...

The values of static final ints are copied into classes referring to
those as an optimization by the java compiler. So if you have class A
with some public static final ints in, and a class B referencing these
values, you will need to recompile class B if you change class A. Or you
need to make them non-final, so that java will actually look at the
current values in class A every time.



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



Re: Tomcat stops handling HTTP connections, socket is SYN_RECV

2004-01-07 Thread Frode E. Moe
On Mon, Oct 27, 2003 at 13:29:50 +0100, Remy Maucherat wrote:
 On Fri, Oct 24, 2003 at 16:01:48 +0200, [EMAIL PROTECTED] wrote:
 When everything quiets down, tomcat seems to be unable to service
 any http requests. Any attempt to connect to port 10003 with a web
 browser eventually causes a No data in response-style error message.
 At this point it seems the http connector listening on port 10003 has
 gone zombie on me: 
 
 
 I've figured out what's going wrong.
 The following exception is printed once on standard out when things
 fail:
 
 java.lang.OutOfMemoryError: unable to create new native thread
 at java.lang.Thread.start(Native Method)
 at 
 
  org.apache.catalina.connector.http.HttpProcessor.threadStart(HttpProcessor.java:1178)
 at 
 
  org.apache.catalina.connector.http.HttpProcessor.start(HttpProcessor.java:1262)
 at 
 
  org.apache.catalina.connector.http.HttpConnector.newProcessor(HttpConnector.java:937)
 at 
 
  org.apache.catalina.connector.http.HttpConnector.createProcessor(HttpConnector.java:868)
 at 
 
  org.apache.catalina.connector.http.HttpConnector.run(HttpConnector.java:1075)
 
 I looked into the source for HttpProcessor briefly; perhaps the
 thread.start() on line 1178 or the threadStart() call on line 1262 
 could be surrounded with a try/catch(OutOfMemoryError), and throw a 
 LifecycleException?
 
 Any reason for using this connector ? It's deprecated.
 
 BTW, once there's an OOM exception, the VM is in an unpredictable state, 
 and must be restarted.
 
If it is of any interest, I have recently started experiencing the same problem 
again, while doing some profiling work on a webapp. 

I'm now running Tomcat 4.1.29 on Linux 2.4.24 (i386) with Sun Java
1.4.2_02. I have also changed server.xml to use the newer Coyote
connectors:

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=10003 minProcessors=50 maxProcessors=500
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=100 connectionTimeout=6
   useURIValidationHack=false disableUploadTimeout=true /

When running with the following java options:
 -Xrunhprof cpu=samples,thread=y;depth=10,cutoff=0,format=a,file=/tmp/log.txt -Xms64m 
-Xmsm1024m
and pounding the webapp with 1000 HTTP requests simulatenously, I got
the following on System.out:

07.jan.2004 09:27:41 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.init(ThreadPool.java:630)
at org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:505)
at 
org.apache.tomcat.util.threads.ThreadPool.findControlRunnable(ThreadPool.java:324)
at org.apache.tomcat.util.threads.ThreadPool.runIt(ThreadPool.java:304)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:557)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:534)

..after which any attempt to connect to the http port (10003 in this
case) results in java holding a half-opened connection in SYN_RECV, 
as shown by netstat -apeln | grep 10003:

tcp0  0 0.0.0.0:10003   0.0.0.0:*   LISTEN  1001   
47392370   27230/java  
tcp0  0 127.0.0.1:10003 127.0.0.1:41269 SYN_RECV1001   
0  -
(and several in CLOSE_WAIT state)

Other threads keep running, so the VM _seems_ stable, except for the
fact that it's no longer possible to connect to the HTTP port.

To me, it seems like it should be possible to recover from this error.
Any comments?



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



  1   2   3   4   >