getPathTranslated()

2006-06-22 Thread Bartosz Siemasz
HI, I wonder if you cpuld take a look at this topic: http://forum.java.sun.com/thread.jspa?threadID=746742&messageID=4273613#4273613 My name is rypki and I am asking for setup in this topic. Take care -- "Trzeba szczęście swe brać, kiedy puka do twoich drzwi." -- "Trzeba szczęści

Re: Own Connector for Tomcat

2006-06-22 Thread Bill Barker
"Daniela Piacenti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello everybody, > > I read a lot about the coyote connector and that it is possible to write > own connectors for Tomcat. But I did not find anything in the whole web, > how to do this. Now I am reading the source

ajp13 not working with xml

2006-06-22 Thread user51564
Apache is not sending the ajp13 port 8009 to tomcat only with xml everything else works fine; here is my conf: JkUriSet worker ajp13:localhost:8009 JkUriSet worker ajp13:localhost:8009 JkUriSet worker ajp13:localhost:8009 JkUriSet worker ajp13:localhost:8009 JkUriSet worker ajp13:loca

Re: war filename in url. I want this to be different

2006-06-22 Thread Dan Simmonds
This should work (in server.xml): assuming that /webapps/companyName/warfilename.war is a valid filepath. Dan Dean Hiller wrote: I am trying to make a hosted service(with a few small apps) that companies can purchase. I want the default tomcat app(my app as I took default over)

mod_jk, symbol ap_null_cleanup: referenced symbol not found

2006-06-22 Thread Jay G. Scott
i'm trying to get mod_jk to work. i configured apache thusly: set APVER=apache-1.3.36 setenv CC gcc ./configure --prefix=/opt/depot/$APVER \ --enable-module=so \ --enable-module=info when i try to start apache, i get this error. Syntax error on line 2 of /opt/depot/apach

Re: Tomcat shutdown Problems - Process Does Not Die

2006-06-22 Thread Martin Gainty
Jørgen-- I know with 5.5 you can control Threading by implementing custom APR ThreadPooling.. http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/tomcat/util/net/AprEndpoint.html#acceptorThreadCount Tak, Martin -- ***

Re: Tomcat shutdown Problems - Process Does Not Die

2006-06-22 Thread Jørgen Nørgaard
On Jun 21, 2006, at 23:22, Derek McEachern wrote: I've been searching the list but so far I have not been able to find a solution to problem. I am running tomcat 4.1.31 using java 1.4.2 on a Solaris 8 machine. In our configuration we are running two tomcat instances sharing binaries and web

'Black' Icons and Intermittent Page not Found

2006-06-22 Thread Bob Wyatt
Our web application has a search feature that can be activated by pressing the F2 key in Internet Explorer, or by clicking a small (978 bytes) gif image file of a magnifying glass in our myapp/images directory. This directory is populated with 45 gif image files, the largest being 144 KB, the smal

Re: Running code on Tomcat startup

2006-06-22 Thread Pid
lookup ServletContextListener Andrew Braae wrote: > I've handled this by using a servlet filter that intercepts all requests > (something like this in your web.xml file)... > > > Do Startup Filter > /* > > > Then inside the do.. method you can set up your object and attach to either

Re: Running code on Tomcat startup

2006-06-22 Thread Andrew Braae
I've handled this by using a servlet filter that intercepts all requests (something like this in your web.xml file)... Do Startup Filter /* Then inside the do.. method you can set up your object and attach to either a context such as your session or to the ServletContext (if you want

Running code on Tomcat startup

2006-06-22 Thread 0 8
Hello, I have a newbie Tomcat question. A search application I need to work with uses RMI. When I start Tomcat, is there a way I can run the code to create an object that I can reference in a JSP later? What I need to run is straight forward: ClientServices cs = com.mycompany.searchapp.Client

JPDA not shuting down

2006-06-22 Thread Lou Caudell
Can anyone offer any insight as to why JPDA would not shutdown after a debugging session with Netbeans. I am using sys-internals process explorer to watch the processes, and the JPDA process is still running even after the tomcat debugging session has been shutdown. XP sp2... NB 5.0 bundled To

Re: Problem configuring JNDI DataSource for Oracle

2006-06-22 Thread Sourabh Antani
Ashvini, I have faced a similar problem. Instance of the JNDI resource is not being created. In my case, the solution was to remove any spaces tomcat's path. I moved Tomcat directory from c:\Program Files\Apache Software Foundation\Tomcat to c:\Tomcat. JDK has a bug that it cannot find JNDI res

Re: Problem configuring JNDI DataSource for Oracle

2006-06-22 Thread Ashvini K Saxena
Nope, with that it only gives a proper error message, Invalid connection string format, a valid format is: "host:port:sid" On Fri, 23 Jun 2006 00:48:54 +0530, "Ashvini K Saxena" <[EMAIL PROTECTED]> said: > I figured it out. I had followed Tomcat documentation while doing this. > The Oracle exampl

Re: Problem configuring JNDI DataSource for Oracle

2006-06-22 Thread Ashvini K Saxena
I figured it out. I had followed Tomcat documentation while doing this. The Oracle example in the documentation mentioned url as jdbc:oracle:thin:[EMAIL PROTECTED]:1521:mysid Following that I specified my url as jdbc:oracle:thin:[EMAIL PROTECTED]:1521:rep while actually it should be jdbc:oracle:th

RE: Retrieving List from a request/session attribute

2006-06-22 Thread Martin Gainty
David-- Personally...I would use reflection... try { List var = Class.forName(request.getAttribute(name));// get class definitions o = var.newInstance(); //Instantiate a new class using the class(and consequent definitions).. } catch(Exception excp) { System.out.println("Didnt like the class .

RE: How does Tomcat detect whether a browser accepts cookies

2006-06-22 Thread GB Developer
Just because it's fun to have that one last kick at the dead horse... You really can't rely on any cookie being set, can you? I mean most users are simply not this savvy (or stupid, depending on how you feel about it), but I can set my browser to prompt for every cookie, and I as the (idiot?) use

Re: looking for memory profiler or dump analyzer for production use

2006-06-22 Thread charly
That means .. even when I start the monitoring component later it will not work beyond the first hour after starting the jvm? Karl-Heinz - Original Message - From: "Andrew Miehs" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 22, 2006 1:46 AM Subject: Re: looking

Re: Retrieving List from a request/session attribute

2006-06-22 Thread Leon Rosenberg
On 6/22/06, David Wall <[EMAIL PROTECTED]> wrote: Is there a correct way to retrieve a typed List from a request/session attribute? The attribute is returned as an Object, but using a cast like: List var = (List)request.getAttribute(name); results in a warning: Type safety: The cast from Obje

Retrieving List from a request/session attribute

2006-06-22 Thread David Wall
Is there a correct way to retrieve a typed List from a request/session attribute? The attribute is returned as an Object, but using a cast like: List var = (List)request.getAttribute(name); results in a warning: Type safety: The cast from Object to List is actually checking against the erase

Problem configuring JNDI DataSource for Oracle

2006-06-22 Thread Ashvini K Saxena
I am trying to use a datasource to access an Oracle database (Tomcat 5.5.9 and Oracle 9i). I have configured a datasource in the context.xml as follows: WEB-INF/web.xml In web.xml I am referring to the datasource as: The Reports DataSource jdbc/reportdb javax.sq

Re: mod_jk failover and preferring localhost

2006-06-22 Thread David Rees
On 6/22/06, Per Johnsson <[EMAIL PROTECTED]> wrote: Is 1.2.16 avaiable for download somewhere? Not that I know of, you have to grab the source from SVN. Found this: http://tomcat.apache.org/connectors-doc/news/20060505.html I wonder how that got there! -Dave --

Apache Tomcat Slowdown

2006-06-22 Thread Troy Davidson
We have Apache load balancing five instances of Tomcat. The cluster will run fine and have no problems. The mod_jk Status page is fast and responsive. But, after running for a few hours, things slow down. The Status page no longer responds. The cluster doesn't respond. Has anyone seen thi

Re: How does Tomcat detect whether a browser accepts cookies

2006-06-22 Thread Pid
You could use the session id location as an indicator, assuming there's a session already. if (hreq.isRequestedSessionIdFromCookie()) { // we're good, do whatever } else { // no cookies, begone! } if your initial point of contact does a single instant redirect to the detector,

mod_jk on IBM Aix

2006-06-22 Thread Mirou, Antoine
Hi, On http://tomcat.apache.org/connectors-doc/howto/apache.html I read that mod_jk is "developed and tested" on Aix (and other platforms), but I can't find any special instruction to compile it on that platform. Did someone succeed in building it on Aix ? Could you please give me some advices (w

Apache Tomcat and Mod-jk

2006-06-22 Thread andreamodesto . rossi01
I've 3 front-end apache with a java webapp over a Oracle DB.There're 2 Server application with 4 Tomcat5(2 Tomcat for machine).For example: Tomcat1-prode --->TAP1 //*tap is the name of the machine Tomcat1-stage --->TAP1 Tomcat2-prode --->TAP2 Tomcat2-stage --->TAP2 Tomcat work only for the JAVA

Re: Tomcat can't start

2006-06-22 Thread Markus Schönhaber
Y.W.Yang wrote: > Tomcat works well on my pc since the first configuration. But recently, I > can't start Tomcat through Elipse, "the ports required by tomcat are used > by other processes, or tomcat are started in other processes". Even > http://localhost:8080 doesn't work! I checked the port, no

RE: Tomcat 5.5 and DataSource

2006-06-22 Thread John Langan
Why don't you try this tutorial, which does what you want. http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0509cline/i ndex.html John Langan -Original Message- From: Jitendra Kharche [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 10:26 AM To: Tomcat Users List

Re: Tomcat session replication/cluster

2006-06-22 Thread Pid
In each case it's the ROOT context, so is it appending "" where there's no Context name/path: ie SEVERE: Context manager doesn't exist:host1+context1 where context1="" ? It would still seem that the name parameter supplied to the getManagerName is carrying over it's previous value, and appendin

Tomcat can't start

2006-06-22 Thread Y.W.Yang
Hi, Tomcat works well on my pc since the first configuration. But recently, I can't start Tomcat through Elipse, "the ports required by tomcat are used by other processes, or tomcat are started in other processes". Even http://localhost:8080 doesn't work! I checked the port, no process use the

RE: how to change session time out one of the web app in tomcat

2006-06-22 Thread Serlet Jean-Claude
Hello By default it's 30 minutes You change it in the web-inf/webxml by setting the tag 3 after the mapping oy your sevlets Jean-Claude -Message d'origine- De : bhavik shah [mailto:[EMAIL PROTECTED] Envoyé : jeudi 22 juin 2006 15:14 À : users@tomcat.apache.org Objet : how to

RE: pdf documents

2006-06-22 Thread Bob Wyatt
Pid, Thanks for everything! Regards, Bob -Original Message- From: Pid [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 10:31 To: Tomcat Users List Subject: Re: pdf documents Bob Wyatt wrote: > Pid, > > Your question sent me hunting, and we were specifying no path at all, so it

Re: SEVERE: Context [/myApp] startup failed due to previous errors

2006-06-22 Thread Pid
configure a logger for that Context and set swallowOutput="true" in the context below. the log output for the Context will have more info about why it's failing. Deepak Gupta wrote: > I'm using Tomcat 5.5.17. > > I've trawled the web for this error, but haven't found a solution so far. > > I b

Re: Tomcat session replication/cluster

2006-06-22 Thread Filip Hanik - Dev Lists
Makes sense, can we please ask you to open up a bug for us, http://issues.apache.org/bugzilla/ thanks Filip Pid wrote: OK, I'm probably being dense here. (There's only 1 context in each host, the ROOT context) If I take the Host/Context offline in one node and restart it, the logs on that no

Re: pdf documents

2006-06-22 Thread Pid
Bob Wyatt wrote: > Pid, > > Your question sent me hunting, and we were specifying no path at all, so it > was a relative reference. I have changed it to an absolute reference, and it > is now working. Great. > Can I have multiple docBase assignments in the pdf.xml file for multiple pdf > file so

SEVERE: Context [/myApp] startup failed due to previous errors

2006-06-22 Thread Deepak Gupta
I'm using Tomcat 5.5.17. I've trawled the web for this error, but haven't found a solution so far. I believe my "server.xml" which defines the context is valid XML. I also removed all installations of Tomcat and re-installed Tomcat 5.5.17since one website said there was an issue with T

Tomcat 5.5 and DataSource

2006-06-22 Thread Jitendra Kharche
Hi, Can anybody help me to get a working copy of a simple database application (using DataSource) in Tomcat 5.5? Desperately looking for your help. Regards, Jitendra Kharche - To start a new topic, e-mail: users@tomcat.apache.

RE: pdf documents

2006-06-22 Thread Bob Wyatt
Pid, Your question sent me hunting, and we were specifying no path at all, so it was a relative reference. I have changed it to an absolute reference, and it is now working. Can I have multiple docBase assignments in the pdf.xml file for multiple pdf file sources (assuming I use different paths a

Re: Tomcat session replication/cluster

2006-06-22 Thread Pid
OK, I'm probably being dense here. (There's only 1 context in each host, the ROOT context) If I take the Host/Context offline in one node and restart it, the logs on that node start showing the following: SEVERE: Context manager doesn't exist:host1 As the Context doesn't exist, which is the sa

Re: file upload speed.

2006-06-22 Thread Maurice Yarrow
Sorry, Tomcat users - just a correction to technical wording: In previous, meant: "asymmetric " configuration of total bi-directional bandwidth Maurice Maurice Yarrow wrote: Hello Tomcat users I am using TC 5.0.28 on a machine with an AMD Athlon 3000+ (not particularly strong, by current st

Is there any proxy server(SSL capable) written in Java?

2006-06-22 Thread frankpeng
I was thought Tomcat can be set up as a proxy server like Apache. But actually not. Right? I have Tomcat installed. How nice to have another instance running as a proxy server? If I cannot do this, I would rather find a nother proxy server instead of Apache because I like everything in JAVA.

Re: file upload speed.

2006-06-22 Thread Maurice Yarrow
Hello Tomcat users I am using TC 5.0.28 on a machine with an AMD Athlon 3000+ (not particularly strong, by current standards) I use an applet for uploading, which uses (pretty much) something like httpsOutput = httpsUrlCon.getOutputStream(); OutputStream bos = new BufferedOutputStream( httpsOut

how to change session time out one of the web app in tomcat

2006-06-22 Thread bhavik shah
HI I want to modify the time out of web app in tomcat where should i change that? what is the default value of time out? thanks bhavik

war filename in url. I want this to be different

2006-06-22 Thread Dean Hiller
I am trying to make a hosted service(with a few small apps) that companies can purchase. I want the default tomcat app(my app as I took default over) to be run when a url like this is used http://xsoftware.biz/ and I want the req.war app to be run when this url is used http://xsoftware.biz//re

Re: Tomcat session replication/cluster

2006-06-22 Thread Peter Rossbach
Hmm, look at o.a.c.cluster.tcp.SimpleTcpCluster L 626ff private String getManagerName(String name, Manager manager) { String clusterName = name ; if(getContainer() instanceof Engine) { Container context = manager.getContainer() ; if(context != null &&

Re: query

2006-06-22 Thread Sameer Acharya
What are the error messages you are seeing during tomcat startup ? Or try giving the log. -Sameer veena v <[EMAIL PROTECTED]> wrote: I have windows xp installed on my system. I installed tomcat 4.1 and it was working properly. But after installing oracle 9i tomcat is not working though i have in

jk connector stripping Content-Type?

2006-06-22 Thread myrealbruno
Hello, I am using the JK connector version 1.2.15 with IIS 5. When trying to load through IIS a powerpoint ppt file served by Tomcat I get only garbage (it might be the binary displayed in the browser). I can see getting the HEAD through IIS that the Content-Type is not there, while opening the

Own Connector for Tomcat

2006-06-22 Thread Daniela Piacenti
Hello everybody, I read a lot about the coyote connector and that it is possible to write own connectors for Tomcat. But I did not find anything in the whole web, how to do this. Now I am reading the source code of the coyote connector and have some questions about it. My problem is: I am wr

RE: Using Datasource for cloudscape

2006-06-22 Thread Dilan Kelanibandara
Hi Jithendra, Try with this. Some misconfiguration it seems with your resource definition. I added auth="Container" attribute to resource "jdbc/MyDB" Follow tomcat globle data source configuration for more details. Regards, Dilan mailto:[EMAIL PROTECTED] Sent: Thursday, J

Re: Http11AprProtocol took 2 hr to init on http-443

2006-06-22 Thread Jeff Chuang
Thanks Rémy,it works. And thanks Markus, you help me go through all the discussion and make it work. :) Regards, Jeff Markus Schönhaber wrote: Remy Maucherat wrote: On 6/22/06, Markus Schönhaber <[EMAIL PROTECTED]> wrote: I've just tried to configure a Connector which uses the Http11BaseP

Is it possible to set a timeout for an already open connection?

2006-06-22 Thread Rodrigo Ruiz
Hi all, Is there any way to set a timeout for a request that has been already stablished? Currently, I can perform a DoS attack to my tomcat server just by starting enough requests, sending a few bytes in each one, and letting the connections open during a large time. I was wondering if th

Re: file upload speed.

2006-06-22 Thread CMSuser
Leon Rosenberg-3 wrote: > > oh... then its magic... > > ok i've tried it: > > [EMAIL PROTECTED]:~$ curl -T xxx.txt http://localhost:8000/xxx/ > Apache Tomcat/5.5.16 - Error > report