Re: Newbee question on servlet and html - Really frustated with this problem.
thanks everybody. I could solve the problem. There was a typo in my response text. When I changed the following line response.setContentType(test/html); with response.setContentType(text/html); It jus worked like a charm. thanks ! On 10/10/05, Developer Developer [EMAIL PROTECTED] wrote: does anybody know how to fix this problem. Invocation of servlet prompts a messagebox posing a questions do you want to save this ? instead of executing it and returing the output in the html document. :( On 10/10/05, Developer Developer [EMAIL PROTECTED] wrote: I wrote my first html and servlet and deployed it on tomcat 5.5. The html works okay when I call it from the browser. The servlet too works okay when I call its doget() method by invoking it from the browser. EG:. http://localhost:8080/VBeer/BeerSelect However, when i try to invoke the servlet from an html form I get a message box - (file download security warning) - Do you want to save this file ? It has a funny number suffixed to the my servlet name. Not sure what is happening. Here is my HTML code snippet. body h1 align =3D centerBeer selecton Page /h1 form method=3DPOST action=3DBeerSelect pSelect Beer Characteristics/p Thanks !
RE: More helpful reporting of exceptions in JSPs
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
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]
newbee question on servlet and html
I wrote my first html and servlet and deployed it on tomcat 5.5. The html works okay when i call it from the browser. The servlet too works okay when i call its doget() method by invoking it from the browser. EG:. http://localhost:8080/VBeer/BeerSelect However, when i try to invoke the servlet from an html form I get a message box - (file download security warning) - Do you want to save this file, with a funny number suffixed to the my servlet name. Not sure what is happening. Here is my HTML code snippet. body h1 align =3D centerBeer selecton Page /h1 form method=3DPOST action=3DBeerSelect pSelect Beer Characteristics/p Thanks !
Newbee question on servlet and html
I wrote my first html and servlet and deployed it on tomcat 5.5. The html works okay when I call it from the browser. The servlet too works okay when I call its doget() method by invoking it from the browser. EG:. http://localhost:8080/VBeer/BeerSelect However, when i try to invoke the servlet from an html form I get a message box - (file download security warning) - Do you want to save this file ? It has a funny number suffixed to the my servlet name. Not sure what is happening. Here is my HTML code snippet. body h1 align =3D centerBeer selecton Page /h1 form method=3DPOST action=3DBeerSelect pSelect Beer Characteristics/p Thanks !
Newbee question on servlet and html - Really frustated with this problem.
does anybody know how to fix this problem. Invocation of servlet prompts a messagebox posing a questions do you want to save this ? instead of executing it and returing the output in the html document. :( On 10/10/05, Developer Developer [EMAIL PROTECTED] wrote: I wrote my first html and servlet and deployed it on tomcat 5.5. The html works okay when I call it from the browser. The servlet too works okay when I call its doget() method by invoking it from the browser. EG:. http://localhost:8080/VBeer/BeerSelect However, when i try to invoke the servlet from an html form I get a message box - (file download security warning) - Do you want to save this file ? It has a funny number suffixed to the my servlet name. Not sure what is happening. Here is my HTML code snippet. body h1 align =3D centerBeer selecton Page /h1 form method=3DPOST action=3DBeerSelect pSelect Beer Characteristics/p Thanks !
RE: RTE - Meridian Club [EMAIL PROTECTED]
-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
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
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...
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()
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
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
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
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]
mod_jk 1.2.8 socket_timeout property on solaris 2.8 - doesn't work
We have mod_jk 1.2.8 with apache 2.0.53 on solaris 2.8 connecting to JBoss 4.0.2 on solaris 2.8 setup. The number of apache child processes grows gradaully and upon reaching around 150 the system response degrades forcing us to restart the apache server. On investigation it is found from the mod_jk.log that a apache child process serving a user request does not get reponse from tomcat[jboss] and so it waits for 2 hours and retries 3 times. No clue as why it waits for 2 hours and where is this configured. [Tue Jun 28 13:38:15 2005] [7130:1] Attempting to map URI '//'processing with 3 retries [Tue Jun 28 15:38:16 2005] [7130:1] ERROR: can't receive the response message from tomcat, network problems or tomcat is down (xxx.xxx.xx.xx:), err=-131. Receiving from tomcat failed, recoverable operation attempt=0 [Tue Jun 28 17:38:16 2005] [7130:1] ERROR: can't receive the response message from tomcat, network problems or tomcat is down (xxx.xxx.xx.xx:), err=-131. Tomcat is down or network problems. No response has been sent to the client (yet). Receiving from tomcat failed, recoverable operation attempt=1 [Tue Jun 28 19:38:17 2005] [7130:1] ERROR: can't receive the response message from tomcat, network problems or tomcat is down (xxx.xxx.xx.xx:), err=-131. Tomcat is down or network problems. No response has been sent to the client (yet). Service error=0 for worker=nfusion To resolve this thought of using the socket_timeout property setting it to worker.abc.socket_timeout=600 i.e., 10 mintues. It works fine for apache running on windows but does not work for apache running on Linux/ Solaris. Any clue as why is this property not working on Linux/ Solaris. _ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk 1.2.8 socket_timeout property on solaris 2.8 - doesn't work
We have mod_jk 1.2.8 with apache 2.0.53 on solaris 2.8 connecting to JBoss 4.0.2 on solaris 2.8. The number of apache child processes grows gradaully and upon reaching around 150 the system response degrades forcing us to restart the apache server. On investigation it is found from the mod_jk.log that a apache child process serving a user request does not get reponse from tomcat[jboss] and so it waits for 2 hours and retries 3 times. No clue as why it waits for 2 hours and where is this configured. [Tue Jun 28 13:38:15 2005] [7130:1] Attempting to map URI '//'processing with 3 retries [Tue Jun 28 15:38:16 2005] [7130:1] ERROR: can't receive the response message from tomcat, network problems or tomcat is down (xxx.xxx.xx.xx:), err=-131. Receiving from tomcat failed, recoverable operation attempt=0 [Tue Jun 28 17:38:16 2005] [7130:1] ERROR: can't receive the response message from tomcat, network problems or tomcat is down (xxx.xxx.xx.xx:), err=-131. Tomcat is down or network problems. No response has been sent to the client (yet). Receiving from tomcat failed, recoverable operation attempt=1 [Tue Jun 28 19:38:17 2005] [7130:1] ERROR: can't receive the response message from tomcat, network problems or tomcat is down (xxx.xxx.xx.xx:), err=-131. Tomcat is down or network problems. No response has been sent to the client (yet). Service error=0 for worker=nfusion To resolve this thought of using the socket_timeout property setting it to worker.abc.socket_timeout=600 i.e., 10 mintues. It works fine for apache running on windows but does not work for apache running on Linux/ Solaris. Any clue as why this property is not working on Linux/ Solaris. _ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: obscure tomcat 5.5 text file display bug? [Bugzilla candidate?]
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]
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?
(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
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
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
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
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?
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
-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]
tomcat 5 mod_jk.conf
Installed tomcat 5 on my linux box and it works no problem stand alone. However I don't see that the auto/mod_jk.conf directory or file is being created. Does anyone know what you have to do to get these files to auto generate? thanks -Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 5 mod_jk.conf
Yeah it doesn't seem to be producing it for me and i start up with no errors. Unless it is creating it in a new location. [EMAIL PROTECTED] wrote: Installed tomcat 5 on my linux box and it works no problem stand alone. However I don't see that the auto/mod_jk.conf directory or file is being created. Does anyone know what you have to do to get these files to auto generate? thanks I don't know tomcat 5. But for tomcat 4, you need to edit the server.xml to generate the mod_jk.conf file. Best Bao -Ryan - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 5 mod_jk.conf
Installed tomcat 5 on my linux box and it works no problem stand alone. However I don't see that the auto/mod_jk.conf directory or file is being created. Does anyone know if you have to do something special with the tomcat 5 dist to tell it to create these files? thanks -Ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Starting tomcat with a lowlevel user?
I am trying to start tomcat with the tomcat user on my debian box. I am using tomcat 5 untarred just now. I can start tomcat with root manually just fine but I would like tomcat to run as the tomcat user. I created the tomcat user: tomcat4:x:103:65534::/usr/share/tomcat4:/bin/false I created a startup script modelled after the one that comes with debian, it acts like it starts but doesnt. And my start up script is: echo -n Starting $DESC using Java from $JAVA_HOME: touch $PIDFILE $LOGDIR/catalina.out || true chown --dereference $TOMCAT_USER $PIDFILE $LOGDIR \ $LOGDIR/catalina.out $CATALINA_HOME/work \ $CATALINA_HOME/temp || true if start-stop-daemon --test --start --pidfile $PIDFILE \ --user $TOMCAT_USER --startas $JAVA_HOME/bin/java \ /dev/null; then # -p preserves the environment (for $JAVA_HOME etc.) # -s is required because tomcat's login shell is /bin/false su -p -s /bin/sh $TOMCAT_USER -c \ $DAEMON start $STARTUP_OPTS \ $LOGDIR/catalina.out 21 echo $NAME. else echo (already running). fi == /usr/share/tomcat/logs/catalina.out == Using CATALINA_BASE: /usr/share/tomcat Using CATALINA_HOME: /usr/share/tomcat Using CATALINA_TMPDIR: /usr/share/tomcat/temp Using JAVA_HOME: /usr/lib/java/javahome Can't load server.xml Can't load server.xml Feb 11, 2004 6:59:02 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 0 ms java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) Caused by: java.lang.NullPointerException at org.apache.catalina.startup.Catalina.await(Catalina.java:661) at org.apache.catalina.startup.Catalina.start(Catalina.java:621) ... 6 more When I attempt to start it my log spits out this: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
invalidating sessions
Is there to invalidate a single sessionbean rather than the whole session? thanks -ryan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Tomcat Conf Help
I am running tomcat 4.1x with apache 1.3.27 with modssl on redhat linux 8.0. My setup works fine functionally although I would like to make a mod. I have a domain name mapped to a webapps directory. To access the jsp pages I have to got to www.mydomain.com/webappsdirectory/jsppage. I want to be able to go to it like www.mydomain.com/jsppage. Here is the pertaining piece of my httpd.conf with the tomcat conf stuff. The context is rishop. I have tried changing document root to /usr/local/tomcat/webapps/rishop but then it just brings up the jsp pages at documents and tomcat doesn't process them. I have tried changing the alias to alias / /usr/local/tomcat/webapps/rishop but that doesn't seem to work either. Help? -Ryan NameVirtualHost 66.224.113.36 VirtualHost 66.224.113.36 ServerName www.mydomain.com #ServerName 66.224.113.36 DocumentRoot /home/httpd/html TransferLog /usr/local/apache/logs/rishop_log /VirtualHost VirtualHost _default_:443 # General setup for the virtual host DocumentRoot /home/httpd/html ServerName www.mydomain.com # when i get domain ServerName www.mydomain.com ErrorLog /usr/local/apache/logs/error_log TransferLog /usr/local/apache/logs/access_log Directory /usr/local/tomcat/webapps/rishop Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory Alias /rishop /usr/local/tomcat/webapps/rishop # Deny direct access to WEB-INF and META-INF # Location /rishop/WEB-INF/* AllowOverride None deny from all /Location Location /rishop/META-INF/* AllowOverride None deny from all /Location JkMount /rishop/jsp/security/protected/j_security_check ajp13 JkMount /rishop/snoop ajp13 JkMount /rishop/servlet/* ajp13 JkMount /rishop/CompressionTest ajp13 JkMount /rishop/*.jsp ajp13 JkMount /rishop/servletToJsp ajp13 JkMount /rishop/SendMailServlet ajp13 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Tomcat Conf Help
John thanks for reply. I get wierd results when I do this, i think it is because i have an odd setup going. I have manually written the mod_jk.conf stuff and inserted it into my apache conf (seen below). The reason I did this is couldn't figure out how else to get my tomcat context working with ssl. When I make the change you suggested the images directory off the domain mydomain.com/images is not viewable for some reason. Also tomcat seems to be mixing up that root directory with the docs i can't quite explain it. I assume it is because of a mismatch in my conf file. I think your suggestion won't work because the rest of my conf is screwed. So let me start from scratch my ideal set up is to have http://www.mydomain.com and https://www.mydomain.com both go to https://www.mydomain.com/ and this should be my tomcat context. Do I have to use apache proxy directives to accomplish this? What would be the best way to go about this when using apache tomcat? (The current setup I have is below) -Ryan On Thu, 24 Jul 2003, John Turner wrote: The change is in server.xml, not in httpd.conf. Change the Context path to path= instead of path=/rishop. Then delete /rishop from all of your JkMounts. John [EMAIL PROTECTED] wrote: I am running tomcat 4.1x with apache 1.3.27 with modssl on redhat linux 8.0. My setup works fine functionally although I would like to make a mod. I have a domain name mapped to a webapps directory. To access the jsp pages I have to got to www.mydomain.com/webappsdirectory/jsppage. I want to be able to go to it like www.mydomain.com/jsppage. Here is the pertaining piece of my httpd.conf with the tomcat conf stuff. The context is rishop. I have tried changing document root to /usr/local/tomcat/webapps/rishop but then it just brings up the jsp pages at documents and tomcat doesn't process them. I have tried changing the alias to alias / /usr/local/tomcat/webapps/rishop but that doesn't seem to work either. Help? -Ryan NameVirtualHost 66.224.113.36 VirtualHost 66.224.113.36 ServerName www.mydomain.com #ServerName 66.224.113.36 DocumentRoot /home/httpd/html TransferLog /usr/local/apache/logs/rishop_log /VirtualHost VirtualHost _default_:443 # General setup for the virtual host DocumentRoot /home/httpd/html ServerName www.mydomain.com # when i get domain ServerName www.mydomain.com ErrorLog /usr/local/apache/logs/error_log TransferLog /usr/local/apache/logs/access_log Directory /usr/local/tomcat/webapps/rishop Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory Alias /rishop /usr/local/tomcat/webapps/rishop # Deny direct access to WEB-INF and META-INF # Location /rishop/WEB-INF/* AllowOverride None deny from all /Location Location /rishop/META-INF/* AllowOverride None deny from all /Location JkMount /rishop/jsp/security/protected/j_security_check ajp13 JkMount /rishop/snoop ajp13 JkMount /rishop/servlet/* ajp13 JkMount /rishop/CompressionTest ajp13 JkMount /rishop/*.jsp ajp13 JkMount /rishop/servletToJsp ajp13 JkMount /rishop/SendMailServlet ajp13 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Memory/Performance
. In summary: in real-life use, the abstraction of a session provided to jsp writers by Tomcat and other web containers is going to work perfectly fine, with no resource compromise. Your well-designed application already needed those resources stored in the session anyway. Sessions only add a few more references/pointers (at 4 bytes a shot - cheap!) to those resources. Over 99% of browsers support cookies. There are no hidden dangers with sessions. Now, onto the rest of email. I assume session.invalidate() kills a session. How and in what situation would I use this method? Use it on a logoff.jsp. Inside logoff.jsp just paste: % session.invalidate() % I assume my sessions are closed automatically by tomcat when there is no usage from that client for 15 minutes. That is correct. Tomcat probably calls invalidate() just like you would on a logoff.jsp page. Code re-use. :-) What does setMaxInactiveInterval do and how is that applied? You could use this to override the 15 minute application-wide timeout you've configured on a per/jsp or per/servlet basis. For example, maybe you would like to set you login.jsp's session timeout to 2 minutes, but after the user successfully logs in set it back to 15 minutes. This way people who fail to login, or don't bother trying, use up less session resources. However, once you've set the session to 2 minutes on one page, it's going to stay 2 minutes unless you state otherwise somewhere else. I imagine that would work. I wouldn't bother messing around like that, though. Too finicky. Buy a 2nd server and cluster them. :-) And same questions on response.encodeURL()? This only applies if you're not using cookies. But it's not a bad idea - makes your application more portable, since the cookie/no-cookie configuration is administrator controlled, not developer controlled. Basically you run every internal link (to other jsps or servlets) through encodeURL(), et voila, sessions without cookies if ever needed. I haven't used this, so my explanation here may be a little fluffy. Tomcat starts out with 128 megs and baloons up pretty quickly to 300 megs. It often exceeds that, there also seems to be a huge thread count. Perhaps you have a thread problem (yikes!). My experience with threads and Tomcat is very minimal, but in my experience threads use a lot of memory. I believe they keep references to their entire call-stack (methods calling methods), and so when they hang a lot of references remain unavailable to the garbage collector. Don't worry about Tomcat: in my experience on this mailing list Tomcat's thread usage is perfect. It's always developers that mess up. Don't feel bad if this is the case. You only get good (err... marginally less dangerous) by screwing up several times. I almost took down a medium sized financial institution's website I was developing due to some shoddy thread work. Debugging multi-threaded apps when the threads go bad is fun in a way. The thing to remember with web applications is that each request, from start to finish, is going to need a thread. If the thread gets lost somewhere along the way, it's not coming back. Some tricks that seem to work for me (see what Tomcat-User thinks): Don't use wait() when you can use wait( 6 )! At least you'll recover the thread a minute later. Don't use notify(). Use notifyAll() instead. In my opinion wait(void) and notify() are not meant for mortals. Especially not in conjunction with web applications. Good luck, ryan! Hopefully we can help you fix your website, and help Tomcat conquer the world! It would be a good idea to try and isolate your problem. Can you get the memory usage to balloon up during a simulation in a test environment? Of course, you're probably frantically trying to fix your production site... in which case banging out fear-inspired fixes can also work quite well, too. I do envy your close proximity to such a respectable load on your computer. I wish I could see what my own code would do at such use. My company plays it too safe to ever know: when the CPU hits 35% in top, they add a new computer to the cluster. yours, Julius [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Mon 12/2/2002 2:31 PM To: Julius Davies Cc: Tomcat Users List Subject: RE: Memory/Performance Thanks for replying I think you are on the right track i must not be doing something right here. You certainly got me confused and that can only be a step in the right direction. I have my session-timeout set to 15. My load is being generated from massive usage i get a million unique hits a month and have a lot of customers simultaneously logged in at once. Tomcat starts out with 128 megs and baloons up pretty quickly to 300 megs. It often exceeds
Memory/Performance
I find that tomcat's memory stamp grows continually until eventually there are out of memory errors or it just bogs down. I am running on jdk1.4_1, tomcat 4.1.12, apache 1.27, mod_jk on the linux 2.2 kernel. The box I am operating on has 1gig of memory and has dual gigahertz processors. I believe that tomcat has some serious memory leaks and/or I am not writing my jsppages properly. So i would like to ask two questions: 1)Assuming tomcat has memory issues what can I do to control them? 2)What techniques would you suggest to write jsppages that help keep memory consumption down? Are there ways to write jsppages that makes them more garbage collection friendly? please comment -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Memory/Performance
Thanks for your comments. Well all my jspcode is definitely session happy and I am creating several objects per session. The objects I am creating consist of mostly string, int and floats, probably up to like 20 of each. Although i create a large application pool of jdbc connections I am fairly positive that this is not the problem because I use this pooling model in several applications that don't seem to have a problem. I realize that every time a session is created all these objects must be allocated, and that should cause the memory blob to keep growing as the session count increase but I would think the memory stamp would correspondingly shrink when all these sessions are closed and it doesn't. I am basing this on tomcats crashing or slow behavior in conjunction with monitoring the processes and memory usage. What other information can I share that would help? Like I said I don't know if this is tomcat or me or a bit a both so I am jsut throwing out what seems to be going on and looking for insight? On Mon, 2 Dec 2002, Michael Nicholson wrote: I suppose it depends on what you're doing, which, unfortunately, I don't know. If you're overly filling your session w/ objects, or if you have a session scoped bean that is spiraling out of control or something, that might lead to the problem, or if you create/leave open jdbc connections or stuff like that. I'm running tomcat 4.03 on a much less beefy system, and I don't ever notice any memory issues, now that I make sure I close and null my connections and such. More info on what's happening might help, though.. - Original Message - From: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 02, 2002 3:51 PM Subject: Memory/Performance I find that tomcat's memory stamp grows continually until eventually there are out of memory errors or it just bogs down. I am running on jdk1.4_1, tomcat 4.1.12, apache 1.27, mod_jk on the linux 2.2 kernel. The box I am operating on has 1gig of memory and has dual gigahertz processors. I believe that tomcat has some serious memory leaks and/or I am not writing my jsppages properly. So i would like to ask two questions: 1)Assuming tomcat has memory issues what can I do to control them? 2)What techniques would you suggest to write jsppages that help keep memory consumption down? Are there ways to write jsppages that makes them more garbage collection friendly? please comment -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Memory/Performance
Thanks for replying I think you are on the right track i must not be doing something right here. You certainly got me confused and that can only be a step in the right direction. I have my session-timeout set to 15. My load is being generated from massive usage i get a million unique hits a month and have a lot of customers simultaneously logged in at once. Tomcat starts out with 128 megs and baloons up pretty quickly to 300 megs. It often exceeds that, there also seems to be a huge thread count. I do not use cookies and I do not call session.setMaxInactiveInterval() or session.invalidate() or response.encodeURL(). In fact I am completely ignorant about these calls. I assume my sessions are closed automatically by tomcat when there is no usage from that client for 15 minutes. So can I assume session.invalidate() kills a session. How and in what situation would I use this method? What does setMaxInactiveInterval do and how is that applied? And same questions on response.encodeURL()? So you are saying that possible it is not only creating a new session per new user but per page each user accesses? If so please teach me how to fix my problems with my coding. -ryan On Mon, 2 Dec 2002, Julius Davies wrote: Developer, Hello. I use Tomcat 4.1.12 standalone. I was just thinking about what you were saying, especially [...] I would think the memory stamp would correspondingly shrink when all these sessions are closed and it doesn't. I noticed this section in the default web.xml: !-- Default Session Configuration = -- !-- You can set the default session timeout (in minutes) for all newly -- !-- created sessions by modifying the value below. -- session-config session-timeout30/session-timeout /session-config So, by default on my machine sessions will stay around for 30 minutes, unless either session.setMaxInactiveInterval() or session.invalidate() was called. I haven't changed this file since I installed Tomcat, and so I'm assuming you have the same file. Are you calling either of those methods - invalidate or setMaxInactiveInterval? Or when you say these sessions are closed, do you mean they time out after 30 minutes? Secondly, what are you doing to generate all this (server-crashing!) load? Obviously you're not going to call session.invalidate() on the same page that you created the session. That would be pointless... so here comes an interesting possibility: suppose a significant portion of your load didn't support cookies? Or, if you were using URL rewriting for the sessions, suppose you forgot to use response.encodeURL()? In both cases the result is the same: Sessions are being created for a client, but the client won't remember his special session id. This means a new session is created for this client with every request he makes! So, I have three questions I need to know: 1.) What kind of load is Tomcat experiencing on your machine, and where is this load coming from? 2.) Does your load support cookies? Is the session id being remembered by the client? 3.) How are you closing your sessions? Suppose each of your sessions weighed in at 512 bytes. If your load, at, let's pretend 10/hits second, didn't support cookies, you're going to need ~15mb to hold on to 30 minutes of sessions before they start expiring. This is because each hit is going to create a new session. Tomcat User please correct any mistakes I may have made here! Julius Davies, Programmer, CUCBC Email: [EMAIL PROTECTED], Ph: 604.730.6385 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, December 02, 2002 1:24 PM To: Tomcat Users List Subject: Re: Memory/Performance Thanks for your comments. Well all my jspcode is definitely session happy and I am creating several objects per session. The objects I am creating consist of mostly string, int and floats, probably up to like 20 of each. Although i create a large application pool of jdbc connections I am fairly positive that this is not the problem because I use this pooling model in several applications that don't seem to have a problem. I realize that every time a session is created all these objects must be allocated, and that should cause the memory blob to keep growing as the session count increase but I would think the memory stamp would correspondingly shrink when all these sessions are closed and it doesn't. I am basing this on tomcats crashing or slow behavior in conjunction with monitoring the processes and memory usage. What other information can I share that would help? Like I said I don't know if this is tomcat or me or a bit a both so I am jsut throwing out what seems to be going on and looking for insight? On Mon, 2 Dec 2002, Michael Nicholson wrote
Re: Tomcat 4.1.12 Critically Crashing-- Help
Anyone got any suggestions on this? On Mon, 18 Nov 2002 [EMAIL PROTECTED] wrote: I am running 4.1.12 with mod_jk and apache 1.3.27 on a linux 2.2.22 kernel and with java version 1.4.1_01. Tomcat is being used ona production system and is getting heavy usage. I am getting some wierd variety of errors and tomcat has critically crashed on my several times in the same fashion. I have looked on the newsgroups, and at the docs and can't really find anything helpful so please help, sorry this message is so long but wanted to include all the details 1)First of all I am constantly getting this message: Nov 18, 2002 10:37:57 AM org.apache.jk.common.ChannelSocket processConnection WARNING: server has closed the current connection (-1) When I say constant I mean literally like every 5 seconds. What does that mean? 2)When tomcat has critically crashed I first got a couple of these messages: SEVERE: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:380) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:558) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:354) at org.apache.coyote.Response.action(Response.java:216) at org.apache.coyote.Response.finish(Response.java:336) at org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:504) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Then it finally crashed with this: Unexpected Signal : 11 occurred at PC=0x4032A4BE Function=get_stack_trace_depth__19java_lang_ThrowableP7oopDescP6Thread+0xBA Library=/usr/environment/javastuff/j2sdk1.4.1_01/jre/lib/i386/client/libjvm.so Current Java thread: at java.lang.Throwable.getStackTraceDepth(Native Method) at java.lang.Throwable.getOurStackTrace(Throwable.java:588) - locked 0x44709338 (a java.lang.IllegalStateException) at java.lang.Throwable.printStackTrace(Throwable.java:510) - locked 0x4470a548 (a java.io.PrintWriter) at org.apache.catalina.logger.LoggerBase.log(LoggerBase.java:291) at org.apache.catalina.core.ApplicationContext.internalLog(ApplicationContext.java:870) at org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:862) at org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFacade.java:210) at org.apache.jasper.logging.DefaultLogger.realLog(DefaultLogger.java:135) at org.apache.jasper.logging.Logger.log(Logger.java:349) at org.apache.jasper.logging.Logger$Helper.log(Logger.java:734) at org.apache.jasper.logging.Logger$Helper.log(Logger.java:696) at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:180) at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:154) at org.apache.jsp.errorpage_jsp._jspService(errorpage_jsp.java:41) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:395) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:480) at
Tomcat 4.1.12 Critically Crashing-- Help
I am running 4.1.12 with mod_jk and apache 1.3.27 on a linux 2.2.22 kernel and with java version 1.4.1_01. Tomcat is being used ona production system and is getting heavy usage. I am getting some wierd variety of errors and tomcat has critically crashed on my several times in the same fashion. I have looked on the newsgroups, and at the docs and can't really find anything helpful so please help, sorry this message is so long but wanted to include all the details 1)First of all I am constantly getting this message: Nov 18, 2002 10:37:57 AM org.apache.jk.common.ChannelSocket processConnection WARNING: server has closed the current connection (-1) When I say constant I mean literally like every 5 seconds. What does that mean? 2)When tomcat has critically crashed I first got a couple of these messages: SEVERE: Error in action code java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:380) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:558) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:354) at org.apache.coyote.Response.action(Response.java:216) at org.apache.coyote.Response.finish(Response.java:336) at org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.java:504) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533) at java.lang.Thread.run(Thread.java:536) Then it finally crashed with this: Unexpected Signal : 11 occurred at PC=0x4032A4BE Function=get_stack_trace_depth__19java_lang_ThrowableP7oopDescP6Thread+0xBA Library=/usr/environment/javastuff/j2sdk1.4.1_01/jre/lib/i386/client/libjvm.so Current Java thread: at java.lang.Throwable.getStackTraceDepth(Native Method) at java.lang.Throwable.getOurStackTrace(Throwable.java:588) - locked 0x44709338 (a java.lang.IllegalStateException) at java.lang.Throwable.printStackTrace(Throwable.java:510) - locked 0x4470a548 (a java.io.PrintWriter) at org.apache.catalina.logger.LoggerBase.log(LoggerBase.java:291) at org.apache.catalina.core.ApplicationContext.internalLog(ApplicationContext.java:870) at org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:862) at org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFacade.java:210) at org.apache.jasper.logging.DefaultLogger.realLog(DefaultLogger.java:135) at org.apache.jasper.logging.Logger.log(Logger.java:349) at org.apache.jasper.logging.Logger$Helper.log(Logger.java:734) at org.apache.jasper.logging.Logger$Helper.log(Logger.java:696) at org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryImpl.java:180) at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:154) at org.apache.jsp.errorpage_jsp._jspService(errorpage_jsp.java:41) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:820) at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:395) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:480) at org.apache.jsp.errorpage_jsp._jspService(errorpage_jsp.java:58) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) . . . . . . . at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361) at
RE: Class Path and New Context
WHen I take some of the classes that don't seem to be getting loaded and put them in a package they seem to be fine. So it appears as if you must have your classes within a package in order for the class loader to find them. I looked through the bug list and could not find this in there. Can anyone confirm that this is a bug or is it just a personal problem? ryan On Thu, 7 Nov 2002 [EMAIL PROTECTED] wrote: Here is an example of an error I am getting where the class GlobalUtilsBean is being referenced from my jsp page: ** /usr/local/tomcat/work/Standalone/xxx.xxx.xxx.xxx/jsppages/ShoppingCatalog_jsp.java:83: cannot resolve symbol symbol : class GlobalUtilsBean location: class org.apache.jsp.ShoppingCatalog_jsp GlobalUtilsBean globalUtilsBean = null; ^ An error occurred at line: 8 in the jsp file: /ShoppingCatalog.jsp Generated servlet error: /usr/local/tomcat/work/Standalone/xxx.xxx.xxx./jsppages/ShoppingCatalog_jsp.java:85: cannot resolve symbol symbol : class GlobalUtilsBean location: class org.apache.jsp.ShoppingCatalog_jsp globalUtilsBean = (GlobalUtilsBean) pageContext.getAttribute(globalUtilsBean, PageContext.APPLICATION_SCOPE); ^ *** and the jsp code where I reference it is: jsp:useBean id=globalUtilsBean class=GlobalUtilsBean scope=application % globalUtilsBean.init(); % /jsp:useBean the GlobalUtilsBean.class resides in tomcathome/webapps/jsppages/WEB-INF/classes/GlobalUtilsBean.class I am porting this application from tomcat 3.2 (i know really old) but the jsp works fine there so I would think that wouldn't be the problem. There is no restriction where you have to put stuff in a package is there? ryan On Thu, 7 Nov 2002, Turner, John wrote: What are the error messages you are seeing? Specific information is always helpful. Your classes should work in WEB-INF/classes. If they aren't in a package, and are installed in WEB-INF/classes, then you have something else going on. How are you referencing these classes in your code? John -Original Message- From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com] Sent: Thursday, November 07, 2002 3:44 PM To: Tomcat Users List Subject: RE: Class Path and New Context I fooled around with the setclasspath.sh to include my default classpath. Tomcat however doesn't like that too bad it would have been convenient. I copied the examples context exactly to newcontext/ I put my jsppages in newcontext/ I put all my java beans for this context in newcontext/WEB-INF/classes they aren't in a package so I put them directly in there and compiled When I run tomcat it still can't find them. So i tried putting them into common/classes, same problem. Funny thing is when I put a jar file in common/lib that contains some other random classes I seem to be able to access those fine. I believe I have carefully read all the docs and they indicate that I am doing this correctly so why doesn't it work? ryan On Thu, 7 Nov 2002, Turner, John wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com] Sent: Thursday, November 07, 2002 2:24 PM To: Tomcat Users List Subject: Class Path and New Context With some hassles I got tomcat 4.1.12 with apache 1.3x, java 1.4 on a linux 2.4 kernel box. The examples context works fine and apache seems to be handling all the other stuff fine Questions 1)I am trying to create a new context, what are the bare bones requirements for doing so? Anyone have a breakdown of the necessary tags in web.xml? Basically, duplicate the tags for the examples. 2)In a context if I want to add bunch of class files that are specific to that context can't I just throw them in /webapps/newcontext/WEB-INF/classes? I tried this and they don't seem to be available i get Symbols Not resolved errors referencing any time I call that class. ??? Check the ClassLoader HOWTO: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html 3)I have a whole bunch of other classes that need to be available to tomcat. I have set up a global CLASSPATH variable that points to them. Tomcat does not seem to be picking this up. I verified that when i do an env directly before starting tomcat the CLASSPATH variable is set and defined properly. What am i screwing up? Tomcat ignores the system-level CLASSPATH environment variable and assembles its own in the startup scripts. Check startup.sh and catalina.sh to see what it does.
RE: Class Path and New Context
Well that explains things thanks, darn now I have to change my code. I am migrating all this stuff from tomcat 3.2 jdk 1.2 so it wasn't an issue before. ryan On Fri, 8 Nov 2002, Craig R. McClanahan wrote: On Fri, 8 Nov 2002 [EMAIL PROTECTED] wrote: Date: Fri, 8 Nov 2002 09:09:09 -0800 (PST) From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Class Path and New Context WHen I take some of the classes that don't seem to be getting loaded and put them in a package they seem to be fine. So it appears as if you must have your classes within a package in order for the class loader to find them. I looked through the bug list and could not find this in there. Can anyone confirm that this is a bug or is it just a personal problem? JDK 1.4.1 has started enforcing a restriction that has always been in the Java Language Specification, but was never enforced before -- you are not allowed to import an unpackaged class name. Among other things, that makes it pretty much impossible to use unpackaged bean classes in a JSP page. ryan Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Class Path and New Context
With some hassles I got tomcat 4.1.12 with apache 1.3x, java 1.4 on a linux 2.4 kernel box. The examples context works fine and apache seems to be handling all the other stuff fine Questions 1)I am trying to create a new context, what are the bare bones requirements for doing so? Anyone have a breakdown of the necessary tags in web.xml? 2)In a context if I want to add bunch of class files that are specific to that context can't I just throw them in /webapps/newcontext/WEB-INF/classes? I tried this and they don't seem to be available i get Symbols Not resolved errors referencing any time I call that class. ??? 3)I have a whole bunch of other classes that need to be available to tomcat. I have set up a global CLASSPATH variable that points to them. Tomcat does not seem to be picking this up. I verified that when i do an env directly before starting tomcat the CLASSPATH variable is set and defined properly. What am i screwing up? thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Class Path and New Context
I fooled around with the setclasspath.sh to include my default classpath. Tomcat however doesn't like that too bad it would have been convenient. I copied the examples context exactly to newcontext/ I put my jsppages in newcontext/ I put all my java beans for this context in newcontext/WEB-INF/classes they aren't in a package so I put them directly in there and compiled When I run tomcat it still can't find them. So i tried putting them into common/classes, same problem. Funny thing is when I put a jar file in common/lib that contains some other random classes I seem to be able to access those fine. I believe I have carefully read all the docs and they indicate that I am doing this correctly so why doesn't it work? ryan On Thu, 7 Nov 2002, Turner, John wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com] Sent: Thursday, November 07, 2002 2:24 PM To: Tomcat Users List Subject: Class Path and New Context With some hassles I got tomcat 4.1.12 with apache 1.3x, java 1.4 on a linux 2.4 kernel box. The examples context works fine and apache seems to be handling all the other stuff fine Questions 1)I am trying to create a new context, what are the bare bones requirements for doing so? Anyone have a breakdown of the necessary tags in web.xml? Basically, duplicate the tags for the examples. 2)In a context if I want to add bunch of class files that are specific to that context can't I just throw them in /webapps/newcontext/WEB-INF/classes? I tried this and they don't seem to be available i get Symbols Not resolved errors referencing any time I call that class. ??? Check the ClassLoader HOWTO: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html 3)I have a whole bunch of other classes that need to be available to tomcat. I have set up a global CLASSPATH variable that points to them. Tomcat does not seem to be picking this up. I verified that when i do an env directly before starting tomcat the CLASSPATH variable is set and defined properly. What am i screwing up? Tomcat ignores the system-level CLASSPATH environment variable and assembles its own in the startup scripts. Check startup.sh and catalina.sh to see what it does. Modifying either startup.sh and/or catalina.sh to use your special classpath is not advised. Read the ClassLoader HOWTO. The Application Developer's Guide might be a good idea, too. John -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Class Path and New Context
Here is an example of an error I am getting where the class GlobalUtilsBean is being referenced from my jsp page: ** /usr/local/tomcat/work/Standalone/xxx.xxx.xxx.xxx/jsppages/ShoppingCatalog_jsp.java:83: cannot resolve symbol symbol : class GlobalUtilsBean location: class org.apache.jsp.ShoppingCatalog_jsp GlobalUtilsBean globalUtilsBean = null; ^ An error occurred at line: 8 in the jsp file: /ShoppingCatalog.jsp Generated servlet error: /usr/local/tomcat/work/Standalone/xxx.xxx.xxx./jsppages/ShoppingCatalog_jsp.java:85: cannot resolve symbol symbol : class GlobalUtilsBean location: class org.apache.jsp.ShoppingCatalog_jsp globalUtilsBean = (GlobalUtilsBean) pageContext.getAttribute(globalUtilsBean, PageContext.APPLICATION_SCOPE); ^ *** and the jsp code where I reference it is: jsp:useBean id=globalUtilsBean class=GlobalUtilsBean scope=application % globalUtilsBean.init(); % /jsp:useBean the GlobalUtilsBean.class resides in tomcathome/webapps/jsppages/WEB-INF/classes/GlobalUtilsBean.class I am porting this application from tomcat 3.2 (i know really old) but the jsp works fine there so I would think that wouldn't be the problem. There is no restriction where you have to put stuff in a package is there? ryan On Thu, 7 Nov 2002, Turner, John wrote: What are the error messages you are seeing? Specific information is always helpful. Your classes should work in WEB-INF/classes. If they aren't in a package, and are installed in WEB-INF/classes, then you have something else going on. How are you referencing these classes in your code? John -Original Message- From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com] Sent: Thursday, November 07, 2002 3:44 PM To: Tomcat Users List Subject: RE: Class Path and New Context I fooled around with the setclasspath.sh to include my default classpath. Tomcat however doesn't like that too bad it would have been convenient. I copied the examples context exactly to newcontext/ I put my jsppages in newcontext/ I put all my java beans for this context in newcontext/WEB-INF/classes they aren't in a package so I put them directly in there and compiled When I run tomcat it still can't find them. So i tried putting them into common/classes, same problem. Funny thing is when I put a jar file in common/lib that contains some other random classes I seem to be able to access those fine. I believe I have carefully read all the docs and they indicate that I am doing this correctly so why doesn't it work? ryan On Thu, 7 Nov 2002, Turner, John wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com] Sent: Thursday, November 07, 2002 2:24 PM To: Tomcat Users List Subject: Class Path and New Context With some hassles I got tomcat 4.1.12 with apache 1.3x, java 1.4 on a linux 2.4 kernel box. The examples context works fine and apache seems to be handling all the other stuff fine Questions 1)I am trying to create a new context, what are the bare bones requirements for doing so? Anyone have a breakdown of the necessary tags in web.xml? Basically, duplicate the tags for the examples. 2)In a context if I want to add bunch of class files that are specific to that context can't I just throw them in /webapps/newcontext/WEB-INF/classes? I tried this and they don't seem to be available i get Symbols Not resolved errors referencing any time I call that class. ??? Check the ClassLoader HOWTO: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html 3)I have a whole bunch of other classes that need to be available to tomcat. I have set up a global CLASSPATH variable that points to them. Tomcat does not seem to be picking this up. I verified that when i do an env directly before starting tomcat the CLASSPATH variable is set and defined properly. What am i screwing up? Tomcat ignores the system-level CLASSPATH environment variable and assembles its own in the startup scripts. Check startup.sh and catalina.sh to see what it does. Modifying either startup.sh and/or catalina.sh to use your special classpath is not advised. Read the ClassLoader HOWTO. The Application Developer's Guide might be a good idea, too. John -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe,
Building mod_jk
I want to build mod_jk on my linux box. I downloaded and untarred the src. Where are the build instructions and docs On jakarata the only docs just say download and look for instructions. thanks -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Which connector to use?
I am upgrading an old 3.2 tomcat and apache implementation to the new 4.1.12 and apache 1.3.27. This is running on a linux box with the latest 2.4 kernel. I am questioning which connector to go with the mod_jk or the mod_jk2? This is for a highly active production site so stability is a key issue, but of course so is speed. Can anyone break down the advantages and disadvantages of the two connectors? thanks ryan -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Which connector to use?
so more specifically what is new in mod_jk2 ? Is it just new features built on the same code base or is it a completely rewritten version? On Mon, 4 Nov 2002, Robert L Sowders wrote: Strictly an opinion thing, If you want a lot of help and examples with what is considered mature code the mod_jk Other wise mod_jk2 has some exciting new stuff a happening. rls developer@wexwar ez.com To: Tomcat Users List [EMAIL PROTECTED] cc: 11/04/2002 01:35 Subject: Which connector to use? PM Please respond to Tomcat Users List I am upgrading an old 3.2 tomcat and apache implementation to the new 4.1.12 and apache 1.3.27. This is running on a linux box with the latest 2.4 kernel. I am questioning which connector to go with the mod_jk or the mod_jk2? This is for a highly active production site so stability is a key issue, but of course so is speed. Can anyone break down the advantages and disadvantages of the two connectors? thanks ryan -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Apache Tomcat integration-please help
I am having a problem getting apache tomcat running using mod_webapp.so I am using: linux redhat 7.3 jdk1.4 apache 1.3.26 tomcat 4.0.4 I got apache 1.3.26 compiled and installed with enable-module=so option it starts and stops fine I got tomcat 4.0.4, installed it and it starts and stops fine, the examples work etc etc I got jakarta-tomcat-connectors using CVS, and followed the instructions to compile mod_webapp.so. It compiled and I placed it in $APACHE_HOME/libexec/ I added the following lines to httpd.conf: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples conn /examples I started tomcat no problem. When I start apache i get: yntax error on line 984 of /usr/local/apache/conf/httpd.conf: Invalid virtual host name /usr/local/apache/bin/apachectl start: httpd could not be started line 984 refers to this line: WebAppDeploy examples conn /examples I am stumped some help please? thanks, ryan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache Tomcat integration-please help
UNfortunately I have tried that at it did not help. Anymore suggestions would be wonderful, cause I am stumped. Maybe does it have something to do with my apache install? thanks ryan On Thu, 18 Jul 2002, Milt Epstein wrote: On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote: I am having a problem getting apache tomcat running using mod_webapp.so I am using: linux redhat 7.3 jdk1.4 apache 1.3.26 tomcat 4.0.4 I got apache 1.3.26 compiled and installed with enable-module=so option it starts and stops fine I got tomcat 4.0.4, installed it and it starts and stops fine, the examples work etc etc I got jakarta-tomcat-connectors using CVS, and followed the instructions to compile mod_webapp.so. It compiled and I placed it in $APACHE_HOME/libexec/ I added the following lines to httpd.conf: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples conn /examples I started tomcat no problem. When I start apache i get: yntax error on line 984 of /usr/local/apache/conf/httpd.conf: Invalid virtual host name /usr/local/apache/bin/apachectl start: httpd could not be started line 984 refers to this line: WebAppDeploy examples conn /examples I am stumped some help please? This is my understanding of WebAppConnection and WebAppDeploy (corrections welcome :-): The second argument to the WebAppDeploy directive (here conn) must be a defined connection per a WebAppConnection directive (the first argument of WebAppConnection specifies the connection). That is, WebAppConnection connection protocol host:port defines a connection -- named connection, using protocol (warp is the only possibility currently, I believe), available at host:port -- and WebAppDeploy context connection url-prefix indicates that URLs that begin with url-prefix belong to context and should be passed to connection. Anyway, although you should understand at least the basics of the above, the gist of it is you should change conn to warpConnection. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache Tomcat integration-please help
The lack of a ServerName tag and the warpConnection instead of conn seemed to be my problem i am up and running thanks for your help! ryan On Thu, 18 Jul 2002, Milt Epstein wrote: On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote: UNfortunately I have tried that at it did not help. Anymore suggestions would be wonderful, cause I am stumped. Maybe does it have something to do with my apache install? Well, that *was* a problem, but maybe it wasn't the only one. Try commenting out those lines, and see what effect that has. Are those the last lines in your conf file? Maybe you've got a different problem somewhere else in your conf file, and it's just reporting it there because it's the last line. The error message (are you still getting the same one?) indicates it's something related to virtual hosts, so that would be a place to focus. Of course, then you're talking about an apache problem, not a tomcat problem. On Thu, 18 Jul 2002, Milt Epstein wrote: On Thu, 18 Jul 2002 [EMAIL PROTECTED] wrote: I am having a problem getting apache tomcat running using mod_webapp.so I am using: linux redhat 7.3 jdk1.4 apache 1.3.26 tomcat 4.0.4 I got apache 1.3.26 compiled and installed with enable-module=so option it starts and stops fine I got tomcat 4.0.4, installed it and it starts and stops fine, the examples work etc etc I got jakarta-tomcat-connectors using CVS, and followed the instructions to compile mod_webapp.so. It compiled and I placed it in $APACHE_HOME/libexec/ I added the following lines to httpd.conf: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples conn /examples I started tomcat no problem. When I start apache i get: yntax error on line 984 of /usr/local/apache/conf/httpd.conf: Invalid virtual host name /usr/local/apache/bin/apachectl start: httpd could not be started line 984 refers to this line: WebAppDeploy examples conn /examples I am stumped some help please? This is my understanding of WebAppConnection and WebAppDeploy (corrections welcome :-): The second argument to the WebAppDeploy directive (here conn) must be a defined connection per a WebAppConnection directive (the first argument of WebAppConnection specifies the connection). That is, WebAppConnection connection protocol host:port defines a connection -- named connection, using protocol (warp is the only possibility currently, I believe), available at host:port -- and WebAppDeploy context connection url-prefix indicates that URLs that begin with url-prefix belong to context and should be passed to connection. Anyway, although you should understand at least the basics of the above, the gist of it is you should change conn to warpConnection. Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Milt Epstein Research Programmer Systems and Technology Services (STS) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Apache Tomcat combo-please help
I am having a problem getting apache tomcat running using mod_webapp.so I am using: linux redhat 7.3 jdk1.4 apache 1.3.26 tomcat 4.0.4 I got apache 1.3.26 compiled and installed with enable-module=so option it starts and stops fine I got tomcat 4.0.4, installed it and it starts and stops fine, the examples work etc etc I got jakarta-tomcat-connectors using CVS, and followed the instructions to compile mod_webapp.so. It compiled and I placed it in $APACHE_HOME/libexec/ I added the following lines to httpd.conf: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp localhost:8080 WebAppDeploy examples conn /examples I started tomcat no problem. When I start apache i get: yntax error on line 984 of /usr/local/apache/conf/httpd.conf: Invalid virtual host name /usr/local/apache/bin/apachectl start: httpd could not be started line 984 refers to this line: WebAppDeploy examples conn /examples I am stumped some help please? thanks, ryan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
SSL for certian files wrt a webapp
Hi, How do I make only certain webpages SSL-ified ? I have setup Jakarta Tomcat to allow SSL on port number 443. e.g., suppose a request is recvd for an index.html page then there is no need for SSL. However when the request is made to some other file(wrt a file system), the requestor should be prompted for a username and password over a SSL connection for access to other htmletc.. files. How do I achieve this ? I have been racking my brains for the solution. Do I need APache HTTP Server? I am simulating this for development purpose right now. It will nto be a commercial site setup. Please advise ASAP. Regards. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: mod_jk.so not working on upgrade
HELP i asked this question yesterday still no reply ryan On Mon, 1 Jul 2002 [EMAIL PROTECTED] wrote: Having problem upgrading a box. The box is running red hat linux 6.2 with apache 1.3.20 with modssl, it is running with Tomcat 3.2.2. I was in the process of upgrading my apache 1.3.20 to 1.3.26. By the way I am enabling DSO support. I was able to upgrade the apache/modssl package successfully except it bombs out on the mod_jk.so. The error I am getting when starting apache(tomcat is already started without errors) is this: Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: API module structure `jk_module' in file usr/local/apache/libexec/mod_jk.so is garbled -perhaps this is not an Apache module DSO? So does this mean the mod_jk.so module is not compatible with the upgraded version of apache? How can I fix? Or is my apache install bad? Thanks -ryan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
mod_jk.so not working on upgrade
Having problem upgrading a box. The box is running red hat linux 6.2 with apache 1.3.20 with modssl, it is running with Tomcat 3.2.2. I was in the process of upgrading my apache 1.3.20 to 1.3.26. By the way I am enabling DSO support. I was able to upgrade the apache/modssl package successfully except it bombs out on the mod_jk.so. The error I am getting when starting apache(tomcat is already started without errors) is this: Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto: API module structure `jk_module' in file usr/local/apache/libexec/mod_jk.so is garbled -perhaps this is not an Apache module DSO? So does this mean the mod_jk.so module is not compatible with the upgraded version of apache? How can I fix? Or is my apache install bad? Thanks -ryan -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Is there a native JDBC driver for MS Access?
mysql, postgresql, anything but ms access even sqlserver would be vast improvement. On Sat, 6 Apr 2002, Sriram N wrote: --- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Mon, 8 Apr 2002, Adrian Beech wrote: Date: Mon, 8 Apr 2002 10:38:45 +1000 From: Adrian Beech [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Is there a native JDBC driver for MS Access? Um, okay then how stable is the JDBC/ODBC bridge? As I previously mentioned in my initial posting some bits and peices that I've read suggest that this method of connecting to a DB back end is, or can be, a little dodgy. The comments basically revolved around the premise that the bridge is not capable of being threaded and it is considered by Sun to still be experimental. I got the impression that there is potential for data loss or corruption along with performance related issues. The JDBC/ODBC bridge is not appropriate for use in a multithreaded environment like a servlet container. Also, lots of people have had problems trying to use MS Access (designed for personal desktop use) in environments like this, even with a for-pay JDBC driver. I'd start by choosing a different database. How about MySQL (http://www.mysql.org) ? They have a type 4 JDBC driver. Is this OK in a multithreaded environment ? I guess I really need to know if it is reasonable to use Tomcat to host an environment that relies on this sort of DB connectivity. Adrian [EMAIL PROTECTED] Craig Sriram __ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Yes - Janet B
Hi, Can you attach the directive used to load the module? Eli At 22.52 03/02/2002 -0800, you wrote: Hi, Janet, thanks for your assistance, and I will try that tomorrow. RIght now I am trying to set up the Apache connection to Tomcat 4.0.1 and it bails on restart, not recognizing the LoadModule file in libexec. You know anything about that problem? I am using Red Hat 7.2. At 10:25 PM 2/3/02 +, you wrote: --- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote: Clear question: No answers The subject, supra, asks the question. If you have a number of URLs pointed to a single IP address, can you map the URLs somehow to discrete web applications in Tomcat 4.0? I have read everything I know to read and cannot get the answer to this. I know I could do it with JBoss and Tomcat 3.2.4 and the context manager. But, I don't see that in Tomcat 4.0. What's up? Sure is hard to get a response to this question. Have no idea what. Please don't tell me the stuff that is simple and covered like how to set up directories, etc. I know how to handle aliases, how to handle multiple IP addresses on the same machine, etc. My question is specific. How can I get, e.g. www.a.com and www.b.com when they are pointed to a given IP address, 209.43.251.66 (for example), to map to webapps/a and webapps/b? Or, is this not now possible? Some people have suggested that, since I don't know the answer to this, I need to essentially take the classes I teach for fun. Lord. If only they could answer the question instead of loading me with pompous self-righteous drivel. I do thank those who have tried. I don't know where to look at this point. I may just write the classes to do it. Micael Hi Micael, It is possible to setup Apache with the Warp connector to map different host names to different webapps. In my case I have a number of webapps available under the ROOT context for an equal number of host names. http://xx-xx.mydomain.net - webapps/xx-xx http://yy-yy.mydomain.net - webapps/yy-yy http://zz-zz.mydomain.net - webapps/zz-zz (The setup you desire is a virtual host setup. I'll restrict my advice to the Apache/Warp/TC setup but I think you should reread http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html if you want to omit Apache from your setup.) Below are the relevant extracts from my httpd.conf and server.xml files. httpd.conf -- NameVirtualHost 194.164.98.233 VirtualHost 194.164.98.233 ServerName eng.dev.studylink.com ServerAdmin [EMAIL PROTECTED] WebAppConnection eng-cnx warp localhost:8008 WebAppDeploy eng eng-cnx / ErrorLog /var/opt/apache/logs/eng.error_log CustomLog /var/opt/apache/logs/eng.access_log common /VirtualHost server.xml -- Server port = 8005 shutdown = SHUTDOWN debug = 0 !-- Define an Apache-Connector Service -- Service name=Tomcat-Apache Connector className = org.apache.catalina.connector.warp.WarpConnector port = 8008 minProcessors = 5 maxProcessors = 75 enableLookups = true acceptCount = 10 debug = 1/ Engine className= org.apache.catalina.connector.warp.WarpEngine name = Apache debug = 0 appBase = webapps defaultHost = delta.tudylink.com !-- Global logger unless overridden at lower levels -- Logger className= org.apache.catalina.logger.FileLogger prefix = apache_log. suffix=.txt timestamp = true/ Realm className = org.apache.catalina.realm.MemoryRealm / DefaultContext/DefaultContext /Engine /Service /Server __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Tomcat upgrade on Debian fails..
Two stupid check hoping helps: 1- Check: Tomcat must start first, than start Apache. (..PoolTcpEndpoint Endpoint ServerSocket[addr=localhost/127.0.0.1,port=0,localport=8009.) 2- Check your path (./usr/share/tomcat/work/DEFAULT/examples/webxmlval.txt.) finally check permission in your tomcat dir. As I see : ..Unable to open log file: /usr/share/tomcat/logs/servlet-${MMdd}.log! Using stderr as the default. Unable to open log file: /usr/share/tomcat/logs/jasper-${MMdd}.log! Using stderr as the default. .this can be a permission problem... let me know Eli Spizzichino At 20.11 03/02/2002 -0600, you wrote: I have a problem with Apache(1.3.22)+Tomcat(3.3) after a recent update: I have a working Linux (Debian 2.2.17) system, and am running Apache+Tomcat. Having not used it for awhile, or updated in 4-6 months, I did an apt-get install of tomcat and Apache, to get the most current versions. It did an update, and now it is broken. -( Apache seems to work fine, and has the prescribed tomcat attachments in /etc/apache/httpd.conf, but tomcat fails. Browser symptoms: all .jsp pages give not found. 1) At first none of the servlet or JSP pages worked. Once the first request is made, tomcat keeps getting errors, about one per second, like this (forever) PoolTcpEndpoint Endpoint ServerSocket[addr=localhost/127.0.0.1,port=0,localport =8009] ignored exception java.net.SocketException Socket closed java.net.SocketException Socket closed at java.net.PlainSocketImpl.close(PlainSocketImpl.java408) at java.net.Socket.close(Socket.java383) at java.net.ServerSocket.implAccept(ServerSocket.java206) at java.net.ServerSocket.accept(ServerSocket.java181) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java) PoolTcpEndpoint Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8081] ignored exception java.net.SocketException Socket closed java.net.SocketException Socket closed at java.net.PlainSocketImpl.close(PlainSocketImpl.java408) at java.net.Socket.close(Socket.java383) at java.net.ServerSocket.implAccept(ServerSocket.java206) at java.net.ServerSocket.accept(ServerSocket.java181) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown Source) I found that the workers.properties file was not in the right (referenced in config files), so I repaired that. (why did the (re-)install goof this up?) 2) Now the servlet examples work, all html works, either through Apache or directly by tomcat (:8081), but all .Jsp examples fail: page not found omega/etc/tomcat/logs# more mod_jk.log [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters ... and log/stdout.log shows: Unable to open log file: /usr/share/tomcat/logs/servlet-${MMdd}.log! Using stderr as the default. Unable to open log file: /usr/share/tomcat/logs/jasper-${MMdd}.log! Using stderr as the default. Unable to open log file: /usr/share/tomcat/logs/examples.log! Using stderr as the default. Unable to open log file: /usr/share/tomcat/logs/servlet_examples.log! Using stderr as the default. and in stdout, a bunch of good startup stuff, and then: 2002-01-11 14:18:28 - /examples: Error creating validation mark - java.io.FileNotFoundException: /usr/share/tomcat/work/DEFAULT/examples/webxmlval.txt at java.io.FileOutputStream.init(FileOutputStream.java) at java.io.FileOutputStream.init(FileOutputStream.java) at org.apache.tomcat.facade.WebXmlReader.processWebXmlFile(Unknown Source) at org.apache.tomcat.facade.WebXmlReader.contextInit(Unknown Source) at org.apache.tomcat.core.Context.init(Unknown Source) at org.apache.tomcat.core.ContextManager.init(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat.initContextManager(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat.execute1(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat$1.run(Unknown Source) at org.apache.tomcat.util.compat.Jdk11Compat.doPrivileged(Unknown Source) at org.apache.tomcat.startup.EmbededTomcat.execute(Unknown Source) at org.apache.tomcat.util.IntrospectionUtils.execute(Unknown Source) at org.apache.tomcat.startup.Main.execute(Unknown Source) at org.apache.tomcat.startup.Main.main(Unknown Source) ... 2002-01-11 14:18:41 - Http10Interceptor: Starting on 8081 2002-01-11 14:18:41 - Ajp12Interceptor: Starting on 8007 2002-01-11
RE: safety deploy in tomcat in a shared enviroment
Hi Micael, probably I was unclear. I want to avoid insecure code to being executed. Is it useful to run multiple JVM? If yes how... and so on... I want to make java hosting for unknown java user code, so I need to take attention on system resources and insecure servlet/jsp code. I like to provide a sort of secure sandbox for running servlet and jsp to external users. What type of restriction I have to make? // my environment is: kernel 2.4 (RedHat o SuSe) OpenSSH (opz. OpenSSL) Apache 1.3 Jakarta Tomcat 3.3, Velocity, Turbine, Ant, ORO JDK 1.3 MySQL 3.3 Qmail - Courier IMAP (and other programs like vpopmail .) thank you Eli At 09.02 03/02/2002 -0800, you wrote: Not sure of what sort of security you are trying to develop, Eli. Be more specific. There are lots of available solutions for lots of differing objectives. For example, do you just want to avoid hackers, people jumping into the middle of your site, returns to sensitive pages, etc.? Micael At 06:03 PM 2/3/02 +0100, you wrote: Hi to all, I need to setup a linux-box to host user application in a safety environment. I already read how to setup a Java SecurityManager. Is this the only attention I have look for? If someone had got experience in hosting solution using Tomcat please send me a guideline to check for common security problem, or a list of url to look for doc. every hints is mostly appreciated. thank you Eli Spizzichino -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
safety deploy in tomcat in a shared enviroment
Hi Micael, probably I was unclear. I want to avoid insecure code to being executed. Is it useful to run multiple JVM? If yes how... and so on... I want to make java hosting for unknown java user code, so I need to take attention on system resources and insecure servlet/jsp code. I like to provide a sort of secure sandbox for running servlet and jsp to external users. What type of restriction I have to make? // my environment is: kernel 2.4 (RedHat o SuSe) OpenSSH (opz. OpenSSL) Apache 1.3 Jakarta Tomcat 3.3, Velocity, Turbine, Ant, ORO JDK 1.3 MySQL 3.3 Qmail - Courier IMAP (and other programs like vpopmail .) thank you Eli At 09.02 03/02/2002 -0800, you wrote: Not sure of what sort of security you are trying to develop, Eli. Be more specific. There are lots of available solutions for lots of differing objectives. For example, do you just want to avoid hackers, people jumping into the middle of your site, returns to sensitive pages, etc.? Micael At 06:03 PM 2/3/02 +0100, you wrote: Hi to all, I need to setup a linux-box to host user application in a safety environment. I already read how to setup a Java SecurityManager. Is this the only attention I have look for? If someone had got experience in hosting solution using Tomcat please send me a guideline to check for common security problem, or a list of url to look for doc. every hints is mostly appreciated. thank you Eli Spizzichino -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
System crash with Tomcat 4.0.1
Hi, System Spec: I am using a Windows 2000 Local system, where the local is Arabic. I installed Tomcat 4.0.1 using the .exe installer. Moreover, I installed Tomcat as a service. The JDK version is 1.3.1_01 Problem: when I run tomcat as a service. Every thing up to now is OK, but when I open IE and type in the URL http://localhost:8080;. The system reboots without any error or notefication. Then, I stpped the service and used start.bat and shutdown.bat provided with Tomcat. However, the problem is also there. PS: I used a nother machine with the same Spec, the same problem occured. I also tried to call the URL from a nother machine on the LAN. The system that had the Tomcat was rebooted automatically. Thank you in advance, __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Auto load a servlet
Hi all: I would also be interested in knowing how to autoload a servlet, since I also have the same requirement. I would not like to use HTML+JavaScript. Thanks OSD. --- James Chuang [EMAIL PROTECTED] wrote: Create a real simple index.html, and have it do a onLoad like this... HTML SCRIPT language=JavaScript function redirect() { window.location.href = http://localhost:8080/webstation/servlet/WebStation; } /SCRIPT BODY onLoad=redirect() Redirecting ... /BODY /HTML Then setup your web server to serve up index.html by default. - Original Message - From: Bret Farris [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 1:32 PM Subject: Auto load a servlet I have a servlet that can be loaded by going to http://localhost:8080/webstation/servlet/WebStation The servlet, WebStation.class, is in the directory: webstation\WEB-INF\classes. WebStation.class calls two other servlets, BtmFrame.class and TopFrame.class, which in turn load and display in a browser html files from the webstation directory. What I want to do is have the user enter http://localhost:8080 into their browser, and run the above servlet, as if they entered the link above. Is there a way to do this? I have tried to use mapping with as many different combinations as I can think of, but nothing has worked. Thanks, Bret -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
PLEASE HELP: HTTP Forwarding or proxy??
My system is as below: Internet - Machine1 - Firewall - Machine2 -Machine2 needs to be behind the firewall because it accepts socket communictions. -Machine2 ALSO runs a webserver that needs to be accessed from the Internet. THE PROBLEM - A machine on the Internet CANNOT see Machine2. BUT it can see Machine1. POSSIBLE SOLUTION? - If I use RequestDispatch.forward() that forwards requests to Machine2; will the response come directly from Machine2 OR will it come from Machine2, be passed through Machine1 and then reach the browser from the Internet? POSSIBLE IMPLEMENTATION 1- If the above solution is to write a servlet that listens and simply forwards requests, it will involve setting up a servlet enabled webserver on Machine1. Will this work? How do I write a servlet that maps to the URL: http://IP_ADDRESS/ and takes EVERY request coming to that IP?? and then converts that IP as below. How can I have a servlet that just converts the request - http://GLOBAL_IP_MACHINE1/index.html http://GLOBAL_IP_MACHINE1/servlet/test to http://INTERNAL_IP_MACHINE2/index.html http://INTERNAL_IP_MACHINE2/servlet/test Does anyone have any advice in this regard? Please advise! Cheers. Carlos
Re: Setting default web page.
--- [EMAIL PROTECTED] wrote: Hi, I got the solution for the same by myself. Thanks and Regards Srinivas Chebolu Srinivas.Chebolu@it sindia.com To: [EMAIL PROTECTED] cc: 09/15/01 06:21 PM Subject: Setting default web page. Please respond to tomcat-user Hi, I'm trying to make a login.html file as the default HTML page from my Apache -Tomcat server. Can any one help me out. Thanks and Regards Srinivas Chebolu You asked a question on the list. It would be nice to share the information with the community, even if you found it yourself. Thanks OSD. __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
Please Help: Setting up virtual hosting
Hello All, It is quite a few days that I am spending on tomcat virtual hosting on RedHat Linux 7.1 and it is not still working. Where do you think I can get the latest information on How to setup virtual hosting for tomcat? Please help Thanks java developer in crisis _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.