Auto Session Creation and memory usage

2008-07-23 Thread Jacob Rhoden
Hi Guys, I am working on creating some more scalable tomcat applications. I have addedd a SessionListener and it seems that hitting a jsp page triggers a session to be created. If there are 1000 users and only 10 are signed in, I dont think 1000 sessions need to be created yes. How do I turn

Performance of Native library

2008-02-14 Thread Jacob Rhoden
Hi, Are there any web sites that show/compare the performance of a plain install vs adding the native libraries for tomcat? How many of you guys actually use the native libraries in production, ie is this common or uncommon? Best Regards, Jacob

Tomcat/Mod_jk on Redhat

2008-01-10 Thread Jacob Rhoden
Hi Guys, We are trying to introduce Java technology in our workplace (all the staff have been recently re-trained in Java). As far as I can tell, our System Administrators are really only resourced to be able to install standard Redhat packages. I initially thought we could install a clean

Re: Deploying on a Remote Tomcat Servers

2008-01-10 Thread Jacob Rhoden
Richard G. Reyes wrote: May I ask how you guys deploy on a remote tomcat servers? Is there a way to automate deployment? The most common way is to use an ant build file. One task to build the war, and another task to deploy it. Its quite simple once you know how. I don't have time to write

Re: Remote deployment in tomcat

2008-01-01 Thread Jacob Rhoden
How could Cruise Contol possibly allow you to tell tomcat to (remotely) clean its work directory from an ant build script? I use hudson for continuous integration so maybe I am missing something. Marcio Camurati wrote: Maybe CruiseControl can help you to make it, it's a project that for

Tomcat Filter Ordering

2007-12-06 Thread Jacob Rhoden
-pattern/*/url-pattern /filter-mapping ___ Jacob Rhoden http://www.jacobrhoden.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Tomcat Task Eclipse Mylin Manager

2007-12-04 Thread Jacob Rhoden
Hi Guys, I am trying to find some simple project task manager to improve my small project management. Does anyone know of any tomcat based task repositories that integrate with Eclipse, and are small and simple. There is JIRA but it is large and expensive. (I would much prefer to have a

Tomcat vs (other container) compatibility

2007-11-17 Thread Jacob Rhoden
Hi, Just wondering if there is anyone who has been or is involved in cross JEE container work, how compatible are tomcat apps with other commercial apps such as OC4J, Websphere, BEA and so on? If you don't use tomcat specific things, does it just work, I ask because the compatibility issue

Re: servlet init error pages

2007-11-14 Thread Jacob Rhoden
, display the error page from an apache httpd directory instead of trying to display it from tomcat. Hope that helps! Best Regards, Jacob -- _ Jacob Rhoden Application Architect Systems Development and Integration University of Melbourne Phone

Re: Help with Tomcat IIS

2007-10-24 Thread Jacob Rhoden
Wow, this is the first time I have heard of someone wanting to use Tomcat with IIS. Most IIS people would be using .NET. (I am interested to hear from people if its possible and why you would do it) Is there a speciffic reason you need to connect it to IIS? Did you know that tomcat can be

Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Jacob Rhoden
commands that are resulting in this exception. A quick search on google reveals a bunch of other people who dont know what it is, and well, the source code that throws the exception. Best Regards, Jacob -- _ Jacob Rhoden Application Architect

Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Jacob Rhoden
are both passing POST commands that are resulting in this exception. A quick search on google reveals a bunch of other people who dont know what it is, and well, the source code that throws the exception. Best Regards, Jacob -- _ Jacob Rhoden

Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Jacob Rhoden
of the %xx values is invalid. Are you using mod_jk at all? If so, you'll need to look at browser to httpd/IIS/etc and httpd/IIS/etc to Tomcat. You can turn up the log level to look at the mod_jk messages. -- _ Jacob Rhoden Application

Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Jacob Rhoden
Mark Thomas wrote: Jacob Rhoden wrote: This is as far as I got. Why would the browser be encoding its requests in anything other than base64. Are you using mod_jk? There is a config that could cause this. We did not configure the server, our provider did I just checked

Re: Strante tomcat warning - WARNING: Parameters: Character decoding failed. Parameter skipped.

2007-10-24 Thread Jacob Rhoden
] -- _ Jacob Rhoden Application Architect Systems Development and Integration University of Melbourne Phone: +61 3 8344 2884 - To start a new topic, e-mail: users@tomcat.apache.org

Re: Tomcat Manager session list Gussed user name

2007-10-22 Thread Jacob Rhoden
Jacob Rhoden wrote: I have recently discovered the tomcat manager can not only show a list of sessions, but the Gussed username for that session. This is very handy except it seems to read a session variable called user and just displays it. Our session object called user is a class

Resource vs Resource-ref

2007-10-21 Thread Jacob Rhoden
Hi, I am having trouble with something google and the docs cant seem to help. 1) After setting up a connection to a database in the context.xml file using the Resource tag, do you need the resource-ref in the web.xml file. I have tried with and without and it doesn't seem to make a

Re: Tomcat access log question

2007-07-20 Thread Jacob Rhoden
John Hui wrote: I currently have Tomcat access log enable which will log all the query that hits my web server. Some of the information is confidential. So is there a mechanism that I can use to add a interceptor or filter to encrypt those information before it gets log into the access log?

Read and write inside WEB-INF

2007-07-14 Thread Jacob Rhoden
Hi, I have seen a few apps do this now and I would like to do it, to have a configure page that read and writes a properties file somewhere inside the WEB-INF directory. That said, I have been researching and cant find out where, what is the correct way to find the location of your WEB-INF

Re: Read and write inside WEB-INF

2007-07-14 Thread Jacob Rhoden
Much Appreciated! Thanks. Edoardo Panfili wrote: Jacob Rhoden ha scritto: what is the correct way to find the location of your WEB-INF directory (or your apps directory for that matter). try with String x = this.getServletContext().getRealPath(WEB-INF

Tomcat Application Read/Write properties (mk2)

2007-07-14 Thread Jacob Rhoden
? I know what technically can be done, but what should be done? Thanks, Jacob Rhoden - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Changing tomcat version

2007-07-10 Thread Jacob Rhoden
Hi, I am by no means an expert, however generally I too have had problems running the latest versions of tomcat using Java 1.6.0. I am not sure of the reason but using Java 1.6.0_02 makes most problems go away. (I am guessing the tomcat 6 distro is compiled with java 1.6?) Try this to get

Re: PORTLET live site examples?

2007-07-09 Thread Jacob Rhoden
Where I work, we run a fairly simple Oracle based portal, there are a large number of people who do this, mainly universities: https://ceai1.campuseai.org/portal/page?_pageid=933,5339000_dad=portal_schema=PORTAL -jacob - To

Re: PORTLET live site examples?

2007-07-09 Thread Jacob Rhoden
Johnny Kewl wrote: Hi Jacob. thanks There is tons of literature on it, but boy its like looking for a needle in a hay stack actually finding one that clearly uses all this technology Portal Architecture is heavily used by teaching institutions to solve a number of speciffic problems

Re: PORTLET live site examples?

2007-07-09 Thread Jacob Rhoden
I just thought of a very speciffic example that might make what i was saying clearer. Using the educational field again: Just say you have a central student enrollment online system. Faculty A just wants the student to fill out all forms, say Form 1, form 2 and form 3. However Faculty B says,

Re: What is Tomcat 6 status?

2007-06-28 Thread Jacob Rhoden
It is not as simple as Michael implies, It is my understanding that tomcat 6 makes many improvements over tomcat 5. If this is correct then it makes choosing between 5 and 6 more complicated than you suggest. (And to someone who does not know what the JSP/servlet specs are, this is even more

Re: .Net

2007-06-27 Thread Jacob Rhoden
Tolou Taherinia wrote: I have found mod_aspdotnet a loadable Apache 2 module for serving ASP.NET content using the Microsoft ASP.NET hosting and Microsoft .NET runtime within the Apache HTTP Server process. Is mono a better solution? The first hit on a google search says mod_aspdotnet is

Re: SOS thanks

2007-06-20 Thread Jacob Rhoden
Hi, The closest manderin sound would be nv2 bi4 , ie sounds a bit like characters 女毕. Best Regards, Jacob 吴熊敏 wrote: I don't know the pronounciation of this word newbie. [nju:bai] or [nju:bie] or ..? who can tell me! Thanks in advance!! --

Re: SOS thanks

2007-06-20 Thread Jacob Rhoden
吴熊敏 wrote: Thanks very much. I have another question,what does ie here means? Is it the same as it? I have seen this word ie in many mails,but i don't understand its meaning. ie means For example. It is similar in usage to 比喻说. (I think they are the characters, not sure). Best Regards,

Re: SOS thanks

2007-06-20 Thread Jacob Rhoden
Sorry, I need to correct myself. I just checked with my Chinese colleague to make sure I was getting my Chinese right, and he says 比如 is a better translation than 比喻。 Best Regards, Jacob - To start a new topic, e-mail:

Re: Exchange Language

2007-06-20 Thread Jacob Rhoden
我也学习中问。但是我的中问不好!I like learning chinese, however I am not very advanced. I am interested in learning, however I dont know how this would work over email? Best Regards, Jacob 吴熊敏 wrote: Dear All, I'm learning English,is there anyone want to lean Chinese. I wish to find one who

Re: Exchange Language

2007-06-20 Thread Jacob Rhoden
Oops, I did not mean to send this to the mailing list. Sorry. We should take the conversation off the tomcat mailing list. _ Jacobs Blog -- http://www.jacobrhoden.com/ - To start a

Re: Exchange Language

2007-06-20 Thread Jacob Rhoden
What a great idea, why didn't I think of that? Sam Klin wrote: Can this witty exchange continue in private email? - Original Message - From: Jacob Rhoden [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, June 21, 2007 12:27 AM Subject: Re: Exchange

[OT] Avoiding spam

2007-06-06 Thread Jacob Rhoden
Hi Guys, Slightly off topic, I notice when I post, my email address ends up on hundreds of websites on google. How do people get around this? Fake email addresses? Best Regards, Jacob _ Jacobs Blog -- http://www.jacobrhoden.com/

Tomcat keepalive mysql connection.

2007-06-06 Thread Jacob Rhoden
Hi, Under tomcat 5.5, I would prevent the database connections from timing out by having a Cron job that accesses the website every 10 minute. (Because I couldn't work out a better way). This no longer works under tomcat 6. Are there any better ways than I am not aware of.? I don't think

Track down which app has memory leak.

2007-06-04 Thread Jacob Rhoden
_ Jacob Rhoden Application Architect Systems Development and Integration University of Melbourne Phone: +61 3 8344 2884 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Track down which app has memory leak.

2007-06-04 Thread Jacob Rhoden
David Delbecq wrote: Java comes with a profiling tools available that dump information on a text file upon exist. Look at sun web site for docs about profiling. You jun then have to set the appropriate parameters to your CATALINA_OPTS Hi, Thanks for your reply however I cant find anything

Tomcat 6 Manager App question (Memory usage)

2007-06-02 Thread Jacob Rhoden
Hi, The manager application status page reports the following regarding memory usage: Free memory: 0.86 MB Total memory: 9.35 MB Max memory: 63.56 MB I am confused about what this means. What is the difference between total memory and max memory. Is the free memory what is left of total

Re: Upgrade to TC6 is breaking the app

2007-06-02 Thread Jacob Rhoden
No idea, just a thought though: Tomcat 6 seems to require all your add on jar libraries to go in /lib instead of /common/lib Are you sure you do not have any special jar libraries that must go in there? Gmail User wrote: I am trying to migrate my app from TC5.5.15 to TC6.0.13 under Linux with

Re: Tomcat Security - Disable the http connector

2007-06-02 Thread Jacob Rhoden
Pid wrote: Jacob Rhoden wrote: If I only allow connections to tomcat through apache (mod_jk), is it ok then to turn off the the http connector... Yes, just comment it out and restart. I have already done it. Thanks! I was just worried there would be some un-intended repercussions. Best

Tomcat 6 manager application bug

2007-06-02 Thread Jacob Rhoden
I finally upgraded everything to java 6/tomcat 6. Its all nice! There does seem to be a bug in the manager app. The application list comes out formatted strangely. (See attached picture if it works). I think it might be a bug. -j

Tomcat Security - Disable the http connector

2007-06-01 Thread Jacob Rhoden
Hi, If I only allow connections to tomcat through apache (mod_jk), is it ok then to turn off the the http connector, ie (for example in tomcat 6) Connector port=5001 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=8443 / Connector port=4006 protocol=AJP/1.3

Re: UserDatabase security

2007-05-18 Thread Jacob Rhoden
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Jacob Rhoden - http://uptecs.com/ - To start a new topic, e-mail: users@tomcat.apache.org

Re: UserDatabase security

2007-05-18 Thread Jacob Rhoden
permissions and so on. Make sense? Lookup Tomcat LDAP in google. (: ___ Jacob Rhoden - http://uptecs.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED

mod_jk selective forwarding?

2007-05-15 Thread Jacob Rhoden
good websites on how to do this? Thanks, Jacob __ Jacob Rhoden - http://www.jacobrhoden.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

Re: Tomcat Eclipse Integration

2007-03-27 Thread Jacob Rhoden
with eclipse, I kept on getting strange log error messages with plain vanilla install on Home Windows XP (although admittedly the hong kong edition of xp). I have nothing against eclips, but Netbeans just works. -- __ Jacob Rhoden - http://www.jacobrhoden.com

tomcat-users.xml config in tomcat 6

2007-03-12 Thread Jacob Rhoden
in the logs directory. I cannot work out the problem and google was no help on this one. Any thoughts? Thanks, Jacob __ Jacob Rhoden - http://www.jacobrhoden.com/ - To start a new topic, e

Re: tomcat-users.xml config in tomcat 6

2007-03-12 Thread Jacob Rhoden
Parsons Technical Services wrote: Jacob, Did you restart Tomcat? Can you post your tomcat-users.xml? Doug - Original Message - From: Jacob Rhoden [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, March 12, 2007 11:12 PM Subject: tomcat-users.xml config in tomcat

Re: tomcat connector through cgi-bin?

2007-03-07 Thread Jacob Rhoden
__ Jacob Rhoden - http://www.jacobrhoden.com/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

tomcat connector through cgi-bin?

2007-03-06 Thread Jacob Rhoden
Regards, Jacob -- _ Jacob Rhoden Application Architect Systems Development and Integration University of Melbourne Phone: +61 3 8344 2884 - To start a new topic, e-mail: users

Re: tomcat connector through cgi-bin?

2007-03-06 Thread Jacob Rhoden
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jacob, Jacob Rhoden wrote: Hi, Has anyone here ever had to use a cgi-bin directory to try and connect to tomcat? ie, some script that when run under cgi-bin, connects and forwards the info to tomcat? Ugh

Re: How to set global variable in Tomcat 5.5.17

2007-03-06 Thread Jacob Rhoden
variables in Tomcat and initialize them using the Java classes that I wrote. Thanks -- __ Jacob Rhoden - http://www.jacobrhoden.com/ - To start a new topic, e-mail: users

Re: Mysql timouts...

2007-02-22 Thread Jacob Rhoden
Jacob Rhoden wrote: I am having the seemingly common Broken pipe to mysql problem with tomcat. Resource auth=Container name=jdbc/blah type=javax.sql.DataSource maxActive=5 removeAbandoned=true maxIdle=2 maxIdleTime=300 idleConnectionTestPeriod=60 maxWait=1 username=blah

Re: Mysql timouts...

2007-02-22 Thread Jacob Rhoden
automatically reconnected if there was a problem is bad thing, it is not clear from first reading. Best Regards, Jacob __ Jacob Rhoden - http://rhoden.id.au/ - To start a new

Re: Mysql timouts...

2007-02-22 Thread Jacob Rhoden
David Smith wrote: I think I see what's happening here. You've told the database pool to continually test connections every hour. The validation query itself validationQuery=select 1 testWhileIdle=true timeBetweenEvictionRunsMillis=6 minEvictableIdleTimeMillis=6

Mysql timouts...

2007-02-21 Thread Jacob Rhoden
I am having the seemingly common Broken pipe to mysql problem with tomcat. All i could find was some info about a maxideltime setting and idleconnectiontestperiod where can I find out info about tuning to make sure tomcat doesn't serve out stale database connections? The following settings

Re: how to make a scheduled event on tomcat

2007-02-01 Thread Jacob Rhoden
, this thread does something every two weeks, and make sure when the application is shut down the thread is also shut down or you will have lots of grief. Best Regards, Jacob -- _ Jacob Rhoden Application Architect Systems Development

Re: Session timeout during method execution

2007-01-31 Thread Jacob Rhoden
for data to come back). Yes this is the best way! Best Regards, Jacob _ Jacob Rhoden -- http://www.jacobrhoden.com/ - To start a new topic, e-mail: users@tomcat.apache.org

Tomcat Production Date processing

2007-01-29 Thread Jacob Rhoden
Hi Guys, I am getting a very strange problem I have no idea where to start and I thought you guys might know, its possible its not may not be a tomcat problem... I am running netbeans 5.5(tomcat 5.5.17)/java 1.5/mysql connector 3.1.13 The production server has java 1.6/mysql connecter

Re: Can't startup Tomcat properly, help!

2007-01-29 Thread Jacob Rhoden
You can only run two versions of tomcat if they are configured to use different network ports. Make sore both versions are using a different port. Best Regards, Jacob ICT Department wrote: New problem, although the one from the other day still exists about the IE issues with starting JSPWiki

Re: Tomcat Production Date processing

2007-01-29 Thread Jacob Rhoden
Jacob Rhoden wrote: Sql problem: java.sql.SQLException: Cannot convert value '2007-01-28 01:19:15' from column 5(2007-01-28 01:19:15 ) to DATE. For future reference, If you receive this error in your servlet, it can be resolved by upgrading the mysql connector to the latest version. Best

Re: User-specified log class 'com.sun.idm.logging.trace.TraceLogger' cannot be found or is not useable.

2007-01-23 Thread Jacob Rhoden
topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- __ Jacob Rhoden - http://www.jacobrhoden.com

Re: run service in jdk 6

2007-01-13 Thread Jacob Rhoden
I have been using that configuration for a while with a medium traffic site no troubles so far. (: Kobe wrote: Hi - Are you using Tomcat5.x with JDK6 in production? Are there any problems to be concerned about? Thanks, Kobe Caldarale, Charles R wrote: From: kkus [mailto:[EMAIL

Re: timestamp of tomcat startup?

2007-01-05 Thread Jacob Rhoden
I am no expert, but I thought there was a thing called a LifecycleListener where server.xml can be configured to call some java code upon startup of tomcat, this would do what you want yes? Caldarale, Charles R wrote: From: cifroes [mailto:[EMAIL PROTECTED] Subject: timestamp of tomcat

Deploying to / using context.xml

2007-01-05 Thread Jacob Rhoden
Hi Guys, I am a bit stuck with something. When I deploy my web app in netbeans 5.5 it puts my app under / (instead of /Appname/) after changing the context.xml When I deploy using the tomcat manager manually to the production site, it goes under /Appname/, why would this be? My

Re: timestamp of tomcat startup?

2007-01-05 Thread Jacob Rhoden
I think either a LifecycleListener or ServletContextListener is what you want, you can detect tomcat startup/shutdown and/or application startup/shutdown http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/LifecycleListener.html Let's write a simple application

Re: Deploying to / using context.xml

2007-01-05 Thread Jacob Rhoden
: From: Jacob Rhoden [mailto:[EMAIL PROTECTED] Subject: Deploying to / using context.xml I have tried with path= and path=/, what am i doing wrong? They are both tomcat 5.5.x Unless your Context element is in server.xml (strongly discouraged), there should not be a path attribute at all

Re: Deploying to / using context.xml

2007-01-05 Thread Jacob Rhoden
Thanks! That makes it all clear (: So it means if you have 5 hosts you need to have 5 applications in netbeans all called ROOT (: Caldarale, Charles R wrote: From: Jacob Rhoden [mailto:[EMAIL PROTECTED] Subject: Re: Deploying to / using context.xml Thanks, let me change my question

Problem setting server.xml host context field.

2007-01-03 Thread Jacob Rhoden
Hi Guys, I am new to all this so it could be a stupid question. In my server.xml I have setup a second host entry, to enable mapping of a particuar application to a virtual host in apache (via mod_jk2). The following seems to work ok, except or a possible bug: Host name=fish.org

Re: Problem setting server.xml host context field.

2007-01-03 Thread Jacob Rhoden
to documents that might help would be much appreciated! Best Regards, Jacob Caldarale, Charles R wrote: From: Jacob Rhoden [mailto:[EMAIL PROTECTED] Subject: Problem setting server.xml host context field. I have setup a second host entry, to enable mapping of a particuar application to a virtual host

Re: Problem setting server.xml host context field.

2007-01-03 Thread Jacob Rhoden
I would like to use virtual hosts so that: mainserver.com:8080/Application1/index.jsp maps to fish.com/index.jsp mainserver.com:8080/Application2/index.jsp maps to apple.com/index.jsp Thanks for your patience, I have one final question I think, Based on previous posts, I have created inside

Re: Problem setting server.xml host context field.

2007-01-03 Thread Jacob Rhoden
Jacob Rhoden wrote: My question now however is, the manager to manage deployment of war files seems only to work for the first Host container with directory /usr/local/webapps. How do I make it work for both? Do I have to load two copies of the manager somehow? (I dont have much memory