RE: Java q: round to n decimal points?

2002-11-17 Thread Hari Yellina
in NuberFormat, Please use the fucntion setMaximumDecimalPoints and Miminum Decimal Points. -Original Message- From: Josh G [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 14, 2002 05:54 PM To: Tomcat Users List Subject: Java q: round to n decimal points? Is there a nice easy way to

RE: Servlet filter mapping

2002-11-17 Thread Reynir Hübner
Thanx craig. I wonder why this is not a part of the spec, as it could be very usefull. Is there a way of setting the url-patterns on runtime, or only in web.xml ? Thanx again, -reynir There are only four standard URL patterns (and this applies to servlet mappings and security

why Tomcat 4.0.4 creates new instance of servlet, when applet make first request to servlet?

2002-11-17 Thread Daniil Ivanov
Given: Tomcat 4.0.4 and servlet, that was already initialized when browser made request to it. When browser window with applet opens, applet begin periodically query the servlet through standard method doPost. But at the first request applet to servlet Tmcat creates a new instance to servlet, in

RE: JSP1.2 xml syntax

2002-11-17 Thread Doug Blackburn
David, That worked. I was able to set the content type in the page directive. I guess I was being a little stubborn since it worked on the other two servers. Tomcat is just not so forgiving. Thanks again. Doug -Original Message- From: David Tildesley [mailto:[EMAIL PROTECTED]] Sent:

RE: why Tomcat 4.0.4 creates new instance of servlet, when applet make first request to servlet?

2002-11-17 Thread Reynir Hübner
If I understand you correctly I think I must say a servlet get's initialized once, when it's loaded (by the classloader), and then only again if it's changed. A servlets runtime is within the scope of one request, so if you want to execute the same servlet twice, first to set member variables

RE: Can I use Structs in Tomcat 4.1.12?

2002-11-17 Thread Reynir Hübner
My guess is you're asking about struts, but not structs ? Yes you can, see http://jakarta.apache.org/struts Hope it helps -reynir -Original Message- From: Cui Jun [mailto:[EMAIL PROTECTED]] Sent: 17. nóvember 2002 04:52 To: [EMAIL PROTECTED] Subject: Can I use Structs in Tomcat

RE: servlet classpath

2002-11-17 Thread Reynir Hübner
Try putting your servlet into your webapplications lib directory, its usually under, Your_web_application/WEB-INF/classes (if it's not packaged) or Your_web_application/WEB-INF/lib (if it's packaged in a jar file). The size of your terminal screen does not matter. hope it helps -reynir

Re:Re: why Tomcat 4.0.4 creates new instance of servlet, when applet make first request to servlet?

2002-11-17 Thread Daniil Ivanov
If I understand you correctly I think I must say a servlet get's initialized once, when it's loaded (by the classloader), and then only again if it's changed. It must be so in theory, but in fact I see, that when applet request servlet (that was already initialized) at first time, the

Re: Can I use Structs in Tomcat 4.1.12?

2002-11-17 Thread Pae Choi
reynir, Man! You MUST be a good guesser. It would cost to pull all my hairs to figure out. There's no guarantee that I will be able to figure out after having no hair at all though. :-) Pae - Original Message - From: Reynir Hübner [EMAIL PROTECTED] To: Tomcat Users List [EMAIL

Re: Unable to find setter method

2002-11-17 Thread Jim Cobban
- Original Message - From: David M. Karr [EMAIL PROTECTED] Subject: Re: Unable to find setter method And there are no other overloaded setters for these properties in either of these two classes? Is the base class a public class? Are there any getter methods for either of these two

using multiple Contexts

2002-11-17 Thread Adrian
I`m having trouble logging for multiple Contexts. does this look right Context path=/mynewdir docbase=mynewdir debug=0 Valve className=org.apache.catalina.valves.AccessLogValve prefix=mynewdirLog suffix=.txt / Context/ does this need to nest inside of the default Context ? If anyone has an

RE: servlet classpath

2002-11-17 Thread chasee
My thanks for your response. Actually the trouble is in finding the supporting classes of the servlet,not the servlet itself. My servlet is in ROOT\WEB-INF\classes, while the supporting classes is in a package outside of tomcat installation dir. I was hoping the server classloader would have

Why do I have to restart the server

2002-11-17 Thread chasee
Hello all, Running jakarta 4.0.4. Placing my servlet under ROOT\WEB-INF\classes. In server.xml, I uncomment the context declaration for ROOT application and make reloadable true. Everytime I modify and recompile the servlet class, the tomcat window print out a notice of modification of the

Tomcat Startup 2 errors

2002-11-17 Thread Triptpal Singh Lamba
1. I have 3 versions of Tomcat, 2 are associated with Jbuilder. These 2 versions start off and give me an error described below. The point to note is that the command window(dos) in which I run it stays and does not disappear. 2. Downloaded a version of Tomcat , the port for which I have

Listener Object

2002-11-17 Thread josh
Hi i have a HttpSessionListener object that is deployed in the web.xml file. At Tomcat startup two instances of that listener class are created. Is it normal that two instances of the listener class are created? Why? If not, where could the second instance come from? Thanks for your answers.

Can all vhosts share one Webapp?

2002-11-17 Thread Brandon Cruz
Can I have all my virtual hosts share one webapp? I would like to avoid having to declare a context for every single virtual host. This causes way too many threads on startup and slows the system down. Any ideas? We are using tomcat 4.1.12 and apache 1.3.26. Thanks! Brandon -- To

RE: Servlet filter mapping

2002-11-17 Thread Craig R. McClanahan
On Sun, 17 Nov 2002, Reynir Hübner wrote: Date: Sun, 17 Nov 2002 10:53:20 - From: Reynir Hübner [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Servlet filter mapping Thanx craig. I wonder why this is not a part

Re: Can all vhosts share one Webapp?

2002-11-17 Thread Craig R. McClanahan
On Sun, 17 Nov 2002, Brandon Cruz wrote: Date: Sun, 17 Nov 2002 15:44:12 -0600 From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Can all vhosts share one Webapp? Can I have all my virtual hosts share one

Tomcat on a separate machine

2002-11-17 Thread Lee Grey
I have server1 running both Apache2 and an instance of Tomcat4. I have server2 running its own instance of Tomcat4. The Tomcats on server1 and server2 are running different applications. I am currently trying to get requests for urlinone.com received by Apache at server1 forwarded to the Tomcat

Re: Can all vhosts share one Webapp?

2002-11-17 Thread Brandon Cruz
Can I have all my virtual hosts share one webapp? I would like to avoid having to declare a context for every single virtual host. You can do this by taking advantage of the defaultHost attribute on the Engine element. If a request comes into Tomcat with an unrecognized host name, it is

RE: how many tomcat in a machine?

2002-11-17 Thread Nicholas Orr
Just on this point of multiple Tomcat Instances, how does the JVM fit into all of this. ie does Tomcat1 use JVM1 and Tomcat2 use JVM2. Or does Tomcat1 Tomcat2 use JVM1? Also if you had one Tomcat Instances and 3 apps would they all share the one instance of Log4j and its static methods or would

RE: Problems with Tomcat's built in db poolmanager

2002-11-17 Thread Nicholas Orr
Error 2 would suggest you are not releasing your connection back to the pool. I know you don't use connection.close() but I don't know what ur suppose to do, as I haven't started using DBCP yet. Error 1 I have no idea, maybe if you fix Error 2 this one will fix itself?? Nicholas Orr

ROOT/subdir softlinked to another directory fails

2002-11-17 Thread Hanasaki JiJi
For logistical purposes, it is necessary to soft link a directory under ROOT to a directory elsewhere in the filesystem (Running Linux ext3). Tomcat is reporting that the resource is not available when someone hits the page [host]/subdir. What is the reason for this? Any suggestions as to how

Unable to compile class for JSP in Windows

2002-11-17 Thread Salama hussein
I am getting the error below in Windows 2000 SP2, Tomcat 4.1.12 and JDK1.4 for any JSP program including the examples. I have reinstalled Tomcat different versions and tried JDK1.3 but always same problem. Any ideas? org.apache.jasper.JasperException: Unable to compile class for JSP An error

apache + tomcat configuration

2002-11-17 Thread Hong . Sun
hi, I am trying to integrate apache 1.3.26 and tomcat 4.0.6 on win2000 server. After an initial configuration, I can get them going, and I can also access all the examples' servlet through apache, I mean without giving :8080, but I still have the following problems: __1. in my apache error.log,

Fwd: Install Tomcat 4.1.12 on WinXP problem ... solved by installing Microsoft Loopback Adapter

2002-11-17 Thread T S
I am writing to put closure on this subject. Attached are the e-mails that helped me solve the problem. The bottom line was that Microsoft Loopback Adapter had to be installed. Detailed instructions on how to install Microsoft Loopback Adapter are included below. I owe a large Thank You

Re: Unable to compile class for JSP in Windows

2002-11-17 Thread Kwok Peng Tuck
Exactly what did the jsp contain? I mean the code you put in. Post it on the list and let everyone have a look see. Salama hussein wrote: I am getting the error below in Windows 2000 SP2, Tomcat 4.1.12 and JDK1.4 for any JSP program including the examples. I have reinstalled Tomcat

Re: whereis that cat?

2002-11-17 Thread Joel Rees
i installed tomcat rpm on my server, but i am running a hosting company with many sites configured on the apache, That makes things pretty hard for me to guess. when i try to run a jsp file i get an error saying 404 not found, eg http://66.150.223.35/index2.jsp does anyone know where i

Re: Can all vhosts share one Webapp?

2002-11-17 Thread Craig R. McClanahan
On Sun, 17 Nov 2002, Brandon Cruz wrote: Date: Sun, 17 Nov 2002 16:46:44 -0600 From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Can all vhosts share one Webapp? Can I have all my virtual hosts share

RE: how many tomcat in a machine?

2002-11-17 Thread Craig R. McClanahan
On Mon, 18 Nov 2002, Nicholas Orr wrote: Date: Mon, 18 Nov 2002 09:13:35 +1000 From: Nicholas Orr [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: how many tomcat in a machine? Just on this point of multiple Tomcat

Download files via Internet Explorer with SSL

2002-11-17 Thread Joe Clem
Using Tomcat 4.0.3. Apache 1.3.26 when integrating with Apache I am having problem downloading files from a website with internet explorer 5.0 . I am familiar with the Apache/MSIE problems, but those fixes did not help my current problem. If I try to download a file (meaning clicking on a

newbie question creating and serving a context

2002-11-17 Thread James Bender
Hi, I'm having a really frustrating problem just creating a simple context using Tomcat 4 on a Linux server. I edit server.xml in my conf directory to include: Context path=/jsp_public docBase=/var/tomcat4/webapps/jsp_public debug=0 reloadable=true crossContext=true Logger

Escaped versus unescaped cookies

2002-11-17 Thread Lee Grey
I am running the same servlet on two different machines. One is running Apache 1.3.26, Tomcat 4.0.3, and J2SDK 1.4.0. The other is running Apache 2.0.43, Tomcat 4.1.12, and J2SDK 1.4.1. In the first environment, my cookie comes back in plain text, like: Cookie 0: set0=(sn=About

Taglib iterator (4.0.4 / 4.1.12) same code, diff output

2002-11-17 Thread Jay Wright
I have written a taglib to handle iteration, which works well when I deploy it to tomcat 4.1.12. When I deploy to tomcat 4.0.4, I receive an odd error. My Iterator somehow takes on a null value somewhere between the doStartTag() and doAfterBody() methods. The doStartTag() correctly grabs the

RE: Download files via Internet Explorer with SSL

2002-11-17 Thread Joseph Stephen Vaithara
Hi Joe, I don't have solution to your problem but I am doing something similar and it seems to work for me. Please run though config files, maybe something misconfigured there. btwn, I am familiar with the Apache/MSIE problems -- What are these, is this documented any where ?

disable directory listing in tomcat 4.1.12

2002-11-17 Thread Yandell Cacton
Hi, I upgraded my server from Tomcat 3.3 to Tomcat 4.1.12, and could not figure out how to disable directory listing. It was done by setting StaticInterceptor's listing attribute to false in Tomcat 3.3, but it looks like StaticInterceptor is no longer part of Tomcat 4.1.12's server.xml? I have

Re: newbie question creating and serving a context

2002-11-17 Thread Paul Campbell
Try docBase=jsp_public At 06:02 PM 11/17/02, you wrote: Hi, I'm having a really frustrating problem just creating a simple context using Tomcat 4 on a Linux server. I edit server.xml in my conf directory to include: Context path=/jsp_public docBase=/var/tomcat4/webapps/jsp_public

Re: Tomcat on a separate machine

2002-11-17 Thread Paul Campbell
How about trying what I do: in httpd.conf ProxyPass /equivhttp://other:8080/equiv ProxyPassReverse /equiv http://other:8080/equiv Where other is someother machine At 02:37 PM 11/17/02, you wrote: I have server1 running both Apache2 and an instance of Tomcat4. I have server2 running

http 302 not working with mod_jk

2002-11-17 Thread Jano
Hola all! Im having 302 problems with Apache2, modjk 1.2, tomcat 4.1, debian. Everything is OK, except for urls like /examples/jsp/ Tomcat says 302 - examples/jsp/index.html, but the browser doesnt follow the redirection. Im pulling my hair out, I've spent hours w/o any success, I saw the same

Re: newbie question creating and serving a context

2002-11-17 Thread Jacob Kjome
I you are serving out of Tomcat's webapps directory, try changing docBase to docBase=jsp_public instead of the full path from the root of the filesystem. Jake At 02:02 AM 11/18/2002 +, you wrote: Hi, I'm having a really frustrating problem just creating a simple context using Tomcat 4

RE: how many tomcat in a machine?

2002-11-17 Thread Jacob Kjome
Also if you had one Tomcat Instances and 3 apps would they all share the one instance of Log4j and its static methods or would there be three instances of Log4j?? If you put Log4j in one of the parent classloaders that Tomcat makes available to webapps ( shared/lib, common/lib ) then

Re: Starting tomcat as user apache instead of root

2002-11-17 Thread Nikola Milutinovic
Randy Paries wrote: Thanks The problem is that they have to both read and write files The weird thing is if I do a su - apache -c $TOMCAT_HOME/bin/startup.sh It does not start But if I do a su - tomcat -c $TOMCAT_HOME/bin/startup.sh Is does. The one diff is that in the etc/passwd file

SUCCESSFUL Tomcat Install!

2002-11-17 Thread Steve R Burrus
Well, I really haven't bothered to post to this newsgroup in quite some time, but I just had to proudly announce to anyone interested that I HAVE SUCCESSFULLY INSTALLED TOMCAT!!! This is the 4.1.12 version that I am now talking about! Any possible signs of appreciation from anyone in this

Request Does Not Include Session Id - Why?

2002-11-17 Thread bido
For some odd reason the JSP session id is not being written to the request object and therefore I get null pointer errors when I try to reference session objects within a servlet. Please note that, I do not want to send the client session in the URL. I tried several different browsers

Re: SUCCESSFUL Tomcat Install!

2002-11-17 Thread Jacob Hookom
The best newbie-book i have read for starting with JSP's, Servlets, and Taglibs is: Java Developer's Guide to Servlets and JSP by Bill Brogden under Sybex publishing It's the book that everyone still borrows from me to read as a starting point. Now, I mainly use Jason Hunter's O'Reilly book

Re: SUCCESSFUL Tomcat Install!

2002-11-17 Thread Bill Barker
There are many Jakarta committers that have successfully made a go of it by having their own Server-Side consulting firms (but I'm not one of them :). As every one here should know, Tomcat is not a J2EE container. For an OS J2EE container that uses Tomcat for its Servlet/JSP, see

Re: disable directory listing in tomcat 4.1.12

2002-11-17 Thread Bill Barker
Yeah, well, there are a lot of thing that I miss from 3.3 that aren't in 4.1.x :) To answer your question, you need to edit the $CATALINA_HOME/conf/web.xml file, and change the param-namelistings/param-name param-value for the default servlet from true to false. Yandell Cacton [EMAIL PROTECTED]

spec compliants vs implementation specific parts?

2002-11-17 Thread Pierre-Laurent Ribault
Hi, (B (BI'm in the process of developping a Web application using Tomcat as the (Bdevelopment testbed. However, I'd like to be able later to deploy the (Bapplication on another servlet engine with the same specs level. (BI know that Tomcat is the reference implementation of the servlet/JSP

Re: spec compliants vs implementation specific parts?

2002-11-17 Thread Jon Eaves
Hi, (B (BWithout being too flippant, everything in web.xml (Bis "standard" and everything in server.xml is (BTomcat specific. (B (BYou can rely on most J2EE/Servlet containers to (Bbe able to provide access to connection pools, and (Bpotentially JNDI resources and things that Tomcat

Re: spec compliants vs implementation specific parts?

2002-11-17 Thread Bill Barker
Pierre-Laurent Ribault [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I'm in the process of developping a Web application using Tomcat as the development testbed. However, I'd like to be able later to deploy the application on another servlet engine with