RE: Centralized user management system

2003-10-27 Thread Cheong Takhoe
Hi Gang,

We realised this 3 years ago when we started developing web applications
for the company. So what we did in the first part was to develop our
user management system onto our application framework. 

All our applications refer to the User object that goes across the
applications. Management is done on a web front. Each new application
has a defined user accessiblity table that defines who has access to
that application.

Might not be standard, but it works :)

Regards,
Cheong Takhoe

-Original Message-
From: Gang Wu [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 28, 2003 4:01 AM
To: Tomcat Users List
Subject: RE: Centralized user management system


Yes, I need a program to maintain a centralized user database, then the
later developed applications don't need invent their own user management
module anymore. Instead the applications can reference the user
information directly or via Tomcat JDBC Realm.

There was an article published on Java World
(http://www.javaworld.com/javaworld/jw-06-2001/jw-0615-tapestry.html),
which introduced a system called Tapestry which does what I want, but
the connection to the download site was removed. Is there anybody knows
what happened there?

I also saw some commercial systems, usually very expensive. There is an
inexpensive one from http://cafesoft.com/ . The price for 5 concurrent
licenses is $2,995. Is there anybody has experience with it or similar
systems?

Thanks

Gang



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 1:52 PM
To: Tomcat Users List
Subject: RE: Centralized user management system



Howdy,
It sounds like you're looking for a complete standalone user management
program to talk to your database.  Tomcat doesn't have such a thing, as
that's not tomcat's job to provide ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gang Wu [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 1:46 PM
To: Tomcat Users List
Subject: RE: Centralized user management system

Hi Yoav,

Thanks for the message. The JDBC Realm provides a way to connect to an 
external user management system, so applications can verify user
privileges
in a standard way. But Tomcat does not provide any mechanism to manage 
users and roles, which is supposed to be implemented in the external 
user management system. And that's what I am looking for. The procudt 
should provide mechanisms to define application user management model, 
usually User/Group/Role/Permission model. It should also provide 
interface
(either
web interface or stand-alone application) to maintain the defined
model,
such as add/remove user, assign/revoke privileges to user.

People might suggest to use the Tomcat Admin service which provide web 
interface to maintain the user/role pairs. But that's too simple and
not
easy to maintain. Also the data is stored in the deployment file, but a

DBMS storage is obviously preferred by most developers. Or is there a 
better Tomcat solution I did not know?

Thanks


Gang Wu


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 11:16 AM
To: Tomcat Users List
Subject: RE: Centralized user management system



Howdy,
Tomcat can run with a JDBC Realm to authenticate users and define
roles,
and that likely has all the features you need. 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html#JDBCRe
a
lm

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gang Wu [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 11:07 AM
To: Tomcat Users List
Subject: Centralized user management system

Hello everyone,

I have several applications running on Tomcat server. When developing
the
applications, each development team invented their own user management

system(basically a set of database tables and web interface). Now we
got
into this kind of awkward situation: User has to remember different 
users/passwords for each applications and login for every
applications.

We are going to develop some new applications and also need user 
authentication. To avoid the multiple users/passwords problem, I'm
looking
for a system to centrally manage users for multiple applications. Does

anybody know if there are any free or inexpensive systems I can use?
It's
not possible for us to pay $100,000 for this kind of system.

I took a look at the Tomcat user/role access control system, but I
think
it's too simple for any application permission management. Am I wrong?

Thanks

Gang


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




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s)
to
whom it is addressed, and may not be saved, copied

RE: OutofMemoryError

2002-05-01 Thread Cheong Takhoe

Hi,

Does this parameter -Xincgc, incremental garbage collection work for
Tomcat 3.1 and Tomcat 3.2 ?
I have two installations running on Java 1.2.2 

regards,
Cheong Takhoe 

-Original Message-
From: Laurent FĂ©ral-Pierssens [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 1:36 AM
To: 'Tomcat Users List'
Subject: RE: OutofMemoryError



Hi Matthew,

I have been experiencing the same problems but with T3.2.x.

You should try to use Tomcat options -Xms and -Xmx

I added those 2 lines:

TOMCAT_OPTS=-server -Xms256m -Xmx256m -Xincgc
export TOMCAT_OPTS

in my /etc/init.d/tomcat script 

This increase the default heap size of the JVM to 256Meg (from 64Meg)
and make sure incremental Garbage collection is done. Since I changed
those, I have no more OutOfMemory errors.

Hope it helps,
Laurent




-Original Message-
From: Matthew Boeckman [mailto:[EMAIL PROTECTED]] 
Sent: May 1, 2002 12:08 PM
To: [EMAIL PROTECTED]
Subject: OutofMemoryError


Hello List.

I'm running tomcat 3.1.1 on RH7.1, kernel 2.4.9-31 with JDK1.3.1, mysql 
3.23.43
I am occasionally seeing tomcat go postal with the following errors:
Exception in thread CompileThread0 java.lang.OutOfMemoryError: 
requested 32760 bytes



Another exception has been detected while we were handling last error.
No information available. Please check ERROR REPORT FILE for further
information, if there is any. Good bye.

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x419852cb Function name=(N/A)
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
   just occurred. Please refer to release documentation for possible
   reason and solutions.


Current Java thread:



Another exception has been detected while we were handling last error.
Dumping information about last error: ERROR REPORT FILE = (N/A)
PC= 0x0x419852cb
SIGNAL= 11
FUNCTION NAME = (N/A)
LIBRARY NAME  = (N/A)
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.

Any thoughts on what might be the cause? There is nothing in the log 
files to tell me more than this, which gets dumped to the console.

-Thanks!

-- 
Matthew Boeckman(816) 777-2160
Manager - Systems Integration   Saepio Technologies
== 
==
...Many say that DOS is the dark side, but actually UNIX is more like 
the dark side: It's less likely to find the one way to destroy your 
incredibly powerful machine, and more likely to make upper management
choke.
-Lore Sjoberg


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Authentication Servlet

2002-03-18 Thread Cheong Takhoe

Hi folks,

I'm thinking of coming out with a Servlet that resides on my Tomcat that
would receive user/password details from the clients 
and sends back whether the user is authenticated or not. But this design
would not be confined to Java -or- web applications.
I want to use TCP/IP so that clients from other platforms/technology could
also (i.e. asp, VB clients) could also communicate 
with this Servlet as well.

Now I know this seems quite simplistic since I don't really know how to
proceed. Would really appreciate it if someone out there 
could provided me with a few pointers of what to look out for. Several
things:-
- Do I need to set my own protocol?
- When I extend the generic servlet, what operators would I need to
override..

Is there any resource available out on the net/mailing-list about this?
Thanks!

regards,
Cheong Takhoe

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Missing database connectivity

2002-01-13 Thread Cheong Takhoe

Hi,

Been using Tomcat 3.1 and 3.2 for about a year now and I noticed that
whenever our database administrator shuts down and restarts the database
(Oracle), all of my Java beans and jsp files can't redetect the database
after the restart. So most of the time, I had to restart the Tomcat to
redetect the database.

Could anyone (especially the development team) explain the why it can't
re-establish the database connectivity to the database and is there a way to
resolve this?

regards,
Cheong Takhoe

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Known Memory clean-up issues?

2001-12-02 Thread Cheong Takhoe

Hi Matt,

Would like to know what did you do to tune it because it might be 
something that we have left out. I've tried adjusting the heap sizes...

regards,
Cheong Takhoe

Matt Egyhazy wrote:

have you tuned the jvm settings?  i had out of memory errors with 3.2.3
version of tomcat after periods of heavy load until i tuned the jvm.

matt
- Original Message -
From: Randy Layman [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 3:25 PM
Subject: RE: Known Memory clean-up issues?


The best thing you can do is to find out where YOU are leaking
memory.  Tools like OptimizeIt are very useful for this type of issue.

Here

are a few hints that might help you:
* Sessions stick around for some time after the user leaves.  If you
have large amounts of data in the session, you might want to make your
timeout smaller
* Servlet instances stay around for very long amounts of time.
Storing anything in static and/or instance variables of the servlet can
consume memory for very long amounts of time
* Static fields stay around for very long amounts of time, even if
there are no more references to the classes

Another tip, if you reduce the Heap size of your JVM then you can
get the problem to happen quicker (since there's less memory available to
leak).


From the JavaDoc on java.lang.OutOfMemoryError:
Thrown when the Java Virtual Machine cannot allocate an object because it
is out of memory, and no more memory could be made available by the

garbage

collector.

Something is holding onto lots of memory.  If your servlet is
holding memory and a request comes it, its possible that the servlet is
holding enough memory that Tomcat can't get the memory that it needs to
service the request.

Randy


-Original Message-
From: Denis Balazuc [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 3:42 PM
To: Tomcat Users List
Subject: Re: Known Memory clean-up issues?


Hi all

Where would you recommend to use System.gc() in the context
of JSP pages ?
I guess it would be useless to intercept every single request
and hint the
system for garbage collection on each request ?

(Now I quote)
Also, before an OutOfMemory is thrown, the Garbage collector is
guarenteed to run, meaning that you really are using all of
your memory.  I
would look at what you are doing in your code - I have
servlets that run for
weeks without eating up any significant portion of memory

I do have many times OutOfMemory exceptions thrown, although
we're not doing
*that* much
It happens quite randomly so it's very difficult to isolate
the problem.
Moreover, it even happens when fetching HTML pages from
Tomcat, without
using much JSP...
I'd like to find a place to catch that error to take action
(like restarting
Tomcat) but the only way we have found is to monitor the server and
automatically restart it when it fails to respond.

Any guidance to solve the problem would be appreciated ;-)

Thanks
Denis Balazuc


- Original Message -
From: Yoav Shapira [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 03:07 PM
Subject: Re: Known Memory clean-up issues?


Howdy,

Any harm in forcing garbage collection to run?

You cannot force garbage collection to run, only suggest it to the
JVM via methods like System.gc().  If you're having difficulty
tracking down memory usage, try a profiler like OptimizeIt that has
entire memory trees.

In addition, you can use parameters like hprof and verbosegc on
the java command line to assist you in monitoring garbage

collection.

Yoav Shapira

--
To unsubscribe:

mailto:[EMAIL PROTECTED]

For additional commands:

mailto:[EMAIL PROTECTED]

Troubles with the list:

mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





Tomcat up-time

2001-11-22 Thread Cheong Takhoe

Hi folks,

Would like to know how long is the uptime for your Tomcat servers and 
what is the configuration and operating system of your machine (memory 
and speedwise) coz I'm getting pretty frequent insuffient memory errors 
in a couple of days time.

Please help.

regards,
Cheong Takhoe


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat 3.3 and Poolman 2.0.4

2001-11-19 Thread Cheong Takhoe

Yeah...
Seems to be running quite smoothly and it really speeds things up.

But I've got problem running it with Jive. Somehow, it conflicts with Jive's
own Poolman.
I get cases whereby Jive could not detect the database.

regards,
Cheong Takhoe

 -Original Message-
 From: KL OOI [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, November 20, 2001 2:41 PM
 To:   TOMCAT-USER
 Subject:  Tomcat 3.3 and Poolman 2.0.4
 
 Hi all,
 
 Do anyone successfully install Tomcat 3.3 with Poolman 2.0.4 in W2K ??
 
 Thanks.
 
 Regards,
 KL OOI

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Worm Attacks

2001-09-21 Thread Cheong Takhoe

Hi folks,

I've got a Tomcat 3.2 running on JDK 1.2.2 on Windows NT 4.0 with SP 5.
As we all know, worms like Code Red and Nimba are running rampant around
networks... probing for holes in IIS.

When I run Tomcat at console mode, I could see the attacks and probes made
by infected servers. Although the server is not infected, the Java on my
Tomcat  would in the end crash and a dialog box would pop up stating
Application log is full.

Anybody experiencing such a scenario out and knows how to deal with this?
Got to keep the server running. Please help.

regards,
Cheong Takhoe



Benchmarking tools

2001-06-27 Thread Cheong Takhoe

Hi,

Would like to know whether there are any tools out there we could use to
benchmark the performance of Tomcat and the applications that we host in
Tomcat?

Thanks.

regards,
Cheong Takhoe



Tomcat FAQ/Article

2001-05-17 Thread Cheong Takhoe

Hi,

I would like to propose an update, patch-up and configuration FAQ/Article
for beginners who have installed Tomcat.
It would be great to know what needs to be done after the server has been
installed to ensure that it run optimumly.

Or has such a document been made available already? I'm not sure...but
please do enlighten me.

regards,
Cheong Takhoe



Tomcat Performance

2001-05-17 Thread Cheong Takhoe

Hi,

I'm encountering performance issues with regards to Tomcat.
I have two servers running. One with Tomcat 3.1 and one with Tomcat 3.2,
both on Window NT 4.0 . 

After running for a certain time, its gets slower and in the end, the
web-applications can run anymore.
I would like to know if any of you encountered such problem and how you
worked to solve it.
Urgent. Please help.

regards,
Cheong Takhoe



Concurrent Users - How to see it

2001-05-17 Thread Cheong Takhoe

Hi,

As we need to know how many concurrent users we have on our Tomcat, I would
like to know how and what tools do you folks out there use to 
determine the number of concurrently connect users at the moment?

Thanks

regards,
Cheong Takhoe