Re: How to configure a TrustManager for tomcat?

2004-07-13 Thread Bill Barker
Firstly, the only SSLServerSocketFactory that actually does anything is the one for the deprecated HttpConnector in TC 4. With the CoyoteConnector, it is possible to plug in your own SSLImplementation (which, among other things, would allow you to install your own TrustManager), but most people

Re: Authentication method 'DIGEST'

2004-07-13 Thread Bill Barker
UserDatabase doesn't support DIGEST. In fact, it could be that only MemoryRealm (which supports everything) does. However, I can't be bothered to look :). [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anyone know if the DIGEST authentication is supported by Tomcat 5? I have

RE: Authentication method 'DIGEST'

2004-07-13 Thread johan . philippe
Sure Tom, the development machine is Windows (XP) and in a domain, so that can only be NT or Active Directory. Also have a test Win2K machine (standalone), with the same behaviour. None of this should change anything AFAIK, since it is with the default UserDatabase, we do not use JAAS or

RE: Authentication method 'DIGEST'

2004-07-13 Thread johan . philippe
Sure Tom, the development machine is Windows (XP) and in a domain, so that can only be NT or Active Directory. We also have a test Win2K machine (standalone), with the same behaviour. None of this should change anything AFAIK, since it is with the default UserDatabase (the XML file). We do not

Error when running shutdown.sh

2004-07-13 Thread David Thakur
Hi everyone, I get an error when I shut down my tomcat server: ./shutdown.sh Using CATALINA_BASE: /opt/jakarta-tomcat-5.0.25 Using CATALINA_HOME: /opt/jakarta-tomcat-5.0.25 Using CATALINA_TMPDIR: /opt/jakarta-tomcat-5.0.25/temp Using JAVA_HOME: /opt/jdk1.5.0 ERROR: transport error 202:

Re: Clustering/high availability without JDK1.4

2004-07-13 Thread Peter Rossbach
Hey Chris, I thing you can use a javagroup solution. Look at http://www.jgroups.org/javagroupsnew/docs/index.html Little bit old but usefull implementation from Filip Tomcat-jg... http://sourceforge.net/projects/tomcat-jg regards peter Chris Todd schrieb: Is there any way to achieve high

Embedded Server shuts down on exceptions in webapp

2004-07-13 Thread Maurice Wijtten
I am currently using the embedded server to startup catalina as part of our application, mostly due to the fact we need more control over the startup proces. I have setup the embedded server as describes in the many tutorials, which works fine for me. But, unfortunately, the server is forces to

Re: No Java compiler was found to compile the generated source for the JSP

2004-07-13 Thread Endre Stølsvik
On Mon, 12 Jul 2004, Simone-dev wrote: | I remember in tomcat 5.0.18 there was a java Home property, but now I've | just a Java Virtual machine | originally it was set to C:\Program | Files\Java\j2re1.4.2_05\bin\client\jvm.dll (and didn't worked) | then I changed it to

Class loading problem with Sysdeo Tomcat Eclipse plug-in

2004-07-13 Thread Henri Sivonen
I'm trying to launch Tomcat 4.1.30 from Eclipse 3.0 using the Sysdeo plug-in (3.0beta). So far, I haven't succeeded. According to the docs, it is enough to give the plug-in the path to the Tomcat installation directory and it is not necessary to add the Tomcat jars explicitly to the classpath.

Re: No Java compiler was found to compile the generated source for the JSP

2004-07-13 Thread Simone-dev
Thank you I just reinstalled tomcat and now it works maybe on windows there are some strange registry key to be set if you set the JAVA_HOME env variable after the installation. But don't know which one Simone Endre Stølsvik wrote: On Mon, 12 Jul 2004, Simone-dev wrote: | I remember in tomcat

Re: Class loading problem with Sysdeo Tomcat Eclipse plug-in

2004-07-13 Thread Frank Burns
Hi Henri, I initially had some trouble installing the Sysdeo plugin, but then I followed the steps in this tutorial exactly and it worked fine: http://javaboutique.internet.com/tutorials/three/ I don't know of a mailing list, but here is a newsgroup: (news server) news.eclipse.org (newsgroup)

Xiao F Chen/IS/UNL/UNEBR is out of the office.

2004-07-13 Thread Xiao F Chen
I will be out of the office starting 07/13/2004 and will not return until 08/11/2004. I will respond to your message when I return. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-13 Thread Morus Walter
Hi, First of all apologies to everyone for sending my last message thrice. Wasn't intentional and I'll do my best not to repeat that... File destDir = null; if (absoluteLibPath != null) { destDir = new File(absoluteLibPath); } else {

RE: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-13 Thread STOCKHOLM, Raymond
What JVM are you using ? I had some similar problems with java 1.4.1_01 on Windows, when to many files were opened. Solved with 1.4.1_05. -Message d'origine- De : Morus Walter [mailto:[EMAIL PROTECTED] Envoyé : mardi 13 juillet 2004 11:19 À : Tomcat Users List Cc : [EMAIL PROTECTED] Objet

RE: tomcat doesn't create directories under 'work' but does create .java/.class files

2004-07-13 Thread Morus Walter
STOCKHOLM, Raymond writes: What JVM are you using ? I had some similar problems with java 1.4.1_01 on Windows, when to many files were opened. Solved with 1.4.1_05. java -version java version 1.4.2_04 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) Java HotSpot(TM)

AW: see Tomcat deployed applications throw JMX

2004-07-13 Thread Younes El Moumen
I have found the solution: MBeanServer mBeanServer = null; Registry registry; registry=Registry.getRegistry(); mBeanServer = Registry.getRegistry().getServer(); Set set = mBeanServer.queryNames(new ObjectName(Catalina:type=Manager,*), null);

Anybody using compressableMimeTypes?

2004-07-13 Thread Ronald Klop
Hello, I'm using the Connector options compression=on and compressableMimeTypes=text/html,text/xml,text/plain,text/javascript,text/css. But it looks like Tomcat is just using its defaults for compressableMimeTypes. Does anybody experience the same thing? I filed a bugreport on this earlier this

JasperException

2004-07-13 Thread Avula, Srini
Hi After we deployed application in tomcat we got this error: (However the deployment done successfully in oracle 10G OC4J Server and works fine). org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 135 in the jsp file: sri/eEntries.jsp Generated servlet

Accessing javax.security.auth.Subject within a session

2004-07-13 Thread Matt Harrison
Hi I've implemented a JAAS Realm authentication module for my servlet/JSP web-app which is working a treat. Can anybody tell me how to access in my servlets the javax.security.auth.Subject object generated at login? This fronts an existing application and I would like to store the user-specific

Recording Tomcat Application with JMeter

2004-07-13 Thread ralf
Hi, how do I have to configure JMeter's HTTP Proxy Server for being able to record requests of a Tomcat web application? My Tomcat application is called via http://localhost:8080/myapp. I tried setup the HTTP Proxy Server to listen on port 8080 but with no effect. Is it possible at all to use

RE: Clustering/high availability without JDK1.4

2004-07-13 Thread Shapira, Yoav
Hi, The notes for patchset 5 and 6 suggest you can pretty much use FreeBSD JDK 1.4 without a problem, it passes compatibility tests for JDK 1.4.2 etc: http://www.freebsd.org/java/dists/14.html. Yoav Shapira Millennium Research Informatics -Original Message- From: Chris Todd

RE: Recording Tomcat Application with JMeter

2004-07-13 Thread Shapira, Yoav
Hi, You mean record as in log the requests made to the server? The AccessLogValve is good for that. JMeter is a testing application more than a recording one. Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Status

2004-07-13 Thread tomcat-user
-- Virus Warning Message (on viruswall) Found virus WORM_LOVGATE.Z in file readme.pif (in readme.zip) The uncleanable file is deleted. - It's the long-awaited film version of the Broadway hit. The message sent as a

RE: mod_jk2, apache and index.jsp

2004-07-13 Thread Tonte Pouncil
Sergei, Ian, and Anybody else: Hello, I am trying to do the same thing, which is to have Apcache 2.0.49 forward all jsp and servlet request to Tomcat 5.0.25 on a windows box. Have you or anyone else been able to get this to work successfully? What is debian/testing? And what is Debian

RE: Recording Tomcat Application with JMeter

2004-07-13 Thread Larry Isaacs
You would configure the HTTP Proxy Server to use a port different from Tomcat's, say 8082. Then you would reconfigure your browser to use as its proxy the machine and port that correspond to HTTP Proxy Server, i.e. your machine name:8082. Then access Tomcat with your browser as you would

chart by use org.apache.poi

2004-07-13 Thread Francesco Pellegrini
Hi all, I have an application based on java (1.4.2) and Tomcat 5.0.19. At moment I use a jakarta-poi-1.5.1-final-20020615.jar library because I need to: 1) open a file (excel type) 2) Create sheet 3) fill some cell on sheet before created (to generate a report). I need to add one more

RE: mod_jk2, apache and index.jsp

2004-07-13 Thread Ian Stevens
Debian is a Linux distribution. Debian Woody is the stable version, and Debian/testing is, well, in a testing state. As you can see from my email, I haven't been able to successfully forward all requests. I was hoping it would be as simple as outlined in the HOWTO, but, as with everything, that

UserConfig question

2004-07-13 Thread Ed Santora
Hello: The majority of our users' information is stored in LDAP, and their home directories are in the form of /home/courses/u/s/username. PasswdUserDatabase only reads /etc/passwd. HomesUserDatabase doesn't seem to like wildcards, such as /home/courses/*/*/* Is there any version of Tomcat

RE: mod_jk2, apache and index.jsp

2004-07-13 Thread Tonte Pouncil
Okay thanks for bring me up to speed on the Linux lingo. I will try to do the same thing you have done in a windows environment. Granted I have already tried this several times with a slightly different configuration. I doubt it will work though but I will give it a shot when I get home. I

Is there such a beast ? (virtual directories)

2004-07-13 Thread Mike Curwen
Hello all, I had a friend ask me on the phone a couple days ago, and now a question has popped up at javaranch. I've looked in the docs and googled, but haven't found a definitive 'no' answer (shouldn't life be that simple?). Thought I'd ask here. Is there such a thing as directory aliasing /

RE: mod_jk not forwarding requests to Tomcat

2004-07-13 Thread Ian Stevens
As the above directive indicates, I would like to have all requests to Apache forwarded to Tomcat. However, that is not happening and any URL I try results in a 404 with an error indicating such in Apache's error.log. No errors indicating failure appear in the obvious spots, and no

RE: Is there such a beast ? (virtual directories)

2004-07-13 Thread Carl Olivier
Inside a host you could add a context path=/images docBase=/usr/local/somewhere / Regards, Carl -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: 13 July 2004 05:13 PM To: [EMAIL PROTECTED] Subject: Is there such a beast ? (virtual directories) Hello all, I had a

RE: Is there such a beast ? (virtual directories)

2004-07-13 Thread Mike Curwen
Hm... would that work in this case: host ... context docBase=/path/to/web-app/root/ path=/foo-app ... / context docBase=/some/other/path path=/images / /host then from the browser I'd want: http://www.mydomain.com/foo-app/images to look inside /some/other/path (the virtual directory

Re: Is there such a beast ? (virtual directories)

2004-07-13 Thread Chong Yu Meng
Hi Mike, Mike Curwen wrote: Hm... would that work in this case: host ... context docBase=/path/to/web-app/root/ path=/foo-app ... / context docBase=/some/other/path path=/images / /host I think this syntax would confuse Tomcat. I thought only one context tag is allowed ...? I could be

Re: Is there such a beast ? (virtual directories)

2004-07-13 Thread David Rees
Chong Yu Meng wrote, On 7/13/2004 9:07 AM: Mike Curwen wrote: host ... context docBase=/path/to/web-app/root/ path=/foo-app ... / context docBase=/some/other/path path=/images / /host I think this syntax would confuse Tomcat. I thought only one context tag is allowed ...? I could be wrong.

Re: Is there such a beast ? (virtual directories)

2004-07-13 Thread QM
On Wed, Jul 14, 2004 at 12:07:30AM +0800, Chong Yu Meng wrote: : host ... : context docBase=/path/to/web-app/root/ path=/foo-app ... / : context docBase=/some/other/path path=/images / : /host : I think this syntax would confuse Tomcat. I thought only one context : tag is allowed ...? I

Re: Problems with Tomcat, Struts/Tiles, and encoding

2004-07-13 Thread Ruth, Brice
I have a Struts/Tiles application running on Tomcat 4.1.x and Tomcat 5.x with UTF-8 encoding (Polish Russian character sets, particularly) - I didn't have to do anything special for the response encoding, only for the request encoding. Here's what I put at the top of my JSPs: %@ page

RE: Applet in tomcat clustering

2004-07-13 Thread Simon Zeng
I thought it would work too. But unfortunately it did not.:( In both applet and servlet code, I have the trace log. From time to time, while in applet log the jsessionid is the correct one, but in servlet, it is a different one. Any idea? -Simon -Original Message- From: Filip Hanik -

RE: Problems with Tomcat, Struts/Tiles, and encoding

2004-07-13 Thread Shapira, Yoav
Hi, That's an excellent response and fiskars.com is a nice-looking site. Thanks, Yoav Shapira Millennium Research Informatics -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 12:25 PM To: Tomcat Users List Subject: Re: Problems with Tomcat,

Re: Recording Tomcat Application with JMeter

2004-07-13 Thread Ralf Schneider
Am Dienstag, 13. Juli 2004 16:06 schrieb Larry Isaacs: You would configure the HTTP Proxy Server to use a port different from Tomcat's, say 8082. Then you would reconfigure your browser to use as its proxy the machine and port that correspond to HTTP Proxy Server, i.e. your machine name:8082.

Re: Applet in tomcat clustering

2004-07-13 Thread Filip Hanik - Dev
no idea until you gives us some more info. like what do your server log files tell you, how does the URL you are constructing to open the connection look like? etc Filip - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, July

Session Replication w/o Multicast

2004-07-13 Thread Jeremy Nix
Is there currently a way of replicating session information across multiple tomcat nodes without multicasting? If not, has any extended the Tomcat API to support this? The reason I ask is because we are using a hardware load balancer, and it does not support multi-casting. One thought is

re: Easy questions

2004-07-13 Thread Bliesner, Christopher P
Hi-I'm using Tomcat 4.1.12 and I have have it running great, thanks. I have my connection pooling set up and working to an Oracle DB. However, are we still using the 'RemoveAbondoned' parameters to close DBCP connections? I have the parameter set for 20 connections and the other day, I had a

Re: Session Replication w/o Multicast

2004-07-13 Thread Paul Gregoire
You could save your sessions in an RDBMS, but I'm not sure how responsive this would be... Jeremy Nix wrote: Is there currently a way of replicating session information across multiple tomcat nodes without multicasting? If not, has any extended the Tomcat API to support this? The reason I ask

RE: Easy questions

2004-07-13 Thread Shapira, Yoav
Hi, Don't rely on removeAbandoned, close your connections yourself (typically in the finally clause of a try/catch construct). Yoav Shapira Millennium Research Informatics -Original Message- From: Bliesner, Christopher P [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 1:38 PM

Re: Session Replication w/o Multicast

2004-07-13 Thread Filip Hanik - Dev
yes, a guy posted a patch on this mailing list a while back, where you can predefine your members(hardcode them into server.xml). I am superbusy right now so I have not had time to incorporate those. So that would be direct tomcat to tomcat replication Not sure why you must have a load balancer

Re: Easy questions

2004-07-13 Thread QM
On Tue, Jul 13, 2004 at 12:37:53PM -0500, Bliesner, Christopher P wrote: : I'm kind of worried that my db : connections are not closing. Any suggestions? One technique I've seen for tracking down stray connections is to set the DB pool to use just one connection. That makes it pretty easy to

Re: Easy questions

2004-07-13 Thread Peter Lin
as a general for myself, I always explicitly close the connections, to make sure the connection gets returned to the pool. peter On Tue, 13 Jul 2004 12:37:53 -0500, Bliesner, Christopher P [EMAIL PROTECTED] wrote: Hi-I'm using Tomcat 4.1.12 and I have have it running great, thanks. I have my

Problem configuring Tomcat 5 to work with Apache 2.0.50 using JK2

2004-07-13 Thread David A. Frischknecht
Hello, I'm trying to get Tomcat 5 to work with Apache 2.0.50 on a Win2K Pro box. Tomcat works fine by itself, and so does Apache. However, when I follow the steps in the JK2 documentation and then try to test it, I get an HTTP error 500. I've included the appropriate lines from the Apache

Re: Session Replication w/o Multicast

2004-07-13 Thread Filip Hanik - Dev
forgot to mention, that implementing a hard coded member layer using straight tcp should be pretty easy. just implement the member ship service interface, and you will be good to go Filip - Original Message - From: Filip Hanik - Dev [EMAIL PROTECTED] To: Tomcat Users List [EMAIL

Re: How to configure a TrustManager for tomcat?

2004-07-13 Thread im dolor
So then could I extend org.apache.tomcat.util.net.JSSEImplementation to create my own implementation and override the getServerSocketFactory() to create one that uses my custom trust manager? Does that sound right to you? Will that only work with tomcat 5? Is there something that I can do that

dbcp pool global for only one virtualhost???

2004-07-13 Thread Emerson Cargnin
Is there a way to set a global pool only accessible for a given virtualhost? -- Emerson Cargnin Analista de Sistemas - Gerente Regional - Tubarão Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 -

RE: Problems with Tomcat, Struts/Tiles, and encoding

2004-07-13 Thread Susie Derkins
Thanks Brice and Yoav. fiskars.com is very slick indeed. Brice, your response was very helpful; I verified that that all my files are saved with the proper encoding (some of them were not). But I’m still having a problem: I have a custom tag that reads a file and writes its content to the JSP’s

RE: Easy questions

2004-07-13 Thread Bliesner, Christopher P
Hi--I've got the programmers doing that with the closures but can I use it as a backup perhaps in case one of them does a doh? Chris Bliesner Lead Oracle DBA/Unix admin Wk Phone 915-834-1757 -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004

RE: Is there such a beast ? (virtual directories)

2004-07-13 Thread Erik Earle
This goes against the grain of the servlet spec. Generally, images would be something tied to a web application and would therefore be contained within the application war file (or directory) so that the webapp would be deployed as a single unit. ...but I'm not a puriest so have at it :P One

RE: Is there such a beast ? (virtual directories)

2004-07-13 Thread Justin Ruthenbeck
At 12:13 PM 7/13/2004, you wrote: One option is to use a servlet that serves static files from directories and map that servlet in your web application's web.xml. This is nowhere near as robust or secure as putting httpd infront of your servlet containers. Again since this _could_ point

Re: Deploying onto a specific host...

2004-07-13 Thread Emerson Cargnin
Yes, I thing that's it, but I haven't tried this yet... Ivan Jouikov wrote: Then how would you access that specific manager? www.host.com/manager ? -Original Message- From: Emerson Cargnin [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 4:16 PM To: Tomcat Users List Subject: Re:

Re: Accessing javax.security.auth.Subject within a session

2004-07-13 Thread Jeanfrancois Arcand
Matt Harrison wrote: Hi I've implemented a JAAS Realm authentication module for my servlet/JSP web-app which is working a treat. Can anybody tell me how to access in my servlets the javax.security.auth.Subject object generated at login? You can get it using

RE: NPE in ActionForm where it is not be possible

2004-07-13 Thread Richard Mixon (qwest)
QM mailto:[EMAIL PROTECTED] wrote: On Sat, Jul 10, 2004 at 12:31:21PM -0700, Richard Mixon (qwest) wrote: The log variable is initialized when the Action form is instantiated, like so: public class ChartWizardForm extends ActionForm implements java.io.Serializable { private transient

RE: NPE in ActionForm where it is not be possible

2004-07-13 Thread Richard Mixon (qwest)
Craig Berry mailto:[EMAIL PROTECTED] wrote: From:QM [mailto:[EMAIL PROTECTED] I notice, you define/initialize the instance variable log at its declaration point. Humor me: what happens if you initialize log in the ctor? Or for that matter, why not make the log member static?

Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-13 Thread Ivan Jouikov
Hey! Im trying to make it so that my clients could use different languages when entering stuff into my froms. What I am doing right now is: All my pages have %@ page language=java contentType=text/html; charset=UTF-8 at the top When I retrieve parameters I use the following

RE: JasperException

2004-07-13 Thread Aris Javier
have you tried copying tools.jar inside tomcat\common\lib folder? just a thought! -Original Message- From: Avula, Srini [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 5:43 PM To: [EMAIL PROTECTED] Subject: JasperException Hi After we deployed application in tomcat we got this

tomcat restart problem

2004-07-13 Thread Tomcat Cat
Hello, all, I got a weird problem with Tomcat 5 recently. It shutted down by itself, but after I restarted it, I still can't connect to the server. The browser complained that The requested URL can't be retrieved. I know the tomcat process already started since I can see its java job in the

RE: Clustering/high availability without JDK1.4

2004-07-13 Thread Chris Todd
Yoav, Thanks for the suggestion, but this port of Java does not work on OpenBSD due to unresolved threading issues. The only option on OpenBSD for the time being is to use the Linux JDK1.3 in Linux emulation mode. But thanks to Peter Rossbach for suggesting I look at Jgroups, which I will do.

Re: Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-13 Thread Koon Yue Lam
Hi, I am not en expert, just some piece of advice I know from MySql 4.01, u can define the character encoding on each database, table and column. Are u sure your column is encoded in unicode? Because the GUI client may smart enought to auto convert the encoding, so u can view the character

RE: Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-13 Thread Ivan Jouikov
Hmm any idea how to define that? -Original Message- From: Koon Yue Lam [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 9:34 PM To: Tomcat Users List Subject: Re: Retrieveing Unicode stuff from MySQL 4.1.x ? Hi, I am not en expert, just some piece of advice I know from

Re: Retrieveing Unicode stuff from MySQL 4.1.x ?

2004-07-13 Thread Koon Yue Lam
http://dev.mysql.com/doc/mysql/en/Charset-defaults.html in your case, u just define everything as unicode, so just set the database encoding to unicode hopes this help - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: How to configure a TrustManager for tomcat?

2004-07-13 Thread Bill Barker
im dolor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So then could I extend org.apache.tomcat.util.net.JSSEImplementation to create my own implementation and override the getServerSocketFactory() to create one that uses my custom trust manager? Does that sound right to you?