Re: HttpServletRequest getPathInfo() decodes incorrectly?

2003-01-20 Thread Andreas Anderson
Thanks, but it didn't solve the problem. java.net.URLDecoder decodes the scandinavian chars properly. Andreas --- Scott Dunbar <[EMAIL PROTECTED]> wrote: > Andreas, >I had a similar problem with a different character set under Windows. > The ultimate problem wasn't Tomcat but was how the JDK c

Configuring Directory Index Display

2003-01-20 Thread Carson, Chuck
Is it possible to tweak the display of directory indexes. Under Apache you could normally create HEADER and FOOTER files to control output. You could also configure other aspects of the display in the server config file. Is this possible under tomcat 4.x? The default directory listing is quite cr

reg Langauge Translation

2003-01-20 Thread Ganesh
hi I have a application using JSP and SQL server 2000 as tthe database. This is a web based application and in by default in english version. Now i need to translate the same to Chinese Language. Since the Web based application is already there, so is there any way to translate the same

Re: URL Mappings on Tomcat 3.3 must go between servlet and security sections.

2003-01-20 Thread Bill Barker
Like Tomcat 4.x, Tomcat 3.3 validates web.xml by default. To disable, simply set the validate="false" attribute on the WebXmlReader element in server.xml. "Christopher Mark Balz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Apparently, this is the case. Yet

RE: Tomcat Connectors on AIX 4.3.3

2003-01-20 Thread Turner, John
I still have some binaries laying around from last year. For a short time I was sort of collecting them because people were having so many problems getting them to build. http://www.johnturner.com/howto/modjk/ I don't remember which version of Apache was used to compile that one, but there are

Re: commons-pool (ot)

2003-01-20 Thread Craig R. McClanahan
On 20 Jan 2003, Felipe Schnack wrote: > Date: 20 Jan 2003 15:55:01 -0200 > From: Felipe Schnack <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: commons-pool (ot) > > Anyone have a quick-and-dirty how-to create a keyed

Re: setuid from Tomcat

2003-01-20 Thread Pascal Forget
I was able to build a native C library called libsetuid.so under Linux. The library is loaded in the "login.jsp" page, which then sets the process' uid to nobody's uid and then writes a small file in /tmp. I checked and the file is owned by the unix user nobody so this is a success. However, if

Re: JSP fine but no Java.

2003-01-20 Thread Nick Sophinos
Chances are that you have the the mapping for the invoker servlet commented out in your $TOMCAT_HOME/conf/web.xml file. - Nick On 20 Jan 2003, David M. Karr wrote: > > "andoni" == andoni <[EMAIL PROTECTED]> writes: > > andoni> Hello, > andoni> I am having a really annoying problem

Re: Using a Webapp on a network share

2003-01-20 Thread Salvio Claudio
I had the same problem. The cause is the lack of permissions of the local system account. This account is the default account for running services. In Win2k the solution is to change the user that the service use to run. Take a look at the service´s properties. There you can change the user. Greeti

Re: JSP fine but no Java.

2003-01-20 Thread David M. Karr
> "andoni" == andoni <[EMAIL PROTECTED]> writes: andoni> Hello, andoni> I am having a really annoying problem that I hope somebody can help me with. andoni> My tomcat will run .jsp files fine and process them perfectly but will not andoni> even consider using a .class file.

Tomcat Connectors on AIX 4.3.3

2003-01-20 Thread HAMILTON, DALE K (SBCSI)
I have not been able to get the C code for the mod_jk to compile on AIX 4.3.3 using IBM's C compiler. I'm looking for someone who has been here and can offer some clues. We considered using GCC but neither 2.95.03 or 3.2 will compile. We have installed the GNU tools: ant autoconf-2.55 automake-1

new version: managing Tomcat as a Windows service

2003-01-20 Thread David Boyer
I've uploaded a new version of the application I wrote to manage and configure multiple instances of Tomcat as a Windows service. Sorry my web site is so slow; fortunately the utility is only a 74KB download. http://www.iowatelecom.net/~dkboyer/index.html

cookie creation behavior different TC 4.1.12 to 4.1.18

2003-01-20 Thread Dan Payne
Cookie cookie = new Cookie("MyCookieNumbers", "1,2,3,4"); Under TC 4.1.12 this works fine. Under TC 4.1.18 I get this error: java.lang.IllegalArgumentException: 1,2,3,4 at org.apache.tomcat.util.http.ServerCookie.maybeQuote(ServerCookie.java:315) at org.apache.tomcat.util.http.Ser

JK2 workers2.properties (was Re: Apache Tomcat Virtual Host)

2003-01-20 Thread Rasputin
Are there docs anywhere explaining how to setup jk2 vhosts in workers2.proeprties? I'd like to avoid using httpd.conf edits, due to file permission issues. Google isn't helping as much as it should, and the jakarta docs will no doubt make sense once they're explained to me :) Basically, I'm

RE: mod_jk performance

2003-01-20 Thread Turner, John
I describe the process in my HOWTO: http://www.johnturner.com/howto I had a lot of problems getting it to compile on Solaris, and had to download and install all sorts of patches and Sun packages, and GNU packages, before it would work. Once I got the dev environment setup correctly, the compil

mod_jk performance

2003-01-20 Thread Pimentel, William (Col)
Hello I've been unsuccesfully trying to compile mod_jk.so for Solaris 8, i get all kind of weird erros such as: sh: ./libtool: not found *** Error code 1 when there's a ./libtool in the current directory (native) The reason i'm trying to compile a new module is because the one i got some tim

RE: Apache Tomcat Virtual Host

2003-01-20 Thread Turner, John
Sorry, in my HOWTOs I use the ApacheConfig auto generation method, which means that Tomcat generates httpd.conf-compatible directives that are included into httpd.conf. The HOWTOs don't describe entering JkMount manually, as they show automatically in a file called mod_jk.conf when using ApacheCo

Re: Apache Tomcat Virtual Host

2003-01-20 Thread Chris Schild
Thanks guys! That was it. The mounts were not defined. John, I don't remember seeing JkMounts mentioned in your HOWTO for win2k. Everything else worked smoothly. Thanks for the advice!!! - Original Message - From: "Turner, John" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PRO

Re: JSP won't compile Source Code Showing

2003-01-20 Thread Tom Holmes Jr.
ok, hopefully these properties will have someone provide me an answer to this problem. - Original Message - From: "Turner, John" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Monday, January 20, 2003 3:02 PM Subject: RE: JSP won't compile Source Code Showing >

RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread neal
See, I knew there was something I didn't understand. Thanks. I'll take a look. :) Neal -Original Message- From: Turner, John [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 12:42 PM To: 'Tomcat Users List' Subject: RE: Mod_JK.c not compatiable with version of Apache I gave

RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread Turner, John
I gave you this link: ftp://ftp.cise.ufl.edu/pub/mirrors/redhat-contrib/libc6/i386/httpd-2.0.43-1. i386.rpm Which is the link to a Red Hat mirror that has the Apache 2.0.43 binary RPM. Any other contrib mirror will have it as well, if there is one closer to you. Installing that would upgrade yo

RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread neal
Yeah ... I saw that you sent me the link for mod_jk compatible with Apache 2.0.43. But, I already have that. I need binaries for either (a) Apache 2.0.43 or (b) Mod_jk 2.0.40. In this link that you provided there is only a binary for Mod_jk-2.0.43. If I go to the Apache site to download Apache-

RE: Question: Tomcat4.1.18/SOAP-Session Timeout Not working

2003-01-20 Thread Dandekar, Vivek
I did not hear from anybody last week. We have downgraded tomcat from 4.1.18 to 4.0.6 version.Now we see different behavior. Now web.xml's session-timeout of 30 mins. is working but SessionListener's SessionDestroyed method is being called based on last but one transactions's time stamp. For Ex

Tomcat 4.1.18 and HttpsURLConnection

2003-01-20 Thread Ed Robbins
Perhaps someone can shed some light on this for me. I posted a message last night stating I was having a problem moving a web application from 4.0.4 to 4.1.18. In the application, I need to make a Https connection, so I have a line like the following: HttpsURLConnection httpsConn; url = new URL

Caucho Resin to Tomcat Conversion

2003-01-20 Thread Edgar Dollin
I recently completed a cutover of moderately sized app from Resin to Tomcat and just wanted to put my experiences somewhere for posterity. First Resin allows out of order xml documents. Tomcat goes by the book with xml. So web.xml, struts-config.xml and any other xml files you have must but wel

RE: JSP won't compile Source Code Showing

2003-01-20 Thread Turner, John
I don't use JK2, so I can't help much, but my guess is the first thing someone who *can* help you is going to say is: "post your properties file and the Context entry from server.xml". So, you might want to do that now, save some time. John > -Original Message- > From: Tom Holmes Jr.

Re: JSP won't compile Source Code Showing

2003-01-20 Thread Tom Holmes Jr.
Here is some more information on this problem ... My JSP pages work in the root directory of my webapps, but in any sub-directory, they do not work. How messed up is that? It used to be that the JSP pages would work in ANY directory. If you need any more information on this issue, plea

RE: Apache Tomcat Virtual Host

2003-01-20 Thread Turner, John
Right on. John > -Original Message- > From: Ed Robbins [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 20, 2003 2:52 PM > To: Tomcat Users List > Subject: Re: Apache Tomcat Virtual Host > > > I'm running the same setup and in the httpd.conf file, I have the > JkMounts in the follow

RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread Turner, John
There are binaries for Apache 2.0.43, all over the place. http://httpd.apache.org I gave you a link to the binary Red Hat-compatible RPM for 2.0.43 so that you could upgrade your RH 2.0.40 installation. I gave you a link to the binary for mod_jk that is compatible with 2.0.43. Sorry, but I j

Re: Apache Tomcat Virtual Host

2003-01-20 Thread Ed Robbins
I'm running the same setup and in the httpd.conf file, I have the JkMounts in the following manner: JkMount /*.jsp ajp13 JkMount /robbinsapps/* ajp13 JkMount /RobbinsApps/* ajp13 JkMount /*.do ajp13 This will map anything ending in .jsp, anything ending in /robbinsapps/*, anything ending in /Robb

RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread neal
Actually, I was just trying to find binaries for compatible versions of either Apache or mod_jk. So, I wanted to find either (a) Apache 2.0.43 or (b) Mod_jk 2.0.40. Perhaps its me and my phobias of doing a src build on Linux (which I barely know) but I am just not comfortable doing a src build. I

RE: Apache Tomcat Virtual Host

2003-01-20 Thread Turner, John
JkMount is the directive used in Apache's httpd.conf file to tell Apache when to direct requests to Tomcat and when not to. In a very simple configuration, it would look like this, within an Apache VirtualHost container: JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Then, in workers.properties

Apache Tomcat Virtual Host

2003-01-20 Thread Chris Schild
The version of Tomcat that I am is using is 4.1.18, The version of Apache is 2.0.43 running on Windows 2000 The connector that I am using is mod_jk. The virtual host are defined in httpd & server.xml. The JkMounts? That could be a problem... any advice there??? What about workers.properties

Apache Tomcat Virtual Host

2003-01-20 Thread Chris Schild
The version of Tomcat that I am is using is 4.1.18, The version of Apache is 2.0.43 The connector that I am using is mod_jk. The virtual host are defined in httpd & server.xml. The JkMounts? That could be a problem... any advice there??? What about workers.properties? In the configuration docu

RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread Turner, John
Sorry, you lost me. You asked for a link to mod_jk for Apache 2.0.43, that's what I gave you. .43 is the supported Apache version. I don't use RPMs, but it should be fairly trivial to upgrade a RH installation with Apache 2.0.40 to .43. Not to be pedantic, but the current "official" Apache H

Prob with tomcat 4.1.18 LE

2003-01-20 Thread eric
Hi, i configure some host on my domain But the jsp doesn t work under this host , html ok jsp no Exemple http://127.0.0.1/site1 ok jsp run http://site1 jsp no, but html yes Thank for helping... Windows XP sp1, tomcat 4.1.18 LE jdk 1.4 JVM jsdk 1.4.1 Same probleme on Windows NT and jvm 1.3

Re: Tomcat 5 feature?

2003-01-20 Thread Erik Price
Erik Price wrote: enLogica wrote: Does Tomcat 5 include the feature wherein it doesn't automatically redirect (302) to the welcome page ... rather it *forwards* to the welcome page? Do you mean (RequestDispatcher)foo.forward()? No, you don't... I just realized what you mean. Never mind

Re: Tomcat 5 feature?

2003-01-20 Thread Erik Price
enLogica wrote: Does Tomcat 5 include the feature wherein it doesn't automatically redirect (302) to the welcome page ... rather it *forwards* to the welcome page? Do you mean (RequestDispatcher)foo.forward()? Erik -- To unsubscribe, e-mail: For additional comm

Tomcat 5 feature?

2003-01-20 Thread enLogica
Does Tomcat 5 include the feature wherein it doesn't automatically redirect (302) to the welcome page ... rather it *forwards* to the welcome page? Thanks. Neal -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread neal
Yes, but when I go to the Linux dir it says "mod_jk-2.0.43.so is for Apache 2.0.42 (and 2.0.43) " It does not appear that a binary version is available that is compatible with Apache 2.0.40 (the version shipping with RedHat Linux 8 by the way). I am suprised this particular build is not availabl

Re: setuid from Tomcat

2003-01-20 Thread Pascal Forget
Thanks, John. Pascal Turner, John wrote: I would look at something like authbind, which can be found as a Debian package here: http://packages.debian.org/unstable/utils/authbind.html Also on Linux is the daemon() function used in some startup scripts, found in /etc/init.d/functions, but I do

RE: setuid from Tomcat

2003-01-20 Thread Turner, John
I would look at something like authbind, which can be found as a Debian package here: http://packages.debian.org/unstable/utils/authbind.html Also on Linux is the daemon() function used in some startup scripts, found in /etc/init.d/functions, but I don't know how well either of those would port

setuid from Tomcat

2003-01-20 Thread Pascal Forget
Hi, I would like to fire up Tomcat as the root user on port 80 and then switch to user nobody, just like Apache does it. Is there a way to do this with the "stock" Tomcat? If not, has anyone attempted to use JNI to call the native C function setuid()? I'm trying to do this on HP/UX 11.0 Thank

Mod JK binaries for HP/UX 11.0

2003-01-20 Thread Pascal Forget
Hi, Is there anyone on this list who has compiled mod_jk for HP/UX 11.0 and for a recent version of Apache 2.0? Thanks, Pascal Forget -- To unsubscribe, e-mail: For additional commands, e-mail:

Pooled tags with optional bodies

2003-01-20 Thread Benjamin Butler-Cole
Hi, I have recently migrated from Tomcat 4.0 to Tomcat 4.1.12 and have been fixing problems with my tag library which were exposed by the tag handler pooling. There is one problem for which I consider my fix to be unsatisfactory, and I wondered if anyone could shed some light on the issue for me.

Troubleshooting under tomcat

2003-01-20 Thread eric
I use tomcat 4.1.18 under Xp And i can't configure some host. When i try it, the host not run jsp,just html... Thanks a lot for answer --- Ce message est certifié sans virus connu . Protégé par l'antivirus AVG Deluxe. Version: 6.0.443 / Base de données virus: 248 - Date: 10/01/2003 -- To uns

Regarding deploying a web app

2003-01-20 Thread sravipat
Hi, I have a webapp, in which a jsp calls a bean class.The bean class is under web-inf/classes dir.server.xml has an entry for the doc base but I get a 500 error , the Bean class is not identified.I appreciate any help . Thanks Sunil org.apache.jasper.JasperException: Unable to compile class

commons-pool (ot)

2003-01-20 Thread Felipe Schnack
Anyone have a quick-and-dirty how-to create a keyed object pool using commons-pool JAR? -- Felipe Schnack Analista de Sistemas [EMAIL PROTECTED] Cel.: (51)91287530 Linux Counter #281893 Centro Universitário Ritter dos Reis http://www.ritterdosreis.br [EMAIL PROTECTED] Fone/Fax.: (51)32303341

TC 4.06 + IIS Port/Redirect issue

2003-01-20 Thread Jan Schmitz-Reinthal
After searching to no avail in the list archives, here's my cry for help: On Win2Kserver I have IIS 5.0 and Tomcat 4.06 The latter holds a Java-Based application which I want to make public through IIS on Port 80 (instead of Tomcat's regular 8080). I have set up the ISAPI_Redirector.dll, read mo

JSP won't compile Source Code Showing

2003-01-20 Thread Tom Holmes Jr.
I realize that this is a tough question, but I am sure someone has come acrosss this error before. I have comnfigured Apache 2.0.43 with Tomcat 4.1.18 with Jk2 on Win2K. The http://localhost/examples works fine. I have even created virtual hosts and set up those web-apps and they all work. Now

Re: Tomcat 4.1.18, JK2, IIS - Second try

2003-01-20 Thread Dan Tran
With the help of Mark Eggers, I am able to install JK2/tomcat 4.1.8/IIS on a new machine. The connector on this macine works I also reinstall tomcat on the problem machine, check every step (registries, iis virtual directory, workers2.properties and JK2.properties). Connector on this machine still

TC 3.3.1 authentication roles - what is going on?

2003-01-20 Thread Christopher Mark Balz
It seems that to get good authentication whilst tying one role to one web app (so only one designated user can use a given designated webapp), I must assign two roles to the designated user: an arbitary role, and a role of "deployer", and omit or comment out the role of "deployer" in web.xml

RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Madhava Reddy
No. The Java IO (and nio) APIs as well as every logging framework I've used take care of this for you. >> thanks Yaov.. let me try this... Madhava Reddy

RE: Logging

2003-01-20 Thread Shapira, Yoav
Hi, >Yes, thanx Yoav, I am in fact using Log4J for webapplication specific >logging, with very good results. Glad to hear it ;) > >But sometimes exceptions occure where they should not occure (where they >are not caught), and I get stacktraces printed out on to the tomcat >console, but no infor

Re: Logging

2003-01-20 Thread Paul Yunusov
On Monday 20 January 2003 11:42 am, Reynir Hübner wrote: > allright, how could I miss that.. > > Thanx man, > > -reynir No problemo. Paul -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Logging

2003-01-20 Thread Reynir Hübner
allright, how could I miss that.. Thanx man, -reynir > -Original Message- > From: Paul Yunusov [mailto:[EMAIL PROTECTED]] > Sent: 20. janúar 2003 16:41 > To: Tomcat Users List > Subject: Re: Logging > > > On Monday 20 January 2003 10:59 am, Reynir Hübner wrote: > > Is it possible so

Re: Logging

2003-01-20 Thread Paul Yunusov
On Monday 20 January 2003 10:59 am, Reynir Hübner wrote: > Is it possible somehow to set the logger in tomcat (FileLogger) so that it > will tell which application the exception happenes. My problem is this : > I have a server running serveral virtual hosts, most running the same > web-applications

RE: Logging

2003-01-20 Thread Collins, Jim
Hi Yoav, I have been getting this strange exception from Tomcat: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Class org.apache.commons.logging.impl.Log4JCategoryLog does not i

RE: Logging

2003-01-20 Thread Reynir Hübner
Yes, thanx Yoav, I am in fact using Log4J for webapplication specific logging, with very good results. But sometimes exceptions occure where they should not occure (where they are not caught), and I get stacktraces printed out on to the tomcat console, but no information in wich application

RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Shapira, Yoav
Howdy, >>> Do we need to make sure the file blahblahLogFile.txt exists before >deploying the application? No. The Java IO (and nio) APIs as well as every logging framework I've used take care of this for you. Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail:

RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Madhava Reddy
All other writing should be done to directories/files declared as parameters to your context or servlets. For example: logFile /tmp/blahblahLogs/blahblahLogFile.txt This way other people using/deploying your app can configure these settings to a directory that suits their deployment. >> D

RE: Logging

2003-01-20 Thread Shapira, Yoav
Howdy, Here's one way: use log4j. Configure a file appender with some pattern that includes your hostname in the MDC. That's exactly the sort of thing MDC (Mapped Diagnostic Context) in log4j was designed for. For more details, see the PatternLayout and MDC class javadocs at http://jakarta.ap

RE: tomcat configuration with apache 1.3.27 ssl

2003-01-20 Thread Helene Figueiredo
I make the configuration of apache ssl and tomcat with this lines in differents configuation files : in the httpsd.conf : #SSLDisable SSLEnable DirectoryIndex index.php index.php3 index.cgi index.html Welcome.html Welcome.phtml Options FollowSymLinks Indexes AllowOverri

RE: Logging

2003-01-20 Thread Brandon Cruz
I have been trying to do the same thing, unfortunately I have not found a way to make this happen yet. Brandon -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 9:59 AM To: Tomcat Users List Subject: Logging Is it possible somehow to set th

RE: What about the Context tag?

2003-01-20 Thread Noel J. Bergman
Steve, The tag defines the context for the entire web application, not each servlet. I gave you a single ZIP file containing your sample web app. If you install tomcat *AND* you can use tomcat's sample servlets as delivered, then you should be able to use what I gave you. The one I gave you use

Logging

2003-01-20 Thread Reynir Hübner
Is it possible somehow to set the logger in tomcat (FileLogger) so that it will tell which application the exception happenes. My problem is this : I have a server running serveral virtual hosts, most running the same web-applications. When an exception is caused it gets stack-trace-printed to th

Re: HttpServletRequest getPathInfo() decodes incorrectly?

2003-01-20 Thread Scott Dunbar
Andreas, I had a similar problem with a different character set under Windows. The ultimate problem wasn't Tomcat but was how the JDK converted to the underlying operating system's character set. I was able to solve it by passing a -Dfile.encoding=ISO8859_1 to the java command that starts Tom

Re: How do I get the absolute path of a file in a directory aboveWEB-INF directory of my web application?

2003-01-20 Thread Erik Price
Thanks for the clarification. (I have not yet had to deploy a webapp, though eventually I would like to hand my project to the admins as a WAR file, so these are good things to keep in mind as I learn.) Erik Shapira, Yoav wrote: Howdy, The idea of a webapp is to be self-contained. What hap

RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Shapira, Yoav
Howdy, The idea of a webapp is to be self-contained. What happens in typical installations, or at least the ones I've been part of, is that server administrators already have a particular place they like temporary and/or log files to go. Then they just modify the deployment descriptor (or the ser

Re: How do I get the absolute path of a file in a directory aboveWEB-INF directory of my web application?

2003-01-20 Thread Erik Price
Shapira, Yoav wrote: All other writing should be done to directories/files declared as parameters to your context or servlets. For example: logFile /tmp/blahblahLogs/blahblahLogFile.txt This way other people using/deploying your app can configure these settings to a directory that suits

RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Shapira, Yoav
Hi, >Just to make sure I have this right: the only time that a webapp is >allowed to write files in a portable fashion is in the temporary >directory provided by the ServletContext? Yes. All other writing should be done to directories/files declared as parameters to your context or servlets. Fo

Re: How do I get the absolute path of a file in a directory aboveWEB-INF directory of my web application?

2003-01-20 Thread Erik Price
Jacob Kjome wrote: Just make sure to check for the absolutePath string being null because it will be in the case where you serve the app directly out of a .war file, which is why you shouldn't use File IO unless you absolutely have to. There are plenty of other ways to read files in a serv

RE: packages

2003-01-20 Thread Ghershony, Arie
Are you familiar with WebServices deployment? thanks Arie -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 8:50 AM To: Tomcat Users List Subject: RE: packages Hi, 1. RTFM. 2. This is not a tomcat question. Include [OFF-TOPIC] in the subje

RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Jacob Kjome
Why would one use normal File IO to attempt an absolute file path to the WEB-INF directory of a webapp? Use what the servlet spec provides for you. String absolutePath = getServletContext().getRealPath("/WEB-INF"); File file = new File(absolutePath); Just make sure to check for the absolutePa

Re: request caching?

2003-01-20 Thread David Kavanagh
Thanks, I do set some values to prevent caching. response.setHeader("Pragma", "no-cache"); response.setHeader("Expires", "0"); response.setHeader("Cache-control", "no-cache, must-revalidate"); I'll didn't really implement caching in the way you think. I just cache the Templa

RE: Some advice on getting webapp-root and reading/writing

2003-01-20 Thread Shapira, Yoav
Howdy, I agree with mech's answer: don't use file-based APIs. Use the ServletContext getResource() and getResourceAsStream() methods. Use relative links to your images. Map your servlets in web.xml. For example, let's say you have a servlet com.mycompany.MyServlet. It needs to access images fr

RE: request caching?

2003-01-20 Thread Shapira, Yoav
Howdy, >So, before I spend a bunch of time pouring over the source, can someone >tell me if tomcat 4 (or the HttpConnector) looks at the incomming URL >and gives a cached result if the URL hasn't changed? I am using mod_jk >with apache, but that hasn't changed since when I used tomcat 3.x. (nor >h

RE: Question about tomcat 4.1.19

2003-01-20 Thread Shapira, Yoav
Hi, 4.1.19 was announced as an alpha release. Searching the web can easily yield definitions of what an alpha, beta, and stable release means. The Apache release model, followed by tomcat, is well-documented. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Steve Vans

RE: packages

2003-01-20 Thread Shapira, Yoav
Hi, 1. RTFM. 2. This is not a tomcat question. Include [OFF-TOPIC] in the subject. 3. http://java.sun.com/docs/books/tutorial/java/interpack/usepkgs.html has the answer you're looking for. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: puneet sachar [mailto:[EMAIL PR

RE: Can't find servlet

2003-01-20 Thread Shapira, Yoav
Howdy, If your servlet class is com.mycompany.MyServlet, and you'd like it to be accessed as /MyServlet under your webapplication, add the following to your web.xml: MyServletName com.mycompany.MyServlet MyServletName /MyServlet Please note elements must be in the web.xml in the orde

RE: WAR Problem

2003-01-20 Thread Madhava Reddy
Hi, Let's say your Application is named as Test. try this. 1. Let the default web.xml be there. 2. Go to %CATALINA_HOME%\webapps\Test 3. jar -cvf Test.war 4. place Test.jar in %CATALINA_HOME%\webapps 3. Remove %CATALINA_HOME%\webapps\Test directory. Note no entry in sever.xml is needed. If you

Re: troubleshooting web.xml

2003-01-20 Thread Erik Price
Steve R Burrus wrote: Hi Erik, I need some help w. the very same problem which you have seemed to encounter, that is my utter ability to see/view successfully a servlet in my web browser!!! Now, you say that u edit the various tags in the web.xml file!! How do you go about editing the servlet

Sample test case : Unresolved entities in included JSP file

2003-01-20 Thread Ludovic Maitre
Hello, My first mail wasn't very clear, a simple test case follow. Sample test case File test_include.jsp : ]> http://java.sun.com/JSP/Page"; version="1.2">   File test_included.jsp :   When i access to test_include.jsp : XML Parsing Error: undefined entity Locati

RE: Mod_jk & apache

2003-01-20 Thread Turner, John
Glad you got it working. John > -Original Message- > From: Leong Hong Wai [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 19, 2003 9:20 PM > To: Tomcat Users List > Subject: Re: Mod_jk & apache > > > Hi John, > > > After tried for every possibility that I can think of, > finally

RE: connecting Tomcat with Apache

2003-01-20 Thread Turner, John
Windows XP Pro HOWTO, everything described exactly, step by step: http://www.johnturner.com/howto John > -Original Message- > From: Wesley Hobbie [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 19, 2003 3:59 PM > To: [EMAIL PROTECTED] > Subject: connecting Tomcat with Apache > > >

RE: Mod_JK.c not compatiable with version of Apache

2003-01-20 Thread Turner, John
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.2 /bin/linux/i386/ Browse around in that tree to find others if needed. John > -Original Message- > From: neal [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 19, 2003 8:57 PM > To: Tomcat Users List > Subjec

Re: Tool for HTTP Request Stress Test

2003-01-20 Thread Erik Price
Oh, I thought he was talking about Internet Explorer. ;) Erik Subir Sengupta wrote: I don't think Micorsoft's WAS is available on their website anymore. http://webtool.rte.microsoft.com/ Subir -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: Friday, Januar

RE: on File.separator (was: How do I get the absolute path ...)

2003-01-20 Thread Madhava Reddy
-Original Message- From: Holger Klawitter [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 1:26 PM To: Tomcat Users List Subject: OT: on File.separator (was: How do I get the absolute path ...) Hai, > > java.io.File dir1 = new java.io.File ("..\\"); // line 1 > new java.io

OT: on File.separator (was: How do I get the absolute path ...)

2003-01-20 Thread Holger Klawitter
Hai, > > java.io.File dir1 = new java.io.File ("..\\"); // line 1 > new java.io.File( ".." + File.separator ) would be a somewhat cleaner. > more over, we can use suitabe seperators depending on the operating system. File.separator already gives you the Separator for the current OS. > I gues

DTD doesn't apply to included JSP file

2003-01-20 Thread Ludovic Maitre
Hello, I have a JSP 1.2 page who include some french character like ô . The problem is that i have added the entity ocirc; to the dtd of my JSP and it seems that the DTD doesn't apply to the JSP files included from this page. I have the following pages : index.jsp recherche.jsp My index.jsp p

RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Madhava Reddy
-Original Message- From: Holger Klawitter [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 11:00 AM To: Tomcat Users List Subject: Re: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application? > java.io.File dir1 = new java.io.F

Re: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Holger Klawitter
> java.io.File dir1 = new java.io.File ("..\\"); // line 1 new java.io.File( ".." + File.separator ) would be a somewhat cleaner. -- To unsubscribe, e-mail: For additional commands, e-mail:

HttpServletRequest getPathInfo() doesn't decode properly?

2003-01-20 Thread Andreas Anderson
I can't get Tomcat 4.1.18 to decode path info Correctly. This works fine with Tomcat 4.0.6. I'm running Tomcat with JDK 1.4.1 on Win2K. Here is an example: public class TestServlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletExc

RE: Tomcat 4 - SSL - Client Authentication

2003-01-20 Thread Shiva.Devaguptapu
Yes. Read and write as well. -Original Message- From: Christopher Mark Balz [mailto:[EMAIL PROTECTED]] Sent: Monday, January 20, 2003 2:58 PM To: Tomcat Users List Subject: Re: Tomcat 4 - SSL - Client Authentication Have you checked the permissions to the directory where your keystore is

Re: Apache Tomcat Virtual Host

2003-01-20 Thread adrian
Chris Schild wrote: Hi all, I am a newbie to Tomcat. I'm having a problem with configuring the virtual host with Tomcat. The problem is that I cannot get the examples/jsp to work with the virtual host?!? A window pops up asking to open or save the source when I try to execute an example.

Please help with LogConfigurationException

2003-01-20 Thread Collins, Jim
Hi, I am still getting this Exception thrown. Has anyone else ever had this and know of a fix. Any help at all would be appreciated as this is causing me a lot of problems Thanks Jim. > A quick update. I have now copied the log4J jar file to > commons/lib and > restarted the server so that is

Re: Tomcat 4 - SSL - Client Authentication

2003-01-20 Thread Christopher Mark Balz
Have you checked the permissions to the directory where your keystore is held? The process running the webserver must of course be able to read the keystore. - CB Shiva.Devaguptapu wrote: Hi, I am using Tomcat 4 on a linux system. I am trying to enable SSL with client authentication enabled.

Tomcat 4 - SSL - Client Authentication

2003-01-20 Thread Shiva.Devaguptapu
Hi, I am using Tomcat 4 on a linux system. I am trying to enable SSL with client authentication enabled. I want the client to be the Internet Explorer, running on Win2K, my desktop. I found the following steps on the net and tried. * Create keys on the server * Create the certif

URL Mappings on Tomcat 3.3 must go between servlet and security sections.

2003-01-20 Thread Christopher Mark Balz
Apparently, this is the case. Yet another awful fact for those stuck with Tomcat 3.3. DynaFastSurv3 /s3 -- ". . . / This Cabinet is formd of Gold / And Pearl & Crystal shining bright And within it opens into a World / . . . Another England there I saw / A

RE: How do I get the absolute path of a file in a directory above WEB-INF directory of my web application?

2003-01-20 Thread Madhava Reddy
Peter, this may help you, try{ java.io.File dir1 = new java.io.File ("..\\"); // line 1 System.out.println ("Current dir : " + dir1.getCanonicalPath()); String[] contents = dir1.list(); if(contents != null) for(int i=0;imailto:[EMAIL PROTECTED]] Se

  1   2   >