Re: How can I realize server side GUI??

2007-02-22 Thread Pid
That doesn't really sound like a Tomcat question. This list is best at responding to questions about the Tomcat server, rather than open ended development questions. You'll probably have more luck in the Sun Java Forums, if indeed Java is the language that you intend to use. In most cases

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

dynamic JSP include?

2007-02-22 Thread Kristian Rink
Folks; currently I am playing around with something like that in my JSP pages... jsp:include flush=true page=/pages/%= request.getParameter(site)% /jsp:include ... which, as I understand the JSP reference, should be possible. However, it doesn't seem to work right. It

Re: dynamic JSP include?

2007-02-22 Thread David Delbecq
Please give us the full stacktrace, including nested exceptions. (caused by...) if any. En l'instant précis du 02/22/07 12:58, Kristian Rink s'exprimait en ces termes: Folks; currently I am playing around with something like that in my JSP pages... jsp:include flush=true

Re: dynamic JSP include?

2007-02-22 Thread Tim Funk
A few problems: 0) Try page='/pages/%= request.getParameter(site)%' (Notice the use of single quotes - jasper is getting confused by the extra use of double quotes 1) If you are not including JSP params (jsp:param) you should use jsp:include ../ 2) Try validating %= request.getParameter(site)%

Re: System property use in web.xml?

2007-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Bill Barker wrote: [EMAIL PROTECTED] wrote in message However, when I try to deploy this webapp to Websphere 6.0.x, even after defining a custom property for 'region' in the server profile, I get a: java.io.FileNotFoundException:

Re: Help with tomcat installation

2007-02-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pranathi, Pranathi wrote: I am a new user of tomcat. I have successfully downloaded tomcat 4.1.34 and installed it. If you are a new user of Tomcat, you should dump the 4.1 version and upgrade to at least 5.5. This probably isn't going to solve

Re: dynamic JSP include?

2007-02-22 Thread Kristian Rink
Hi Tim, list; [Tim Funk [EMAIL PROTECTED] @ Thu, 22 Feb 2007 07:30:23 -0500] A few problems: 0) Try page='/pages/%= request.getParameter(site)%' (Notice the use of single quotes - jasper is getting confused by the extra use of double quotes This doesn't work, it seems using single quotes

Re: Mysql timouts...

2007-02-22 Thread David Smith
If you read through http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html, you'll find the validationQuery attribute is used to test connections before they are borrowed from the pool. The query can be as simple as select 1. As a side note, drop the autoReconnect=true from your

Re: Get rid of 8080 port in Tomcat 3.3

2007-02-22 Thread Stefan
Steffen Heil schrieb: Hi That's the way You should go: http://www.linux.org.mt/article/tomcat-ports I totally disagree. First, it would surely be best to update to 6.0 and run it using jsvc However, let's look at the solution in the link above. 1. The Apache solution. (Which

Re: Mysql timouts...

2007-02-22 Thread Jacob Rhoden
Thanks for your reply, I have read through that document and the one on the mysql website, and discovered these other parameters, so I added this as well. It didnt make any difference. The mysqladmin program still reports the connections going untouched for hours. validationQuery=select

Still connection problems between IIS tomcat 5.5.12....

2007-02-22 Thread Per Johnsson
It's me again, we have not yet solved our problems, but now we have turned one of the IIS servers to IIS 5 compability mode which made us get som logs from the tomcat connector. Short Review of setup: Tomcat 5.5.12 APR 1.1.0-dev ispi_redirect.dll 1.2.20 between the iis and tomcat we have a

RE: Mysql timouts...

2007-02-22 Thread Tim Lucia
-Original Message- From: Jacob Rhoden [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 8:44 AM To: Tomcat Users List Subject: Re: Mysql timouts... I will have to read the documents to find out why having the connection automatically reconnected if there was a problem

isapi_redirect problem when servlet mapping is the same as the host

2007-02-22 Thread Baron, Bob \(LNG-OAK\)
I'm wondering if there is some kind of easy solution to this problem that won't require a customization to work around it. The problem occurs when the machine name matches the servlet name (e.g. http://foo/foo). The problem is that the isapi_redirect is processing all traffic going to the site

Compiling JSP Pages on Startup

2007-02-22 Thread aanter
All, Is there a known way to have Tomcat Compile JSP pages upon startup instead of pre-compiling and or waiting for the first page access? Resin has a facility like this using JspPrecompileListener. I see nothing like this in Tomcat.Has anyone ever attempted this? If not where would the

Restarting Webapplication From Command Line

2007-02-22 Thread Bio Jazz
I understand how to restart the entire Tomcat service from the command line. However, I have a need to restart a single application from the command line without restarting the entire Tomcat service (ie without affecting the other deployed applications). Is there a way to restart a single web

Re: Compiling JSP Pages on Startup

2007-02-22 Thread David Delbecq
Look at lambda probe (an amdinistration webapp for tomcat), it has a menu to compile JSPs. If it does not fit your needs, i suppose you can still rip this code part and reuse it in a listener :) [EMAIL PROTECTED] a écrit : All, Is there a known way to have Tomcat Compile JSP pages upon

Running tomcat as an unprivileged user with a war file

2007-02-22 Thread Jim Goodspeed
I would like to run tomcat as an unprivileged user for security reasons, but when my war file is created through Ant it loses all of the permissions (as it says it will in the Ant manual). Does anyone know of a way to run tomcat as an unprivileged user and still use a war file which when it is

Re: Restarting Webapplication From Command Line

2007-02-22 Thread Lucas Galfaso
Hi, If you set the host autoDeploy property to true. You can redeploy doing a touch /WEB-INF/web.xml if not, you need the client deployed. Regards, LG On 2/22/07, Bio Jazz [EMAIL PROTECTED] wrote: I understand how to restart the entire Tomcat service from the command line. However, I have a

Re: Compiling mod-jk plugin for SunOne on Solaris

2007-02-22 Thread Kirk
I tried the -statis-libgcc in the Makefile and it compiled and ldd produces no output, which I am assuming means no dependencies. So when i fire up the sunone server now I get a different error. failure: CORE3170: Configuration initialization failed: Error running init function load-modules:

RE: Restarting Webapplication From Command Line

2007-02-22 Thread Caldarale, Charles R
From: Bio Jazz [mailto:[EMAIL PROTECTED] Subject: Restarting Webapplication From Command Line However, I have a need to restart a single application from the command line without restarting the entire Tomcat service (ie without affecting the other deployed applications). Check the doc:

Re: Running tomcat as an unprivileged user with a war file

2007-02-22 Thread David Smith
Jim Goodspeed wrote: I would like to run tomcat as an unprivileged user for security reasons, but when my war file is created through Ant it loses all of the permissions (as it says it will in the Ant manual). Does anyone know of a way to run tomcat as an unprivileged user and still use a

Can one have a log4j repository per webapp in Tomcat?

2007-02-22 Thread Morris Jones
At my company we have Tomcat 5.5 instances running lots of webapps, and problems with those apps interfering with each other's log files -- especially in instances of libraries like hibernate. I've read and understand the principles of using log4j respositories, such as Ceki Gülcü's document

RE: Pls help : How to make case insensitive URL(JSP) on Tomcat 5.5

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
can't you force something like that in the welcome page attribute of the web.xml file in the conf folder? i.e. welcome-file-list welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file welcome-fileindex.jsp/welcome-file

RE: authentication security constraint error

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
thanks, Chuck, I think that was itI had admin before service, and it didn't like that at all. I guess that violates the hierarchical structure. Barry -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 5:35 PM To: Tomcat Users

how to pass a parameter to tomcat startup in windows?

2007-02-22 Thread legolas
Hi Thank you for reading my post. I need to pass a parameter like : -javaagent:%INFRARED_HOME%\aspectjweaver-1.5.0.jar to tomcat startup. the tutorial talks about a bat file that we can add this parameter to it but Tomcat 5.5.17 for windows does not has any +batch file. It just has two executable

RE: how to pass a parameter to tomcat startup in windows?

2007-02-22 Thread Caldarale, Charles R
From: legolas [mailto:[EMAIL PROTECTED] Subject: how to pass a parameter to tomcat startup in windows? I need to pass a parameter like : -javaagent:%INFRARED_HOME%\aspectjweaver-1.5.0.jar to tomcat startup. the tutorial talks about a bat file that we can add this parameter to it but

Persistent Mbeans

2007-02-22 Thread Ravi116
I have a requirement to create persitant custom mbeans in tomcat (read from a servlet filter). I have created a MBean and added the descriptor to server.xml - Listener className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0

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

Re: How can I realize server side GUI??

2007-02-22 Thread wang suya
Hello Peter You are right. I want to make a graphical interface served form Web server to a Web browser. It displays a sheet with serveral rectangle cells like execl sheet and when I drag one cell the size of cell can change. Thank you very much. Hope you can help me. Wang suya Peter

RE: How can I realize server side GUI??

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
sounds like a lot of Swing to me...is it not? -Original Message- From: wang suya [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 5:48 PM To: Tomcat Users List Subject: Re: How can I realize server side GUI?? Hello Peter You are right. I want to make a graphical

RE: Connection reset error

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
another oddity about this (maybe not). The error occurs/ed when I tried it thru the IP address of the box. In trying it thru the domain name, I don't get that error. -Original Message- From: Propes, Barry L [GCG-NAOT] Sent: Thursday, February 22, 2007 5:49 PM To: Tomcat Users List

Re: How can I realize server side GUI??

2007-02-22 Thread wang suya
Hello Propes But as I know Swing is client side, how can I write a code use Swing and run in server side? And I will use database,too. Thank you very much. Wang suya Propes, Barry L [GCG-NAOT] さんは書きました: sounds like a lot of Swing to me...is it not? -Original Message- From: wang suya

mod_jk sticky session not working??

2007-02-22 Thread Scott Danforth
I'm trying to use jk1.2.20 mod_jk with Apache 1.3 for load balancing two tomcat services and sticky sessions aren't working. My application requires authentication, and displays a login on a new session. When I kill one of the tomcats, the application works fine (i.e., the authenticated

Re: How can I realize server side GUI??

2007-02-22 Thread wang suya
Hello I decided to use javascript and AJAX to realize my application but when the sheet cells are drawed by DIV, the DIV's size can be decided by style type, when I drag the DIV eage, how can I change the DIV style type? Could anbody tell me or give me other ideas. Thanks at advance. Wang

Accessing and managing html files in another sub domain

2007-02-22 Thread Lena Breijer
Hi The first java web project I did was without using an IDE and old version that came with the book in the class. It was simple. I thought I had learned Tomcat - stick it all in webapps and create web.xml ect. Then I upgraded, I am using the latest net beans 5.5 bundled with apache Tomcat

Re: Tomcat and OSGi

2007-02-22 Thread Lucas Galfaso
Hi, Was anybody able to embed Tomcat, and a WebApp as an OSGi plugin? I was able to embed Tomcat, but I am unable to make Tomcat find my web app using the classloader (or any form of VFS.) Regards, LG - To start a new topic,

Please Help: Tomcat 5.5.17 SSL Help

2007-02-22 Thread Blake Smith
Hi, I am running a Red Hat Enterprise 4 Linux Server. I have Tomcat installed under port 8080. I have setup iptables to redirect all request for port 80 to 8080. I also have Java JDK 1.5.0_10 installed. The $CATALINA_HOME and $JAVA_HOME variables have been set inside /etc/profile. Tomcat

Re: mod_jk sticky session not working??

2007-02-22 Thread Mladen Turk
Scott Danforth wrote: I'm trying to use jk1.2.20 mod_jk with Apache 1.3 for load balancing two tomcat services and sticky sessions aren't working. get_most_suitable_worker::jk_lb_worker.c (733): searching worker for partial sessionid B4FE8293E8E81F8071F39EDD1E594BEC [Thu Feb 22 19:08:13 2007]

Re: Please Help: Tomcat 5.5.17 SSL Help

2007-02-22 Thread Bob Hall
--- Blake Smith [EMAIL PROTECTED] wrote: I have uncommented the section within server.xml and pointed it to the location of the keystore, and it's password. I even changed the port from 8443 to 443 and the corresponding forwarding value for 8080. Is Tomcat listening on port 443? $

RE: Please Help: Tomcat 5.5.17 SSL Help

2007-02-22 Thread PATTUS, Jean-Philippe
You should launch tomcat with this java option -Djavax.net.debug=ssl, you will have probably more details about the problem -Message d'origine- De : Blake Smith [mailto:[EMAIL PROTECTED] Envoye : vendredi 23 fevrier 2007 03:34 A : users@tomcat.apache.org Objet : Please Help: Tomcat 5.5.17

clustering and jvmRoute

2007-02-22 Thread Kristian Rink
Folks; yesterday I dealt with the tomcat clustering feature for the first time, getting things basically set up and working in quite a short time (thanks to the documentation which is rather good), and even made my application distributable / the session attributes serializable really fast.

Re: how to pass a parameter to tomcat startup in windows?

2007-02-22 Thread ashish shrivastava
Try this: Open the tomcat console for widows (Start-ALL Programs --Apache Tomcat 5.X-- Monitor Tomcat). click on JAVA tab (the fourth one) Add the parameter in JAVA Options: *-Djavaagent:%INFRARED_HOME%\aspectjweaver-1.5.0.jar * now you can access the above property in your code Thanks Ashish