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: 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

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 servlet-mapping servlet-nameMultiFooService/servlet-name url-pattern/foo*/url-pattern /servlet-mapping But

Re: Understanding url-patterns

2009-12-08 Thread Jonathan Mast
: -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. You've been on this list long enough to know that the spec itself is available +1 and quite readable

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

Re: Preventing httpd from accessing WEB-INF contents

2009-11-25 Thread Jonathan Mast
/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 VirtualHost directives. I've dug around the httpd config

Re: Preventing httpd from accessing WEB-INF contents

2009-11-25 Thread Jonathan Mast
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 t...@cataneo.eu wrote: Am Wed, 25 Nov 2009 11:13:19 -0500 schrieb Jonathan Mast jhmast.develo...@gmail.com: I need

Re: Preventing httpd from accessing WEB-INF contents

2009-11-25 Thread Jonathan Mast
instead. Correcting a poor/broken config is a much better solution than attempting, blindly, to stick bandages on an unknown setup. p -Original Message- From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] Sent: Wednesday, November 25, 2009 6:40 PM To: Tomcat Users List; p

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 a...@ice-sa.com wrote: Jonathan Mast wrote: My understanding of Location directives is that cannot be used with regex

Re: Tomcat Manager sees distribution directories as applications

2009-11-02 Thread Jonathan Mast
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 jhmast.develo...@gmail.com wrote: When I log into the Tomcat

Re: Tomcat Manager sees distribution directories as applications

2009-11-02 Thread Jonathan Mast
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 jhmast.develo...@gmail.comwrote: 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
AM, Jonathan Mast jhmast.develo...@gmail.com 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. Is this correct? Yes, and its own appBase

Re: Tomcat Manager sees distribution directories as applications

2009-11-02 Thread Jonathan Mast
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 jhmast.develo...@gmail.com wrote: So you

Re: Tomcat Manager sees distribution directories as applications

2009-11-02 Thread Jonathan Mast
organization at this moment. On Mon, Nov 2, 2009 at 3:16 PM, André Warnier a...@ice-sa.com wrote: Jonathan Mast wrote: / --/webapps -/host_MY_HOST ---/MY_CONTEXT Is it not more like server -- Host1 --webapps -- manager -- your app 1 -- your

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
PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Fri, Oct 30, 2009 at 2:03 PM, Jonathan Mast jhmast.develo...@gmail.com 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, /logs, /temp

Re: Best Tomcat O.S. and Server Configuration

2009-10-20 Thread Jonathan Mast
so which linux distro should you use? that question has no right or wrong answer ;) i don't know much about virtualization, but if I had 4 (or 5) servers to do those things, here's what i would use: 1) CENTOS: SVN MySQL 2) Slackware: Tomcat Trac (if if runs inside of Tomcat) 3) Slackware:

Re: Does Tomcat http support subdomains?

2009-10-20 Thread Jonathan Mast
If you by subdomains you mean foo.yoursite.com, bar.yoursite.com and so on, then of course Tomcat supports that. In the server.xml file, add: Host name=foo.yoursite.com Context path= docBase=/your/path/here/foo_site / /Host On Tue, Oct 20, 2009 at 4:03 PM, Tony Anecito

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

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 wesley.ache...@gmail.comwrote: Hi, I'm using the following configuration. *VERSION*: Tomcat 6.0.20* OS*: Fedora core 9 *uname -a*: Linux

Re: Virtual Hosts and manager application.

2009-08-24 Thread Jonathan Mast
: Container org.apache.catalina.core.ContainerBase.[Catalina].[ cashier.westest.myriadpayments.com].[/manager] has not been started cat manager.xml* * On Mon, Aug 24, 2009 at 5:13 PM, Jonathan Mast jhmast.develo...@gmail.comwrote: Try placing the literal path to the manager in there instead

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) {

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

2009-06-26 Thread Jonathan Mast
;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 things. -Tim Jonathan Mast wrote: A null value in bounce_url is causing the original Request

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

2009-06-26 Thread Jonathan Mast
is being thrown at some level, but Tomcat is catching it and apparently just replacing it with , this is acceptable in that Tomcat is following the letter of spec, so to speak, but definitely not following the spirit of the java in general, imho. On Fri, Jun 26, 2009 at 12:51 PM, Jonathan Mast

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 p...@pidster.com wrote: Jonathan Mast wrote: Chris, this is indeed a case

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 Alias 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

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:

Re: The best place for implementing context specific behavior?

2009-06-24 Thread Jonathan Mast
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 would like to behave in a context (actually host)-specific

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 imre_to...@hotmail.com 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;

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.html On Wed, Jun 17, 2009 at 4:53 PM, Tokajac imre_to

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

Re: using static helper classes within servlets

2009-06-14 Thread Jonathan Mast
I've not done anything with EJBs and I'm not sure what exactly you mean by static properties. I have however dealt with reducing instantiations in servlets. I simply created a BeanBag class with static methods to each one of my beans; these are not proper beans, but where simply objects that

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Jonathan Mast
So you are actually storing the image data in the database, as opposed to the filepath? interesting... So your webapp accesses the image data as needed and writes it to imagecache dir? Is this feature not working? i don't understand what exactly the issue is that you are having. please explain.

Re: Tomcat maxThreads Issue

2009-06-10 Thread Jonathan Mast
I encountered a similar issue of numerous Httpd processes spawning b/c of Tomcat. The issue for me was that Tomcat was running out of memory, and Httpd for some reason thought spawning a bunch a threads would help ;) Do you know how much memory these instances of Tomcat are using? The default

Re: Loading dynamically created content: An old chestnut but still a problem.

2009-06-10 Thread Jonathan Mast
others deal with serving up images that have been uploaded after the server has started. Anyway Thanks for taking the time to reply lyallex 2009/6/10 Jonathan Mast jhmast.develo...@gmail.com: So you are actually storing the image data in the database, as opposed to the filepath

Re: Tomcat maxThreads Issue

2009-06-10 Thread Jonathan Mast
Well I'm not sure how to check the current memory settings but I sure know how to adjust them :) Presuming that you downloaded Tomcat directly and installed manually: open $TOMCAT/bin/catalina.sh Add the following somewhere near the top (I place mine after all the explanatory comments):

Re: What to upgrade?

2009-06-10 Thread Jonathan Mast
I just completed (last week actually) a migration from JDK 1.4.2/Tomcat 5.5 to JDK 1.6/Tomcat 6. In terms of backward-compatibility, we had a problem with our TagLib packages. They would not compile under with whatever version of the Servlet Spec accompanies JDK 1.6. Those were the only

Re: Authentication from the browser

2009-06-02 Thread Jonathan Mast
Alec, so basically members of your client company should be able to have direct access to a servlet that is otherwise restricted to a handful of users who must authenicate themselves with a username/password login, right? One solution to this situation would be to create a simple servlet that

Re: Is it possible to move Tomcat logfiles?

2009-05-12 Thread Jonathan Mast
Did CentOS setup /var and /usr on different partitions? If so then maybe it would be a good idea to place the logs some where on /var. What else will this server be used for aside from the Webserver? If nothing else and if /var and /usr are on the same partition, then I wouldn't alter the

Re: SSL Mysterious Self Signed Certificate

2009-05-07 Thread Jonathan Mast
Its my understanding that all Self-signed certs generate the creepy browser messages. Not sure though. Were the imported root certs issued by a well known CA? On Wed, May 6, 2009 at 10:43 PM, Andrews, Wayne wayne.andr...@sap.comwrote: Hi I have an issue whereby on a windows installation of

Re: OT: GoDaddy Hosting and Tomcat

2009-04-27 Thread Jonathan Mast
Well, you get what you pay for. My GoDaddy account costs $6.99 per month and I quickly found it inadequate for hosting serious Tomcat applications, just for the reasons you listed: very unintuitive control panels, 1-day lag in servlet (non)-deployment. I'm canceling the hosting portion of my

A sample workers.properties file

2009-04-22 Thread Jonathan Mast
The Tomcat-Connector docs say that the source dist contains a sample workers.properties file, but neither Tomcat 6 nor Httpd 2.2 src archives contain such a file. Could someone please post a sample workers.properties file for the aforementioned Tomcat and Httdp versions? Thanks

Re: A sample workers.properties file

2009-04-22 Thread Jonathan Mast
ok, i'll look, the docs don't explicitly say what source package the sample is in. thanks On Wed, Apr 22, 2009 at 2:48 PM, André Warnier a...@ice-sa.com wrote: Jonathan Mast wrote: The Tomcat-Connector docs say that the source dist contains a sample workers.properties file, but neither

Re: A sample workers.properties file

2009-04-22 Thread Jonathan Mast
: André Warnier wrote: Jonathan Mast wrote: The Tomcat-Connector docs say that the source dist contains a sample workers.properties file, but neither Tomcat 6 nor Httpd 2.2 src archives contain such a file. But the mod_jk connector download does, I am quite sure. You /have/ downloaded

Re: Installing Tomcat

2009-04-15 Thread Jonathan Mast
to the hobbits who develop the OS and who know all the magical incantations needed to use it safely. thanks On Wed, Apr 15, 2009 at 1:12 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 4/14/2009 9:00 PM, Jonathan Mast wrote

Re: Installing Tomcat

2009-04-14 Thread Jonathan Mast
, Jonathan Mast wrote: ok, here is the plain vanilla, immaculate server.xml, straight from a fresh untarring of the tomcat 6 dist that i just re-installed, its still not working. I didn't realize you were using an unmodified configuration. My initial reaction is that you'll have to modify

Re: Installing Tomcat

2009-04-10 Thread Jonathan Mast
Has anyone figured out whats happening here? On Thu, Apr 9, 2009 at 11:20 AM, Jonathan Mast jhmast.develo...@gmail.comwrote: ok, here is the plain vanilla, immaculate server.xml, straight from a fresh untarring of the tomcat 6 dist that i just re-installed, its still not working. thanks

Re: Installing Tomcat

2009-04-09 Thread Jonathan Mast
: SHA1 Jonathan, On 4/8/2009 1:29 PM, Jonathan Mast wrote: Furthermore, I can tell you that netstat -a indicated no listener for port 8080 and that that Catalina logs look ok. Seriously. Post. Your. Server. Dot. XML. File. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9

Installing Tomcat

2009-04-08 Thread Jonathan Mast
I'm trying to get Tomcat 6 running on a RedHat box. I don't want to build deamon with jsvc as the docs say I should do, at least not yet. Is this the extent of the official documentation for setting up Tomcat on Linux? I installed JDK 6 and Tomcat 6, defined JAVA_HOME and TOMCAT_HOME and setup

Re: Installing Tomcat

2009-04-08 Thread Jonathan Mast
and that that Catalina logs look ok. thanks, On Wed, Apr 8, 2009 at 12:24 PM, Peter Crowther peter.crowt...@melandra.com wrote: From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] I'm trying to get Tomcat 6 running on a RedHat box. I don't want to build deamon with jsvc as the docs say I

RemoteAddrValve syntax

2009-04-05 Thread Jonathan Mast
How do I specify wildcards in the RemoteAddrValue declaration? The Tomcat docs says it uses the java.util.regex package, so i wrote a test case like this: String patternStr = 192.168.*.*; String searchStr = 192.168.1.2; Pattern p = Pattern.compile(patternStr);

Re: RemoteAddrValve syntax

2009-04-05 Thread Jonathan Mast
I looked at the javadocs for the RemoteAddrValve and they provided no further clarity on the syntax issue. You're right, my test case mistakenly returned a false positive, .* could match anything its true and their is no common sense wildcard in the Java Regex package. I looked at the javadoc

HELP!!! cannot reach my site!

2009-03-29 Thread Jonathan Mast
I restarted tomcat after making some changes and now I my main webpage is down. The www.mysite.com returns a blank page. I didn't touch the code-base of the main website before the restart, that service, which is on a different host (foo.mysite.com) works fine. Looking at apache and tomcats

Re: HELP!!! cannot reach my site!

2009-03-29 Thread Jonathan Mast
Well the I figured it out. I forgot that I had updated (yesterday) the codebase on www.mysite.com to use jsp-api.jar and servlet-api.jar., but hadn't restarted Tomcat at that time. Previously it was using servlet.jar. After I deleted jsp-api.jar and servlet-api.jar and placed servlet.jar back in

Re: FW: very off topic marketing question

2009-03-24 Thread Jonathan Mast
thats slap-dash and hard to maintain :-( On Tue, Mar 24, 2009 at 11:25 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 3/20/2009 7:53 PM, Jonathan Mast wrote: Meh. Most Java webapps aren't multithreaded anyway

Re: Upgrading to Java 1.5

2009-03-24 Thread Jonathan Mast
like Frodo in Lord of the Rings? About to be dissolved by the evil Chuck-spider's venom? ;-) On Tue, Mar 24, 2009 at 5:30 AM, André Warnier a...@ice-sa.com wrote: Caldarale, Charles R wrote: From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] Subject: Re: Upgrading to Java 1.5

Upgrading to Java 1.5

2009-03-23 Thread Jonathan Mast
I'm working in a Java 1.4.2, Apache 1.3.33, Tomcat 5.5, Linux environment. I want to migrate to Java 1.5. Is it possible to do this vis-a-vis Tomcat by just altering what the /usr/local/java link points to? Or will I need to do more under-the-hood changes?

Re: Upgrading to Java 1.5

2009-03-23 Thread Jonathan Mast
:34 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] Subject: Upgrading to Java 1.5 I want to migrate to Java 1.5. Is it possible to do this vis-a-vis Tomcat by just altering what the /usr/local/java link points

Re: [OT] of very off topic marketing question

2009-03-21 Thread Jonathan Mast
OK, so what would it look like? Show me a comparable snippet of PHP code. How does one enable this feature if its off by default? Why is it off by default? I guessing it opens up security issues and/or has side effects. Not conducive to enterprise-level computing, imho. What is PEAR? Is that

Re: FW: very off topic marketing question

2009-03-20 Thread Jonathan Mast
Meh. Most Java webapps aren't multithreaded anyway in the sense that each request lives in its own little world and usually runs start to finish with no other threading involved. Just this week I added threading to a component of my web-app. I had some what dreaded it, but found that it took me

Access log behavior

2009-03-18 Thread Jonathan Mast
We're using the AccessLogValve extensively and I'm wondering if anyone can tell me what happens when an active (ie. today's) access log file is deleted? Will Tomcat handle this gracefully or go bonkers? I occasionally delete some log files that are active but are unimportant, when that happens i

[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 a href=tel:55here/a to

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

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 bra...@gmail.com wrote: I am

Re: GenericType error?

2009-01-23 Thread Jonathan Mast
. 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? Well I do need to get my wisdom teeth removed

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

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

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

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? It's caused by not telling us anything

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
. 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:jhmast.develo...@gmail.com] Subject: Re

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

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

Re: Can Tomcat be used to host socket servers?

2009-01-14 Thread Jonathan Mast
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 socket servers? Not sure if dynamically rewriting

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

Re: replacement for useBean directive

2009-01-06 Thread Jonathan Mast
() 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 directive wouldn't making

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 should

Re: Can I specify virtual hosts in JKMounts?

2008-12-02 Thread Jonathan Mast
to be within the IfModule ... tags? 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 in a folder named foo which is reachable by 2

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

Re: Context level logging

2008-11-10 Thread Jonathan Mast
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 own context element. I want all the System.out and System.err stuff

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

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

2008-10-24 Thread Jonathan Mast
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 On Fri, Oct 24, 2008 at 7:09 PM, Jonathan Mast [EMAIL

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 noted

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

2008-10-22 Thread Jonathan Mast
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] Subject: Why isn't my welcome file being read

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

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
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 the date-time stamps on AccessLogValve page and was wondering if there wasn't a way to get this data. Tomcat 5.5 Thanks

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: Valve className=org.apache.catalina.valves.AccessLogValue prefix=foo.

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 own

Re: apparent problem with work/ directory

2008-08-30 Thread Jonathan Mast
, 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 new package. I updated the jsps accordingly, by importing the new package with the PAGE directive at the top. I deleted the old version

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.

Re: How to programmatically add parameters to ServletRequest objects?

2008-08-06 Thread Jonathan Mast
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 you mean that you want to add parameters to a forwarded URL without using JSP? | How do I pass the name-value pair foo:bar

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

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=fooxyz=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

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 [EMAIL PROTECTED

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

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.

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

  1   2   >