Too many open files error -- using tomcat 6.0.14 on RHEL 4

2007-11-16 Thread Kim Albee
We're seeing an error that we didn't see yesterday, but when we
modified -Xmx settings for Tomcat, we no cannot get past the issue
"Too many open files") and the sites on the server are not serving --
except this error.

We've changed the settings back, but any restart causes the same issues.

How do we fix this

thanks,
Kim :-)

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Issue finding Worker using mod_jk ...

2007-11-08 Thread Kim Albee
Filip,

Yep, we're doing that...it's in the Virtual Host directive.

Thanks,
Kim ;-)

On Nov 8, 2007 12:21 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
> you must define the JkMount directive inside your httpd.conf file to map
> a worker to a  URL
>
> in this case I believe it would be
>
> JkMount / ein1
> JkMount /* ein1
>
> Filip
>
>
> Kim Albee wrote:
> > We are having an issue when setting up integration between Apache 2.0.52 and
> > Tomcat 6.0.14...
> >
> > Here are the mod_jk.log entries:
> >
> > [Wed Nov 07 14:31:25 2007]  [jk_uri_worker_map.c (445)]: Into
> > jk_uri_worker_map_t::map_uri_to_worker
> > [Wed Nov 07 14:31:25 2007]  [jk_uri_worker_map.c (459)]: Attempting to map
> > URI '/'
> > [Wed Nov 07 14:31:25 2007]  [jk_uri_worker_map.c (473)]:
> > jk_uri_worker_map_t::map_uri_to_worker, Found an exact match ein1 -> /
> > [Wed Nov 07 14:31:25 2007]  [mod_jk.c (1689)]: Into handler r->proxyreq=0
> > r->handler=jakarta-servlet r->notes=158639048 worker=ein1
> > [Wed Nov 07 14:31:25 2007]  [jk_worker.c (90)]: Into wc_get_worker_for_name
> > ein1
> > [Wed Nov 07 14:31:25 2007]  [jk_worker.c (94)]: wc_get_worker_for_name, done
> > did not find a worker
> >
> > The workers.properties file looks like this:
> >
> > workers.tomcat_home=/usr/local/tomcat6
> > workers.java_home=$JAVA_HOME
> > ps=/
> > worker.list=ein1
> >
> >
> > worker.ein1.port=8109
> > worker.ein1.host=localhost
> > worker.ein1.type=ajp13
> > worker.ein1.info=Ajp13 forwarding
> > worker.ein1.debug=2
> > worker.ein1.tomcatId=ein1
> >
> > We have the jvmRoute set in the Engine parameter for the server.xml in
> > tomcat as well...
> >
> > Any suggestions on how to get this working?
> >
> > thanks,
> > Kim :-)
> >
> >
> > 
> >
> > No virus found in this incoming message.
> > Checked by AVG Free Edition.
> > Version: 7.5.503 / Virus Database: 269.15.25/1118 - Release Date: 11/8/2007 
> > 9:29 AM
> >
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Issue finding Worker using mod_jk ...

2007-11-07 Thread Kim Albee
We are having an issue when setting up integration between Apache 2.0.52 and
Tomcat 6.0.14...

Here are the mod_jk.log entries:

[Wed Nov 07 14:31:25 2007]  [jk_uri_worker_map.c (445)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Wed Nov 07 14:31:25 2007]  [jk_uri_worker_map.c (459)]: Attempting to map
URI '/'
[Wed Nov 07 14:31:25 2007]  [jk_uri_worker_map.c (473)]:
jk_uri_worker_map_t::map_uri_to_worker, Found an exact match ein1 -> /
[Wed Nov 07 14:31:25 2007]  [mod_jk.c (1689)]: Into handler r->proxyreq=0
r->handler=jakarta-servlet r->notes=158639048 worker=ein1
[Wed Nov 07 14:31:25 2007]  [jk_worker.c (90)]: Into wc_get_worker_for_name
ein1
[Wed Nov 07 14:31:25 2007]  [jk_worker.c (94)]: wc_get_worker_for_name, done
did not find a worker

The workers.properties file looks like this:

workers.tomcat_home=/usr/local/tomcat6
workers.java_home=$JAVA_HOME
ps=/
worker.list=ein1


worker.ein1.port=8109
worker.ein1.host=localhost
worker.ein1.type=ajp13
worker.ein1.info=Ajp13 forwarding
worker.ein1.debug=2
worker.ein1.tomcatId=ein1

We have the jvmRoute set in the Engine parameter for the server.xml in
tomcat as well...

Any suggestions on how to get this working?

thanks,
Kim :-)


Re: HELP -- need to get Basic Authentication working (.htaccess) with Apache/Tomcat 5 to prevent access

2007-09-19 Thread Kim Albee
M -
I'm confused.  we don't need SSL at all here... ??? clarification?

thanks,
Kim :-)

On 9/19/00, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
> http://www.apache-ssl.org/
>
> M--
> - Original Message -
> From: "Kim Albee" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Wednesday, September 19, 2007 2:22 PM
> Subject: HELP -- need to get Basic Authentication working (.htaccess) with
> Apache/Tomcat 5 to prevent access
>
>
> >I need to figure out a way to 'gate' access in a broad sense to the
> overall
> > website on a test server.  The site is all JSP, using Apache and Tomcat,
> > but
> > .htaccess doesn't work, as it appears that Apache hands off to Tomcat
> > prior
> > to doing the .htaccess check.
> >
> > Does anyone have a solution to this?  This is only for a test server, so
> > general access is limited.  So I just want users upon first accessing
> the
> > site to have to enter a username/password as a basic authentication to
> > view
> > the site...
> >
> > I need to get this done quickly, if it's possible.
> >
> > thanks,
> > Kim :-)
> >
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


HELP -- need to get Basic Authentication working (.htaccess) with Apache/Tomcat 5 to prevent access

2007-09-19 Thread Kim Albee
I need to figure out a way to 'gate' access in a broad sense to the overall
website on a test server.  The site is all JSP, using Apache and Tomcat, but
.htaccess doesn't work, as it appears that Apache hands off to Tomcat prior
to doing the .htaccess check.

Does anyone have a solution to this?  This is only for a test server, so
general access is limited.  So I just want users upon first accessing the
site to have to enter a username/password as a basic authentication to view
the site...

I need to get this done quickly, if it's possible.

thanks,
Kim :-)


Re: 20 Tips for Using Tomcat in Production

2007-08-21 Thread Kim Albee
In putting #1 into the JAVA_OPTS (which it appears that is the CATALINA_OPTS
for our implementation), it doesn't appear to work, as Tomcat doesn't
restart.  It could be our version -- which is currently 5.0.30.  please let
me know if there are other steps we need to take here as well.

thanks,
Kim :-)

On 8/21/07, Shane Witbeck <[EMAIL PROTECTED]> wrote:
>
> I thought my latest blog post would be of interest to the people on this
> list:
>
>
> http://www.digitalsanctum.com/2007/08/18/20-tips-for-using-tomcat-in-production/
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Does anyone have an approach to checking if Tomcat instance is UP?

2007-08-21 Thread Kim Albee
Everyone --

thanks for all the ideas and feedback.

We've attempted to take the approach with our health.jsp to check the major
functions in our application -- so if we can do a database request, that
checks a bunch of things - and returns without error lets us know that our
application is functioning.  We figured that since it was running through
Tomcat (as a .JSP) that tomcat would have to be up to have the page
respond... so we didn't worry about Tomcat itself.  Should we?

In this instance the health.jsp continued to work and report all was good,
while the main index.jsp got an OutOfMemory exception.

If I query the runtime memory, will that have caught the exception happening
in in the index.jsp?  So if I check the available memory or percentage and
it's lower than whtever threshhold we establish, then we could return a
'down' condition... would that be a solid way to catch any further memory
errors?

We use a monitoring tool that has the automated checks for the application
JVM and we can set different threshholds there -- but I've got to be able to
have the check run by the load balancer know that the system is down -- and
it does only a simple check against this JSP page, and then knows to fail
over -- so while we are working to establish threshhold alerts with our
monitoring application, we also want to ensure the load balancer fails over
accurately as well...

So all suggestions are welcome.

Kim :-)



On 8/21/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Kim,
>
> Kim Albee wrote:
> > The JSP does a call to a method in our app -- which if it runs, that
> means
> > the app is up and available -- the method does a simple query against
> the DB
> > and then returns a status of OK if the method runs through just fine.
> >
> > In our example from this weekend -- the health.jsp (which is the one
> that
> > does this check) ran and returned a good result, but the main
> > index.jspreturned the 500 error with the OutOfMemory exception.  So
> > that is what is confusing here.
>
> Two things are wrong:
>
> 1. Your "health check" is flawed ; otherwise, it would catch the fact
> that you have a "dead" server.
>
> 2. index.jsp is causing its own OOME, not reporting an existing condition.
>
> What does index.jsp do that health.jsp does not?
>
> - -chris
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGyuhJ9CaO5/Lv0PARAoq1AJ45SG2Qa1qF/4BEJAoFoWG7yv4mrACdERCp
> 6CJVZUI8DlpWojvHP0+HgBM=
> =sPT9
> -END PGP SIGNATURE-
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Does anyone have an approach to checking if Tomcat instance is UP?

2007-08-20 Thread Kim Albee
Tracy,

The JSP does a call to a method in our app -- which if it runs, that means
the app is up and available -- the method does a simple query against the DB
and then returns a status of OK if the method runs through just fine.

In our example from this weekend -- the health.jsp (which is the one that
does this check) ran and returned a good result, but the main
index.jspreturned the 500 error with the OutOfMemory exception.  So
that is what is
confusing here.

thanks,
Kim :-)

On 8/20/07, Nelson, Tracy M. <[EMAIL PROTECTED]> wrote:
>
> How is your JSP checking your application?  Are you issuing a request to
> your app and checking the HTTP status?  If so, why isn't it recognizing
> the 500?  Or is the JSP in your application which is failing?
>
> | -Original Message-
> | From: Kim Albee [mailto:[EMAIL PROTECTED]
> | Sent: Monday, 20 August, 2007 09:48
> |
> | Repeatedly, that JSP will work, but the site is down because Tomcat
> hit an
> | OutOfMemory exception -- but our JSP (which is very small) still runs
> | through it's process and returns that everything is happy.  Our
> | application
> | is up, but the 500 error is an OutOFMemory exception.
> -
> 
> The information contained in this message is confidential
> proprietary property of Nelnet, Inc. and its affiliated
> companies (Nelnet) and is intended for the recipient only.
> Any reproduction, forwarding, or copying without the express
> permission of Nelnet is strictly prohibited. If you have
> received this communication in error, please notify us
> immediately by replying to this e-mail.
> 
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Does anyone have an approach to checking if Tomcat instance is UP?

2007-08-20 Thread Kim Albee
Dan,

True enough, except then those queries would get held as a user session, and
we don't want that -- which is why we have a 'skinny' health.jsp that checks
our app -- and 'should' crash if there are any issues with tomcat or the
application -- but in this case, the main pages were getting out of memory
exceptions, but the skinny health.jsp was running just fine... which it
shouldn't be if there are failures in either Tomcat or the App.

We're using Application Monitor to monitor the app and tomcat JVM instances
as well as the health.jsp response.  But for the load balancer, which only
uses health.jsp, that's what needs to pick up the problem and report
accordingly so the load balancer will take that server out of the load
balanced cluster.

Kim :-)

On 8/20/07, Dan Armbrust <[EMAIL PROTECTED]> wrote:
>
> A simple cron job that points to a URL using lynx, and greps the
> output for what it should see will do the trick...
>
> Dan
>
> On 8/20/07, Kim Albee <[EMAIL PROTECTED]> wrote:
> > Hello --
> >
> > We have a load balanced situation, and we have a JSP that runs and
> checks
> > our application to ensure it's up and returns a string that the monitor
> app
> > is looking for if all is well.
> >
> > Repeatedly, that JSP will work, but the site is down because Tomcat hit
> an
> > OutOfMemory exception -- but our JSP (which is very small) still runs
> > through it's process and returns that everything is happy.  Our
> application
> > is up, but the 500 error is an OutOFMemory exception.
> >
> > We need a fool-proof way of knowing that the site is up or not,
> specifically
> > so the load balancer will know to stop routing traffic to a server when
> it's
> > down, and we can have people taking a look at what happened and bring
> the
> > server back online without loss of service from a user perspective.
> >
> > Any suggestions on how to accomplish this?
> >
> > thanks,
> > Kim :-)
> >
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Does anyone have an approach to checking if Tomcat instance is UP?

2007-08-20 Thread Kim Albee
Hello --

We have a load balanced situation, and we have a JSP that runs and checks
our application to ensure it's up and returns a string that the monitor app
is looking for if all is well.

Repeatedly, that JSP will work, but the site is down because Tomcat hit an
OutOfMemory exception -- but our JSP (which is very small) still runs
through it's process and returns that everything is happy.  Our application
is up, but the 500 error is an OutOFMemory exception.

We need a fool-proof way of knowing that the site is up or not, specifically
so the load balancer will know to stop routing traffic to a server when it's
down, and we can have people taking a look at what happened and bring the
server back online without loss of service from a user perspective.

Any suggestions on how to accomplish this?

thanks,
Kim :-)


Re: Issue with Changing sessionid values -- please help...

2007-01-15 Thread Kim Albee

Chris,

Thanks for the thinking -- I'm aware of the client IP issues with AOL, and
we checked that, but it appears that the IP is staying consistent for our
testing -- but our sessionid still gets changed... We are not doing URL
rewriting with sessionid, it's saving as a cookie... and we can see the
cookie too on the user machine we tested with.

Not sure how the sessionid is determined ... by Tomcat or Apache -- we have
multiple servers and session sharing occurring with Tomcat, so we are
appending the server ID (worker.id) to the sessionid variable, which Tomcat
manaages, but I'm not sure how Apache and/or Tomcat determine the
sessionid... do you know how that happens?

thanks,
Kim :-)

On 1/10/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:


-BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kim,

Kim Albee wrote:
> Client Config:
> AOL Version 9 web browser.

How are you managing sessions? Is the container doing it for you, or are
you doing them yourself? Cookies or URL rewriting? Is the server and/or
session configuration sensitive to the remote (client) IP address?

I notice you are using AOL, which plays games with the remote (client)
IP address, so if you are requiring the IP address of the user to stay
the same, it's not going to work for AOL users.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFpWtn9CaO5/Lv0PARAkF5AJ47hQ9Q19JpEY2nxHwTFzw/DCVA7gCghYzf
HbZlVI6Q0H7QHq/RKHEOQTE=
=jsKf
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Issue with Changing sessionid values -- please help...

2007-01-10 Thread Kim Albee

Server Configuration:
Linux Fedora Core  3, Apache 2.0, Tomcat 5.0.30 session sharing and load
balanced (with session persistence on a server) across two servers (not
using tomcat / JK load balancing).

Client Config:
AOL Version 9 web browser.

When users come in to the site and login, then move to a subdirectory at the
site, they appear there with a new Sessionid value, and so they lose their
logged in status, and have to login again.  it occurs over and over, and
users are not able to stay logged in to the site.

Question:  Why is this happening?  Is there a way to fix it?

Thanks -- any help or suggestions would be much appreciated.

Kim :-)


Re: Question with the Apache/Tomcat interface...

2006-10-30 Thread Kim Albee

Here's what we figured out the issue was, after MUCH research...
I'm providing it into the mailing list in case others have issues with
Apache and Tomcat connection getting the error:

Error connecting to tomcat. Tomcat is probably not started or is listening
on the wrong port. worker=p2 failed errno = 13

As it turns out errno=13 is a permissions error.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=161049 was found to be
the issue.

This could have been induced by an update that was put into effect when the
server lost power and rebooted.

To resolve, I disabled selinux. Details below:

Modified /etc/selinix/config to:
SELINUX=permissive
From
SELINUX=enforced

Executed "/usr/sbin/setenforce" 0 to put this into effect immediately. It
will persist across reboots.

Thanks for the responses...
Kim :-)

On 10/27/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:


> From: Kim Albee [mailto:[EMAIL PROTECTED] ]
> Subject: Re: Question with the Apache/Tomcat interface...
>
> > Can you connect to the ip and port specified with p2 from your
apache
> > machine with telnet?
>
> e have telnet disabled on the server, as it is not
> secure.

That's not what he was asking.  Can a telnet client on some other
machine connect to the IP address and port your've specified?  This
doesn't require a telnet server on the target system, it just verifies
that something is listening for connection requests on that IP/port
combination.

- Chuck


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

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Question with the Apache/Tomcat interface...

2006-10-27 Thread Kim Albee

Rainer,


What is your platform and what is errno 13 on your platform?


###how would I find out?  our platform is Fedora Core 3 for this server.


Can you confirm, that tomcat listens on the port your worker p2 is

configured for (using netstat -n or a similar tool)?


###when I run netstat, it provides a bunch of results that I'm not sure how
to interpret... do you know what I would look for here?


Can you connect to the ip and port specified with p2 from your apache

machine with telnet?


###we have telnet disabled on the server, as it is not secure.  the two
processes are running on the same server (apache and tomcat).

thanks,
Kim :-)


Question with the Apache/Tomcat interface...

2006-10-24 Thread Kim Albee

We are running Tomcat 5.0.30 and Apache 1.2 using mod_jk, with
workers.properties.

It's been working just fine, no problems.   But our ISP had a power outage,
that forced a reboot on the servers.  And now, one of the servers
Apache/Tomcat link appears to not work, so that server is still offline.
Again, we had no config changes, only a reboot forced on the server.

The error I get in the logs is:  Error connecting to tomcat. Tomcat is
probably not started or is listening on the wrong port. worker=p2 failed
errno = 13

But tomcat is starting up per our script as always -- again, nothing has
changed... it just seems very wierd.  we stop it, stop our app, start our
app, and start tomcat -- we get no errors from teh tomcat startup... we have
also tried stopping and restarting apache -- nothing seems to get past this
issue -- again -- used to work perfectly, and we have made zero config
changes.

HAs anyone run into this occurring?

thanks,
Kim :-)


Re: Issue with specifying Session timeout value

2006-10-11 Thread Kim Albee

thanks!  i think that was it.

Kim :-)

On 10/11/06, Gregor Schneider <[EMAIL PROTECTED]> wrote:


Hi Kim,

You can specify session-timeout either in the deplyment-descriptor of your
web-app (web.xml) or in the web.xml of Tomcat itself, which is located at
tomcat/conf/web.xml

I bet my bottom penny that in there you'll find an entry like

  
30
   

If you want to have the same session-timeout for all your web-apps,
specify
it here and remove it from your deployment-descriptors. If different
web-apps should timeout differently, remove it from conf/web.xml and
specify
it in your deployment-descriptors only.

Cheers

Greg
--
what's puzzlin' you, is the nature of my game




Issue with specifying Session timeout value

2006-10-11 Thread Kim Albee

Hello -- I set the web.xml to specify a 45 minute time out... but sessions
are still timing out at 30 minutes...

We are using tomcat 5.0.30, and have tomcat clustering between two servers.

The entry that I placed in the web.xml file is:




   45



Does anyone see anything else that needs to be done, or was this done
incorrectly?  We have this set for both servers in the web.xml file.  But it
doesn't appear to be working.

thanks,
Kim :-)


NEED HELP: WARNING: Internal error flushing the buffer in release()

2006-08-24 Thread Kim Albee

We are receiving this error in the catalina.out logs.  here's the full log
message:

Aug 24, 2006 4:09:15 PM org.apache.jasper.runtime.PageContextImpl release
WARNING: Internal error flushing the buffer in release()

We get this error repeatedly.  We are running Tomcat 5.0.30.

Is there a way to correct this?  It doesn't appear to affect the functioning
of the site, but these messages fill the logfiles, and it would be great to
resolve it if possible.

thanks,
Kim :-)


Re: Session hijacking with Tomcat/Myfaces - unable to fix it

2006-08-09 Thread Kim Albee

It's a fundamentally bad security scheme to use the session-ID as the
identifier for your users.  Might be straight forward, but architecturally a
bad choice if you *really* want a secure area.

Kim :-)

On 8/9/06, Tomas Hulek <[EMAIL PROTECTED]> wrote:


The default Tomcat installation is prone to session hijacking. I would
appreciate help how to fix it.

The problem is that the session-id generated under HTTP (eg. for any JSF
page) is caried over to authenticated confidential pages under HTTPS.

Thus the session ID can be easily sniffed under HTTP, then misused after
user logs-in under HTTPS.

I believe it can be considered as a serious security bug.

Scenario:

1) Tomcat and JSF, using Apache MyFaces.

2) A single application (context), using JSF pages

3) Some pages are public, and Faces servlet requests session ID on the
first hit

4) Some pages are only accessible under HTTPS after authetication, as
defined in web.xml:

  

  Secret part
  /secret/*


  secret_role


  CONFIDENTIAL

  

5) Form-based authentication is used for the login (again, defined in
web.xml).

6) The user goes to the public part of the aplication, gets a session ID
(under HTTP)

7) The user goes to a confidential URL, logging-in successfully. The same
session ID is retained!!!

8) Anyone who knows the session ID generated in step 6 can reach the
confidential URL.

We have not found any straightforward way of making Tomcat regenerate the
session ID once user swichtes to HTTPS. We tried many approaches, and all
of them break some part of the JSF application.


Thank you for your help,


Tomas Hulek


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: apache not talking to tomcat w/ mod_jk

2006-07-26 Thread Kim Albee

have you looked in the mod_jk.log?  is it getting created, and is it saying
anything?  you can set the debug level to 4 in the workers.properties file
and then see what it's saying about connecting to tomcat.

Kim :-)

On 7/26/06, Ian Caswell <[EMAIL PROTECTED]> wrote:


It's in httpd.conf, and i don't see any errors in
the httpd logs about it, but i don't know how to
verify it's loaded.  Is there a way for apache
to show loaded modules?

--- Kim Albee <[EMAIL PROTECTED]> wrote:

> probably something you've made sure to do, but are
> you loading mod_jk.so in
> the httpd.conf?
>
> Kim :-)
>
> On 7/26/06, Ian Caswell <[EMAIL PROTECTED]> wrote:
> >
> > ##Relevant entries from /etc/httpd/conf/httpd.conf
> > LoadModule jk_module modules/mod_jk.so
> > Include conf.d/*.conf



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: apache not talking to tomcat w/ mod_jk

2006-07-26 Thread Kim Albee

probably something you've made sure to do, but are you loading mod_jk.so in
the httpd.conf?

Kim :-)

On 7/26/06, Ian Caswell <[EMAIL PROTECTED]> wrote:


I'm an OS guy, so applications are new to me.
Any help is appreciated.

I'm trying to integrate apache and tomcat w/ mod_jk.
Regular html pages show up fine, but jsp pages do not.
I don't think apache is talking to tomcat like it
should.
I'm not sure where the problem lies; netstat -an shows
tomcat listening on 8009, but apache isn't connected.
Can anyone help me find my issue?  Firewall is
disabled, and /etc/hosts.allow and .deny are
empty.  My hunch is an incorrect config file.

Note:  my real hostname/domain has been replaced by
myhost.mydomain to provide security and not confuse
where i have localhost.localdomain in the configs.

I've looked at following logs, but not found anything
suspicious.
/opt/tomcat/logs/*
/etc/httpd/logs/*
/home/tomcat/myhost.mydomain/broomfield/logs/*

(irrelevant ports removed)
Proto Recv-Q Send-Q Local Address  Foreign Address
State
tcp   0  0  :::127.0.0.1:8005 :::*LISTEN
tcp   0  0  :::8009   :::*LISTEN
tcp   0  0  :::80 :::*LISTEN

Setup:
RHAS 4
apache 2.0.52-22 (redhat rpm)
ibm-java2-i386-sdk-5.0-2.0 (ibm rpm)
tomcat 5.5.17 (built from src)
mod_jk 1.2.15 (built from src)

[EMAIL PROTECTED] conf]# cat /opt/tomcat/conf/server.xml



   
   



   

   
 
 
   






[EMAIL PROTECTED] conf]# cat
/etc/httpd/conf.d/mod_jk.conf
JkWorkersFile "/etc/httpd/conf/workers.properties"
JkLogFile "/etc/httpd/logs/mod_jk.log"
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"


[EMAIL PROTECTED] conf]# cat
/etc/httpd/conf/workers.properties
# workers.properties - ajp13
workers.tomcat_home=/opt/tomcat
workers.java_home=/opt/ibm/java2-i386-50
ps=/
#
# List workers
worker.list=wrkr
#
# Define wrkr
worker.wrkr.port=8009
worker.wrkr.host=127.0.0.1
worker.wrkr.type=ajp13
worker.wrkr.cachesize=10
worker.wrkr.cache_timeout=600
worker.wrkr.socket_timeout=300

[EMAIL PROTECTED] conf]# cat /etc/hosts
127.0.0.1   localhost.localdomain
localhost
192.168.1.10myhost.mydomain  myhost

##Relevant entries from /etc/httpd/conf/httpd.conf
LoadModule jk_module modules/mod_jk.so
Include conf.d/*.conf
NameVirtualHost 192.168.1.10:80


   ServerAdmin [EMAIL PROTECTED]
   ServerName myhost.mydomain
   DocumentRoot
/home/tomcat/webapps/myhost.mydomain/broomfield
   ErrorLog
/home/tomcat/webapps/myhost.mydomain/logs/error_log
   CustomLog
/home/tomcat/webapps/myhost.mydomain/logs/access_log
common
   JkMount /*.jsp wrkr
   JkMount /servlet/* wrkr
   # Deny direct access to WEB-INF
   
   AllowOverride None
   deny from all
   




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat Crashing -- how do I read the resulting hs_err_pid11598.log?

2006-07-21 Thread Kim Albee

Martin,

That's all interesting, but we're not running Fedora Core 4 -- we are
running Fedora Core 3.  Secondly, I've got this identical environment
running in production without incident. This environment on this server
"used" to run without incident until we had to replace the memory, and now
it crashes -- same config I've got running fine in other places -- which is
why I'm trying to figure out what's different.  What I know is different is
that this server has 4GB of RAM when all of our other servers have 2GB of
RAM, so that is a difference.

Otherwise, they run the same J2sdk1.5.0_03, all run Tomcat 5.0.30, and all
run the same version of our application.  That's why I was hoping to gain
some insight from the PID file that got thrown to see what might be causing
the issues -- do you have any suggestions on how to debug this environment
to get at the root cause here?

thanks,
Kim :-)

On 7/21/06, Martin Gainty <[EMAIL PROTECTED]> wrote:


Kim-

Did you see this catch this bit of legalese in tiny print
Fedora Core 4 users are advised not to use the Java RPM provided by Sun.
It contains Provides that conflict with names used in packages provided as
part of Fedora Core 4. Because of this, Sun Java might disappear from an
installed system during package upgrade operations. Fedora Core 4 users
should use either the RPM from jpackage.org or manually install the Sun
Java tarball into /opt. Sun Java 1.5+ is recommended for stability
purposes.

And also this 
These packages have been modified in Fedora to remove proprietary software
dependencies and to make use of GCJ's ahead-of-time compilation feature

Apparently there exists some 'dependency' not only on package naming but
another depdenency on their ahead-of-time compiler..
Play it safe download from
http://www.city-fan.org/tips/JpackageJava

and install the JVM from there..

HTH,
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 message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: "Kim Albee" <[EMAIL PROTECTED]>
To: "Tomcat Users List" ; "Martin Gainty" <
[EMAIL PROTECTED]>
Sent: Friday, July 21, 2006 5:17 PM
Subject: Re: Tomcat Crashing -- how do I read the resulting
hs_err_pid11598.log?


> OS = Fedora Core 3 Linux with all updates from yum.
> Java version = 1.5.0_03
> Tomcat version 5.0.30
> ok -- here is the jvm.cfg:
> #
> # @(#)jvm.cfg   1.8 04/02/02
> #
> # Copyright 2003 Sun Microsystems, Inc. All rights reserved.
> # SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
> #
> #
> #
> #
> # List of JVMs that can be used as an option to java, javac, etc.
> # Order is important -- first in this list is the default JVM.
> # NOTE that this both this file and its format are UNSUPPORTED and
> # WILL GO AWAY in a future release.
> #
> # You may also select a JVM in an arbitrary location with the
> # "-XXaltjvm=" option, but that too is unsupported
> # and may not be available in a future release.
> #
> -client IF_SERVER_CLASS -server
> -server KNOWN
> -hotspot ALIASED_TO -client
> -classic WARN
> -native ERROR
> -green ERROR
>
>
> On 7/21/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>>
>> the hs_err_pid*.log is reminiscent of the Command and Control buttons
on
>> the bridge of  the Starship Enterprise
>> In other words you cant tell what the different colored buttons mean
>> unless you read the 1000 page manual beforehand
>> (or in our case can talk to James Gosling!)
>>
>> so here goes..
>> siginfo: ExceptionCode=0xc005, reading address 0x0004
>>
>> Registers:
>>
>> /*Generally the AX always has the returned code from the last
operation*/
>> EAX=0x, EBX=0x0764d168, ECX=0x07e04f1c, EDX=0x0849f7cc
>> ESP=0x0849f7d4, EBP=0x0849f838, ESI=0x07e04f1c, EDI=0x
>> EIP=0x6d0e75d9, EFLAGS=0x00010246
>>
>> /*If you have a bright map showing all the locations of the variables
and
>> their respective memory locations you could map the memory to the
variable*/
>> Top of Stack: (sp=0x0849f7d4)
>> 0x0849f7d4: 0764d168 07e04f1c  6d0c7a0d
>> 0x0849f7e4: 20ae4238 20ae4238 07e04e60 0764d168
>> 0x0849f7f4: 0200  008d00a2 0145381a
>> 0x0849f804: 00a2 008d 2386fce0 
>> 0x0849f814: 04de5d15  23870238 23870390
>> 0x0849f824: 04d98d4a 0849f7e4 0849fb64 6d0f2eb8
>> 0x

Re: Tomcat Crashing -- how do I read the resulting hs_err_pid11598.log?

2006-07-21 Thread Kim Albee

OS = Fedora Core 3 Linux with all updates from yum.
Java version = 1.5.0_03
Tomcat version 5.0.30
ok -- here is the jvm.cfg:
#
# @(#)jvm.cfg   1.8 04/02/02
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
#
#
#
#
# List of JVMs that can be used as an option to java, javac, etc.
# Order is important -- first in this list is the default JVM.
# NOTE that this both this file and its format are UNSUPPORTED and
# WILL GO AWAY in a future release.
#
# You may also select a JVM in an arbitrary location with the
# "-XXaltjvm=" option, but that too is unsupported
# and may not be available in a future release.
#
-client IF_SERVER_CLASS -server
-server KNOWN
-hotspot ALIASED_TO -client
-classic WARN
-native ERROR
-green ERROR


On 7/21/06, Martin Gainty <[EMAIL PROTECTED]> wrote:


the hs_err_pid*.log is reminiscent of the Command and Control buttons on
the bridge of  the Starship Enterprise
In other words you cant tell what the different colored buttons mean
unless you read the 1000 page manual beforehand
(or in our case can talk to James Gosling!)

so here goes..
siginfo: ExceptionCode=0xc005, reading address 0x0004

Registers:

/*Generally the AX always has the returned code from the last operation*/
EAX=0x, EBX=0x0764d168, ECX=0x07e04f1c, EDX=0x0849f7cc
ESP=0x0849f7d4, EBP=0x0849f838, ESI=0x07e04f1c, EDI=0x
EIP=0x6d0e75d9, EFLAGS=0x00010246

/*If you have a bright map showing all the locations of the variables and
their respective memory locations you could map the memory to the variable*/
Top of Stack: (sp=0x0849f7d4)
0x0849f7d4: 0764d168 07e04f1c  6d0c7a0d
0x0849f7e4: 20ae4238 20ae4238 07e04e60 0764d168
0x0849f7f4: 0200  008d00a2 0145381a
0x0849f804: 00a2 008d 2386fce0 
0x0849f814: 04de5d15  23870238 23870390
0x0849f824: 04d98d4a 0849f7e4 0849fb64 6d0f2eb8
0x0849f834:  0849f850 04e00192 01f7
0x0849f844: 0849f85c 0849f858 2386fc70 0849f878

/*The last address of the last executed operation...*/
Instructions: (pc=0x6d0e75d9)
0x6d0e75c9: 56 8b 0e ff 51 68 85 c0 7d 06 5f 33 c0 5e 59 c3
0x6d0e75d9: 8b 47 04 85 c0 74 15 8b 0d a8 fa 12 6d 8b 16 51

/*Most important is sp which is Stack Pointer*/
Stack: [0x083a,0x084a), sp=0x0849f7d4, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native
code)

/*The topmost module indicates  the offending Library..I would check that
(awt.dll) version correct AND corresponds with java -version */
C [awt.dll+0xe75d9]
J sun.awt.windows.WComponentPeer.nativeHandleEvent(Ljava/awt/AWTEvent;)V
J sun.awt.windows.WComponentPeer.handleEvent(Ljava/awt/AWTEvent;)V
J java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V
J java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V
J
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(ILjava/awt/Component;)Z
J
java.awt.EventDispatchThread.pumpEventsForHierarchy
(ILjava/awt/Conditional;Ljava/awt/Component;)V
v ~RuntimeStub::alignment_frame_return Runtime1 stub
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub
V [jvm.dll+0x8176e]
V [jvm.dll+0xd481d]
V [jvm.dll+0x8163f]
V [jvm.dll+0x8139c]
V [jvm.dll+0x9c05c]
V [jvm.dll+0xfeece]
V [jvm.dll+0xfee9c]
C [msvcrt.dll+0x27fb8]

/*muck with this at your own peril!*/
C [kernel32.dll+0x1d28e]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)

/*Looks as if a component listener was attempting to handle a
native(meaning an OS call) event ..*/
/*That 0x0004 looks suspiciously low..(usually low memory is reserved
for System only calls)*/
J sun.awt.windows.WComponentPeer.nativeHandleEvent(Ljava/awt/AWTEvent;)siginfo:
ExceptionCode=0xc005, reading address 0x0004

Most of these errors are resolved by clean install on other words version
1.0 Blah works with version 1.0 BlahBlah
but Version 1.1 Blah doesnt work with Version 1.0 BlahBlah
As you can imagine debugging these scenarios can get very hairy in a hurry
so the more information the better..that said
can we see your jvm.cfg ???
what version OS are you running?
what version Java?
what version Tomcat?

M-
*
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 message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: "Kim Albee" <[EMAIL PROTECTED]>
To: "Tomcat Users List" ; "Martin Gainty" <
[EMAIL PROTECTED]>
Sent: Friday, July 21, 2006 

Re: Tomcat Crashing -- how do I read the resulting hs_err_pid11598.log?

2006-07-21 Thread Kim Albee

Martin --

How do I tell when the memory allocation happens?  what do I look for in the
logfiles?  I sent the output that was put into the catalina.out file with
the original post -- there is nothing prior to that as far as errors in
processing in the catalina.out file.

thanks,
Kim :-)

On 7/20/06, Martin Gainty <[EMAIL PROTECTED]> wrote:


Good Morning Darryl-

make certain your HW is rock solid
then I would inquire
When does the memory allocation happen (e.g. at Tomcat startup. at webapp
init, when processing big and bulky PDF's)
check the logs at $TOMCAT_HOME/logs
If its tomcat crashing (misconfigured server.xml or JVM bug check
jakarta_service_MMDD.log)
If its a genuine error (thrown to stderr) look at stderr_MMDD.log
If its webapp specific check the stdout_MMDD.log AND/OR catalina.out

M-
*
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 message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: "Darryl Miles" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Thursday, July 20, 2006 7:31 AM
Subject: Re: Tomcat Crashing -- how do I read the resulting
hs_err_pid11598.log?


> Kim Albee wrote:
>> The box has 4GB of RAM on it, and has experienced a memory failure.  We
>> tested the physical RAM on the server, and it failed 2 extended memory
>> tests, so we replaced the RAM.  We also saw that the swap space was
only at
>> 1.5GB, so we upped that to 6.5 GB.
>
> For most real-time client serving applications using any swap space to
> service any part of those requests is counter productive.
>
> It only makes sense if you are using the swap as some form of data
> backing store, but then you have to ask why not just leave it in a file
> anyway.  The most natural backing store.
>
>
>> so my question is:  how do I read/interpret the hs_err_pid11598.log
file so
>> I can figure out what is happening here?
>
> First have you found the file ?  Its usualy in the current working
> directory of the JVM.
>
> find / -name "hs_err_pid11598.log" 2>/dev/null
>
>
> Darryl
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Tomcat Crashing -- how do I read the resulting hs_err_pid11598.log?

2006-07-21 Thread Kim Albee

Darryl,

Yes I have the PID error file -- I just need to know how to read it. What
was put into the catalina.out file is what I included in the original post
-- I do have the PID error files also.

Do you know how I would read them?

Thanks,
Kim :-)

On 7/20/06, Darryl Miles <[EMAIL PROTECTED]> wrote:


Kim Albee wrote:
> The box has 4GB of RAM on it, and has experienced a memory failure.  We
> tested the physical RAM on the server, and it failed 2 extended memory
> tests, so we replaced the RAM.  We also saw that the swap space was only
at
> 1.5GB, so we upped that to 6.5 GB.

For most real-time client serving applications using any swap space to
service any part of those requests is counter productive.

It only makes sense if you are using the swap as some form of data
backing store, but then you have to ask why not just leave it in a file
anyway.  The most natural backing store.


> so my question is:  how do I read/interpret the hs_err_pid11598.log file
so
> I can figure out what is happening here?

First have you found the file ?  Its usualy in the current working
directory of the JVM.

find / -name "hs_err_pid11598.log" 2>/dev/null


Darryl

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Tomcat Crashing -- how do I read the resulting hs_err_pid11598.log?

2006-07-19 Thread Kim Albee

I'm running Fedora Core 3, Tomcat 5.0.30, in a two server environment, where
we have an F5 load balancer and are doing session sharing at the Tomcat
level.

The box has 4GB of RAM on it, and has experienced a memory failure.  We
tested the physical RAM on the server, and it failed 2 extended memory
tests, so we replaced the RAM.  We also saw that the swap space was only at
1.5GB, so we upped that to 6.5 GB.

Prior to this issue with memory, Tomcat ran just fine without error.

Now, Tomcat runs for about 30-45 minutes and crashes.

The catalina.out file has this:
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xb79d032a, pid=11598, tid=1886555056
#
# Java VM: Java HotSpot(TM) Server VM (1.5.0_03-b07 mixed mode)
# Problematic frame:
# V  [libjvm.so+0x3b532a]
#
# An error report file with more information is saved as hs_err_pid11598.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

so my question is:  how do I read/interpret the hs_err_pid11598.log file so
I can figure out what is happening here?

thanks,
Kim :-)


Re: downloaded JK binaries for Linux - which to use? workers or prefork?

2006-06-14 Thread Kim Albee

yes -- but what is the difference?  i'm running Fedora Core 3 on a single
processor Linux box, running Apache 2.x

what does prefork mean? vs. worker?

thanks,
Kim :-)

On 6/14/06, David Rees <[EMAIL PROTECTED]> wrote:


On 6/14/06, Kim Albee <[EMAIL PROTECTED]> wrote:
> I need some help -- I'm downloading the JK binaries to get my tomcat
> installation working with Apache, and when I go to download the jk
binaries
> for linux/apache, I see the two files:
>
> jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so
> jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so
>
> I'm assuming that i change the names of one of these to mod_jk.so and
place
> it into the libexec directory for apache, but which one do I
use?  what's
> the difference?  the Installation and FAQs don't appear to address
this...

The name depends on which MPM your Apache is compiled with. Most
likely it's the prefork MPM as that is default, but could be the
worker MPM.

-Dave

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




downloaded JK binaries for Linux - which to use? workers or prefork?

2006-06-14 Thread Kim Albee

I need some help -- I'm downloading the JK binaries to get my tomcat
installation working with Apache, and when I go to download the jk binaries
for linux/apache, I see the two files:

jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so
jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so

I'm assuming that i change the names of one of these to mod_jk.so and place
it into the libexec directory for apache, but which one do I use?  what's
the difference?  the Installation and FAQs don't appear to address this...

thanks,
Kim :-)


Way to debug ports Tomcat is listening on?

2006-06-08 Thread Kim Albee
This server's Apache/Tomcat connector used to work just fine.  Now it has
stopped working and I get this error... I haven't changed anything in the
config, but am wondering how I troubleshoot/debug this issue.

I continually get this error:

[jk_ajp_common.c (720)]: Error connecting to tomcat. Tomcat is probably not
started or is listening on the wrong host/port (192.168.0.101:8009). Failed
errno = 13

My server.xml file is configured as:


  








  

  



  



My workers.properties file has the following:

worker.p1.port=8009
worker.p1.host=w1
worker.p1.type=ajp13
worker.p1.info=Ajp13 forwarding
worker.p1.debug=0
worker.p1.tomcatId=p1

And my VirtualHost setting has the "JkMount / p1" and JkMount /* p1

My /etc/hosts file has entries for w1 that point to the local private
address, as follows:

192.168.0.101 w1 localhost

How do I debug this and get it back working?

Thanks,
Kim :-)





 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]