RE: Need a way to identify tomcat instances at run-time

2007-08-24 Thread Nelson, Tracy M.
| From: Brian Barnett [mailto:[EMAIL PROTECTED]
| Sent: Friday, 24 August, 2007 11:54
| 
| I have a struts-based application running on multiple tomcat
instances,
| load
| balanced by a hardware load balancer, i.e., no Apache Web Server. I
need a
| way at run-time to know which tomcat instance it is. Is there a way to
| access info in the server.xml or context.xml file at run-time? Can I
| specify
| some arbitrary value in either of those xml files that would be
available
| at
| run-time?

You could pass something as an init-param to your servlets.  Or you can
get the server name from the HttpRequest.  If you're not deploying each
instance from a common war file, you could stick a simple config file in
your WEB-INF directory with some kind of instance name or ID.
 

-

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-21 Thread Nelson, Tracy M.
| From: Kim Albee [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 21 August, 2007 12:49
| 
| 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.

I'm not entirely sure how feasible this is, but can you have an output
filter or valve catch (or at least note) the 500 status?  If so, then
maybe it could log an error to the database.  Since you said your status
page was able to hit the database even after the app crashed, you should
hopefully be able to retrieve the error indication.
-

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 Nelson, Tracy M.
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: Possible Tomcat + Javascript + Internet Explorer Problem

2007-08-20 Thread Nelson, Tracy M.

| From: redminator [mailto:[EMAIL PROTECTED]
| Sent: Monday, 20 August, 2007 02:50
| 
| I have some javascript code that creates a slide menu. It works fine
both

| in IE and Mozilla.
| 
| But, when I integrate that code in a page which I open from tomcat,
the
| code
| doesn't work anymore when I use IE. Still works fine with Mozila. 

How are you integrating the code?  Is a standalone script, or are you
embedding the code directly in the page?

When you say it doesn't work, what does that mean?  Are you getting an
error?  Or does your menu just not show up?  Have you tried running the
page through a debugger?
-

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: Tomcat Issue with HPUX

2007-08-10 Thread Nelson, Tracy M.
| From: pkt [mailto:[EMAIL PROTECTED]
| Sent: Friday, 10 August, 2007 00:38
| 
| One option is that to increase the max thread per process limit of HP
to
| high value, but administrators are not very convinced with this idea
| 
| Any pointers on this issue.

Have your admins check out the Java Out-of-Box tool for HP-UX (see
http://www.hp.com/products1/unix/java/?jumpid=go/java).  If you increase
max_thread_proc, don't forget about nkthreads.
-

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: Installing Tomcat on Linux

2007-08-06 Thread Nelson, Tracy M.
| From: Vigorito, Nicholas E. [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 02 August, 2007 15:49
| 
| Here are some quotes from this person:
| 
| I would never install open source from binaries on a machine I did not
| want someone to break into.

Cool, just get a copy of whatever tools he uses to scan the sources of
the packages he installs.  I mean, if he builds everything from source
and only from sources he trusts, then he must have some kind of tools
for detecting back doors and other exploits, right?  Or at least buffer
overflows or unsafe privilege changes, right?  Right?

Go ahead, ask him!
-

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: Tomcat with 8 GB memory

2007-07-30 Thread Nelson, Tracy M.
| From: Christopher Schultz [mailto:[EMAIL PROTECTED]
| Sent: Friday, 27 July, 2007 18:25
| 
| First of all, no home user ever bought an 8-bit machine.

Oh, I'll bet there are a ton of former Apple ][, TRS-80 and Commodore
Pet/64/VIC owners who would beg to differ...
 

-

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: Tomcat and cookies caching issue

2007-07-27 Thread Nelson, Tracy M.
| From: Riccardo [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 26 July, 2007 16:10
| 
| Maybe I should define some headers management rule within the webapp..
| I haven't measured the time exactly, but i find quite interesting that
| this caching effect lasts around 2 minutes, than disappears. I wonder
| if it would be possible to set this time to 0 through some
| parameter...

Do you have the CacheRoot directive set in your proxy configuration?
If so, try removing it (make sure that ProxyRequests is set to ON).
It could be that the proxy server is caching the results of your request
and returning them to you.  Or you could try adding a NoCache
http://x.y.z.w/reporting/; line to your config.  Either way, this should
eliminate the possibility that the proxy is returning a cached copy of
the report.
-

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: problem I don't know how to summarize for this subject line

2007-07-12 Thread Nelson, Tracy M.
| From: Steve Sweet [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, 11 July, 2007 15:02
| 
| The original developer does
| not experience this on his system which limits his ability to help me
| figure it out.
| 
| I am not a complete newbie with Tomcat but my experience to date has
| been pretty straightforward.  Does anything about this ring any bells
to
| anyone?  Even any suggestions about where to look would be
appreciated.

Ask the other developer for a copy of his /etc/hosts file.  He may have
an entry for 'mydomain.org' or something that causes his references to
succeed.  Maybe it's misspelled in both his hosts file and his code, so
it works OK on his box.
-

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: Spring+hibernate business logic accross multiple webapps

2007-07-10 Thread Nelson, Tracy M.
| From: axelspin [mailto:[EMAIL PROTECTED]
| Sent: Monday, 09 July, 2007 13:12
| 
| But how about performance..
| 
| is it better to have multiple instances of hibernate sessionFactory
| Objects
| (one each web app) or to use an http call for each db query?
| 
| Maybe transactions are handled better with a centralized datasource access
| throug ws.. what do you think?

It sounds to me like you need to refactor your apps.  Your portlets should use 
a business delegate to request your business logic functions.  The business 
delegate should in turn call a session façade to perform the requested actions. 
 This provides a clean separation between your application and business logic, 
and you can experiment with the linkage between the BD and SF to improve 
performance (maybe start with web services, as they're likely to be the least 
troublesome, then move to RMI if the performance isn't good enough).
-

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: Keeping busy site responsive

2007-06-28 Thread Nelson, Tracy M.
| From: Parham, Clinton [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 28 June, 2007 07:34
| 
| Brantley: I like the idea but the part about 'staggering to a halt
| issuing redirects' is a concern. If this were to happen, then even
users
| with established sessions would have trouble getting through - right?
I
| think the same applies to Tracey's suggestion.

If you set your threshold appropriately (based on your service rate) and
go with my second suggestion (really phrased more as a question) of
returning a 503 (Server Busy) status instead of issuing a redirect, I
think you should be fine and it would require the least amount of work
(I haven't actually looked at Brantley's code, but it sounds pretty
straightforward).  Although I do like Christopher's gatekeeper
solution, as it could probably be leveraged to provide similar services
for other applications as well.  It could also be implemented as a
simple CGI script, so you wouldn't have to have two machines (or even
two instances of TC).  If your front end is Apache with mod_perl
configured, a pleasant evening playing with IPC would probably produce a
decent solution
-

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: Keeping busy site responsive

2007-06-27 Thread Nelson, Tracy M.
| From: Parham, Clinton [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, 27 June, 2007 08:41
| 
| How do I keep my web application responsive for users already half way
| through an enrollment process when traffic volume is high?

I'd recommend setting a registration-in-progress session cookie.
Then, add a check on the first page of your process; obviously anyone
requesting pages 2-5 already has completed page 1 (I assume you have
some kind of check that assures this, and redirects them to page 1 if
they haven't).  If the load is low, set the cookie and continue
processing; otherwise redirect to the Server busy -- try again later
page.
 
Not being a Tomcat expert, I don't know how you can get the current
session count, but I'm guessing it'd be more efficient to set some kind
of indicator, and use that instead of re-querying it with every request.
Either have a separate thread that re-checks every N minutes, or just
keep a request counter of some sort and re-check every N requests.
Hmmm, I seem to be pointing out the obvious now, so I'll be quiet
-

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: Where to find session cookies

2007-06-27 Thread Nelson, Tracy M.
| From: lightbulb432 [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 26 June, 2007 14:13
| 
| How can I configure Tomcat to use permanent cookies as opposed to
session
| cookies? One of the reasons I'd like to know is to see the behavior of
| method isNew() of HttpSession, which I can do if I'm able to disable
| cookies. As the Javadoc for HttpSession says:
| 
| A servlet should be able to handle cases in which the client does not
| choose to join a session, such as when cookies are intentionally
turned
| off.

I think the only thing that differentiates between session and
persistent cookies is the presence of an expiration date.  No date ==
session cookie, future date == persistent cookie.

To check the behavior you're curious about, why not just disable cookies
in your browser?  ISTR that TC then just sets the session ID explicitly
in the query string of the URL.
-

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: Keeping busy site responsive

2007-06-27 Thread Nelson, Tracy M.
| From: Brantley Hobbs [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, 27 June, 2007 12:37
| 
| This approach seems to work well (at least until the box staggers to a
| halt simply issuing redirects).

Just out of curiosity, do you think it would help in those situations to
issue a 503 instead of a 307?  Or do you redirect to another machine for
the busy page?
-

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: Encrypt Tomcat 4.1 log and log4j.properties log with MD5

2007-06-20 Thread Nelson, Tracy M.
| From: Yulius [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, 20 June, 2007 05:07
| 
|   I'm currently need to do the encryption towards the log files that
has
| been created by the webserver and the webapplication, so that only
those
| who has the password to decrypt the log files can read them.

Sounds like you need a custom appender.  Write one that takes the log
message and encrypts it and writes it to your file.  N.B. that you'll be
encrypting on a message-by-message basis, so that may affect your choice
of encryption algorithm (i.e., some methods may not work if a user tries
to decrypt an entire file as a single unit).

An easier approach might be to write your encrypting logger as a filter
and have it take its input from a named pipe.  Might be a little more
work keeping things coordinated (your app may block when logging a
message if your logger isn't running), but nothing too hard.
-

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: Design

2007-06-19 Thread Nelson, Tracy M.
| From: Pierre Goupil [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 19 June, 2007 05:59
| 
| And, no, definitely you don't need EJB : that's a too heavy-weight
| technology for such a project. And the learning curve is far more
longer.

Actually, with annotations and a supportive IDE (NetBeans, and probably
Eclipse as well), EJBs aren't too terribly difficult anymore.  You don't
have to worry about generating stubs and keeping your deployment
descriptors in sync anymore, pretty much all you have to do is specify
whether you want local and/or remote access.  They're not painless, but
they are friendlier.

That said, I agree that they're too heavyweight for this application.
I'd stick with Struts for handling the form submissions, and look into
Tomcat's connection pooling if database access is required.  This kind
of app wouldn't take an experienced web developer more than a couple of
days to write, after the requirements were nailed down.  It actually
sounds like an excellent extended example for learning web app
development.
-

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: Share one singleton across webapps

2007-06-18 Thread Nelson, Tracy M.
| From: Kevin Wilhelm [mailto:[EMAIL PROTECTED]
| Sent: Monday, 18 June, 2007 08:59
| 
| Should I use Ant for deploying then? But I won't be able to debug
| the webapps from within my IDE anymore since I am avoiding Eclipse's
| deployment mechanisms.

You should still be able to use Eclipse, just make sure Tomcat starts up
with a debug port, and the Eclipse debugger should be able to attach to
it.  That's what I had to do with JBoss way back when, and it worked
just fine.  You may have to configure it, and it be as easy as just
clicking on a Debug project menu item, but it's pretty easy (or was, I
haven't used Eclipse for a few years now).
-

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: Accessing a class file under WEB-INF/classes from JSP

2007-05-25 Thread Nelson, Tracy M.
| From: Rajiv M [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, 23 May, 2007 13:41
| 
| Of course, adding package solves all the problems. But what can be
| done to modify 3rd party classes already in WEB-INF/classes prior to
| this Sun restriction...

This is probably too simple, but can you simply create a directory (say
WEB-INF/classes/no/package/specified) and put all those third-party
classes there and then refer to them within your code as
'no.package.specified.foo'?

I don't know if the package name is part of the compiled class, and
whether the classload checks it.
-

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: Error trapping

2007-05-18 Thread Nelson, Tracy M.
I actually have a note about this exact thing.  Check here:
http://randomcoolzip.blogspot.com/2006/02/hack-of-day.html

| -Original Message-
| From: David kerber [mailto:[EMAIL PROTECTED]
| Sent: Friday, 18 May, 2007 12:47
| To: users@tomcat.apache.org
| Subject: Error trapping
| 
| In my plain .java files, is there a way of programmatically grabbing
| what method is executing?  I already grab the class for logging in the
| catch block, but can I find the method without going through too many
| gyrations?  Currently, I just hard-code the method name in the text that
| I log along with the error message.
| 
| D
| 
| 
| 
| -
| To start a new topic, e-mail: users@tomcat.apache.org
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]

-

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: Error trapping

2007-05-18 Thread Nelson, Tracy M.
getMethodName() *is* the utility routine.  I intended to stick it in the
base class for all of our business objects, so it would always be available.
If you're going to use it extensively, you might want to put it in a utility
class as a static method.  Either way, you can just concatenate the return
value with your error message.  Something like:

log.error(Method ' + getMethodName() + ' failed due to:  +
err.getMessage());

Share and enjoy!

| -Original Message-
| From: David kerber [mailto:[EMAIL PROTECTED]
| Sent: Friday, 18 May, 2007 14:02
| To: Tomcat Users List
| Subject: Re: Error trapping
| 
| So how do I use that getMethodName code?  Can I make a utility routine
| that I can call from my catch block, and call it with the Exception
| object (so I can put the function call inline with the error report
| string), or do I have to embed the 3 functional lines of code into  my
| catch block?
-

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: Remote EJB calls from Tomcat 5 to Weblogic 8.1 appear to be s lower than from Weblogic 8.1 as a web server

2007-05-14 Thread Nelson, Tracy M.
| From: Jonathan Kitchner [mailto:[EMAIL PROTECTED]
| Sent: Friday, 11 May, 2007 14:39
| 
| Under Tomcat the EJB calls are much slower ( I know that
| Tomcat does not perform the actual call - we are using the thin client
| from WebLogic).

Were you using local EJB references in WebLogic?  If so, then that's
probably 99.44% of the reason.  Remote EJB references require that the
request and results be serialized (which would also explain why larger
result sets are slower than small ones).  Local EJB references are a *huge*
performance win.

| The CPU usage and Load factor and user response time are all
| considerably larger under Tomcat.

Sure, you've got a lot more communications overhead between two JVMs now,
whereas before you only had method calls within one JVM.  I'm not sure what
the WebLogic thin client does (some kind of EJB connector for Tomcat?),
but you might want to see if it offers any kind of optimizations if both
JVMs are running on the same machine (assuming they are).

| Does anyone know where this degradation in performance is coming from?

It's to be expected when you switch to a distributed environment.

| Has anyone who has done this migration experienced the same behavior? If
| so how did you mitigate it?

Set user expectations accordingly.  Maybe consider keeping EJB-heavy apps on
WebLogic, and migrating just your more JSP- and servlet-heavy apps to
Tomcat.  You might also need to re-architect your app a bit and set up some
Session Facades to provide some coarse-grained services, thereby keeping a
lot of your EJB calls local (if in fact that is the problem).
-

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: Authenticating to ActiveDirectory from webapp

2007-04-24 Thread Nelson, Tracy M.
| From: David Kerber [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 24 April, 2007 10:38
| 
| What is a good java package that I can use with my webapp to let my
| customers authenticate against their active directory installation, from
| my Tomcat 5.5.15 webapp?

Can't you just use the standard Java LDAP classes?  Javax.naming.ldap.*,
javax.naming.directory.* and friends?  AD is supposed to be
LDAPv3-compliant.
-

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: Authenticating to ActiveDirectory from webapp

2007-04-24 Thread Nelson, Tracy M.
| From: David Kerber [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 24 April, 2007 13:31
| 
| Nelson, Tracy M. wrote:
| 
| Can't you just use the standard Java LDAP classes?  Javax.naming.ldap.*,
| javax.naming.directory.* and friends?  AD is supposed to be
| LDAPv3-compliant.
| 
| That was one of the possibilities I saw yesterday during my googling,
| but it looked more complex than I was hoping to have to mess with, and I
| couldn't find any good sample code.  There probably is some, but I
| couldn't find it yesterday.  If you know of a link to any, I'd
| appreciate seeing it!

Try these:
http://forum.java.sun.com/thread.jspa?threadID=579829tstart=300
http://java.sun.com/products/jndi/tutorial/ldap/security/gssapi.html
http://docs.sun.com/source/817-7644/appC_activedirauth.html
http://www.developertutorials.com/tutorials/java/single-sign-on/page6.html

You also might want to look at CAS: http://www.ja-sig.org/products/cas/

I found all of these within a couple of minutes with
http://www.google.com/search?source=ighl=enq=java+active+directory+login+e
xample

-

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: IDE

2007-04-19 Thread Nelson, Tracy M.
| From: David Short [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 17 April, 2007 11:35
| 
| NetBeans uses the embedded Tomcat 5.5.17 by default.  How can a newly
| installed Tomcat 5.5.20 be configured to be used as the default?

Right-click on your project in the Projects tab, click Properties, click
Run, select your new server in the Server drop-down list box, click
OK.  This will set the default for that project, I don't know how to make
it a global default.  

Of course, you must have added your new server to the NetBeans server list
first: Click the Runtime tab, right-click Servers, click Add Server.
Pick Tomcat 5.5 as the server, give it a name if you want (Maybe Tomcat
5.5.20), click Next.  Specify the Catalina home and manager login info,
then click Finish.  NetBeans will add it to the server list.  If it is
running, you'll see a little green triangle between the Tomcat logo and the
server name.  Then you can click on the expand box and see what's running.
Right-click on the server's name to start or stop it.

You might be able to poke around in the NetBeans config files and change the
Catalina home and other config settings to point the bundled tomcat
definition to your new server, but unless you spend most of your day
creating new projects and can't afford the time to specify the server when
you do, then I'd just add it as a new server and not undermine NetBeans'
basic assumptions...
-

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: Need help with authentication

2007-04-04 Thread Nelson, Tracy M.
IE is sending Pragma: no-cache when it requests the admin page (Request
3 in your previous message).  Firefox isn't, so I'm guessing Tomcat is
assuming that FF has a copy.

This is just what I noticed, I'm not an HTTP or Tomcat expert.

| -Original Message-
| From: Kenneth Westelinck [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, 04 April, 2007 09:19
| 
| I did some further researching. I found this on the 304 returned by Tomcat
| when using firefox:
| -8---8---8---8---8---8---8---8
| ---8---8---8---8---8---8---8--
| You should never see this error in your Web browser. It should simply
| present the Web page from its cache - because it believes the page has not
| changed since it was last cached. If your client is not a Web browser,
| then
| it should equally be able to present the page from a cache. If unable to
| do
| so, it is not using the If_Modified_Since or related headers correctly.
| -8---8---8---8---8---8---8---8
| ---8---8---8---8---8---8---8--
| 
| When I disable caching in firefox, authentication works as it should and I
| get redirected as I should. So who's the culprit here. Firefox or Tomcat?
-

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: connection pool

2007-03-22 Thread Nelson, Tracy M.
| From: Gioia, Michael [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 22 March, 2007 08:36
| 
| Barry, how did you have a service stop and start on it's own, with out
| rebooting the machine?

You can probably use the NET START/STOP service-name commands in a script,
and then run that script as a scheduled job (or task in Windows parlance).
-

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: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Nelson, Tracy M.
| From: Christopher Schultz [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, 14 March, 2007 10:37
| 
| The fact remains that you can't allocate a VM heap bigger than around
| 1750MB on my 32-bit, 2.6 Linux kernel. Why not?

If, as you stated earlier, you only have 1G of physical and 1G of virtual
memory, then that's probably the limit you're hitting.  I don't know about
Linux, but under Solaris you can create a swap file anywhere, even on a
regular filesystem (under NetBSD you had to put them on their own disk
partitions).  Maybe for the sake of experimenting you could use a USB flash
drive for a swap device.  Even if it's just 256MB, you should be able to see
if it's a swap space limitation or something more sinister...
-

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: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Nelson, Tracy M.
| From: Christopher Schultz [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, 14 March, 2007 12:05
| 
| Perhaps, but the JVM actually refuses to start right away. In my eat
| all my memory tests, I was able to eat around 1.6GB before I brought my
| machine to a crawl. It took more than a minute for my terminal to
| respond to a CRTL-C (or perhaps the kernel killed my process for virtual
| memory exhaustion). That process took at least a minute.

I imagine that when the JVM calls [cm]alloc, one of the first things alloc()
does is call sbrk() to expand your process' memory space.  That'll fail
right away if you don't have enough VM available.  If you're expanding the
arena in stages, then you won't die until you hit the limit.  If you want to
hit the limit faster, double your allocation size each time.  Once you hit
the limit (malloc() should return (void *)-1), halve your allocation unit
size and try again.  Keep halving and allocating until you get success.
Keep halving and allocating until your allocation size is less than a page.
You might also want to see what results you get by just calling realloc()
with increasing sizes.  I may try this myself when I get home (don't have a
Unix box handy here), but I'm running 64-bit Solaris on an Opteron, so I
don't know if my results will help.
 
| Then again, I was allocating my memory in 50MB chunks and then writing
| to them. Perhaps Sun's JVM on Linux allocates the whole chunk of memory
| at once (which doesn't do anything on Linux glibc) and then writes to
| the last page to see that it can be used. That doesn't seem right, so
| there must be some other voodoo going on here.

What doesn't seem right?  Remember, the heap isn't a bunch of empty pages;
you have to set up your block list, then initialize PermGen and other system
spaces.  It's entirely possible that the JVM needs to access the last page
as part of initializing itself.  I know nothing about JVM internals and not
much about Linux, but I used to be a fair VMS hacker, and I did learn a bit
about virtual memory implementation (all probably obsolete if not downright
wrong nowadays...)
 
| I have a buddy with a 128MB ppc-Linux 2.6 box with 512MB swap
| and java installed. I had him check, and his bombs (with a jvm panic!)
| when asking for even 512MB. So, it looks like physical memory and swap
| also have an effect. I would have expected the JVM to simply attempt to
| allocate the memory and use it.

Which is probably exactly what happened.  The panic arose when the JVM
attempted to initialize the heap, and found out that the kernel had lied to
it about there being 512M available.  Maybe the PPC kernel does some kind of
optimistic allocation, where it marks the process size appropriately and
just uses an allocate-on-write mechanism to permit the process to use pages
up to the stated memory limit.  This would permit the kernel to
over-allocate VM on the pretext that processes that request large amounts of
memory often don't use much of it.  Kind of a VM-kiting scheme, where the
kernel allocates memory it doesn't have in the hopes that when the
requesting program goes to use it, some other program will have exited and
freed up some space.  This is all pure conjecture on my part, feel free to
laugh heartily.
-

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: getRemoteAddr() returns IPv6 instead of IPv4

2007-03-14 Thread Nelson, Tracy M.
| From: jt [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 13 March, 2007 13:11
| 
| When I make a request.getRemoteAddr() I receive an IPv6 address while I
| want the IPv4.

Is the request coming across an IPv6 interface?  If so, I don't know that
you can get an IPv4 address (without calling getRemoteHost() and doing a
reverse DNS lookup, anyway).
-

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: [OT]Re: Is better one or more Tomcat instances per machine

2007-03-14 Thread Nelson, Tracy M.
| From: Christopher Schultz [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, 14 March, 2007 15:02
| 
| In my tests on the larger machine, the JVM kindly tells me that it can't
| give me that much memory, rather than crashing and burning as I would
| expect after being tricked by the OS.

Perhaps the JVM calls getrlimit(RLIMIT_AS,...) and just takes the current
soft limit as the maximum?  It might be interesting to write some code to
set the soft limit up to the hard limit and then exec() the JVM to see if
that makes a difference.  Of course, the result would probably be the
crashburn, but if you're curious...
 
I note that on later Linux kernels you can disable the overcommiting
allocation behavior with:

# echo 2  /proc/sys/vm/overcommit_memory
-

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: IIS Experience Anyone?

2007-03-02 Thread Nelson, Tracy M.
| From: Scott Danforth [mailto:[EMAIL PROTECTED]
| Sent: Friday, 02 March, 2007 14:16
| 
| If you've tried to use ISAPI_redirect.dll v 1.2.20 (successfully, or
| not), could you reply with a few words? For example, what Windows OS and
| IIS versions we're you using?

This was a few years ago, but I installed IIS 5 and Tomcat (4.0.3?) on
Windows 2000 and didn't have any problems.  I just followed the instructions
in the installation guide and everything just worked.  This was a full IIS 5
installation (from an MSDN subscription), I wonder if ISAPI support has been
dropped from your bundled version.  What version of XP are you running?  I'm
using XP Professional and I don't see any reference to IIS on my system.

-

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: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-20 Thread Nelson, Tracy M.
| From: Daniel Gresh [mailto:[EMAIL PROTECTED]
| Sent: Monday, 19 February, 2007 15:43
| 
| I cannot run tar xvfz jsvc.tar.gz, as the
| -z argument is not being recognized. The directions said GNU TAR was
| needed, so I searched the web for that, but I came to a confusing site
| that said something about FTPing the GNU TAR files, and I didn't know
| where to go from there.

Just FYI (it sounds like you don't need this now), the 'z' argument is for
handling gzipped files.  Just gunzip the tar file first and use 'tar xf
jsvc.tar'.  You don't say which version of Solaris you're using, but on
Solaris 10, I believe the GNU tools are under /usr/sfw/bin.

-

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: Hot deploy without reloading

2007-02-16 Thread Nelson, Tracy M.
| From: René Schade [mailto:[EMAIL PROTECTED]
| Sent: Friday, 16 February, 2007 08:26
| 
| I would like to let my JSP-pages hot-deploy without an explicit reload of
| the application. Is that possible? In my current configuration, the
| Servlets are hot-deploy without reload, just like I want it, but changing
| and deploying a JSP-page does not force a hot deploy (or even a reload).

Have you tried compiling your JSPs before deploying them?  That will convert
them to servlets, which reduces your issue to a solved problem...

-

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: help configuring tomcat to debug my application

2007-02-15 Thread Nelson, Tracy M.
| From: Marini, Joseph [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 15 February, 2007 13:07
| 
| I have installed tomcat 5.5.20 on an XP system. It has installed as a
| service.
| 
| I am trying to configure tomcat so I can remote debug my app via IDEA.

In your Tomcat bin directory there should be a program named tomcat5w.
Run that.  It'll bring up a properties editor that will allow you to specify
the parameters you want.

-

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: [OT] RE: insight into model.do

2007-02-14 Thread Nelson, Tracy M.
| From: Steve Ingraham [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 13 February, 2007 15:57
| 
| I have been reading everything I can online, I
| have a Learning Java book that I am trying to read and understand, I
| have enrolled in a Java class that is teaching me some basics of Java
| coding.  But there is no one that I have any personal one on one contact
| with that knows Java or Tomcat enough to give me any input or
| explanation as to how things were created with this application.

Have you considered having a consultant come in and document the system?
This isn't unusual (at least, I was hired to do it a couple of times back
when I was consulting), and will probably get you better and quicker answers
than trying to figure it all out yourself.  Plus, if things come up later,
you may well be able to just call this person up and ask them questions or
run ideas by them.  At least there would be someone else who knows how your
system works.

-

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: OutOfMemoryError (but not really out of memory?) cause tomcat processes to hang

2007-02-09 Thread Nelson, Tracy M.
| From: Tim Funk [mailto:[EMAIL PROTECTED]
| Sent: Friday, 09 February, 2007 06:30
| 
| Pardon the bad math in the faq since 64*2!=256 ;)

Obviously you were thinking 64  2 -- happens to everybody... ;)

-

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: [OT] Need help finding a Java class

2007-02-06 Thread Nelson, Tracy M.
| From: Steve Ingraham [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 06 February, 2007 15:18
|
| To answer your question about my Java experience, I
| do not know much at all.  I have started a Java for beginners class this
| January that I am taking online and I am attempting to work through the
| O'Reilley book Learning Java on my own.  I am a little overwhelmed but
| trying to understand it all.

I'd recommend the Head First series if you're serious about learning Java.
They're pretty readable, and are written in a tutorial fashion.  Especially
check out the Head First Java and Head First Servlets and JSP (teaches
about servlets and JSPs using Tomcat).


-

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: Context.INITIAL_CONTEXT_FACTORY

2007-02-01 Thread Nelson, Tracy M.
| From: Fran Varin [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 01 February, 2007 08:05
| 
| It boils down to my attempt at using
| org.apache.naming.java.javaURLContextFactory. However, when I do I
| receive javax.naming.NameNotFoundException: Name jdbc is not bound 
| in this Context:.

Are you using the initial context returned from getInitialContext()
directly, or are you obtaining a root context from the initial context?
Have you tried both methods of associating the java URL prefix with this
factory? (Both adding a property to your jndi.properties file, and defining
an environment variable.)

If the IBM factory returns a root context, you will probably want to write a
simple wrapper that gets an initial context from javaURLContextFactory, then
looks up a root context and returns that.

-

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: How do I increase performance on Tomcat?

2007-01-29 Thread Nelson, Tracy M.
| From: Gaurav Kushwaha [mailto:[EMAIL PROTECTED]
| Sent: Monday, 29 January, 2007 06:11
| 
| I have an application that has been working fine for last half an year
| or so. Recently the load has started increasing and the time it takes to
| serve a request is going up significantly. When I look at the resource
| utilization(memory and CPU), it hardly shows an increase. Garbage
| collection
| is also not the culprit. What might be causing this performance hit ?

The first step is to measure the different components of your app to see
where the degradation is.  Is it an external resource (database, message
server, etc.)?  Is it internal?  Where is the app spending all its time?

If you can, get a performance analysis tool like JProbe.  Otherwise, maybe
you could instrument your code with simple timestamping of method entry/exit
points.  The first step to solving performance problems is always finding
out where the performance is going...

-

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: Embedded Tomcat and application communication

2007-01-24 Thread Nelson, Tracy M.
| From: Yiannis Mavroukakis [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, January 23, 2007 04:29
| 
| The application I am writing this for is a server daemon which has a cli
| that enables the user to issue commands to it once it's up and running.

Can you just fire up a shell (System.getRuntime().exec()) and issue CLI
commands to the app?  Or could you talk the guys writing the app into
listening for commands on a specific port you could open?

-

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: Change the encoding format of xml outpu

2007-01-22 Thread Nelson, Tracy M.
| From: Sarah Parrott [mailto:[EMAIL PROTECTED]
| Sent: Monday, 22 January, 2007 02:44
| 
| I'm writing out xml in a servlet not a jsp page so I can't use the page
| declaration thing.

So how are you writing it out?  Just stuffing everything into a StringBuffer
and then writing it out to a file?  Using a Transformer (if so, try calling
setOutputParameter(OutputKeys.ENCODING,UTF-8))?  A JDOM XMLOutputter?

Apologies if there is some standard or canonical Tomcat method, but I didn't
find a reference to one.

-

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: Accessing files from file server

2007-01-19 Thread Nelson, Tracy M.
| From: Priya Khanna [mailto:[EMAIL PROTECTED]
| Sent: Friday, 19 January, 2007 03:58
| 
| But how can I use VFS in an intranet application which is web based?

I can't answer exactly, since I've never used VFS, but I imagine all you
would have to do is create a FileObject that points to the remote
filesystem.  Once you have this, you can read and write to the remote system
(presuming you have the proper permissions, of course).  I don't think it's
any different using it from a web-based application than any other type of
application.

-

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: Accessing files from file server

2007-01-18 Thread Nelson, Tracy M.
| From: Priya Khanna [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 18 January, 2007 01:41
| 
| In my application my user will be logged in
| as domain user only so is it possible to check at run time that who has
| logged in and if user has access on file server then he can access the
| files even if the tomcat is running as local user.

It may be possible to check the user's credentials via an LDAP connection
(or whatever method is appropriate for your security/authorization system).
However, it will not be possible to access the remote server directly from
Tomcat (including any of your servlets or JSPs).  You might be able to use
something like the Commons VFS (http://jakarta.apache.org/commons/vfs/).

| Second issue is that - If I want to upload the files then I want to
| check that user who is logged in to the application has write access or
| not on file server. If not then he should get error message. My user
| will be logged in to application as same user id as his/her domain user
| id. But I am not sure how to achieve this.

I'm not sure what the problem is here.  If the user doesn't have write
access to the server, you'll definitely get an error indication of some
sort.  All you have to do is decide how you want to present that to the
user.

-

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: Tomcat unexpectedly shuts down

2007-01-15 Thread Nelson, Tracy M.
| From: Brown, Carlton [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 11 January, 2007 16:49
| 
| In catalina.out I see the Anthill application going through a shutdown
| sequence right before the time Tomcat dies.   So my assumption, maybe
| invalid, is that it's shutting down because Tomcat instructed it to do
| so.

Anyhill doesn't call System.exit(), does it?  If so, that'll take Tomcat
down.

-

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: Running Tomcat5.5 as 64 bit application

2007-01-09 Thread Nelson, Tracy M.
| From: Jonas Fagerstrom [mailto:[EMAIL PROTECTED]
| Sent: Monday, 08 January, 2007 20:17
|
| Mladen Turk mladen.turk at jboss.com writes:
| 
|  Use 64 bit procrun (tomcat5.exe) from:
|  http://svn.apache.org/viewvc/tomcat/connectors/trunk/procrun/bin/
|  (remove the .amd64 extension of course)
| 
| I tried this 64 bit version, but it didn't work for me. Perhaps due to the
| fact
| that it was compiled for the AMD64 platform.

Curious.  The 64-bit extensions (instructions and addressing modes) should
be supported on Intel.  Unless the compiler was using some proprietary AMD
extensions (e.g., SSE), it should have run just fine.  How did it 'not work'
-- crash  burn, or just not work the way you thought it should?

-

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: Java memory profiler

2007-01-09 Thread Nelson, Tracy M.
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
| lucent.com.au]
| Sent: Monday, 08 January, 2007 20:22
| 
| I would like to  profile a Tomcat application on Solaris machine.
| [snip]
| I  would appreciate any suggestions.

I can't say enough good things about JProbe (www.quest.com/jprobe).  I first
used it on a JSE (Java 1.0.7!) project, and it saved me weeks of debugging
and instrumenting my code.  It's got a 10-day trial, and there's a free
version too (not sure what the differences are).  I bought it on a Monday,
got it on a Wednesday, and I think it paid for itself by Friday... :)

-

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: Standards Complaint Browser Campaign

2007-01-08 Thread Nelson, Tracy M.
| From: Pierre Goupil [mailto:[EMAIL PROTECTED]
| Sent: Saturday, 06 January, 2007 10:18
| 
| Does anyone know about Tomcat's generated HTML standards compliance ? In
| developpement, I'm using Firefox  Konqueror, but in production they will
| be
| using IE, so... Can it be that I run into problems ?

Um, is there some reason you aren't using the same browser in development
that they'll be using in production?  If not, you're just opening yourself
up for a world of hurt.  I would think it would be difficult to explain to
your boss why you have to do some emergency bug-fixing at the 11th hour
because you didn't test with the same browser that you *knew* they'd be
using in production.

Don't get me wrong, I use FF for all my development, but as soon as I finish
a feature the first thing I do is make sure it works correctly on IE.
There's just no excuse for not supporting the browser that dominates the
market (even if you have to use hacks or exceptions).

-

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: Standards Complaint Browser Campaign

2007-01-08 Thread Nelson, Tracy M.
| From: Christopher Schultz [mailto:[EMAIL PROTECTED]
| Sent: Sunday, 07 January, 2007 09:56
| 
| At any rate, you should try to avoid anything that's not a W3C standard.

Yeah, so stay away from Mozilla's little shortcuts like using
document.getElementsByTagName('tag')['name'] (gEBTN() is defined to return a
NodeList, not a NamedNodeMap).  And be sure to avoid appending a new row to
a table by just blithely calling
tbl.appendChild(document.createElement(tr)) -- even through Mozilla
accepts it and does what you might expect, it's wrong (that code will append
a new child to the *table*, so it'll be treated as a second table body, so
it won't show up)  So use the W3C standard of
tbl.lastChild.appendChild(document.createElement(tr)), like IE enforces.

Sorry, I just get a little twitchy when people start mooning over Mozilla's
W3C compliance.  Sure, it's pretty compliant, and yes IE is a festering
cesspool, but don't get suckered into the Well, it works on Mozilla/FF/NS,
so it *must* be W3C compliant... trap.  Every browser has it's little
departures from the spec, keep your eyes open and test with every (version
of every) browser you can get your hands on.

-

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: web application - student need help

2007-01-08 Thread Nelson, Tracy M.
Hmmm, interesting, a lot of the articles I remember reading don't seem to be
available anymore.  Too bad, there were some good war stories.  They've
probably all been pulled and reworked into Learning Tree Building Scalable
Web Architectures courses.  Most of what I could find about new Web 2.0
sites seems to be all touchy-feely user experience-oriented stuff, no tech
details on what it actually takes to generate a tag cloud or keep response
time beneath the magic 3-second threshold.  Here's some stuff I did manage
to come up with:

A description of Slashdot's current setup (actually a few years old):
http://slashdot.org/faq/tech.shtml#te050

Here's a story on Slashdot asking basically the same question the original
poster did: http://ask.slashdot.org/article.pl?sid=05/05/26/1433202

A description of the growing pains of Anandtech (another geek site):
http://www.anandtech.com/printarticle.aspx?i=2136

A PDF showing the infrastructure of Flickr:
http://www.niallkennedy.com/blog/uploads/flickr_php.pdf

Probably the most relevant -- a post describing how one site survived a
Slashdotting (with a 466MHz Celeron on a DSL line):
http://devnulled.com/content/2005/07/surviving-a-slashdotting-with-a-celeron
-466-my-slashdot-experience/

| -Original Message-
| From: Ross, Scott [mailto:[EMAIL PROTECTED]
| Sent: Monday, 08 January, 2007 10:24
| To: Tomcat Users List
| Subject: RE: web application - student need help
| 
| Tracy Nelson.
| Out of curiosity, can you point to some articles relating to the growing
| pains you mentioned regarding Slashdot, Granddaddy and MySpace?
| 
| Thanks
| Scott Ross
| 
| -Original Message-
| From: Nelson, Tracy M. [mailto:[EMAIL PROTECTED]
| Sent: Monday, January 08, 2007 11:01 AM
| To: Tomcat Users List
| Subject: RE: web application - student need help
| 
| | From: Michael Ni [mailto:[EMAIL PROTECTED]
| | Sent: Friday, 05 January, 2007 16:38
| |
| | even with connection pooling, how many connections are we looking at
| here?
| | if my project works as intended, im predicting from 30 to 1000 poeple
| | simultaneously hitting tomcat and sql server.
| 
| If you're just on a cable modem, I wouldn't worry about it.  Your
| network bandwidth will give our before your connection limit.
| 
| | i remember when websites like friendster.com came out, it was really
| slow.
| | now it is much faster, do you guys know where does a student learn
| | about how to handle high traffic web applications?  is there any
| | classes?
| 
| Your best bet is to read up on other site that had growing pains
| (MySpace, Flickr or the granddaddy, Slashdot) and find out what they
| did.  For the most part, you'll have to find a service provider that has
| the pipes you need for a price you can afford.  Then worry about
| partitioning your set-up:
| break it up into web servers, app servers (Tomcat), and database
| servers.
| Try to split your app into static and dynamic pieces, that'll
| (theoretically) let you cache static content (icons, logos, boilerplate
| text) on the web server, which will help your response time.  If your
| database needs are simple (90% reads, most reads from a single table)
| consider going with MySQL.  It's proven itself many times over in
| high-traffic sites.  If you have any kind of real database needs,
| though (transactions, complex joins, multiple concurrent updates) you'd
| be better off sticking with SQL Server (or Postgres if you need multiple
| servers and licensing costs become a factor).  Other than that, just
| learn how to instrument your system so you can analyze it to find out
| where the bottlenecks are.
| 
| Note that I've never actually done any of this, it's just what I've
| gleaned from some articles on the net.  IMHO, YMMV, IANAL, etc...
| 
| -
| 
| 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]
| 
| 
| 
| -
| To start a new topic, e-mail: users@tomcat.apache.org
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]


-

The information contained in this message is confidential
proprietary property of Nelnet, Inc