error with javac

2007-12-03 Thread rameau rameau1982
hi, I have 2 java classes in the same directory. One of them (SlateServlet.java) creates a new object from the other class (UsersDB.java). When I compile UsersDB, everything is correct and the .class archive is in the same path as the other .java archives. But when I want to compile the

Re: error with javac

2007-12-03 Thread David Delbecq
Put your classes in packages. Specs forbid the use of package-less classes in web container. En l'instant précis du 03/12/07 09:14, rameau rameau1982 s'exprimait en ces termes: hi, I have 2 java classes in the same directory. One of them (SlateServlet.java) creates a new object from the other

max value of maxthreads

2007-12-03 Thread 宋杨
Hi all: One question... What is the max value of maxThreads in server.xml? Thanks Derek

Redirect

2007-12-03 Thread Andrew Hole
Hello! On an Apache server, I would like to have a Redirect from a URL to other URL not on my server. The redirect is temporary, and therefore I would prefer if the original URL appeared in the visitor's browser's Address Bar, as opposed to the URL of the site to which he/she was redirected. Is

Re: Tomcat Service and OCI

2007-12-03 Thread Tim Funk
I tested the performance years (3+) ago trying to answer the same question. In most cases the OCI driver was faster but in some tests the thin driver was faster (IIRC the results from that long ago). That being said - the performance difference in the drivers is (most likely) negligible

Monitoring Tomcat

2007-12-03 Thread Pedro
Hi All I am just curious to know what people are using to monitor Tomcat, for my purposes I just require something very simple, and don't have too much time to spend. I am looking for a solution kind of like this: A basic summary of memory usage The potential to detect memory leaks *A

Re: Redirect

2007-12-03 Thread Rainer Jung
Andrew Hole wrote: Hello! On an Apache server, I would like to have a Redirect from a URL to other URL not on my server. The redirect is temporary, and therefore I would prefer if the original URL appeared in the visitor's browser's Address Bar, as opposed to the URL of the site to which he/she

Re: Monitoring Tomcat

2007-12-03 Thread Leon Rosenberg
http://moskito.anotheria.net/moskitodemo/mui/mskShowAllProducers http://www.lambdaprobe.org/d/index.htm On Dec 3, 2007 12:09 PM, Pedro [EMAIL PROTECTED] wrote: Hi All I am just curious to know what people are using to monitor Tomcat, for my purposes I just require something very simple, and

Re: Monitoring Tomcat

2007-12-03 Thread Peter Stavrinides
This is perfect!!! thanks Leon Leon Rosenberg wrote: http://moskito.anotheria.net/moskitodemo/mui/mskShowAllProducers http://www.lambdaprobe.org/d/index.htm On Dec 3, 2007 12:09 PM, Pedro [EMAIL PROTECTED] wrote: Hi All I am just curious to know what people are using to monitor Tomcat,

Tomcat5.5 postgresql, security oh my

2007-12-03 Thread Chris Baty
Hi all, I'm trying to get Tomcat5.5 working with Poestgresql. I know I got everything configured right because if I turn Tomcat security off, in / etc/default/tomcat, everything works fine. My site directory is at /usr/share/tomcat5.5-webapps/ROOT/myapp. I want security on so this is

RE: I got the following error while running my very simple JSP onTomcat 4.1. server

2007-12-03 Thread Larry Isaacs
One other thing to be aware of is that if you installed Tomcat 4.1.x using the exe, and you chose to install Tomcat as a service, then the install would copy tools.jar from the JDK to Tomcat's common/lib directory. This allowed the service to run off the JRE associated with the JDK (much much

RE: Tomcat5.5 postgresql, security oh my

2007-12-03 Thread Peter Crowther
Exactly which Tomcat version? What doesn't work? What error do you get, under what circumstances? - Peter -Original Message- From: Chris Baty [mailto:[EMAIL PROTECTED] Sent: 03 December 2007 13:37 To: users@tomcat.apache.org Subject: Tomcat5.5 postgresql, security

profiler without required restart configure jvm

2007-12-03 Thread teoh
is there such profiler ? netbeans need to add a parameter to jvm in order to use the profiler. I know there is a commercial grade profiler that use proprietor's jvm and not required to restart jvm. Is there any profiler that can be used with existing standard jvm and do not need to

Yet again a problem with POSTs and encodings

2007-12-03 Thread Александър Шопов
Hi guys, I went through the documentation and recent posts to the list, yet I cannot solve my problem. My problem is that I am trying to POST non ASCII data to tomcat, but it gets recoded in ISO8859-1 interpretation of UTF-8 byte sequence. OK. Here are some more data for my setup Fedora 8,

Re: java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap

2007-12-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, [EMAIL PROTECTED] wrote: later on in the index.jsp attempt to use the log line 42 onMouseUp=%log.debug(From index.jsp StringToEncrypt=); An error occurred at line: 42 in the jsp file: /index.jsp Generated servlet error: log cannot be

Re: Tomcat5.5 postgresql, security oh my

2007-12-03 Thread Chris Baty
Sorry, If Tomcat5.5 security is off I'm able to get a connection. If Security is on I get catched out and get: org.postgresql.util.PSQLException: Something unusual has occured to cause the driver to fail. Please report this exception. org.postgresql.util.PSQLException: Something unusual has

RE: Yet again a problem with POSTs and encodings

2007-12-03 Thread Caldarale, Charles R
From: Александър Шопов [mailto:[EMAIL PROTECTED] Subject: Yet again a problem with POSTs and encodings My problem is that I am trying to POST non ASCII data to tomcat, but it gets recoded in ISO8859-1 interpretation of UTF-8 byte sequence. Have you tried implementing a filter to set the

Re: Tomcat5.5 postgresql, security oh my

2007-12-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, Chris Baty wrote: If Tomcat5.5 security is off I'm able to get a connection. If Security is on I get catched out and get: org.postgresql.util.PSQLException: Something unusual has occured to cause the driver to fail. Please report this

Re: Yet again a problem with POSTs and encodings

2007-12-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Александър, Александър Шопов wrote: My problem is that I am trying to POST non ASCII data to tomcat, but it gets recoded in ISO8859-1 interpretation of UTF-8 byte sequence. [snip] in server.xml I have put: URIEncoding=UTF-8 in the

Re: Redirect

2007-12-03 Thread Martin Gainty
+1 I agree with Rainier You may want to consider returning 302 supplying the new Location URI field http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html implementation example available at http://developers.sun.com/mobility/reference/techart/design_guidelines/http_ redirection.html Viel Gluck

Re: Building mod_jk.so module

2007-12-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shekar, [EMAIL PROTECTED] wrote: We are trying to build module which under apache named mod_jk.so. document points to compiling it with build-unix.sh script which is not there. Any idea how to compile /build it ? Thx Which version? The build

Re: Yet again a problem with POSTs and encodings

2007-12-03 Thread Александър Шопов
Ahhh, It seems the standard is a PITA, most people are confused and developers are unwilling to change. ;-) Ohh sweeetie - my favourite situation. However as this seems a frequent misunderstanding and request - will it be possible to ship such a filter as an example with Tomcat? I mean -

Building mod_jk.so module

2007-12-03 Thread Shekhar . Dhotre
Ola, We are trying to build module which under apache named mod_jk.so. document points to compiling it with build-unix.sh script which is not there. Any idea how to compile /build it ? Thx [EMAIL PROTECTED] /usr/local]: find / -name build-unix.sh -print find: bad status-- /proc/381108

How can I exclude in url-pattern for filters in Tomcat 5.5.20?

2007-12-03 Thread kkus
Hi, For the following setting in web.xml, if I have a request like /*.earth how can I exclude it from these filters? I don't want to filters to handle request from /*.earth. Thanks! filter-mapping filter-namerewriteFilter/filter-name url-pattern/*/url-pattern

Re: How can I exclude in url-pattern for filters in Tomcat 5.5.20?

2007-12-03 Thread Ken Bowen
Look into using Url Rewrite Filter: http://tuckey.org/urlrewrite/ kkus wrote: Hi, For the following setting in web.xml, if I have a request like /*.earth how can I exclude it from these filters? I don't want to filters to handle request from /*.earth. Thanks! filter-mapping

Hundreds of Instances

2007-12-03 Thread Breno Jacinto
Hello, I have an application running under Tomcat for a couple of months now, and itś always been memory intensive (I run it in a combination with Apache2 + JK + Berkeley DB XML in the backend). But from a few days to today, it's been eating memory like crazy, and I can see that when I have

Re: error with javac

2007-12-03 Thread BuildSmart
On Dec 3, 2007, at 03:14:38, rameau rameau1982 wrote: hi, I have 2 java classes in the same directory. One of them (SlateServlet.java) creates a new object from the other class (UsersDB.java). When I compile UsersDB, everything is correct and the .class archive is in the same path as the other

Re: Yet again a problem with POSTs and encodings

2007-12-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Александър, Александър Шопов wrote: It seems the standard is a PITA, most people are confused and developers are unwilling to change. ;-) It's really the evolving standard that is a problem. With so many products attempting to provide

Re: error with javac

2007-12-03 Thread David Smith
1. You didn't include a package directive in your source. You really should package your sources. 2. How are you compiling these? Most people use an IDE or let a build tool like maven or ant do the ugly heavy lifting for them. From your description you seem to be doing this by hand.

Re: Yet again a problem with POSTs and encodings

2007-12-03 Thread Mark Thomas
Александър Шопов wrote: However as this seems a frequent misunderstanding and request - will it be possible to ship such a filter as an example with Tomcat? You mean like the one that has been there for as long as I can remember?

Re: Hundreds of Instances

2007-12-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Breno, Breno Jacinto wrote: I have an application running under Tomcat for a couple of months now, and itś always been memory intensive (I run it in a combination with Apache2 + JK + Berkeley DB XML in the backend). But from a few days to

Session Replication not working ?

2007-12-03 Thread mfs
Guys, I have setup a cluster where i have two tomcat instances (one on windows and the other on linux), the two instances are able to detect each other and form a cluster. On top of them i have apache/mod_jk as a load-balancer which has sticky-sessions set to FALSE...I am trying to test this

Re: Still trying to log using org.apache.juli.FileHandler ...

2007-12-03 Thread Albretch Mueller
~ /META-INF directory you say? Isn't /META-INF a special descriptor folder in WAR files? ~ This is what I read from the latest final release of the Servlet Specification ~ // __ SRV.9.6 Web Application Archive File, page: 71 ~ SRV.9.6 Web Application Archive File Web applications can be

Re: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?

2007-12-03 Thread Delian Krustev
On Thu, 29 Nov 2007 07:51:07 + Mark Thomas wrote: It should show more information. If there is something subtle going on with the permissions then it should make it easier to figure out. The container has been restarted today. Oddly enough the exception does not show now. I'll keep the

RE: Still trying to log using org.apache.juli.FileHandler ...

2007-12-03 Thread Caldarale, Charles R
From: Albretch Mueller [mailto:[EMAIL PROTECTED] Subject: Re: Still trying to log using org.apache.juli.FileHandler ... /META-INF directory you say? Isn't /META-INF a special descriptor folder in WAR files? Yes, and also in expanded .war files. That's where Tomcat will look for the

Re: Compliments Of The Season

2007-12-03 Thread Tony Anecito
Whatever happened to the Elves Union? Maybe Rudolf's incandesent nose will be out and the new red led one on backorder. Have a Happy Holiday and give Santa our best (all the Tomcat team is on his good list right?). -Tony --- [EMAIL PROTECTED] wrote: Same to you unfortune I will be working on

Re: Split Tomcat standard out into files for each context in 5.5

2007-12-03 Thread Mark Thomas
Christopher Schultz wrote: Jason, Jason Perrone wrote: Please forgive me if this question was already answered. I use log4j in my application, but still you always have some log messages that end up in stdout. For these, and for all messages that end up in stdout, I would like there to

Re: Still trying to log using org.apache.juli.FileHandler ...

2007-12-03 Thread Albretch Mueller
/META-INF directory you say? Isn't /META-INF a special descriptor folder in WAR files? Yes, and also in expanded .war files. That's where Tomcat will look for the context.xml file; read the doc: http://tomcat.apache.org/tomcat-6.0-doc/config/context.html ~ I see! and thank you! The

RE: Confusing Tomcat Error: SEVERE: Error listenerStart

2007-12-03 Thread MassimoH
That worked! I can't imagine what the issue was, but now that it's working smoothly, it's not worth investigating further. Thanks! Caldarale, Charles R wrote: Try installing an undbundled Tomcat from tomcat.apache.org, rather than any 3rd-party repackaged version, even the one with

Re: How can I exclude in url-pattern for filters in Tomcat 5.5.20?

2007-12-03 Thread Martin Gainty
good question 2 options implement with resin http://www.caucho.com/resin-3.0/config/webapp.xtp#filter-mapping OR a filter which which parses RegularExpresssions (as with urlrewrite.xml configuration from tuckey) http://tuckey.org/urlrewrite/ e.g. [^.earth] Anyone else? M- - Original

Re: Hundreds of Instances

2007-12-03 Thread Breno Jacinto
Hi Christopher, 2007/12/3, Christopher Schultz [EMAIL PROTECTED]: You are probably seeing 170 threads, not 170 Tomcat instances. Yes, you're right. I used instances because thats what tomcat says when it's shutting down. Tomcat itself is extremely stable. This is most likely an

Re: Hundreds of Instances

2007-12-03 Thread Breno Jacinto
Hi, Just one curiosity came to my mind: when does tomcat creates a new thread, and when and how does it get deallocated? If this is not a question for this list, please ignore it. cheers, -- :: Breno Jacinto :: :: breno - at - gprt.ufpe.br :: :: FingerPrint :: 2F15 8A61 F566 E442 8581

RE: Hundreds of Instances

2007-12-03 Thread Caldarale, Charles R
From: Breno Jacinto [mailto:[EMAIL PROTECTED] Subject: Re: Hundreds of Instances They get very, very slow because Linux starts to swap like crazy, after the Tomcat process eats almost 100% of RAM. If you're encountering significant swapping with your current heap and RAM sizes, you might

RE: Hundreds of Instances

2007-12-03 Thread Caldarale, Charles R
From: Breno Jacinto [mailto:[EMAIL PROTECTED] Subject: Re: Hundreds of Instances when does tomcat creates a new thread, and when and how does it get deallocated? This is controlled by the maxThreads, maxSpareThreads, and minSpareThreads attributes of Connector elements:

Preventing War files from redeploying

2007-12-03 Thread primus
I'm not very familiar with Tomcat, I've tried reading up on this but cannot find an answer..that said, here is my question: I'm in a position where I need to update single .jsp files now and then on a production server. However if I do this and the server crashes or restarts for some reason

OCI vs THIN

2007-12-03 Thread Rumpa Giri
For production environment it has been recommended that we use OCI driver. Based on the oracle JDBC guide, with oracle 10g there is not much difference in the two drivers in terms of capability. We would like to know is there any documentation/links/whitepapers on the above? Is there any data

Re: OCI vs THIN

2007-12-03 Thread Alexey Solofnenko
We evaluated OCI driver ourselves and found that it has only one benefit - external OPS$ account support. Otherwise THIN driver requires less maintenance, less installation and it is often faster, because it brings some datatypes inline (LONG, if I am not mistaken). - Alexey. Rumpa Giri

Re: How can I exclude in url-pattern for filters in Tomcat 5.5.20?

2007-12-03 Thread Bill Barker
You can't do it from the config alone (the spec doesn't have exclude mappings). You would need to do it from within your Filter code, e.g.: public class RewriteFilter implements Filter { public void init(FilterConfig conf) { // init logic here } public void destroy() {

RE: Preventing War files from redeploying

2007-12-03 Thread Caldarale, Charles R
From: primus [mailto:[EMAIL PROTECTED] Subject: Preventing War files from redeploying Is it possible to have tomcat not redeploy the last war and just start up with the existing files? Not redeploying from the .war is Tomcat's normal behavior, at least for the 5.5 and 6.0 versions. Since

Error receiving message body -1 2

2007-12-03 Thread Ducky
Hello, Where can I find out about the error codes? I just know that -1 represents connection closed by remote host, but I can't find what errno 2 represents. Thanks, D - To start a new topic, e-mail: users@tomcat.apache.org To

Re: Yet again a problem with POSTs and encodings

2007-12-03 Thread Alexander Shopov
Hi Mark, You mean like the one that has been there for as long as I can remember? Exactly the same. I will file an enhancement request in Bugzilla for the FAQs to be updated. Will that be the best strategy? Kind regards: al_shopov

How to config tomcat 5.5 to display project in sub directory in url

2007-12-03 Thread Tim
Hi, I want to display my project projectName in the url like http://localhost/aa/projectName. There's only one project projectName on the host. I know how to deploy it to http://localhost/projectName directly under the host but how to tell tomcat about the path /aain the middle? I tried to write

RE: How to config tomcat 5.5 to display project in sub directory in url

2007-12-03 Thread Caldarale, Charles R
From: Tim [mailto:[EMAIL PROTECTED] Subject: How to config tomcat 5.5 to display project in sub directory in url I tried to write context: Context docBase=war path=/aa/projectName reloadable=true/ in \conf\Catalina\localhost\projectName.xml but doesn't help. 1) Take out the path