RE: JNDI References To Tomcat 4.1

2003-08-15 Thread Micael
Thanks, Yoav. I really could not tell what the question was. At 03:27 PM 8/15/2003 -0700, Yoav Shapira wrote: Howdy, I believe he was referring to external access to tomcat's JNDI provider, which is tricky. In-memory is easy and you're right a JDBC resource can be configured (just like any other

Re: url-pattern and realms security

2003-08-15 Thread Bill Barker
"Madere, Colin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > That is a concrete path and you must be joking if you are suggesting to > explicitly define each and every URL as a "web-resource". The idea of > hierarchical authorization of resources is a very sound idea and other au

Re: two way trust

2003-08-15 Thread Bill Barker
There have been very many client-cert changes since 4.1.12. For using Sun's JVM (which you seem to be using), you probably need to upgrade to at least 4.1.24. For other vendors, you need to upgrade to 4.1.27. In particular, 4.1.12 uses JSSE 1.0.x, so you need to upgrade to take advantage of JSSE

two way trust

2003-08-15 Thread Steve Kwong
Does Tomcat support two way trust (HTTPS) between the client and itself, where the server requests for a X509 certificate from the client connecting to it? I read somewhere that this feature isn't complete in the 4.1.x version of Tomcat. I've tried setting the config file as follows (I'm running

exception.getMessage()

2003-08-15 Thread James Michelich
Hello, I'm having a problem with 'exception.getMessage()' - whenever I throw an IOException with a message (i.e. throw new IOException("error") ), my error jsp page displays nothing. I have the java.io.IOException mapped in web.xml to a jsp error page. Thanks, James -

where is JSESSIONID?

2003-08-15 Thread Billy Ng
Hi folks; Anybody knows where is the JSESSIONID cookie is? I search the whole Cookies folder, I can't find it. Billy Ng This mailbox protected from junk email by Matador from MailFrontier, Inc. http://info.mailfrontier.com

Re: NPE with getContext() in a jsp

2003-08-15 Thread Chris Cheshire
I fixed my own problem. The call was moved from the <%! %> scope to the <% %> scope, so that it made it inside the jsp service() method and it was able to resolve the context. Chris Chris Cheshire wrote: Hi, Using tomcat 4.0.24, I have some s defined in my web.xml. In my servlets, I am able

MultipartRequest: unexpected end of part

2003-08-15 Thread Hua Hou
I'm using the latest oreilly class MultipartRequest to upload files into my server. However, whenever I try to upload a big file (say, > 100k), I got the following exception. With smaller file (< 50k), it works fine. I browse through the tomcat archive list, as well as google site, both indicate th

RE: JNDI References To Tomcat 4.1

2003-08-15 Thread Yoav Shapira
Howdy, I believe he was referring to external access to tomcat's JNDI provider, which is tricky. In-memory is easy and you're right a JDBC resource can be configured (just like any other JNDI resource). Of course, if tomcat's JNDI provider moves into its own jakarta-commons component as we've bee

NPE with getContext() in a jsp

2003-08-15 Thread Chris Cheshire
Hi, Using tomcat 4.0.24, I have some s defined in my web.xml. In my servlets, I am able to access these values with getServletContext().getInitParameter("some name") However, if I try and do the same from a jsp page in this web application I get the following NPE java.lang.NullPointerExceptio

RE: Trouble with Apache 1.3.28/Tomcat 4.124/mod_jk 1.24

2003-08-15 Thread Cristopher Daniluk
Sorry, I forgot to mention in my first post: JkMount /*.jsp ajp13 JkMount /*/servlet/ ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 Where you have ajp13, mod_jk is expecting the name of the worker - in this case testWorker. Try: JkMount /*.jsp testWorker JkMount /*/se

Re: Trouble with Apache 1.3.28/Tomcat 4.124/mod_jk 1.24

2003-08-15 Thread Henry Kwan
> > Notice the shortly thereafter. > > That's a comment, so you have that Ajp13Connector commented out at the > moment :) > > Try removing the from around the Connector tag and restart > Jakarta. > Hi. Thanks for pointing that out. I didn't notice that before. I removed that comment and

RE: JNDI References To Tomcat 4.1

2003-08-15 Thread Micael
This is mistaken, if you mean what you say. There is a JDBC resource available via JNDI in Tomcat. You have to code it, of course, but it definitely is available. At 02:53 PM 8/15/2003 -0500, Madere, Colin wrote: I think your inclinations that Tomcat is not a naming service are correct. I have

RE: Trouble with Apache 1.3.28/Tomcat 4.124/mod_jk 1.24

2003-08-15 Thread Cristopher Daniluk
Uhm... And I didn't touch the Connector Classname entry in server.xml: shortly thereafter. That's a comment, so you have that Ajp13Connector commented out at the moment :) Try removing the from around the Connector tag and restart Jakarta.

Re: Trouble with Apache 1.3.28/Tomcat 4.124/mod_jk 1.24

2003-08-15 Thread G. Wade Johnson
I'm no expert, but one thing you have different from my configuration is the connector. Mine looks like I have this vague recollection of someone saying to use CoyoteConnector instead of Ajp13Connector. But, that could just be a random synapse misfire. G. Wade Henry Kwan wrote: > > Hi, I'

RE: WebApp and database not working

2003-08-15 Thread Vid Bijelic
Hi Yoav, Here it the jsp and servlet code I am using, again it works when accessed directly but via Apache and WebApp no. Thanks, Vid Here is JSP Page--- <% //@ page errorPage="errPage.jsp" %> <% WebSql.GetRec nhdbRec = new WebSql.GetRec(); nhdbRec.init("select field1,field2,f

RE: url-pattern and realms security

2003-08-15 Thread Madere, Colin
That is a concrete path and you must be joking if you are suggesting to explicitly define each and every URL as a "web-resource". The idea of hierarchical authorization of resources is a very sound idea and other auth schemes follow this "trickle-down" idea that you secure the whole tree with a ge

RE: Setting error page for servlets

2003-08-15 Thread Shapira, Yoav
Howdy, >I've checked the servlet specs and found that the request.getRemoteAddr >() method does not throw any exceptions, but I'd like to know if this >method is always guaranteed to return a non-null, valid IP address. You should start a different thread for a different question ;) ;) No, it's

RE: Setting error page for servlets

2003-08-15 Thread James Michelich
Thanks! That solution worked out very well for me. One other quick question, if you don't mind - I've checked the servlet specs and found that the request.getRemoteAddr () method does not throw any exceptions, but I'd like to know if this method is always guaranteed to return a non-null, valid

Trouble with Apache 1.3.28/Tomcat 4.124/mod_jk 1.24

2003-08-15 Thread Henry Kwan
Hi, I'm trying to setup a Apache/Tomcat test server and am having some problems. Apache works fine on port 80 and Tomcat works fine on 8080 but I can't get mod_jk to connect them. I'm running Solaris 8 SPARC and I compiled Apache from source, grabbed the Tomcat binary, and compiled mod_jk fro

RE: JNDI References To Tomcat 4.1

2003-08-15 Thread Madere, Colin
I think your inclinations that Tomcat is not a naming service are correct. I have not seen reference to anything that suggests you can set up resources in Tomcat that are available via JNDI. JBoss, certainly, as it does provide a JNDI server (whatever the appropriate name for that is), as I've use

RE: JNDI DataSource Realm

2003-08-15 Thread Madere, Colin
Ok, so changing the "dataSourceName" attribute in the Realm config (as you suggest which contradicts the HOWTO) to the short name I've given my resource makes the Realm auth work with the globally defined datasource. Yay! However, when trying to connect to the datasource (moved the "jdbc/Auth" res

RE: WebApp and database not working

2003-08-15 Thread Shapira, Yoav
Howdy, Post the relevant code that throws the NPE. ;) Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Vid Bijelic [mailto:[EMAIL PROTECTED] >Sent: Friday, August 15, 2003 3:13 PM >To: [EMAIL PROTECTED] >Subject: WebApp and database not working > >Hi, > >When I open w

WebApp and database not working

2003-08-15 Thread Vid Bijelic
Hi, When I open web page with database connection directly (not via Apache and WebApp) it works fine (displays records from database), but when I open the same page through Apache using WebApp I got Null Pointer Exception. I hope some one has a suggestion for this. I am using Tomcat4.1, Apache2

RE: Simplified Chinese to UTF-8 (SOLVED)

2003-08-15 Thread Nathan Christiansen
Sorry Dan, I used the Filter as is (using UTF-8) and removed the code to try to convert it again and it works beautiflly for both Chinese and any type of Japanese I can throw at it. Thanks again. -- Nathan Christiansen Tahitian Noni International http://www.tahitiannoni.com -Origin

tracking the download of a file

2003-08-15 Thread Mark W. Webb
I am working on a program that checks the file download progress and audits the results. I have noticed with netscape browsers, that if a user starts downloading a file, and the "Save As" window comes up, there is a small amount ~200K worth of data that gets written to the browser. Is there a

RE: Setting error page for servlets

2003-08-15 Thread Shapira, Yoav
Howdy, >The problem with that solution is this - I have written my own >exception, and cannot override the list of exceptions associated with >the doPost() method. Hmmm... I think the error page might still be able to work. Try making your exception a runtime one, so that you don't have to decl

RE: Setting error page for servlets

2003-08-15 Thread James Michelich
Thanks for the info. The problem with that solution is this - I have written my own exception, and cannot override the list of exceptions associated with the doPost() method. Am I just misinterpreting your previous post, or is there another solution for this? Thanks for the help, James ---

RE: Simplified Chinese to UTF-8

2003-08-15 Thread Nathan Christiansen
Thanks Dan. I did download the filter code and tried all of the Simplified Chinese encodings without luck. I am unsure which encoding that the IME is sending (since I do not read Chinese myself and can't read the help manual). Looking through the filter code, it would be exactly similar if I a

Re: can a taglib include a .jsp file ?

2003-08-15 Thread Mufaddal Khumri
thanks a zillion, that worked :) On Friday, August 15, 2003, at 09:17 AM, Bill Barker wrote: Assuming that your Tag extends TagSupport try: pageContext.include("mySomething.jsp"); "Mufaddal Khumri" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I know what the problem is and I kn

RE: Setting error page for servlets

2003-08-15 Thread Shapira, Yoav
Howdy, Seeing how a JSP is a servlet, I'd be very surprised if there was something you could do with JSPs and not with a servlet ;) Use the directive in web.xml ;) The Servlet Spec section on the deployment descriptor has details and examples. Yoav Shapira Millennium ChemInformatics >-Or

Setting error page for servlets

2003-08-15 Thread James Michelich
Is there a way to set the error page for a servlet (i.e. something comparable to using the page directive with 'errorPage=error.jsp' in jsp's)? Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: Request parameter value containing = is not parsed well

2003-08-15 Thread Shapira, Yoav
Howdy, I didn't even URLEncode the param value, I simply entered it into the browser's address bar, and the servlet just does request.getParameter("paramName"). No encoding or decoding. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Vijay Kandy [mailto:[EMAIL PROTEC

RE: Request parameter value containing = is not parsed well

2003-08-15 Thread Vijay Kandy
You are right. That's where I have an issue. Thank you. Vijay -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Friday, August 15, 2003 11:10 AM To: Tomcat Users List; 'Tomcat Users List' Subject: Re: Request parameter value containing = is not parsed well Hi = encode

RE: Request parameter value containing = is not parsed well

2003-08-15 Thread Vijay Kandy
Thank you for your testing. So did you URLEncode the param value? Is there a trick not to URLEncode and still retain the value. Because was alright on 3.2.3. Sincerely, vijay Howdy, I don't know (and don't really care much about at this point) 4.0.4, but I can't reproduce what you claim on 4.1.27.

Simplified Chinese to UTF-8

2003-08-15 Thread Nathan Christiansen
I have an annoying problem that I am trying to figure out. I need to support Simplified Chinese in a webapp that also supports ISO-8859-1. I figure the best way is to make my web pages encoded in UTF-8. The database access and display works, but I am having trouble with getting post data to com

RE: default path - simple question

2003-08-15 Thread Shapira, Yoav
Howdy, I'm assuming you're using tomcat 4.x. Hopefully 4.1.27. >I am new at using Tomcat and have a basic question. I have gone through the >config files but haven't been able to find out where to set the default >catalina_home directory. I have a web application that is set to c:\webapp. CATAL

JNDI References To Tomcat 4.1

2003-08-15 Thread Jason Mowat
Greetings, I am trying to create a standalone application that references a DBCP on Tomcat. I'm not sure if I can do this; I've seem some articles that seem to suggest that it can be done, but again, I'm not sure. I've read http://www.mail-archive.com/[EMAIL PROTECTED]/msg08353.html. I have

Re: Request parameter value containing = is not parsed well

2003-08-15 Thread Hans Wichman
Hi = encoded is %3D, so that's where you are missing something I think. greetz Hans At 10:41 15/08/2003 -0500, Vijay Kandy wrote: Hello All, I have a servlet whose expected parameter is ZAZBZ and its value is CZlYnXtAIBDC=D9W7V So calling http://host/context/name?ZAZBZ=CZlYnXtAIBDC=D9W7V would cau

RE: Request parameter value containing = is not parsed well

2003-08-15 Thread Shapira, Yoav
Howdy, I don't know (and don't really care much about at this point) 4.0.4, but I can't reproduce what you claim on 4.1.27. The behavior is correct with equal signs in param value, they are retained. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Vijay Kandy [mailto

Re: Does load balancing with sticky sessions work with mod_jk? - SOLVED

2003-08-15 Thread G. Wade Johnson
I've been digging around in the source for Tomcat 4.1.27, and this is what I've found. The problem I've had with not being able to get load balancing to work in my application is a problem with Basic Authentication. Since Basic authentication never sends a JSESSIONID cookie, the jvmRoute is never

default path - simple question

2003-08-15 Thread Perkins, John
I am new at using Tomcat and have a basic question. I have gone through the config files but haven't been able to find out where to set the default catalina_home directory. I have a web application that is set to c:\webapp. I would like to set Tomcat to see that directory and use it as default for

Request parameter value containing = is not parsed well

2003-08-15 Thread Vijay Kandy
Hello All, I have a servlet whose expected parameter is ZAZBZ and its value is CZlYnXtAIBDC=D9W7V So calling http://host/context/name?ZAZBZ=CZlYnXtAIBDC=D9W7V would cause System.out.println(request.getParameter("ZAZBZ")); to print CZlYnXtAIBDC=D9W7V in Tomcat 3.2.3. But in tomcat 4.0.4 the prin

RE: Starting tomcat from init scripts (HP/UX)

2003-08-15 Thread Lott, Carey
Ok, I finally got the script to execute correctly and I got the familiar output: Using CATALINA_BASE: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_HOME: /bto/appl/apache/jakarta-tomcat-4.0.4 Using CATALINA_TMPDIR: /bto/appl/apache/jakarta-tomcat-4.0.4/temp Using JAVA_HOME: /opt/j

Tomcat MultiHosting problems

2003-08-15 Thread "Robert Zöhrer @ pronet.at"
Hi all, I've great problems with Tomcat and setting up a context in a 2nd (virtual) host: my environmemt: OS: Redhat Linux Platform: Intel x86 TC version: 4.1 tomcat4.conf: --- cut - CATALINA_HOME="/var/tomcat4" JASPER_HOME="/var/tomcat4" CATALINA_TMPDIR="/var/tomcat4/temp" cut -

RE: URLEncoding urls (hrefs) that are coming out of a database...

2003-08-15 Thread Hans Wichman
A complete html parser seems a bit over the top if you can ensure the html is validated before it goes into the database. If the html is validated you can perform a search and replace on known cases, however I had the same problem and encodeURL only worked on url's that could be resolved within

RE: Running servlet via SSL???

2003-08-15 Thread Carlos Oliva
Thank you very much for your reponse. Probably we will want to take advantage of Apache SSL and configure it to relay requests to Tomcat instead of using Tomcat as "stand-alone". To do this, do I just need to configure Apache and add the appropriate mappings or must I also install the mod_jk (Apa

RE: URLEncoding urls (hrefs) that are coming out of a database...

2003-08-15 Thread Ralph Einfeldt
That is how it works. AFAIK there is nothing you can configure to change this. This is a thing that requires some logic to implement a generic solution. It would require a complete html parser that parses each response (Quite challanging and time consuming). And what should this solution do wi

Re: URLEncoding urls (hrefs) that are coming out of a database...

2003-08-15 Thread Kurt Overberg
Oh yes, I forgot, because the URL lives within a big block of normal text, I can't just call encodeURL on the whole thing. Seems like I need a method that will search out an /kurt Kurt Overberg wrote: Well, yeah it should, but I get the impression (from testing and seeing it not do it) that

Re: URLEncoding urls (hrefs) that are coming out of a database...

2003-08-15 Thread Kurt Overberg
Well, yeah it should, but I get the impression (from testing and seeing it not do it) that if the URL is coming from a database and the URL (a href) is embedded in other text, that it won't automagically work. Since the URL isn't in the JSP file at compile-time, it seems that it just gets passe

RE: From which apache virtual host did a request come from?

2003-08-15 Thread Mike Curwen
Thanks Bill, that would work great. > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker > Sent: Friday, August 15, 2003 12:50 AM > To: [EMAIL PROTECTED] > Subject: Re: From which apache virtual host did a request come from? > > > It seems that I had a mo

RE: URLEncoding urls (hrefs) that are coming out of a database...

2003-08-15 Thread Ralph Einfeldt
Only if you call encodeUrl on the link. If you just write out some text it stays as it is no matter if it contains links. > -Original Message- > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Sent: Friday, August 15, 2003 3:35 PM > To: Tomcat Users List > Subject: RE: URLEncoding urls (

RE: URLEncoding urls (hrefs) that are coming out of a database...

2003-08-15 Thread Shapira, Yoav
Howdy, Don't worry about it, the servlet container is required to do this for your automagically (if the client doesn't support cookies). Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Kurt Overberg [mailto:[EMAIL PROTECTED] >Sent: Friday, August 15, 2003 9:29 AM >To

URLEncoding urls (hrefs) that are coming out of a database...

2003-08-15 Thread Kurt Overberg
Gang, I store text in my database that contains: Hello there, user, please click this link. I output this text to the user with the tag (I'm using struts 1.0 & tomcat 4.1.27). Is there some way to make sure that my JSESSIONID will get appended to these links (for people w/out cookies),

RE: PropertyMessageResources

2003-08-15 Thread Barry Mcleer
Cool, thanks for that. barry -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 15 August 2003 14:01 To: Tomcat Users List Subject: RE: PropertyMessageResources Howdy, Actually, you are using struts if you left the admin webapp installed, which it appears you did

RE: PropertyMessageResources

2003-08-15 Thread Shapira, Yoav
Howdy, Actually, you are using struts if you left the admin webapp installed, which it appears you did ;) These (as the INFO indicates) are just harmless informative messages regarding the admin webapp's initialization. You can remove the admin webapp if you don't need it, and these will go away

PropertyMessageResources

2003-08-15 Thread Barry Mcleer
I recently uninstalled tomcat 4.1.24 and installed 4.1.27(with hotfix) on w2k professional. Whenever i start tomcat the following lines (aswell as some other stuff) appear on the console: [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tru

RE: Vedr.: RE: Fetching protected URL in Tomcat

2003-08-15 Thread Shapira, Yoav
Howdy, I completely agree with Senor Barker ;) If it's important for you, make a patch for it yourself ;) This one particularly is fairly easy. We're all busy enough to barely cover bugs that people designate as showstoppers in bugzilla ;) Yoav Shapira Millennium ChemInformatics >-Origin

RE: Attaching File Monitor Thread to Tomcat

2003-08-15 Thread Shapira, Yoav
Howdy, >I would like to start and stop that Monitor Thread with tomcat so I loaded >from a (load-on-startup) servlet. It loads OK and works fine but when Use a ServletContextListener instead of a load-on-startup servlet. >I tried in Servlet destroy method... > Monitor.stopNow(); // my t

JK2 runtime reconfig and graceful shutdown config example?

2003-08-15 Thread Chi Tong
Hi, I tried to use the JK2 graceful shutdown feature through runtime reconfig but my setup failed to work. Anyone has a working example? My setup has Apache 2.0.47 and 2 instances of Tomcat 4.1.24 on Solaris 8. JK2 connector was used to load balance between the 2 Tomcat servers through socket

presistent session id

2003-08-15 Thread Billy Ng
Hi folks, I will lose the session everytime I close the browser. Is there a way to persist the session even I close the browser? Thanks! Billy Ng This mailbox protected from junk email by Matador from MailFrontier, Inc. http://info.mailfront

RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47

2003-08-15 Thread Stuart Stephen
Infact no it didn't :o( That was something I tried yesterday. I've still not got a .so file that I have compiled. What could I be doing wrong? -Original Message- From: Stuart Stephen [mailto:[EMAIL PROTECTED] Sent: 15 August 2003 10:26 To: Tomcat Users List Subject: RE: Getting mod_jk2

RE: Getting mod_jk2 to run with Tomcat 4.1.27 and Apache 2.0.47

2003-08-15 Thread Stuart Stephen
Hi all, For your reference, I have now found out what the problem was. I checked out more information about what the apxs is and found out that its effectively a compiler of some sort. So I went to my $APACHEHOME/bin/ directory and ran it 'apxs'. I got the message: Can't exec "/usr/bin/apr-conf

RE: Run Windows' command in Java method

2003-08-15 Thread Cui Xiaojing-a13339
Got it. Thank you so much!! Regards, -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: 2003年8月15日 14:42 To: Tomcat Users List Subject: Re: Run Windows' command in Java method Beware of the pitfalls that can come from using Runtime.exec() Have a look at this artic

Re: Run Windows' command in Java method

2003-08-15 Thread Johan Krisar
Xiaojing, The API you're looking for is java.lang.Runtime. However, my personal advice would be to use OS-dependent calls sparingly - it makes your application platform dependent and typically makes it a lot less portable... Cheers, - Johan --- Johan Krisar johan.krisar(at)depicta.com ---

Scoreboard & slot (jkstatus)

2003-08-15 Thread Venkata Srinivasa Rao, Yerra
Any one know about scoreboard and slots? When the tomcat&apache is up for long time, number of slots are getting increased, when I restart the apache, jk start creating again. What does a slot mean? why the number is growing? In fact I am testing my new development server with JMeter (3x25 threa

Re: Vedr.: RE: Fetching protected URL in Tomcat

2003-08-15 Thread Bill Barker
Of course I could make a patch for this (it's really easy to do :). However I won't, since I consider getting a patch submission to indicate that the feature is actually important enough to someone that they would take the time to figure out how to do it. If it's not that important to them, then

Vedr.: RE: Fetching protected URL in Tomcat

2003-08-15 Thread pste
Does any know a good workaround. I was thinking af putting af non-protected JSP in front of my protected JSP, that just saves the needed info in session scope, before forwarding to the protected JSP. It is just not that good an idea, when you have such a complicated structure of protected JSPs i