JK2/tomcat 4.1.18 - broken pipe problem

2003-01-02 Thread Jesper Birch
Hi, I have setup a environment with Apache 2.0.43, Tomcat 4.1.18 and JK2 connector. Everything seems to work fine, except an error message I get time to time in my logs: 2003-01-02 05:55:56,681 [Thread-49] ERROR org.apache.jk.server.JkCoyoteHandler - Error in action code

Tomcat and IIS configuration problem

2003-01-02 Thread Richard Warwick
I'm trying to configure IIS 6.0 with Tomcat server 4.x (also tried with IIS 5.0) Essentially the isapi_redirector.dll (recent build) does listen on port 8009 but if I try to browse to a .jsp page then I get back error 404 (page cannot be found). The log file pertinent to Tomcat is not being

Tomcat and IIS configuration problem [RBS2003010200002355]

2003-01-02 Thread techassistance
Ahoy there! This is an automated response, to let you know that we have received your query and will answer your email as soon as possible. We know you'd like to get back to playing our state-of-the-art online games. We'd therefore like to assure you that we are determined to keep our service at

Tomcat configuration? Unable to find packages or classes

2003-01-02 Thread Bowsher, Jason P
Hello, I am having trouble getting Tomcat to find my class and jar files when compiling custom jsp pages (Tomcat examples work fine). Having spent a week or so looking at this I am hoping someone can help or point me in the right direction. I get the following error from

can't start unixsocket

2003-01-02 Thread Gery Kahn
trying to start tomcat 4.1.17 to listen to unixsocket Have errors from catalina.out: Jan 2, 2003 10:43:50 AM org.apache.jk.server.JkMain start INFO: APR not loaded, disabling jni components: java.io.IOException: /usr/local/apache/libexec/jkjni.so: /usr/local/apache/libexec/jkjni.so: undefined

Realm not working now I've moved from Win2K to Linux

2003-01-02 Thread Ben Jessel
Hi, I have a JDBC realm set up that interfaces with a mysql database in tomcat 4.0 on a windows 2000 server. This has been working fine - I place my pages under the security constraint, and I am forwarded to the login page o.k. Entering my details then puts me to the 'login correct' page, and

jdbc: can't connect to mysql server on port...

2003-01-02 Thread John
I'm running tomcat 4.0.3 on debian woody with apache and mysql on the same box. I can connect to mysql from another machine via tcp/ip on port 3306, and from perl and php4 scripts. When I try this code under tomcat, i get an error about 'can't find a mysql server on port 3306'

JK2/tomcat 4.1.18 - broken pipe problem

2003-01-02 Thread Jesper Birch
Hi, I have setup a environment with Apache 2.0.43, Tomcat 4.1.18 and JK2 connector. Everything seems to work fine, except an error message I get time to time in my logs: 2003-01-02 05:55:56,681 [Thread-49] ERROR org.apache.jk.server.JkCoyoteHandler - Error in action code

Re: OK.. what did I do wrong...

2003-01-02 Thread Lacoste (Frisurf)
Do you have a link that shows how to switch to using the CoyoteConnector with JK, since apparently JK2 is still not ready for production...? Can somebody else confirm the state of JK2 vs JK? Cheers, Jerome -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands,

Two instances of servlet gets created

2003-01-02 Thread Mohit Garg
I have startup servlet for which one instance is created as soon as my tomcat starts. But on the first request to the servlet there is another instance created. i.e Another time init() is called for the servlet. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands,

Parse error in application web.xml

2003-01-02 Thread Keshava Murthy
Hi, I installed Tomcat 4.1.18 and when I try to start the servlet engine I am getting the following error - 003-01-02 17:44:36 ContextConfig[/admin]: Occurred at line 1 column 32003-01-02 17:44:36 ContextConfig[/admin] Parse error in application web.xmlorg.xml.sax.SAXParseException: The

RE: OK.. what did I do wrong...

2003-01-02 Thread Turner, John
Disable (comment out) the AjpConnector on port 8009 (or whatever JK port you are using). Enable the CoyoteConnector on port 8009, there is one in the default server.xml. In fact, the CoyoteConnector on 8009 is the default...in order to use Ajp13Connector, you either have to disable the

RE: running tomcat as a non-root user?

2003-01-02 Thread Turner, John
Not really. sudo is more for running tasks as another user, typically root, that have some endpoint. Since Tomcat is a service, you are better off creating a start script that does something like: su - tomcat -c $CATALINA_HOME/bin/startup.sh If you run the startup script as root, the - tomcat

RE: OK.. what did I do wrong...

2003-01-02 Thread Turner, John
From: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 1/ This is the 2.0.1 release of JK2. The JK2 should be considered initial-release quality code. It has not been subjected to the same stresses on its stability and security that the mod_jk releases have enjoyed,

RE: Parse error in application web.xml

2003-01-02 Thread Bowsher, Jason P
I had a very similar problem (although not eactly the same). I think, for me, this was a bug in xerces. I upgraded from http://www.jpackage.org/rpm.php?id=571 xerces-j2-2.2.1-1jpp to http://www.jpackage.org/rpm.php?id=571 xerces-j2-2.2.1-2jpp from jpackage.org to fix it. Hope it helps

RE: can tomcat do dynamic virtual hosts?

2003-01-02 Thread Turner, John
Since a virtual host in Tomcat requires a Host element in server.xml, that means a restart. If you use the ApacheConfig option for JK, adding the new Host is picked up automatically , and the corresponding Apache config directives are generated. Then a /path/to/apache/bin/apachectl graceful

RE: Tomcat, Apache and PHP

2003-01-02 Thread Turner, John
OK, conversely, is there configuration for PHP that would skip picking up a URL that is IP-only for the PHP processor? I'm not that familiar with PHP configuration, I'm assuming it's done by file extension. Is that extension map happening for all of Apache, or just specific virtual hosts? John

Can tomcat listen only to unix socket?

2003-01-02 Thread Gery Kahn
I am trying to config Tomcat 4.1.17 to listen only unix socket, without TCP sockets. How to config connectors in server.xml? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: service() method called Twice when using creating response with MIME type application/x-shockwave-flash

2003-01-02 Thread Cox, Charlie
I had the same problem with a .exe download and what I did was allowed tomcat to serve the file from the filesystem so I didn't have to deal with Range and other http features. Then I used a filter for my rules(custom login, etc) Charlie -Original Message- From: Bill Barker

RE: Running Jsp?

2003-01-02 Thread mmartinez
This is one of the best beginner JSP book I have seen. It does not cover very complex subjects but it does a good job in the basics. JSP Examples and Best Practices by Andrew Patzer ISBN: 1590590201 http://stardeveloper.com:8080/articles/index.html?category_id=21 Mariano Martinez Systems

NTLM / Connection: Keep-Alive / HTTP 1.0

2003-01-02 Thread Endre Stølsvik
We're having a problem surrounding Tomcat when using NTLM authentication (Windows NT/2000 single sign-on through IE), when Internet Explorer decides that it should use HTTP 1.0. The problem is that NTLM _must_ go three times back-and-forth on the same connection. It is a connection-level

Apache 2+Tomcat 4.1.12: how to disable the Coyote HTTP connector?

2003-01-02 Thread Manuel González Castro
Hi, I'm running Apache HTTP Server 2.0.43 + Tomcat 4.1.12 + mod_jk and everything is working fine, Apache can talk to Tomcat to serve *.jsp pages. Now I'd like to disable the default non-SSL Coyote HTTP/1.1 Connector on port 8080 because I don't like everybody getting into

Re: Two instances of servlet gets created

2003-01-02 Thread Andreas Probst
Hi, do you call your servlet by the pattern defined in web.xml or by the full path with invoker servlet? I once read, that using the invoker servlet means creating a new instance of your servlet. Maybe that's what causes the second init(). Hope this helps Andreas On 2 Jan 2003 at 17:22,

RE: Apache 2+Tomcat 4.1.12: how to disable the Coyote HTTP connector?

2003-01-02 Thread Turner, John
That is how you disable the connector on 8080. All you do is comment it out. My guess is that you don't have the comment marks in the right place, breaking your server.xml file. John -Original Message- From: Manuel González Castro [mailto:[EMAIL PROTECTED]] Sent: Thursday, January

Time Out

2003-01-02 Thread Richard Johnstone
Hi, I have just built a new webserver and I am having a strange problem. The first few times I try to call a servlet it times out. Then eventually it will just call as normal and run ok. Then when I leave it for a while and come back I get the same issue. I looked in the logs and this was the

RE: JK2/tomcat 4.1.18 - broken pipe problem

2003-01-02 Thread Venkat Reddy Valluri
Even I too got the same problem with configuraion of apache 2.0.40, tomcat 4.0.4 and j2sdk1.4.1(sun jvm) on redhat 7.3 but when I replaced sun jvm with ibm jvm, surprisingly I didn't get this problem, I am not sure here but what I thought is sun jvm can't support green threads on redhat

RE: Two instances of servlet gets created

2003-01-02 Thread Gavin, Rick
I have also been seeing this, I think since I have upgraded from 4.1.12. I have a startup servlet that creates a singleton object i use for system properties, and it calls the createInstance of the singleton twice at startup now. Rick -Original Message- From: Mohit Garg [mailto:[EMAIL

JasperException

2003-01-02 Thread Denise Mangano
I'm having a hard time figuring out what's causing this error so I thought I'd post it to see if anyone has any ideas... When my form page is called, I pass two variables in the URL. These two variables are hidden within the form page. I need to maintain the value of these two variables, along

Problem with startup

2003-01-02 Thread seemanto
hi i am new to tomcat. The problem is i am not able to startup the server and it is exiting with an exception which says : Error loading server.xml. I haven't touched server.xml after installation. what could be the problem. bye -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

how to get meaningful exception in JSP error page

2003-01-02 Thread Brian W. Young
Happy New Year, I'm using the errorPage=my_own_error.jsp technique. However, the exception object in my_own_error.jsp gives me the only the Jasper stack trace. It doesn't include info on what part of my own code bombed. I've tried getCause() on exception but it isn't yielding much. I

Re: running tomcat as a non-root user?

2003-01-02 Thread Ben Ricker
On Tue, 2002-12-31 at 18:13, waimun wrote: P.S. Btw, does anyone know is there a way where I could run w/o login/su'ing to normal user; ie as root, fire up startup.sh but processes created will be by owner of the tomcat files? Just create a init-like script that calls the startup.sh using

Release of memory

2003-01-02 Thread Øyvind Hvamstad
Hi, I have a servlet that is generating reports on demand from a client program. I'm using tomcat as servlet container, xml and xsl to generate fo and fop to give me pdf. The reports tend to be big and memory is being exhausted. Can anyone tell me how to make tomcat release memory after a servlet

RE: Release of memory

2003-01-02 Thread Shapira, Yoav
Hi, Can anyone tell me how to make tomcat release memory after a servlet is You can't. finished? Now tomcat simply hold it and sooner or later my server starts to swap processes because of it. It does so even if I force GC at the You can't force GC. System.gc() is only a suggestion to the

ERROR: Receiving from Tomcat failed recoverable operation, err=0

2003-01-02 Thread Rob Cartier
[ Wed Jan 01 22:15:31 2003 ] [jk_ajp_common.c (681)]: ERROR: can't receive the response message from tomcat, network problems or tomcat is down. [ Wed Jan 01 22:15:31 2003 ] [jk_ajp_common.c (1050)]: Error reading reply from tomcat. Tomcat is down or network problems. [ Wed Jan 01 22:15:31 2003 ]

Re: Apache 2+Tomcat 4.1.12: how to disable the Coyote HTTP connector?

2003-01-02 Thread Jerry Ford
Looks like you conmmented out the wrong connector. The one you have removed is identified as the one for port 8009, which is the one Apache uses. Restore that connector and comment out the one that is identified as for port 8080. Jerry Manuel González Castro wrote: Hi, I'm running Apache

Re: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-01-02 Thread Anastasios Angelidis
Doh! Teach me for staying up so late :P Thanks it works. shawn wrote: Try changing this value ResourceParams name=jdbc/TestDB Shouldn't it be jdbc/InfectedDB ? That's my guess. Shawn On Thu, 2003-01-02 at 12:29, Anastasios Angelidis wrote: Hi I downloaded the MySQL Connector/J 2.0.14

RE: ERROR: Receiving from Tomcat failed recoverable operation, err=0

2003-01-02 Thread Rob Cartier
Found it:) !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8009 minProcessors=5 maxProcessors=75 enableLookups=false redirectPort=8443 acceptCount=10 debug=0

RE: Release of memory

2003-01-02 Thread Øyvind Hvamstad
I have to specify that the servlet is done! And the next time the servlet is run (another tomcat thread) the memory usage starts at the percentage used by the former run. Say, if I want a report and that takes up about 50% of memory, and then you want the same. Then you will take the memory up to

RE: can tomcat do dynamic virtual hosts?

2003-01-02 Thread Craig R. McClanahan
On Thu, 2 Jan 2003, Turner, John wrote: Date: Thu, 2 Jan 2003 08:05:18 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: can tomcat do dynamic virtual hosts? Since a virtual host in Tomcat

RE: Release of memory

2003-01-02 Thread Shapira, Yoav
Howdy, Not much clearer, but I'll try to explain a bit more ;) I have to specify that the servlet is done! And the next time the servlet is run (another tomcat thread) the memory usage starts at the It may not be another tomcat thread. And conversely, it may be a different (possibly new)

Re: Can tomcat listen only to unix socket?

2003-01-02 Thread Craig R. McClanahan
On Thu, 2 Jan 2003, Gery Kahn wrote: Date: Thu, 02 Jan 2003 15:29:22 +0200 From: Gery Kahn [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Can tomcat listen only to unix socket? I am trying to config Tomcat 4.1.17 to listen

RE: is this normal??

2003-01-02 Thread Randy Paries
I have a pretty busy web server It has apache and tomcat What I am trying to find out if I have a problem or not I am linux guy but not at the tuning level When I do a top I get: These top 4 are always at the top 29616 apache25 0 87368 78M 14256 R46.8 7.8 388:13 java 2290 apache25

RE: JK2/tomcat 4.1.18 - broken pipe problem

2003-01-02 Thread Jesper Birch
Hi Thx for the suggestion... I forgot to write that I have the problem on Solaris 7... /Jesper Birch -Original Message- Even I too got the same problem with configuraion of apache 2.0.40, tomcat 4.0.4 and j2sdk1.4.1(sun jvm) on redhat 7.3 but when I replaced sun jvm with ibm

Re: Realm not working now I've moved from Win2K to Linux

2003-01-02 Thread Gary Gwin
Ben, Can you see in your Tomcat log files if you are being forwarded back to the original request page after authentication? If yes, and you are being authenticated as you indicate, this sounds like the state is somehow being lost. In this case, you might be in a forwarding loop between the

RE: Release of memory

2003-01-02 Thread Øyvind Hvamstad
-Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] It may not be another tomcat thread. And conversely, it may be a different (possibly new) instance of your servlet. Does your servlet implement SingleThreadModel? No it does not! That would mean bad performance. I

RE: is this normal??

2003-01-02 Thread Ben Ricker
There is probably a problem going on there. I find it strange that you have so much cumulative CPU time on the httpd processes. To me, they look hung (in so far as I can tell). Since most apps are transactional in nature (i.e., individual requests being fulfilled rather quickly), you would expect

RE: Release of memory

2003-01-02 Thread Craig R. McClanahan
On Thu, 2 Jan 2003, Øyvind Hvamstad wrote: But if tomcat releases the reference to the servlet, the hole thing should be garbage collected. Tomcat does not release references to the servlet. In fact, it's totally up to the container (not to you) to decide how long a servlet instance will

JDBCRealm

2003-01-02 Thread Rob Abernethy IV
I'm trying to set up a JDBCRealm for use with the admin and manager webapps. The problem is that I am unable to authenticate any users. - Tomcat 4.1.18 - Postgresql 7.3.1 - JDBC driver is in $CATALINA_HOME/common/lib - Tomcat starts up fine, I just can't authenticate - I can directly connect to

top command shows memory usage of java process is two times more than what actually java heap is taking

2003-01-02 Thread Venkat Reddy Valluri
Hi, When I run top command on linux, it is showing memory usage of java process is two times more than what java heap is taking, I got java heap size inside java program using Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); I didn't understand why it is showing

Code works in editor, but not through Tomcat - Please help!

2003-01-02 Thread Denise Mangano
Hi all. This one's kind of urgent because its holding up the rest of my project... I'm not sure I understand why this is happening. I have a bean that I use for form validation. When I test the code locally using an editor and hard coding variable values, the code runs perfect and all

RE: can tomcat do dynamic virtual hosts?

2003-01-02 Thread Turner, John
H...interesting point. What does the admin webapp do, then, that you couldn't do from the command line? Is there something similar to Apache's 'apachectl restart' for Tomcat? Can you call the admin webapp with a URL and have it do things? If so, that's the answer to the original

RE: Apache 2+Tomcat 4.1.12: how to disable the Coyote HTTP connector?

2003-01-02 Thread Turner, John
He wants Ajp13Connector to be his only connector. He wants to disable CoyoteConnector on port 8080, but is getting an error message when he tries to do so. John -Original Message- From: Jerry Ford [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 02, 2003 11:30 AM To: Tomcat

jdbc, mysql and character encoding

2003-01-02 Thread [EMAIL PROTECTED]
I've my jsp, where I simply want to fill a table with some italian characters: % Class.forName(com.mysql.jdbc.Driver).newInstance(); Connection conn = DriverManager.getConnection (jdbc:mysql://localhost:3306/jdbctest?useUnicode=truecharacterEncoding=ISO-8859-1, usrjdbc, pwd); Statement

Jakarta Connectors build error

2003-01-02 Thread David Orriss Jr
Hi, When I try to build the libjkjni.so library I'm getting this set messages/errors: -lcrypt -L/usr/local/apache2/lib -lapr -Wl,-soname -Wl,libjkjni.so -o .libs/libjkjni.so [so] StdErr: [so] /usr/bin/ld: cannot find -lapr [so] collect2: ld returned 1 exit status BUILD

RE: is this normal??

2003-01-02 Thread Randy Paries
I am running jakarta-tomcat-4.0.4 jdk1.3.1_04 apache-1.3.27-2 I have enabled server stats (thanks Jan) I stop and started and it is back to normal. So when this does this again, I will see if the server status helps Thanks for all the suggestions Randy -Original Message- From:

RE: can tomcat do dynamic virtual hosts?

2003-01-02 Thread Craig R. McClanahan
On Thu, 2 Jan 2003, Turner, John wrote: Date: Thu, 2 Jan 2003 13:51:42 -0500 From: Turner, John [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: can tomcat do dynamic virtual hosts? H...interesting point. What

RE: Code works in editor, but not through Tomcat - Please help!

2003-01-02 Thread Denise Mangano
I tried to echo print the value of the PostalCode after it has been picked up by the bean, by calling jsp:getProperty name=FormHandler property=PostalCode/. And I get an error message stating : org.apache.jasper.JasperException: Cannot find any information on property 'PostalCode' in a bean of

RE: Code works in editor, but not through Tomcat - Please help!

2003-01-02 Thread Denise Mangano
I tried to echo print the value of the PostalCode after it has been picked up by the bean, by calling jsp:getProperty name=FormHandler property=PostalCode/. And I get an error message stating : org.apache.jasper.JasperException: Cannot find any information on property 'PostalCode' in a bean of

Setting root web app. How?

2003-01-02 Thread Anastasios Angelidis
When you start tomcat and then navigate with your browser to http://localhost:8080, you get the tomcat default web app/info pages etc... I want it to go to my web application, so what I did is I backed up the ROOT folder and put my web app in the ROOT folder. Is this the correct method or is

RE: is this normal??

2003-01-02 Thread Ben Ricker
I found a trick that might help: up your sar reports to take a snapshot every minute. Then, when you notice the CPU pegging, go through the sar reports for CPU usage and try to find the minute that they start. Then, you can go back through the Apache access logs (mod_jk.log perhaps), etc. to see

RE: Code works in editor, but not through Tomcat - Please help!

2003-01-02 Thread Hamilton, Andrew
Denise, I had the same problem once. All my calls to getProperties were coming back null. It turned out to be a pathing issue in my form. I'm not sure why it even ran the JSP with the incorrect path inside ACTION parameter of the form but it did run and it returned null values for all the

Re: jdbc, mysql and character encoding

2003-01-02 Thread Anastasios Angelidis
Well I know for a fact that if you are using windows, the console window canot display extended characters. Only the standard ASCII chars... It doesnt really matter, as long as you get the desired result in your application... All characters in the end are bytes, a byte is a byte it all

Re: Tomcat, Apache and PHP

2003-01-02 Thread John Bell
John, I changed the order of Virtual Hosts in httpd.conf and put the PHP site as the first one - which becomes the default - and now the JSP site is served by Tomcat and the PHP site is at least found by Apache. I guess there is something not quite right as the site should have been picked up

RE: Code works in editor, but not through Tomcat - Please help!

2003-01-02 Thread Denise Mangano
I will look into all that you suggested. The weird thing is though, that it only happens with those three parameters. Everything else goes through fine. I checked the form code for differences between other parameters and the three offending parameters, but everything is the same Thanks.

Re: can tomcat do dynamic virtual hosts?

2003-01-02 Thread Joseph Shraibman
Apache already supports dynamic virtual hosting. See http://httpd.apache.org/docs-2.0/vhosts/mass.html. That's what I'm talking about. The problem is that when connecting apache to tomcat you can't map into a contect directly, you only pass the request along to tomcat so somcat has to find the

OT - java:comp/env issues in standalone unit testing

2003-01-02 Thread Mark
I'm trying to set up standalone Ant-JUnit testing for our model objects which can be tested independent of our controller/view components. Problem is we have a lot of environment env-entry properties in web.xml, such as DAO class names used in factories and other run-time stuffso we have

Re: JDBCRealm

2003-01-02 Thread Rick Fincher
Hi Rob, Try it in clear text without the MD5 digest, to verify that your password, username, role, etc are correct. I had a lot of problems with digesting. Also some databases return column names in upper case even if they are in lower case so you may want to try all caps on your db column

Re: Tomcat, Apache and PHP

2003-01-02 Thread John Bell
John, I changed the order of Virtual Hosts in httpd.conf and put the PHP site as the first one - which becomes the default - and now the JSP site is served by Tomcat and the PHP site is at least found by Apache. I guess there is something not quite right as the site should have been picked up

RE: can tomcat do dynamic virtual hosts?

2003-01-02 Thread Turner, John
Hmmm...you lost me there. Yes, you do map to a Context directly, at least you do with JK. That's exactly what having a JK block for /examples, does, for example. With Apaches 'apachectl restart' or 'apachectl graceful' you can pick up both new virtual hosts and new JkMounts for those virtual

RE: Code works in editor, but not through Tomcat - Please help!

2003-01-02 Thread Denise Mangano
That seemed to do it. I know of naming conventions when writing Java programs, but have never seen an instance that the naming convention was an absolute rule. Thanks for your help :) Completely off topic - but can you suggest a good JSP editor? Coding in a plain text editor like notepad can

RE: Code works in editor, but not through Tomcat - Please help!

2003-01-02 Thread Hamilton, Andrew
I use NetBeans www.netbeans.org. It is a nice java IDE. It is open source so does have its issues. But it does a lot of stuff for you. You just have to take some time to get used to it. Drew -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED]] Sent: Thursday, January

Easy question - Java Beans

2003-01-02 Thread Denise Mangano
Just curious if anyone knows how to use bean properties so that on a retry of a form, the previously selected item in a select list is maintained if validated. For example, for Select Your State. If I select NY, but something else on my form is wrong, when Retry.jsp is brought up, the State

ManagedBean is not found

2003-01-02 Thread John B. Moore
Tomcat 4.1.18 Apache 2.0.43 Connectors - 4.1.18 (mod_jk.so) (all build from source) (followed the J Turner Howto's) Getting the error.. ManagedBean is not found with Ajp13Connector Anyone have some suggestions on what might be configured wrong.. We keep looking at it and is all seems to be

RE: Code works in editor, but not through Tomcat - Please help!

2003-01-02 Thread Denise Mangano
Thanks Drew - I will definitely check it out because I am NOT happy with JBuilder at all. I would be lost without this list!! Thanks :) Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -Original Message- From: Hamilton, Andrew [mailto:[EMAIL PROTECTED]] Sent: Thursday,

RE: Easy question - Java Beans

2003-01-02 Thread Brandon Cruz
Here's a sample from a form that uses states. The states are generated from a class to keep less java on the jsp page, but you can see how the options are generated and set to selected if they match the value in the bean. select tabindex=7 name=State option value=

Re: ManagedBean is not found

2003-01-02 Thread David Orriss Jr
John, Say, don't I know you? ;) John Turner answered this exact same question for me... If you're using Ajp13Connector, comment out (disable) the lines in server.xml having to do with MBeans. Or, leave the MBeans lines alone, and use CoyoteConnector which is fine for JK or JK2. John On

Re: Easy question - Java Beans

2003-01-02 Thread Charles Baker
--- Denise Mangano [EMAIL PROTECTED] wrote: Just curious if anyone knows how to use bean properties so that on a retry of a form, the previously selected item in a select list is maintained if validated. For example, for Select Your State. If I select NY, but something else on my form is

Re: Code works in editor, but not through Tomcat - Please help!

2003-01-02 Thread Carl
Denise, I use Dreamweaver for presentation, SunOne (which is based on NetBeans) to manage the project and CodeWright from StarBase as the text editor (it is far and away better than the editor in JBuilder or SunOne.) Carl - Original Message - From: Denise Mangano [EMAIL PROTECTED] To:

Memory Usage and Garbage Collection

2003-01-02 Thread Brandon Cruz
Do loaded jsp pages and/or class files ever get garbage collected when tomcat is running? We have a production server with several hundred virtual hosts per host, each with a fair share of jsp pages and with moderate to low traffic per host. As time goes on, the amount of memory being used

Connector Problem, has anyone seen this behavior?

2003-01-02 Thread Brandon Cruz
Every once in a while, we get a strange error from tomcat when using apache 1.3, tomcat 4.1.18, and mod_jk(which was compiled for tomcat 3.2.4 initially)... [INFO] ChannelSocket - -server has been restarted or reset this connection Whenever this error shows up, the browser returns a cannot find

Re: reducing tomcat jasper memory footprint

2003-01-02 Thread Will Hartung
There are a lot of issues that show up here. 1) Using the JSP means that the entire article text (among other things) is being cached into RAM. 2) Some of the pages are popular enough that they are getting moved into the permanent area of memory, and thus avoiding the routine, cheap GCs. 3) The

Tomcat 5 and CATALINA_BASE/shared/lib problem...

2003-01-02 Thread Jacob Kjome
Hi all, Using Tomcat-4.1.x, I can have separate instances of Tomcat running which access their own shared/lib folder. In Tomcat-5.0 latest nightly build, that doesn't seem to be the case. For instance, using Tomcat-4.1.18, if I have some jars in CATALINA_HOME/shared/lib and I start up a new

RE: Code works in editor, but not through Tomcat - Please help!

2003-01-02 Thread Noel J. Bergman
Denise, When dealing with introspection and reflection, conventions become rules. :-) The code has to know how to map property names to methods. My pleasure to help. I know that area pretty well, having worked on the GNUJSP implementation of that code, and written a database layer that works

RE: Easy question - Java Beans

2003-01-02 Thread Noel J. Bergman
Denise, Start with your basic select tag, and then in your code that emits the list of option tags, do something like this: option value=' + stateCode + ' + ((stateCode.equals(currentStateCode)) ? selected : ) + + stateName + /option In other words, emit the option value='NY'New

Re: JDBCRealm

2003-01-02 Thread Rob Abernethy IV
Ok, I tried cleartext passwords, but I came up with the same result. I don't understand why tomcat is able to start up at all, if the authentication is failing. When I run 'ps' after starting up tomcat, I see this process: 40 S postgres 2825 2758 0 75 0- 2431 schedu 18:12 pts/0

Re: Memory Usage and Garbage Collection

2003-01-02 Thread Craig R. McClanahan
On Thu, 2 Jan 2003, Brandon Cruz wrote: Date: Thu, 2 Jan 2003 16:16:23 -0600 From: Brandon Cruz [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Memory Usage and Garbage Collection Do loaded jsp

RE: Memory Usage and Garbage Collection

2003-01-02 Thread Brandon Cruz
Craig, Thanks for your comments, I still have a few clarification questions. 1)It's not just the classes -- it's the object instances created from those classes that take up space (the bytecodes of the class itself exist only once). ---does this mean that every object instance is never garbage

Re: can tomcat do dynamic virtual hosts?

2003-01-02 Thread Joseph Shraibman
Sorry, having a bad keyboard day. 'contect' should be context and 'somcat' should be tomcat. Joseph Shraibman wrote: Apache already supports dynamic virtual hosting. See http://httpd.apache.org/docs-2.0/vhosts/mass.html. That's what I'm talking about. The problem is that when connecting apache

Re: Memory Usage and Garbage Collection

2003-01-02 Thread Julian Löffelhardt
Looking at the jasper source of tomcat 4.0.4 releasing jsp's seems to be reasonable easy to implement: The Jsp's classloader, the class and the actual jsp-servlet instance are all put together in a JspServletWrapper-Object which itself is stored in the JspServlet (the Servlet used to executing

Re: reducing tomcat jasper memory footprint

2003-01-02 Thread Julian Löffelhardt
Thanks for your Feedback! I will look into your suggested approch using filters. answers inline - Original Message - From: Will Hartung [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, January 02, 2003 11:27 PM Subject: Re: reducing tomcat jasper memory

RE: Memory Usage and Garbage Collection

2003-01-02 Thread Craig R. McClanahan
On Thu, 2 Jan 2003, Brandon Cruz wrote: Date: Thu, 2 Jan 2003 19:04:55 -0600 From: Brandon Cruz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: Memory Usage and Garbage Collection Craig, Thanks for your comments, I still have a few

Did someone manage to use a non default channel port for tomcat4.1.18 JK2/ajp13 ?

2003-01-02 Thread Lacoste (Frisurf)
I finally solved the problem I described in my emails titled: tomcat/apache connector startup failure: NCDFE fpr org/apache/commons/logging/LogFactory sent both to the tomcat-user and tomcat-dev list. I was trying to use a non-default channel port (8019) in my configuration, following a working

Re: Memory Usage and Garbage Collection

2003-01-02 Thread Craig R. McClanahan
On Fri, 3 Jan 2003, Julian Löffelhardt wrote: Date: Fri, 3 Jan 2003 02:01:58 +0100 From: Julian Löffelhardt [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Memory Usage and Garbage Collection Looking at the jasper

Re: reducing tomcat jasper memory footprint

2003-01-02 Thread Will Hartung
From: Julian Löffelhardt [EMAIL PROTECTED] Sent: Thursday, January 02, 2003 5:38 PM Subject: Re: reducing tomcat jasper memory footprint Thanks for your Feedback! Sure! I will look into your suggested approch using filters. answers inline with comments... As of 4.0.4 tomcat keeps a

tomcat binds only to localhost??

2003-01-02 Thread Ronny Haryanto
Hi everyone, I have a strange problem with Tomcat 4.1.18 on Windows 2000. The machine has one ethernet, dhcp enabled, and the primary ip is 192.168.1.2 (LAN) and it is also accessible via 202.157.154.130 and seatech.com. I can only access Tomcat via http://localhost:8080 from the machine

Re: Tomcat 5 and CATALINA_BASE/shared/lib problem...

2003-01-02 Thread Jacob Kjome
Just a little follow-up to what I said below. I had surmised that maybe CATALINA_HOME/shared/lib libraries where simply getting loaded first and maybe CATALINA_BASE/shared/lib libraries that had the same packages wouldn't be loaded because they would only be loaded once by Tomcat. Well,

RE: can tomcat do dynamic virtual hosts?

2003-01-02 Thread Turner, John
I think you're overthinking it. Tomcat != Apache. Webapps != Document Roots. Tomcat needs to do what it needs to do because a web app is more than just a directory that has content in it. You can't map a.myhost.com to /examples/a and b.myhost.com to examples/b for a very good reason. There's

RE: Code works in editor, but not through Tomcat - Please help!

2003-01-02 Thread Turner, John
We use the Sun tool, it used to be called Forte. It's free, I think it is called SunONE or something now. Oracle's tool is free (certain editions) as well, but if you code with it you have to follow special instructions to deploy to Tomcat (instructions are on the Oracle site). There is also

Re: JDBCRealm

2003-01-02 Thread Rick Fincher
Hi Rob, Ok, I tried cleartext passwords, but I came up with the same result. I don't understand why tomcat is able to start up at all, if the authentication is failing. Users are authenticated not Tomcat, so starting Tomcat has nothing to do with authentication. Tomcat is just a Java

tomcat-4.0.3

2003-01-02 Thread sgv -
Hi, I am trying to run a JSP using tomcat-4.0.3 and it gives me the error __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

  1   2   >