Does Tomcat have something similar to JRun's virtual-mapping?

2010-07-29 Thread Bob Carpenter
I have inherited a ColdFusion app that runs under JRun and uses several virtual-mappings for content in OS folders. The mappings look like this (there are 10 mappings): /thecontent c:\some\os\file\path I'd like to convert the app from JRun to Tomcat. I have the cfusion app running under T

help with exception: "IOException while saving persisted sessions: java.io.FileNotFoundException: C:\Documents and Settings\...\SESSIONS.ser (The system cannot find the path specified)"

2010-07-29 Thread Chris Markle
Running Tomcat 7.0.0 under Eclipse on Windows XP SP3. When I save a change to my app and Tomcat reloads whatever it reloads, I get the following exception. I did some web searching but to no avail. The directory C:\Documents and Settings\Dad\Desktop\dev\.metadata\.plugins\org.eclipse.wst.server.co

RE: JNDI not available from ServletContextListener

2010-07-29 Thread Steve Mitchell
I guess the maintainers know what they're doing, because my original DataSource problem turns out to be a configuration problem. I still don't know why the Eclipse project fails for me, but I'm assuming it's some kind of deployment problem. Thanks, case closed, --Steve From: Steve Mitchell

JNDI not available from ServletContextListener

2010-07-29 Thread Steve Mitchell
Can anybody reproduce the bug I'm getting in Tomcat 6.0.29, or is it just me? I'm trying to access a DataSource via JNDI from a ServletContextListener. I find that my InitialContext has no bindings at all in the ServletContextListener.contextInitialized() method. It makes no difference whethe

RE: Tomcat stops loading page half way through on runtime exception

2010-07-29 Thread Caldarale, Charles R
> From: David Parks [mailto:davidpark...@yahoo.com] > Subject: Tomcat stops loading page half way through on runtime > exception > > But I notice that Tomcat only loads half the page and > stops roughly around the exception point Tomcat doesn't load pages, it sends them; the browser loads pages.

Tomcat stops loading page half way through on runtime exception

2010-07-29 Thread David Parks
I'm getting a runtime NullPointerException (just code in dev I'm working on). But I notice that Tomcat only loads half the page and stops roughly around the exception point (+/- some buffer amount it looks like). I'd much prefer a more consistent response (at this time, just the standard exceptio

Re: Fire off asynch task in Tomcat.

2010-07-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 7/23/2010 2:22 PM, André Warnier wrote: > You can of course imagine which language I was thinking of. #!/usr/bin/perl use Perl::MailSendFromDbQueue; go("mydb", "user", "pass"); #end -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (M

Instance management

2010-07-29 Thread Alex Carvalho da Silva
Hi, I have apache-tomcat-6.0.20 and jdk1.6.0_18 installed in one centos 5.5 with three instances running using the CATALINA_BASE variable resource. The developments can shutdown and run own applications with a PROBE application. I would like to management(shutdown e run) all the instances with an

Re: FileDirContext returns the path directly without checking whether the target file really exists

2010-07-29 Thread Ivan
The below description from the spec says that resources inside the META-INF/resources directory of JAR files might be consider only if the container has unpacked them. Since the getRealPath is used to return a virtual path, when will the unpackaged location of resources directory be considered ? On

Re: FileDirContext returns the path directly without checking whether the target file really exists

2010-07-29 Thread Mark Thomas
On 29/07/2010 09:08, Ivan wrote: > Thanks, Mark. > So in other words, those descriptions in the spec for META-INF/resources > make no sense. right ? Not sure what you mean. I don't see any issues with the spec. I do think the implementation does something that is guaranteed to never succeed. The r

Re: FileDirContext returns the path directly without checking whether the target file really exists

2010-07-29 Thread Ivan
Thanks, Mark. So in other words, those descriptions in the spec for META-INF/resources make no sense. right ? 2010/7/29 Mark Thomas > On 29/07/2010 01:45, Ivan wrote: > > Thanks, Mark, if you mean the method getRealPath in BaseDirContext, I > have > > checked it. > > > > ---> > > public String g

Re: A typo error in WebRuleSet

2010-07-29 Thread Mark Thomas
On 29/07/2010 08:10, Ivan wrote: > Hi, > It seems that there is one typo error on the line 523 of WebRuleSet > file, it should be > configureInjectionRules(digester, "web-app/ejb-local-ref/"); ---> > configureInjectionRules(digester, "web-app/resource-env-ref/"); Fixed: http://svn.apache.o

Re: FileDirContext returns the path directly without checking whether the target file really exists

2010-07-29 Thread Mark Thomas
On 29/07/2010 01:45, Ivan wrote: > Thanks, Mark, if you mean the method getRealPath in BaseDirContext, I have > checked it. > > ---> > public String getRealPath(String name) { > if (!aliases.isEmpty()) { > AliasResult result = findAlias(name); > if (result.dirContex

A typo error in WebRuleSet

2010-07-29 Thread Ivan
Hi, It seems that there is one typo error on the line 523 of WebRuleSet file, it should be configureInjectionRules(digester, "web-app/ejb-local-ref/"); ---> configureInjectionRules(digester, "web-app/resource-env-ref/"); -- Ivan