Re: How to access JNDI resources on Tomcat level

2009-12-14 Thread Pid
) at java.lang.Thread.run(Thread.java:619) vramanaj wrote: User name and password are correct only. Pid Ster wrote: On 01/12/2009 12:37, vramanaj wrote: I have passed through this DataSource look up problem. I altered context.xml/web.xml of josso webapp. And also used short JNDI names at tomcat

Re: Please help: Setting up an environment with Apache as webserver and JBoss as the application server

2009-12-14 Thread Pid
On 14/12/2009 18:25, Smithan John wrote: Hi All, To all the geeks out there :), I'm pretty new to server level configurations. I have a task in hand to migrate a set of applications from one server to another. The requirement is an AS-IS migration. The requirement is to migrate a setup which

Re: Tomcat Config Question

2009-12-14 Thread Pid
On 14/12/2009 18:46, steflik wrote: Markus, Do I just move thecontext statements out of server.xml and into context.xml? or is there something else I have to do. If thats all I have to do do I place them before or after the watched element tag that is already in the context.xml file? There

Re: Logo file location

2009-12-14 Thread Pid
On 14/12/2009 22:02, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/14/2009 3:53 PM, André Warnier wrote: Upon further examination of the spec page above, I would guess that a better way (more flexible) would be to specify the relative URI of your file

Re: Need clarification on AJP Connector logs

2009-12-15 Thread Pid
On 15/12/2009 00:24, Michael Dubrovskiy wrote: In order to troubleshoot some issues with Apache Tomcat Connector I set JkLogLevel debug, and I found in mod_jk.log file a lot of messages like [debug] map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI

Re: Tomcat Config Question

2009-12-15 Thread Pid
On 15/12/2009 04:17, steflik wrote: Chuck, OK, I've read the document several times and still can't figure out what it is you are trying to tell me. I'm not using WARs so /META-INF/? doesn't come into play. If theContext statements don't go in to server.xml where should I put them,

Re: Getting Servlet-api.jar source.

2009-12-15 Thread Pid
On 15/12/2009 10:50, Jaime Carmona Loeches wrote: Where Can I download Servlet-api.jar source? Thanks in advance Jaime Carmona Loeches. http://tomcat.apache.org/svn.html p - To unsubscribe, e-mail:

Re: How to access JNDI resources on Tomcat level

2009-12-15 Thread Pid
: JOSSO_REMEMBERME_josso 15 Dec 2009 06:14:38,992 DEBUG RemembermeCookie NOT found! Pid Ster wrote: On 14/12/2009 12:55, vramanaj wrote: Hi, I am through with the Josso configuration. Could be able to see the sso logon page, redirecting the authenticated username to the partner application. Facing

Re: j_security_check change the principal user

2009-12-15 Thread Pid
On 15/12/2009 10:03, peibel80 wrote: Hi, I have a problem. I have a web aplication (java,jsp) with j_security_check but the user that i use to authenticate need change por other in the Simpleprincipal for j_security_check store in the session as the primary user. Is posible? I don't

Re: How to access JNDI resources on Tomcat level

2009-12-15 Thread Pid
. p Pid Ster wrote: On 15/12/2009 11:25, vramanaj wrote: The problem is https. For rememberMe in Josso, the site should be in ssl. I configured ssl in tomcat. Now i am getting the following error. I have installed the cert. in IE. Please help me if there are tomcat settings required for ssl

Re: Tomcat Config Question

2009-12-15 Thread Pid
/host.html p Dick Steflik Binghamton University Pid Ster wrote: On 15/12/2009 04:17, steflik wrote: Chuck, OK, I've read the document several times and still can't figure out what it is you are trying to tell me. I'm not using WARs so /META-INF/? doesn't come into play. If theContext

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Pid
On 15/12/2009 13:46, Ingo Gambin wrote: Hi, I am new to Tomcat and JEE, but a new job means to learn new things. So right to my problem, wich I am sure is not too unusual, but I couldn't really find a solution (via google) so far. my directory structure looks as follows

Re: Tomcat / windows 2008 IIS 7 x64

2009-12-15 Thread Pid
web site, but I would like the whole server to have this ability - meaning more that just the default site, we will probably have a couple of web sites on this server. -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday, November 20, 2009 7:46 AM To: users@tomcat.apache.org

Re: exclusions from conf/web.xml are not being picked up

2009-12-15 Thread Pid
On 15/12/2009 06:45, Shaun Senecal wrote: I have a blanket security-constraint defined in my conf/web.xml, followed by a couple more specific security-constraints. However, it appears that the more specific ones are not being picked up. When I break in FormAuthenticator.invoke(), I can see in

Re: 'Parametrizing' context.xml?

2009-12-15 Thread Pid
On 14/12/2009 16:21, Mario Splivalo wrote: Is there a way to 'parametrize' context.xml, for instance, in a manner one can 'parametrize' build.xml? For some webapplication in context.xml one puts, for instance, JDBC specific stuff. But, several developers can have different 'properties' for the

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Pid
On 15/12/2009 15:25, Ingo Gambin wrote: Am Dienstag, den 15.12.2009, 15:01 + schrieb Pid: o right to my problem, wich I am sure is not too unusual, but I couldn't really find a solution (via google) so far. my directory structure looks as follows /opt/document-repository- mounted nfs

Re: Trying to access a directory outside docBase... is it possible ?

2009-12-15 Thread Pid
On 15/12/2009 16:05, Peter Crowther wrote: 2009/12/15 André Warniera...@ice-sa.com But maybe you could just create a link, inside your deployment directory, to the mount ? /opt/Tomcat/webapps/myApp/docs -- /opt/document-repository If you're going to do this, be Very Very Careful. Tomcat

Re: [OT - question] Limit user sessions in tomcat

2009-12-15 Thread Pid
On 15/12/2009 22:01, Caldarale, Charles R wrote: From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: [OT - question] Limit user sessions in tomcat It would seem that there ought to be some low-level response-direction socket flag that should be available, to tell whether the receiving end

Re: Need Some info

2009-12-16 Thread Pid
On 16/12/2009 07:46, Karthik Nanjangude wrote: Hi Need Some info 1) Is there a way to track the JNDI based Connection Pool usage within the TOMCAT The JMX API offers access to lots of internal, including Tomcat defined DataSources. 2) Is it possible to start alistener-class

Re: War file of my web application is not running through TOMCAT SERVER

2009-12-17 Thread Pid
On 17/12/2009 10:27, Jason Bourne wrote: I have developed a web application in advance java. I am using java as front end, MySQL as Back-end and TOMCAT 5.5 SERVER to run the application. I have made a .war file of my application and pasted it in webapps folder of TOMCAT. The problem is when I

Re: AW: RE: Ignore http header if-modified-since

2009-12-17 Thread Pid
On 17/12/2009 11:26, Abid Hussain wrote: Hallo, unfortunately it is a 404. And the 404 is only delivered when the request header contains if-modified-since. If not the request is respondec correctly. This behaviour is reproducable. Below you find an example of failed and successful request.

Re: Http session lost b/w struts actions on Linux but not in Win

2009-12-17 Thread Pid
On 17/12/2009 12:52, Johan Thorselius wrote: request.getSession() returns an incorrect null on Linux, but on Windows it's OK. I have an ordinary Struts2 web app deployed on Tomcat 6.0.20, together with a JAAS-solution where I have my own Valve class. The Valve repeatedly executes invoke() with

Re: Need Some info

2009-12-17 Thread Pid
application, then the application won't be ready for use during the ServletContextListener event. p With regards KArthik -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, December 16, 2009 6:28 PM To: Karthik Nanjangude Subject: Re: Need Some info On 16/12/2009

Re: War file of my web application is not running through TOMCAT SERVER

2009-12-18 Thread Pid
On 18/12/2009 10:31, Jason Bourne wrote: Jason Bourne wrote: I have developed a web application in advance java. I am using java as front end, MySQL as Back-end and TOMCAT 5.5 SERVER to run the application. I have made a .war file of my application and pasted it in webapps folder of TOMCAT.

Re: App runs in Tomcat, but without images.

2009-12-21 Thread Pid
On 21/12/2009 16:26, Clay McCoy wrote: I'm running my app on embedded Tomcat. My startup script and information is here: http://gist.github.com/259737 I almost have it working. I just can't see any images. There are no errors, and I can't find any info elsewhere online. Any idea what I

Re: TomCat 6 performance issues

2009-12-22 Thread Pid
On 22/12/2009 05:48, DOrlov wrote: Zacheusz Siedlecki-2 wrote: This could be problem with memmory and GC. Please show your jvm memmory settings. Regards, Zacheusz Thank you for reply, I use next memory and GC settings: -Xms1024m -Xmx6144m -XX:MaxPermSize=512m

Re: j_security_check not working with flash

2009-12-22 Thread Pid
On 21/12/2009 21:50, vpapado wrote: Hello, I have a problem authenticating my users with j_security_check interworking with a flash on my login.jsp page. Here is how things go: I use j_security_check method to authenticate my users. As a result, I have assigned a login.jsp page where I have

Re: question about Tomcat5.5 getServletContext().getContext(String url);

2009-12-22 Thread Pid
On 22/12/2009 09:13, Peter Chen wrote: Hi, In a JSP file, there is a sentence like this: ServletContext sc = this.getServletContext().getContext(/File); if(sc == null){ Logger.warn(msg,Can't get the context of /File.); return; } What's the mean of this sentence? Ask the author of

Re: TomCat 6 performance issues

2009-12-22 Thread Pid
On 22/12/2009 10:18, DOrlov wrote: Pid Ster wrote: What about the exact versions of your OS, JVM and Tomcat? Is your OS a 64bit one? Correct, I use 64bit machine. JVM: Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode) OS

Re: TomCat 6 performance issues

2009-12-22 Thread Pid
On 22/12/2009 11:34, DOrlov wrote: Pid Ster wrote: Any chance you can upgrade to the most recent Tomcat? How much total physical RAM do you have? Examine the heap jmap -heappid, and post the results. I have 8Gb RAM on the machine. PS Old Generation 47.376815763383185% used PS

Re: TomCat 6 performance issues

2009-12-22 Thread Pid
On 22/12/2009 12:55, Rainer Jung wrote: On 22.12.2009 13:26, DOrlov wrote: Rainer Jung-3 wrote: You can add %D to the pattern for the omcat access log, which will output the response time in milliseconds how Tomcat determined it. Already done for most cases values are 0,1,2 ms Max value

Re: Error running two tomcats in same cluster on same Windows box

2009-12-23 Thread Pid
On 23/12/2009 00:36, John Tangney wrote: We run two tomcats on the same Windows Server 2008 box. They have their server.xml tweaked so that they use unique ports. Here's a diff: $ diff server.xml /cygdrive/c/Program\ Files/Apache\ Software\ Foundation/Tomcat\ 6.0/conf/server.xml 22c22 Server

Re: Every couple hours, Tomcat stops - FIXED

2009-12-23 Thread Pid
On 22/12/2009 18:44, Bruce wrote: Juha, The problem is fixed. My customer's site has been up for 24 hours with no problems. The problem became apparent when I went to the JVM line in localhost:8080/manager/status. That was showing .5 MB free memory. I went to the configure Tomcat. I clicked

Re: Remote Database connections

2009-12-23 Thread Pid
On 23/12/2009 17:35, jknipp wrote: I'm running Tomcat 5.5 with Jasper Reports and a simple test application that attempts to connect to a remote data source. However, when I execute the jsp for testing connectivity, the page just hangs with no error message in the log. My database is

Re: Remote Database connections

2009-12-23 Thread Pid
using Windows 95 MySQL 2.1? I'm surprised... What about the DB resource config from server.xml, or the app context.xml or wherever? p Pid Ster wrote: On 23/12/2009 17:35, jknipp wrote: I'm running Tomcat 5.5 with Jasper Reports and a simple test application that attempts to connect

Re: Tomcat Statup issue

2009-12-24 Thread Pid
On 23/12/2009 22:05, SRama wrote: Dear All, I have deployed my web application on tomcat 6.0 server , server get started but application not running. Can you please help I have attached console start up output. please let me know any thing wrong in config files.. 14/12/2009 05:28:34 PM

Re: Tomcat server in Spanish language computer shows grove

2009-12-24 Thread Pid
On 24/12/2009 12:39, André Warnier wrote: SRama wrote: Dear All, I am using my application in Spanish language computer but when I start tomcat server it shows grove Catalina started. ... GRAVE: Error inicializando punto final (endpoint) java.net.SocketException: Unrecognized Windows Sockets

Re: problem with Invalid direct reference to form login page

2009-12-25 Thread Pid
On 24/12/2009 17:38, scorpioy wrote: Thanks for the reply. I think I'm not really accessing the login page. I just have a copy of it and named it as login_auto.jsp. This page is not registered in web.xml, and is not under any restricted path. I just let servlet to forward to this page, then

Re: Routine to execute automatically before Session Server end.

2009-12-28 Thread Pid
On 27/12/2009 23:58, Hassan Schroeder wrote: On Sun, Dec 27, 2009 at 3:52 PM, Francy121francesca.amato...@email.it wrote: When an user log in to my web application, TomCat create a new Server Session that is closed a few seconds ago the user's inactivity. I would enforce the Tomcat to

Re: knowing the status using Tomcat's start ant task

2009-12-28 Thread Pid
On 28/12/2009 16:33, SriChakra wrote: Reno, Thanks for your reply. I started the whole exercise from the same link. The startTask APIs do not mention about the outputproperty. Hence I had not tried. Now after your reply I have tried using this attribute for the start task. Yet I do not get the

Re: TomCat multiple ssl support

2009-12-29 Thread Pid
On 29/12/2009 13:20, Zacheusz Siedlecki wrote: On Tue, Dec 29, 2009 at 1:56 PM, Mark Thomasma...@apache.org wrote: On 29/12/2009 12:30, DOrlov wrote: Hello, I have TomCat 6 server and I have 3 SSL sertificates for: 1. p.domain.com 2. p1.domain.com 3. p2.domain.com I would like to use all

Re: Tomcat Filter Mapping Issue

2010-01-09 Thread Pid
On 08/01/2010 23:17, Patrick Flaherty wrote: Christopher and Charles. Thanks a lot. I added a ROOT folder off my appBase and cut and pasted everything under that ROOT folder and now I am getting filter mapping hits with my ft.com ! We are not deploying correctly and this sheds all the light on

Re: Uniqueness of a sessionId

2010-01-09 Thread Pid
On 08/01/2010 20:46, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arnab, On 1/8/2010 8:07 AM, Arnab Ghosh wrote: I have an doubt.Tomcat is using *org.apache.catalina.session.ManagerBase* to generate sessionId. Now I wants to know whether this generated key will be

Re: 401 Error with Basic Auth and Tomcat

2010-01-10 Thread Pid
On 09/01/2010 23:16, cgswtsu78 wrote: Hello, I'm using the below httpd configuration in order to secure a resource (/reportsvcs_ws) using basic auth. When I hit the url https://host/reportsvcs_ws without authing, I'm prompted as expected but I get a http status code of 401 when accessing the

Re: JVM goes away

2010-01-11 Thread Pid
; jmap -heap pid will provide more information, you could regularly dump the output to file to see what's happening with the JVM. http://java.sun.com/javase/6/docs/technotes/guides/management/jconsole.html (Confession: I'm not sure I've got my head round it yet) An OOM should leave a trace

Re: Running Tomcat 6 as a service

2010-01-12 Thread Pid
On 12/01/2010 04:10, Russell Collins wrote: I am using JRockit as my java runtime. When I manually start Tomcat, I have no problems with it. However, when I try to run Tomcat as a service with JRockit as my java runtime, I get an error that says that it cannot start the service. I looked

Re: if user's browser doesn't support Cookies, then where to store user's session information?

2010-01-12 Thread Pid
On 12/01/2010 09:00, Peter Chen wrote: Hi, all I am using Tomcat 5.5.26 as the Web Server. I know the session information is stored in Cookies with the key JSESSIONID. Only the id is stored in the cookie. But some browsers don't support Cookies. So my question is if user's browser doesn't

Re: Problem publishing application.

2010-01-12 Thread Pid
On 12/01/2010 11:03, Nicanor Gutiérrez Requejo wrote: Hi, i'm developing an application, and i'm having some problems with the publishing of it. When i deploy it my local server it works fine, with no error. But when i deploy it in other remote tomcat, it doesn't work, and it shows me the

Re: More on Tomcat Sessions - limiting cluster session replication to sessions that will last longer than 'n' duration

2010-01-12 Thread Pid
On 12/01/2010 16:47, Robin Wilson wrote: Earlier this week I posted a question about how to prevent sessions from being created in our Tapestry pages, and/or how to get Tomcat to get rid of a bunch of '1-second' sessions we're creating during a load test because the sessions eventually fill

Re: More on Tomcat Sessions - limiting cluster session replication to sessions that will last longer than 'n' duration

2010-01-12 Thread Pid
On 12/01/2010 21:05, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, On 1/12/2010 1:42 PM, Robin Wilson wrote: Earlier this week I posted a question about how to prevent sessions from being created in our Tapestry pages, and/or how to get Tomcat to get rid of a

Re: log viewer

2010-01-13 Thread Pid
On 13/01/2010 12:20, Kaushal Shriyan wrote: Hi, I am using GUI application lamdaprobe for accessing catalina.out file. the issue is that it doesnot contain search feature for finding out exceptions in catalina.out file That would be a problem with lambdaprobe rather than with Tomcat. since

Re: Classloader between Web application and system loader

2010-01-14 Thread Pid
On 14/01/2010 02:40, youngm wrote: Put expanded classes into WEB-INF/classes. Likewise, in CATALINA_BASE/lib So CATALINA_BASE/lib jars and classes are used before the application (WEB-INF/lib and /classes)? http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html under Class Loader

Re: allowTrace=false allowing Trace Method

2010-01-14 Thread Pid
On 14/01/2010 11:16, iainmac wrote: Sorry, not sure what you want an example of, and not sure what you mean when you ask what connectors I am using (not really an expert) The Connectors are defined in the server.xml file. Either HTTP or AJP, it should be clear which. Using Tomcat

Re: Tomcat dies suddenly (was JVM goes away)

2010-01-14 Thread Pid
On 14/01/2010 14:36, Carl wrote: David, I am such a dufuss... didn't even notice it cycled after it finished a test. After almost 24 hours, showing no failures. Time to call Dell. If there's no memory hardware issue, then we're back to software. You were on linux right? Did you search the OS

Re: Basic Auth - Adding Client Header

2010-01-14 Thread Pid
On 14/01/2010 16:20, cgswtsu78 wrote: Hello, I have tomcat based application that is invoked from the apache side through mod_jk. I've setup basic auth on the apache side and the very first request to tomcat works as expected (challenged when not logged in, not challenged when logged in), but

Re: Tomcat memory settings

2010-01-14 Thread Pid
On 14/01/2010 16:48, Leo Donahue - PLANDEVX wrote: Chris, Thank you for the feedback. I followed Chuck's advice and set the initial and maximum memory pool using the tomcat6w.exe I have both values set to 512MB. Windows Server 2003 Standard SP2 32-bit Tomcat 6.0.20 The Java Virtual Machine:

Re: Classloader between Web application and system loader

2010-01-15 Thread Pid
On 14/01/2010 23:45, youngm wrote: * It would seem that the change tracking of a process like that above would be very difficult. It would be hard to answer questions like What patches have I applied to these 20 applications in production? If there were simply a folder with the patches right

Re: Log files?

2010-01-17 Thread Pid
On 17/01/2010 00:55, Rick Bragg wrote: On Sat, 2010-01-16 at 17:34 -0600, Caldarale, Charles R wrote: Everything worked great yesterday. I made a change to the memory in the startup file, /etc/init.d/tomcat6 to increase the mem, and no log file after that. I since changed it back and still no

Re: Can't log in to Tomcat

2010-01-17 Thread Pid
On 16/01/2010 18:05, DarkMatter2009 wrote: I forgot to mention that it was installed with netbeans 6.8. I've just now used the password and username found in the netbeans ide under the servers section. Could someone possibly explain why tomcat isn't using the settings in conf so that I can

Re: Modifying value or format of HTTPServletRequest.getRemoteUser()

2010-01-20 Thread Pid
On 20/01/2010 01:33, Christopher Nebergall wrote: I have a Jaas plugin where I'm using basic auth. It authenticates the user successfully, and in the jaas plugin I make it so request.getUserPrincipal().getName() it returns the format of the username I want shown to the app. But

Re: Polling and session timeout

2010-01-21 Thread Pid
On 21/01/2010 04:45, grailcattt wrote: That is exactly what I ended up doing and it is working well. I was hoping for a solution that used tomcat session management rather than managing my own session timeouts, but it works well. If you put the poll servlet in a separate app and are NOT using

Re: Polling and session timeout

2010-01-21 Thread Pid
On 21/01/2010 15:26, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 1/21/2010 3:32 AM, Pid wrote: On 21/01/2010 04:45, grailcattt wrote: That is exactly what I ended up doing and it is working well. I was hoping for a solution that used tomcat session

Re: Securing Tomcat Applications from Reverse Engineering

2010-01-21 Thread Pid
On 21/01/2010 16:24, Leon Rosenberg wrote: 5. stop wasting your time and invest it into developing new features and actually selling your product. If its worth copying it will be copied this way or other. So far no one has managed to protect its software against copying, better concentrate on

6.0.24

2010-01-22 Thread Pid
Just a quick FYI Looks like there's some errors on the mirrors at the moment. I got a couple of 404s and a 500 from different servers. p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands,

Re: Including a file into server.xml

2010-01-24 Thread Pid
On 23/01/2010 04:31, Aryeh M. Friedman wrote: I have an Java based XML DB that keeps track of different configurations for various sites we host and it is trivial to have it spit out a Host entery compatible with server.xml for each site... the only problem we have is how to insert the output

Re: Please Validate this Question

2010-01-24 Thread Pid
On 23/01/2010 06:40, Karthik Nanjangude wrote: Hi Please Validate this Question SPEC : JDK1.5 TOMCAT 6.0.20 O/s 1, 2 Windows 2000 Server Apache Http - 2.x 1) A Custom built web application uses Quartz process ( Kron job) every 20 minutes to DB (JNDI based Connection pool

Re: TLS renegotiation MitM vulnerability. Is it fixed in Tomcat?

2010-01-24 Thread Pid
On 24/01/2010 13:12, yosi izaq wrote: On Sun, Jan 24, 2010 at 1:36 PM, yosi izaqizaq...@gmail.com wrote: Hi, I'm an eng. working on a security product that also uses Tomcat for Web-server functionality. I'm concerned with the known TLS renegotiation MitM vulnerability. I would like to ask

Re: CSV File Save as dialogue defaults to HTM file

2010-01-25 Thread Pid
On 25/01/2010 09:17, Ran Harpaz wrote: Hello, I'm using Jetspeed 1.6, running on Tomcat. In a portlet I developed, I create a .csv file and print a link to it. The user then needs to right-click on the file and select save file as. The dialogue that pops up defaults to file type HTML file,

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Pid
On 25/01/2010 11:08, Jesse Klaasse wrote: I am running a production environment for a website (over half a million hits per day), using Tomcat 5.5.20 (I'm stuck to that version due to support restrictions) behind IIS 6 using JK connector 1.2.28, tcnative-1.dll (1.1.19) on Windows Server 2003 R2

Re: How can the login page see parameters in the original request?

2008-12-30 Thread Pid
removeps-gro...@yahoo.com wrote: Only if certain secret fields and values are present, do I want to generate the login page. They're not really secret if you're passing them as parameters. It sounds like you're trying to over-engineer something, which often results in no security

Re: Tomcat Not Releasing URL Connection

2008-12-30 Thread Pid
Troy Davidson wrote: Hello, I've searched for an answer to this problem, but haven't found anything yet. Here is the problem: I have an application that connects to a 3rd party vendors server to request updated information. This connection is created and closed in the Java code each

Re: tomcat 5, writing file to a directory

2009-01-05 Thread Pid
Angelo Chen wrote: Hi, I run tomcat 5 under root(sudo startup.sh), and my app writes some files to a directory located in another user's directory, it works. but if I run tomcat under a user called tomcat5, it will fail as tomcat5 has no permission to write files to that users directory,

Re: Tutorial for implementing a valve

2009-01-06 Thread Pid
Gregor Schneider wrote: Dear all, I'd like to try something in Tomcat 6, and therefore I have to implement it as a valve. I know that I have to implement org.apache.catalina.valve, however, I got no clue where to start. - In which jar among all the jars delivered with Tomcat do I find

Re: j_security_check with https

2009-01-06 Thread Pid
Diego Armando Gusava wrote: i dont know how to request j_security_check on https! i attemped http://wiki.apache.org/tomcat/SSLWithFORMFallback but didnt work I think the above attempts to find an SSL cert, but falls back to FORM auth. Which isn't perhaps what you want? login-config

Re: j_security_check with https

2009-01-07 Thread Pid
Justin Randall wrote: Howdy, First, to clear an incorrect point made... There is a point of switching back to HTTP after HTTPS. From a server load perspective having to perform SSL computations for every single HTTP request can be a serious performance bottleneck. As for the security

Re: j_security_check with https

2009-01-07 Thread Pid
Pid wrote: Justin Randall wrote: Howdy, First, to clear an incorrect point made... There is a point of switching back to HTTP after HTTPS. From a server load perspective having to perform SSL computations for every single HTTP request can be a serious performance bottleneck

Re: j_security_check with https

2009-01-07 Thread Pid
Justin Randall wrote: Hello, I'm not going to bother responding to the many posts that said the solution I mentioned was wrong, instead I'll just provide the example of how to do it, since it works. . lines removed . package blah; . lines removed .

Re: single instance of background job?

2009-01-12 Thread Pid
Quartz has a clustering facility that makes this easy, the OpenSymphony website has more docs on this, investigate the forums/community there. org.quartz.jobStore.isClustered = true Using a JDBC JobStore with the cluster config should ensure that the job only runs once within the cluster. p

Re: Tomcat returns HTTP status of 200 when HttpServletResponse.sendError() called.

2009-01-13 Thread Pid
Nathan Potter wrote: I mapped one of my servlets to be the default servlet: servlet-mapping servlet-namehyrax/servlet-name url-pattern*/url-pattern /servlet-mapping And since it doesn't serve static content like the Tomcat DefaultServlet, I'm not seeing the

Re: Tomcat 6.x security-constraint redirection problem... please help!

2009-01-14 Thread Pid
Martin Gainty wrote: please display non-proprietary attributes of HTTPS (Port 8443 or 443) Connector element values from %TOMCAT_HOME%/conf/server.xml OP: Don't attempt to decipher or respond to the above, it's a red herring. You could instead tell us exactly which 6.x you are using and on

Re: Tomcat 6.x security-constraint redirection problem... please help!

2009-01-15 Thread Pid
samsina wrote: See inline... Pid-2 wrote: Martin Gainty wrote: please display non-proprietary attributes of HTTPS (Port 8443 or 443) Connector element values from %TOMCAT_HOME%/conf/server.xml OP: Don't attempt to decipher or respond to the above, it's a red herring. You could instead

Re: Tomcat 6.x security-constraint redirection problem... please help!

2009-01-16 Thread Pid
Christopher Schultz wrote: Pid, Pid wrote: There's a couple of things that may be confusing the config below, which have some simple corrections. I usually place login.jsp and error.jsp in WEB-INF/login/, where they are protected from unwanted attention by default - this avoids the need

Re: Dara P Maginnis/IR/AIB is out of the office.

2009-01-16 Thread Pid
that was annoying after 3 copies... someone unsubscribe him please? p dara.p.magin...@aib.ie wrote: I will be out of the office starting 16/01/2009 and will not return until 18/01/2009. I will out of the office and will action my mails on my return Dara.P.Maginnis AIB IFS IT AIB

Re: Dara P Maginnis/IR/AIB is out of the office.

2009-01-16 Thread Pid
André Warnier wrote: #12 : make sure that the Tomcat users list gets your absentee email notifications. #12a : Especially if all you're doing is announcing that you're not working at the weekend. p dara.p.magin...@aib.ie wrote: I will be out of the office starting 16/01/2009 and will not

Re: [OT] Tomcat 6.x security-constraint redirection problem... please help!

2009-01-16 Thread Pid
Christopher Schultz wrote: Pid, Pid wrote: I have an app with a page which contains a flash object (displays a nice graph) that calls a groovy script periodically to get data. If the user session times out in between requests for the script then when it's requested it's the first one

Re: setup default webapp in tomcat 6 and apache

2009-01-16 Thread Pid
johnrock wrote: Caldarale, Charles R wrote: Isn't this a very standard thing to do? No; one normally deploys webapps under the Host appBase. - Chuck Ok, I would like to follow the normal, best practices way. If you will indulge me one more try: What is the best way to

Re: How to turn off JNDI datasource connection pooling

2009-01-16 Thread Pid
Caldarale, Charles R wrote: From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Subject: RE: How to turn off JNDI datasource connection pooling Look at the resource-ref construct in the servlet spec. O.k., that was too simplistic. You'll also need the following. Does your DB

Re: How to turn off JNDI datasource connection pooling

2009-01-17 Thread Pid
Caldarale, Charles R wrote: From: Pid [mailto:p...@pidster.com] Subject: Re: How to turn off JNDI datasource connection pooling I'm getting a little confused trying to follow this thread. There was a distinct lack of specifics in the beginning. However, I think I understand why he's

Re: Upgrading Tomcat from 6.0.14 to 6.0.18 - classpath issue

2009-01-19 Thread Pid
matyg wrote: Yes, I know this page, but it is not understoodable from what is described how it should be done. They write there All such classes are visible to both Tomcat internal classes, and to web applications. Classes placed inside a webapp should not be visible to the container. This is

Re: How to enforece status like manager authentication for my web app?

2009-01-23 Thread Pid
kaprasi wrote: Hi, I have written a simple web-app and I have deployed it in tomcat-6.0.18. I want to ensure that a particular jsp file can't be accessed directly. As in, in the tomcat page (http://localhost:8080/) on the left side there is a link titled Status. Clicking on which brings up

Re: different jsessionid for different webapps

2009-01-23 Thread Pid
Stefano Nichele wrote: Hi All, I have a strange (for me?) requirement for my application. Basically I have webapp A deployed in Tomcat A and webpp B deployed in Tomcat B. webappA is the main webapplication that provides the main web page to the the browser. That page contains an IFrame that

Re: different jsessionid for different webapps

2009-01-24 Thread Pid
Christopher Schultz wrote: Pid, Pid wrote: Stefano Nichele wrote: Hi All, I have a strange (for me?) requirement for my application. Basically I have webapp A deployed in Tomcat A and webpp B deployed in Tomcat B. webappA is the main webapplication that provides the main web page

Re: Tomcat and jsecurity help

2009-01-26 Thread Pid
juanmanuelsanchez wrote: Im trying to make tomcat work with my jsecurity setup but Im having some problems. My jsp's are in different folders to make them more organized in sake of security. So I have a main folder called JSP with 3 subfolders in it. So I have 3 security-constraint tags

Re: Tomcat and jsecurity help

2009-01-27 Thread Pid
juanmanuelsanchez wrote: Dosent seem to work, my idea is to have a common folder where everybody could go, and other 3 where just authorized people can see the jsp. Thats why you see 4 different security-constrain tags. Everybody should login no matter what. I think one of the problems is

Re: virtual hosts

2009-01-28 Thread Pid
Josh Pollara wrote: I am making a transition from apache http - tomcat. DNS is all configured correctly etc. example.com and *.example.com point to the same place. I'm quite certain that tomcat does not support wildcard virtual hosts, I just wanted to confirm with someone who was positive.

Re: javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

2009-01-29 Thread Pid
Hamacher, Eric wrote: I solved the problem by putting java:/comp/env in the JNDI lookup in the code. So you're not putting: java:/comp/jdbc/GFDataSource? p That led me to an exception when I tried to use an ArrayDescriptor. So I tried to change my pooling form dbcp to oracle with:

Re: Apache Tomcat 6.0 loads blank page

2009-02-01 Thread Pid
zia mohades wrote: Hi there, I am currently having issue loading my own page using tomcat apache 6.0 on ubuntu, here are the details; 1) when I start the server using sudo /etc/init.d/tomcat restart and then try to access the server via http://localhost:8080, i sucessfully get the

Re: Why is my page repeatedly invoking itself?

2009-02-11 Thread Pid
Using my special powers of internetelepathy, I will guess the code contents of your page and diagnose the problem... Ommm [there will be a short delay while this occurs] p Jonathan Mast wrote: Here's my setup: Java 1.4.2 Tomcat 5.5.17 Windows XP I'm developing in NetBeans 6.5

Re: of the different methods to get a user-id

2009-02-12 Thread Pid
André Warnier wrote: Tim Funk wrote: Personally - I would expect request.getRemoteUser() == request.getUserPrincipal().getName() But there no literature which says that must be so. And the reality shows it isn't. So somehow there must be two distinct underlying thingies in Tomcat

Re: deploying web application on remote server

2009-02-12 Thread Pid
Sneha Manohar wrote: Hi , I have developed web application using netbeans , I wish to deploy on remote server . I have placed files under / webapps directory of remote server. Tomcat is unable to locate libraries . how do I make tomcat locate libraries which are under WEB-INF/lib

<    1   2   3   4   5   6   7   8   9   10   >