Invalid keystore format

2005-12-26 Thread tam wei
Dear All, I encouter the following error while I establish an SSL connection to the other machine. java.net.SocketException: Default SSL context init failed: Invalid keystore format at javax.net.ssl.DefaultSSLSocketFactory.createSocket(DashoA12275) at sun.net.www.protocol.https.Ht

RE: detecting a new file

2005-12-26 Thread Wade Chandler
--- Daniel Blumenthal <[EMAIL PROTECTED]> wrote: > A related question to this is, how can you set up a > process within the > servlet that fires off at X time, or every Y > seconds? The equivalent of a > cron job inside the servlet. > > If you have high enough traffic, there's an easy > hack - j

Re: Tomcat uses locally only.

2005-12-26 Thread Pulkit Singhal
Hello, I am a n00b myself so I don't know how much this will help you but here's an interesting bit of fact for you: 1) My config: Apache Web Server + mod_jk (tomcat connector) + Tomcat 5.x 2) When I was sending GET or POST requests to my webserver for content that was actually being housed in T

Re: detecting a new file

2005-12-26 Thread Wade Chandler
--- Khawaja Shams <[EMAIL PROTECTED]> wrote: > Hello all, > I am curious if anyone has ever had to write a > servlet that listens for > new files on the server and processes them upon > appearence. Basically, I > need to write a server side program that detects > when (our automated > process

Tomcat uses locally only.

2005-12-26 Thread Travis Morris
This may be a newbie question forgive me for that. I'm currently using Tomcat as a client-side server which is intended to only be accessed by the local user. Therefore it does not need to be accessed via a remote IP. Is there a setting in the connector to specify that the server is only t

RE: detecting a new file

2005-12-26 Thread Daniel Blumenthal
A related question to this is, how can you set up a process within the servlet that fires off at X time, or every Y seconds? The equivalent of a cron job inside the servlet. If you have high enough traffic, there's an easy hack - just store a Date object as a servlet-level attribute, and check on

Re: Tomcat Datasource , can we define them in war file (whithout accessing to Admin console)?

2005-12-26 Thread Khawaja Shams
Hello, I am assuming that you are trying to define this datasource in order to do application server managed connection pooling. The closest I have done to what you described is declare a datasource as a global resource in the server.xml and refer to it in context definition. You can define a

detecting a new file

2005-12-26 Thread Khawaja Shams
Hello all, I am curious if anyone has ever had to write a servlet that listens for new files on the server and processes them upon appearence. Basically, I need to write a server side program that detects when (our automated process) delivers a file to the server filesystem and then process th

Re: mod_jk versus mod_proxy under load ?

2005-12-26 Thread Pulkit Singhal
I hate to take you off topic here but just in case you migth want to check this post out as well: *Re: About possible memory leak in Tomcat 5.x* Cheers and Gluck! On 12/26/05, Laurent Perez <[EMAIL PROTECTED]> wrote: > > Hello > > One of our production servers recently started to suffer from ver

Keystore password in clear text

2005-12-26 Thread Shibu Vachery
Hi, Is there a way in tomcat on (Windows / Unix) that we can avoid the keystore password being set in clear text in the server.xml file? Is there a way that the JVM system parameter " javax.net.ssl.keyStorePassword" can be passed in to the tomcat server when it starts up so that the password is

mod_jk versus mod_proxy under load ?

2005-12-26 Thread Laurent Perez
Hello One of our production servers recently started to suffer from very heavy performance troubles under load : the current setup is apache2 + mod_jk/ajp13 + tomcat5.0.25, jdk 1.4.2, 1GB (Xmx/Xms to 640MB) on a dual 2.4Ghz Xeon server. The maximum amount of requests/sec reached is around 15req/se

Re: Connection refused

2005-12-26 Thread Pulkit Singhal
Hi Mukesh, 1) Do you have any way of making sure that whatever it is that you are trying to connect to is actually up and running and accepting connections? 2) If so, then are you sure that the details you use to make the actual connection...are correct? 3) After your second post, I feel that mayb

Re: UDP Server app

2005-12-26 Thread Pulkit Singhal
Hello, First off: what you are attempting to do sounds really exciting. Secondly...a few coments: 1) "I guess I can monitor the port without Tomcat needing to be configured differently." - In my experience, such statements can hurt you, don't guess...be sure. You should (if you haven't already)

Tomcat Datasource , can we define them in war file (whithout accessing to Admin console)?

2005-12-26 Thread Legolas Woodland
Hi Thank you for reading my post. Is it possible to make a data-source without admin console ? I mean by defining the data-source in web.xml or in Context.xml (i think i read somewhere that we could put context.xml into meta-inf folder and it will act like Context definition in admin console).

RE: UDP Server app

2005-12-26 Thread kjr_23
Pulkit, This will be a brand new application. We will be tracking a fleet of about 300 - 400 vehicles with modems in them which send out udp data. We will configure them to send to a port of our choosing. I am planning to host a java app on Tomcat to read this data, parse it and write to a data

Re: UDP Server app

2005-12-26 Thread Pulkit Singhal
Hi, A few questions to help clarify what you want: 1) Is this UDP port actually being used by your instance of Tomcat for implementing some functionality and you simply want to listen on the port without interfering with the actions that take place? (kind of like a wire tap) --> If you are indeed

Re: tomcat-apache ajp13 connection problem (answer time)

2005-12-26 Thread tomcat
no, none at all. there is the network switch followed by the firewall. Quoting Prasad <[EMAIL PROTECTED]>: > Any load balancers exist in your enviornment ?? > [EMAIL PROTECTED] wrote: > > >hello there, > > > >i have two servers inside the dmz, one with redhat 9 the other with > >fedora core 4.

UDP Server app

2005-12-26 Thread kjr_23
I'm developing an application that will monitor a port on Tomcat 5.5.x and receive udp datagrams. I've got the class coded, but not sure if I've done it correctly. I created a class with a main() method that runs the code to read from whatever port I specify. Do I need to configure Tomcat to ope

Connection refused

2005-12-26 Thread mukesh
Hi friends, I have found the cause of the error, in fact function is never gets called. Its throwing an error "nested exception is: java.net.ConnectException: Connection refused" Code is like this Try { //calling function here }catch(Exception e) { out.println(e.getMessag

Configure Farming Tomcat

2005-12-26 Thread carlos . garcia
Hello, I am trying to configue something like this: One Hardware balancer Two Apache-1.3.33 Two Tomcat-5.5.7 with four machines. The load balancer works fine but I have many problems with Cluster (farming) configuration. I don´t know how I have to configure this in order to put a class (or .js

Tomcat 5.5.12 custom Resource factory - javax.naming.NamingException: Cannot create resource instance

2005-12-26 Thread Dave Whitla
Calling Craig help please. I am trying to deploy a client web-application to a distributed app which relies on ActiveMQ as its core async messaging medium. I have declared the appropriate resources in the GlobalNamingResources section of server.xml and referenced them via ResourceLinks in th

Tomcat avoid some headers

2005-12-26 Thread Borja Bravo Alférez
Dear list, I have just discovered an unusual behaviour in Tomcat4. In a JSP like: <% response.setHeader("Cache-Control","no-cache"); response.setHeader("Coche-Control","no-coche"); %> The second header will be sent but no the fisrt. I seems to be a feature, not a bug. There is an option

Method returning null

2005-12-26 Thread mukesh
Hi all, I have deployed a web service on my tomcat 5.5.12 running on linux7.0. I am using axis 1.3. I am trying to call a function which returns an integer but I am getting "null" always. Why so? Please advice what could be the problem? Regards,