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 per

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

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

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

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

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

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: 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: On Tue, Oct 20, 2009 at 4:03 PM, Tony Anecito wrote: > Hi Chuck, > > I am still a newbe at this concept but here is a link that mentions A

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

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

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

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

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

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

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

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

2009-06-10 Thread Jonathan Mast
it > to load resoures that have appeared after the server has started ... > it doesn't look like it is possible which is slightly depressing ... > unless of course I am missing something. > > Surely this is not an unusual requirement, how do others deal with > serving up imag

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 JV

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

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 defaul

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 wrote: > > Hi > > I have an issue whereby on a windows installation of Tomcat; I have a

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 GoDa

Re: A sample workers.properties file

2009-04-22 Thread Jonathan Mast
dré 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 mo

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 wrote: > Jonathan Mast wrote: > >> The Tomcat-Connector docs say that the source dist contains a sample >> workers.properties fi

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

2009-04-15 Thread Jonathan Mast
programming should be left 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 &g

Re: Installing Tomcat

2009-04-14 Thread Jonathan Mast
.net> wrote: > -----BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jonathan, > > On 4/9/2009 11:20 AM, 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,

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 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. > > thanks >

Re: Installing Tomcat

2009-04-09 Thread Jonathan Mast
D MESSAGE- > Hash: 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.

Re: Installing Tomcat

2009-04-08 Thread Jonathan Mast
uot; indicated no listener for port 8080 and that that Catalina logs look ok. thanks, On Wed, Apr 8, 2009 at 12:24 PM, Peter Crowther wrote: > > From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] > > I'm trying to get Tomcat 6 running on a RedHat box. > > > > I

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 h

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

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

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 logs

Re: Upgrading to Java 1.5

2009-03-24 Thread Jonathan Mast
Linux. So am I now 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 wrote: > Caldarale, Charles R wrote: > >> From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] Subject: Re: >&

Re: FW: very off topic marketing question

2009-03-24 Thread Jonathan Mast
ver and execute a bash scriptor some other one-off kludge 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

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 alteri

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

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 m

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

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

2009-03-03 Thread Jonathan Mast
iho wrote: > Jonathan Mast wrote: > > 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 rep

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

[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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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?

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

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

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

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

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

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

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

  1   2   >