Using PHP4 with Tomcat5.5

2008-06-15 Thread Jonathan Mast
I can't figure out how to use php4 with tomcat 5.5 on my windows system. I searched the internet and I can't find a straight forward guide to using these 2 programs. If anyone could point me to a step-by-step guide it would be great. thanks

Re: Using PHP4 with Tomcat5.5

2008-06-16 Thread Jonathan Mast
et up apache on windows? It doesn't come as a binary as i recall, and i'm loath to go about compiling C/C++ on a windoze contraption :-[ On Sun, Jun 15, 2008 at 9:37 PM, Steve Ochani <[EMAIL PROTECTED]> wrote: > Date sent: Sun, 15 Jun 2008 23:12:42 -0100 > From: Jonath

Logging contexts with multiple / in path attribute

2008-06-19 Thread Jonathan Mast
I want to capture the System.out and System.err stuff for individual web-apps (ie. Contexts). I've done this ok for some of my contexts but I have a question about how to do this for my webapps whose "path" attribute contains more than 1 slash, eg. Specifically, how do I reference this webapp i

Re: Logging contexts with multiple / in path attribute

2008-06-20 Thread Jonathan Mast
Turns out the multiple / in the context path wasn't a problem. However, its not capturing the System.out and System.err associated with the webapps. An empty file is created, but the System. stuff keeps going to Catalina.out. And i've set the swallowOutput attribute to true, so that functionality

Excess whitespace generated

2008-07-10 Thread Jonathan Mast
I'm writing a jsp to return out a simple xml document and it is being preceded by quite a few line breaks, causing my test parser to fail. The page simply calls out.println(xmlstring); Is there another way to control precisely the contents returned by a JSP? I thought there would be a "setConten

Re: Excess whitespace generated

2008-07-10 Thread Jonathan Mast
Thanks, that did the trick! On Thu, Jul 10, 2008 at 1:08 PM, Jim Cox <[EMAIL PROTECTED]> wrote: > On Thu, Jul 10, 2008 at 12:51 PM, Jonathan Mast < > [EMAIL PROTECTED]> > wrote: > > > I'm writing a jsp to return out a simple xml document and it is being >

Re: Servlet.jar

2008-07-14 Thread Jonathan Mast
Don't forget to include jsp-api.jar in your build process as well, as its contents were formerly contained by servlet.jar. On Mon, Jul 14, 2008 at 2:51 PM, Stephen Nelson-Smith <[EMAIL PROTECTED]> wrote: > > It is lib/servlet-api.jar > > Thank you - perfect. > > S. > > ---

Wholesale HTTP parameter redirection

2008-07-16 Thread Jonathan Mast
I have a page which now receives quite a few parameters, eg. page.jsp?abc=foo&xyz=bar ... This page redirects via response.sendRedirect(). I want to know how I can forward every parameter onto the redirect page, without having to extract each one individually and rebuilding them in the url I plac

Re: Wholesale HTTP parameter redirection

2008-07-16 Thread Jonathan Mast
I thought a forward would require the same type of individual parameter extraction and rebuilding. Please let me know how to do this in bulk. Thanks. On Wed, Jul 16, 2008 at 12:27 PM, Hassan Schroeder < [EMAIL PROTECTED]> wrote: > On Wed, Jul 16, 2008 at 9:13 AM, Jonathan Mast

Strange JSP compilation error

2008-07-16 Thread Jonathan Mast
I have jsp that started giving me this error when I added another mundane else if clause to a long section of such clauses: Generated servlet error: Syntax error, insert "}" to complete Block Generated servlet error: Syntax error on token "}", delete this token Generated servlet error: Syntax er

Problem with Custom Access Log Format

2008-07-29 Thread Jonathan Mast
Hi all, I'm using AccessLogValves to log access to contexts and I'm using the "combined" pattern documented here: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html#Access%20Log%20Valve However, I would like to define a custom pattern for logging this information. The problem is that I do

How to programmatically add parameters to ServletRequest objects?

2008-08-06 Thread Jonathan Mast
I can't figure out how to use the pageContext.forward() method like it's equivalent script element: How do I pass the name-value pair "foo":"bar" using pageContext.forward()? I thought there would be a method like forward(String path, Map params) but there isn't. Nor is there a setParamet

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-06 Thread Jonathan Mast
:17 PM, Christopher Schultz < [EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jonathan, > > Jonathan Mast wrote: > | I can't figure out how to use the pageContext.forward() method like it's > | equivalent script element: > > Do

apparent problem with work/ directory

2008-08-29 Thread Jonathan Mast
I refactored the POJO side of a webapp I have. I basically moved some objects referenced by the JSPs into a new package. I updated the jsps accordingly, by importing the new package with the PAGE directive at the top. I deleted the old version of the webapp, rebuilt it, and restarted tomcat. It

Re: apparent problem with work/ directory

2008-08-30 Thread Jonathan Mast
lem and I > delete its associated class file and the jsp will then compile ok. > > --HH > > >> On Aug 29, 2008, at 5:00 PM, Jonathan Mast wrote: >> >> I refactored the POJO side of a webapp I have. I basically moved some >>> objects referenced by the JSPs into a ne

Yet another context logging question

2008-09-05 Thread Jonathan Mast
Hello all, I have Context named "foo" whose path is "/foo" and whose docbase is DOCS/foo. foo has it's own AccessLogValve Foo has a subdirectory "bar" which I would now like to be it's own Context and AccessLogValue. My question is: Will defining a context "/foo/bar" at DOCS/foo/bar, with it's

specifying a custom access log pattern

2008-09-10 Thread Jonathan Mast
Hi, I was wondering what the exact syntax for specifying a custom access log pattern in the server.xml is. Here is a snippet from which contains my custom format: my question is: how should a I handle the nested double quotes in the pattern attribute? How should i escape them?

Can I get Millisecond precision in Access Logs?

2008-09-16 Thread Jonathan Mast
Is it possible to obtain timestamps with millisecond precision in access logs? I don't see anything about specifying the date-time stamps on AccessLogValve page and was wondering if there wasn't a way to get this data. Tomcat 5.5 Thanks

Re: Can I get Millisecond precision in Access Logs?

2008-09-16 Thread Jonathan Mast
t show > milliseconds. > > Tomcat 5.5.x > > Regards, > Dave > > > On Sep 16, 2008, at 11:39 AM, Jonathan Mast wrote: > > Is it possible to obtain timestamps with millisecond precision in access >> logs? I don't see anything about specifying

Re: [a little OT] Can I get Millisecond precision in Access Logs?

2008-09-17 Thread Jonathan Mast
Ok, so I see that will have to roll my own PreciseAccessLogValve. So how do I integrate with Tomcat? Do i just write my code, jar it and place in the Tomcat's common/lib, and simply reference the classname like I do the built-in accesslogvalve? On Tue, Sep 16, 2008 at 4:40 PM, Mark Thomas <[EMAIL

Cannot activate Tomcat Manager

2008-01-29 Thread Jonathan Mast
I'm having trouble enabling the Manager webapp on Tomcat I've altered the server.xml and tomcat-users.xml files appropriately but when I type in www.mysite.com/manager I get an error saying the location doesn't exist. On my local Windoze machine, I've gotten the Manager app to work, it is on the

Empty log files

2008-01-29 Thread Jonathan Mast
Tomcat is generating a lot of empty log files of at least to types: manager..log and host-manager..log I googled ["empty log files" tomcat] and did not find satisfactory answers (or any answers for that matter). thanks

Re: Cannot activate Tomcat Manager

2008-01-29 Thread Jonathan Mast
I need this url: > http://localhost:8080/manager/html > > Ken > > Pid wrote: > > Jonathan Mast wrote: > >> I'm having trouble enabling the Manager webapp on Tomcat > >> > >> I've altered the server.xml and tomcat-users.x

How many tomcat processes should there be?

2008-02-18 Thread Jonathan Mast
When I run "ps ax" on our Linux server, I'm seeing dozens of Tomcat processes running. Is this normal? Shouldn't there be just 1 Tomcat process? Occasionally, we have to restart Apache to kill all those processes, because they are slowing the machine down. thanks

Virtual-Host issues on Apache-Tomcat

2008-02-28 Thread Jonathan Mast
I'm trying to a subdomain to our site but Tomcat is not finding the index page correctly. Here are my entries into httpd.conf and server.xml: ServerName foo.site.com DocumentRoot /usr/local/apache/htdocs/foo CustomLog /usr/local/apache/logs/foo.site.com_access_log combined

Re: Virtual-Host issues on Apache-Tomcat

2008-02-28 Thread Jonathan Mast
sorry Tomcat 5.5.1 Apache 1.3.33 Java 1.4.2 On Thu, Feb 28, 2008 at 1:19 PM, Mark Thomas <[EMAIL PROTECTED]> wrote: > Jonathan Mast wrote: > > I'm trying to a subdomain to our site but Tomcat is not finding the > index > > page correctly. > > > >

Re: Virtual-Host issues on Apache-Tomcat

2008-02-29 Thread Jonathan Mast
However it is usually linked, I'm obviously not an expert on this subject. Perhaps you know a concise summary of how Tomcat and Apahce HTTPD work? thanks On Thu, Feb 28, 2008 at 1:51 PM, Mark Thomas <[EMAIL PROTECTED]> wrote: > Jonathan Mast wrote: > > sorry > > &

Re: Virtual-Host issues on Apache-Tomcat

2008-02-29 Thread Jonathan Mast
; Hash: SHA1 > > Jonathan, > > Jonathan Mast wrote: > | However it is usually linked, I'm obviously not an expert on this > subject. > | Perhaps you know a concise summary of how Tomcat and Apahce HTTPD work? > > Apache can be linked to Tomcat using either HTTP or AJP

PHP problem

2008-03-24 Thread Jonathan Mast
Can someone tell me why one project that uses PHP will work in tomcat, but another that also uses PHP won't? They have idential web.xml files, so that avenue is closed. I keep on getting the following message when I try to load one of the pages: HTTP Status 404 - Servlet php is not available

Re: PHP problem

2008-03-24 Thread Jonathan Mast
jar files in both installs. > > * The catalina.out and other log files may be giving you information > during startup which could indicate why the PHP servlet isn't starting up. > > > > > p > > > > On Mar 24, 2008, at 7:23 AM, Jonathan Mast wrote: > >&g

Re: [OT] Smalltalk (was RE: Tomcat multithread question on externalapplication)

2008-03-25 Thread Jonathan Mast
> XML is really SGML ... with a twist. > I just finished reading Jared Diamond's Guns, Germs and Steel, > tracking the historical movements of people via the similarities in > languages is very interesting. And thus the new field of Comparative Historical Programming Language Studies is born ;-)

Java 1.4.2 to 1.5 upgrade tips

2008-03-25 Thread Jonathan Mast
It looks like we might have to upgrade to Java 1.5 from 1.4.2 and I was wondering if someone could point me to a guide on the pitfalls to watch out for as per Tomcat 5.5. thanks,

Re: Java 1.4.2 to 1.5 upgrade tips

2008-03-26 Thread Jonathan Mast
quot;servlet-api.jar" which would require a lot of work. Any ideas? On Tue, Mar 25, 2008 at 12:39 PM, David kerber <[EMAIL PROTECTED]> wrote: > Jonathan Mast wrote: > > It looks like we might have to upgrade to Java 1.5 from 1.4.2 and I was > > wondering if someone coul

PHP on Tomcat 5.5 on Windows XP keeps dying

2008-04-15 Thread Jonathan Mast
Is there anyway that I can prevent Tomcat 5.5 on Windows XP from dying when I execute the following code in an PHP page: $db_link = mysql_connect($db_host, $db_user, $db_pass, $new_link) or die ("Unable to connect to database"); This version of PHP does work with other mysql stuff, although

Re: PHP on Tomcat 5.5 on Windows XP keeps dying

2008-04-15 Thread Jonathan Mast
do you have in your log files? > > > > Jonathan Mast wrote: > > > Is there anyway that I can prevent Tomcat 5.5 on Windows XP from dying > > when > > I execute the following code in an PHP page: > > > >$db_link = mysql_connect($db_host, $db_user

Is Connection Pooling still necessary?

2008-04-17 Thread Jonathan Mast
I'm developing a webapp that is going to be making frequent DB operations. I know that DB connections are expensive and that developers pool connections to prevent the overhead of frequent instantiation. Is this design pattern still necessary? I ask because I vaguely recall skimming over an artic

Re: Is Connection Pooling still necessary?

2008-04-17 Thread Jonathan Mast
7;ve never done intensive DB stuff so... Thanks On Thu, Apr 17, 2008 at 12:57 PM, David kerber <[EMAIL PROTECTED]> wrote: > Jonathan Mast wrote: > > > I'm developing a webapp that is going to be making frequent DB > > operations. > > I know that DB

how do I dynamically include files

2008-05-01 Thread Jonathan Mast
I know this not exactly a Tomcat issue, but thought someone could help. Here is what I'm trying to do: Dynamically include a file where the file name is dynamic. Neither of the following lines of code work: <%@ include file="directory/<%=fileName%>" %> The <%=fileName%> is not getting

Re: how do I dynamically include files

2008-05-01 Thread Jonathan Mast
; <% > getServletContext().getRequestDispatcher(fileName).include(req,resp); > %> > > On May 1, 2008, at 10:35 PM, Jonathan Mast wrote: > > I know this not exactly a Tomcat issue, but thought someone could help. > > Here is what I'm trying to do: > Dynamically include a fi

Re: how do I dynamically include files

2008-05-01 Thread Jonathan Mast
Will JSTL work with Tomcat 5.5? And if so is it a lot of work to set up or do I just drop a jar file in the classpath? On Thu, May 1, 2008 at 7:10 PM, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On Thu, May 1, 2008 at 12:35 PM, Jonathan Mast > <[EMAIL PROTECTED]> wrote:

Re: how do I dynamically include files

2008-05-01 Thread Jonathan Mast
Yuval was right, all I had to do was make the whole argument in a variable and it works! On Thu, May 1, 2008 at 7:25 PM, Hassan Schroeder <[EMAIL PROTECTED]> wrote: > On Thu, May 1, 2008 at 1:20 PM, Jonathan Mast > <[EMAIL PROTECTED]> wrote: > > Will JSTL work with Tomc

What is audio_jsp?

2008-05-12 Thread Jonathan Mast
Here is a top of a stack trace from catalina.out: SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.jsp.audio_jsp._jspService(audio_jsp.java:792) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at ja

versus <% include %>

2008-06-03 Thread Jonathan Mast
I'm wondering if the <%@ include file="somefile.jsp" %> method of including a file is more error prone (on Tomcat) than approach? Any ideas would helpful, especially an explanation of what is being done under the hood when these 2 mechanisms are being invoked. Tomcat 5.5 Java 1.4.2 Thanks

Re: versus <% include %>

2008-06-03 Thread Jonathan Mast
008 at 1:07 PM, Andrei Tchijov <[EMAIL PROTECTED]> wrote: > they are identical. you will want to use if you care to have > your JSP pages in form of valid XML. > > > On Jun 3, 2008, at 12:52 , Jonathan Mast wrote: > > I'm wondering if the <%@ include file="s

Context level logging

2008-06-03 Thread Jonathan Mast
OK, i have a webapp which has it's own context element. I want all the System.out and System.err stuff from this webapp to go to it's own special log file as opposed to catalina.out. My reading of the Tomcat docs (version 5.5) seems to indicate that I can do this by following these steps: 1. set

Why isn't my welcome file being read?

2008-10-22 Thread Jonathan Mast
I have an context on Tomcat that is receiving some traffic and returning 404 errors. The request is logged in Apache as "GET /foo/" with no file being specified. I've specified in the WEB-INF/web.xml file that the welcome file should be "index.jsp" yet I am still getting 404s. It should be note

Re: Why isn't my welcome file being read?

2008-10-22 Thread Jonathan Mast
e. How do tell Apache to forward all incoming requests for "/foo/" onto Tomcat, which would then know to serve /foo/index.jsp ? Thanks On Wed, Oct 22, 2008 at 10:44 AM, Caldarale, Charles R < [EMAIL PROTECTED]> wrote: > > From: Jonathan Mast [mailto:[EMAIL PROTECTED] > &

Are multiple contexts of the same code code base visible to each other?

2008-10-24 Thread Jonathan Mast
Suppose I have 1 webapp named "code-stuff" that sits in my webapps directory. Now lets say i set up 2 subdomains of my website, foo.mysite.comand bar.mysite.com and each have an context that points to code-stuff. Will code in these two contexts be visible to each other? I know Tomcat copies to i

Re: Are multiple contexts of the same code code base visible to each other?

2008-10-24 Thread Jonathan Mast
f.foo.log" ? thanks On Fri, Oct 24, 2008 at 1:17 PM, Serge Fonville <[EMAIL PROTECTED]>wrote: > Unless specifically coded to do so, no thread can talk to another by > default > since there is no way of talking to another instance with an unknown name > or > identifier

Re: Context level logging

2008-11-10 Thread Jonathan Mast
to test it out. Sorry I couldn't help ya out more. Good luck On Mon, Nov 10, 2008 at 10:30 AM, blacksheep <[EMAIL PROTECTED]> wrote: > > I wonder you came up with a solution ? > > > Jonathan Mast-2 wrote: > > > > OK, i have a webapp which has it's ow

How do i specify the filename for a binary file generated by a JSP?

2008-11-18 Thread Jonathan Mast
I am writing a report generator that has the ability to generate Excel files. The user clicks on a link (exporter.jsp), the page's content-type has been set to "application/vnd.ms-excel" which naturally prompts the user to either save to a file or open directly in Excel. It works fine, but requir

Can I specify virtual hosts in JKMounts?

2008-12-02 Thread Jonathan Mast
I'm using Apache+Tomcat (1.3.33, 5.5.17) and I have servlet named "bar", with no file extension in its name. bar is in a folder named "foo" which is reachable by 2 virtual hosts: www.mysite.com/foo/bar foo.mysite.com/bar I know to how tell apache that request for /bar on the WWW virtual host sho

Re: Can I specify virtual hosts in JKMounts?

2008-12-02 Thread Jonathan Mast
s? Thanks On Tue, Dec 2, 2008 at 11:45 AM, André Warnier <[EMAIL PROTECTED]> wrote: > Jonathan Mast wrote: > >> I'm using Apache+Tomcat (1.3.33, 5.5.17) and I have servlet named "bar", >> with no file extension in its name. >> >> bar is

replacement for useBean directive

2009-01-06 Thread Jonathan Mast
OK I know this isn't Tomcat-specific, but my post on Sun Forums didn't get much of a reply, so I thought I'd try it here. I'm in the process of translating a series of JSPs into straightout servlets and I have a question about how I should replicate the functionality of the useBean directive in m

Re: replacement for useBean directive

2009-01-06 Thread Jonathan Mast
tITEM() methods inside the beans or around the methods in BeanBag that return the bean? On Tue, Jan 6, 2009 at 11:14 AM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] > > Subject: replacement for useBean d

Can Tomcat be used to host socket servers?

2009-01-14 Thread Jonathan Mast
Is it possible to use Tomcat to host socket servers? Or is Tomcat a strictly 1 port operation? thanks

Re: Can Tomcat be used to host socket servers?

2009-01-14 Thread Jonathan Mast
Well what I want is to have a dedicated port for a socket, I just want all the application infrastructure to be handled by Tomcat rather than a writing a custom solution. Not sure if dynamically rewriting server.xml is the way to go. My guess would by a Valve/Connector type thing, but I'm just no

Re: Can Tomcat be used to host socket servers?

2009-01-14 Thread Jonathan Mast
s to automatically invoke them when they restart. Kinda tedious. Thanks again On Wed, Jan 14, 2009 at 4:35 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] > > Subject: Re: Can Tomcat be used to host

Re: PostgreSQL vs MySQL with Tomcat

2009-01-15 Thread Jonathan Mast
Our organization has products backed by both databases and we are almost entirely shielded from the database details in Tomcat. I don't really see how it should matter in terms of Tomcat (or any Web container). I'm thinking this is more a Java issue than a Tomcat issue. The main differences we'v

GenericType error?

2009-01-22 Thread Jonathan Mast
I have a webapp that is giving me this error: description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 28 in the jsp file: /blah.jsp Generated ser

Re: GenericType error?

2009-01-22 Thread Jonathan Mast
Sorry: OS: linux JVM: 1.4.2 Tomcat: 5.5.17 On Thu, Jan 22, 2009 at 4:03 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] > > Subject: GenericType error? > > > What is causing this error? > &

Re: PostgreSQL vs MySQL with Tomcat

2009-01-22 Thread Jonathan Mast
Perhaps the discussion should move back towards how Tomcat interacts with databases. This thread seems to be damning MySQL for not having super advanced features, some of which should perhaps not even be in the purview of the database layer, but more appropriately belong at the application layer (

Re: GenericType error?

2009-01-22 Thread Jonathan Mast
oblem. Another thing: 2 contexts are pointing to blah, again nothing new here. (and i'm deleting the work/ dir for both) Thanks for enduring On Thu, Jan 22, 2009 at 4:15 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Jonathan Mast [mailto:jhma

Re: GenericType error?

2009-01-23 Thread Jonathan Mast
n the file. Perhaps Tomcat could have been helpful in indicating this. Thanks On Thu, Jan 22, 2009 at 5:05 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] > > Subject: Re: GenericType error? > > >

Re: Java Crash

2009-01-23 Thread Jonathan Mast
that is almost certainly an Apple Java issue. If by charting, you mean graphics, then even more so. The Java2D api on Mac still has bugs that will crash. But you can't be certain unless you test ur webapp on a windows machine. On Fri, Jan 23, 2009 at 11:03 AM, Stephen Caine wrote: > All, > > W

Re: PostgreSQL vs MySQL with Tomcat

2009-01-23 Thread Jonathan Mast
Perhaps I should explain more about how my rewrite sans JOINs works: The reports read from a log table with this schema: PK | ref_PK1 | ref_PK2 | ref_PK3 | start_time | stop_time Where ref_PK# is the primary key of another table. These 3 other tables are very shallow (row count < 100). The log

Re: Inner class trouble in JSP

2009-01-24 Thread Jonathan Mast
I can't help with the inner class issue other than to say that perhaps you should move away from using inner classes in JSP totally. I don't understand how you are using these inner classes, could you please explain? On Sat, Jan 24, 2009 at 1:32 PM, Qiao Jin wrote: > I am using Tomcat 6.0

Why is my page repeatedly invoking itself?

2009-02-11 Thread Jonathan Mast
Here's my setup: Java 1.4.2 Tomcat 5.5.17 Windows XP I'm developing in NetBeans 6.5 (which is invoking Tomcat) The page just reads from a database and stuffs the results into a table. I noticed that the page was taking forever to load, so i placed logging statements in it, at the beginning of the

[OT] Using jsp/serlvets to track clicking

2009-03-02 Thread Jonathan Mast
[Sorry for this non-Tomcat specific question, but Sun Forums didn't help me much with this one] I would like to know how to imitate the click of link in JSP or serlvet, in order to track clicks. I have pages with links containing tel protocol URIs like this: Click here to listen! I want to repla

Re: [OT] Using jsp/serlvets to track clicking

2009-03-02 Thread Jonathan Mast
ort onclick. > > --Ken > > > On Mar 2, 2009, at 3:22 PM, Jonathan Mast wrote: > > [Sorry for this non-Tomcat specific question, but Sun Forums didn't help >> me >> much with this one] >> >> I would like to know how to imitate the click of link in

Tomcat Manager sees distribution directories as applications

2009-10-30 Thread Jonathan Mast
When I log into the Tomcat Web Application Manager, in addition to the actual webapps defined in server.xml, it also lists the /bin, /conf, /logs, /temp, /lib and /work directories of the Tomcat installation as if they are webapps. I doubt this is correct, so how do I fix it? thanks, Tomcat 6 (

Re: Tomcat Manager sees distribution directories as applications

2009-10-30 Thread Jonathan Mast
09 at 5:07 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Fri, Oct 30, 2009 at 2:03 PM, Jonathan Mast > wrote: > > When I log into the Tomcat Web Application Manager, in addition to the > > actual webapps defined in server.xml, it also lists the /bin, /conf,

Re: Tomcat Manager sees distribution directories as applications

2009-11-02 Thread Jonathan Mast
ks On Fri, Oct 30, 2009 at 7:59 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hassan, > > On 10/30/2009 5:07 PM, Hassan Schroeder wrote: > > On Fri, Oct 30, 2009 at 2:03 PM, Jonathan Mast &g

Re: Tomcat Manager sees distribution directories as applications

2009-11-02 Thread Jonathan Mast
wn Manager Context defined as opposed to having a single Manager instance that can span multiple Hosts. Is this correct? On Mon, Nov 2, 2009 at 10:05 AM, Jonathan Mast wrote: > You're right, I totally forgot to put appBase attributes in my Host > declarations. However, httpd only lets *.

Re: Tomcat Manager sees distribution directories as applications

2009-11-02 Thread Jonathan Mast
v 2, 2009 at 8:35 AM, Jonathan Mast > wrote: > > > My reading of the Tomcat config docs seemed to indicate that each Host > > should have it's own Manager Context defined as opposed to having a > single > > Manager instance that can span multiple Hosts.

Re: Tomcat Manager sees distribution directories as applications

2009-11-02 Thread Jonathan Mast
ot; (a logical or arbitrary mapping) why can't Contexts be understood as belonging to certain arbitrary Hosts, regardless of their filepath? On Mon, Nov 2, 2009 at 12:11 PM, Hassan Schroeder < hassan.schroe...@gmail.com> wrote: > On Mon, Nov 2, 2009 at 9:22 AM, Jonathan Mast > wr

Re: Tomcat Manager sees distribution directories as applications

2009-11-02 Thread Jonathan Mast
uch for my organization at this moment. On Mon, Nov 2, 2009 at 3:16 PM, André Warnier wrote: > Jonathan Mast wrote: > >> / >> --/webapps >> -/host_ >> ---/ >> >> Is it not more like > server >-- Host1 >--webapps >

Preventing httpd from accessing WEB-INF contents

2009-11-25 Thread Jonathan Mast
Can someone please provide the magical httpd config-cantation that will block httpd from accessing anything in WEB-INF directories? I need something that will be apply globally and can't be overridden by VirtualHost directives. I've dug around the httpd config documentation and I'm just not under

Re: Preventing httpd from accessing WEB-INF contents

2009-11-25 Thread Jonathan Mast
n 25/11/2009 16:13, Jonathan Mast wrote: > >> Can someone please provide the magical httpd config-cantation that will >> block httpd from accessing anything in WEB-INF directories? >> >> I need something that will be apply globally and can't be overridden by >> V

Re: Preventing httpd from accessing WEB-INF contents

2009-11-25 Thread Jonathan Mast
ing a new Location directive to httpd.conf for each context would be alot of work and something that would be easy to forget to do. On Wed, Nov 25, 2009 at 11:48 AM, Tobias Crefeld wrote: > Am Wed, 25 Nov 2009 11:13:19 -0500 > schrieb Jonathan Mast : > > > I need something that wi

Re: Preventing httpd from accessing WEB-INF contents

2009-11-25 Thread Jonathan Mast
> ... but we're really just guessing what config is already in place - maybe >> the mod_jk / mod_proxy config could be adjusted instead. >> >> Correcting a poor/broken config is a much better solution than attempting, >> blindly, to stick bandages on an unknown s

Re: Preventing httpd from accessing WEB-INF contents

2009-11-25 Thread Jonathan Mast
You're right I did misunderstand the Location directive. Its at the top of the config file now, working fine :) On Wed, Nov 25, 2009 at 1:31 PM, André Warnier wrote: > Jonathan Mast wrote: > >> My understanding of Location directives is that cannot be used with regex >>

Understanding url-patterns

2009-12-08 Thread Jonathan Mast
Are URL Patterns ending in a wild card allowed by the Servlet Spec? I have this pattern setup with the intention of binding every url that begins with "foo" to a serlvet MultiFooService /foo* But http://localhost/foo1, ...foo2, ...foo gives me a 404 Only http://localhost/foo* actually

Re: Understanding url-patterns

2009-12-08 Thread Jonathan Mast
t; >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Jonathan, >> >> On 12/8/2009 11:48 AM, Jonathan Mast wrote: >> >>> Are URL Patterns ending in a wild card allowed by the Servlet Spec? >>> >> >> You could check. Y

Re: Tomcat dies suddenly

2010-02-05 Thread Jonathan Mast
Hi Carl, I've skimmed thru all your posts, please excuse me if these questions are redundant. You've mentioned VisualJVM, JMeter, and Slackware monitoring tools, it seems to me that you are using these to occasionally to monitor you Tomcat instance, when things seem to be going badly (thats my per

Re: Tomcat dies suddenly

2010-02-06 Thread Jonathan Mast
Carl, Here's what I have on my system, you'll obviously need to adjust for your setup, especially the httpd part as I don't believe you're using it: #db-style timestamp STAMP=`date +%F' '%T`; # count the number of httpd child processes AP_COUNT=`ps auxf | grep -c "httpd"`; # count the number of

Re: using static helper classes within servlets

2009-06-15 Thread Jonathan Mast
Sid, what everyone is saying about my first reply to your post is correct, that code sample unnecessarily uses synchronization to achieve what static initialize could do less expensively. I wrote class awhile ago with paying much attention to the costs of synchronization. private static final Som

Re: Redeploy application

2009-06-17 Thread Jonathan Mast
try: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html On Wed, Jun 17, 2009 at 4:53 PM, Tokajac wrote: > > Hello, > > > Whenever i want to deploy new version of application (that's VERY often), > have to: > stop tomcat; > execute build.xml -ant script; > start tomcat; > > Is there an

Re: Redeploy application

2009-06-17 Thread Jonathan Mast
has been denied > with user: tomcat; pass: tomcat > > Can you explain step-by-step the redeployment configuration, please? > > > Regards > > > > Jonathan Mast-2 wrote: > > > > try: > > > > http://tomcat.apache.org/tomcat-6.0-doc/manager-howto

The best place for implementing context specific behavior?

2009-06-24 Thread Jonathan Mast
I have a webapp that I would like to behave in a context (actually host)-specific manner. Where is the best place to initialize the context/host specific functionality? Let me demonstrate what I'm talking about. Lets say I have a webapp Fruit located in folder webapps/fruit. I want to define: ap

Re: The best place for implementing context specific behavior?

2009-06-24 Thread Jonathan Mast
't take my word for any of what follows. > Let's say that I am just trying to apply what I think I have learned here. > And I am eager for contradiction, because it is said that this is how one > learns. > > Jonathan Mast wrote: > >> I have a webapp that I woul

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Jonathan Mast
Chris, this is indeed a case of private labeling. My company has setup a site to which a major distributor wants to send traffic. As such they are demanding custom advertising tags. The problem is that this site will also be recieving traffic from other distribution channels, hence the need for

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Jonathan Mast
You misunderstood the issue at hand. The host name I'm detecting is not the that of the viewer of my site, but my site, so there must be different host virtualhosts setup. On Thu, Jun 25, 2009 at 11:07 AM, Pid wrote: > Jonathan Mast wrote: > > Chris, this is indeed a case of pr

Re: The best place for implementing context specific behavior?

2009-06-25 Thread Jonathan Mast
Haha thanks, Andre, I'm not lost but it seems other people might be. I'm going to go ahead define separate hosts, although the option mentioned might work, I don't know if it would preserve correctly the value returned by request.getLocalName() which is what I'm using for determining the host spe

Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Jonathan Mast
A null value in bounce_url is causing the original Request url to be invoked exactly 20 times, rather than dying with NullPointerException: public static synchronized void doSomething( HttpServletRequest request, HttpServletResponse response, JspWriter out) { f

Re: Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Jonathan Mast
mporarily > Server: Apache-Coyote/1.1 > Content-Type: text/html;charset=UTF-8 > Content-Length: 0 > Date: Fri, 26 Jun 2009 16:33:15 GMT > > > With no Location header in the response - some browsers will giveup. Others > may redirect to the original URL. Others may do odder t

Re: Null value in response.sendRedirect() causes original url to be invoked 20 times

2009-06-26 Thread Jonathan Mast
> >> >> http://localhost/foo.jsp >> >> GET /foo.jsp HTTP/1.1 >> Host: localhost >> >> HTTP/1.x 302 Moved Temporarily >> Server: Apache-Coyote/1.1 >> Content-Type: text/html;charset=UTF-8 >> Content-Length: 0 >> Date: Fri, 26 Jun 200

Re: Virtual Hosts and manager application.

2009-08-24 Thread Jonathan Mast
Try placing the literal path to the manager in there instead of the ${catalina.home} variable. On Mon, Aug 24, 2009 at 11:09 AM, Wesley Acheson wrote: > Hi, > > I'm using the following configuration. > *VERSION*: Tomcat 6.0.20* > OS*: Fedora core 9 > *uname -a*: Linux attacker.myriad.local 2.6.27

Re: Virtual Hosts and manager application.

2009-08-24 Thread Jonathan Mast
figured > Aug 24, 2009 5:17:25 PM org.apache.catalina.core.StandardContext start > SEVERE: Context [/manager] startup failed due to previous errors > Aug 24, 2009 5:17:25 PM org.apache.catalina.core.StandardContext stop > INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[ >

Re: Persistent Storage for Webapps

2009-10-12 Thread Jonathan Mast
So you have multiple contexts on a host, each of which needs separate, persistent storage? If you don't want to keep track of a property files, you could write a bean with a method that takes a HttpRequest as a argument, and returns a file path based on the info in the request. You would have to

  1   2   >