Manager Deployer and build.xml

2007-07-23 Thread Sangoi, Nehal (Gexpro, consultant)
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 below errors while deployment of one of my applications named :custdash . deploy: BUILD FAILED /opt/apps/custdash/home/build/build.xml:107:

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,

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 =

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: 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.

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

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

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

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

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

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

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

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

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

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

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,

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

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:

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

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. Have you got any

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

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

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: 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

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 I

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 and

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

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

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 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

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 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 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 directory?

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 in 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

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

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

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

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/delete