RE: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora

2006-12-12 Thread Caldarale, Charles R
> From: Mon Cab [mailto:[EMAIL PROTECTED] > Subject: Tomcat shutting down when instantiating > javax.swing.ImageIcon on Fedora > > I have been advised to uninstall gnu java and replace it with Sun SDK, > which I am in the process of trying to figure out how to do. Until you have a real JRE in

Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora

2006-12-12 Thread Mon Cab
I am running Tomcat, on Fedora 4. Using java version "1.4.2" gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8) Copyright (C) 2005 Free Software Foundation, Inc. My application works fine until the following line of code is reached. ImageIcon ii = new javax.swing.ImageIcon(myFile.getC

Re: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder

2006-12-12 Thread Mon Cab
Thanks Leon I will research how to uninstall gnu and install sun sdk. (I'm new to UNIX). PS. Do you know of any other issues I should be aware of with Tomcat running on Fedora (v4)? --- Leon Rosenberg <[EMAIL PROTECTED]> wrote: > On 12/12/06, Christopher Schultz <[EMAIL PROTECTED]> > wrot

RE: Feature request: Server level character encoding instead adding afilter for each web application.

2006-12-12 Thread Caldarale, Charles R
> From: lovetide [mailto:[EMAIL PROTECTED] > Subject: Feature request: Server level character encoding > instead adding afilter for each web application. > > 1. Repeated configuration is too bored: If Tomcat supplied > that feature, we can delete the same config from each web.xml Have you trie

RE: Multi processor issue

2006-12-12 Thread Caldarale, Charles R
> From: JiaDong Huang [mailto:[EMAIL PROTECTED] > Subject: RE: Multi processor issue > > What I have been saying is that we should reconsider very > carefully whether there should be any enhancement in Tomcat. > From the Tomcat code you dug out, there is something not > quite perfect, in term of

Feature request: Server level character encoding instead adding a filter for each web application.

2006-12-12 Thread lovetide
We have many web applications running on Tomcat, and we choose UTF-8 character encoding for each web application, so we must add a SetCharacterEncoding filter for each web application to make sure the data POSTed from a FORM can be processed correctly. As I know, Tomcat has a server.xml config fi

RE: question about context file entries and TC 5.5

2006-12-12 Thread Michael Hencin
No, its not a typo, I copied their "webviewer" folder, added my jsp, renamed it "brit-viewer" which was a typo, but I deployed it as "brit-viewer" anyway into the webapps folder, then restarted tomcat. Is it possible that by renaming the folder, that had some ill effect with the applications web.x

tomcat 5.0 context redirect

2006-12-12 Thread ying lcs
Hi, I notice some strange feature in tomcat 5.0. If i have a url like this http://localhost:8080/mytestapp?qa=1, it will be redirected to http://localhost:8080/mytestapp/?qa=1, in order words, "context" is automatically redirected to "context/". Can you please tell me why tomcat 5.0 does it? i

RE: Multi processor issue

2006-12-12 Thread JiaDong Huang
Chuck, I am very clear about the whole thing. Please try to understand my point properly too. Your point can be right and valid and would be very significant to help Gael. Gael should be able to get to the point where his app might do wrong, or miss leading Tomcat threads. What I have been sayin

Re: "File not found" with file include in a jsp file.

2006-12-12 Thread David Smith
My apologies for reposting this outside the thread, but Thunderbird has a real problem with the encoding of the original thread and has made a mess of the minimal formatting I tried to put in below. --David Try this directory structure, starting with the appbase you declared in your host defin

Re: "File not found" with file include in a jsp file.

2006-12-12 Thread David Smith
No, no, no... Try this directory structure, starting with the appbase you declared in your host definition: wwwroot ROOT headerCon.jsp product product_view.jsp WEB-INF web.xml The web.xml can be very minimal -- just a root element with the appropriate dtd or schema declaration. Then request ht

RE: question about context file entries and TC 5.5

2006-12-12 Thread Caldarale, Charles R
> From: Michael Hencin [mailto:[EMAIL PROTECTED] > Subject: RE: question about context file entries and TC 5.5 > > So my app name is "brit-viewer" I'll assume that contains a minor typo. Just checking, since some versions of Tomcat seem to handle the element for the default (ROOT) app slightly

RE: "File not found" with file include in a jsp file.

2006-12-12 Thread Caldarale, Charles R
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wang Penghui > Subject: Re: "File not found" with file include in a jsp file. > > I am sorry that, i could not understand what's your mean. > Maybe i am not so smart enough, could you mind explain it > for me in detail again. First, the deploym

RE: question about context file entries and TC 5.5

2006-12-12 Thread Michael Hencin
The web app is the birt web app, from http://www.eclipse.org/birt/phoenix/ I added some jsp pages to the app that use a database, its that database JNDI I am adding to the web app, so my jsp pages can access it. So my app name is "brit-viewer" the app did not have a context file in the meta-inf,

RE: question about context file entries and TC 5.5

2006-12-12 Thread Caldarale, Charles R
> From: Michael Hencin [mailto:[EMAIL PROTECTED] > Subject: RE: question about context file entries and TC 5.5 > > In my 5.0.28, when I did the same thing, add a env > variable to a context, it added the entry to the > conf\Catalina\localhost\myapp.xml file. I expected > 5.5 to do the same. As w

Re: "File not found" with file include in a jsp file.

2006-12-12 Thread Wang Penghui
Caldarale, Charles R 写道: From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wang Penghui Subject: Re: "File not found" with file include in a jsp file. Here is my configuraiton about this virtual host: appBase="/home/test/wwwroot" autoDeploy="true" The docBase attribute should not be bla

Re: Multi processor issue

2006-12-12 Thread Martin Gainty
Jiadong/Gael Can you download the code to a sandbox and implement your synchronized algorithm in setLocked to test out the intended result? Or is the code not available? M- --- This e-mail message (including attachments, if

Re: "File not found" with file include in a jsp file.

2006-12-12 Thread Wang Penghui
David Smith 写道: > You can't have files in the webapps top level. In this regard things > stop working the way they do in Apache Httpd. Move your headerCon.jsp > file down into the product webapp or put the whole works in a ROOT > directory inside of your wwwroot. > > --David > Hello, David, Fol

RE: question about context file entries and TC 5.5

2006-12-12 Thread Michael Hencin
In my 5.0.28, when I did the same thing, add a env variable to a context, it added the entry to the conf\Catalina\localhost\myapp.xml file. I expected 5.5 to do the same. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 6:36 PM To: T

RE: question about context file entries and TC 5.5

2006-12-12 Thread Caldarale, Charles R
> From: Michael Hencin [mailto:[EMAIL PROTECTED] > Subject: RE: question about context file entries and TC 5.5 > > Nothing in my meta-inf folder. There wouldn't be. Tomcat treats deployment folders as if they were read-only (although the app might not). Haven't had time to track down where the

RE: Multi processor issue

2006-12-12 Thread Caldarale, Charles R
> From: JiaDong Huang [mailto:[EMAIL PROTECTED] > Subject: RE: Multi processor issue > > Not sure if the app really cares which thread should do the > parameterMap initialization. You're missing the entire point of this exercise: no Request object should EVER be processed by more than one threa

RE: Multi processor issue

2006-12-12 Thread JiaDong Huang
Great to see the bottom of the MT issue has been revealed/understood. I believe Gael may be able to fix his app now. Hope it can be an easy fix... Not sure if the app really cares which thread should do the parameterMap initialization. If it does not, then it would be a good idea for Tomcat to ref

RE: question about context file entries and TC 5.5

2006-12-12 Thread Michael Hencin
Nothing in my meta-inf folder. I don't have anything to start, or after I make mods with the admin. I deployed this web app as a folder, not a war file. -Original Message- From: Warren Pace [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 5:52 PM To: Tomcat Users List Subject: R

Re: [tomcat 5.0] - DBCP pooling vs sharing a single open connection

2006-12-12 Thread Ran
Thanks Chris, "If you are going to be running several queries in a row, you should definitely re-use a connection that you already have, instead of returning the connection to the pool after every query and then getting another one for the next." This is what I plan to do. I have multiple statem

Re: question about context file entries and TC 5.5

2006-12-12 Thread Warren Pace
look in the META-INF folder inside your webapp's directory maybe > > From: "Michael Hencin" <[EMAIL PROTECTED]> > Date: 2006/12/12 Tue AM 10:47:58 EST > To: "'Tomcat Users List'" > Subject: question about context file entries and TC 5.5 > > I am starting to use TC 5.5, JVM 1.5.0_06-b05 on XP. I

Re: Running Tomcat5.5 as 64 bit application

2006-12-12 Thread Mladen Turk
Sinkinson,Andrew [NCR] wrote: Hi All, I am currently in the process of setting up a Windows 2003 AMD 64 bit server. I would like to know if it is possible to run Tomcat 5.5 as a service and as a 64 bit application. Does anybody have any experience with this? Any help would be greatly apprecia

RE: Running Tomcat5.5 as 64 bit application

2006-12-12 Thread Sinkinson,Andrew [NCR]
Ok I have been able to get Tomcat5.5 64 bit running as a service with a 64 bit VM. If you are looking to do such an install just follow the instructions listed on this site: http://www.nabble.com/Mini-HOW-TO%3A-Tomcat-as-a-service-on-Windows-Serv er-2003-64-bit-edition-tf1735687.html#a4716292 ---

Displaying a maintenance page during re-deployments via manager app

2006-12-12 Thread Felix Gnass
Hello, I'm using Tomcat 5.5 + Apache 2 + mod_jk and the Tomcat Ant tasks to deploy my applications via the Tomcat Manager. I want the Apache to display a maintenance message during re-deployments. When the application is undeployed, everything works fine. Tomcat sends a 503 error code and Apache

Re: "File not found" with file include in a jsp file.

2006-12-12 Thread David Smith
You can't have files in the webapps top level. In this regard things stop working the way they do in Apache Httpd. Move your headerCon.jsp file down into the product webapp or put the whole works in a ROOT directory inside of your wwwroot. --David Wang Penghui wrote: >Dick Balaska 写道: > > >>If

RE: Multi processor issue

2006-12-12 Thread Caldarale, Charles R
> From: Marziou, Gael [mailto:[EMAIL PROTECTED] > Subject: RE: Multi processor issue > > I already did at the beginning of our investigation as I suspected the > JNI code but it had no effect. That's what I thought, but wasn't sure, since at least one of the stack traces you sent (8 December) ha

RE: "File not found" with file include in a jsp file.

2006-12-12 Thread Caldarale, Charles R
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wang Penghui > Subject: Re: "File not found" with file include in a jsp file. > > Here is my configuraiton about this virtual host: > > appBase="/home/test/wwwroot" autoDeploy="true" > > The docBase attribute should not be blank. Apps sho

RE: Multi processor issue

2006-12-12 Thread Marziou, Gael
> Anything dealing with a session must be careful not to expose a > Request object to the session scope, since there's the risk another > request for the same session may get confused with the first - I > suspect that's what's happening here. Will do. > You should take a careful look at all the

Re: "File not found" with file include in a jsp file.

2006-12-12 Thread Wang Penghui
Dick Balaska 写道: > If /product_view.jsp is at the root of your tree (a top level document), > surely it can not know how to go up above the root. This is by design. > > I say it's at the root of the tree of the virtual host based on the > parse error "/product_view.jsp(2,0)" > > dik Thanks very

RE: Multi processor issue

2006-12-12 Thread Caldarale, Charles R
> From: Marziou, Gael [mailto:[EMAIL PROTECTED] > Subject: RE: Multi processor issue > > Correct me if I am wrong but it seems to me that the 2 > threads are from Tomcat, not from our application. They are, but they go through a lot of your application code prior to reaching getParameterMap().

RE: Multi processor issue

2006-12-12 Thread Marziou, Gael
I used sleep() as you can see in the modified version of getParameterMap() at the end of this message. I got the issue and here is the trace. What I call "original thread" is the one that was the first to call Requuest.getParameterMap() Correct me if I am wrong but it seems to me that the 2 thre

question about context file entries and TC 5.5

2006-12-12 Thread Michael Hencin
I am starting to use TC 5.5, JVM 1.5.0_06-b05 on XP. I use the TC admin to edit the context for one of my webapps. I add a datasource (jdbc/mywebapp), save and commit the changes. While I can see the entries while using the admin, I cannot discern where they have been stored. I looked in the server

RE: how do I restrict access to folder?

2006-12-12 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: how do I restrict access to folder? > > .htaccess > http://www.javascriptkit.com/howto/htaccess11.shtml The original poster was asking about Tomcat, not httpd. As another respondent noted, placing files under WEB-INF within the appl

RE: Multi processor issue

2006-12-12 Thread Caldarale, Charles R
> From: Marziou, Gael [mailto:[EMAIL PROTECTED] > Subject: RE: Multi processor issue > > I attached below my bug catcher in > org.apache.catalina.connector.Request. Looks good to me. I'd be very interested in the results. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE

RE: Multi processor issue

2006-12-12 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Multi processor issue > > Thread.yield() will also work. It's unclear which is better from the > API, but I would imagine that a VM implementor would write the > Thread.yield method such that any remaining CPU time is yielded >

Re: [tomcat 5.0] - DBCP pooling vs sharing a single open connection

2006-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ran, Ran wrote: > My plan was to share an open-connection within a bean, pooled connection > across beans. Can you explain this in more detail? Did you mean that you wanted a single connection for /permanent/ use within a bean, or did you mean that y

RE: Deploying shared .jar's

2006-12-12 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Deploying shared .jar's > > Does that mean that Dave can put his JAR file into > $CATALINA_HOME/common/lib instead of $CATALINA_HOME/shared/lib and he > will get the desired behavior? Yes, except that shared is under CATALINA_B

Re: how do I restrict access to folder?

2006-12-12 Thread Martin Gainty
.htaccess http://www.javascriptkit.com/howto/htaccess11.shtml Tak Martin- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain i

RE: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder

2006-12-12 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Subject: Re: java.lang.ClassNotFoundException: > com.sun.image.codec.jpeg.JPEGImageEncoder > > I hope with sun making jvm open source it will change. The odd part is that the Sun JREs have always been freely downloadable and redistributable (as

Re: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder

2006-12-12 Thread Leon Rosenberg
On 12/12/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: > On 12/12/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: >> Well, /there's/ yer problem: you have GNU Java -- not that there's >> anything wrong with that.

Re: tomcat pauses then crashes after a period of time

2006-12-12 Thread Jon Wingfield
Another thing to note is that mysql automatically closes idle connections after 8hrs (by default). You can configure DBCP to test on borrow or to periodically squirt some sql down idle connections. HTH, Jon David Wood wrote: Chris, Thanks very much for the suggestion. I'm not using conne

Re: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder

2006-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: > On 12/12/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: >> Well, /there's/ yer problem: you have GNU Java -- not that there's >> anything wrong with that. > > christopher: > There are a lot things wrong with that! I

Re: Deploying shared .jar's

2006-12-12 Thread David Kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Deploying shared .jar's Was that feature changed in the 5.0 and later versions? My 4.1.x version allows me to put f

Re: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder

2006-12-12 Thread Leon Rosenberg
On 12/12/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mon, Mon Cab wrote: > Here's the results of java -version > > java version "1.4.2" > gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8) Well, /there's/ yer problem: you have GNU Jav

Re: Multi processor issue

2006-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dong, JiaDong Huang wrote: > Yes. Before and maybe within the loop. That should get the MT issue > reproduced much easier. This was a great idea, by the way. >> What do you mean by yelding the CPU (sorry I'm French) ? > > Yielding the CPU means to

Re: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder

2006-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mon, Mon Cab wrote: > Here's the results of java -version > > java version "1.4.2" > gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8) Well, /there's/ yer problem: you have GNU Java -- not that there's anything wrong with that. You can't lo

Re: Deploying shared .jar's

2006-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Subject: Re: Deploying shared .jar's >> >> Was that feature changed in the 5.0 and later versions? My 4.1.x >> version allows me to put files into $CATALINA_

RE: Multi processor issue

2006-12-12 Thread JiaDong Huang
-Original Message- From: Marziou, Gael [mailto:[EMAIL PROTECTED] Sent: Tuesday, 12 December 2006 9:21 PM To: Tomcat Users List Subject: RE: Multi processor issue > Do you mean I should add a delay before the while loop to increase the > length of the critical section? Yes. Before and may

balancer application

2006-12-12 Thread Ingolf Knopf
I test the balancer web application shipped with tomcat 5.5.20. It seems to work with a GET request, but nothing happens when I send a POST request. What did I wrong? Thanks, Ingolf. - To start a new topic, e-mail: users@tomcat.a

Re: how do I restrict access to folder?

2006-12-12 Thread olivier nouguier
hi Just put then in /WEB-INF/templates ... On 12/12/06, Sköldheimer Fredrik <[EMAIL PROTECTED]> wrote: Hello I'm new to the tomcat servers (have experience from apache webserver). I have a project coded in Java/JSF/Facelets and I need to restrict access to the folder that contains the xhtml-t

RE: Multi processor issue

2006-12-12 Thread Marziou, Gael
Dong, I'm not sure I understand your suggestion, I attached below my bug catcher in org.apache.catalina.connector.Request. Do you mean I should add a delay before the while loop to increase the length of the critical section? What do you mean by yelding the CPU (sorry I'm French) ? Gael pub

how do I restrict access to folder?

2006-12-12 Thread Sköldheimer Fredrik
Hello I'm new to the tomcat servers (have experience from apache webserver). I have a project coded in Java/JSF/Facelets and I need to restrict access to the folder that contains the xhtml-template files. The index.xhtml files should be able to reach the content in the folder that contains the

RE: Tomcat Webapp barfing when saving Image

2006-12-12 Thread Peter Crowther
> From: Mon Cab [mailto:[EMAIL PROTECTED] > file:/etc/tomcat5/Catalina/localhost/datingapp.xml > 2006-12-11 22:58:00,036 [main] ERROR > tomcat.localhost./datingapp.Context - Error starting static Resources > java.lang.IllegalArgumentException: Document base /datingapp does not > exist or is not a

RE: Multi processor issue

2006-12-12 Thread JiaDong Huang
Gael, If you can build the Tomcat code/component, put in time delay code and also yield the CPU, within the ParameterMap initialization procedure. Dong -Original Message- From: Marziou, Gael [mailto:[EMAIL PROTECTED] Sent: Tuesday, 12 December 2006 12:36 AM To: Tomcat Users List Subject

Re: Character encoding

2006-12-12 Thread olivier nouguier
export CATALINA_OPTS="-Dfile.encoding=UTF-8" On 12/12/06, Mester József <[EMAIL PROTECTED]> wrote: Hi I have some problem with character encoding. I have found a page ( http://junlu.com/msg/1132.html ) and on this page there is a direction: 2. In the Catalina.bat (windows) catalina.sh (linux)

Re: Tomcat5.5.x cannot run on Java6

2006-12-12 Thread Eric Chow
Sorry, it works. On 12/12/06, David Smith <[EMAIL PROTECTED]> wrote: While I haven't had a chance to actually try it yet, I would imagine just change the JAVA_HOME to point to 6 and start. You could try it and let us know what happens. --David Eric Chow wrote: > Hello, > > How can run Tomcat

RE: [OT] Multi processor issue

2006-12-12 Thread JiaDong Huang
It would be pretty significant if it can get into the thread level clustering, especially for those database update threads group. What the real world is using for database connection clustering? Something like C-JDBC technology? Dong -Original Message- From: Caldarale, Charles R [mailto

Character encoding

2006-12-12 Thread Mester József
Hi I have some problem with character encoding. I have found a page ( http://junlu.com/msg/1132.html ) and on this page there is a direction: 2. In the Catalina.bat (windows) catalina.sh (linux) there must be a switch added to the call to java.exe. The switch is: -Dfile.encoding=UTF-8 But I