RE: More helpful reporting of exceptions in JSPs

2005-10-11 Thread GB Developer
regardless how the commiters feel about it, are you willing to release your
patched source files? (So for example, I can compile and deploy them
myself?)   ;)  If so, I'd say a page on your wiki might be alright for
distro, with a link to the page sent to tomcat-user  ?
 
I'd be giving it a try about 10 minutes after you send out your email, since
I've often wondered about this feature. Usually right after digging through
the work directory for a generated java file. 


 -Original Message-
 From: Tim Fennell [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 11, 2005 12:15 PM
 To: Tomcat Users List
 Subject: Fwd: More helpful reporting of exceptions in JSPs
 
 
 Apologies in advance for cross-posting this, but I sent this email  
 out to the tomcat-dev list a couple of days ago and have received no  
 replies at all...  I think this is quite  a useful feature, and I'm  
 wondering how best to go about contributing it.
 Thanks
 
 -Tim Fennell
 http://stripes.mc4j.org
 
 Begin forwarded message:
 
  From: Tim Fennell [EMAIL PROTECTED]
  Date: October 9, 2005 5:50:11 PM EDT
  To: tomcat-dev@jakarta.apache.org
  Subject: More helpful reporting of exceptions in JSPs
  Reply-To: Tomcat Developers List tomcat-dev@jakarta.apache.org

  At any rate, I have code that will do this now, and I think it'd be
  a great productivity boost for anyone else developing JSPs on  
  Tomcat.  It amounts to small patches to two files.  The first is  
  org.apache.jasper.compiler.Compiler to make it hang on to 
 the parse  
  tree (pageNodes) if in development mode, and a getter to make this  
  accessible.  The second is to  
  org.apache.jasper.servlet.JspServletWrapper to do the grunt 
 work of  
  mapping a stack frame from the exception back to the line in the  
  JSP that it came from.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat 3.2.4

2005-10-11 Thread GB Developer
http://archive.apache.org/dist/jakarta/tomcat-3/archive/v3.2.4/


 -Original Message-
 From: Steve Souza [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, October 11, 2005 3:18 PM
 To: Tomcat Users List
 Subject: tomcat 3.2.4
 
 
 Hi folks,
 
 The question is simple - we'd like to get the 3.2.4
 release of Tomcat, but do not see a download link on
 the Apache site.  Is it archived somewhere?  I know


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: RTE - Meridian Club [EMAIL PROTECTED]

2005-10-07 Thread GB Developer

 -Original Message-
 From: David Short [mailto:[EMAIL PROTECTED] 
 
 Arup needs to work on his social skills.  We're all here 
 trying to help each other, not to attack each other.


but... at least he likes donuts. So he can't be all that bad.  ;)

 On 10/7/05, Arup Vidyerthy [EMAIL PROTECTED] wrote:


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: help on a publication

2005-10-06 Thread GB Developer
The reference in your stacktrace might be an indicator that you are not
running tomcat in 'headless' mode. 

And now I understand from where the by so-and-so on such-and-such came
from in your original email.  Check out http://alov.org/topic.do?t_id=369


 by artem  on  2004/02/18 02:54 
Make sure that java on your server is 1.3 or higher. To work in headless
environment (without X server) you have to add the following line in your
catalina.sh

CATALINA_OPTS=-Djava.awt.headless=true $CATALINA_OPTS 




 -Original Message-
 From: Hugo Osorio [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, October 06, 2005 5:15 PM
 To: Tomcat Users List
 Subject: Re: help on a publication
 
 
  I have this failure inside the log, when i am trying to see 
 the context in the navigator..
 
 i can solve this only fixing up the X Window ? I thought X 
 Window had nothing to do with this
 
 could be another thing?
 
 thank you
 
 
 2005-10-06 19:32:32 StandardContext[/alovmap]Context 
 initialized 58 2005-10-06 19:32:32 
 StandardContext[/alovmap]Exception starting filter ogcFilter 
 59 java.lang.NoClassDefFoundError 60 at 
 java.lang.Class.forName0(Native Method) 61 at 
 java.lang.Class.forName(Class.java:141)
 62 at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(
 GraphicsEnvironment.java:62)
 63 at java.awt.Font.initializeFont(Font.java:308)
 64 at java.awt.Font.init(Font.java:344)
 65 at org.alov.map.MapUtils.clinit(MapUtils.java:116)
 66 at org.alov.serv.OGC_Filter.init(OGC_Filter.java:179)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: byte serving PDF with Tomcat 5.0.27

2005-09-28 Thread GB Developer
It's not so much a tomcat setting (it's not something you configure), as it
is writing the correct type of servlet. 

I googled for  [servlet binary content] and the first two links looked
decent. 


 -Original Message-
 From: Shawn Maceno [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 28, 2005 1:59 PM
 To: Tomcat Users List
 Subject: Re: byte serving PDF with Tomcat 5.0.27
 
 
 Thanks for the quick reply.  I think I need a little more 
 hand-holding on this one, not being the Tomcat genius...  Can 
 you provide some kind of example that shows where the 
 content-type setting is and what it needs to be?
 
 Thanks again,
 
 Shawn Maceno


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: an advice neede for use of encodeURL method...

2005-09-22 Thread GB Developer
and minus the trailing ;

 -Original Message-
 From: Peter Crowther [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 22, 2005 11:01 AM
 To: Tomcat Users List
 Subject: RE: an advice neede for use of encodeURL method...
 
 
  From: jonas skrebys [mailto:[EMAIL PROTECTED]
  a href=% response.encodeURL [...]
  ^
 I think you're missing an '=' here?  Should be 
 %=function();% to write the result of function to the 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat/JVM hangs in session.getAttribute / HashMap.get()

2005-09-07 Thread GB Developer
coming late to the party with: 

http://blogs.opensymphony.com/plightbo/archives/000175.html
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat5.5 and Logging

2005-09-02 Thread GB Developer
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html

 -Original Message-
 From: Trond Hersløv [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 2:06 PM
 To: Tomcat Users List
 Subject: Tomcat5.5 and Logging
 
 
 Hi,
 what happend with the Logging component form TC5.0?
 I used to include a Logger 
 className=org.apache.catalina.logger.FileLogger.. 
 inside Host to get my logging going. How do I do this under TC5.5
 
 Regards Trond
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Manager webapp and virtual hosts

2005-08-25 Thread GB Developer
another option is to use this:
http://www.talika.org/tms/

I'm using it on three tomcat 5.0.29 servers, each with a dozen or so vhosts,
and it works great. 



 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 25, 2005 7:02 AM
 To: Tomcat Users List
 Subject: Re: Manager webapp and virtual hosts
 
 
 Le Jeudi 25 Août 2005 13:55, Mikolaj Rydzewski a écrit :
  Hello,
  
  My configuration is very simple: tomcat listens on localhost with
  various apps in their contexts. Now I'd like to setup a 
 virtual host for 
  another one. Will it be possible to deploy/reload such 
 application using 
  manager webapp running on localhost? In other words: do I have to 
  install separate manager webapp for each virtual host?
 
 For 1st part, did it here (2 sets of webapp depending on 
 hostname used), must have 
 the manager webapp deployed in each host (actually a soft 
 link on unix having webapps-for-somespecial-hostname/manager 
 points to webapps/manager is enough)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat and the HttpServletRequest Object

2005-08-12 Thread GB Developer
 
The recognition (and so far, little acceptance) that form fields will not be
sent in a guaranteed order by a browser, and never mind that, because even
if your browser does,  the container doesn't guarantee an order either... is
from Beginner's Servlets. But maybe I only think that because the vast
majority of my time in servlet/jsp development has not been spent with a
container that has this nice enhancement. 

If you *output* the fields in a determined order, then it seems clear that
you could also do something like name=%= index %_restOfName. Hackish,
brutish and stupid as it might seem, to those that have not drunk the
koolaid, I think it (or something like it) is a time-honoured tradition for
most people that already understood this (the aforementioned koolaid
drinkers).  
 
This is almost as good as realizing in late 2005 that referrer is not a
reliable header. GAH.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: obscure tomcat 5.5 text file display bug? [Bugzilla candidate?]

2005-07-06 Thread GB Developer
Indeed, thanks Jon. 

 -Original Message-
 From: Woodchuck [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 06, 2005 10:15 AM
 To: Tomcat Users List
 Subject: Re: obscure tomcat 5.5 text file display bug? 
 [Bugzilla candidate?]
 
 
 awesome!  thanks, Jon!
 
 woodchuck
 
 --- Jon Wingfield [EMAIL PROTECTED] wrote:
 
  I agree; it does the job :)
  There is an equivalent for IE: 
  http://www.blunck.info/iehttpheaders.html
  
  Enjoy,
  
  Jon
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: obscure tomcat 5.5 text file display bug? [Bugzilla confirmed]

2005-07-06 Thread GB Developer
Why does 4.x have:
HTTP/1.1 200 
Server: Microsoft-IIS/5.0

and 5.x have:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1


Are you fronting 4.x with IIS, and not 5.x?  That is one config difference
that you'll need to dispense with, in order to be fairly comparing the two.

Mike Curwen


 
 header chunk generated by Tomcat 4.1 for a .txt file:
 
 HTTP/1.1 200 
 Server: Microsoft-IIS/5.0
 Date: Wed, 06 Jul 2005 16:22:39 GMT
 ETag: W/1706-1120587147968
 Last-Modified: Tue, 05 Jul 2005 18:12:27 GMT
 Content-Type: text/plain
 
 
 header chunk generated by Tomcat 5.5 for a .txt file:
 
 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 ETag: W/1706-1120666790014
 Last-Modified: Wed, 06 Jul 2005 16:19:50 GMT
 Date: Wed, 06 Jul 2005 16:20:26 GMT
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: obscure tomcat 5.5 text file display bug?

2005-07-05 Thread GB Developer
(i suspect it's the way 
 Tomcat is telling the browser what type of file it's sending 
 back... some kind of header info.. but i'm not sure how to go 
 about debugging this)
 
 thx in advance,
 woodchuck


I like using FireFox for debugging this type of thing, and the liveheaders
plugin

http://livehttpheaders.mozdev.org/
 
VERY handy. There is probably an IE equivalent of some sort, but haven't
heard of a really good one.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Probably an easy answer

2005-06-13 Thread GB Developer
how about instead of using a declared variable, use an appropriately scoped
attribute? You won't get a compile-time error retrieving a named attribute.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem for loading files under WEB-INF/classes

2005-06-10 Thread GB Developer
You might consider the following:
1) if you wrote log4j.properties on one platform and uploaded it to another,
perhaps the format got mangled. Check to be sure that log4j.properties is
actually log4j.properties, without some special, non-printable and hidden
character on the end of the filename.  I once had a problem where for some
reason, my SFTP client was adding a ~ to the end of all my files.   The SFTP
client didn't show them, but if you logged into a shell and ls -l, you'd
see the ~. 
2) check *inside* the file for things like line return nonsense (CRLF vs. CR
vs. LF) and gibberish characters.
3) check that log4j.properties has the correct file permissions (it's owned
by the correct user/group). To be sure, chmod +777 should work.


 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vincent
 Sent: Thursday, June 09, 2005 4:54 PM
 To: tomcat-user@jakarta.apache.org
 Subject: Problem for loading files under WEB-INF/classes
 
 
 I want to load some files that I've placed in the WEB-INF/classes 
 directory of my project (particularly the file log4j.properties).
 
 The problem is that I always have the same errors logged in stdout 
 tomcat's log file : java.io.FileNotFoundException...
 
 The files are well-placed, and curiously my webapp can read a 
 ressource 
 bundle file that I provide for i18n, which is in this same directory.
 
 I believed that Tomcat automatically place files under 
 WEB-INF/classes 
 into the path of the webapp. I'm wrong ? What's the problem exactly ?
 
 Thank you for your help.
 
 Note: Running Tomcat 5.5.9 under Windows XP or Windows 2000, JVM 1.5
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSP-specific newsgroups/mailing list

2005-06-06 Thread GB Developer
Javaranch.
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi

 -Original Message-
 From: David Wall [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, June 04, 2005 3:07 PM
 To: Tomcat Users List
 Subject: JSP-specific newsgroups/mailing list
 
 
 Can anybody recommend a good JSP/servlet newsgroups or 
 mailing lists for 
 questions.  Obviously, this list is directed towards Tomcat in 
 particular, but while I'm using Tomcat, I'm trying to get an answer 
 regarding some a way in JSP to allow a page developer to 
 create his own 
 bean that can be passed between JSP pages (such as by putting 
 the object 
 in the session or request object).
 
 Thanks,
 David
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Usage of DBCP in Tomcat

2005-06-02 Thread GB Developer
Hi everyone,
 
The number of sites we support has recently expanded, and we're starting to
run into db connection errors : we are running out.
 
Mysql currently has its default max (somewhere around 100?), and I'll be
scheduling a restart to increase this count  (as an aside: anyone know how
to up the connections on a running mysql server?)
 
But I'd also like to find out why the DBCP configuration that I have is not
functioning as expected.  Is there something I'm missing or not
understanding?
 
Tomcat 5.0.29
commons-dbcp-1.2.1.jar
JDK 1.4.2


parameter
  nameurl/name
  valuejdbc:mysql://xxx:xxx:xxx:xx:/?autoReconnect=true/value
/parameter
parameter
  namemaxActive/name
  value15/value
/parameter
parameter
  namemaxIdle/name
  value5/value
/parameter
parameter
  namemaxWait/name
  value5000/value
/parameter
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  nameremoveAbandonedTimeout/name
  value15/value
/parameter
parameter
  namelogAbandoned/name
  valuetrue/value
/parameter

This, I would read as use up to 15 total connections, maintain no less than
5 at the ready, and wait for no more than 5 seconds before indicating you
are 'out of connections'. Also remove a connection if it hasn't been used
for more than 15 seconds, and tell me you did that.
 
All the websites share this common config.  I'm getting single websites
maintaining up to 20 connections.  When I examine the mysql instance with
the GUI MySql Admin tool, I see pretty much all of them in SLEEP and for
well over 5000 seconds, never mind 15 seconds.  Perhaps I'm leaking
connections, which I'll be investigating as well, but then why aren't they
being reclaimed as abandoned?
 
If I don't configure timeBetweenEvictionRunsMillis, will the number of
connection in the pool ever be reduced to maxIdle ?

Is the autoReconnect screwing me?
  

Thanks for any ideas.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: What happened to the searchable list archive?

2005-05-20 Thread GB Developer
I like marc.

http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2



 -Original Message-
 From: Steve Kirk [mailto:[EMAIL PROTECTED] 
 Sent: Friday, May 20, 2005 8:14 AM
 To: tomcat-user@jakarta.apache.org
 Subject: What happened to the searchable list archive?
 
 
 
 It's been a few months since I've been active on the list, 
 and the list archive seems to have changed in that time, 
 could someone please advise?
 
 I used to search the list archives here: 
 http://nagoya.apache.org/eyebrowse/SearchList?listName=tomcat-
[EMAIL PROTECTED]
pache.org 

But that archive appears to contain very few of the current messages (e.g.
only 7 from April, none at all for this month), is there a reason for that?
It appears to have gone quiet after Jan 2005 for some reason, see here: 
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]
a.apache.org 

I see that there is an archive here now 
http://mail-archives.apache.org/mod_mbox/jakarta-tomcat-user 
but it doesn't appear to be searchable...?

Of course we can use google site search to search this list, but it's not
quite the same thing because you can't select a list to search.  Also the
thread browsing is not as easy from this archive, once you have found a post
via google.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat vs Apache

2005-05-18 Thread GB Developer

 -Original Message-
 From: Dakota Jack [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 18, 2005 2:01 PM
 To: Tomcat Users List; Jason Bainbridge
 Subject: Re: Tomcat vs Apache
 
 
 I think there is not much question that the Apache server is 
 far more efficient serving static html.  Is there really any 
 issue on that?  If so, things sure have changed.  I thought 
 the comparison was like 5 to 1.  Is that no longer true?



/me awaits an email from Remy or Peter.  ;)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]