Access web from behind a proxy

2004-09-23 Thread Vekemans Tom
Hi, We are dealing with an application which consists of some servlets (running on our Tomcat server) contacting an external server through HTTP calls. We have a proxy server + firewall between our server and the external one, so we *must* pass trough this proxy server. What I am looking for is

Reloading an application via command line

2004-09-23 Thread Bernhard Slominski
Hi, for an automated build process I want to reload an application via command line, is this possible? The possibilties I found out so far were: - ant script - using the tomcat manager Thanks Bernhard Slominski - To

design patterns

2004-09-23 Thread Aris Javier
Hello! J2EE web development has so many design patterns... Which design pattern is the best? or What are the purpose of each design patterns? Do you have any article about this? coz i'm currently using MVC design pattern.. and i would like to study other design patterns.. Thanks in

RE: design patterns

2004-09-23 Thread Vekemans Tom
Aris, A pattern describes a proven solution to a recurring design problem, placing particular emphasis on the context and forces surrounding the problem, and the consequences and impact of the solution. In other words, there is no such thing as a best design pattern, it all depends on the

AW: Documentation for the jkstatus output

2004-09-23 Thread Oliver Braun
Hi again. Is there really nobody who can tell me something about the output of jkstatus? Please help. Kind regards. Olli. Hi all. Who can tell me, where I can find information about the output of jkstatus (documentation, reference)? I have found many sites with instructions about how

RE: design patterns

2004-09-23 Thread Aris Javier
Thanks Tom! Coz im thinking if I need to study struts design pattern if I already know MVC... -Original Message- From: Vekemans Tom [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 3:28 PM To: Tomcat Users List Subject: RE: design patterns Aris, A pattern describes a

Tomcat Hanging up !!!

2004-09-23 Thread Srinivasarao Salla
Hi All, We have integrated two servers the first one is IBM_HTTP_SERVER and Tomcat 3.2.1. Here the IBM server acts the web server and Tomcat as the container for the Servlet and JSP. We could integrate both using the mod_jk connecter and deployed our application.

AW: Tomcat Hanging up !!!

2004-09-23 Thread Steffen Heil
Hi Come on, Tomcat 3.2.1??? This is way tooo old. JDK 1.3.1_13? The same! IBM_HTTP_SERVER? predecessor of Apache httpd? Again. Remove them altogether! Install jdk1.4.2_05 and tomcat 5.0.28. No neither use httpd NOR mod_jk. You will be fine and happy with this. I doublt, you will find someone

Re: how to simply configure log4j in tomcat 5.5 ?

2004-09-23 Thread Remy Maucherat
On Wed, 22 Sep 2004 11:43:51 -0400, Tim Funk [EMAIL PROTECTED] wrote: I'm not sure of the exact syntax .. but try these combinations: http://marc.theaimsgroup.com/?l=tomcat-devm=108808958716712w=2 I've added the category names to the docs for each component (Context, Host, etc), but we would

small but complex problem -jsp.error.badaction when accessing a bean from a jsp

2004-09-23 Thread Dinesh Keesara
Hey can anyone solve this .. I am using Tomcat 4.1.30 on IE I am Getting following error : HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it

Mod_jk installation problems

2004-09-23 Thread Shaun Campbell
I'm struggling to install mod_jk on Tomcat 4.1. I've updated my server.xml file with Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk2.so workersConfig=/usr/local/tomcat/conf/jk/workers.properties

RE: small but complex problem -jsp.error.badaction when accessing a bean from a jsp

2004-09-23 Thread Vekemans Tom
Deenesh, 3 tips, for what they are worth: 1) follow the JavaBean specifications when creating a JavaBean. The class should be serializable, for example. 2) naming conventions: bean properties should start with a lowercase character. In your bean, setRollNo is the setter for property rollNo.

Re: small but complex problem -jsp.error.badaction when accessing a bean from a jsp

2004-09-23 Thread Antony Paul
The problem is at line number 5. org.apache.jasper.JasperException: /idcard.jsp(5,5) jsp.error.badaction You forgot to put % sign. body @page import=com.dinesh.idcard % @page import=com.dinesh.idcard % jsp:usebean id=myidcard scope=page class=com.dinesh.idcard rgds Antony Paul -

Re: small but complex problem -jsp.error.badaction when accessing a bean from a jsp

2004-09-23 Thread Ben Souther
As the error message states, line 5 has a malformed tag. @page import=com.dinesh.idcard Should be: %@ page import=com.dinesh.idcard % On Thu, 2004-09-23 at 07:12, Dinesh Keesara wrote: Hey can anyone solve this .. I am using Tomcat 4.1.30 on IE I am Getting following error :

RE: small but complex problem -jsp.error.badaction when accessing a bean from a jsp

2004-09-23 Thread Vekemans Tom
You will have another error for your usebean tag: it should end with / instead of Tom -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: jeudi 23 septembre 2004 13:59 To: Tomcat Users List Subject: Re: small but complex problem -jsp.error.badaction when accessing a

Classloading, jar-files in shared/lib works only when webapp is placed in $CATALINA_HOME/webapps (tomcat 5.0.28)

2004-09-23 Thread tomcat-user
I tested a very simple servlet application and found that classes in jar-files that are placed in $CATALINA_HOME/shared/lib works just fine when the application is placed under the $CATALINA_HOME/webapps directory. However, if the application is placed elsewhere on the disc, let us say in

RE: Classloading, jar-files in shared/lib works only when webapp is placed in $CATALINA_HOME/webapps (tomcat 5.0.28)

2004-09-23 Thread Vekemans Tom
What happens if you put the jar file(s) in %yourWebApp%/WEB-INF/lib? Tom Vekemans -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: jeudi 23 septembre 2004 14:25 To: Tomcat Users List Subject: Classloading, jar-files in shared/lib works only when webapp is

Re: Access web from behind a proxy

2004-09-23 Thread Andras Balogh
Hello, This is more like a java question, javva has paramters to set up a proxy when making http request (with java.net.URLConnection): -Dhttp.proxyHost=IP-Proxy-Server -Dhttp.proxyPort=PORT-Proxy-Server I hope i understood your problem correctly. Best regards, Andras. Vekemans Tom wrote: Hi, We

RE: Tomcat Hanging up !!!

2004-09-23 Thread Srinivasarao Salla
Hi Steffen, It is a very old server which is used by the company. And the configuration for that is like that. If I install Apache 2.0 and Tomcat 4.1 and use mod_jk that is compatible for that I don't what Issues will be raised by that. More over the previous

Re: Reloading an application via command line

2004-09-23 Thread Anthony E. Carlos
Bernhard: You can use Ant to execute commands from the manager app. So, your possibilities list below is actually just one possibility. Here's a link to the docs: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager- howto.html#Executing%20Manager%20Commands%20With%20Ant I don't know if

RE: [OT] Handling JDBC transactions

2004-09-23 Thread Shapira, Yoav
Hi, I feel JTA is the solution. JOTM have a documentation on how to use it in Tomcat. But requiring to use JNDI is a problem because Tomcat JNDI is not available outside Tomcat and I cannot run unit tests. Thanks for the help. Cactus (as in the Jakarta in-container testing project) is good for

RE: Access web from behind a proxy

2004-09-23 Thread Vekemans Tom
Hi Andras, You understood my problem allright. I have tried to set those parameters but it still didn't work, so I was posting the question to see if there were other things that I should look at. Anyway, thank you for your reply. Kind Regards, Tom Vekemans -Original Message- From:

RE: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread Shapira, Yoav
Hi, My suggestions: pretend DefaultContext doesn't exist. Put the Resource definition in an explicit Context tag for your webapp. Your web.xml is fine, and your code is fine. Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [OT] Handling JDBC transactions

2004-09-23 Thread Antony Paul
Cactus is in-container testing(I assume). Takes time. I want to test code as I write it. Already the development time for deploying an application is high because of having a different source directory than web application directory and of Ant. rgds Antony Paul - Original Message -

RE: design patterns

2004-09-23 Thread Shapira, Yoav
Hi, You're approaching this from a perspective that's fundamentally wrong. Design patterns are not holy grails. They're more like useful tools in your toolbox. With the right tool, you can usually do a better job and do it more efficiently. Don't fall into the buzzword trap. Just because you

RE: Classloading, jar-files in shared/lib works only when webapp is placed in $CATALINA_HOME/webapps (tomcat 5.0.28)

2004-09-23 Thread tomcat-user
Then it works just fine. It also works when the jar is placed in the $CATALINA_HOME/common/lib /Erik On 2004-09-23 Vekemans Tom wrote: What happens if you put the jar file(s) in %yourWebApp%/WEB-INF/lib? Tom Vekemans -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: Access web from behind a proxy

2004-09-23 Thread Andras Balogh
Hello Tom, Where do you set these parameters? We have exactly the same situation here, we are calling an external server's Web Service and works fine. I use Tomcat 5.0.16 and works also with Tomcat 4.1.x. In my catalina.bat file i have: set JAVA_OPTS=-Xms64M -Xmx180M -Dhttp.proxyHost=my.proxy

RE: [OT] Handling JDBC transactions

2004-09-23 Thread Shapira, Yoav
Hi, Cactus is in-container testing(I assume). Takes time. I want to test code as I write it. Already the development time for deploying an application is high because of having a different source directory than web application directory and of Ant. Good luck. If you want to have tests that

RE: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread Vekemans Tom
Hi, My suggestion: package your application the J2EE way. Create a .war file with in it a WEB-INF directory. Put your web.xml under WEB-INF, your classes in WEB-INF\classes (including the package structure) and your jars (driver classes) under WEB-INF\lib Tom -Original Message- From:

RE: Access web from behind a proxy

2004-09-23 Thread Vekemans Tom
Hi Andras, Sounds great, I will give it another shot ;-) Tom -Original Message- From: Andras Balogh [mailto:[EMAIL PROTECTED] Sent: jeudi 23 septembre 2004 15:01 To: Tomcat Users List Subject: Re: Access web from behind a proxy Hello Tom, Where do you set these parameters? We

Re: [OT] Handling JDBC transactions

2004-09-23 Thread Anto Paul
Simulating real world is a QA fellows job. I write code, foresee any bugs that it may have, write tests for it, run tests using Ant, deploy to Tomcat(copy files) and test. Only JSP pages one need to test using a container with every change for- for the visual layout. rgds Anto Paul On Thu, 23

RE: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread Shapira, Yoav
Hi, My suggestion: package your application the J2EE way. Create a .war file with in it a WEB-INF directory. Put your web.xml under WEB-INF, your classes in WEB-INF\classes (including the package structure) and your jars (driver classes) under WEB-INF\lib That, of course, is impossible if you

RE: [OT] Handling JDBC transactions

2004-09-23 Thread Shapira, Yoav
Hi, OK. To each their own testing philosophy ;) Yoav Shapira Millennium Research Informatics -Original Message- From: Anto Paul [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 9:10 AM To: Tomcat Users List Subject: Re: [OT] Handling JDBC transactions Simulating real

RE: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread oxnard
I did try NOT using a DefaultContext, first by putting the context tag in the server.xml then by creating a context file, in my case test1.xml in $CATALINA_HOME\conf\Catalina\localhost . How can I tell if Tomcat is even trying to load the driver? Thanks Pete

RE: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread Vekemans Tom
Thank you Yoav :-) To set up a datasource on Tomcat (container provided connection pooling) the following link might help: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples -howto.html Tom Vekemans -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED]

RE: jk2 over non-default port

2004-09-23 Thread Cox, Charlie
-Original Message- From: Kyle Adams [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 5:49 PM To: [EMAIL PROTECTED] Subject: jk2 over non-default port I've been able to get jk2 running if I use the default port; however, I get these error messages if I try to switch

RE: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread oxnard
I did try what was explained in http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html I could have missed some step I guess. Tom: what would a web.xml file look like if I tried it the J2EE way? -- Original message -- Thank you Yoav :-)

RE: [OT] Handling JDBC transactions

2004-09-23 Thread Shapira, Yoav
Hi, Do you run unit test using Cactus for all code changes ? Just to know ?. I feel that such tools are useful for those who is responsible for integration testing. It's not that simple (at least for me and the organizations I've worked for/with). I don't have the luxury (and few people do) of

RE: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread Vekemans Tom
The web.xml wouldn't change much, just put a resource reference to your datasource web-app descriptionOracle Test App/description [...] !-- other stuff regarding the app -- resource-ref descriptionOracle Datasource example/description !-- use the same name as used in the server.xml

RE: Classloading, jar-files in shared/lib works only when webapp is placed in $CATALINA_HOME/webapps (tomcat 5.0.28), could it be caused by privileged=true

2004-09-23 Thread tomcat-user
When creating my context snippet, i used the snippet for the tomcat admin application as a template. I just realized that I did not remove the attribute ' privileged=true ' When removing this attribute, the application works as expected, that is, classes in jar-files which are located in

RE: jk2 over non-default port

2004-09-23 Thread Kyle Adams
add under your [channel.socket:localhost:60002] host=localhost port=60002 According to the documentation at http://jakarta.apache.org/tomcat/connectors-doc/jk2/jk2/configwebcom.html (under channel.socket): The name of the channels should be: channel.socket:HOST:PORT, where HOST and PORT are

RE: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread oxnard
Wait a minute didn't you say to put the jars (driver classes) under WEB-INF\lib ? -- Original message -- The web.xml wouldn't change much, just put a resource reference to your datasource Oracle Test App [...] Oracle Datasource example jdbc/myoracle

RE: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread Vekemans Tom
As Yoav pointed out, this doen't work if you want to use/set up datasources. In that case you should put the driver jar in $CATALINA_HOME/common/lib/ Tom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: jeudi 23 septembre 2004 15:55 To: Tomcat Users List

Re: [OT] Handling JDBC transactions

2004-09-23 Thread Anto Paul
I don't have any knowledge of Cactus/MockObjects. I had never thought about such a testing strategy. Thanks for the info. Anto Paul On Thu, 23 Sep 2004 09:34:34 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Do you run unit test using Cactus for all code changes ? Just to know ?. I

AW: Tomcat Hanging up !!!

2004-09-23 Thread Steffen Heil
Hi If I install Apache 2.0 and Tomcat 4.1 and use mod_jk that is compatible for that I don't what issues will be raised by that. Right, that is why I suggest using tomcat ONLY. This works, and even when tomcat 3.2.1 might be slower that ibm_httpd, tomcat 5.0 is really fast and is at almost at

RE : Tomcat and LDAP

2004-09-23 Thread LERBSCHER Jean-Pierre
It's automatic. When the user tries to access a protected resource, the server asks him to authenticate himself. -Message d'origine- De : SARMIENTO Claudia COGA [mailto:[EMAIL PROTECTED] Envoyé : mercredi 22 septembre 2004 23:46 À : 'Tomcat Users List' Objet : Tomcat and LDAP

Re: jndi problem

2004-09-23 Thread Atishay Kumar
hi, i solved no DataSource problem. i was putting Resource ../Resource under a context that i had created. now i have it under host tag. i am getting org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' -- now i am

API docs for Mysql JDBC Driver?

2004-09-23 Thread Chuck Carson
Does anyone know where I can find a complete set of API docs for the JConnect Driver 3.x? The docs on the site are lacking and only have simple examples on how to do SELECT's. I am looking for a complete method list or something more detailed. Thanks for any info, rhugga

[OFF-TOPIC] RE: API docs for Mysql JDBC Driver?

2004-09-23 Thread Shapira, Yoav
Hi, Please mark your questions as [OFF-TOPIC] in the subject line if they have nothing to do with Tomcat. Thanks, Yoav Shapira Millennium Research Informatics -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 10:49 AM To: LIST: Tomcat

WebappClassLoader not garbage collected if web app used java.beans.Introspector

2004-09-23 Thread Paulsen, Jay
The java.beans.Introspector class keeps a static reference to a cache of BeanInfo classes. From the javadoc for Introspector: * Because the Introspector caches BeanInfo classes for better performance, * take care if you use it in an application that uses * multiple class loaders. * In

RE: WebappClassLoader not garbage collected if web app used java.beans.Introspector

2004-09-23 Thread Shapira, Yoav
Hi, Instead of requiring the web app to call flushCaches, could Tomcat do it when it shutsdown the webapp and discards the classloader? It could. I was considering that when I attached the info you posted to the relevant Bugzilla issues yesterday. But it's not trivial, because Tomcat might be

JSP/Servlet Version supported? HELP!

2004-09-23 Thread CCNY
Can someone tell me what version of the Servlet and JSP spen Tomcat 4.1 supports? It's the second hald of my dilemma -- Forwarded message -- From: CCNY [EMAIL PROTECTED] Date: Thu, 23 Sep 2004 10:47:53 -0400 Subject: Struts version 1.2.2 and Tomcat 4.1 To: Struts Users Mailing

Re: AW: Tomcat Hanging up !!!

2004-09-23 Thread Wade Chandler
Steffen Heil wrote: Hi If I install Apache 2.0 and Tomcat 4.1 and use mod_jk that is compatible for that I don't what issues will be raised by that. Right, that is why I suggest using tomcat ONLY. This works, and even when tomcat 3.2.1 might be slower that ibm_httpd, tomcat 5.0 is really fast and

RE: JSP/Servlet Version supported? HELP!

2004-09-23 Thread Mike Curwen
did you even try the website? http://jakarta.apache.org/tomcat/ look at that blue table. -Original Message- From: CCNY [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 10:00 AM To: [EMAIL PROTECTED] Subject: JSP/Servlet Version supported? HELP! Can someone tell me

Fwd: JSP/Servlet Version supported? HELP!

2004-09-23 Thread CCNY
oops. Sorry. I just got caught up trying to deploy and got lazy. Sorry about that, all. :-( -- Forwarded message -- From: CCNY [EMAIL PROTECTED] Date: Thu, 23 Sep 2004 11:07:52 -0400 Subject: Re: JSP/Servlet Version supported? HELP! To: Ben Souther [EMAIL PROTECTED] oops.

Tomcat dies at 167M

2004-09-23 Thread Shannon Scott
Greetings, Tomcat is running, and was working fine until the memory usage went up to 167, now none of the .jsp pages will respond ( the server hangs forever ). The last entries from the Catalina.out are : java.lang.OutOfMemoryError java.lang.OutOfMemoryError java.lang.OutOfMemoryError I don't

RE: WebappClassLoader not garbage collected if web app used java.beans.Introspector

2004-09-23 Thread Paulsen, Jay
I suppose Tomcat shouldn't probably do an indiscriminate flushCaches(). It would probably have to selectively clear only the cache entries for classes loaded by the webapp classloader? In the end though, while this fixed by contrived web app I used in the testcases, it still doesn't fix my real

Re: Tomcat dies at 167M

2004-09-23 Thread Jacob Kjome
Quoting Shannon Scott [EMAIL PROTECTED]: Greetings, Tomcat is running, and was working fine until the memory usage went up to 167, now none of the .jsp pages will respond ( the server hangs forever ). The last entries from the Catalina.out are : java.lang.OutOfMemoryError

GSI Web Services with tomcat 5

2004-09-23 Thread Drinkwater, GJ (Glen)
Hi Has anybody achieved GSI delegation with tomcat 5, i have managed it with tomcat 4 (adding the new connectors and values etc to tomcat) but there seems no support or a work around for tomcat 5 yet. Anybody have any more information??? Cheers Glen

RE: jk2 over non-default port

2004-09-23 Thread Cox, Charlie
Well, that is how I have it configured and it works for me with 2.0.48 and 2.0.49(btw - 2.0.51 was removed due to regressions). One thought is that your port number may be too high. I'm not sure what port range jk2 supports, but you may want to try something less than 32767. Also you can set the

Re: [OFF-TOPIC] RE: API docs for Mysql JDBC Driver?

2004-09-23 Thread Chuck Carson
This has everything to do with tomcat. I am using the driver to connect to Mysql from Tomcat. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, Please mark your questions as [OFF-TOPIC] in the subject line if they have nothing to do with Tomcat. Thanks, Yoav Shapira Millennium Research

Re: Tomcat dies at 167M

2004-09-23 Thread Dale Lum
Well it could be because -Xmx256M means absolutely nothing to the VM. You need to use -Xmx256m. Notice the case of the m. It is *very* important. Not according to the docs: -Xmxn Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024

RE: [OFF-TOPIC] RE: API docs for Mysql JDBC Driver?

2004-09-23 Thread Mike Curwen
The API docs for a mysql driver has **nothing** to do with tomcat. Does tomcat distribute the API for mysql drivers?? Perhaps the double star and question marks will convince you. ;) -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23,

Re: Tomcat dies at 167M

2004-09-23 Thread Jacob Kjome
Quoting Dale Lum [EMAIL PROTECTED]: Well it could be because -Xmx256M means absolutely nothing to the VM. You need to use -Xmx256m. Notice the case of the m. It is *very* important. Not according to the docs: Ahh... Then I eat my words. Sorry about that. I don't know why I

[Solved]: Load Balancing Configuration

2004-09-23 Thread Fournier, Pete
I finally have IIS on two machines serving up load balanced requests to two Tomcat machines and maintiaining Sticky Sessions. Below I am including the workers2.properties file that did the trick in case anyone else is having touble doing this. The only other change I had to make was to the

RE: [OFF-TOPIC] RE: API docs for Mysql JDBC Driver?

2004-09-23 Thread Mike Curwen
One answer, btw, is the download contains all the source files. This one time, when I was curious, I built the javadoc. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 12:07 PM To: 'Tomcat Users List' Subject: RE: [OFF-TOPIC] RE:

RE: WebappClassLoader not garbage collected if web app used java.beans.Introspector

2004-09-23 Thread Shapira, Yoav
Hi, You're doing great work on this. I hope you come up with additional findings. The guideline remains to use in-memory reloading judiciously in production applications. Frequently the time to restart Tomcat with a new version of the app is only marginally more than the time to reload the app

RE: GSI Web Services with tomcat 5

2004-09-23 Thread Shapira, Yoav
Hi, Are you saying Tomcat 5 removed something that Tomcat 4 had? Or that your custom solution worked in Tomcat 4 but doesn't work in Tomcat 5? I'm guessing it's the latter. If so, what obstacles have stopped you in Tomcat 5? Yoav Shapira Millennium Research Informatics -Original

RE: jk2 over non-default port

2004-09-23 Thread Kyle Adams
One thought is that your port number may be too high. I'm not sure what port range jk2 supports, but you may want to try something less than 32767. Ding ding ding! That was the ticket! Port 32767 works fine. Port 32768, and channelSocket.open() reverts back to using the default 8009.

sticky sessions with a persistent session manager and a shared file store

2004-09-23 Thread Pablo
Hi Folks, I am a little stumped so I decided to swallow my pride and ask the collective. I am trying to configure tomcat 5.0.25 to have sticky sessions with a persistent session manager and a shared file store. I want to accomplish this using nfs. I set up the tomcat servers , the

Re: Tomcat dies at 167M

2004-09-23 Thread QM
On Thu, Sep 23, 2004 at 12:14:24PM -0500, Jacob Kjome wrote: : Ahh... Then I eat my words. Sorry about that. I don't know why I remembered : the case as being important? Depends on the vendor/version of the JDK... just as some care about the space or equals-sign between the flag and its arg.

RE: Tomcat dies at 167M

2004-09-23 Thread Fournier, Pete
You may be running out of stack, try upping the -Xss setting. In one application where we did a log of XML parsing and transforming we had to up this setting. Peter Fournier -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 11:35 AM

Re: Tomcat dies at 167M

2004-09-23 Thread Peter Lin
I would second that advice. the biggest factor for performance with XML is having a ton of memory. If the application doesn't use XML, I would suggest running some benchmarks with a variety of settings to see which works best. good luck peter On Thu, 23 Sep 2004 15:03:01 -0400, Fournier,

Re: Allowing users of web app to upload files

2004-09-23 Thread Justin Jaynes
I just realized I misspelled Yoav's name in my earlier question. My appologies Yoav. So my question: How do I USE the fileupload Commons package? I don't see any instructions with the COMMONS packages. Thanks for the quick directions in response to my problem. However, I am not familiar with

Re: Allowing users of web app to upload files

2004-09-23 Thread QM
On Thu, Sep 23, 2004 at 12:14:18PM -0700, Justin Jaynes wrote: : So my question: How do I USE the fileupload Commons : package? I don't see any instructions with the : COMMONS packages. I take it, then, you didn't see this? http://jakarta.apache.org/commons/fileupload/using.html If you did

Thanks very much all -- Oracle driver now loading :)

2004-09-23 Thread oxnard
What I changed: Tomcat 5.0.19 which was installed when I installed NetBeans 3.6 To Tomcat 5.0.28 I am unsure if the NetBeans 3.6 caused the issue or something else was. Maybe, the install just went a bit weird on my XP box. What finally made me try a stand alone Tomcat install was the

Re: Allowing users of web app to upload files

2004-09-23 Thread Justin Jaynes
No, in fact I didn't see it. Thank you. If I have any specific questions after reading it, I will ask. Thank you so much. Justin Jaynes --- QM [EMAIL PROTECTED] wrote: On Thu, Sep 23, 2004 at 12:14:18PM -0700, Justin Jaynes wrote: : So my question: How do I USE the fileupload Commons :

Tomcat Repeatedly Hangs.

2004-09-23 Thread Jeffrey Lage
There are any number of postings on this forum about tomcat hanging, but as I think that my situation may be a little different, I am going to post again. I have tried this on the following environments and get similar results: tomcat 5.0.19 on OS X (10.3) tomcat 5.0.28 on OS X (10.3)

Tomcat courses

2004-09-23 Thread Reis, Tom
Do anyone know of any facility in the Illinois area that has technical training for Tomcat.Thanks.

Re: Tomcat Repeatedly Hangs.

2004-09-23 Thread Jeffrey Lage
Here is the full stack trace, as it is often requested: Full thread dump Java HotSpot(TM) Client VM (1.4.2-38 mixed mode): TP-Monitor daemon prio=5 tid=0x00561de0 nid=0x1d1a000 in Object.wait() [f1ba7000..f1ba7b20] at java.lang.Object.wait(Native Method) - waiting on

Re: Tomcat Repeatedly Hangs.

2004-09-23 Thread Filip Hanik - Dev
com.ifs.da.base.action.BaseAction.getDBConnection(BaseAction.java:44) thats where it hangs, trying to connect to the DB Filip - Original Message - From: Jeffrey Lage [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, September 23, 2004 2:52 PM Subject: Re: Tomcat

RE: Tomcat Repeatedly Hangs.

2004-09-23 Thread Shapira, Yoav
Hi, Randomly, and very very frequently, tomcat becomes unresponse and had to be killed with kill -9. I have other web apps running on the same tomcat installations that do not behave this way. So it's clear from the above Tomcat's not as fault, and the fault most likely lies with the one app

RE: API docs for Mysql JDBC Driver?

2004-09-23 Thread John Najarian
Hi Chuck, Here is another link you might find useful. http://www.cs.nott.ac.uk/TSG/manuals/databases/mysql/jdbc/apidoc/ -Original Message- From: Chuck Carson [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 7:49 AM To: LIST: Tomcat User Subject: API docs for Mysql JDBC

Re: Tomcat Repeatedly Hangs.

2004-09-23 Thread Jeffrey Lage
:) first time I have ever looked at one of these dumps, but I assumed that. That method uses some legacy struts code. I am replacing that with my own db connection code. We'll see... Jeffrey A. Lage | International Fund Services (IFS) 12 E. 49Th. St. | 35Th Floor | New York | NY | 10012 (V)

bypassing login page

2004-09-23 Thread Robert Harper
I have a servlet that requires an HTTPS connection and normally forces a browser to log in using a jsp page. I would like to use the same servlet to allow a program to submit a request and retrieve the response without having to navigate through the login page. Is there a way to do this? I

getParameter() should be case insensitive?

2004-09-23 Thread Dave Dribin
Hi all, I need to settle a debate here in the office... HttpServlet.getParamter() is case sensitive, i.e., these are not the same: request.getParameter(name); request.getParameter(Name); This is, however, contrary to other APIs and even the HTML spec (I believe). For example,

Tomcat 5.0 contexts

2004-09-23 Thread Luc Foisy
I just put 5.0.28 on to my box, I was working with 4.x branch. I am not quite sure how to define my contexts any more. I do not see context entries in conf/server.xml, even the documentation make reference to contexts being in this file. I did find conf/Catalina/localhost driectory. I

RE: getParameter() should be case insensitive?

2004-09-23 Thread Shapira, Yoav
Hi, This is, however, contrary to other APIs and even the HTML spec (I believe). For example, Apache::Request treats parameter names as case insensitive: As you noted, the HTML spec doesn't apply to servlet containers, only user agents. What ASP/ASP.NET do is also irrelevant. The Servlet

RE: Tomcat 5.0 contexts

2004-09-23 Thread Shapira, Yoav
Hi, Tomcat 5.0 supports putting Contexts in server.xml just like Tomcat 4.x did. In addition, you can put them in the $CATALINA_HOME/conf/[engine name]/[host name] directory for the engine and host where you want your app deployed. You can also put a META-INF/context.xml file in a WAR and

RE: getParameter() should be case insensitive?

2004-09-23 Thread Robert Harper
Though it may be true that there are not requirements about case insensitivity in the specification, it would be nice to make the world consistent and all it would take is for the developers to start using String.compareToIngnoreCase() instead of String.compareTo(). I would especially like this in

RE: getParameter() should be case insensitive?

2004-09-23 Thread Shapira, Yoav
Hi, I guess the part where I said we didn't have a choice, we must implement the servlet spec as-is, and if you don't like it contact the expert group, wasn't clear? ;) I hope it is now. Yoav Shapira Millennium Research Informatics -Original Message- From: Robert Harper [mailto:[EMAIL

Installing the MySql jdbc driver on XP?

2004-09-23 Thread John Najarian
I am trying to install the JDBC driver on an XP box to use it with a driver manager in Tomcat and to use it as stand alone for simple tests. I find the MySql installation documentation fragmented and difficult to follow. Any ideas would be appreciated. Thanks in advance.

-server vs. -client

2004-09-23 Thread Dale Lum
Hello, I'm trying to better understand the significance of adding -server to CATALINA_OPTS. I found this explanation in the Hotspot FAQ: These two systems are different binaries. They are essentially two different compilers (JITs) interfacing to the same runtime system. The client system is

Re: Installing the MySql jdbc driver on XP?

2004-09-23 Thread Filip Hanik - Dev
there is nothing to do when installing a JDBC driver, especially if it is a type 4. Just copy the JAR file to WEB-INF/lib if you want to use the driver within your webapps, or just add the JAR to your CLASSPATH if you want to run it standalone look for JDBC tutorials Filip - Original

Apache/Tomcat - Connection Pool Allocation

2004-09-23 Thread VS Venkataragavan
Hi, We are facing this problem in Production. The problem is open for almost a month. Please find below the description:- Environment : - JDK 1.3.1_04, Oracle 9.2.0.4, Tomcat 4.1.27/Apache 1.3 in Solaris. We were earlier using classes111.jar. We noticed that there was a bug regarding number

Re: Mod_jk installation problems

2004-09-23 Thread Eugene
Hello Shaun, you're using syntaxis of mod_jk to load mod_jk2, this wont work. try this: httpd.conf== LoadModule jk2_module /usr/local/apache2/modules/mod_jk2.so IfModule mod_jk2.c JkSet config.file /usr/local/tomcat/conf/jk/workers2.properties /IfModule

Re: -server vs. -client

2004-09-23 Thread QM
On Thu, Sep 23, 2004 at 04:40:04PM -0400, Dale Lum wrote: : Now, it would seem obvious that an option called -server would be : appropriate if you're running Tomcat, but it surprises me that I've : seen no mention of this in the Tomcat docs. I just came across this : today. My questions are, does

Re: Tomcat courses

2004-09-23 Thread QM
On Thu, Sep 23, 2004 at 02:52:54PM -0500, Reis, Tom wrote: : Do anyone know of any facility in the Illinois area that has technical : training for Tomcat.Thanks. None come to mind; but between the servlet spec (which Tomcat implements) and several online lists/forums (including this one),

Re: getParameter() should be case insensitive?

2004-09-23 Thread Dave Dribin
On Sep 23, 2004, at 3:34 PM, Shapira, Yoav wrote: Hi, I guess the part where I said we didn't have a choice, we must implement the servlet spec as-is, and if you don't like it contact the expert group, wasn't clear? ;) I hope it is now. Thanks for your input! I guess I was looking for some

Re: Tomcat Repeatedly Hangs.

2004-09-23 Thread Jeffrey Lage
The problem appears to have been in my use of the generic datasource in struts. Now that I have removed it, I in good shape. Thanks. Jeffrey A. Lage | International Fund Services (IFS) 12 E. 49Th. St. | 35Th Floor | New York | NY | 10012 (V) 212.899.5519 | (M) 201.344.4442 From: Jeffrey

  1   2   >