Re: Query Regarding Clustering

2006-06-02 Thread Peter Rossbach
Hi, please use 5.5.17 and read the tomcat 5.5 cluster docs. Sorry, but tutorials and real design docs not exists. Regards Peter Am 02.06.2006 um 07:54 schrieb Sandeep Gaikwad: Hi All, I am trying to devlop Horizontal clustering for tomcat 5.5.9. I am new to this field so

RE: Query Regarding Clustering

2006-06-02 Thread Sandeep Gaikwad
I had done through vertical clustering on Single Machine. Can you suggest me changes required for horizontal clustering across Two machine? -Original Message- From: Peter Rossbach [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 11:41 AM To: Tomcat Users List Subject: Re: Query

Tomcat, ActiveMQ, 'jndi.properties' file problem

2006-06-02 Thread Maciej Łabędzki
Hi, i develope my web application using ActiveMQ and run it under Apache Tomcat 5. There is a problem - the 'jndi.properties' file seems to be invisible, although it is placed on class path. Has anybody met such a problem? Maciej

Re: Query Regarding Clustering

2006-06-02 Thread Peter Rossbach
What is your problem? Your nodes can find the others? Check your network allow Mutlicast and TCP traffic Regards Peter Am 02.06.2006 um 08:22 schrieb Sandeep Gaikwad: I had done through vertical clustering on Single Machine. Can you suggest me changes required for horizontal clustering

Re: Tomcat, ActiveMQ, 'jndi.properties' file problem

2006-06-02 Thread Hadraba Petr
Hi Maciej, I'm connecting from Tomcat to ActiveMQ with this configuration: META-INF/context.xml: Context ... Resource name=jms/ConnectionFactory auth=Container type=org.apache.activemq.ActiveMQConnectionFactory description=JMS

Retrieve certain session data inside a servlet

2006-06-02 Thread Carlos Alonso Vega
I am trying to obtain data about a session inside a servlet, the code seems to be simple as localSession = Ctx.getManager().findSession(sessionId); My problem is that I do not know how to obtain the Ctx object from a request (HttpServletRequest) Thanks in advance

Auto Reload Features by Tomcat

2006-06-02 Thread ks.foong
Hi, I notice that starting from Tomcat 5 onwards; we can enjoy the benefit of the Auto-reload features of it. I personally have tried it with my Eclipse development. Each time I have changed any servlet coding, the eclipse (or more specific, Tomcat) able to detect the changes and Reload for

RE: Auto Reload Features by Tomcat

2006-06-02 Thread ks.foong
Forget to mentioned, I have make sure my Context tag in server.xml have included the reloadable=true entity Context path=/project reloadable=true ... Foong Kim Seong -Original Message- From: ks.foong [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 4:52 PM To: 'Tomcat

Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Bob Hall
--- Carlos Alonso Vega [EMAIL PROTECTED] wrote: I am trying to obtain data about a session inside a servlet, the code seems to be simple as localSession = Ctx.getManager().findSession(sessionId); My problem is that I do not know how to obtain the Ctx object from a request

Re: jar Sequence in the same directory

2006-06-02 Thread Tim Funk
No. Place your patches in the classes folder. -Tim exquisitus wrote: I have a special question related to the classloader of Tomcat. If I put two jar files in the same directory (myJar.jar and myJarPatch.jar) where the second jar is a patch, that contains only a part of classes (let's say a

Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Carlos Alonso Vega
Bob, Thanks for the reply. My problem is that the session info I need is not of the session that makes the request. I need to check other sessions in the same context. I can use the request because it is in the same context, so the manager is the same. This servlet is called internally

Re: How to hide the keystorePass at the server.xml

2006-06-02 Thread Bill Barker
TC 3.3.x had an optional module to do this. It never got ported. I generally agree with most of the people that say that this is the least of your problems. If you are usings a self-signed cert, then you are just getting what you deserve. Otherwise, you simply contact the CA and revoke the

Re: Tomcat, ActiveMQ, 'jndi.properties' file problem

2006-06-02 Thread Maciej Łabędzki
Hadraba Petr napisał(a): Hi Maciej, I'm connecting from Tomcat to ActiveMQ with this configuration: Thx, but how it corresponds to my jndi.properties file? How should I form my configuration files (context.xml, web.xml)? jndi.properties: --- java.naming.factory.initial =

Re: How to hide the keystorePass at the server.xml

2006-06-02 Thread Leon Rosenberg
On 6/2/06, Bill Barker [EMAIL PROTECTED] wrote: TC 3.3.x had an optional module to do this. It never got ported. I generally agree with most of the people that say that this is the least of your problems. If you are usings a self-signed cert, then you are just getting what you deserve.

Problem while deploying war

2006-06-02 Thread Venkatesh Babu
Hi all, I'm using Tomcat 4.1.31. I have a war file and I'm using the ant target deploy to deploy this war. Here is the code snippet of my build.xml : property name=tomcat.server.name value=localhost/ property name=tomcat.server.port value=8080/ property name=tomcat.user.name

Re: Tomcat, ActiveMQ, 'jndi.properties' file problem

2006-06-02 Thread Hadraba Petr
Hi, sorry, I forgot to note, that the resources in the context.xml and web.xml files are replacements for the jndi.properties. I'm using Tomcat's build-in JNDI. It looks like you're using one Queue with the name listenerDestination. So, try the following: META-INF/context.xml: Context ...

A way to know if file download has ended

2006-06-02 Thread Bachler, Elisabeth (Elisabeth)
Hello, I have an application that uses tomcat 5.0.19. At one point in my application, the user has the possibility to click on a certain link in order to download a file. Once the file is downloaded, I would like the application to go to a certain jsp page is there a way to configure tomcat

Re: Auto Reload Features by Tomcat

2006-06-02 Thread Marc Farrow
I remember something about a reloadable parameter in the Server.xml (in a tag above context either host or engine I think) that has that attribute as well. Unless the override attribute is included, the attribute in the context tag is not applied. I may be chasing the wrong horse, but it

Re: SSL Setup

2006-06-02 Thread Roch
I finally got it to recognize the keystore and its able to get in. I still have clientauth=false. I had to add in ciphers also. I'm not getting any errors. But when I go to view the page, it won't come up. Is there anything else that I missed? Thanks. -- View this message in context:

Re: Auto Reload Features by Tomcat

2006-06-02 Thread Jerome Jar
I think it's because that you just enabled the Auto Build feature of eclipse, so every time you changed your java source, eclipse built it for you, and tomcat saw the class files changed and then reloaded that context. But when you metioned for my production, I guess that machine do not have an

APR extensinos for Tocmat 5.5.17 cause a JVM crash on Windows OS

2006-06-02 Thread Stefan Baramov
Hi everyone: Tomcat 5.5.17 for Windows (distribution apache-tomcat-5.5.17.exe) comes with a DLL file called tcnative-1.dll. According to the Tomcat documentation this is a native extension based on the APR and Open SSL projects. However, the extension causes the JVM to crashes qutie often.

RE: tomcat ssl not working

2006-06-02 Thread Alvarez, Mike
The servers.xml file needs to be configured with the keystore path and file name. Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=100 debug=0 scheme=https

Re: APR extensinos for Tocmat 5.5.17 cause a JVM crash on Windows OS

2006-06-02 Thread Remy Maucherat
On 6/2/06, Stefan Baramov [EMAIL PROTECTED] wrote: Hi everyone: Tomcat 5.5.17 for Windows (distribution apache-tomcat-5.5.17.exe) comes with a DLL file called tcnative-1.dll. According to the Tomcat documentation this is a native extension based on the APR and Open SSL projects. However, the

Re: Tomcat as a standalone webserver. Why not?

2006-06-02 Thread Michael Echerer
Peter Lin wrote: I'm gonna say that's quite a bit of myth here. If SSL is important, get a cheap SSL enabled router. Doing software SSL is waste of CPU power and impacts the server's stability. Anyone that has a lot of HTTPS traffic shouldn't be using software SSL in my bias opinion. If you

Re: SSL Setup

2006-06-02 Thread Roch
I'm getting the error that says cannot communicate securely because they have no common encryption algorithms. -- View this message in context: http://www.nabble.com/SSL-Setup-t1710991.html#a4680316 Sent from the Tomcat - User forum at Nabble.com.

error when starting tomcat 4.1.27

2006-06-02 Thread bhavik shah
Hi I have tomcat 4.1.27 server. when ever i start the tomcat i saw a message below Starting service Tomcat-Standalone Apache Tomcat/4.1.27 DCTMINFO Documentum Java Method Server DCTMINFO Docbase Names = DCTMINFO Host Names = DCTMINFO IP Addresses = DCTMINFO Java Method Dir =

Re: Query Regarding Clustering

2006-06-02 Thread Filip Hanik - Dev Lists
Peter is correct, first read the docs, then you'll know more and have more info to ask the right questions Filip Sandeep Gaikwad wrote: I had done through vertical clustering on Single Machine. Can you suggest me changes required for horizontal clustering across Two machine? -Original

Re: error when starting tomcat 4.1.27

2006-06-02 Thread Marc Farrow
It means that you have something specified to write/read a log file and you do not have permission to do that. Check your permissions on the directory or file for: java.io.FileNotFoundException:/log/fdk_server.log (Permission denied) On 6/2/06, bhavik shah [EMAIL PROTECTED] wrote: Hi I have

Re: Farm Deployer looping

2006-06-02 Thread Filip Hanik - Dev Lists
Hi Ed, no you are right, the appBase was a change from 5.0 to 5.5, that requirement used to be the opposite. You can have a cluster and a farm deployer for each Host if you wish. Just configure it on a per host basis Filip Edoardo Causarano wrote: Got it, I was too pedantic in following the

Re: error when starting tomcat 4.1.27

2006-06-02 Thread Filip Hanik - Dev Lists
the user that the tomcat VM runs as, needs to have write permissions to the following file mentioned below Filip bhavik shah wrote: Hi I have tomcat 4.1.27 server. when ever i start the tomcat i saw a message below Starting service Tomcat-Standalone Apache Tomcat/4.1.27 DCTMINFO

Own implementation WebdavServlet

2006-06-02 Thread jeroen
I want to make my own implementation of org.apache.catalina.servlets.WebdavServlet. I first wanted to make a test by copying the contents of this class to a new class. Now there's a strange phenomenon: the ProxyDirContext resources cannot be retrieved. It is retrieved from the contextAttribute

RE: Auto Reload Features by Tomcat

2006-06-02 Thread Richard Mixon
If I understand correctly, you are describing moving a src file (ProfileServlet.java) under project/WEB-INF/src in your production Tomcat webapps directory. I know that am not sure why you believe that Tomcat will automatically compile your servlet source (I believe it will for a .jsp file) The

Re: Tomcat 5.0.28 reaches OS open files limit

2006-06-02 Thread Edoardo Causarano
Hmm... I'll check. Thanks e 2006/5/26, [EMAIL PROTECTED] [EMAIL PROTECTED]: I have a problem with some tomcat servers that regularly start thowing exceptions about too many open files (the stacktrace is in a network socket aperture). One solution is increasing the ulimit but would

How to make Axis use Tomcat's compiler?

2006-06-02 Thread Seak, Teng-Fong
Hello everybody, I don't know if this post would be considered off-topic, or maybe I should cross-post it since it's about Axis and Tomcat. I'm trying to use Web service in Tomcat, ie with Axis. I've read and followed the install guide and user guide:

Re: Tomcat as a standalone webserver. Why not?

2006-06-02 Thread Jim Jagielski
IMO, if you need to move out of pure Java in your Java Web Server to get acceptable performance, then why use it in the first place? Plus, if you are concerned about the security of Apache (cause it's nasty C) and therefore want to use a Java Web Server, then using JNI means you've left that warm

Tomcat windows service terminated expectedly

2006-06-02 Thread Bill Tomlinson
We're running tomcat in standalone mode as a windows service. Every once and a while tomcat crashes with no logs or errors. Just not running anymore. The windows event log just says service terminated unexpectedly. The tomcat service can be restarted without problems. We haven't been able to

Re: Tomcat as a standalone webserver. Why not?

2006-06-02 Thread Remy Maucherat
On 6/2/06, Jim Jagielski [EMAIL PROTECTED] wrote: IMO, if you need to move out of pure Java in your Java Web Server to get acceptable performance, then why use it in the first place? Plus, if you are concerned about the security of Apache (cause it's nasty C) and therefore want to use a Java Web

Re: Tomcat as a standalone webserver. Why not?

2006-06-02 Thread Mladen Turk
Jim Jagielski wrote: Web Servers are web servers primarily, focused on HTTP, compliance, speed and capability. Use the right tool for the right job :) Agreed. If you only need a web server, use a web server. I think that the question is not whether to replace the web server, but whether the

Re: How to hide the keystorePass at the server.xml

2006-06-02 Thread David Wall
Leon Rosenberg wrote: On 6/2/06, Bill Barker [EMAIL PROTECTED] wrote: TC 3.3.x had an optional module to do this. It never got ported. I generally agree with most of the people that say that this is the least of your problems. If you are usings a self-signed cert, then you are just

HTTP-less GenericServlets - Was: Socket Servlet using Tomcat 5.5.17

2006-06-02 Thread Juergen Weber
I have quite a similar problem as the original poster. I'd like to write a router for CORBA messages that should listen on a socket and forward the messages to JMS. Same as the OP I would like to host the code in Tomcat, to avoid having to handle all the threading and socket issues and still more

Re: TC 5.5.17 problem with multiple webapps using JCE provider and security manager - RESOLVED

2006-06-02 Thread David Wall
On reading more in the release notes (http://tomcat.apache.org/tomcat-5.5-doc/RELEASE-NOTES.txt), I figured I'd give the shared/lib idea a try. I found that just by moving the BouncyCastle JCE jar into shared/lib and out of the WEB-INF/lib of the various webapps, all seems to work okay.

Tomcat jkmanager

2006-06-02 Thread Leo Donahue - PLANDEVX
After reading this article: http://tomcat.apache.org/connectors-doc/howto/workers.html I still don't understand what a jkmanager is or does or why it allows you to do this: http://localhost/jkmanager and get some kind of page describing what appears to be load balancing upon a default

Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Bob Hall
Carlos, The javadoc indicates that the methods are deprecated, but it looks like you could use: HttpSession mySess = request.getSession(); // getSessionContext() is deprecated HttpSessionContext sessCtx = mySess.getSessionContext(); // getSession(String) is deprecated HttpSession otherSess =

Problem with the JRockit

2006-06-02 Thread Benjamin Chu
I hope to run the tomcat 5.0 with JRockit 5.0 R26.3.on a linux machine and installed JRockit in the root directory (/root/jrockit-R26-3.0-jdk1.5.0_06) The following is the environment variables which I set:** export JAVA_HOME=/root/jrockit-R26-3.0-jdk1.5.0_06 export JAVA_HOME

Re: Realm Tag in webappnamecontext.xml

2006-06-02 Thread Mark Thomas
Marc Farrow wrote: auth-contraint/ And there is the problem. An empty auth-constraint allows unauthenticated access as per SRV.12.8.1 An empty auth-constraint is not the same as an auth-constraint that specifies no roles and therefore denies access to all as per SRV.12.8.1. Mark

Re: JKMount with Tomcat and Access Restriction

2006-06-02 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread.

Re: Problem while deploying war

2006-06-02 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a new topic) please do not reply to an existing message and change the subject line. To many of the list archiving services and mail clients used by list subscribers this makes your new message appear as part of the old thread.

Re: Tomcat jkmanager

2006-06-02 Thread Mark Thomas
Leo Donahue - PLANDEVX wrote: I still don't understand what a jkmanager is or does or why it allows you to do this: jkmanager is part of isapi.dll It intercepts requests to /jkmanager before they get to Tomcat and responds to them. I know that whatever jkmanager is, it is located in a custom

Re: HTTP-less GenericServlets - Was: Socket Servlet using Tomcat 5.5.17

2006-06-02 Thread Tim Funk
(My opinion) The servlet spec really only works for http based things. Trying to fit anything else in will morph into a ainful kludge. There are other apache projects out there such as avalon (or whatever subprojects it broke into) which is probably more suited to this task. -Tim Juergen Weber

Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Eric Haszlakiewicz
On Fri, Jun 02, 2006 at 11:15:03AM +0200, Carlos Alonso Vega wrote: Bob, Thanks for the reply. My problem is that the session info I need is not of the session that makes the request. I need to check other sessions in the same context. I can use the request because it is in the same

Re: Realm Tag in webappnamecontext.xml

2006-06-02 Thread Marc Farrow
Thanks Mark. I did figure out my configuration problem! On 6/2/06, Mark Thomas [EMAIL PROTECTED] wrote: Marc Farrow wrote: auth-contraint/ And there is the problem. An empty auth-constraint allows unauthenticated access as per SRV.12.8.1 An empty auth-constraint is not the same as an

Re: Retrieve certain session data inside a servlet

2006-06-02 Thread Frank W. Zammetti
I may be wrong about this, but I thought that it was expressly forbidden by the servlet spec to be able to get arbitrary sessions. That is, even if you store the session ID in some table, you wouldn't be able to get any session other than that associated with the current request. Now, that

How can I modify the java.library.path in Tomcat?

2006-06-02 Thread Andi Heusser
Hi, I have a web application where I need to load some 3rd party libraries DLLs) and I would like to have these DLLs in a subdirectory in my app (webapps/MyApp/WEB-INF/lib). However when I try to do a 'loadLibrary' it fails to find them. I then noticed that the 'Tomcat/bin' directory is in

Re: How can I modify the java.library.path in Tomcat?

2006-06-02 Thread Wade Chandler
--- Andi Heusser [EMAIL PROTECTED] wrote: Hi, I have a web application where I need to load some 3rd party libraries DLLs) and I would like to have these DLLs in a subdirectory in my app (webapps/MyApp/WEB-INF/lib). However when I try to do a 'loadLibrary' it fails to find them. I

ssl timeout length with jsse with tomcat 5.5

2006-06-02 Thread Jason Pendrey
I want to know how to control the length of time that an ssl connection timesout and a user needs to login again. Right now its too short and I can't find anything in the server.xml ssl connector node that seems to change that. I'm using tomcat 5.5 with the latest jsse.