Re: Undeploy task throws error and unwanted html output

2010-05-13 Thread Pankaj Tiwari
Hi All, I am using undeploy task to undeploy my application running in tomcat. It does the un-deploymen successfully but the result is a lot of HTML code with error. The issue posted here is exactly what I am facing http://stackoverflow.com/questions/2831531/apache-tomcat-ant-undeploy-task-error-u

Summary:: not able to use two oracle resources/

2010-05-13 Thread kumaresh P N
worked perfectly fine after removing those ^M .. came by copy paste from another server. Thanks to all for help Best Regards Kumaresh On Thu, May 6, 2010 at 11:02 AM, kumaresh P N wrote: > Hi, > > was trying to load and use both oracle DB resources from se

Re: Tomcat on a machine with multiple ip addresses

2010-05-13 Thread John Moore
Dave Filchak wrote: Due to a hard drive failure, I am needing to move some websites to a machine that has Tomcat already running on it with Apache as the front end. I was unable to get the sites working using the Apache instance that was already there so, I do this a lot lately, it seems.. (no

Re: getPart()/getParts() invocation in the filter ?

2010-05-13 Thread Ivan
Thanks, Mark ! 2010/5/13 Mark Thomas > On 13/05/2010 15:43, Ivan wrote: > >> Thanks, Mark. >> OK, turn to the user mail list. >> From the text I quoted from servlet spec, does it mean that I must >> configured the target servlet with multipart (annotation or web.xml), or >> those two getPart()

Re: Restrict http methods

2010-05-13 Thread André Warnier
Leo, normally in the default config of a webserver, these methods are by default disabled, for the simple reason that there is no "handler" defined for them. That is the case for Apache httpd, and I suppose for Tomcat. In other words, it is for these methods to actually do something that y

Re: clientaccesspolicy and crossdomain xml files

2010-05-13 Thread Pid
On 13/05/2010 17:44, Leo Donahue - PLANDEVX wrote: > In order for Silverlight to access a cross-domain webservice, it needs a > clientaccesspolicy.xml and crossdomain.xml in the root directory of the > webapp? > > I don't see anthing in the Servlet 2.5 spec that talks about these, or > whether

Re: Porting app from Tomcat 5.0.28 to 6.0.26

2010-05-13 Thread Pid
On 13/05/2010 20:55, Jeff Hubbs wrote: > Hello - Please start an entirely new message when posting to the list rather than editing a reply to another email. This is called thread-hijacking. p > I have a DB2-backed legacy app on a legacy platform that I'm trying to > modernize. My objective is

RE: Restrict http methods

2010-05-13 Thread Leo Donahue - PLANDEVX
Thanks. Security audit day. Spent 3 hours making changes - waiting for results, when the tool ended up reporting a false-positive for DELETE. Now I know I could have done nothing. Great. I still don't have warm fuzzies about this. I think they used IBM Rational App Scan, not sure though. Le

RE: Restrict http methods

2010-05-13 Thread Caldarale, Charles R
> From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] > Subject: Restrict http methods > > What do most people use to restrict PUT and DELETE http methods? > > 2. Set the attribute "readonly" to true in the default servlet in > web.xml The readonly attribute defaults to true, so m

Restrict http methods

2010-05-13 Thread Leo Donahue - PLANDEVX
What do most people use to restrict PUT and DELETE http methods? 1. Using a security-constraint with no roles specified in a auth-constraint, with a url-pattern of /* (or appropriate URI) and list the http methods to restrict OR 2. Set the attribute "readonly" to true in the default servlet in

Re: Porting app from Tomcat 5.0.28 to 6.0.26

2010-05-13 Thread Mark Eggers
Here's a link from the Tomcat Wiki. http://wiki.apache.org/tomcat/TomcatHibernate The bottom portion of the document explains how to use Hibernate to manage database pooling instead of Tomcat. I hope it gives you some leads. . . . . just my two cents /mde --- On Thu, 5/13/10, Jeff Hubbs wro

Re: Configured JDBCRealm, but is not used

2010-05-13 Thread Maximilian Krickl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You need to use localDataSource="true" so the Realm looks locally for the DataSource. Great, that is even better (and it also works) :-) Thanks again. MaxX -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Darwin) iEYEARECAAYFAkvsZgwACgkQ/6VV

Re: Configured JDBCRealm, but is not used

2010-05-13 Thread Maximilian Krickl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm not positive about this, but I think your declaration will need to be in server.xml in order to be used for a (even though the is specific to just one ). The authentication is done by Tomcat, not the webapp, so it's Tomcat that has to

RE: Configured JDBCRealm, but is not used

2010-05-13 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:ma...@apache.org] > Subject: Re: Configured JDBCRealm, but is not used > > No, you can have the resource at the context level. > > > The authentication is done by Tomcat, not the webapp, so > > it's Tomcat that has to have the database declaration > > available, not

Re: Configured JDBCRealm, but is not used

2010-05-13 Thread Mark Thomas
On 13/05/2010 21:29, Caldarale, Charles R wrote: From: Maximilian Krickl [mailto:maxkri...@gmx.de] Subject: Re: Configured JDBCRealm, but is not used when I try to login via the login form of tomcat I get this: 13.05.2010 21:59:07 org.apache.catalina.realm.DataSourceRealm open SCHWERWIEGEND: Exc

RE: Configured JDBCRealm, but is not used

2010-05-13 Thread Caldarale, Charles R
> From: Maximilian Krickl [mailto:maxkri...@gmx.de] > Subject: Re: Configured JDBCRealm, but is not used > > when I try to login via the login form of tomcat I get this: > 13.05.2010 21:59:07 org.apache.catalina.realm.DataSourceRealm open > SCHWERWIEGEND: Exception performing authentication > java

Re: Configured JDBCRealm, but is not used

2010-05-13 Thread Maximilian Krickl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everybody, Ew. Don't use a JDBCRealm (it's synchronised etc), use a DataSourceRealm with an appropriately configured DataSource. so I changed my META-INF/context.xml to: - --- - --- and added some lines to the WEB-INF/w

Porting app from Tomcat 5.0.28 to 6.0.26

2010-05-13 Thread Jeff Hubbs
Hello - I have a DB2-backed legacy app on a legacy platform that I'm trying to modernize. My objective is to modernize the platform underneath the app (Gentoo Linux for now, Tomcat 6.0.26, Sun JDK 1.6.0.20) and do so in a way that a longtime Java/Tomcat integrator would readily recognize (I'm

Re: Tomcat and database connection

2010-05-13 Thread Pid *
On 13 May 2010, at 11:13, "Tomás Tormo" wrote: >> >> http://commons.apache.org/dbcp/configuration.html >> > Thanks, I was already checking that. > >> I don't know anything about Introscope. > It just an monitoring tool application > >> If maxActive is larger than the number of active connections,

clientaccesspolicy and crossdomain xml files

2010-05-13 Thread Leo Donahue - PLANDEVX
In order for Silverlight to access a cross-domain webservice, it needs a clientaccesspolicy.xml and crossdomain.xml in the root directory of the webapp? I don't see anthing in the Servlet 2.5 spec that talks about these, or whether they impact security-constraints or remote address valves. Anyo

RE: Tomcat v6.0.20 upgrade error

2010-05-13 Thread Althea Martin
Chuck, You were exactly right, removing the service and reinstalling worked like a charm. Thanks for helping this Tomcat "newbie" out ! Althea Martin U.S. Dept of Energy >>> "Caldarale, Charles R" 5/13/2010 10:09 AM >>> > From: Althea Martin [mailto:althea.mar...@pl.netl.doe.gov] > Sub

Re: getPart()/getParts() invocation in the filter ?

2010-05-13 Thread Mark Thomas
On 13/05/2010 15:43, Ivan wrote: Thanks, Mark. OK, turn to the user mail list. From the text I quoted from servlet spec, does it mean that I must configured the target servlet with multipart (annotation or web.xml), or those two getPart()/getParts() methods could not be used even the incoming r

Re: Tomcat v6.0.20 upgrade error

2010-05-13 Thread André Warnier
Althea Martin wrote: Already checked prior to sending this message. Yes the path specified is the path that exist locally. Althea, check again. Look, I am an old guy, with no imagination and no sense of humor. For me, 1 + 1 equals almost always 2. That`s why I usually get along with computers,

Re: getPart()/getParts() invocation in the filter ?

2010-05-13 Thread Ivan
Thanks, Mark. OK, turn to the user mail list. >From the text I quoted from servlet spec, does it mean that I must configured the target servlet with multipart (annotation or web.xml), or those two getPart()/getParts() methods could not be used even the incoming request is of mutlipart type? Actua

RE: Tomcat v6.0.20 upgrade error

2010-05-13 Thread Althea Martin
My apologies, Microsoft Windows Server 2003 SP2, JVM 5. Will try removing and re-installing. thanks >>> "Caldarale, Charles R" 5/13/2010 10:09 AM >>> > From: Althea Martin [mailto:althea.mar...@pl.netl.doe.gov] > Subject: Tomcat v6.0.20 upgrade error > > Just upgraded Apache Tomcat v6.0.20 t

Re: Tomcat v6.0.20 upgrade error

2010-05-13 Thread Althea Martin
Already checked prior to sending this message. Yes the path specified is the path that exist locally. >>> André Warnier 5/13/2010 10:13 AM >>> Althea Martin wrote: > Just upgraded Apache Tomcat v6.0.20 to v6.0.26 when attempting to start the service getting error Could not start the Apache Tomcat

Re: tomcat 6 (windows 7- 64 bits) doesn't start

2010-05-13 Thread Dan Armbrust
On Fri, May 7, 2010 at 9:01 AM, Karthick Ragunath wrote: > Some other applications using Java requires 32bit always. (Eclipse requires > 32 bit JVM which otherwise would result > in JVM termination error during Eclipse startup). > That's not true either. Once again, you need to match your eclip

Re: Tomcat v6.0.20 upgrade error

2010-05-13 Thread André Warnier
Althea Martin wrote: Just upgraded Apache Tomcat v6.0.20 to v6.0.26 when attempting to start the service getting error Could not start the Apache Tomcat service on Local Computer, Error 3: The system cannot find the path specified.. It might be interesting to know what path this is. Right-cl

RE: Tomcat v6.0.20 upgrade error

2010-05-13 Thread Caldarale, Charles R
> From: Althea Martin [mailto:althea.mar...@pl.netl.doe.gov] > Subject: Tomcat v6.0.20 upgrade error > > Just upgraded Apache Tomcat v6.0.20 to v6.0.26 when attempting to start > the service getting error Could not start the Apache Tomcat service on > Local Computer, Error 3: The system cannot fin

Tomcat v6.0.20 upgrade error

2010-05-13 Thread Althea Martin
Just upgraded Apache Tomcat v6.0.20 to v6.0.26 when attempting to start the service getting error Could not start the Apache Tomcat service on Local Computer, Error 3: The system cannot find the path specified..

RE: Tomcat and database connection

2010-05-13 Thread Caldarale, Charles R
> From: Tomás Tormo [mailto:tto...@indenova.com] > Subject: Re: Tomcat and database connection > > Could I use jvisualvm for that? Probably, but it's easier with command-line tools. http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F - Chuck THIS COMMUN

Re: mod_jk file not found

2010-05-13 Thread Markus Mehrwald
Am 13.05.2010 10:26, schrieb Pid: On 13/05/2010 01:15, Markus Mehrwald wrote: Hi, I installed mod_jk and it works perfect except of a little strange problem. I let handle tomcat everything except of static files which the following lines in the virtual host for port 80 and the same for port 44

Re: mod_jk file not found

2010-05-13 Thread André Warnier
Markus Mehrwald wrote: Hi, I installed mod_jk and it works perfect except of a little strange problem. I let handle tomcat everything except of static files which the following lines in the virtual host for port 80 and the same for port 443: # Send servlet for context / jsp-examples to worke

RE: Tomcat = Server returned HTTP response code: 406 for URL

2010-05-13 Thread Hadole, Nishant IN BOM SISL
Dear Abdul Razack, Although the query is not exactly related with tomcat, below is the explanation for HTTP error code 406: The 406 status code means that, although the server understood and processed the request, the response is of a form the client cannot understand. A client sends, as part

Tomcat = Server returned HTTP response code: 406 for URL

2010-05-13 Thread abdul razack
Dear All,   I am running J2EE application(JSP/servlet) on tomcat webser (apache-tomcat-5.5.23) and java = jdk_1.5.0_12.   My application is working fine and SMS are going out from server. SMS are being sent through URL.   But since three days SMS stops going from server and it giving the followin

Re: Tomcat and database connection

2010-05-13 Thread Tomás Tormo
http://commons.apache.org/dbcp/configuration.html Thanks, I was already checking that. I don't know anything about Introscope. It just an monitoring tool application If maxActive is larger than the number of active connections, then there's nothing wrong there, is there? I'm not sure w

Re: Tomcat and database connection

2010-05-13 Thread Pid
On 13/05/2010 09:35, Tomás Tormo wrote: > Greetings > > I would like to understand correctly how Tomcat database pool works. It's a repackaged version of Apache Commons DBCP. > As I understand, when the application starts, a pool connection is > created with *initialSize* connections (0 by defau

Re: multiple form submits

2010-05-13 Thread Steve Yates
Karthik, I have just re-iterated what Pid has already explained. I am not fast enough. +1 Pid RGS On 5/13/2010 6:10 PM, Pid wrote: > On 13/05/2010 08:45, Karthik Nanjangude wrote: > >> Hi >> >> Spec : >> JDK1.5 >> TOMCAT 6.0.20 >> O/s windows /Linux >> >> >> Question : My web applicatio

Re: multiple form submits

2010-05-13 Thread Steve Yates
Hello Karthik, It is a little difficult for application server such as Tomcat to implement such validation as every request received through your configured connector is essentially a genuine request from Tomcats point of view. Unless you created a complex Valve of some sort which measured the tim

Tomcat and database connection

2010-05-13 Thread Tomás Tormo
Greetings I would like to understand correctly how Tomcat database pool works. As I understand, when the application starts, a pool connection is created with *initialSize* connections (0 by default). Later on, new connections are created on demand of the application, untill it reaches the *

Re: mod_jk file not found

2010-05-13 Thread Pid
On 13/05/2010 01:15, Markus Mehrwald wrote: > Hi, > > I installed mod_jk and it works perfect except of a little strange > problem. I let handle tomcat everything except of static files which the > following lines in the virtual host for port 80 and the same for port 443: Exact OS, JVM, Tomcat, m

Re: when I use embedded tomcat, after start embedded, the tomcat just quit silently

2010-05-13 Thread Pid
On 13/05/2010 09:17, Pid wrote: > On 13/05/2010 07:23, jerryli51 wrote: >> >> I'm trying to use tomcat 6.0.26, when I invoked start, it just quit silently >> instead of waiting there for http request. Does anyone have ideas? >> >> package mytest; >> >> import java.io.File; >> import java.io.IOExcep

Re: when I use embedded tomcat, after start embedded, the tomcat just quit silently

2010-05-13 Thread Pid
On 13/05/2010 07:23, jerryli51 wrote: > > I'm trying to use tomcat 6.0.26, when I invoked start, it just quit silently > instead of waiting there for http request. Does anyone have ideas? > > package mytest; > > import java.io.File; > import java.io.IOException; > import java.net.InetAddress; >

Re: multiple form submits

2010-05-13 Thread Pid
On 13/05/2010 08:45, Karthik Nanjangude wrote: > Hi > > Spec : > JDK1.5 > TOMCAT 6.0.20 > O/s windows /Linux > > > Question : My web application uses "href" & "css based image's" for > transferring the request from 1 page to another >The problem is UserVisitor is cl

multiple form submits

2010-05-13 Thread Karthik Nanjangude
Hi Spec : JDK1.5 TOMCAT 6.0.20 O/s windows /Linux Question : My web application uses "href" & "css based image's" for transferring the request from 1 page to another The problem is UserVisitor is clicking the image based href MULTIPLE TIMES ( multiple clicks ) Sub