Re: Can't import apache ssl key to tomcat keystore

2003-09-30 Thread Bill Barker
The Bicore utility has always worked for me. Getting on-topic, I'm assuming that since you have an Apache cert, that you have openssl installed. The alternative method is to use openssl to generate a pkcs12 file, and use that as your keystore. Something like: openssl pkcs12 -export -chain

tomcat port on the web

2003-09-30 Thread N.B.Bopanna
Hi all, Is it nessasary to have default 80 port if tomcat is used as standalone server on the web or is it possible to put any port (say like 8080). How to configure tomcat 4.1.24 so that it can receive the http request when DNS name is typed in the browser? Any help is welcome. Thanks in

Re: Filter for Form Authentication Problem

2003-09-30 Thread Bill Barker
Joerg Heinicke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tim Funk wrote: You can't intercept j_security_check with a filter, it violates the spec. -Tim This is at least one answer to my thread started last week: http://www.mail-archive.com/[EMAIL

Re: jk_ajp12_worker.lo: unknown file type

2003-09-30 Thread Bill Barker
At a quick guess, you've got Sun's 'ld' ahead of the GNU 'ld' in your path. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Folks, I have the following configuration: Solaris 8 Apache 2.0.45 Tomcat 4.1.27 Jakarta-tomcat-connectors-jk 1.2.4 I am following similar procedure as

Re: Tomcat Request Handling Question

2003-09-30 Thread Bill Barker
The Servlet spec (2.2-2.4) requires that each Request is handled by a single Thread. Especially with the Jk2-Coyote connector (that links Tomcat to Apache/IIS/SunOne), the thread may be re-used for requests from different clients. However, it will always serve one Request from start-to-finish

Modifying Requests; Interceptors ?

2003-09-30 Thread Steven Perry
Thanks a lot Adam. I hadn't noticed that in the server.xml. It kind of satisfies my current needs. I would also require to modify the requests or create responses based on the requests before they are processed by the webapp. How should I go about this ? Interceptors ? If so, can someone please

iis5 + tomcat5

2003-09-30 Thread chi
hi, Could you teach me how to run jsp in iis5?? May be my config have some misstake. I have isntall tomcat5 and can go to http://localhost:8080 isapi_redirector.dll added to isapi added regedit by this file iis_redirect.reg [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi

Re: Modifying Requests; Interceptors ?

2003-09-30 Thread Steven Perry
I notice that the BaseInterceptor is there in tomcat 3.3.1. How come it is not included in 4.1.27 and 5.0.12 ? Or prolly it is, and I cannot seem to locate it ?? --Steven --- Steven Perry [EMAIL PROTECTED] wrote: Thanks a lot Adam. I hadn't noticed that in the server.xml. It kind of

Re: iis5 + tomcat5

2003-09-30 Thread Mats Andersson
Is the isapi filer installed ok? That is, do you have a green up-pointing arrow next to it? Can you reach the url: http://localhost/jakarta/isapi_redirector.dll What is the error message you get? Mats chi wrote: hi, Could you teach me how to run jsp in iis5?? May be my config have some

Re: New list memberr -- Tomcat w/Win XP Pro and IE 6.1 problems

2003-09-30 Thread Pike
Hi quoting Yoav Shapira: unless tomcat's installation on her machine is messed up. her machine ? tomcat is a she ? nice kitten... *pike http://www.fogscreen.com/ .. tv in thin air .. - To unsubscribe, e-mail:

RE: tomcat port on the web

2003-09-30 Thread Joao Medeiros
Bopana, You can have your Tomcat web server running on port 8080 but not a good idea since that port is normally used for the administration server. Having said that however is also true that you can change the admin server port to whatever you want assuming you have the rights to do it and that

jakarta-struts-1.1-rc1 and jakarta-tomcat-4.1.24-LE-jdk14

2003-09-30 Thread Antony GUILLOTEAU
I'm running struts 1.1-rc1 with jakarta-tomcat-4.1.24-LE-jdk14 but I have the following error when I launch tomcat : Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer at

Custom authenticate

2003-09-30 Thread Damian Minkov
For 2 weeks I'm fighting with the authentication in Tomcat. Is it possible to make it authenticate the user with 3 params. For example username, password, and group belongs to. I need the third one because the roles of the user are different for different groups. I tried to make my own Valve and

Problems with Property Files

2003-09-30 Thread Martin Grüneberg
Hi all, I have build a Package (jar) which should be used from different Contexts. I put the jar in the shared/lib/ folder from Tomcat and the classes are found by Tomcat. The Package needs for proper initialisation 2 .properties files (log4j.properties and an application specific one) I put

HttpSessionListener

2003-09-30 Thread Thorsten Möller
Hi! I want to implement an HttpSessionListener. When will the container (Tomcat 5) call the method sessionDestroyed(HttpSessionEvent se). Before or after the session was invalidated (destroyed)? I can't find any documentation about that detail anywhere. Thorsten

tomcat and virtual hosts

2003-09-30 Thread Johan Louwers
I have set up tomcat and apache... bind them with a JK2 connector both on port 80. I have 2 domains running on the machine. I made the virtual hosts work in apache with editting httpd.conf The apache docs are located on the following location: /export/home/webroot/site1 (www.site1.com)

Re: HttpSessionListener

2003-09-30 Thread Jon Wingfield
In servlet spec version 2.3 the javadoc comments for sessionDestroyed are: Notification that a session was invalidated. It's already invalidated, not always what you want :( In servlet spec version 2.4 (proposed final draft 3) the javadoc comments for sessionDestroyed are now: Notification

Re: Filter for Form Authentication Problem

2003-09-30 Thread Tim Funk
Did that alrady. Here's the gory details and the conclusion is valid for 4 and 5. It seems the spec folks took care of the character encoding issue but forgot how to fix it for j_security_check. So the short term solution is probably a custom solution per platform. :( (Maybe google has the

Re: Tomcat not showing pages-----

2003-09-30 Thread Tim Funk
You probably have a servlet.jar floating around somewhere where it shouldn't be. -Tim kgsat wrote: Hi I am running the tomcat version 4.1.24 for my web application. When i start the tomcat it gets started well with the usual prompt messages. But when i try to access the example directory

Help with Tomcat

2003-09-30 Thread Lucas Alvarez
Hi all, I want to know if there is any command line tool to get the status of the java processes that tomcat is running from a remote machine. For example I would like to know if some process is frozen, locked up or if it's Ok. Any help is welcome. Thanks in advance. Lucas. System

Re: requestdispatcher question

2003-09-30 Thread Tim Funk
Put the pages in any subdirectory under WEB-INF. -Tim Josh G wrote: I have a quick question, how do I set up my system so that I can return some pages through a requestdispatcher that can't be requested by the user direct from the browser? Cheers, -Josh

Re: Custom authenticate

2003-09-30 Thread Tim Funk
Can you just change the username to be [EMAIL PROTECTED] or username/group and then write a custom Realm on that. Custom Realms == easy to write. Custom authenticator Valves == PITA. Look for any Bill Barker posts in the archives with Authenticator for more information about writing custom

Re: Tomcat not showing pages-----

2003-09-30 Thread kgsat
Hi Tim, I do not really understand how the servlet.jar is outof place as i did not tamper with any of the classpath settings and the tomcat location etc... i have been trying to find out the xact solution. could you help me out? thanks sat - Original Message - From: Tim Funk [EMAIL

Re[2]: Custom authenticate

2003-09-30 Thread Damian Minkov
Hello Tim, Tuesday, September 30, 2003, 2:05:20 PM, you wrote: TF Can you just change the username to be [EMAIL PROTECTED] or username/group and TF then write a custom Realm on that. Custom Realms == easy to write. Custom TF authenticator Valves == PITA. TF Look for any Bill Barker posts in

vm crasj on Redhat 8 while communicating with apache/Coyote (Unexpected Signal : 11, socketWrite0)

2003-09-30 Thread Mobinor.no
Hi As usual, this problem is Urgent, I suppose that is the situation for most post on the list :-) I have problems identifying a fix for this problem, java is crashing when using the service. It looks like the crash occurs when communicationg between tomcat and apache/browser, maybe because the

Re: Tomcat not showing pages-----

2003-09-30 Thread Tim Funk
The root cause is java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getUserPrincipal()Ljava/security/Princ Meaning that a class cannot find getUserPrincipal() in HttpServletRequest. This is usualyl due to having and extra copy of HttpServletRequest in the wrong spot. Either in

Re: Custom authenticate

2003-09-30 Thread Tim Funk
WIth those restrictions, I would dump container based authorization and rely on filters. Your webapp would then be portable for other containers as well as non-dependent on tomcat internals. -Tim Damian Minkov wrote: Hello Tim, Tuesday, September 30, 2003, 2:05:20 PM, you wrote: TF Can you

Re[2]: Custom authenticate

2003-09-30 Thread Damian Minkov
Hello Tim, Tuesday, September 30, 2003, 2:21:26 PM, you wrote: TF WIth those restrictions, I would dump container based authorization and rely TF on filters. Your webapp would then be portable for other containers as well TF as non-dependent on tomcat internals. TF -Tim TF Damian Minkov

Re: Custom authenticate

2003-09-30 Thread Tim Funk
Via ... http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=write+servlet+authentication+filterbtnG=Google+Search http://java.sun.com/products/servlet/Filters.html -Tim Damian Minkov wrote: Hello Tim, Tuesday, September 30, 2003, 2:21:26 PM, you wrote: TF WIth those restrictions, I would

Re: JasperException?

2003-09-30 Thread nvdesai
Look at the reply to the post titled: org.apache.jasper.JasperException. (20 or so messages before this one) Its in a different context but I think you have the same problem as I had. -Nirmit hi, I get the foll. error message when I try to run my JSP, which has just one expression. Since I

Re: HttpSessionListener

2003-09-30 Thread Thorsten Möller
Jon Wingfield [EMAIL PROTECTED] wrote: Notification that a session is about to be invalidated. Tomcat 4.x.x implements the former spec, Tomcat 5 will implement the 2.4 spec. HTH, Thanks a lot, now my nerves have steadied ;-) Thorsten

RE: Help! First Web App does not work

2003-09-30 Thread Shapira, Yoav
Howdy, You probably haven't customized build.xml correctly, so it's trying to connect to a dummy host that doesn't exist on your network. Yoav Shapira Millennium ChemInformatics -Original Message- From: Thomas Chen [mailto:[EMAIL PROTECTED] Sent: Monday, September 29, 2003 7:22 PM To:

RE: Problems with Property Files

2003-09-30 Thread Shapira, Yoav
Howdy, If they're in shared/classes, they're on the classpath. If they're in the jar itself, they're also on the classpath. Either one will work. If you give us a more specific explanation than Tomcat ignore them maybe we could help more ;) Personally, especially since you're in a logging

Tomcat on Netware

2003-09-30 Thread Aziz Yacoub
I've been successfully running Tomcat 4.0.4 on Novell Netware with the Novell (ie Netscape) Enterprise Server (using nsapi_rd.nlm) for many months, and now I want to upgrade to Tomcat 4.1.27. I installed and configured 4.1.27 just like 4.0.4 (ajp13, workers etc), and now it's giving the

RE: Tomcat on Netware

2003-09-30 Thread Peter Guyatt
Yeah, The fact that you need to have the call to the method synchronized its the same as using the wait() method implemented in the Object class you need to own the lock before you can call this method eg. some method { synchronized (this) { //this is ok

RE: Strange Perfomance Issue, Tomcat more than 10 times slower than Jetty

2003-09-30 Thread Shapira, Yoav
Howdy, Can you please open a Bugzilla issue for this, attaching your tested and test class source code? Thanks, Yoav Shapira Millennium ChemInformatics -Original Message- From: Christoph Gaffga [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 8:44 AM To: [EMAIL PROTECTED]

RE: Custom authenticate

2003-09-30 Thread Murray
Damian, Tim suggested user/group or [EMAIL PROTECTED]. That didn't work for you but what about role in group where this is really a set of roles for which you allow the user to specify the group part of the name. In this case your security model would have roles such as customer and vendor and

Re: jk_ajp12_worker.lo: unknown file type

2003-09-30 Thread Koinonia98
Bill and to all, I am using the GNU 'ld' and it is in my path before the Sun's ld. Additional info, I have Sun JSDK2.0 installed. Any more suggestion is greatly appreciated. TIA, Dan Bill Barker [EMAIL PROTECTED] wrote: At a quick guess, you've got Sun's 'ld' ahead of the GNU 'ld' in your

Re: Alternate Port to 8009?

2003-09-30 Thread Blake Crosby
That's not the issue.. Tomcat is listening on the right port (38009) but mod_jk2 is not trying to connect to that port. Blake On 9/29/03 4:07 PM, Tim Funk [EMAIL PROTECTED] wrote: The port your are listneing on is declared in server.xml for tomcat inside the connector. Look for 8009 in

RE: Tomcat on Netware

2003-09-30 Thread Aziz Yacoub
Thanks... do you know why tomcat would be doing this on startup?? Peter Guyatt [EMAIL PROTECTED] 30/09/2003 11:04:36 pm Yeah, The fact that you need to have the call to the method synchronized its the same as using the wait() method implemented in the Object class you need to own the lock

Re: jk_ajp12_worker.lo: unknown file type

2003-09-30 Thread Koinonia98
Just curious, when I did ./configure --with-apxs=/opt/apache/bin/apxs before the make, I received the following message: need to check for Perl first, apxs depends on it... checking for perl... /usr/local/bin/perl building connector for apache-2.0 checking for target platform... unix no apache

Problem Deploying A Web App Under Tomcat 4.0.6

2003-09-30 Thread Michael Duffy
I've written a Web app that uses JSTL 1.0.3 that deploys and runs successfully under Tomcat 4.1.24 in a development environment. I deploy it as a WAR file, along with a context XML file of the same name. Tomcat 4.1.24 picks up both successfully and creates the JNDI data source I need without a

RE: Tomcat on Netware

2003-09-30 Thread Peter Guyatt
Hi There, Sorry I don't, you may have to raise a bug report for this problem. I am positive that it will be an easy fix so it should be solved relatively quickly. Hope this is ok Thanks Pete -Original Message- From: Aziz Yacoub [mailto:[EMAIL PROTECTED] Sent: 30 September

RE: Full Package Names??

2003-09-30 Thread Jose Carlos Garcia
Return Receipt Your RE: Full Package Names?? document :

JSP Compilation Issues

2003-09-30 Thread Dean Fantham
I have a JSP page that is large (contains a large series of tables for displaying lots of data). It is about 2000 lines of HTML. When trying to run this on Tomcat 4.1.27 I get the following error: [ServletException in:/schedule/operational/view.month.jsp] Unable to compile class for JSP An error

ssl on a port other than 8443

2003-09-30 Thread Vengurlekar, Mandar
Hi, I have an environment with win 2000 p4(2..4Ghz - 4GB RAM) running 2 apache tomcat (4.0.4) servers running.I am able to get ssl working on port 8443 and non-ssl running on 8005 I used the same server.xml, modified 8005 to 8205 and the ssl port from 8443 to 8444.I am not able to use the ssl

RE: Signal 11 Error: An unexpected exception in native code outside the VM

2003-09-30 Thread joe gspeed
Right now the server has all of the latest and greatest patches from Red Hat. We are still seeing crashes about once a day. I am also observing a significant memory leak on this box, though I can't figure out if its Tomcat, java, the code or something else - once the memory gets low enough

RE: Signal 11 Error: An unexpected exception in native code outside the VM

2003-09-30 Thread Shapira, Yoav
Howdy, Right now the server has all of the latest and greatest patches from Red Hat. We are still seeing crashes about once a day. OK, so we can rule out OS patches as the cause ;) I am also observing a significant memory leak on this box, though I can't figure out if its Tomcat, java, the

Apache Authentication with Tomcat

2003-09-30 Thread Boemio, Neil (GEI, FGI)
I'm trying to protect a /downloads url in apache. My webapp in Tomcat is in ROOT. So in the workers2.properties file under apache, I have: # Map the webapp to the Web server uri space [uri:/*] info=my website So my app is working fine requests for /* are passed to Tomcat and things are

JNDIRealm LDAP Configuration Problem

2003-09-30 Thread Equipment Lamp
Hi I am using the following Tomcat: 4.1.27-LE-jdk14 Apache: 2.0.47 Java : 1.4.2 Linux OS: 7.3 iPlanet LDAP Server I am trying to configure LDAP authentication mechanism to my application. 1) In this regard i have downloaded the latest JNDI API and then copied the ldap.jar file to

RE: Apache Authentication with Tomcat

2003-09-30 Thread Morgan Pyne
Hi Neil, Use a Location directive in your httpd.conf instead. e.g.: Location /downloads AuthType Basic AuthName FGIC Downloads AuthUserFile d:\apache\apache2\conf\passwords AuthGroupFile d:\apache\apache2\conf\groups Require group FGICMoodys /Location Directory directives

Re: HttpSessionListener

2003-09-30 Thread Thorsten Möller
Jon Wingfield [EMAIL PROTECTED] wrote: In servlet spec version 2.4 (proposed final draft 3) the javadoc comments for sessionDestroyed are now: Notification that a session is about to be invalidated. Tomcat 4.x.x implements the former spec, Tomcat 5 will implement the 2.4 spec. In the

Tomcat sucks at receiving large messages

2003-09-30 Thread Stewart, Daniel J
When receiving a HTTP 1.0 POST with a 10kbyte payload, my doPost() method writes the message body to a file. The file is the right size, but my data is nulled out (set to 0) after correctly receiving about 2kbytes. In frustration, I set the Connector bufferSize parameter to 100, to discover

RE: Tomcat 3.3.1: AccessLogInterceptor doesn't log PUT requests

2003-09-30 Thread Lemke, Michael IZ/HZA-IE5
Thanks, Larry. Not knowing any Java I managed to write (or rather copy) something for postRequest. Seems to work fine. Now my question is, is it possible to compile that module so I get a single .class file that I can copy somewhere in the official binary tree? What works for me is have the

RE: Tomcat sucks at receiving large messages

2003-09-30 Thread Shapira, Yoav
Howdy, Perhaps if you share your servlet which writes the message body to a file, we could help you write a better servlet ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Stewart, Daniel J [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 11:31 AM To:

Re: JasperException?

2003-09-30 Thread Jon Wingfield
It's a NullPointerException at line 136 of the servlet createReader_jsp.java generated from your jsp source. Have a look at that file. It's somewhere in tomcat's work directory. As to commenting out: if you've used a HTML comment in the jsp then the underlying java code is still generated and

Re: JSP Compilation Issues

2003-09-30 Thread Tim Funk
There is a JAVA language spec limitation that a method may only be so big. You are over the limit. There is a jasper option to map text to a file. I've never used it myself and don't know if it works (still). But look at $TOMCAT_HOME/conf/web.xml and look at the JSP options. There should be

RE: Apache Authentication with Tomcat

2003-09-30 Thread Boemio, Neil (GEI, FGI)
Excellent! This did the trick. Thanks! Now I get prompted and I can login but for some reason, request.getRemoteUser(), returns null. I am porting this application to Tomcat and this used to work just fine in JRun. Any ideas? -Original Message- From: Morgan Pyne [mailto:[EMAIL

RE: Apache Authentication with Tomcat

2003-09-30 Thread Robert Priest
http://marc.theaimsgroup.com/?l=tomcat-userm=106070071117870w=2 -Original Message- From: Boemio, Neil (GEI, FGI) [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 11:59 AM To: Tomcat Users List Subject: RE: Apache Authentication with Tomcat Excellent! This did the trick.

Web App Using JSTL Is Still Failing Under Tomcat 4.0.6

2003-09-30 Thread Michael Duffy
Yoav Shapiro, I hope you're still out there. I wrote earlier this morning about a Web app, deployed as a WAR with a context.xml, that deployed and ran fine under Tomcat 4.1.24 but failed under 4.0.6. You pointed out that 4.0.6 requires modifications to the server.xml. I modified my server.xml

Pointing a ServerOutputStream at the printer? Possible?

2003-09-30 Thread Andoni
Hi, I want to have a print button on my site which prints the result of a JSP being processed. What I don't want is for this JSP to have to be viewed by the user. I could just bring the jsp up in another frame and then have the JavaScript print that frame. What I would prefer is to have is

Re: Pointing a ServerOutputStream at the printer? Possible?

2003-09-30 Thread Michael Duffy
The JSP output stream is HTML, of course, so your printer would have to be smart enough to take HTML and render it like a browser. I think if you just send the stream to a printer, all you'll get out is the HTML text. That aside, have a look at the javax.print API. That will let you send to a

admin app problems

2003-09-30 Thread Werner van Mook
Hi, I have a server with tomcat 4.1.27 installed. The server is located somewhere else and I can not change any non tomcat software or settings. The server has a admin application to administer the server over the internet. i don't know how this is done. Now tomcat has an admin app itself. It

RE: Web App Using JSTL Is Still Failing Under Tomcat 4.0.6

2003-09-30 Thread Shapira, Yoav
Howdy, Yoav Shapiro, I hope you're still out there. I'm always out here ;) Sometimes I don't feel like answering but as I mentioned on taglibs-user, this is more interesting than most questions on the list. (1) and (2) deploy and run perfectly. (3) deploys without any error messages to the

enable GET within Tomcat

2003-09-30 Thread Scott Purcell
I am migrating from a IIS box to Tomcat, and we had enabled the write function to a designated site, so I could accept PUT data. I tried using existing code, but I am getting a 403, which tells me I need to somehow turn PUT on within the Tomcat. I am running Tomcat 4.0.6 on Win2000. Thanks,

Problem regarding a popup related to: org.apache.catalina.startup.Bootstrap

2003-09-30 Thread Mufaddal Khumri
Hello, I get a pop up icon for org.apache.catalina.startup.Bootstrap on my doc on MAC OS X when I click on the link in my web app which generates and sends a pdf file to the client browser. Once this popup is there the application works as expected, but if I quit this popup, tomcat shuts off

Strange Perfomance Issue, Tomcat more than 10 times slower than Jetty

2003-09-30 Thread Christoph Gaffga
hi, i posted this issue before, and decided to run my test with another servlet container, before saying: it a problem with tomcat. (I'm running tomcat 4.1.27 with JDK 1.4.2 on RH8) I have a small test class, that - Lookup an Entity EJB - get a property from the Bean - serialize the bean using

Tomcat manager is not working

2003-09-30 Thread cody wang
I just install tomcat 4.1.27/j2sdk1.4 on redhat 7.3. I also add admin and manger roles for my self. The tomcat admin is working fine but not tomcat manager. I also check the permissions that everything is correct. Does anyone experience this? HTTP Status 403 - Access to the requested resource

RE: Tomcat manager is not working

2003-09-30 Thread Shapira, Yoav
Howdy, A little more information would be helpful, namely: - Your tomcat-users.xml file - Your access log (if you don't have it enabled, comment in the AccessLogValve in server.xml) Yoav Shapira Millennium ChemInformatics -Original Message- From: cody wang [mailto:[EMAIL PROTECTED]

RE: Tomcat manager is not working

2003-09-30 Thread Phillip Qin
What is the url? The correct one should be http://localhost/manager/html/, please refer to http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html -Original Message- From: cody wang [mailto:[EMAIL PROTECTED] Sent: September 30, 2003 1:48 PM To: [EMAIL PROTECTED] Subject:

RE: Tomcat manager is not working

2003-09-30 Thread cody wang
Why is my link point to http://localhost:8080/manager/html? How can I correct? -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 10:53 AM To: 'Tomcat Users List' Subject: RE: Tomcat manager is not working What is the url? The correct one

RE: Tomcat sucks at receiving large messages

2003-09-30 Thread Stewart, Daniel J
Here it is: public class AdapterServlet extends HttpServlet { public void service(HttpServletRequest req, HttpServletResponse res) { BufferedReader reader = req.getReader(); try { char [] charArr = new char[req.getContentLength()]; reader.read(charArr); String str = new

SSL Client Authorization

2003-09-30 Thread Rich Paterson
I'm looking for a good overview of how to achieve certificated based client authorization using Tomcat. I've configured SSL and have set the clientAuth=true. This seems to prohibit client access. I'm assuming this is because the client is not authorized. My question might be somewhat

Objects lost in session

2003-09-30 Thread Tim Odowd
Sorry for the long email. I am using Tomcat 4.124 for my servlet engine and IIS for my web server. I am monitoring exceptions that occur in my system and this one has me confused. The exception is: java.lang.NullPointerException at

RE: Tomcat sucks at receiving large messages

2003-09-30 Thread Shapira, Yoav
Howdy, public void service(HttpServletRequest req, HttpServletResponse res) { BufferedReader reader = req.getReader(); try { char [] charArr = new char[req.getContentLength()]; reader.read(charArr); String str = new String(charArr); try { File f = new

LE-jdk14 Required for J2SDK 1.4?

2003-09-30 Thread Seth Rubin
Have been using Tomcat 4.1.27 under J2SDK 1.4.2_01. Am I required to use version 4.1.27-LE-jdk14 instead, or is that just an alternative in case (fill in the blank)? -- Seth -Original Message- From: Rich Paterson [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 2:06 PM To:

j2ee.jar - need JMS services from another server

2003-09-30 Thread Marvin D. Toll
I need to get JMS (J2EE) services from another server - and accordingly need a number of classes in the j2ee.jar. Apparently, one is not able to add this jar to the common/lib directory because of conflicts with some of the Tomcat jars having duplicate classes. Is there a standard (or

RE: LE-jdk14 Required for J2SDK 1.4?

2003-09-30 Thread Shapira, Yoav
Howdy, It's just an alternative for some special cases. If the full edition works fine (as it should) for you, keep using it. Yoav Shapira Millennium ChemInformatics -Original Message- From: Seth Rubin [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2003 2:40 PM To: Tomcat

RE: j2ee.jar - need JMS services from another server

2003-09-30 Thread Shapira, Yoav
Howdy, There's no standard: it depends on what you need. Jms.jar and your server's InitialContext implementation jar (e.g. openjms-x.y.z-client.jar for OpenJMS) are typically used for connecting tomcat to a remote JMS server. Yoav Shapira Millennium ChemInformatics -Original Message-

StackOverFlowError--Please help

2003-09-30 Thread shyam
Hi All, I am having a problem when doing servlet chaining. I have a code snippet like this if(flag) { requestdispatcher.forward(request,response); } else { requestdispatcher.forward(request,response); } The problem is if flag is true the forward and I get the desired result. But in the

NullPointerException during HttpServletRequest.getSession

2003-09-30 Thread Dave Barkan
New to tomcat and Servlet code, and for that matter posting on this forum so please bear with me ;-) The symptom is a NullPointerException when I call getSession() on an HttpServletRequest object. The HttpServletRequest object had previously been saved as an attribute of the Session that

Re: StackOverFlowError--Please help

2003-09-30 Thread Jeff Tulley
Is it just me, or are both halves of that if statement exactly identical? Based on this snippet of code only, you should get the same results regardless of flag's value. Is there other code that checks this flag, and does the getRequestDispatcher call differently? It sounds like you are

enable 'PUT' followup

2003-09-30 Thread Scott Purcell
Hello, I am still trying to figure out how to enable 'PUT' method on a webapp. I found some old threads, and it looks like I need to find the 'security constraints' area of tomcat. Here is the thread I was following: http://www.mail-archive.com/[EMAIL PROTECTED]/msg105102.html Does anyone know

Re: Tag Lifecycle

2003-09-30 Thread Tim Funk
All the detail you need ... http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16001 -Tim Lukas Bradley wrote: What is the lifecycle of custom tags? Are tag objects reused throughout a page? It seems as if my tags are not always being created. They are not *always* reused however. Lukas

RE: Tomcat manager is not working

2003-09-30 Thread Phillip Qin
Sorry, if you don't use tomcat connector, your url should be right. -Original Message- From: cody wang [mailto:[EMAIL PROTECTED] Sent: September 30, 2003 1:58 PM To: 'Tomcat Users List' Subject: RE: Tomcat manager is not working Why is my link point to

RE: Tomcat manager is not working

2003-09-30 Thread Phillip Qin
When you add roles, do you also add user in tomcat-users.xml? user username=manager password=abcd roles=manager/ -Original Message- From: cody wang [mailto:[EMAIL PROTECTED] Sent: September 30, 2003 1:58 PM To: 'Tomcat Users List' Subject: RE: Tomcat manager is not working Why is my

Re: j2ee.jar - need JMS services from another server

2003-09-30 Thread Marvin D. Toll
I simply need classes that are in the j2ee jar. It sounds like I'm going to need to extract those into an abridged jar for use. (By the way - the latest J2EE beta has jars (for example: j2ee.jar) that do not show contents in WinZip ... ) Shapira, Yoav [EMAIL PROTECTED] wrote in message

RE: Tomcat on Netware

2003-09-30 Thread Jeff Tulley
There are a few possibilities: 1) That JVM version has some weird bug that effects Tomcat uniquely (But, did you say the version number incorrectly; is it really 1.3.1_08, not 1.1.3.8??). Officially we don't support Tomcat on NetWare 5.x, but I've seen it work there before I think. 2) There are

RE: j2ee.jar - need JMS services from another server

2003-09-30 Thread Shapira, Yoav
Howdy, You are cruising for a bruising with this method, and will have to be very careful not to include classes that are already in tomcat's libraries in your abridged jar. Yoav Shapira Millennium ChemInformatics -Original Message- From: Marvin D. Toll [mailto:[EMAIL PROTECTED] Sent:

RE: Web App Using JSTL Is Still Failing Under Tomcat 4.0.6

2003-09-30 Thread Michael Duffy
Thanks very much for taking the time - I greatly appreciate it. On Shawn Bayern's sage advice, I put the standard.jar in the CLASSPATH and make the URI identical to the value in the c.tld file inside the jar. I don't put the .tld files under my WEB-INF, and I don't have any reference to them

RE: NullPointerException during HttpServletRequest.getSession

2003-09-30 Thread Shapira, Yoav
Howdy, The symptom is a NullPointerException when I call getSession() on an HttpServletRequest object. The HttpServletRequest object had previously been saved as an attribute of the Session that it contained. This seems prone to problems. How can storing the request itself as a session

Re: j2ee.jar - need JMS services from another server

2003-09-30 Thread Marvin D. Toll
I believe if any duplicates are included - the Tomcat server will not boot. (I believe java classloaders will not allow any duplicates that have java as the first four characters in the path.) Shapira, Yoav [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Howdy, You are cruising for

RE: Web App Using JSTL Is Still Failing Under Tomcat 4.0.6

2003-09-30 Thread Shapira, Yoav
Howdy, On Shawn Bayern's sage advice, I put the standard.jar in the CLASSPATH and make the URI identical to the As you know, tomcat ignores the CLASSPATH environment variable. Both the echo and data source test apps are set up that way, too. So the difference must be in your own app's setup,

RE: j2ee.jar - need JMS services from another server

2003-09-30 Thread Shapira, Yoav
Howdy, I believe if any duplicates are included - the Tomcat server will not boot. That's wrong. The precise behavior depends on what's duplicated. You can easily get such behavior that will make tomcat boot, but throw runtime exceptions. Or boot, but make your servlet or entire webapp

RE: Tomcat 3.3.1: AccessLogInterceptor doesn't log PUT requests

2003-09-30 Thread Larry Isaacs
To deploy the class file, I believe you can create a classes directory under TOMCAT_HOME/lib/server and put your class in a package appropriate directory under there. With your modifications to the modules.xml and server.xml, it should work. Larry -Original Message- From: Lemke,

virtual hosts tomcat connectors

2003-09-30 Thread Mark Lowe
Hello Is there any documentation that works on the subject of jk, jk2 or mod_webapp? I've had all 3 running using the context as a mount point but I want to have http://www.mydomain.com/Action ..not http://www.mydomain.com/webappname/Action I'm using tc 4.1.27 and apache 2 , jk, jk2 or

Re: Filter for Form Authentication Problem

2003-09-30 Thread Lawence
Thanks for the replies. So this means I have to go with custom realm and authenticator? Actually I first tried with them but got stuck, I guess I was quite close to success though. I posted one article asking for help several days ago but got no response at all. I am reposting it below,

RE: Objects lost in session

2003-09-30 Thread Shapira, Yoav
Howdy, Strange indeed. When things like this happen and you can't reproduce them reliably, I tend to think of two always-present possible evils: 1. Thread safety: what happens if you make all the relevant methods synchronized? Shouldn't make much of a difference here since a request is being

Invalid flag error when the tomcat installation path contains blank spaces.

2003-09-30 Thread Paulo Gustavo Veiga
Hi, I' m using the tomcat 4.24 and I detect a problem if install it in a path that contains blank spaces. I always receive the error detailed bellow when I try to compiles a JSP. I see in the Mailing Lists some workaround like install Tomcat in a directory that not contains blank spaces, etc.

Re: StackOverFlowError--Please help

2003-09-30 Thread shyam
sorri about the code snippet. Heres a complete picture. if(flag) { rd = context.getRequestDispatcher(/servlet1); rd.forward(request,response); } else { rd = context.getRequestDispatcher(/servlet2); rd.forward(request,response); } so when the flag is true it should be forwarded to

  1   2   >