Detect tomcat problems with a custom java reporting apps?

2006-06-12 Thread Peter Neu
Hello, I want to build a small custom reporting tool for our tomcat production server. First of all is this the right place to ask about this kind of things or is this more a question for the dev list? The basic idea is, I want to send queries to tomcat and if one fails three times send out

Re: a compromised tomcat server

2006-06-12 Thread Martin Gainty
In the meanhile I would strongly suggest you run locally so you can control the environment- Martin -- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email

Re: Detect tomcat problems with a custom java reporting apps?

2006-06-12 Thread Leon Rosenberg
maybe you should look at existing tools first? http://www.lambdaprobe.org/d/index.htm regards leon On 6/12/06, Peter Neu [EMAIL PROTECTED] wrote: Hello, I want to build a small custom reporting tool for our tomcat production server. First of all is this the right place to ask about this

AW: Detect tomcat problems with a custom java reporting apps?

2006-06-12 Thread Peter Neu
Yes, I am using this already. But there is some vital functionality missing. When an java.lang.outOf.MemoryException happens I won't get an alert unless I happen to be using lambda at the moment. So what we have at hand is a 'Schrödinger Cat' situation. I need to monitor the jmx control layer

Re: Detect tomcat problems with a custom java reporting apps?

2006-06-12 Thread Leon Rosenberg
I'm not sure that after something bad happens you can access the server at all. An OutOfMemory or an AllThreadsBusy Exception normally lead to a non-responding tomcat. The best thing you could do is monitoring the logs with a separate script on the same machine and send mails on failure imho.

RE: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-12 Thread Mark Claassen
Thanks for all your help and I have gotten it to work. It seems to be, however, dependant on the name it is being access by. I was hoping that I could just put 127.0.0.1 in there and then it would only accept connections from the local machine. It turns out that doing this only accepts

AW: Detect tomcat problems with a custom java reporting apps?

2006-06-12 Thread Peter Neu
You are right Leon. I just did a field test on our test server. The perm gen space is relatively small on that machine. So opened a lot sessions and did a lot of XSLT/FOP/Excel generation. Thus the perm gen space was spent very fast. I monitored this with lambda. In the end the server did not

Re: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-12 Thread Marc Farrow
I think the address tag will accept a regular expression. So you could put a negative 127.0.01 address entry in there. I am not good at regular expressions so google them. On 6/12/06, Mark Claassen [EMAIL PROTECTED] wrote: Thanks for all your help and I have gotten it to work. It seems to

RE: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-12 Thread Peter Crowther
From: Mark Claassen [mailto:[EMAIL PROTECTED] Say Tomcat is on a machine called TestMachine. If I put 127.0.0.1 in the address field, it accepts connections of the form http: //127.0.0.1/... only It does not accept connections from http: //TestMachine/..., even though the server is this

Re: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-12 Thread Andrew Miehs
@Mark, as Peter wrote, have a look in /etc/hosts. It probably looks like 127.0.0.1 localhost 192.168.0.2 testmachine.domain.com testmachine You should change this to 127.0.0.1 localhost testmachine 192.168.0.2 testmachine.domain.com Just be careful if you are using

Re: Detect tomcat problems with a custom java reporting apps?

2006-06-12 Thread Leon Rosenberg
I think you need a multilayer system :-) 1) a http-client app which simply calls the same simple servlet (simply writing available in the response or something like this) each 10 seconds and check if the server replies at all. 2) monitor cpu load on the machine. If the idle time is 100% the

RE: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-12 Thread Mark Claassen
We do have something similar to your first example. 127.0.0.1 localhost 192.168.0.2 testmachine.domain.com testmachine So we can probably move testmachine like you did. But does this mean that accesses by testmachine.domain.com will not comply? I was just hoping that the restriction

RE: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-12 Thread Mark Claassen
Thanks, I think this answers my questions -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Monday, June 12, 2006 9:08 AM To: Tomcat Users List Subject: RE: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in

RE: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-12 Thread Peter Crowther
From: Mark Claassen [mailto:[EMAIL PROTECTED] I was just hoping that the restriction would be based on some intrinsic information and not just on the name that was used. It *is* based on the intrinsic information: the IP address to which the socket is bound. Repeat after me: A Hostname Is

Re: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-12 Thread Andrew Miehs
The configuration in the connector is so that java know on which interface to 'BIND' to on the machine. Do a netstat -anp |grep LISTEN on your machine. This shows which interface which processes are bound to. The only process (generally speaking) that can connect to 127.0.0.1 is

Running Multiple Jboss Instance on a single Windows Box

2006-06-12 Thread Sanjeev Kumar Bhat, Noida
---BeginMessage--- Hi, Is it possible to run multiple instances of Jboss Server on a single win2k box? Thanks Sanjeev winmail.dat---End Message--- DISCLAIMER: --- The contents

Re: Restricting access to localhost for an HTTP connector - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-06-12 Thread David Smith
It is restricted based on IP, not name. The name you give in the browser is resolved to an IP address via host file and/or DNS before making the request. What you really seem to be looking for is the remote address valve which allows/denies access based on the client's IP address. See

Re: Tomcat 5.0.28 can't init TLS after restart

2006-06-12 Thread Glenn Holliday
Glenn Holliday wrote on May 30 Tomcat 5.0.28 on Solaris 9 has been correctly serving Web apps using both http and https. Then, after the Sun computer was shut down and restarted, Tomcat failed to serve https requests. It appears it could not initialize the https connector. It continues to

Re: Database Persistance And Session Replication

2006-06-12 Thread Filip Hanik - Dev Lists
unfortunately you can't do both, its either or Filip David Ron wrote: Hey everybody, I would like to configure Tomcat for both session replication across 3 servers and database session persistence. The database persistence lags several seconds which is why I don't think that I

how to save a context---save and commit changes not enough.

2006-06-12 Thread Jay G. Scott
greetings, i go into the web-based admin tool, click localhost, create a new context, type in the stuff, and save it. it says save successful. the context appears under the localhost. i click commit changes. the context is still there. if i stop/start tomcat, the context is gone. is that

Memory Profiling Strategy???

2006-06-12 Thread John McClain
I am trying to find a memory leak in our web application. I have set JProfiler up to take a heap snapshot upon every entry and exit of a screen in our web application; This is because upon entry of a screen, we write data to the user session, and upon exit we remove data from the user session. The

RE: Memory Profiling Strategy???

2006-06-12 Thread Peter Crowther
From: John McClain [mailto:[EMAIL PROTECTED] If it is not in user session memory, then can I assume it is a Tomcat memory leak??? No. Consider, for example, retained memory in third-party libraries that you use and singletons you may instantiate. - Peter

Re: Memory Profiling Strategy???

2006-06-12 Thread David Smith
Also look at the memory useage of your servlet code, jsps, etc., ... Take a look at the objects you create and see if they are being dereferenced as you'd expect. Tomcat recycles certain instance objects (like servlets) instead of creating/destroying them per requests for performance

Re: Running Multiple Jboss Instance on a single Windows Box

2006-06-12 Thread Bob Hall
--- Sanjeev Kumar Bhat, Noida [EMAIL PROTECTED] wrote: Is it possible to run multiple instances of Jboss Server on a single win2k box? Thanks Sanjeev Yes. You should use server/service-bindings.xml to orchestrate port # assignment. -Bob

AJP vs. JNI

2006-06-12 Thread Mann, Bradley
Hello, I am trying to discover the differences between these two protocols (AJP and JNI) when using the Jakarta Connector with Apache HTTPD and Tomcat. Any information on the difference between these two and what scenarios work best with each is greatly appreciated. Thanks, Brad Mann Software

Re: a compromised tomcat server

2006-06-12 Thread David Rees
On 6/10/06, hv @ Fashion Content [EMAIL PROTECTED] wrote: I had an incident on my server the other day where someone had succesfully broken into the server to execute a port scanner. The port scanner was running under the tomcat process so I assume the breakin was done by getting through the

Problem with tag library calling

2006-06-12 Thread Alex Turner
I have the following lines in my source file: %@ taglib prefix=mp uri=com.mintpixels.web.helper % [snip] mp:dynselect values=Selling,Refininancing name=selling_refinancing/ When I run the jsp, I get the following errors: org.apache.jasper.JasperException: Unable to compile class for JSP An

Re: Problem with tag library calling

2006-06-12 Thread Alex Turner
It looks like it's generating the following function: private boolean _jspx_meth_mp_dynselect_0(PageContext _jspx_page_context) throws Throwable { PageContext pageContext = _jspx_page_context; JspWriter out = _jspx_page_context.getOut(); // mp:dynselect

Re: AJP vs. JNI

2006-06-12 Thread Darryl Miles
Mann, Bradley wrote: Hello, I am trying to discover the differences between these two protocols (AJP and JNI) when using the Jakarta Connector with Apache HTTPD and Tomcat. Any information on the difference between these two and what scenarios work best with each is greatly appreciated. Chalk

Re: Running Multiple Jboss Instance on a single Windows Box

2006-06-12 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread.

Tomcat Installation Trouble

2006-06-12 Thread omkar tilak
Hi, I'm trying to install Tomcat on one our department servers. I've already un-tared the tomcat distribution into folder /opt/research/apache-tomcat-5.5.17. Accordingly, my CATALINA_HOME variable is set to /opt/research/apache-tomcat-5.5.17 and JAVA_HOME variable is set to

Re: Tomcat Installation Trouble

2006-06-12 Thread David Smith
omkar tilak wrote: Take a look at /opt/research/apache-tomcat-5.5.17/logs/catalina.out for errors. --David Hi, I'm trying to install Tomcat on one our department servers. I've already un-tared the tomcat distribution into folder /opt/research/apache-tomcat-5.5.17. Accordingly, my

Re: Tomcat Installation Trouble

2006-06-12 Thread Larry Meadors
When I click on that link, I get an error that looks nothing like a tomcat error - something else is running on port 8080, so you have 2 options: 1) Edit $CATALINA_HOME/conf/server.xml to run on another port -or- 2) Kill (or reconfigure) the other app listening on port 8080 Larry On

Re: Tomcat Installation Trouble

2006-06-12 Thread omkar tilak
Thanks a lot David it works now !! David Smith [EMAIL PROTECTED] wrote: omkar tilak wrote: Take a look at /opt/research/apache-tomcat-5.5.17/logs/catalina.out for errors. --David Hi, I'm trying to install Tomcat on one our department servers. I've already un-tared the tomcat