Re: org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request fai

2007-07-23 Thread Rainer Jung
No versions given, no configs given, ... Is there an additional reverse proxy in front of the Apache httpd? MC Moisei wrote: Sorry about the formatting. It's hotmail cr*p! So, I run Apache2 that fronts a Tomcat in mod_jk and I have this multi-upload screen(ajax+java) that works great from my int

Re: Bean and Servlet

2007-07-23 Thread Mohammed Zabin
Actually, I wanted to pass this list from within a Tag to be used inside another Servlet class, (i.e. the tag class after finishing rendering its elements, goes to a servlet, so, i need to pass this list to that servlet. As i have stated above, i used the following to store the list in the request

Re: What to put in Linux filesystem for Tomcat?

2007-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lightbulb, lightbulb432 wrote: > What is the minimum set of folders and files needed for Tomcat to run on > Linux? I ask because if you dedicate a server for Tomcat and nothing else, > you must want to minimize the size of the filesystem, disable/dele

Re: Paths, Directories, Cookies: How do you get a session, or a file?

2007-07-23 Thread Filip Hanik - Dev Lists
aladdin wrote: After using Tomcat for over a year, one thing I still can't get straight is how directories are resolved. I would love it if someone could point me to a reference that ties together the context in server.xml, mod_jk mounts, and web.xml mappings, particularly with regard to an Ap

Re: What to put in Linux filesystem for Tomcat?

2007-07-23 Thread Filip Hanik - Dev Lists
Tomcat doesn't need anything but the JVM, but what the JVM needs, that's another story :) Filip lightbulb432 wrote: What is the minimum set of folders and files needed for Tomcat to run on Linux? I ask because if you dedicate a server for Tomcat and nothing else, you must want to minimize the

What to put in Linux filesystem for Tomcat?

2007-07-23 Thread lightbulb432
What is the minimum set of folders and files needed for Tomcat to run on Linux? I ask because if you dedicate a server for Tomcat and nothing else, you must want to minimize the size of the filesystem, disable/delete all extra services, and more to increase the performance and decrease memory util

Re: WebDav - mapping question?

2007-07-23 Thread Mark Thomas
David Delbecq wrote: > Tomcat should not refuse webapp/webdav if you have a mapping to > /webdav/*. It should at least dispatch to servlet mapped on /webdav/*. Tomcat doesn't reject requests of this type . For any directory resource without a trailing '/' it will do a 302 redirect and add '/'. The

RE: org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request fai

2007-07-23 Thread MC Moisei
Sorry about the formatting. It's hotmail cr*p! So, I run Apache2 that fronts a Tomcat in mod_jk and I have this multi-upload screen(ajax+java) that works great from my intranet but when testing it from outside is not. I'm sure it's a setting thing either on mod_jk, tomcat or apacheI observed the

Re: MySql Connector returning ?DataSource

2007-07-23 Thread Prem Padarath
Chuck, Checked...it is only in the one place. Thx, Prem On 7/23/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Prem Padarath [mailto:[EMAIL PROTECTED] > Subject: Re: MySql Connector returning ?DataSource > > I checked. The mysql jar file is in common\lib directory! Is it also i

Re: MySql Connector returning ?DataSource

2007-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Prem Padarath [mailto:[EMAIL PROTECTED] >> Subject: Re: MySql Connector returning ?DataSource >> >> I checked. The mysql jar file is in common\lib directory! > > Is it also in the webapp's WEB-INF/lib dir

RE: MySql Connector returning ?DataSource

2007-07-23 Thread Caldarale, Charles R
> From: Prem Padarath [mailto:[EMAIL PROTECTED] > Subject: Re: MySql Connector returning ?DataSource > > I checked. The mysql jar file is in common\lib directory! Is it also in the webapp's WEB-INF/lib directory? Having it in two places at once can cause all sorts of interesting problems. -

Re: MySql Connector returning ?DataSource

2007-07-23 Thread Prem Padarath
David, I checked. The mysql jar file is in common\lib directory! I think my test app (direct access) would have had to have retrieved the jdbc classes from the Tomcat lib as I didn't include them in the war file. Thx, Prem On 7/23/07, David Smith <[EMAIL PROTECTED]> wrote: This could easily

Re: MySql Connector returning ?DataSource

2007-07-23 Thread David Smith
This could easily be caused by the mysql jar file not being in tomcat's common/lib directory -- especially if local, non JNDI access is working. --David Prem Padarath wrote: Hi Wade, Yes, I have been able to connect with a plain java class and I have been able to connect from within Struts2 d

Re: MySql Connector returning ?DataSource

2007-07-23 Thread Prem Padarath
Hi Wade, Yes, I have been able to connect with a plain java class and I have been able to connect from within Struts2 directly. It is when I try to get a DataSource object from Tomcat's JNDI that it messes. Prem On 7/23/07, Wade Chandler <[EMAIL PROTECTED]> wrote: From a JSP page try to make

Re: MySql Connector returning ?DataSource

2007-07-23 Thread Prem Padarath
Hi Chris, o.a.t.d.d.BasicDataSource implements javax.sql.DataSource. What's the problem? The problem is that whatever is returned from the lookup call is causing an exception. I tested what is coming back and it is an o.a.t.d.d.B.D.S and it is putting it to a DataSource. The stack trace foll

Re: Manager Deployer and build.xml

2007-07-23 Thread Filip Hanik - Dev Lists
you probably don't have the Realm or your deployment client setup with the correct username/password Filip Sangoi, Nehal (Gexpro, consultant) wrote: Hi I have implemented manager-deployer config in my tomcat 5.5.23 setup. And using ant for my build.xml to deploy webapps. I am recieveing bel

Re: MySql Connector returning ?DataSource

2007-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Prem, Prem Padarath wrote: > I am trying to set up a database resource in Tomcat 5.5.20 . I am having a > problem getting a DataSource object back from a JNDI lookup. > (I am getting a "org.apache.tomcat.dbcp.dbcp.BasicDataSource" object > returned a

RE: OracleConnectionPoolDataSource

2007-07-23 Thread Propes, Barry L
ok...is it you having problems or Zdenek? Sorry for my mistaking you two. -Original Message- From: "Julio J. Suárez Salinero" [mailto:[EMAIL PROTECTED] Sent: Monday, July 23, 2007 11:46 AM To: Tomcat Users List Subject: Re: OracleConnectionPoolDataSource Propes, Barry L escribió: > Like

KLUDGE: WebDav - mapping question?

2007-07-23 Thread Johnny Kewl
Here is "a way" to make any mappings work well with MS I include my kludge (code) if anything so the guru's can study it and see how I made MS happy with any mapping then improve on it and stick it in a future release of TC David Delbecq you hit the nail on the head and thank you.

Re: MySql Connector returning ?DataSource

2007-07-23 Thread Wade Chandler
>From a JSP page try to make a MYSQL connection using just pure JDBC calls. It may be something to do with your JDBC classes and the directory your JAR files are housed. If I remember correctly I had to put my MYSQL JAR file in the shared folder so the server could access them. This versus having t

MySql Connector returning ?DataSource

2007-07-23 Thread Prem Padarath
Hi, I am trying to set up a database resource in Tomcat 5.5.20 . I am having a problem getting a DataSource object back from a JNDI lookup. (I am getting a "org.apache.tomcat.dbcp.dbcp.BasicDataSource" object returned and throwing an exception - code below) My problem is similar to the "Re: MyS

Re: OracleConnectionPoolDataSource

2007-07-23 Thread Julio J. Suárez Salinero
Propes, Barry L escribió: Like I told him, Chris, I experienced very similar scenarios with my connection pooling, and had to alter and/or rewrite the classes, but I did get them closing properly. Some took some significant tweaking, but I finally got it. Zdenek, if you could post the original

RE: OracleConnectionPoolDataSource

2007-07-23 Thread Propes, Barry L
Like I told him, Chris, I experienced very similar scenarios with my connection pooling, and had to alter and/or rewrite the classes, but I did get them closing properly. Some took some significant tweaking, but I finally got it. Zdenek, if you could post the original code, maybe we could narro

Re: Exception occurs when shutdown my apache-tomcat 4.1

2007-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Senthil, senthil gugan wrote: > I am using the apache-tomcat 4.1 in my Linux Suse OS. > An exception is occurs every time I shutdown the tomcat server. > > Catalina.stop: java.net.ConnectException: Connection refused > java.net.ConnectExcep

Re: OracleConnectionPoolDataSource

2007-07-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Julio, Julio J. Suárez Salinero wrote: > Zdeněk Vráblík escribió: >> Hi, >> >>> 4. I use OracleConnectionPoolDataSource because with >>> javax.sql.DataSource it doesn't close correctly close connections from >>> pool and server got to hang up. >> >> H

Re: I still cannot run a basic struts2 app on tomcat55

2007-07-23 Thread Phi-Long LE
try to comment this within catalina.policy: grant codeBase "file:${catalina.home}/webapps/-" { permission java.security.AllPermission; }; ** Le 21/07/2007 16:23, Michelle Baert a écrit : Hi all, I'm trying to start learning struts2. I have a tomcat 5.5 server running fine with simple jsp a

RE: OracleConnectionPoolDataSource

2007-07-23 Thread Propes, Barry L
Zdenek, I had gotten those errors, but like I said, it entailed me going back and properly closing each opened statement and connection. -Original Message- From: "Julio J. Suárez Salinero" [mailto:[EMAIL PROTECTED] Sent: Monday, July 23, 2007 9:08 AM To: Tomcat Users List Subject: Re: Ora

Exception occurs when shutdown my apache-tomcat 4.1

2007-07-23 Thread senthil gugan
Hi all, I am using the apache-tomcat 4.1 in my Linux Suse OS. Here is my question, An exception is occurs every time I shutdown the tomcat server. Here is the Exception, manickam:~ # $CATALINA_HOME/bin/shutdown.sh Using CATALINA_BASE: /root/Tomcat/apache-tomcat-4.1.34-LE-jdk14 Using C

Re: OracleConnectionPoolDataSource

2007-07-23 Thread Julio J. Suárez Salinero
Zdeněk Vráblík escribió: Hi, 4. I use OracleConnectionPoolDataSource because with javax.sql.DataSource it doesn't close correctly close connections from pool and server got to hang up. Have you got any exception? It throwed "Closed Statement", "Exhausted Resultset" and "NullPointerException

Re: MySql Connector

2007-07-23 Thread David Smith
A few things to consider: 1. Either place your Resource definition in server.xml as a GlobalResource *OR* in your webapp's context.xml file. 2. If you have the Resource defined in the GlobalResources, that's the only time you need to use a ResourceLink element in context.xml. 3. Drop the au

RE: My error-pages does not show in IE7 everything worked in IE 4 - IE6

2007-07-23 Thread Asensio, Rodrigo
Do you have turned off the advanced option in IE {x} Show friendly error pages ?? -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Monday, July 23, 2007 5:32 AM To: [EMAIL PROTECTED] Subject: My error-pages does not show in IE7 everything worked in IE 4 - IE6 Hi.

Re: Bean and Servlet

2007-07-23 Thread David Smith
Typical design is servlet forwarding to jsp for view. Tags being jsp elements occur after servlets have executed. So you can see how your problem is a little curious in that jsps don't typically forward to servlets. If you are forwarding a request from jsp to servlet, let us know. However i

Re: Bean and Servlet

2007-07-23 Thread Mohammed Zabin
Thank you Johnny, To be specific this is my question Hi all I am trying to pass an object from a tag to a servlet. i did the following, 1. In the tag class, i put: pageContext.getRequest().setAttribute("QList", list); The above Tag will go to a servlet, i need to read the above request attri

Re: Bean and Servlet

2007-07-23 Thread Johnny Kewl
Hi Mohammed, Cant say I really understand the question In general this is what the Session Objects are for So say you have a servlet and a JSP page and say the servlet makes the bean with the Array List in it then if you session.setAttribute("MyBean", MyBean); you can get it (My

Re: My error-pages does not show in IE7 everything worked in IE 4 - IE6

2007-07-23 Thread Mark Deneen
In addition, there is a minimum page length required for IE to show your custom error pages. If your error page is less than 512 bytes, the friendly error page will be shown. http://support.microsoft.com/kb/294807 Mark On 7/23/07, David Delbecq <[EMAIL PROTECTED]> wrote: in IE6 there was a co

Re: WebDav - mapping question?

2007-07-23 Thread David Delbecq
Have never used the tomcat webdav servlet. I use the slide webdav servlet. I thought i needed to correct your suppositions and mistakes in handling protocol. En l'instant précis du 23/07/07 12:31, Johnny Kewl s'exprimait en ces termes: > For future reference the WEBDAV problems between Microsof

Tags and Servlets

2007-07-23 Thread Mohammed Zabin
Hi all I am trying to pass an object from a tag to a servlet. i did the following, 1. In the tag class, i put: pageContext.getRequest().setAttribute("QList", list); The above Tag will go to a servlet, i need to read the above request attribute in the servlet, how can i do this?, i tried Lis

Re: WebDav - mapping question?

2007-07-23 Thread Johnny Kewl
For future reference the WEBDAV problems between Microsoft and Tomcat seem to be as follows First thanks for pointing me to the MS patch, although like the other poster said... it didnt help, or maybe it did, but only on the MS side. MICROSOFT doesnt like the lagging folder slash

Re: Tomcat access log question

2007-07-23 Thread Tim Funk
Extend or copy (and change) the appropriate AccessLogValve. Then place the (changed or new) files into the server/lib or server/classes directory as needed. (tomcat 5 speak) Then add to server.xml (or appropriate) the new access log class. -Tim John Hui wrote: Does this mean I need to get th

Re: My error-pages does not show in IE7 everything worked in IE 4 - IE6

2007-07-23 Thread David Delbecq
in IE6 there was a configuration option to "let IE handle error messages". If this was active, error page from server would be replaced by a custom non informative IE page. This may be activated in your IE7. En l'instant précis du 23/07/07 11:32, Søren Blidorf s'exprimait en ces termes: > Hi. > >

My error-pages does not show in IE7 everything worked in I E 4 - IE6

2007-07-23 Thread Søren Blidorf
Hi. Does anybody know why my error-pages does not show in IE7 everything worked in IE 4 – IE6 Web.xml: 500 /error?error=500 404 /error?error=404 403 /error?error=403 400 /error?error=400 408 /error?erro

Bean and Servlet

2007-07-23 Thread Mohammed Zabin
Hi All What is the best way to pass a list collection from a Bean to a Servlet? Thank you

Re: MySql Connector

2007-07-23 Thread Pid
Mohammed Zabin wrote: Thank you, what about testing the connection, i am afraid that the test code is the reason: Looks fine. Your log error messages? Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup("java:/comp/env"); DataSource ds = (DataSour

Cluster monitoring

2007-07-23 Thread Mark Faircloth
Hi, We have been monitoring Tomcat 5.5 clusters with LambdaProbe but this doesn't work with Tomcat 6. It appears that the JMX MBeans list no longer contains any Catalina:type=Cluster objects that Probe uses, despite the Tomcat documentation saying they are there. Have they been removed, are