RE: Tomcat Security

2006-10-26 Thread Caldarale, Charles R
> From: PraDz [mailto:[EMAIL PROTECTED] > Subject: Tomcat Security > > How do i restrict users from entering the image/text files > path directly in the browser. Instead of putting your image/text directories under your 's appBase, put them under the associated app's WEB-INF directory, where th

RE: Changing defaultHost from localhost to a FQDN

2006-10-27 Thread Caldarale, Charles R
> From: Alan Burlison [mailto:[EMAIL PROTECTED] > Subject: Re: Changing defaultHost from localhost to a FQDN > > The really annoying thing is the Tomcat documentation shows FQDN names > being used, yet it doesn't actually work unless you use 'localhost' - > if you need to make other changes when

RE: Changing defaultHost from localhost to a FQDN

2006-10-27 Thread Caldarale, Charles R
> From: Alan Burlison [mailto:[EMAIL PROTECTED] > Subject: Re: Changing defaultHost from localhost to a FQDN > > The odd thing is that it does appear to be serving *html* from under > the web application directory, just not JSPs. If I put an index.html > under webapps/ROOT I see the content. I'

RE: R: PROBLEMS CONNECTING TO TOMCAT MANAGER

2006-10-27 Thread Caldarale, Charles R
> From: Daniela Marangoni [mailto:[EMAIL PROTECTED] > Subject: R: R: PROBLEMS CONNECTING TO TOMCAT MANAGER > > Do you I need to define 8080 on file services located on the > directory: > Winnt\system32\drivers?? No. But, ping will not tell you if a specific port is block

RE: Howto continue TimerTask after Tomcat Server was restarted

2006-10-27 Thread Caldarale, Charles R
> From: Stephan Schöffel [mailto:[EMAIL PROTECTED] > Subject: Re: Howto continue TimerTask after Tomcat Server was > restarted > > maybe you could put your timertask in an servlets init() > method and the put 1 > in the web.xml of that servlet Not recommended, since there's no guarantee the i

RE: [OT] Apache with Windows 98

2006-10-27 Thread Caldarale, Charles R
> From: Peter Crowther [mailto:[EMAIL PROTECTED] > Subject: RE: Apache with Windows 98 > > A sensible Uni recognises that not all of its students wish to pay the > Microsoft Tax whenever a new OS release comes out. A frugal (but not > necessarily sensible) Uni may also wish not to pay the Micros

RE: RE: Howto continue TimerTask after Tomcat Server was restarted

2006-10-27 Thread Caldarale, Charles R
> From: Dort Wach [mailto:[EMAIL PROTECTED] > Subject: Re: RE: Howto continue TimerTask after Tomcat Server > was restarted > > I don't want to shut down TimerTask, but if someone, not me, > shut down the Tomcat server, or Tomcat server crashes, than > this someone will start it again. If the

RE: CSS not being used when a Servlet is involved

2006-10-27 Thread Caldarale, Charles R
> From: Robbert [mailto:[EMAIL PROTECTED] > Subject: Re: CSS not being used when a Servlet is involved > > I'm using a link tag. It works fine if I take out the lines > in web.xml that define the Servlet + Servlet Mapping. But if > I add them back, it doesn't work anymore. Does your mapping use

RE: CSS not being used when a Servlet is involved

2006-10-27 Thread Caldarale, Charles R
> From: Robbert [mailto:[EMAIL PROTECTED] > Subject: Re: CSS not being used when a Servlet is involved > > I'm calling the Servlet with > Shouldn't the above be: Isn't the leading slash required to make the reference relative to the context rather than the location of the JSP? - Chuck THI

RE: Tomcat 5.5 Regular Expression as servlet-mapping url-pattern

2006-10-27 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 5.5 Regular Expression as servlet-mapping > url-pattern > > So I wanted to do something like map requests that are not equal to > images, css, js etc to the DispatcherServlet. Why not explicitly map images, css, js, etc.,

RE: Tomcat 5.5 Regular Expression as servlet-mapping url-pattern

2006-10-27 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 5.5 Regular Expression as servlet-mapping > url-pattern > > Do you have an example of this? Add this to your app's web.xml: tcdefault org.apache.catalina.servlets.DefaultServlet 1

RE: CSS not being used when a Servlet is involved

2006-10-27 Thread Caldarale, Charles R
> From: Robbert [mailto:[EMAIL PROTECTED] > Subject: RE: CSS not being used when a Servlet is involved > > Combining that with what you just said, I assume that you're > basically saying that my servlet tries to handle the > tag that contains the URL to my CSS, but fails miserably in > the proce

RE: Tomcat 5.5 Regular Expression as servlet-mapping url-pattern

2006-10-27 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 5.5 Regular Expression as servlet-mapping > url-pattern > > The default servlet is defined in the conf/web.xml file. Good catch - it doesn't need to be redeclared. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AN

RE: Tomcat Security

2006-10-27 Thread Caldarale, Charles R
> From: Maurice Yarrow [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat Security > > What I currently do is serve the static content from elsewhere, > outside the tomcat/webapps tree. Let's back up here for a moment. How are you delivering these controlled images and text to the client? Are the

RE: Question with the Apache/Tomcat interface...

2006-10-27 Thread Caldarale, Charles R
> From: Kim Albee [mailto:[EMAIL PROTECTED] > Subject: Re: Question with the Apache/Tomcat interface... > > > Can you connect to the ip and port specified with p2 from your apache > > machine with telnet? > > e have telnet disabled on the server, as it is not > secure. That's not what he was a

RE: Changing defaultHost from localhost to a FQDN

2006-10-27 Thread Caldarale, Charles R
> From: Alan Burlison [mailto:[EMAIL PROTECTED] > Subject: Re: Changing defaultHost from localhost to a FQDN > > I have it working - well, kinda. If I deploy the application as ROOT, > and with ROOT as the docBase it works fine. If I move it to "meshcms" > (the WAR file name) and modify docRoot

RE: Changing defaultHost from localhost to a FQDN

2006-10-27 Thread Caldarale, Charles R
> From: Alan Burlison [mailto:[EMAIL PROTECTED] > Subject: Re: Changing defaultHost from localhost to a FQDN > > Ah, and I'm using 5.5. I've checked the 5.5 docs and I can't find > *any* of those restrictions mentioned, other than a recommendation > that elements aren't placed in server.xml, bu

RE: Problems with tomcat session timeout on linux

2006-10-27 Thread Caldarale, Charles R
> From: Oren Livne [mailto:[EMAIL PROTECTED] > Subject: Problems with tomcat session timeout on linux > > The problem: some times users log in and then close their > browser window (at least I assume so), but tomcat never > destroys their session. The session-timeout parameter is > set to 30 in

RE: Changing the webapps directory

2006-10-28 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Changing the webapps directory > > I'd like to change my webapps directory to be in my home directory. > I've look around and can't find how to do this on Tomcat 5.x. Look at the doc for the element, in particular the appBase attribu

RE: Apache Tomcat/5.5.12

2006-10-28 Thread Caldarale, Charles R
> From: asd [mailto:[EMAIL PROTECTED] > Subject: Apache Tomcat/5.5.12 > > This is blocking a very important page. I must view it. This appears to be an application problem, not Tomcat. > root cause > java.lang.NullPointerException > > org.apache.jsp.trans_005fhistory_htm:429 Where does the a

RE: CSS not being used when a Servlet is involved

2006-10-28 Thread Caldarale, Charles R
> From: Robbert [mailto:[EMAIL PROTECTED] > Subject: RE: CSS not being used when a Servlet is involved > > Hm, alright. Should all else fail, is it possible to let a > Servlet handle the CSS? Some servlet must handle everything; static content (including .css files) is normally handled by Tomca

RE: Performance throttling

2006-10-28 Thread Caldarale, Charles R
> From: Dima Retov [mailto:[EMAIL PROTECTED] > Subject: Performance throttling > > Is that possible to do performance throttling (or shaping) in tomcat > on per context base? No direct mechanism that I'm aware of (although others might). I suppose you could segregate apps under different s, and

RE: Changing the webapps directory

2006-10-28 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Changing the webapps directory > > First, eventhough autodeploy is set to true, it's not > deploying wars I put into this directory. What's the file structure inside the .war? There should be a WEB-INF directory with a web.xml in

RE: Tomcat Security

2006-10-28 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat Security > > Since each image could have different authorization settings, > you can't just use the servlet container's built-in authorization > (set up in web.xml). You will have to enforce this yourself. Not sure that

RE: Tomcat Security

2006-10-28 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat Security > > Well, he did say that the user can choose arbitrarily what the > authorization rules were. I would imagine that includes changing > it on the fly. Changing the URL on the fly based upon the > authorization r

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
> From: BRUN Sébastien [mailto:[EMAIL PROTECTED] > Subject: Fw: problem with getcontext and context.xml > > i would like to setup a virtual host on tomcat If you only have one host to worry about, you don't need to use virtual hosts. You can also use the alias attribute if you have multiple do

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: problem with getcontext and context.xml > > Yes but i have multiple vhost for different webapps. > how can the server know that vhost1.mydomain.com is for > /usr/local/tomcat/webapps/myaccount for exemple > and vhost2.mydomain.com to myaccoun

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: problem with getcontext and context.xml > > appBase="/usr/local/tomcat/webapps/myaccount1" > unpackWARs="true" autoDeploy="true"> > > > appBase="/usr/local/tomcat/webapps/myaccount2" > unpackWARs="true" autoDeploy="true"> > > But si

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: problem with getcontext and context.xml > > Hmm i think i understand a little so each context need to > have it's own ROOT directory No; perhaps you don't understand that context is synonomous with webapp, not host. Each should have its ow

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: problem with getcontext and context.xml > > Well each one of my host have their own appBase and ROOT context > in each host i haveappBase="/usr/local/tomcat/webapps1" and > appBase="/usr/local/tomcat/webapps2" That's good. > and i have

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: problem with getcontext and context.xml > > when i say myfile i mean file like index.jsp it their i > should put them no ? Yes, that's where the public .jsp files should go. > but that don t work What do you mean by "don't work"? What hap

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: problem with getcontext and context.xml > > redirectPort="8443" protocol="AJP/1.3" /> This would indicate you're front-ending Tomcat with something else, such as httpd. Add a for a different port and protocol="HTTP/1.1", then se

RE: permission on server.xml

2006-10-29 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: permission on server.xml > > Hi, one question i think > exemple we run java with user and group www > server.xml need to be readable for tomcat to work, but each > user that have access to a tomcat account can also read it > with a simple jsp co

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: problem with getcontext and context.xml > > i have try with http/1.1 and another port but i get > exactly the same problem for the two hosts Do you have DNS entries for both host names? What IP address does each evaluate to? (Hint: they mu

RE: permission on server.xml

2006-10-29 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: permission on server.xml > > I mean with a jsp code you can see/write file can a user > write outside the webapps defined in the server.xml? Certainly code in a .jsp or servlet can read or write anywhere that Tomcat's userid is allowed to (s

RE: problem with getcontext and context.xml

2006-10-29 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: problem with getcontext and context.xml > > Well i have DNS entrie for both but i have only 1 IP so it s the same > entries , both vhost have the same IP (that s why their are vhost :) ) Yes, that should work - I've just verified it with my

RE: permission on server.xml

2006-10-29 Thread Caldarale, Charles R
> From: Eric Haszlakiewicz [mailto:[EMAIL PROTECTED] > Subject: Re: permission on server.xml > > Charles, you're missing his point. Wouldn't be the first time. > His "user" is not a website user, it's a _tomcat_ user. > I.e. someone that is allowed to deploy an application on > the app server.

RE: Tomcat Security

2006-10-29 Thread Caldarale, Charles R
> From: Maurice Yarrow [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat Security > > BUT: the finest granularity for what can be accessed in this > mechanism is by servlet, not by the path info (getPathInfo()) > of the URI. Not true - security constraints apply to paths, not servlets. If you wa

RE: JDK

2006-10-29 Thread Caldarale, Charles R
> From: Jim Weir [mailto:[EMAIL PROTECTED] > Subject: JDK > > I recently upgraded to jdk1.5.0_09, now when I start tomcat I > get this in the error log and can't run my webapps, You don't say what version of Tomcat you're using, but if it's 5.5.x, you must remove the 1.4 Compatibility Package w

RE: Servlet Mappings

2006-10-30 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Servlet Mappings > > > testerror > /error/* > The above is correct; note the trailing "/*". > > test > / > This one says to send everything that doesn't match something else to th

RE: Servlet Mappings

2006-10-30 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Servlet Mappings > > I changed the mapping to as follows but no joy. Although the problem > seems to of changed slightly. When I try to request an images > http://myhost/images/error/logo.gif i get a 404. I have double checked > an

RE: Servlet Mappings

2006-10-30 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Servlet Mappings > > My webapp is deployed as ROOT. What's the directory structure under ROOT? Is ROOT under your 's appBase? For that matter, what's the directory structure under appBase? > If I chop all of the mappings out of

RE: Servlet Mappings

2006-10-30 Thread Caldarale, Charles R
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] > Subject: RE: Servlet Mappings > > What's the directory structure under ROOT? Is ROOT under > your 's appBase? For that matter, what's the > directory structure under appBase? Should have mentioned tha

RE: JDK

2006-10-30 Thread Caldarale, Charles R
> From: Jim Weir [mailto:[EMAIL PROTECTED] > Subject: RE: JDK > > It's 5.5.4.. That's pretty old, and a lot of fixes have gone in since then. I'd suggest moving up. > How do I remove the 1.4 Compatibility Package? In 5.5.20, the Compatibility Package adds three jars: bin/jmx.jar commo

RE: Servlet Mappings

2006-10-30 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Servlet Mappings > > Im deploying a war file. Im also using spring. I havent touched the > web.xml. I have litrally downloaded and un tared the file from the > apache tomcat website. I'm not familiar with configuring spring, so so

RE: installing the admin on 5.5

2006-10-30 Thread Caldarale, Charles R
> From: Michael Hencin [mailto:[EMAIL PROTECTED] > Subject: installing the admin on 5.5 > > I am having a bear of a time installing the admin application > for 5.5. I downloaded and unzipped the apache-tomcat-5.5.20-admin.zip, > expanded the contents. That's all you need to do - if you expand

RE: installing the admin on 5.5

2006-10-30 Thread Caldarale, Charles R
> From: Michael Hencin [mailto:[EMAIL PROTECTED] > Subject: RE: installing the admin on 5.5 > > I did use all the apache org tomcat distributions. Nothing > third part. Good. > I never did edit the tomcat-users.xml. During the 5.5 install > I did create an "admin" users and password. I can use

RE: installing the admin on 5.5

2006-10-30 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: installing the admin on 5.5 > > download admin.zip from here > http://tomcat.apache.org/download-55.cgi Martin, please pay attention to the threads. He already did that, and it's successfully installed. > be sure to put commons-mod

RE: Servlet Mappings

2006-10-30 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: Servlet Mappings > > >default >/images/* > Thanks for the example. With that, turning on debugging, and looking at the code in DefaultServlet.java, I finally figured out what's going on. Turns out the stan

RE: JDK

2006-10-30 Thread Caldarale, Charles R
> From: Jim Weir [mailto:[EMAIL PROTECTED] > Subject: RE: JDK > > Tthe jk connector has changed and it would create a lot of > work for me to modify each webapp. I'm confused; although I don't use the AJP connector, I wasn't aware of any incompatible changes in it between 5.5.4 and 5.5.20, espe

RE: (FIXED) RE: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread Caldarale, Charles R
> From: Alistair McDonald [mailto:[EMAIL PROTECTED] > Subject: (FIXED) RE: tomcat can't serve HTML pages more than > 48K in size > > Thanks for that. Solved the problem nicely. By the way, I just tested with a 78k static HTML page on a near stock 5.5.20, and did not experience any problems in

RE: Tomcat 6 and shared/lib, common/ and conf/catalina/localhost?

2006-10-31 Thread Caldarale, Charles R
> From: Per Johnsson [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat 6 and shared/lib, common/ and > conf/catalina/localhost? > > There was no mention in the doc about the removed libs.. The diagram in the doc clearly shows the revised default class loader hierarchy: Bootstrap

RE: Can't login as manager

2006-10-31 Thread Caldarale, Charles R
> From: Mário Gamito [mailto:[EMAIL PROTECTED] > Subject: Can't login as manager > > I can't login in the above URL with the credentials "gamito/abc123" > I've alrady restarted the server. Verify that your changes persisted after the Tomcat restart. Tomcat rewrites conf/tomcat-users.xml, and y

RE: Tomcat 6 and shared/lib, common/ and conf/catalina/localhost?

2006-10-31 Thread Caldarale, Charles R
I Googled and read the doc and got no clue if there is > some changes in the lib structure which you should be aware of. Read the doc again: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html and this thread: http://marc.theaimsgroup.com/?t=11618463222&r=1&w=2 Modif

RE: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread Caldarale, Charles R
> From: Alistair McDonald [mailto:[EMAIL PROTECTED] > Subject: tomcat can't serve HTML pages more than 48K in size > > Tomcat happily serves up pages up to 48K in size, but above > that size it returns an error to the browser: There's an interesting 48k setting in conf/web.xml for the DefaultSe

RE: war file

2006-10-31 Thread Caldarale, Charles R
> From: Mário Gamito [mailto:[EMAIL PROTECTED] > Subject: Re: war file > > The one thing i've done was placing the .war file in the > webapps directory, then restart the server. That should be sufficient, if autoDeploy is enabled (it is by default). > This way, it created a new directory with

RE: getContextPath

2006-10-31 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: getContextPath > > with a 5.5.9 server > ContextPath: /test > ServletPath: /test.jsp > > with a 5.517 server > ContextPath: > ServletPath: /test/test.jsp What APIs are you using to determine ContextPath and ServletPath? - Chuck THIS COMM

RE: tomcat ssl not work

2006-10-31 Thread Caldarale, Charles R
> From: Eric Yin [mailto:[EMAIL PROTECTED] > Subject: tomcat ssl not work > > Since I can not find keytool from Fedora 5 jdk1.4.2 and I download > J2SE(TM) Development Kit 5.0 Update 9: jdk-1_5_0_09-linux-i586.bin > and install it and use the keytool from this kit. It's risky to use a JDK tool

RE: (FIXED) RE: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: (FIXED) RE: tomcat can't serve HTML pages more > than 48K in size > > I have exactly the same problem with a 5.5.17 server and > changing the sendfileSize doesn t seem to fix anything What happens if you set it to -1? > it return this er

RE: OutOfMemory Exceptions and HTTP Processor Threads

2006-10-31 Thread Caldarale, Charles R
> From: Ryan Gies [mailto:[EMAIL PROTECTED] > Subject: OutOfMemory Exceptions and HTTP Processor Threads > > I will get OutOfMemory Exceptions because there is no free > memory to instantiate the 3rd webapp, as the idle HTTP > Connectors have consumed all available memory. May or may not have a

RE: (FIXED) RE: tomcat can't serve HTML pages more than 48K in size

2006-10-31 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: (FIXED) RE: tomcat can't serve HTML pages more > than 48K in size > > i have put this in the web.xml of the server > > sendfileSize > -1 > Where exactly did you put the above? It should go in the section

RE: getContextPath

2006-10-31 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: getContextPath > > i use a simple jsp file with : > ContextPath: <%= request.getContextPath() %> > ServletPath: <%= request.getServletPath() %> > > with a 5.5.9 server > ContextPath: /test > ServletPath: /test.jsp > > with a 5.517 server >

RE: getSystemResource not working in servlet

2006-10-31 Thread Caldarale, Charles R
> From: Allen,Eva [mailto:[EMAIL PROTECTED] > Subject: getSystemResource not working in servlet > > URL rulesURL = ClassLoader.getSystemResource("x.xml"); This only retrieves resources accessible to the System class loader, which typically only looks at the $TOMCAT_HOME/bin directory. > but I'd

RE: getContextPath

2006-10-31 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: getContextPath > > in the 5.5.17 version my app is under the ROOT directory yes > (that s the correct way like we told before no ?) Depends on what you mean by "under". If your app IS the ROOT directory, then getContextPath() should return

RE: getContextPath

2006-10-31 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: getContextPath > > but i had a WEB-INF and META-INF in the same directory as the > ROOT too and they seem to have been taken instead of the one > in the ROOT one (is it normal?) Not sure what you mean by "normal", but since the setup was in

RE: getContextPath

2006-10-31 Thread Caldarale, Charles R
> From: mast [mailto:[EMAIL PROTECTED] > Subject: Re: getContextPath > > /usr/local/tomcat5/webapps/users1/ROOT/test/test.jsp > /usr/local/tomcat5/webapps/users1/test/test.jsp > > tomcat use the second one (and their appear the ContextPath: /test ) > is this the normal way of tomcat working? i

RE: log file servlet

2006-10-31 Thread Caldarale, Charles R
> From: Tony Smith [mailto:[EMAIL PROTECTED] > Subject: log file servlet > > Is there already something to do this and I am just > reinvent the wheel or this is totally a bad idea? Try Lambda Probe (www.lambdaprobe.org). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PR

RE: Datasource following appBase changes

2006-10-31 Thread Caldarale, Charles R
> From: Scott Cowley [mailto:[EMAIL PROTECTED] > Subject: RE: Datasource following appBase changes > > Quick correction on that previous post: > e.g. "webapps/Production/tests.test.jsp". > > -Original Message- > From: Scott Cowley [mailto:[EMAIL PROTECTED] > Subject: Datasource followi

RE: Datasource following appBase changes

2006-10-31 Thread Caldarale, Charles R
> From: Scott Cowley [mailto:[EMAIL PROTECTED] > Subject: RE: Datasource following appBase changes > > I was hoping I could put two subdirectories, "Development" > and "Production", below the appBase and have Tomcat serve > out of them. Most people run separate instances of Tomcat for this purp

RE: Problem redirecting appbase on a network drive

2006-10-31 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: Problem redirecting appbase on a network drive > > each machine needs to install its own copy of tomcat and have > its own copy of server.xml configured for that machine and > not to other tomcat machines What the hell are you talk

RE: Problem redirecting appbase on a network drive

2006-10-31 Thread Caldarale, Charles R
> From: Didier CROUTZ [mailto:[EMAIL PROTECTED] > Subject: Problem redirecting appbase on a network drive > > I'm using an Apache Tomcat version 5.5.2 on a Windows XP Pro SP2. If it's really 5.5.2 and not 5.5.20, you should move up; lots of bug fixes since then. > That doesn't work, "http:\\12

RE: stdout trace from eclipse

2006-10-31 Thread Caldarale, Charles R
> From: Dave Kennedy [mailto:[EMAIL PROTECTED] > Subject: stdout trace from eclipse > > Any help in identifying the difference between Tomcat/Eclipse and > "Standalone" would be appreciated Have to tell you up front that I don't use Eclipse, am not fluent in JNDI, and don't know Hibernate - so

RE: stdout trace from eclipse

2006-10-31 Thread Caldarale, Charles R
> From: Dave Kennedy [mailto:[EMAIL PROTECTED] > Subject: RE: stdout trace from eclipse > > In Tomcat 5.5, you no longer use this server-wide file to > configure JNDI. I believe you can, in the situation where you want the data source to be visible to multiple webapps. Take a look at this: ht

RE: Please Help!Tomcat Not Running on Linux Fedora

2006-11-01 Thread Caldarale, Charles R
> From: Teh Noranis Mohd Aris [mailto:[EMAIL PROTECTED] > Subject: Please Help!Tomcat Not Running on Linux Fedora > > Unfortunately, when I tried to execute Tomcat in the > bin directory by typing ./startup.sh the following > message appeared: > > The JAVA_HOME environment variable is

RE: Change Display Icon

2006-11-01 Thread Caldarale, Charles R
> From: Madhuraka Godahewa [mailto:[EMAIL PROTECTED] > Subject: Change Display Icon > > But, still I have not been able to change the icon, > which displayed on the browser (Firefox) when my site > is loaded. The tomcat icon is shown. Firefox likes to hang onto the favicon, regardless of whethe

RE: FAIL - Application at context path /jetspeed could not be started

2006-11-01 Thread Caldarale, Charles R
> From: evimail [mailto:[EMAIL PROTECTED] > Subject: FAIL - Application at context path /jetspeed could > not be started > > While trying to start jetspeed I get an error message: FAIL > - Application at context path /jetspeed could not be started > > Nov 1, 2006 3:58:15 PM org.apache.catali

RE: Webapps that run on 5.0.28 but not 5.5.x?

2006-11-01 Thread Caldarale, Charles R
> From: Glen Mazza [mailto:[EMAIL PROTECTED] > Subject: Webapps that run on 5.0.28 but not 5.5.x? > > Question: How common is it for a webapp to be able to run on Tomcat > 5.0.28 but *not* 5.5.20? The probability of it not running is near zero, with two caveats: 1) If the webapp utilizes inte

RE: Webapps that run on 5.0.28 but not 5.5.x?

2006-11-01 Thread Caldarale, Charles R
> From: Michael Hencin [mailto:[EMAIL PROTECTED] > Subject: RE: Webapps that run on 5.0.28 but not 5.5.x? > > This setup is just as we do with 5.0, but when I access our > app, I get this error. > > org.apache.jasper.JasperException: setAttribute: > Non-serializable attribute One of the thing

RE: Cannot shutdown tomcat-5.5.4

2006-11-01 Thread Caldarale, Charles R
> From: Rizalino [mailto:[EMAIL PROTECTED] > Subject: Cannot shutdown tomcat-5.5.4 > > Would you guys be able to give me pointers what needs to be > checked if the shutdown.sh scripts for tomcat 5 doesnt work? First: I'd suggest moving up to a newer level - lots of things have been fixed since

RE: Webapps that run on 5.0.28 but not 5.5.x?

2006-11-01 Thread Caldarale, Charles R
> From: Michael Hencin [mailto:[EMAIL PROTECTED] > Subject: RE: Webapps that run on 5.0.28 but not 5.5.x? > > When I tested TC 5.5, I also used the recommended 1.4 JRE. I presume you meant the 1.5 JRE in the above statement. > I will proceed with just an TC 5.5 upgrade using the previous > JA

RE: accessing settings in server.xml from the servlet

2006-11-01 Thread Caldarale, Charles R
> From: Alec Swan [mailto:[EMAIL PROTECTED] > Subject: accessing settings in server.xml from the servlet > > how can a servlet access maxThreads settings defined in server.xml? Usually via JMX. This is your rather terse starting point: http://tomcat.apache.org/tomcat-5.5-doc/mbeans-descriptor-h

RE: accessing settings in server.xml from the servlet

2006-11-01 Thread Caldarale, Charles R
> From: Alec Swan [mailto:[EMAIL PROTECTED] > Subject: Re: accessing settings in server.xml from the servlet > > Is there a way to access settings in server.xml without > MBeans? Other than rolling your own infrastructure, probably not, at least not easily. That's what MBeans are for and why T

RE: Modifying the response

2006-11-02 Thread Caldarale, Charles R
read may be related: http://marc.theaimsgroup.com/?t=11613669471&r=1&w=2 Or it might not be. You could try IE7 to see if that cures it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If y

RE: Multiple paths to one application

2006-11-02 Thread Caldarale, Charles R
> From: Andrew Miehs [mailto:[EMAIL PROTECTED] > Subject: Re: Multiple paths to one application > > Doesn't this only work if your application replaces the 'ROOT' > application? Correct. If you want two names for the same app, you could place an additional element in conf/[engine]/[host]/[ap

RE: How to get fields list in order

2006-11-02 Thread Caldarale, Charles R
> From: David Kerber [mailto:[EMAIL PROTECTED] > Subject: Re: How to get fields list in order > > To modify return parameters, I need the byte offsets of > the various pieces of the structure, which I'm mirroring > in my java classes. That's a very scary way to do it. Using order to determine

RE: How to get fields list in order

2006-11-02 Thread Caldarale, Charles R
> From: David Kerber [mailto:[EMAIL PROTECTED] > Subject: Re: How to get fields list in order > > Then I could just check the field type, and increment the > byte counter by the appropriate amount (i.e. if the java > field type is int, then I know the width in the passed > structure is 4 bytes,

RE: Problem using Flush method from PrintWriter class on tomcat5.0.30

2006-11-02 Thread Caldarale, Charles R
> From: Debianito [mailto:[EMAIL PROTECTED] > Subject: Problem using Flush method from PrintWriter class on > tomcat5.0.30 > > Everything worked perfect till I move it to the actual version of > tomcat5 on Debian Testing system, which is 5.0.30-12, on tomcat > 5.0.30-10 it stills working. A ste

RE: Multiple paths to one application

2006-11-02 Thread Caldarale, Charles R
> From: Peter Neu [mailto:[EMAIL PROTECTED] > Subject: AW: Multiple paths to one application > > My problem is that I have parts of my application which are > restricted and I just want to filter the path requests with > the httpd server which sits in front of tomcat so that I > don't to configu

RE: Modifying the response

2006-11-02 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: Modifying the response > > can you be more specific on this bug? I gave a link to the thread that discussed the issue - which you apparently ignored. Here it is again: http://marc.theaimsgroup.com/?t=11613669470

RE: forced to constantly restart Tomcat

2006-11-02 Thread Caldarale, Charles R
> From: Tuomas [mailto:[EMAIL PROTECTED] > Subject: forced to constantly restart Tomcat Didn't realize Tomcat was being used in Middle Earth... > "Test 1: A Servlet That Does Not Use Packages" Probably not a good test, since packages are required for almost everything these days - but it's not

RE: forced to constantly restart Tomcat

2006-11-02 Thread Caldarale, Charles R
> From: Tuomas [mailto:[EMAIL PROTECTED] > Subject: RE: forced to constantly restart Tomcat > > I didn't find anything "special" in the localhost file. The catalina files are more likely to have something of interest. In particular, look during the time period right after you make the browser r

RE: FORM based authentication LOGOUT

2006-11-02 Thread Caldarale, Charles R
> From: John McPeek [mailto:[EMAIL PROTECTED] > Subject: FORM based authentication LOGOUT > > I have tried to invalidate the session and get a new one. > No Dice. When you say "No Dice", what actually happens? All the admin app for Tomcat does is the following, which seems to work: Htt

RE: problems with unpacking ROOT.war

2006-11-03 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: problems with unpacking ROOT.war > > since the manager app is used to implement the decompression > of the war I would set privilieged = "true" Again, bad information from Martin. The privileged setting allows an app to reference c

RE: Suddenly server only throws ClientAbortException :-/

2006-11-03 Thread Caldarale, Charles R
> From: Clemens Eisserer [mailto:[EMAIL PROTECTED] > Subject: Suddenly server only throws ClientAbortException :-/ > > Tomcat suddenly throws at every request a ClientAbortException, like > the following: > > ERROR 2006-10-30 07:21:17,736 - ClientAbortException: > java.net.SocketException: Conne

RE: problem all virtual host of a domain to a single context

2006-11-03 Thread Caldarale, Charles R
x27;t work, is there a way to do this on tomcat ? A quick search of the mail archives found this: http://marc.theaimsgroup.com/?t=11613743464&r=1&w=2 Many other hits for the combination of "host" and "wildcard". - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENT

RE: Error Messages?

2006-11-03 Thread Caldarale, Charles R
> From: Kevin Mullin [mailto:[EMAIL PROTECTED] > Subject: Error Messages? > > I say that these LOOK like errors, but the server does come > up and nothing seems amiss. They are errors. At least one of your webapps is not running properly. Individual webapp failures do not normally affect the c

RE: Trouble changing Tomcat webapps directory

2006-11-03 Thread Caldarale, Charles R
> From: D. Alvarado [mailto:[EMAIL PROTECTED] > Subject: Trouble changing Tomcat webapps directory > > 08:29:46 ERROR 400: No Host matches server name localhost. This would indicate a mismatch between the defaultHost attribute in your and the name attribute on your . I wonder if you have some

RE: Re[2]: Communication with a standalone java program from servlets (embedded tomcat). RMI?

2006-11-03 Thread Caldarale, Charles R
> From: Igor Borovkov [mailto:[EMAIL PROTECTED] > Subject: Re[2]: Communication with a standalone java program > from servlets (embedded tomcat). RMI? > > Sorry. I am not perfectly familiar with embedding tomcat > server at present time You have it right; Martin's question doesn't make any sen

RE: Thread pool per webapp?

2006-11-03 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Thread pool per webapp? > > Does anyone else suspect that Martin is actually an expert system > designed to read and respond to mailing list posts, but is totally > failing the Turing test? Wow. That would explain a lot. I mi

RE: Thread pool per webapp?

2006-11-03 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:[EMAIL PROTECTED] > Subject: Re: Thread pool per webapp? > > > What was Eliza's last name? Could Martin be a relative? > > I'd love to say otherwise, but Wikipedia says "Doolittle". Still apt? > Perhaps. Not sure - I understand Cockney (used to live near Lon

<    4   5   6   7   8   9   10   11   12   13   >