jdbc:mysql://hostname:3306/database?user=usernamepassword=password
However on a design front I would never personally look up a database
connection in a JSP. Others may disagree.
-Original Message-
From: Cengiz Yazgan [mailto:[EMAIL PROTECTED]
Sent: 06 October 2005 11:46
To: 'Tomcat
This was probably one of the best threads I have 'listened' to in ages. I am
researching setting up my own Tomcat hosting. This is going to be of use.
-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: 06 October 2005 20:48
To: Tomcat Users List
Subject: Re: [OT] How
Many small ones.
-Original Message-
From: Raueber Hotzenplotz [mailto:[EMAIL PROTECTED]
Sent: 06 September 2005 10:50
To: tomcat-user@jakarta.apache.org
Subject: What's better, having one large servlet or many small ones?
Hello
Should I have one handler with many methods or more
I know I missed the Friday deadline but...
Has anyone any recommendations for parsing html. I use Lucene and the
example has its own HTML parser but I was wondering if anyone has used an
existing project or whether there is some built in functionality in an
Apache lib to convert
pHello
Am I allowed to ask what it is and how it differs from java.util.Timer? Just
like to educate myself from time to time...
-Original Message-
From: Guy Katz [mailto:[EMAIL PROTECTED]
Sent: 30 August 2005 12:12
To: Tomcat Users List
Subject: RE: can i use javax.management.timer.Timer?
yes
Hi Edmund.
I am sorry but I don't know much about SSO.
However I can tell you about JAAS in Tomcat. In 5 certainly there are
issues. Essentially when you call the LoginModule to invoke your JAAS config
it works but it does not authenticate the proper session Subject. What you
end up doing (Or
1.Filter to go in web.xml
/**
* [EMAIL PROTECTED] javax.servlet.Filter Filter} to overide the
HttpServletRequest and
* overide isUserInRole() using the
* [EMAIL PROTECTED] com.ibt.framework.security.tomcat.HttpServletRequestWrapper
HttpServletRequestWrapper}
*
* @author Mark Benussi
:[EMAIL PROTECTED]
Sent: 16 August 2005 17:44
To: Tomcat Users List
Subject: Re: howto configure JAAS+SSO
From: Mark Benussi [EMAIL PROTECTED]
However I can tell you about JAAS in Tomcat. In 5 certainly there are
issues. Essentially when you call the LoginModule to invoke your JAAS
config
OK I got JAAS working with form authentication. That worked a treat (After a
bit of head banging).
I then moved to invoking the login from Struts (Or a Servlet for Tomcat
users who don't use Struts)
The code still gets invoked correctly.
IBTJAASCallbackHandler callbackHandler = new
I am implementing my first JAAS implementation and have some
problems/questions.
Firstly my commit method of my LoginModule does the following (User and Role
both implement Principal)
// Create a new User Principal with the user name retrieved from the
NameCallback
User user = new
Anyone have any ideas where on earth I put my class that implements the
LifecycleListener (In a jar in my WEB-INF/lib) as I don't seem to have a
context in my server.xml.
Server port=8005 shutdown=SHUTDOWN debug=0
Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
Message Follows
From: Darryl L. Miles [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Placing a LifecycleListener in my server.xml
Date: Wed, 27 Jul 2005 11:47:17 +0100
Mark Benussi wrote:
Anyone have
Note that a Listener can have any number of additional properties
that may be configured from this element. Attribute names are
matched to corresponding JavaBean property names using the standard
property method naming patterns.
Mark Benussi wrote:
Thanks Darryl
I have recently moved ISPs and my sites are experiencing some strange
behaviour.
Basically on some of my sites (Not just one) and on some of the links (Not
just all) When using html:link (A struts tag library) and the other
associated tags (rewrite etc) the domain is missing.
This is also seen
With follow = false or something cant remember the exact syntax
Original Message Follows
From: Tim Funk [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: robots.txt
Date: Thu, 14 Jul 2005
to this topic but I will not be
answering it, as I don't want to have to type answers to individuals.
Regards,
Mark Benussi
://www.mycgiserver.com/
-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 08 July 2005 09:45
To: 'Tomcat Users List'
Cc: 'Struts Users Mailing List'
Subject: [OT] Recommend a UK Tomcat host
Apologies for the repost to the Tomcat list but I am getting desperate.
Can anyone
Apologies for the repost to the Tomcat list but I am getting desperate.
Can anyone recommend a UK based Tomcat hosting solution? I have been let
down by my current ISP (nameonthe.net) which has gone out of business.
Your help is greatly appreciated.
TIA Mark
://www.positive-internet.com/products.html
-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 08 July 2005 09:45
To: 'Tomcat Users List'
Cc: 'Struts Users Mailing List'
Subject: [OT] Recommend a UK Tomcat host
Apologies for the repost to the Tomcat list but I am getting desperate
I am having to change my ISP and was wondering what the main differences
were with these two servers.
Are Servlet filters supported and more importantly what J2EE does it
typically run on?
TIA to the legend list that is making my nightmare week a bit better.
?? differences
Date: Fri, 8 Jul 2005 12:54:06 +0100
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Subject: Tomcat 4.1.37 and 5.0.2?? differences
I am having to change my ISP and was wondering what the main
differences were with these two servers.
http://jakarta.apache.org/tomcat/index.html
5.0.x
, 8 Jul 2005 08:46:57 -0400
From: Peter Crowther [EMAIL PROTECTED]
snip/
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Subject: Tomcat 4.1.37 and 5.0.2?? differences
snap/
Are Servlet filters supported
Yes, on both, I believe.
Additionally, after the move, you will be able to apply
the couple of time I've needed to use it.
julian
(no affiliation except as a paying customer, etc, etc)
On 7/5/05, Mark Benussi [EMAIL PROTECTED] wrote:
Having some fun with my current ISP and was wondering if any of you have
UK
tomcat recommendations?
My technical needs are pretty small
recommendations?
I use webhost.ie
They are in Ireland I am in the UK but the service is second to none for
me.
On Thu, 2005-07-07 at 14:25 +, Mark Benussi wrote:
Julian,
Interesting that you recomend nameonthe.net. They have been down since
Tuesday morning and none of my customers who
Having some fun with my current ISP and was wondering if any of you have UK
tomcat recommendations?
My technical needs are pretty small; just tomcat 5.0+ installed with mysql
4.0+ etc.
My main non-technical requirement is a good UK based support, and any
recommendations would be
Well without wishing to sound petty
Your development environment should replicate you server environment as
closely as possible.
Understandably you may develop on windows but run on UNIX but anything else
such as Tomcat, JVM, and any 3rd party Jars should be of the same version.
The problem
I am submitting a Struts form in my live application but the values seem to
be getting lost between my browser and the population of my ActionForm. This
only happens if the login page is the first request of the session.
If you click around on the site (even once) and then submit the form the
Hello.
I am trying to write a comparator that randomly sorts a collection.
I have something like this:
new Comparator() {
/**
* @see java.util.Comparator#compare(java.lang.Object,
java.lang.Object)
*/
public int compare(Object object1, Object
Thanks very much
-Original Message-
From: Rafal Krupinski [mailto:[EMAIL PROTECTED]
Sent: 03 June 2005 09:06
To: Tomcat Users List
Subject: Re: OT Friday - Random sorting
Mark Benussi wrote:
Hello.
I am trying to write a comparator that randomly sorts a collection.
I have something
Even better, thank you!
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Holger Klawitter
Sent: 03 June 2005 09:06
To: tomcat-user@jakarta.apache.org
Cc: user@excalibur.apache.org
Subject: Re: OT Friday - Random sorting
Mark Benussi wrote:
Hello.
I am trying
certificates
Mark Benussi wrote:
Can I build a root certificate that is not signed by someone like Verisign
or any other trusted root? (This is a cost issue).
Yes, but then people have to trust your root certifcate. One of the
services Verisign and the other CAs offer (depending on the type
certificate to their list of trusted certificate
authorities. How exactly to do this various from browser to browser (and
OS to OS sometimes)...
--Tim
Mark Benussi wrote:
Morning all..
I have a web app and for certain areas of the site I wish to restrict
access
to a Client
Morning all..
I have a web app and for certain areas of the site I wish to restrict access
to a Client Authentication certificate. I want to generate a root
Certificate for my company domain and then sub domains for a variety of
customers. Then I wish to be able to generate certificates for
Did anyone see this message as Remote host said: 554 delivery error: This
user doesn't have an account. Can someone please confirm they got it?
-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 23 May 2005 10:38
To: tomcat-user@jakarta.apache.org
Subject: Client
I have two environments with the same mysql DB, both running the same war on
tomcat 5.0 and I have a problem which I can only think may lie in my JSP
taglib and its extra info.
Essentially I call a tag three times in the same page, and depending on
taglib arguments the tag should display data
I host my sites with a provider who supplied tomcat 5.0 on a UNIX platform.
Is there a Java API call I can make to detect how much disk space has been
allocated to my account and the current amount used?
Hi Dola,
A strategy you could employ is the following.
All data for your items can be held in a persistence store of some kind (DB,
XML). For each product build an XML representation and then use XSLT to
convert each item to a html file. Then when requesting to view an item you
can build up a
I hit this issue today, for a host of reasons.
You are getting this error because the ammount of memory allocated to the
JVM running Tomcat has been taken up. This ould be for the following
reasons:
You are doing some large database reads without using a methodology to read
in batches.
You are
-user@jakarta.apache.org
Subject: RE: out of memory error
Date: Tue, 26 Apr 2005 15:42:51 +0100
Or you simply don't have enough memory allocated to the JVM and you need to
increase it.
-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 26 April 2005 15:41
To: [EMAIL
I would place your e-mail in a MailManager that queues the messages and
sends them out on a TimerTask (Every 10 seconds???).
Secondly from a pernickety perspective I would not have a Servlet doing any
of what you described. At least place this code a level down in a Manager
class that can
If you are caching content, e.g. pages I would recommend using XSL to
transform the data into html, or jsp if you need. At startup and then
whenever it is changed.
For data, implement a persistence pattern (Data extends BaseData class,
Persistence extends BasePersistence class). Then for any data
The content or the data?
-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED]
Sent: 29 March 2005 15:59
To: tomcat-user@jakarta.apache.org
Subject: RE: caching pattern
Are there any good examples of this?
From: Mark Benussi [EMAIL PROTECTED]
Reply-To: Tomcat Users List
: caching pattern
data, or as they say in new england datur
From: Mark Benussi [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Subject: RE: caching pattern
Date: Tue, 29 Mar 2005 16:01:08 +0100
The content or the data
Worth mentioning this as I have been down this path.
Symantec Intenet Security products and the like, will remove this header. I
actually contemplated writing to Symantec about this only this morning (I
think I have too much time on my hands).
Not wishing to be fussy but you don't have to have a static IP. You can have
a dynamic IP and there are various companies that will manage this for free
https://www.dyndns.org/
Some routers like my UK BT ADSL modem come with functionality that notifies
dyndns as soon as the dynamic IP changes.
Just done this this morning:
CREATE VIEW fw_user_roles AS SELECT USERS.USER_NAME AS USER_NAME, ROLES.NAME
AS ROLE_NAME
FROM fw_users AS USERS, fw_user_role_rltns AS RLTNS , fw_roles AS ROLES
WHERE USERS.DATA_KEY = RLTNS.PRIMARY_KEY
AND ROLES.DATA_KEY = RLTNS.SECONDARY_KEY
ORDER BY USER_NAME,
That sql isn't mysql specific. Should work for you fine.
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 02 March 2005 12:33
To: Tomcat Users List
Subject: Re: realm configuration
I guess (I don't use mysql)
-Tim
Mark Benussi wrote:
Just done this this morning
You need to implement a Session Listener like this.
public class SessionHelper implements HttpSessionListener {
private static Hashtable sessionsById = null;
/**
* @see
javax.servlet.http.HttpSessionListener#sessionCreated(javax.servlet.http.HttpSessionEvent)
*/
public void
My 2 pence worth is that whilst all these are great, intergating them with
existing functionality such as asset manegment (Images, documents etc) is
such a pain that it is best to do your own.
Original Message Follows
From: Oleg [EMAIL PROTECTED]
Reply-To: Oleg [EMAIL PROTECTED]
To:
Hi Sunil,
I think they keyword for your scenario is clustering.
Running multiple syncronised applications and databases allows you to take
down servers during quiet periods and still maintain a service via the other
servers whilst they are upgraded one by one.
Saying that I have worked on
Ah good old memory leaks, I see more and more messages regarding this
although thankfully I have never experienced it myself.
The reason this is off topic is that I was wondering if anyone has ever
found a way of recovering leaked memory, without restarting the JVM?
Original Message
]
To: Mark Benussi [EMAIL PROTECTED],Tomcat Users List
tomcat-user@jakarta.apache.org
Subject: Re: Please recommend a Low Cost Tomcat Hosting platform
Date: Fri, 07 Jan 2005 15:36:32 +
Review of noname.net
I made the mistake of selecting a Shared VM trial thinking I could get way
with it but I
What country are you based in?
Original Message Follows
From: epyonne [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Subject: [OT]web development fee
Date: Wed, 5 Jan 2005 06:51:50 -0600
Sorry if this is a little off topic. I have been
Paul,
I use a company called name on the net who work out at £100 a year. They
support WAR deployment in a pure sense (my only comment would be they
provide a Tomcat 5 container). Support is good, they are a small company and
from that point of view you always get a quick response.
apols www.nameonthe.net
Original Message Follows
From: Paul Taylor [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Mark Benussi [EMAIL PROTECTED]
CC: tomcat-user@jakarta.apache.org
Subject: Re: Please recommend a Low Cost Tomcat Hosting platform
Date: Tue, 04 Jan 2005 14:49:00 +
I
I am sure this has ben tackled by somebody before.
In my web.xml I have
web-app id=WebApp
display-nameSite/display-name
listener
listener-classhelpers.SessionHelper/listener-class
/listener
servlet
My SessionHelper class implements
Sorry what I mean is that the methods implemented for the
HttpSessionListener do not get called when I invoke a new session.
Original Message Follows
From: Ben Souther [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: HttpSessionListener
Hi Ben,
I have not extended httpservlet, I don't see why I would have to do this?
package helpers;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
public class SessionHelper implements HttpSessionListener {
public void
to do
this?
You don't... sorry (was still on first cup of coffeee ;))
You've tried putting println statements in the sessionCreated and
sessionDestroyed methods to verify that they're not being called?
On Wed, 2004-12-08 at 06:16, Mark Benussi wrote:
Hi Ben,
I have not extended httpservlet, I
Are you using a router?
Original Message Follows
From: Ted Anagnost [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Blank Page when using http://192.168.1.100/
Date: Wed, 1 Dec 2004 00:26:51 -0600
http://localhost/ works
http://127.0.0.1/
-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Blank Page when using http://192.168.1.100/
Date: Wed, 1 Dec 2004 01:36:47 -0600
Yes
- Original Message - From: Mark Benussi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 1:34
Hi I need to secure two directories with a user name and password prompt.
Just one is fine at the moment. I know I can do this using httpd but I was
wondering if there was a better solution for Tomcat (5), i.e. by configuring
something in the server config or web.xml. If anyone has a solution I
Use mysql connector for your jdbc connections and place the jar in the
$CATALINA_HOME/common/lib.
In terms of using it in your lightweight code, you will have to describe
your development practices... are you using an IDE?
-
If your using eclipse just place the mysql connector jar in your projects
jar list... there are many examples of using DriverManager... search the
web. Sorry I cant be of more help but my code uses connection pooling and
you need to find and understand the use of DriverManager in its most basic
64 matches
Mail list logo