Again, Problem: Tomcat server went down ...

2003-08-08 Thread Bing Zhang

Can someone out there help on this ?  I have posted my problem for 2 days,
didn't really get any response.  

Our Tomcat server just shut down by itself.  It caused an application
error(0xc05 ) in Java.exe and shut down.

Did this type of things happen to anybody before ?  Any ideas or directions
about what could cause this ?

Our platform is Apache 1.3.9, Tomcat 3.3, JDK 1.3, and FOP 0.20.4 running on
NT servers.  Well, I know this configuration is kinda old.

Any info on how to dig out the problem is greatly appreciated.

Bing


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



Re: external parameters to tomcat (how?)

2003-08-08 Thread Jon Wingfield
erm. can't you just use init parameters in the web.xml: section 
SRV.2.3.2 in the servlet 2.3 spec.
If the location is for one servlet use a servlet init param otherwise 
use a servlet context init param. In the latter case you can access it 
in your servlet by doing (for example):

String value = getServletConfig().getServletContext().
getInitParameter(KEY_NAME);
If you need to access an external file you can use an init param as a 
path to the file.
Then access it using:
standard java io (if file is outside the container)
ServletContext.getResource(...)
ServletContext.getResourceAsStream(...)

HTH,

Jon

tim wrote:

I would like to specify the location of a configuration file to tomcat 
which indicates the location of parameters used by some of my servlets. 
What is the best practice for doing this?  Particularly I want to be 
able to get access to the location in any of my servlets.

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]


Tomcat 5.0.2 and IIS

2003-08-08 Thread vikas jain
Hello,
had anyone tested tomcat servlets working with IIS server using the 
redirectory as explained at 
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html

if you know how to make tomcat servlets with IIS server, please tell me.

Thanks for your help.

Vikas

_
Dress up your desktop! Get the best wallpapers. 
http://server1.msn.co.in/msnchannels/Entertainment/wallpaperhome.asp Just 
click here!

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


RE: how to suppor 30000 concurrent users

2003-08-08 Thread Angus Mezick
Doesn't seem to have that much of an effect.  I guess I should profile
it though.  I don't want to use session persistence because then I would
need to use network session clustering.  Session clustering is a
requirement for my app.  I figure using a DB instead of memory to store
my sessions is better than sending 5 network connections to the other 5
of the 6 web servers with the session data that will only be valid to
ONE of those servers.  Before tomcat we were using Iplanet 4.1 and the
cisco load balance we have SAID it could handle session affinity but it
didn't seem to be able to.  So we went with a DB solution which, to me,
seems to be the more optimal solution.  The DB also means I can have a
MUCH larger number of active sessions using my servers because I don't
have to worry about the sessions using all my memory.  I just have to
worry about DB disk space but I had have 2 or 3 terabytes of disk while
only have 2 GB of memory.  Seems to be an easy trade.
--Angus

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 05, 2003 9:40 AM
> To: Tomcat Users List
> Subject: RE: how to suppor 3 concurrent users
> 
> 
> Angus,
> doesnt using a shared jdbc based session manager slow the 
> whole thing down 
> a lot?  Why dont you just use session persistence?
> Pete
> 

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



Re: NetBeans Debug in JSP Tag Files

2003-08-08 Thread Carlos Cajina - Hotmail
Hi Shawn... Do you happen to have a How-To somewhere about integrating
Netbeans & Tomcat? :-) I don't want to use Netbeans' internal Tomcat server
and I've been struggling a little to use both together...

Regards,

Carlos

*** Oh, about your question, there's information at
http://developers.sun.com/tools/javatools/tips/tip02-05-17.html that I think
might be useful to you even if it's related to Forte for Java/Sun ONE Studio
(you might also want to check out the viewlet)...

- Original Message - 
From: "Shawn Zernik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 08, 2003 12:40 PM
Subject: NetBeans Debug in JSP Tag Files


> Tomcat-Users:
>
> I have the tag lib working.  Thanks again.
>
> I was wondering if anyone could point me to a good tutorial on how to use
> NetBeans with Tomcat that's running.  I can configure tomcat to allow
debug
> connections and connect using NetBeans, but once I'm online with the
server
> how do I trace through a JSP page?
>
> Shawn
>
>
> -
> 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: Freeing processors

2003-08-08 Thread Jon Wingfield
Thanks for the info. I should have RTFM ;)

Mauricio Nuñez wrote:

Hi

With RH 8, you can see the threads using the option -m

Att

Mauricio 

El Jue 07 Ago 2003 09:17, Jon Wingfield escribió:

Yep. Since RH 8 the ps command only shows the main java process. In
previous versions ps showed the parent process and a child process for
each thread the java app spawned. The previous behaviour often lead to
confusion relating to memory assignment so i guess that's why RH changed
it. Personally, I find the change annoying coz it was an easy way to see
how many threads the app had spawned.
Jon

Donaldson Sgt Michael J wrote:

I have a question along these lines...
I am running jakarta-tomcat-4.1.18 on 4 different severs. 3 are Red Hat
8.0 and 1 Red Hat 6.2. Same tomcat configuration on all of them. ps -el
shows one java process on the Red Hat 8.0 but on the 6.2 box I have
upward of 30 processes for java. Is there a reason for this?
R/S
Magilla


Hi

My problem is that tomcat runs out of processors and I see "No processor
available, rejecting this connection" in the log file. By reading earlier
posts a I understand that each processor is a thread and is not freed
until it is returned by my code, my code is hanging somewhere.
The problem is that my servlet (the only thing running in tomcat) only
"forwards" requests threw CORBA to a big app that I can't change, and its
in their the code hangs.
So, how can I solve this? The perfect solution would be if tomcat could
automaticly free processors after some timeout ( 60 s) but I have not
found such a feature/setting, does it exist? If not, could I do some
small hack in my servlet that monitors and somehow terminates (kills
thread or something) the request after 60s and therby freeing the
processor?
I am running tomcat 4.1.12, java 1.4.0_04, redhat linux 9. I am using the
HttpConnector.
Thank you

Daniel Carlsson
Gimlisoft AB
Email: [EMAIL PROTECTED]
Tel: 0709-744570, 031-189024
-
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]


mod_jk v1.2.5

2003-08-08 Thread NormW
Good afternoon all.
What has become of the mod_jk binaries for v1.2.5?
Still coming or some place other than:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/ ?
TIA
Norm


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



Re: RE: off-topic, need help in scrolling

2003-08-08 Thread 苗启广


ÔÚ 2003-08-09 04:45:00 ÄúдµÀ£º
>Have a look at this...of you ? Could you tell me ? Thanks~~
>
>http://jsptags.com/tags/navigation/pager/index.jsp
>
>appa
>
>"N.B.Bopanna" <[EMAIL PROTECTED]> wrote:
>Hey Gautham,
>It is not under my control. The mail server adds it to all mails.
>
>-Original Message-
>From: "Aggarwal, Gautam (IE03)"
>To: Tomcat Users List
>Date: Thu, 7 Aug 2003 11:06:19 +0530
>Subject: RE: off-topic, need help in scrolling
>
>> This forum is meant for helping each other in Tomcat related problems,
>> not
>> for advertising your products. Please remove the advertisement footer
>> from
>> your mail, this will help in keeping the mail short as well.
>>
>> Bye,
>> Gautam
>>
>>
>> -Original Message-
>> From: N.B.Bopanna [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, August 07, 2003 10:12 AM
>> To: [EMAIL PROTECTED]
>> Subject: off-topic, need help in scrolling
>>
>>
>> Hi All,
>> I have to display rows of data after querying a table with arround 1000
>> records. Only 25 rows should be displayed at a time and page numbers
>> should be provided as hyperlinks to go to the next page(as used in mail
>> inbox). The server supports only JSP1.1 .
>> If anyone has any idea of how to do , please help
>> Bopanna,
>> Software Engineer,
>> RCS Technologies
>>
>>
>> Power of Global Information Access...
>> ... Browser based RCS products.
>> ---
>> -
>> -
>> Visit us at http://www.rcssoft.com/ for an online DEMO of all our web
>> based
>> products.
>> User ID and Password will be available on request.
>>
>> PAYMAN - Payroll Management System
>> TRAXX - Asset Management and Tracking System
>> eSHOP - Online Information and Ordering System
>> SALES STREAM - Sales Force Automation
>> CARE - Call Management System
>> DATA MINER - Query Builder and Report Generator
>>
>> Please write to [EMAIL PROTECTED] or reply to this mail for further
>> details.
>>
>>
>>
>> -
>> 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]
>>
>
>
>Power of Global Information Access...
>... Browser based RCS products.
>-
>Visit us at http://www.rcssoft.com/ for an online DEMO of all our web based products.
>User ID and Password will be available on request.
>
>PAYMAN - Payroll Management System
>TRAXX - Asset Management and Tracking System
>eSHOP - Online Information and Ordering System
>SALES STREAM - Sales Force Automation
>CARE - Call Management System
>DATA MINER - Query Builder and Report Generator
>
>Please write to [EMAIL PROTECTED] or reply to this mail for further details.
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>SMS using the Yahoo! Messenger;Download latest version.
 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`--> http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



Re: Re: Exception report

2003-08-08 Thread 苗启广
hi ,all: 
   how can I send my questions to all of you ? Could you tell me ? Thanks~~ 
 mqg 

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`--> http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



Re: Tomcat 4.1.24 behind a proxy

2003-08-08 Thread Ken Rachynski
On Wed, Aug 06, 2003 at 07:59:09AM -0400, Tim Funk wrote:
> So the webserver is making HTTP Requests (as well as receiving them)?
> 
> In that case, it sounds like an application error. How is your webapp 
> making HTTP requests? (Venturing into off-topic mode)

That's fairly common with portals.  Cocoon has an example web-scraping
application that connects to sites like Slashdot and retrieves
information for redisplay within a local page.

-- 
Ken Rachynski <[EMAIL PROTECTED]>
http://www.tanga.dyndns.org/
xmpp:[EMAIL PROTECTED]  [http://www.jabber.org]
Fingerprint: 74BF 0307 A067 D5E0 81CF  5DF7 CD9C 293D B6EE DE6F

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



Re: Exception report

2003-08-08 Thread 苗启广
I am trying to configure an application of the TOMCAT 4.0 for the TOMCAT
4.1. E the following error happens:

javax.servlet.ServletException: Cannot allocate servlet instance for path
/ebs/servlet/servlets.servletEbs

 what it can be?

I only copied the folder for Tomcat 4.1.

Tks



__
Find a Chinese Souvenir, Just Click Here:
http://www.souvenirchina.com
mailto:[EMAIL PROTECTED]


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

Strange NullPointerException using IIS, tomcat 5.0.6 servlets

2003-08-08 Thread vikas jain
Hey,

I configured IIS to run with tomcat (with the help of this forum only) :)

I have forms and they are processed by servlets. using tomcat they work very 
fine. but when i try to run using IIS, it gives nullpointerexception. I am 
using GET method to send the form information.

Is it a bug with tomcat.
if someone has come through the same problem, please send your suggetions. 
thansk for all the ideas,

Here is the log file of tomcat:
java.lang.NullPointerException
	at 
com.ti.SCMTools.Forms.FormECN.ECNFormParameters.getFormString(ECNFormParameters.java:75)
	at com.ti.SCMTools.Forms.FormECN.FormECN.doGet(FormECN.java:102)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:286)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:253)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:256)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:210)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:190)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:174)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
	at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:974)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)
	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:294)
	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:375)
	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:664)
	at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:606)
	at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:777)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)
	at java.lang.Thread.run(Thread.java:536)

_
Want to visit Spain? Click here. 
http://server1.msn.co.in/sp03/spain/index.asp Win a free trip.

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


RE: Help! heavy traffic is crapping out our site every 5 min! DBCPexceptions

2003-08-08 Thread Eric J. Pinnell
Hi,

You could get a thread dump and see where your connections are hanging.

When you get your errors kill -QUIT the pid.

-e

On Fri, 8 Aug 2003, Barclay A. Dunn wrote:

> ok, well, at least we have concrete proof of it.
>
> now, given that i can confirm that i am closing connections (calling close()
> on them, which returns them to the pool), can you suggest how i might locate
> where those connections are not getting released? i have read some stuff
> about dbcp not being entirely reliable in releasing connections. is that
> true? argh.
>
> thanks again,
> barclay
>
> -Original Message-
> From: Angus Mezick [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 4:27 PM
> To: Tomcat Users List
> Subject: RE: Help! heavy traffic is crapping out our site every 5 min!
> DBCP exceptions
>
>
> Yup, and when nothing is happening, the # of active connections should
> be 0.  If it isn't you aren't releasing connections properly.
>
> > -Original Message-
> > From: Barclay A. Dunn [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 08, 2003 4:19 PM
> > To: Tomcat Users List
> > Subject: RE: Help! heavy traffic is crapping out our site
> > every 5 min! DBCP exceptions
> >
> >
> > cool. that works for me. so, let's say i want to watch my sql server
> > connections monitor and run this pool monitor from a jsp at
> > the same time.
> > shouldn't i expect to see the # of active + # of idle on the
> > jsp add up to
> > the # of connections that sql server knows about? (assuming
> > tomcat is the
> > only user of connections to this db)
> >
> > trying to check my assumptions here.
> >
> > barclay
> >
> > -Original Message-
> > From: Angus Mezick [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 08, 2003 4:00 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Help! heavy traffic is crapping out our site every 5 min!
> > DBCP exceptions
> >
> >
> > Oh, here is the code that will work with a JNDI resource:
> > javax.naming.Context initContext;
> > try {
> > initContext = new InitialContext();
> > javax.naming.Context envContext =
> > (javax.naming.Context)initContext.lookup("java:/comp/env");
> > BasicDataSource ds =
> > (BasicDataSource)envContext.lookup("jdbc/SessionDB");
> > if(ds!=null){
> > pageContext.getOut().println("
> > jdbc/SessionDB:  Active:
> > " + ds.getNumActive() + " Idle: " + ds.getNumIdle() + "");
> > }
> > } catch (NamingException e) {
> > // TODO Auto-generated catch block
> > //e.printStackTrace();
> > }
> >
> > > -Original Message-
> > > From: Angus Mezick
> > > Sent: Friday, August 08, 2003 3:26 PM
> > > To: 'Tomcat Users List'
> > > Subject: RE: Help! heavy traffic is crapping out our site
> > > every 5 min! DBCP exceptions
> > >
> > >
> > > Here is a little snippet I use inside of a custom tag to
> > > disply pool health:
> > > private void printPoolStatus() throws IOException {
> > > PoolingDriver driver = new PoolingDriver();
> > > pageContext.getOut().println("Dbcp Pool
> > > Data: ");
> > > ObjectPool gop = driver.getPool("SessionManager");
> > > if (gop != null) {
> > > pageContext.getOut().println(" SessionManager:
> > > Active: " + gop.getNumActive() + " Idle: " + gop.getNumIdle()
> > > + "");
> > > }
> > > gop = driver.getPool("CommerceServer");
> > > if (gop != null) {
> > > pageContext.getOut().println(" CommerceServer:
> > > Active: " + gop.getNumActive() + " Idle: " + gop.getNumIdle()
> > > + "");
> > > }
> > > }
> > >
> > > You WILL need to change the getPool names.
> > > --Angus
> > >
> > > > -Original Message-
> > > > From: Barclay A. Dunn [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, August 08, 2003 2:47 PM
> > > > To: Tomcat Users List
> > > > Subject: RE: Help! heavy traffic is crapping out our site
> > > > every 5 min! DBCP exceptions
> > > >
> > > >
> > > > ah! there's the rub. i am also searching the archives of the
> > > > jakarta-commons-users list for insight and must also post to
> > > > that list if i
> > > > can't figure it out myself, but we think no, they are not
> > > > getting closed
> > > > correctly. i can claim 100% of the time i am calling
> > > > conn_.close(), but when
> > > > we watch our db connections they go up but they never come
> > > > down. so we think
> > > > no.
> > > >
> > > > as i mentioned before, i do not fully grok the workings of
> > > > dbcp and am thus
> > > > in over my head. i could use a little step-by-step on how
> > > to test this
> > > > (other than the logical deduction my sysadmin and i are using
> > > > right now).
> > > >
> > > > thanks a million everybody for trying to be so helpful.
> > > >
> > > > barclay
> > > >
> > > > -Original Message-
> > > > From: Angus Mezick [mailto:[EMAIL PROTECTED]
> > > > Sent: Friday, August 08, 2003 2:23 PM
> > > > To: Tomcat User

Re: Can I get an answer please -- Re: Why integrate Tomcat with aweb server?

2003-08-08 Thread John Turner
Answered on 08/05/2003, 11:00 AM Eastern.

If you want to address me, I suggest putting something in the subject 
line or sending me a message off-list.

A subject line of "why integrate with a web server" is a FAQ that I 
would normally ignore.

John

Nathan Ward wrote:

Hello John, 

I hate to be pushy, but are you going to post a reply to this question at some point?

   Nathan
  - Original Message - 
  From: Nathan Ward 
  To: [EMAIL PROTECTED] ; Tomcat Users List 
  Sent: Monday, August 04, 2003 11:05 AM
  Subject: Why integrate Tomcat with a web server?

  I have a question for John Turner about a statement in the book Apache Tomcat Security. 

  Page 12 says: 
  "As discussed earlier, running publicly available web services as root or superuser is typically a bad idea, so the solution is to avoid using Tomcat as a stand-alone web server on port 80 by integrating it with a standard HTTP web server such as Apache, Microsoft's IIS, or Sun Microsystem's iPlanet."

  Question: Does this apply when running under Windows? The reference to "as discussed earlier" talks about running Tomcat as a service with more permissions than necessary. Windows defaults to running services as SYSTEM which has administrator privileges. Fine, but as also mentioned earlier, you can create a user account with less permissions and setup the service to run Tomcat under that account. So, how does the statement on page 12 relate to running Tomcat under windows, i.e. why run Tomcat with IIS rather than just run Tomcat? There may be performance reasons, but from a security point of view, is there increased security risks in running Tomcat without IIS when running as a service under Windows?

 Nathan



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


RE: Problem: Tomcat server went down ...

2003-08-08 Thread Cox, Charlie
is there an hs_err_pid.log file? This can provide the stack trace
of the thread that was running when the crash occurred.

Charlie

> -Original Message-
> From: Bing Zhang [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 04, 2003 3:48 PM
> To: 'Tomcat Users List'
> Subject: RE: Problem: Tomcat server went down ...
> 
> 
> 
> Well, there isn't much information in the tomcat's tomcat.log 
> and error.log.
> It didn't provide any hint on which particular part of the 
> server or which
> particular servlet did something and made the server shut down.   
> 
> what's the general approach people would use to find out the 
> source of the
> problem ? 
> Thanks. 
> 
> Bing
> 
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 04, 2003 12:47 PM
> To: Tomcat Users List
> Subject: RE: Problem: Tomcat server went down ...
> 
> 
> 
> Howdy,
> Hmmm... Any information in the logs?
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Bing Zhang [mailto:[EMAIL PROTECTED]
> >Sent: Monday, August 04, 2003 12:36 PM
> >To: '[EMAIL PROTECTED]'
> >Subject: Problem: Tomcat server went down ...
> >
> >
> >Our Tomcat server just shut down by itself.  It caused an application
> >error(
> >0xc05 ) in Java.exe and shut down.
> >
> >Any ideas or directions about what could cause this ?
> >
> >Our platform is Apache 1.3.9, Tomcat 3.3, JDK 1.3, and FOP 0.20.4
> running
> >on
> >NT servers.  Well, I know this configuration is kinda old.
> >
> >Any info on how to dig out the problem is greatly appreciated.
> >
> >Bing
> >
> >-
> >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]
> 

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



RE: NetBeans Debug in JSP Tag Files

2003-08-08 Thread Edson Alves Pereira
Once you are connected with the JVM using ( jdb -attach, for example
) command you can debug everything that tomcat read.

> --
> De:   Shawn Zernik[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  sexta-feira, 8 de agosto de 2003 15:40
> Para: [EMAIL PROTECTED]
> Assunto:  NetBeans Debug in JSP Tag Files
> 
> Tomcat-Users:
> 
> I have the tag lib working.  Thanks again.
> 
> I was wondering if anyone could point me to a good tutorial on how to use
> NetBeans with Tomcat that's running.  I can configure tomcat to allow
> debug
> connections and connect using NetBeans, but once I'm online with the
> server
> how do I trace through a JSP page?
> 
> Shawn
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


RE: Tuning KeepAlive Connections?

2003-08-08 Thread Mike Cherichetti \(Renegade Internet\)
Hi Bill,

Thanks for the info!  Looks like that helped, but I can't tell for sure
because the server isn't loaded too much right now.  Will have to wait until
morning to find out.  Did I miss something or is that not in the docs?
Might be good to add this to the docs :)

Thanks again,
Mike

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Barker
Sent: Friday, August 08, 2003 12:00 AM
To: [EMAIL PROTECTED]
Subject: Re: Tuning KeepAlive Connections?


You can (effectively) disable KeepAlive connections by setting the
'maxKeepAliveRequests="1"' attribute on the Connector.  Tomcat 5 has a more
intuitive option, but it works the same way.

If you have the maxKeepAliveRequests > 1, then the 'connectionTimeout'
attribute on the Connector determines how long it will wait for the next
request.

"Mike Cherichetti (Renegade Internet)" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> RedHat Linux 7.3
> IBM JDK 1.4.1
> Tomcat 4.1.24
>
> Is it possible to disable KeepAlive connections with the Coyote HTTP/1.1
> connector?  If it's not possible to turn them off, is it possible to lower
> the request limit and timeout period for them?
>
> Have a nice day ...
>
> Sincerely,
>
> Mike Cherichetti
> Renegade Internet
> www.renegadeinternet.com
> Phone (724) 658-6346
> Fax (724) 658-6346




-
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 I get an answer please -- Re: Why integrate Tomcat with aweb server?

2003-08-08 Thread John Turner
Agreed.

John

Noel J. Bergman wrote:

Nathan,

There are many facets to the subject, but if all you don't mind running all
of your domains in one process, have no need for load balancing, no need for
non-Tomcat features, etc., then running Tomcat directly is probably fine.
Historically (and structurally), Tomcat should prove more secure than an IIS
frontend.
	--- Noel

-
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.0.2 and IIS

2003-08-08 Thread vikas jain
The isapi.log file doesn't have any log. it's empty. In the tomcat log 
files, it doesn't have any error message.
When I type http://localhost/examples/servlet/HelloWorld or 
http://localhost/examples/HelloWorld, it gives "The page cannot be 
displayed" and the default error page.

let me tell you one more thing. I followed the instructions at 
http://www.devicetop.com/site/forum/viewmsg/msg-9593 and setup IIS and 
tomcat. You may see some problem in that.


From: John Turner <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: Tomcat 5.0.2 and IIS
Date: Thu, 07 Aug 2003 16:04:13 -0400
*sigh*

"not working" doesn't help much.  Error messages?  Contents of log files?

John

vikas jain wrote:

Now I have changed the worker.properties file to this:
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
and uriworkermap.properties to:
/examples/*=ajp13
/examples/*.jsp=ajp13
/examples/servlet/*=ajp13
but not working :(

Vikas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


RE: Custom Tag Lib

2003-08-08 Thread Angus Mezick
It would be best if you went a rewrote your tags not to require release
to be called.  That change will also bring you in-line with the jsp
spec.  These links might help:
http://www.onjava.com/lpt/a/1248
http://www.onjava.com/lpt/a/1250
http://jakarta.apache.org/taglibs/guidelines.html

> -Original Message-
> From: Shawn Zernik [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 07, 2003 11:41 PM
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: Custom Tag Lib
> 
> 
> Mike:
> 
> Thanks so very much...  I saw their is a config option in 
> the Jasper to
> turn off tag pooling.  do you thing that would work too, of shouldI
> impliment it in my source code.  I'm gonna take a look at it 
> right now.
> 
> Shawn
> 
> -Original Message-
> From: Mike Cherichetti (Renegade Internet)
> [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 10:28 PM
> To: Tomcat Users List
> Subject: RE: Custom Tag Lib
> 
> 
> Shawn,
> 
> I ran into this problem as well when switching from 4.0 to 
> 4.1.  I think it
> has something to do with 4.1 pooling and re-using tag 
> objects.  What I did
> in all of my doStartTag(), doAfterBody(), etc... methods was 
> manually call
> release() to reset the data in the tags like so:
> 
> public int doStartTag() throws JspException
> {
>   try
>   {
> ...
>   }
> 
>   catch (Exception exception)
>   {
> throw new JspException(exception);
>   }
> 
>   finally
>   {
> release();
>   }
> 
>   return SKIP_BODY;
> }
> 
> Have a nice day ...
> 
> Sincerely,
> 
> Mike Cherichetti
> Renegade Internet
> Internet Advertising Delivery Solutions
> www.renegadeinternet.com
> Phone (724) 658-6346
> Fax (724) 658-6346
> 
> 
> -Original Message-
> From: Shawn Zernik [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 10:56 PM
> To: [EMAIL PROTECTED]
> Subject: Custom Tag Lib
> 
> 
> Tomcat Users:
> 
> I've been fighting with some version differences in tom cat 
> wondering why my
> app acts severly different on Tomcat 4.1.27 then 4.0.6.  It 
> appears that
> 4.1.27 is not working from my perspective, and have been 
> fighting with it
> since monday.  None of the books I have touch this subject or 
> ellude to the
> problem, and I've seached high and low for solutions.
> 
> I'm having a problem working with my custom tag library.  The 
> stange part to
> this is it appears to work on tomcat 4.0.6 but not on 4.1.27. 
>  The library
> has a tage called site that extends a base tag, and those 
> tags use other
> classes in my data namespace to hit a database.
> 
> The tags are returning the proper data in both versions, but 
> in 4.1.27, I
> have to "reload" the contect in the manager for it to 
> "register" the changes
> from the database.  I have added some printlns to std out to 
> track what's
> going on.  In tomcat 4.0.6 they are going through all the 
> code as I would
> exspect it to.  I have included each of the class files that 
> are called.  I
> have also included the printouts from both versions of tomcat 
> to clierify
> how each version is handling the calls.
> 
> The object hiarchey goes as follows:
> 
> jPublish.Tags site extends inc_tag.
> jPublish.Data.site_manager extends jPublish.Data.manager, 
> managers contain,
> load, and fill datas.
> jPublish.Data.site_data extends jPublish.Data.data, used for 
> storing data
> and tracking updates.
> 
> 
> --- INDEX.JSP ---
> <%@ page contentType="text/html" %>
> <%@ taglib prefix="inc" uri="inc" %>
> 
> 
>   
> 
>   
>   Welcome to !
>   © 
>   
> 
> 
> --- TOMCAT 4.0.6 STDOUT ---
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.6
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.6
> jPublish.Data.manager()
> jPublish.Tags.site()
> jPublish.Tags.site.setSite()
> jPublish.Data.manager()
> jPublish.Tags.site.doEndTag(): Begin
> jPublish.Tags.site.doEndTag(): End
> jPublish.Data.manager()
> jPublish.Tags.site()
> jPublish.Tags.site.doEndTag(): Begin
> jPublish.Tags.inc_tag.loaded()
> jPublish.Tags.inc_tag.loaded(): not instance
> jPublish.Data.manager.load()
> jPublish.Tags.inc_tag.loaded(): load ok
> jPublish.Tags.inc_tag.loaded(): next ok
> jPublish.Tags.inc_tag.loaded(): reached fill.
> jPublish.Tags.site.loaded()
> Internetwork Consulting
> jPublish.Tags.site.doEndTag(): End
> jPublish.Data.manager()
> jPublish.Tags.site()
> jPublish.Tags.site.doEndTag(): Begin
> jPublish.Tags.inc_tag.loaded()
> jPublish.Tags.inc_tag.loaded(): not instance
> jPublish.Data.manager.load()
> jPublish.Tags.inc_tag.loaded(): load ok
> jPublish.Tags.inc_tag.loaded(): next ok
> jPublish.Tags.inc_tag.loaded(): reached fill.
> jPublish.Tags.site.loaded()
> Internetwork Consulting
> jPublish.Tags.site.doEndTag(): End
> jPublish.Data.manager()
> jPublish.Tags.site()
> jPublish.Tags.site.doEndTag(): Begin
> jPublish.Tags.inc_tag.loaded()
> jPublish.Tags.inc_tag.loaded(): not instance
> jPublish.Data.manager.load()
> jPublish.Tags.inc_tag.loaded(): load ok
> jPublish.Tags.in

Tomcat vs. Apache Performance Comparison for static HTML

2003-08-08 Thread Shapira, Yoav

Howdy,

>Of course not.  I'm only regergitating stuff I have read.  But I have
seen
>it from several different sources, so I took it as truth.  Do you have
>benchmarks to prove otherwise?

It could be the sources you read are outdated.  I don't question their
accuracy at the time they came out, although I don't even know what
sources you're talking about (and it doesn't matter).

Just for kicks, even though I've done this many times in the past for
in-house purposes, I just did a simple benchmark so that people don't
blindly accept X year old sources regarding tomcat performance.

- Server hardware: Solaris 8, specifically from uname -a: SunOS 5.8
Generic_108528-15 sun4u sparc SUNW,Ultra-5_10.  It has 512MB RAM.

- Tomcat version: 4.1.27-LE

- Apache version: 2.0.47, compiled on above platform

- JDK version: 1.4.2, with no switches at all, i.e. client mode with no
special heap of GC settings (yes, I know I could improve performance for
tomcat by tuning these).

- Server.xml setup: nearly exactly the same as unpacked distribution.  I
just removed unneeded connectors, leaving only the port 8080 connector.
Yes, I know I could improve performance by modifying min/maxProcessors,
etc.

- httpd.conf setup: nearly exactly the same as unpacked distrubition.  I
just changed the listen port from 80 to 8080 so that I could use the
exact same JMeter test plan.  Yes, I know there are many things I can
tune here to increase performance.

- Test file: a simple test.html file, static, simple content.  In fact
it's so small I'll include the whole thing:
Test pageThis is a test
page

- Test program: Apache JMeter 1.9 final running on Windows2000 Pro, with
JDK 1.4.2.
- Test plan tree:
Test Plan
  -> Thread Group: 10 threads, 1sec ramp-up, 100 loops
 -> HTTP Request: GET, myhost, port 8080, /test.html
 -> Graph Results (with file output)

- Findings:
Server #of Samples Average Deviation Median
Apache   1000   17ms2510
Tomcat   1000   29ms4410

For both servers, CPU usage was light, and memory wasn't taxed much at
all.

So what does that say?  Apache is faster by about 70% on average
((29-17)/17) at serving this small text file, with both servers very
close to their out of the box configuration.

Out of curiosity, I tried the test again with a larger text file: 30K or
so in size.  The results then were:
Server #of Samples Average Deviation Median
Apache   1000   182ms   277   90
Tomcat   1000   185ms   249   80

So now tomcat is faster? ;)

We could debate forever about whether it's representative of real-world
conditions, whether care should be taken to configure the server for
optimal performance, etc.  That's why everyone can and should run their
own benchmarks for their own applications.

With the above information anyone could easily reproduce the test.  My
point, however, is not that tomcat is faster or that apache is faster.
My point is that it's easy to test performance and that you shouldn't
trust sources, especially if they don't directly apply to your
platform/server/application.

Yoav Shapira



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]



Re: Hardware and Memory Requirements

2003-08-08 Thread kmk kumar
Thanks Mourad

I am surpised that I could not find any document which talks about hardware 
and memory requirements for installing and running tomcat. I have other 
other applications running on the system and without the memory and h/w 
requirements it will be difficult for me.

Thanks


From: mourad jaber <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: Hardware and Memory Requirements
Date: Thu, 07 Aug 2003 10:24:36 +0200
There are no clear responses depending usage of tomcat !
As a production plateform ( linux ), I'm using P4 2.4G with 1Go of ram and 
as I'm using a data base on an other machine I don't take care of the disk 
size but i't mirrored 18Go SCSI...
As my dev plateform( linux ) is P3 1Go/512Mo of Ram and it is really to 
much !
But my webapp is using lot's of memory by formatting on the fly pdf, rtf 
and gif files so I set my jvm environement to 512Mo, but basically I think 
it set to 128 ( please correct if I'm wrong )...
but I have an other tomcat runing on a shared plateform ( window$ )  with 
several M$ asp web sites ( about 20 hits/day ) and my tomcat is runing 
well with an isapi filter to work with IIS and it is a bi-P3 Xeon 900Mhz 
with 2Go of ECC sdram and about 200Go of hard drives... And it work very 
well for a year :)

So if it is only to try some basic webapps, don't worry, every today's 
hardware configuration is enough to run tomcat ;)

Mourad

kmk kumar wrote:

Hi

Is there a document which talks about the hardware and memory requirements 
based on the platform on which tomcat is installed.

specifically looking for
1. How much disk space and memory does it require to install it.
2. How much memory it takes to run it.
Thanks for any help.

_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
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]
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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


Re: Can I get an answer please -- Re: Why integrate Tomcat with aweb server?

2003-08-08 Thread Eric J. Pinnell
Hi,

I agree.  That is what I have always read and I think it's a wide
conception that is out there.

If this isn't true could someone enlighten us?

-e

On Fri, 8 Aug 2003, Rick Roberts wrote:

> Of course not.  I'm only regergitating stuff I have read.  But I have seen it
> from several different sources, so I took it as truth.  Do you have benchmarks
> to prove otherwise?
>
> --
> ***
> * Rick Roberts*
> * Advanced Information Technologies, Inc. *
> * http://www.ait-web.com  *
> ***
> Shapira, Yoav wrote:
> > Howdy,
> >
> >
> >>Because a web server serves static content (html, images, etc.) much
> >
> > faster
> >
> >>than tomcat will.
> >
> >
> > Really?  Do you have a benchmark using tomcat 4.1.x that supports the
> > above?
> >
> > Yoav Shapira
>
>
> -
> 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]



Problem with javac Task

2003-08-08 Thread bas
Hi All,
   I am calling javac task inside the user defined IF task. 
   for example, 
 
   


 
 

   
  
 
When I try to track the compilation error occured with this javac task, I am not able 
to do it. Problem is, I am not able to get the owning target for javac task, It is 
returning as NULL and the control is not coming inside task started and task finished. 
can any one help me? 
 
Thanks,
bas

SMS using the Yahoo! Messenger;Download latest version.

RE: Tomcat 4.1 & https problem

2003-08-08 Thread Hou, Rowena

"catalina run" will let me see the error.
Thanks


-Original Message-
From: Jeff Tulley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 4:33 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat 4.1 & https problem


Try simply "catalina run" to have it run in the current window.  Then
see what exception you get. (Hopefully you are on an OS that will allow
you to scroll back and see the exception)

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

>>> [EMAIL PROTECTED] 8/6/03 2:23:05 PM >>>
Hi,

I've been running Tomcat as a standalone Web server for a while. My
project
run fine at http with sign applet. I want to switch from HTTP to HTTPS.

I followed the directions in the document"
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html"; : 

   1. keytool -genkey -alias tomcat -keyalg RSA -keystore mykeystore
   2. keytool -certreq -keyalg RSA -alias tomcat -file certreq.csr
-keystore
mykeystore
   and
   3. uncommented the connector provided by the config file:
   

 

However, it isn't working. I can't start Tomcat at all. I don't get
any
errors at prompt or in the logs; I tried to use command window run
"start
tomcat". It popup a command prompt and disappear. If I change className
to 
http://localhost:8443";
work but not https://localhost:8443 ( I commented out connector for
http in
server.xml file).
I use jakarta-tomcat-4.1.12-LE-jdk14 which come with jbuilder 8. runing
on
Window 2000 and IE 6

Question:
1. How can I fix the problem.
2. How can I find out error message? I tried to rum "catalina debug
-security" from command prompt. Most of error message is unrecognized.




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



active session counting, redux

2003-08-08 Thread Barclay A. Dunn
hi,
 
i have grown my own active session counting set up and it is definitely
*adding* sessions to the count, but i do not think it is ever removing
them.
 
here is my configuration:
 
1. i have an object called SessionCount that contains a HashSet of
session ids, and methods to add, remove, count, and list elements in
that HashSet.
 
2. i have a user object that gets bound to the session, so i caused that
user class to implement HttpSessionListener. Its sessionCreated() and
sessionDestroyed() methods execute SessionCount.addSession(sessionId)
and SessionCount.removeSession(sessionId), respectively.
 
3. i have this in my web.xml:


com.happypuppy.util.HPUser


first of all, bearing in mind TIMTOWTDI, and that this is the way i've
chosen *for now*, does this look right? 
 
i've confirmed that it's not adding multiple entries for the same
session id, but on my dev server, where i *think* i am the only user, it
thinks there are 3 active sessions. this is after logging out, at which
point the session is manually destroyed, and logging back in.
 
TIA,
 
Barclay A. Dunn
Senior Developer
www.HappyPuppy.com
33-41 Newark St, #1A
Hoboken, NJ  07030
201-269-6302



RE: Freeing processors

2003-08-08 Thread Donaldson Sgt Michael J
I have a question along these lines...
I am running jakarta-tomcat-4.1.18 on 4 different severs. 3 are Red Hat 8.0
and 1 Red Hat 6.2. Same tomcat configuration on all of them. ps -el shows
one java process on the Red Hat 8.0 but on the 6.2 box I have upward of 30
processes for java. Is there a reason for this?
R/S
Magilla



Hi

My problem is that tomcat runs out of processors and I see "No processor
available, rejecting this connection" in the log file. By reading earlier
posts a I understand that each processor is a thread and is not freed until
it is returned by my code, my code is hanging somewhere.

The problem is that my servlet (the only thing running in tomcat) only
"forwards" requests threw CORBA to a big app that I can't change, and its in
their the code hangs.

So, how can I solve this? The perfect solution would be if tomcat could
automaticly free processors after some timeout ( 60 s) but I have not found
such a feature/setting, does it exist? If not, could I do some small hack in
my servlet that monitors and somehow terminates (kills thread or something)
the request after 60s and therby freeing the processor?

I am running tomcat 4.1.12, java 1.4.0_04, redhat linux 9. I am using the
HttpConnector. 


Thank you

Daniel Carlsson 
Gimlisoft AB
Email: [EMAIL PROTECTED]
Tel: 0709-744570, 031-189024


RE: Apache 2.0.47, Tomcat 5.0.5, JK2 connector 2.0.2

2003-08-08 Thread Pat Pomatto

I have libjvm.so under JAVA_HOME/jre/lib/i386/server and
JAVA_HOME/jre/lib/i386/client. I can't get to work without jni either.

Pat

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 11:00 AM
To: Tomcat Users List
Subject: Re: Apache 2.0.47, Tomcat 5.0.5, JK2 connector 2.0.2


It can't find libjvm.so.  Do you have that installed?

Alternatively, does it work without JNI?

John

Pat Pomatto wrote:

> Hi,
> 
>  
> 
> I'm running on Linux Apache 2.0.47, Tomcat 5.0.5 and trying to use JK2

> connector 2.0.2 which I built successfully. I configured the connector

> with jni.  I cannot seem to get the connector to work. In my 
> apache/logs/error_log the error generated is:
> 
>  
> 
> [Tue Aug 05 10:31:53 2003] [error] vm.init(): no jvm_dll_path, will
use 
> LD_LIBRARY_PATH libjvm.so
> 
> [Tue Aug 05 10:31:53 2003] [error] Can't load native library libjvm.so
: 
> libjvm.so: cannot open shared object file:
> 
>  No such file or directory
> 
> [Tue Aug 05 10:31:53 2003] [error] jni.loadJvm() Error - can't load
jvm dll
> 
> [Tue Aug 05 10:31:53 2003] [error] workerEnv.initChannel() init failed

> for channel.jni:jni
> 
> [Tue Aug 05 10:31:53 2003] [error] workerEnv.initWorkers() init failed

> for worker.jni:onStartup
> 
> [Tue Aug 05 10:31:53 2003] [error] workerEnv.initWorkers() init failed

> for worker.jni:onShutdown
> 
> [Tue Aug 05 10:31:53 2003] [error] shm.init(): No file
> 
> [Tue Aug 05 10:31:53 2003] [error] uriEnv.init() map to invalid worker

> /jsp-examples/* ajp13:localhost:8009
> 
> [Tue Aug 05 10:32:05 2003] [error] mod_jk.handle() No worker for 
> /jsp-examples/index.html
> 
>  
> 
>  
> 
> Any ideas? Has anyone successfully gotten jk2 connector 2.0.2 working 
> with Tomcat 5?
> 
>  
> 
> Thanks in Advance,
> 
> Pat
> 



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



aliases under tomcat

2003-08-08 Thread Julien Martin
Hello,
I would like "fr.localhost" and "en.localhost" to resolve to "localhost".  I have 
created the aliases under tomcat but I was told by someone on the mailing list that 
further configuration was needed on the dns side.  I am running w2k. Can anyone tell 
me how to configure my w2k machine please?  (I know this is half relevant to tomcat 
but maybe someone can help me.)
Julien.

RE: active session counting, redux

2003-08-08 Thread Barclay A. Dunn
> >after changing the timeout to 5 min, i confirmed that indeed it was 
> >destroying a session after 5 min.
> ... and your listener was properly removing the session from its list?

every time the list increases, it increases by 2 - one with a long
alphanumeric session id, and one with a blank one (and i don't know why
that is, either, and need to figure it out as well). after 5 minutes
(the timeout) the list decreases by 1 - the blank one. so over time the
list is not getting pared down. the listener is only removing the
session with a "blank" id from the list.

what i don't know is, are these sessions also staying in memory? oh, and
btw, that is the objective of this entire exercise. how's that for
burying the lead?

as a side question, where does tomcat store sessions? (i am not
configuring a PersistentManager to store them in the db.)

> >the reason i went with my user implementing HttpSessionListener was i

> >had read that you had to implement it in an object that would be
bound 
> >to the session, and my user object is the only one i am certain to
bind 
> >to the session.
> That's true if you want the session itself for its data, 
> rather than just its ID to know that it exists and to count 
> it as active.

well, i wanted to store the session id in the set so i could be sure to
avoid double counting.

> >i guess i'm ready now to hear what i should have done instead of what
i 
> >did do.
> Depends on your design goals: do you only want the number of 
> sessions that are active, or do you want more, e.g. the value 
> of certain attributes in the active session?

my overarching design goal: are sessions dragging down the site's
performance. side goal: display things like "number of users currently
on the site", on the site.
 
> As an aside, your web site (www.happypuppy.com I assume) is 
> cool.  Is it served by tomcat?

thanks! it is in fact served by tomcat, and it gets bogged down by
problems that seem to stem from heavy afternoon traffic (when the kidz
getz outta skool) so we are trying to debug it.

Barclay A. Dunn
Senior Developer
www.HappyPuppy.com
33-41 Newark St, #1A
Hoboken, NJ  07030
201-269-6302
 


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



Re: Front Controller Servlet

2003-08-08 Thread Bill Barker
I agree that the design isn't the greatest (but I've seen much worse ;-). To
do what you want, in FCServlet try something like:

if(request.getServletPath().endsWith(".jsp")) {
   RequestDispatcher rd = getServletContext().getNamedDispatcher("jsp");
   rd.forward(request, response);
   return;
}

"Sharon Cohen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am trying to build FrontController servlet for a web site on Tomcat 4 ,
> after long time of changes on the web.xml file , I wasn't able to achieve
> this pattern,
> the web.xml portion is :
>
> 
>   FCservlet
>   *.jsp
> 
>
> my problem start when the FrontController servlet needs to forward the
> request to other jsp pages
> and when he uses the Forward method , the tomcat activate my
FrontController
> again , and after a  while  I get : StackOverflowError .
>
> Thanks for any help
> Sharon




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



RE: Help! heavy traffic is crapping out our site every 5 min! DBCPexceptions

2003-08-08 Thread Eric J. Pinnell
Is it also unlimited (or insanely huge) on the database?

-e

On Fri, 8 Aug 2003, Barclay A. Dunn wrote:

> i adjusted the pool to unlimited and am still getting these errors.
> something else seems to be fekachte.
>
> barclay
>
> -Original Message-
> From: Eric J. Pinnell [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 1:11 PM
> To: Tomcat Users List
> Subject: Re: Help! heavy traffic is crapping out our site every 5 min!
> DBCP exceptions
>
>
> Hi,
>
> Your pool of  connections to your database is exhausted.  Try upping the
> number.
>
> -e
>
> On Fri, 8 Aug 2003, Barclay A. Dunn wrote:
>
> > we are getting a ton of these errors in our catalina.out and i could use
> > help in fixing it.
> >
> > i know they are related to our connection pooling, but not what to do to
> > fix. my understanding of the underlying mechanics of connection pooling is
> > somewhat limited.
> >
> > i have put two different but related error messages in here:
> >
> > java.sql.SQLException: DBCP could not obtain an idle db connection, pool
> > exhausted
> > at
> >
> org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool
> > .java:123)
> > at
> >
> org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
> > va:110)
> > at
> >
> org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
> > 12)
> > at com.happypuppy.util.HPSql.getConnection(HPSql.java:21)
> > at org.apache.jsp.index_jsp._jspService(index_jsp.java:222)
> > at
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> > 04)
> > at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> > at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
> > java:684)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
> > er.java:575)
> > at
> >
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
> > .java:498)
> > at
> >
> org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
> > 22)
> > at org.apache.jsp._404_jsp._jspService(_404_jsp.java:373)
> > at
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> > 04)
> > at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> > at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> > FilterChain.java:247)
> > at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> > ain.java:193)
> > at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> > va:260)
> > at
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:643)
> > at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> > va:191)
> > at
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:643)
> > at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> > at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
> > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> > at
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> > )
> > at
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:643)
> > at
> >
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> > java:170)
> > at
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline.java:641)
> > at
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
> > )
> > at
> >
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
> > eNext(StandardPipeline

Re: Freeing processors

2003-08-08 Thread Mauricio Nuñez
Hi

the HttpConnector haa a connectionTimeout parameter. Set this to a low 
razonable value, as 2 ( 20 seconds )

I was having a similar problem, using the JkConnector, but because my app 
wasn't releasing db connections to the dbcp pool. Then, the "run out of 
processors ..." is more a signal the leakaging in your app. (IMHO :-)
 
Check the timeout of your CORBA connections if available.
Att

MN


El Jue 07 Ago 2003 08:12, Daniel Carlsson escribió:
> Hi
>
> My problem is that tomcat runs out of processors and I see "No processor
> available, rejecting this connection" in the log file. By reading earlier
> posts a I understand that each processor is a thread and is not freed until
> it is returned by my code, my code is hanging somewhere.
>
> The problem is that my servlet (the only thing running in tomcat) only
> "forwards" requests threw CORBA to a big app that I can't change, and its
> in their the code hangs.
>
> So, how can I solve this? The perfect solution would be if tomcat could
> automaticly free processors after some timeout ( 60 s) but I have not found
> such a feature/setting, does it exist? If not, could I do some small hack
> in my servlet that monitors and somehow terminates (kills thread or
> something) the request after 60s and therby freeing the processor?
>
> I am running tomcat 4.1.12, java 1.4.0_04, redhat linux 9. I am using the
> HttpConnector.
>
>
> Thank you
>
> Daniel Carlsson
> Gimlisoft AB
> Email: [EMAIL PROTECTED]
> Tel: 0709-744570, 031-189024
>
> -
> 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]



java.lang.NoClassDefFoundError: org/xml/sax/XMLReader

2003-08-08 Thread kenche
Hello, 

I'm trying to run the latest version of FOP (0.20) on Tomcat 3.2, by 
following the instructions in
http://xml.apache.org/fop/servlets.html 

When I run the servlet, I get the error 

java.lang.NoClassDefFoundError: org/xml/sax/XMLReader
 at FopServlet.renderFO(Unknown Source)
 at FopServlet.doGet(Unknown Source 

I think my classpath is set up, but can someone clarify the steps for me 
again? I'm relatively new to servlets so I may have missed an obvious step. 

Thanks, 

Kenneth

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


RE: how to suppor 30000 concurrent users

2003-08-08 Thread pete . storey
Angus,
doesnt using a shared jdbc based session manager slow the whole thing down 
a lot?  Why dont you just use session persistence?
Pete

WINXP + TOMCAT + apache

2003-08-08 Thread David O'Sullivan


__
Join Freeserve http://www.freeserve.com/time/

Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered 
ISP and Best Consumer Application.



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



Re: Can I get an answer please -- Re: Why integrate Tomcat with aweb server?

2003-08-08 Thread Rick Roberts
Of course not.  I'm only regergitating stuff I have read.  But I have seen it 
from several different sources, so I took it as truth.  Do you have benchmarks 
to prove otherwise?

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
* http://www.ait-web.com  *
***
Shapira, Yoav wrote:
Howdy,


Because a web server serves static content (html, images, etc.) much
faster

than tomcat will.


Really?  Do you have a benchmark using tomcat 4.1.x that supports the
above?
Yoav Shapira


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


java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

2003-08-08 Thread Brian Wedel
Hi,

I can't start up a particular 3rd party webapp, I get the expection
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet. I made sure
that only one servlet.jar exists in my tomcat directory structure.  I'm
using a clean install of Tomcat 4.1.27 and to install the webapp I just
copied the .war file into the webapps folder, tomcat expanded it but
couldn't install it.

Thanks,
-Brian Wedel

Here is the error from the log file...

2003-08-06 14:07:55 HostConfig[localhost] Error deploying web application
directory mapxtreme45
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1356)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1289)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
5)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3421)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:307)
at 
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559
)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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.main(Bootstrap.java:203)


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



RE: large objects in sessions

2003-08-08 Thread Shapira, Yoav

Howdy,

>And how does this approach save memory? You've simply replaced a
session
>object with a HashMap. Or am I missing something?

It's not intended to save memory and doesn't.  It's intended to prevent
putting non-serializable attributes in a session.

Yoav Shapira



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]



RE: Tomcat 4.1 & https problem

2003-08-08 Thread Tim Davidson
I had the same problem, it seems to occur when you uncomment the connector in 
server.xml and causes tomcat to exit, making it impossible to see what the error 
message was. I gave up in the end. Have you been able to get it working?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 12:42 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Tomcat 4.1 & https problem


Hou, Rowena,您好!
you may by change server.xml like this,try again. You will be sucessful.
   keystoreFile="mykeystore" 
   keystorePass = "password" 

=== 2003-08-06 16:23:00 您在来信中写道:===

>Hi,
>
>I've been running Tomcat as a standalone Web server for a while. My project
>run fine at http with sign applet. I want to switch from HTTP to HTTPS. 
>I followed the directions in the document"
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html"; : 
>
>   1. keytool -genkey -alias tomcat -keyalg RSA -keystore mykeystore
>   2. keytool -certreq -keyalg RSA -alias tomcat -file certreq.csr -keystore
>mykeystore
>   and
>   3. uncommented the connector provided by the config file:
>port="8443" minProcessors="5" maxProcessors="75"
> enableLookups="true"
> acceptCount="10" debug="0" scheme="https" secure="true"
> useURIValidationHack="false">
>className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
>   clientAuth="false" protocol="TLS" 
>   keystoreFile="full path to mykeystore" 
>   keystorePass- "changeit" 
>/>
> 
>
>However, it isn't working. I can't start Tomcat at all. I don't get any
>errors at prompt or in the logs; I tried to use command window run "start
>tomcat". It popup a command prompt and disappear. If I change className to 
>which used in document. I can start Tomcat and get "http://localhost:8443";
>work but not https://localhost:8443 ( I commented out connector for http in
>server.xml file).
>I use jakarta-tomcat-4.1.12-LE-jdk14 which come with jbuilder 8. runing on
>Window 2000 and IE 6
>
>Question:
>1. How can I fix the problem.
>2. How can I find out error message? I tried to rum "catalina debug
>-security" from command prompt. Most of error message is unrecognized. 
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

= = = = = = = = = = = = = = = = = = = =


致
礼!
 
 
唐文民
[EMAIL PROTECTED]
  2003-08-08




-
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 4.1 & https problem

2003-08-08 Thread Tim Davidson
I've managed to get it working (a problem with the path to the keystore), I'm reading 
a tomcat book, and its really useful to know to type "catalina run" if tomcat exits 
and you cant see the error messages.

-Original Message-
From: Scott Stewart [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 2:15 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1 & https problem


I am running Tomcat 4.1.24 in standalone mode using https with no problems.

How do you have the non-SSL and SSL Connectors defined in your server.xml?
Also, where do your key/cert files live (i.e. within the Tomcat directory
structure somewhere)?

Thanks,

Scott Stewart
[Manager, Software Development]
[EMAIL PROTECTED]

ClearSky Mobile Media, Inc.
56 E. Pine St. Suite 200
Orlando, FL 32801
USA



-Original Message-
From: Tim Davidson [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 9:08 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1 & https problem


I had the same problem, it seems to occur when you uncomment the connector
in server.xml and causes tomcat to exit, making it impossible to see what
the error message was. I gave up in the end. Have you been able to get it
working?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 12:42 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Tomcat 4.1 & https problem


Hou, Rowena,您好!
you may by change server.xml like this,try again. You will be
sucessful.
   keystoreFile="mykeystore" 
   keystorePass = "password" 

=== 2003-08-06 16:23:00 您在来信中写道:===

>Hi,
>
>I've been running Tomcat as a standalone Web server for a while. My 
>project run fine at http with sign applet. I want to switch from HTTP 
>to HTTPS. I followed the directions in the document" 
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssl-howto.html"; :
>
>   1. keytool -genkey -alias tomcat -keyalg RSA -keystore mykeystore
>   2. keytool -certreq -keyalg RSA -alias tomcat -file certreq.csr 
>-keystore mykeystore
>   and
>   3. uncommented the connector provided by the config file:
>port="8443" minProcessors="5" maxProcessors="75"
> enableLookups="true"
> acceptCount="10" debug="0" scheme="https" secure="true"
> useURIValidationHack="false">
>className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
>   clientAuth="false" protocol="TLS" 
>   keystoreFile="full path to mykeystore" 
>   keystorePass- "changeit" 
>/>
> 
>
>However, it isn't working. I can't start Tomcat at all. I don't get any 
>errors at prompt or in the logs; I tried to use command window run 
>"start tomcat". It popup a command prompt and disappear. If I change 
>className to className="org.apache.catalina.net.SSLServerSocketFactory"
>which used in document. I can start Tomcat and get "http://localhost:8443";
>work but not https://localhost:8443 ( I commented out connector for http in
>server.xml file).
>I use jakarta-tomcat-4.1.12-LE-jdk14 which come with jbuilder 8. runing on
>Window 2000 and IE 6
>
>Question:
>1. How can I fix the problem.
>2. How can I find out error message? I tried to rum "catalina debug 
>-security" from command prompt. Most of error message is unrecognized.
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

= = = = = = = = = = = = = = = = = = = =


致
礼!
 
 
唐文民
[EMAIL PROTECTED]
  2003-08-08




-
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: Https not working

2003-08-08 Thread John Turner
Nothing.  SSL or not, the only thing you need between Tomcat and Apache 
is the connector like mod_jk or mod_jk2.

SSL VirtualHosts are different than regular Virtual Hosts in Apache's 
httpd.conf file...you need to make sure that requests are forwarded to 
Tomcat for both types of VirtualHosts, SSL and non-SSL.

John

[EMAIL PROTECTED] wrote:

Greetings,
I'm running Tomcat primarily as a Servlet/JSP container behind Apache so I have
configure the primary web server to handle the SSL connections from users. So if
my apache box will negotiate all SSL-related functionality what do I have to do
in tomcat to get it to work?
If you go to http://placeanad.classifiedmarketplace.net:8080/AdWebster works
But https://placeanad.classifiedmarketplace.net:8080/AdWebster does not work
Thanks,
Bobbie
Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156
-
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.0.2 and IIS

2003-08-08 Thread vikas jain
I changed the IIS port back to 80 and tomcat to 8080, also in the 
worker.properties file i have changed to port to 8080. still not working.

I can go to servlet using tomcat by following paths:

http://localhost:8080/servlet/HelloWorld
http://localhost:8080/examples/servlet/HelloWorld
I didn't get any error log in isapi.log file this time, but it doesn't work.

Thanks,


From: John Turner <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: Tomcat 5.0.2 and IIS
Date: Thu, 07 Aug 2003 11:27:06 -0400
Well, since the error messages are complaining about "localhost 80", I 
would assume that you should either:

1. consider putting Tomcat on 8080, and IIS back on 80

or

2. analyzing the registry and your properties files and look for anything 
that has port 80 specified and switch it to 8080.

Switching Tomcat back and forth on ports is easy.  I would think the 
easiest way for you to do this would be:

1. leave IIS on 80.
2. switch Tomcat between 80 and 8080 as needed, when on 80, turn IIS on/off 
as needed so there are no conflicts.

That way your environment will match the deployment environment, and still 
give you the flexibility to use Tomcat in standalone mode for your own 
development with little fuss.

John

vikas jain wrote:

I have servlet running with tomcat. My main server is IIS. (on my machine 
it's just a test, and I am using tomcat as web server but on the system 
machine the web server is IIS. there I wan to deploy servlets).
Conclusion is how to run servlets using IIS?

Thanks,


From: John Turner <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: Tomcat 5.0.2 and IIS
Date: Thu, 07 Aug 2003 11:07:21 -0400
If you have Tomcat on port 80, what do you need the connector for?

John

vikas jain wrote:

I followed the instructions to set up IIS with tomcat.
The virtual redirector is showing green arrow pointing up but the 
servlets are not working.
in the log I am getting following errors:

[Thu Aug 07 09:28:03 2003]  [jk_ajp_common.c (1234)]: In 
jk_worker_t::validate, Error localhost 80
[Thu Aug 07 09:28:03 2003]  [jk_worker.c (176)]: wc_create_worker 
validate failed for testWorker
[Thu Aug 07 09:28:03 2003]  [jk_worker.c (246)]: build_worker_map failed 
to create workertestWorker
[Thu Aug 07 09:33:03 2003]  [jk_ajp_common.c (1234)]: In 
jk_worker_t::validate, Error localhost 80
[Thu Aug 07 09:33:03 2003]  [jk_worker.c (176)]: wc_create_worker 
validate failed for testWorker
[Thu Aug 07 09:33:03 2003]  [jk_worker.c (246)]: build_worker_map failed 
to create workertestWorker
[Thu Aug 07 10:03:31 2003]  [jk_ajp_common.c (1234)]: In 
jk_worker_t::validate, Error localhost 80
[Thu Aug 07 10:03:31 2003]  [jk_worker.c (176)]: wc_create_worker 
validate failed for testWorker
[Thu Aug 07 10:03:31 2003]  [jk_worker.c (246)]: build_worker_map failed 
to create workertestWorker

I set up IIS at 8080 and tomcat at 80 port, does that make any 
difference?

Thanks,
vikas

From: John Turner <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: Tomcat 5.0.2 and IIS
Date: Wed, 06 Aug 2003 08:16:08 -0400
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/

John

vikas jain wrote:

Thanks Derek.
One more question. Where am I supposed to download dll file from?


From: "Derek Mahar" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: "Eric J. Pinnell" <[EMAIL PROTECTED]>,"Tomcat Users List" 
<[EMAIL PROTECTED]>
Subject: RE: Tomcat 5.0.2 and IIS
Date: Tue, 5 Aug 2003 15:47:54 -0400

After much blood, sweat, and tears, I successfully got Tomcat 5.0.5,
Microsoft IIS, and the JK2 Connector (isapi_redirector2.dll) to work
together.  Refer to the following documents:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/installhowto.htm

l
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html
http://www.oreillynet.com/pub/a/onjava/2002/11/20/tomcat.html
http://www.oreillynet.com/pub/a/onjava/2002/12/18/tomcat.html
http://www.geocities.com/gzhangx/websrv/ajp/ajp.html
Derek



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Latest movie trailers. On your mobile. 
http://server1.msn.co.in/sp03/gprs/howcani_movie.asp With GPRS.

-
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]
_
Want to visit Spain? Click here. 
http://server1.msn.co.in/sp03/spain/inde

Re: Custom Tag Lib

2003-08-08 Thread Tim Funk
SimpleTag is part of JSP2.0 which is in tomcat5. AFAIK, there is no simpletag 
for jsp1.2 (tomcat4)

More info on tag pooling:
http://jakarta.apache.org/tomcat/faq/misc.html#tagpool
http://jakarta.apache.org/tomcat/faq/misc.html#tagbroken
-Tim

Shawn Zernik wrote:
Mike:

I can't resolve that problem.  can I impliment those tags as simple tags:
the JSP spec says that they will not be cached or reused.
Shawn
 


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


RE: how to suppor 30000 concurrent users

2003-08-08 Thread pete . storey
Sorry for being thick but Im a bit confused as to when you are doing 
anything with the sessions?  If I make a request to one server, then go on 
to another for the next request, how does server 2 get my session from 
server 1 without server 1 having had to persist the session to disk every 
time any change is made to it?
Pete





"Angus Mezick" <[EMAIL PROTECTED]>
05/08/2003 15:11
Please respond to "Tomcat Users List"
 
To: "Tomcat Users List" <[EMAIL PROTECTED]>
cc: 
Subject:RE: how to suppor 3 concurrent users


Doesn't seem to have that much of an effect.  I guess I should profile
it though.  I don't want to use session persistence because then I would
need to use network session clustering.  Session clustering is a
requirement for my app.  I figure using a DB instead of memory to store
my sessions is better than sending 5 network connections to the other 5
of the 6 web servers with the session data that will only be valid to
ONE of those servers.  Before tomcat we were using Iplanet 4.1 and the
cisco load balance we have SAID it could handle session affinity but it
didn't seem to be able to.  So we went with a DB solution which, to me,
seems to be the more optimal solution.  The DB also means I can have a
MUCH larger number of active sessions using my servers because I don't
have to worry about the sessions using all my memory.  I just have to
worry about DB disk space but I had have 2 or 3 terabytes of disk while
only have 2 GB of memory.  Seems to be an easy trade.
--Angus

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 05, 2003 9:40 AM
> To: Tomcat Users List
> Subject: RE: how to suppor 3 concurrent users
> 
> 
> Angus,
> doesnt using a shared jdbc based session manager slow the 
> whole thing down 
> a lot?  Why dont you just use session persistence?
> Pete
> 

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




Tracking active sessions

2003-08-08 Thread Philipp Leusmann
Hi,

I am looking for a way to track which/how many sessions are open. Generally
it seems to work with a HttpSessionListener, but the Listener is not
notified again if the server restarts and still
has any opened sessions.
Anyone knows how to deal with that problem? Or is the only chance to look if
the session is already tracked at each call to a page?

Thanks,
 Philipp



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



RE: RE: Java and tomcat issues

2003-08-08 Thread Atreya Basu
Also don't do:
'export $PATH=...'
Instead do:
'export PATH=...'

The '$' symbol is not supposed to be there.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: August 5, 2003 3:33 PM
To: [EMAIL PROTECTED]
Subject: RE: RE: Java and tomcat issues

Okay this happens

bash-2.05b# export $PATH=$JAVA_HOME/bin
-bash: export:
`/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6
/bin
=/usr/java/j2sdk1.4.1_04//bin': not a valid identifier

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 2:18 PM
To: Tomcat Users List
Subject: Re: RE: Java and tomcat issues


Sure, APPEND the PATH variable with JAVA_HOME,
don't overwrite it!
Path=$PATH;JAVA_HOME/bin


- Original Message -
From: [EMAIL PROTECTED]
Date: Tuesday, August 5, 2003 2:07 pm
Subject: RE: Java and tomcat issues

> Okay everytime I do it my commands don't work on the box like ls,
> cd, ll - the
> only command that works is the exit command
> 
> Any ideas?
> 
> -Original Message-
> From: Shapira, Yoav [EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 2:06 PM
> To: Tomcat Users List
> Subject: RE: Java and tomcat issues
> 
> 
> 
> Howdy,
> 
> >I'm trying to set up JAVA for tomcat on a redhat 8.1 box and I keep
> getting
> >this message after I set the JAVA_HOME path
> >
> >-bash-2.05b# which java
> >/usr/bin/which: no java in
>
>(/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R
> 6/bi
> >n
> >)
> >-bash-2.05b#
> 
> That's pretty clear, isn't it? ;)  Add $JAVA_HOME/bin to your $PATH.
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a confidential business 
> communication, and may contain information that is confidential, 
> proprietaryand/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 
> immediatelydelete 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]
> 
> 


-
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: Element "web-app" does not allow "servlet" here

2003-08-08 Thread John Turner
You'll have to do it on a regular basis if you continue to use a DTD of 
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";.  Try something like 
"http://java.sun.com/dtd/web-app_2_3.dtd";. Note "2.3" instead of "2.2".

John

Jiann-Ming Su wrote:

I'm getting a bunch of the errors included below.  I've attached my web.xml.
My web.xml seems to pass xml validators.  The last time I ran into this,
I think I just reinstalled tomcat, but I shouldn't have to do this on such
a regular basis.  I'm running tomcat-4.1.24-LE.  How do I fix this problem? 
Thanks for any tips.

Aug 5, 2003 11:58:55 AM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 40 column -1: Element "web-app" does not allow "servlet" he
re.
org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Validat
ingParser.java:349)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1317)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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.main(Bootstrap.java:203)






http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>


		 ConnectionServlet
		db.ConnectionServlet
		1
	

browse
search.ARCSearch
		2



ARCSearch
search.ARCSearch
		2



user
user.User
		2


loaduser
user.LoadUser
		2


annotation
annotation.Annotation
		2


bookbag
bag.bagServlet
		2


AttribSaver
search.AttribSaver
		2


search.AdvancedFormServlet
search.AdvancedFormServlet
		3


		OAI-DP
		arc20.dp.DPOAI


		OAI20
		arc20.dp.DPOAI

  	
		OAI-SP
		arc.sp.SPOAI
	  
	

  	BASIC
  	Example Basic Authentication Area





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

Re: apache/tomcat w/ mod_2k on linux

2003-08-08 Thread John Turner
Have you followed the HOWTOs?  Read the FAQ for the connectors?

What does your httpd.conf file look like?  Workers.properties?  JkMount?

Are you using the right mod_jk.so file for your Apache?

John

[EMAIL PROTECTED] wrote:

I am having lots of problems integrating apache 1.3 with tomcat 4.1.24
using mod_jk.  Apache works and I can access tomcat via the standalone
service but not through the tomcat-apache service.  I get the following
error in error_log:
[Tue Aug  5 12:41:18 2003] [error] (25)Inappropriate ioctl for device:
Error while opening the workers, jk will not work
and get the following errors in mod_jk.log:

[Tue Aug 05 12:41:18 2003]  [jk_worker.c (158)]: wc_create_worker NULL
factory for apj13
[Tue Aug 05 12:41:18 2003]  [jk_worker.c (244)]: build_worker_map failed to
create workerajp13
I have scoured the tomcat-users archive and googled my brain sore and can't
find any solutions.   Any help would be appreciated.
Thanks,

Skyler Bingham
[EMAIL PROTECTED]
1(602)957-1650 x1139
-
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: active session counting, redux

2003-08-08 Thread Barclay A. Dunn
i am reviewing a list of the session ids in my SessionCount's HashSet,
and have acquired some more information:

when someone logs in, two session ids are getting added to my
SessionCount's HashSet, and one of them is a blank session id. i'm not
sure if it's null or "". 

the only session that appears to be destroyed after the timeout is the
blank one.

-Original Message-
From: Barclay A. Dunn [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 1:44 PM
To: 'Tomcat Users List'
Subject: RE: active session counting, redux


ok, that is helpful. (both things.)

after changing the timeout to 5 min, i confirmed that indeed it was
destroying a session after 5 min.

the reason i went with HttpSessionListener was i had read that using
HttpSessionBindingListener, once the session was unbound, you couldn't
get any info on that session. 

the reason i went with my user implementing HttpSessionListener was i
had read that you had to implement it in an object that would be bound
to the session, and my user object is the only one i am certain to bind
to the session. 

now, i now you guys have had endless discussions about active session
counting (hence my subject line contains "redux"), and i apologize for
bringing up an old and re-re-rehashed topic, but i could still use a
little more advice. i haven't quite got it working yet, but nevertheless
i guess i'm ready now to hear what i should have done instead of what i
did do.

thanks,

Barclay A. Dunn
Senior Developer
www.HappyPuppy.com
33-41 Newark St, #1A
Hoboken, NJ  07030
201-269-6302
 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 1:13 PM
To: Tomcat Users List
Subject: RE: active session counting, redux



Howdy,

>hmmm. thanks for your thoughts, and good question. upon logout, among
>other things, i am calling session.invalidate(). should i do something 
>different?

Invalidate is close to but not the same as destroy.  Specifically, the
container is not required to destroy a session when you invalidate it.  

For experimentation and to verify your solution, set the session timeout
to 5 minutes in web.xml, create one session, then wait 5 minutes for it
to be timed out and a bit more for it to be destroyed, and see if your
listener handles it properly.

Yoav Shapira



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]


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



Re: Can I get an answer please -- Re: Why integrate Tomcat with aweb server?

2003-08-08 Thread Rick Roberts
Because a web server serves static content (html, images, etc.) much faster than 
tomcat will.

Nathan Ward wrote:
Hello John, 

I hate to be pushy, but are you going to post a reply to this question at some point?

   Nathan
  - Original Message - 
  From: Nathan Ward 
  To: [EMAIL PROTECTED] ; Tomcat Users List 
  Sent: Monday, August 04, 2003 11:05 AM
  Subject: Why integrate Tomcat with a web server?

  I have a question for John Turner about a statement in the book Apache Tomcat Security. 

  Page 12 says: 
  "As discussed earlier, running publicly available web services as root or superuser is typically a bad idea, so the solution is to avoid using Tomcat as a stand-alone web server on port 80 by integrating it with a standard HTTP web server such as Apache, Microsoft's IIS, or Sun Microsystem's iPlanet."

  Question: Does this apply when running under Windows? The reference to "as discussed earlier" talks about running Tomcat as a service with more permissions than necessary. Windows defaults to running services as SYSTEM which has administrator privileges. Fine, but as also mentioned earlier, you can create a user account with less permissions and setup the service to run Tomcat under that account. So, how does the statement on page 12 relate to running Tomcat under windows, i.e. why run Tomcat with IIS rather than just run Tomcat? There may be performance reasons, but from a security point of view, is there increased security risks in running Tomcat without IIS when running as a service under Windows?

 Nathan

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
* http://www.ait-web.com  *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem with mod_jk2

2003-08-08 Thread Eric J. Pinnell
Hi,

http://jakarta.apache.org/tomcat/faq/connectors.html

-e

On Wed, 6 Aug 2003 [EMAIL PROTECTED] wrote:

> Hello,
>
> I've compiled mod_jk2, and installed it intirely according to the
> instructions on the website.
>
> I'm using apache 2.0.47 and tomcat 4.1.24
>
> I have the impression that the mod_jk2 modules is loaded correctly, but that
> it is completely ignoring my workers2.properties file. No URL mappings work.
>
> I do have an apache installation that is a bit peculiar. To make ist short,
> conf is not a subdir of ${serverroot}.
> Now the website says the following:
>
> "The config file is named "workers2.properties", located by default in
> ${serverRoot}/conf, where ${serverRoot} is the web server dir, like
> /usr/local/apache. It is possible to modify the location of the file using
> server-specific directives."
>
> Can someone enlighten me as to which "server-specific directive" I can use
> to tell mod_jk2 where the workers2.properties file is? (JkWorkersFile as in
> mod_jk doesn't work, it throws a syntax error from Apache...)
>
> TIA
>
> Krist van Besien
>
>
>
> ---
> Krist van Besien
> Unix Specialist BZBD
> Bundesamt für Informatik und Telekommunikation BIT
> Monbijoustrasse 74, CH-3003 Bern
> Tel. +41 31 322 24 46
>
> added interaction www.informatik.admin.ch
>
> -
> 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: Hardware and Memory Requirements

2003-08-08 Thread John Turner
There should be no surprise.

For Tomcat alone, perhaps about 20MB disk (plus whatever you want for 
logs) and for RAM, you could do fine with 128MB.

What you are missing, and what other people have pointed out, is that 
every single web application that you would use with Tomcat is 
different.  Your web app might need 1 GB of RAM, mine might need 128MB, 
for a whole number of reasons.

There is no way anyone can give you specs for RAM, disk, etc. for Tomcat 
other than just getting Tomcat to start.  After that, all resource usage 
will be 100% variable depending on the number of webapps, the quality of 
the code, and the efficiency of the architecture.

So, don't be surprised...you've essentially asked a question that is 
impossible to answer.

John

kmk kumar wrote:

Thanks Mourad

I am surpised that I could not find any document which talks about 
hardware and memory requirements for installing and running tomcat. I 
have other other applications running on the system and without the 
memory and h/w requirements it will be difficult for me.

Thanks


From: mourad jaber <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: Hardware and Memory Requirements
Date: Thu, 07 Aug 2003 10:24:36 +0200
There are no clear responses depending usage of tomcat !
As a production plateform ( linux ), I'm using P4 2.4G with 1Go of ram 
and as I'm using a data base on an other machine I don't take care of 
the disk size but i't mirrored 18Go SCSI...
As my dev plateform( linux ) is P3 1Go/512Mo of Ram and it is really 
to much !
But my webapp is using lot's of memory by formatting on the fly pdf, 
rtf and gif files so I set my jvm environement to 512Mo, but basically 
I think it set to 128 ( please correct if I'm wrong )...
but I have an other tomcat runing on a shared plateform ( window$ )  
with several M$ asp web sites ( about 20 hits/day ) and my tomcat 
is runing well with an isapi filter to work with IIS and it is a bi-P3 
Xeon 900Mhz with 2Go of ECC sdram and about 200Go of hard drives... 
And it work very well for a year :)

So if it is only to try some basic webapps, don't worry, every today's 
hardware configuration is enough to run tomcat ;)

Mourad

kmk kumar wrote:

Hi

Is there a document which talks about the hardware and memory 
requirements based on the platform on which tomcat is installed.

specifically looking for
1. How much disk space and memory does it require to install it.
2. How much memory it takes to run it.
Thanks for any help.

_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

-
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]
_
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
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: How to configure to use tomcat and struts to use log4j?

2003-08-08 Thread Shapira, Yoav

Howdy,

>Looks like Struts has a dependency on Commons Logging which is using
>Log4j under the hood. The commons logging jar is being loaded from a
>"higher" level classloader (common/lib or server/lib) and can't access
>classes only provided by a "lower" classloader (your webapp).
>
>Maybe try having the commons logging jar in your WEB-INF/lib.

Not a bad suggestion.  Remember, you should always be able to have your
webapp work if you all your jars are in WEB-INF/lib and no jars are
elsewhere.

>> - Root Cause -
>> java.lang.NoClassDefFoundError: org/apache/log4j/Layout

Note the difference between NoClassDefFoundError and
ClassNotFoundException.  The classloader found a log4j jar, but it does
not contain the Layout class.  List the contents of your WEB-INF/lib.

Yoav Shapira



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]



Re: Tomcat 5.0.2 and IIS

2003-08-08 Thread vikas jain
I tried after changing the port # in propertied file, but it didn'twork out. 
:((


From: John Turner <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: Tomcat 5.0.2 and IIS
Date: Thu, 07 Aug 2003 11:54:13 -0400
I'm pretty sure your .properties file should use port 8009.  Do you have 
the CoyoteConnector listening on port 8009 for JK?  Its enabled by default.

John

vikas jain wrote:
I changed the IIS port back to 80 and tomcat to 8080, also in the 
worker.properties file i have changed to port to 8080. still not working.

I can go to servlet using tomcat by following paths:

http://localhost:8080/servlet/HelloWorld
http://localhost:8080/examples/servlet/HelloWorld
I didn't get any error log in isapi.log file this time, but it doesn't 
work.

Thanks,


From: John Turner <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: Re: Tomcat 5.0.2 and IIS
Date: Thu, 07 Aug 2003 11:27:06 -0400
Well, since the error messages are complaining about "localhost 80", I 
would assume that you should either:

1. consider putting Tomcat on 8080, and IIS back on 80

or

2. analyzing the registry and your properties files and look for anything 
that has port 80 specified and switch it to 8080.

Switching Tomcat back and forth on ports is easy.  I would think the 
easiest way for you to do this would be:

1. leave IIS on 80.
2. switch Tomcat between 80 and 8080 as needed, when on 80, turn IIS 
on/off as needed so there are no conflicts.

That way your environment will match the deployment environment, and 
still give you the flexibility to use Tomcat in standalone mode for your 
own development with little fuss.

John



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
It's raining movies. Bollywood is flooded. 
http://server1.msn.co.in/features/augustmovies03/index.asp August has 
arrived!

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


Re: Stable tomcat + apache + mod_j2 + ssl

2003-08-08 Thread John Turner
Apache 2.0.47
Tomcat 4.1.24
There isn't an SSL version of either the mod_jk or jk2 connector.  Since 
JK and JK2 don't ever communicate with a client, there's really no need. 
  You might be able to setup a tunnel using stunnel or similar, but on 
Windows that will be problematic.

Apache binary: http://httpd.apache.org/download.cgi

Tomcat binary: http://jakarta.apache.org/site/binindex.cgi

Connectors: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/

Connector FAQ: http://jakarta.apache.org/tomcat/faq/connectors.html

John

Ramanan Ramadoss wrote:

Dear friends,
 I am a newbie and have to set up a secure enviroment between tomcat and
apache. 

 Can someone tell me which is the stable production ssl version of
tomcat and apache? Is there a ssl version of mod_jk or mod_j2 connector? If
no which connector should we use? Where can I get a built version of the
webserver, app server and the connectors that work with each other for a
windows 2000 environment.
Thanks
Ramanan
-
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: jasper2

2003-08-08 Thread Dmitry Beransky
Ok.  But here's the confusing part.  When I try to compile Tomcat 4.1.27 
with Jasper2, I get error messages complaining that there is so such 
function as TagInfo.hasDynamicAttributes().  Surely, this function was 
introduced in JSP 2.0 and is only available in 
jakarta-servletapi-5.  However, the instructions for building Tomcat 4.1 
tell me to use jakarta-servletapi-4 library (besides, I couldn't find a 
binary distribution of v5).  So, any thoughts on what is going on here?

Thanks
Dmitry
At 04:29 PM 8/7/2003, you wrote:
Both.

-Tim

Dmitry Beransky wrote:
I'm confused.  Is Jasper2 intended for Tomcat 4 or Tomcat 5?
Dmitry


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