RE: JBoss + Tomcat + Apache-1.3.33
Tomcat is an application server which listens on port 8080. mod_jk is a connector between apache and tomcat. Seems like you want to have Apache get the requests and proxy them back to tomcat. If you want to make sure Tomcat is listening on port 8080, do netstat -anp and you should see java listening on port 8080. Thats your tomcat. You can also browse to port 8080, http://yourip:8080. Once you verified port 8080 is open, you can setup your proxy on apache and proxy everything to that port. Parviz On Fri, 2004-12-03 at 14:09, Warron French wrote: Yes, AJP is definitely associated with port 8009. Port 8080 with HTTP/1.1 but there is no mention of Tomcat exactly. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:55 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 port 8009 is the AJP (mod_jk) port port 8080 is the tomcat HTTP port. its in a file called server.xml under the jboss structure Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:54 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 Technically, I don't know how well configured it is. Someone else configured it, and I think it is configured for port 8009 but again... how do I know what it is configured for and that I am starting off on the right foot here. Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:51 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 are you saying that your current jboss/tomcat isn't using port 8080? Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:46 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 How do I set it up to use port 8080? Is that a lot more work to do it? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC 8045 Leesburg Pike #400 Vienna, VA 22182 Desk: 703-821-6110 Main: 703-821-6000 Fax: 703-827-0374 -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 4:44 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 yes, with mod_proxy you can do it like this ProxyPass /somedir http://localhost:8080/somedir ProxyPassReverse /somedir http://localhost:8080/somedir this will proxy everything that comes in under /somedir to your website onto tomcat to a webapp named somedir. Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:39 PM Subject: RE: JBoss + Tomcat + Apache-1.3.33 OK, if I have these processes running: /usr/local/apache/bin/httpd /bin/sh /usr/local/jboss-3.2.5/bin/run.sh /usr/local/j2sdk1.4.1_04/bin/java -server -Dprogram.name=run.sh -Xmx1536m -classpath /usr/local/jboss-3.2.5/bin/run.jar:/usr/local/j2sdk1.4.1_04/lib/tools.jar org.jboss.Main Then I really am running Apache, Jboss and Tomcat right? And all I need to do is just use mod_proxy? Is that correct? Merry Christmas Happy New Year! Warron French Sr. Network Engineer Xtria, LLC -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 3:56 PM To: Tomcat Users List Subject: Re: JBoss + Tomcat + Apache-1.3.33 for the fastest and easiest solution, just use mod_proxy, it will only take you a few minutes to setup Filip - Original Message - From: Warron French [EMAIL PROTECTED] To: User Tomcat (E-mail) [EMAIL PROTECTED] Sent: Friday, December 03, 2004 2:53 PM Subject: JBoss + Tomcat + Apache-1.3.33 I have been running full tilt into a wall trying to get a website up and running again with Apache-1.3.33 + Tomcat-4.1.31 + JBoss-3.2.5. Is this possible or is there a conflict with the above mentioned versions of these softwares? A little history of my situation: A server was built from scratch with RedHat Linux 9 / 2.4.20-31.9smp. It came because of the version of linux and by way of RPM install the Apache-2.0.40 server. A coworker of mine installed the JBoss (of which I can only tell you it's version) and mod_jk2 (I assume this IS the Tomcat, but I don't know enough). The server due to complications with some websites it was supportin was suggested to be
Session replication problem
Hi, I'm having problems with the tomcat 5.5 session replication. I've a cluster with three tomcats, one as central node, two as peers. The central node works fine, but whenever I access one of the peers I get the following exception: 06.12.2004 09:51:30 org.apache.catalina.cluster.tcp.ReplicationTransmitter sendMessageData WARNING: Unable to send replicated message, is server down? java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) ... Some things I already tried to solve the problem: - MCast Addr and Port are the same in every server.xml - Mcast seems to work, I had a simple Multicast Client listen on the address and got at least somedata. - distributable/ in the web.xml of my distributed webapps Could anyone give me a hint how to solve the problem? Thank you very much! Marc _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 notably slower than tomcat 4...more info
On Sun, 5 Dec 2004 18:31:47 -0600, Dan Foreman [EMAIL PROTECTED] wrote: Hi, I've learned more since my last questions about tomcat 5 vs 4 performance. The reason that it seems so much slower is that there are more than twice as many packets being returned from the application server...most of which are SYN/SYN-ACK packets (no exaggeration, from 300 packets in tomcat 4 to 800 in tomcat 5). Initially the SYN requests come from the browser (true for IE and FireFox). Theorizing that the problem could be solved changing the connectionLinger setting from the default of 0 to 2000 ms we tried, but had no consistent change in the amount of SYN/SYN-ACK packets being exchanged between the browser and tomcat. The inconsistency in behavior leads me to believe that the problem is somehow related to load (network/cpu/etc), on occasion tomcat 5 will respond as tomcat 4 does (no extra chatter). Tomcat 4 running across the same exact network, through the same context switch does not exhibit this everthere is a single SYN/SYN-ACK initially and then just typical request/responses. Anybody else seen this? No. You'll need to look at this in detail, and I recommend doing some of the testing with really simple stuff (such as static files). -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Service Not Starting Up with Start bar icon but only with a reboot
Jack, However, hitting the icon won't start Tomcat. If I restart the machine it will restart Tomcat however. Have you tried starting it from the services window? Any ideas? Do I need to provide any more information? There is nothing in the logs. Which logs? Have you looked in the windows logs and do you have then enabled? Doug www.parsonstechnical.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: apachephp4.0---Permission denied error
Oops, wrong mailing list. Slide on over to the httpd list. This one's for Tomcat and related jsp/servlet questions. http://httpd.apache.org/lists.html Thanks Doug www.parsonstechnical.com - Original Message - From: vishal nalwa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 06, 2004 12:58 AM Subject: apachephp4.0---Permission denied error HI Folks, Once again i need your help. Actually i am using apache php 4.0 an d3 bsd unix as OS. Now i am trying to run a shell script and i am getting the error of permission denied. This script is all about to spawn a new process. I am keenly waiting for the responses. Thanks in advance ...Vishal Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony - 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]
URL encoding in JSP?
how to send characters in the URLs in JSP code. like vendor.jsp?name=IntelMentorSamsung now in the JSP when I call String name = request.getParameter(name); // The name must be IntelMentorSamsung // instead of Intel only. Best Regards. Shakeel Ahmad. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0.27-r4 java.net.BindException
Chris, Great. Wasn't a home run, but at least I didn't strike out. Doug - Original Message - From: Chris Stratton [EMAIL PROTECTED] To: Parsons Technical Services [EMAIL PROTECTED] Cc: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, December 05, 2004 12:54 PM Subject: Re: Tomcat 5.0.27-r4 java.net.BindException Doug, You did it! You put me on the track. It was the local loopback. I had lost the local loopback somehow in upgrading the kernel etc. Got the config files straightened out and restarted the service viola! On Sat, 4 Dec 2004 22:51:04 -0500, Parsons Technical Services [EMAIL PROTECTED] wrote: Just did some testing on my box. You get a different exception if the port is already in use. Do you have Tomcat configured to only listen on certain IP(s) rather than all addresses. If so check that you don't have a typo and are trying to request an IP not on the box. Doug - Original Message - From: Chris Stratton [EMAIL PROTECTED] To: Parsons Technical Services [EMAIL PROTECTED] Cc: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, December 04, 2004 10:25 PM Subject: Re: Tomcat 5.0.27-r4 java.net.BindException It is not. All tomcat shuts down. If I do a ps -ef after it gives me that error is shows all tomcat threads have shutdown. A netstat -a shows 8005 port not in use and no 8080 port in use. I am really stumped. I had a problem once like this and was able to correct it by deleting the work directory. That was a long time ago though ... like years. On Sat, 4 Dec 2004 22:00:13 -0500, Parsons Technical Services [EMAIL PROTECTED] wrote: I wonder if tomcat is loading on startup? Then port 8005 would be in use by tomcat. See what is running and what is using which ports prior to trying a tomcat start. Do this after a reboot. Got to ask the basics. Doug - Original Message - From: Chris Stratton [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 04, 2004 1:08 PM Subject: Tomcat 5.0.27-r4 java.net.BindException I am running Tomcat 5.0.27-r4(Gentoo package) with blackdown-jdk 1.4.2.01 I have been getting this ... StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331) at java.net.ServerSocket.bind(ServerSocket.java:318) at java.net.ServerSocket.init(ServerSocket.java:185) at org.apache.catalina.core.StandardServer.await(StandardServer.java:496) at org.apache.catalina.startup.Catalina.await(Catalina.java:619) at org.apache.catalina.startup.Catalina.start(Catalina.java:579) 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:284) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422) I have tried changing the port in the server.xml no matter what port I put it on always the same response, I have tried unmerging blackdown, tomcat. All with the same response. Tomcat was working ... the machine rebooted ... now it is not working. I am also running kernel-2.4.26-gentoo-r13 if that makes any difference. As another data point, It takes forever to start up. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CompleteTomcat-4.1.24: Tomcat Admin 'Invalid Direct Reference' error
Just as Matthew Smith 19 months ago I have a similar problem with 'Invalid Direct Reference' error when I try to use the admin app with Tomcat-4.1.24, installed from ServerLogistics CompleteTomcat-4.1.24 distribution for Mac OS X. This is when I go directly via Tomcat and the 8080 port. Apache doesn't seem to be involved. It seems clear that here is a tomcat user with pw tomcat already, but it is surprising that the documentation doesn't tell how to set up Tomcat to use the admin pages. Is this a typical problem for all platforms or is it a OS X specific problem? Have you people got any suggestions on where to look for info on just how to get past this problem and get on with configuration or do you think I'll be better off learning how to tweak the files themselves. If so, I need an online guide for configuration of files for cooperation with Apache 2 and matching its virtual hosts. I've been googling and found a lot, but not this part. I'd post this to the ServerLogistics lists at google but some server side error prevented me from registering. Please help if you have the info. I need to put up my servlets and pages ASAP. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problems with session replication
Hi, I'm a newbie to tomcat session replication. I have a web application running on several tomcat instances (5.0.28) in a clustered environment. Session replication is working as it should when stopping and restaring a tomcat instance. The member joins the cluster and receives all mcast messages from the other members. But when stopping and restarting the web application using tomcat manager without stopping tomcat itself, the new cluster member is not rejoining the cluster at all and receives no session state or mcast messages. What can be the problem. It would be great if someone could point me in the right direction. Thank you! Ina
web.xml
Hi all! I'm wondering how to get the values of the context-param CONFIGFILE (see below) into my normal class. web-app context-param param-nameCONFIGFILE/param-name param-valuec:\some\path\config.xml/param-value /context-param /web-app -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sending New Line Characters and ; in URL
Hai all, I like to send new Line character and ; characters in URL. In hmtl I am using a Form [as like mail box] To address, From address and Message.. When the form is submitted to servlet the information is set to its window.location in servlet response, there by outlook express opens now. Problem is--: But my problem is when i use new Line Charcter or ; , ' charcters i am getting Unterminated String Error. I want the messages to be displayed in Outlook Express as i typed in Html Text Area . What is the Solution for this. Thanks for ever, inr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] RE: URL encoding in JSP?
http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLEncoder.html or JSTL c:url .. / -Original Message- From: Shakeel Ahmad [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 12:30 To: Tomcat Users List Subject: URL encoding in JSP? how to send characters in the URLs in JSP code. like vendor.jsp?name=IntelMentorSamsung now in the JSP when I call String name = request.getParameter(name); // The name must be IntelMentorSamsung // instead of Intel only. Best Regards. Shakeel Ahmad. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sending New Line Characters and ; in URL
From: inr [mailto:[EMAIL PROTECTED] I like to send new Line character and ; characters in URL. In hmtl I am using a Form [as like mail box] To address, From address and Message.. When the form is submitted to servlet the information is set to its window.location in servlet response, there by outlook express opens now. If you set the form method to 'post' instead of 'get', you will be able to transfer this content. In general, using 'get' and encoding the content in the URL is a Very Bad Idea for long content such as messages. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Migrating from Apache2/JK2 to Tomcat standalone
Hi! 3) In Apache I'm using some aliases to serve images stored outside my appbase from inside my webapp (Alias /myapp/alias /path/outside/appbase). I've implemented this by creating context xml files for all my aliases with appBase=/path/outside/appbase path=/myapp/alias. Again, is this the preferred way of doing this? I have found that I cannot forward to these aliases that I have created. I was writing a servlet that would forward the client to the correct image in /myapp/images using a RequestDispatcher. When I changed the alias to /images and it works. Not a cry for help this time :) Just telling about my experience since I found it to be a bit strange. Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web.xml
normal class? Is that a Servlet? public void init(ServletConfig cfg) throws ServletException { String s = cfg.getInitParameter(CONFIGFILE); } you'll need \\ instead of \ Allistair. -Original Message- From: Andreas Andersson [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 12:57 To: [EMAIL PROTECTED] Subject: web.xml Hi all! I'm wondering how to get the values of the context-param CONFIGFILE (see below) into my normal class. web-app context-param param-nameCONFIGFILE/param-name param-valuec:\some\path\config.xml/param-value /context-param /web-app -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CompleteTomcat-4.1.24: Tomcat Admin 'Invalid Direct Reference' error
Mieke Banderas said: Just as Matthew Smith 19 months ago I have a similar problem with 'Invalid Direct Reference' error when I try to use the admin app with Tomcat-4.1.24, installed from ServerLogistics CompleteTomcat-4.1.24 distribution for Mac OS X. This is when I go directly via Tomcat and the 8080 port. I found the solution at http://forums.serverlogistics.com/viewtopic.php? t=764 (from brynley): which is to change tomcat-users-xml to: ?xml version='1.0' encoding='utf-8'? tomcat-users role rolename=tomcat/ role rolename=role1/ role rolename=manager/ role rolename=admin/ user username=tomcat password=tomcat roles=tomcat,admin,manager/ user username=role1 password=tomcat roles=role1/ user username=both password=tomcat roles=tomcat,role1/ /tomcat-users Any advice for matching realms with virtual hosts in Apache is very welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml
Allistair Crossley wrote: normal class? Is that a Servlet? Well, no. This class is called from another class wich in turn is used in a jsp-page as a session bean. Do I have to pass the value down all the way via jsp:setProperty? -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web.xml
you should be acquiring your config params in the way I show, and then setting them perhaps in the application scope, or maybe a registry, or whatever pattern you wish. but do not make your normal classes attempt to access any objects like servletconfig or otherise as that breaks good design. -Original Message- From: Andreas Andersson [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 13:12 To: Tomcat Users List Subject: Re: web.xml Allistair Crossley wrote: normal class? Is that a Servlet? Well, no. This class is called from another class wich in turn is used in a jsp-page as a session bean. Do I have to pass the value down all the way via jsp:setProperty? -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP is not working
Hi All, I have installed Tomcat 5.0.28 with apache 1.3.3 Following are the details of tomcat environments. Using CATALINA_BASE: /usr/local/jakarta/jakarta-tomcat-5.0.28/ Using CATALINA_HOME: /usr/local/jakarta/jakarta-tomcat-5.0.28/ Using CATALINA_TMPDIR: /usr/local/jakarta/jakarta-tomcat-5.0.28//temp Using JAVA_HOME: /usr/local/java/j2sdk1.4.2_05/ I have started the tomcat daemon, but JSP pages are not working for all domains eventhough their entries are added in server.xml. I can see the following logs in the server while starting tomcat. Dec 6, 2004 8:15:36 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 6, 2004 8:15:36 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1009 ms Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/conf/Catalina/localhost/admin.xml Dec 6, 2004 8:15:37 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Dec 6, 2004 8:15:37 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Dec 6, 2004 8:15:37 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Dec 6, 2004 8:15:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/conf/Catalina/localhost/balancer.xml Dec 6, 2004 8:15:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/conf/Catalina/localhost/manager.xml Dec 6, 2004 8:15:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/ROOT Dec 6, 2004 8:15:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/jsp-examples Dec 6, 2004 8:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/servlets-examples Dec 6, 2004 8:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tomcat-docs from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/tomcat-docs Dec 6, 2004 8:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /webdav from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/webdav Dec 6, 2004 8:15:39 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Dec 6, 2004 8:15:39 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Dec 6, 2004 8:15:39 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/25 config=/usr/local/jakarta/jakarta-tomcat-5.0.28/conf/jk2.properties Dec 6, 2004 8:15:39 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 3032 ms And I can see the ports are listening for tomcat. netstat -lpn|grep 80 tcp0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 25571/java tcp0 0 0.0.0.0:80090.0.0.0:* LISTEN 25571/java tcp0 0 0.0.0.0:80800.0.0.0:* LISTEN 25571/java tcp0 0 0.0.0.0:80 0.0.0.0:* LISTEN 25041/httpd But when I access jsp pages, I am getting the following error. HTTP Status 404 - /jsptest.jsp type Status report message /jsptest.jsp description The requested resource (/jsptest.jsp) is not available. Apache Tomcat/5.0.28 I am new in tomcat user, can anyone help me out? Thank you -- With Regards, Akhthar Parvez.K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Prevent user from retrieving previous page in jsp/servlet
I want to invalidate previous page if the back button is pressed. The user should not get the previous page if they return to it pressed. Gareth Segree mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technical Support Analyst The Gleaner Company Ltd. 7 North Street Kingston Tel: 922-3400
[OT] RE: Prevent user from retrieving previous page in jsp/servlet
use a meta expires tag in the html or add an expires header to the response. Allistair. -Original Message- From: Segree, Gareth [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 13:54 To: '[EMAIL PROTECTED]' Subject: Prevent user from retrieving previous page in jsp/servlet I want to invalidate previous page if the back button is pressed. The user should not get the previous page if they return to it pressed. Gareth Segree mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technical Support Analyst The Gleaner Company Ltd. 7 North Street Kingston Tel: 922-3400 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problems with session replication
yes, this is a known bug. Should be fixed in .29 or .30. Filip - Original Message - From: Ina Skåre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 06, 2004 6:47 AM Subject: problems with session replication Hi, I'm a newbie to tomcat session replication. I have a web application running on several tomcat instances (5.0.28) in a clustered environment. Session replication is working as it should when stopping and restaring a tomcat instance. The member joins the cluster and receives all mcast messages from the other members. But when stopping and restarting the web application using tomcat manager without stopping tomcat itself, the new cluster member is not rejoining the cluster at all and receives no session state or mcast messages. What can be the problem. It would be great if someone could point me in the right direction. Thank you! Ina - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session replication problem
This is a TCP connection, using the tcpListenAddress and tcpListenPort attributes. You are probably broadcasting an invalid address, check those two attributes Filip - Original Message - From: marc ratun [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 06, 2004 3:08 AM Subject: Session replication problem Hi, I'm having problems with the tomcat 5.5 session replication. I've a cluster with three tomcats, one as central node, two as peers. The central node works fine, but whenever I access one of the peers I get the following exception: 06.12.2004 09:51:30 org.apache.catalina.cluster.tcp.ReplicationTransmitter sendMessageData WARNING: Unable to send replicated message, is server down? java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) ... Some things I already tried to solve the problem: - MCast Addr and Port are the same in every server.xml - Mcast seems to work, I had a simple Multicast Client listen on the address and got at least somedata. - distributable/ in the web.xml of my distributed webapps Could anyone give me a hint how to solve the problem? Thank you very much! Marc _ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ - 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: Exception in RealmBase
Hi, What Tomcat version are you using? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Mike Duffy [mailto:[EMAIL PROTECTED] Sent: Saturday, December 04, 2004 4:49 AM To: Tomcat Users List Subject: Exception in RealmBase Searching the archives, I found two similar issues from earlier this year that were unanswered: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg131837.ht ml http://www.junlu.com/msg/44667.html Basically, there is an exception at startup when using a custom realm implementation (in my case I am using Security Filter: http://securityfilter.sourceforge.net) Here is the exception: 03:42:59,976 INFO [RealmBase] Parent not available yet: null:type=Engine 03:42:59,983 ERROR [RealmBase] Can't register null java.lang.NullPointerException at org.apache.catalina.realm.RealmBase.init(RealmBase.java:1194) at org.apache.catalina.realm.RealmBase.start(RealmBase.java:875) at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:669) Thx. Mike __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Filter/...
Hi, The Servlet Spec v2.4, which Tomcat 5.x implements, provides an answer to your problem: add a forward/include directives to your filter-mapping. See SRV.13.1 for the syntax and examples. Yoav Shapira http://www.yoavshapira.com -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Saturday, December 04, 2004 10:24 PM To: Tomcat Users List Subject: Re: Filter/... On Sat, Dec 04, 2004 at 05:56:15PM +, Brij Naald wrote: : The filter I have now, always get called when there is an incoming request. : But when a servlet uses a requestdispatcher to include another servlet, the : filter doesn't get called. This makes sense: filters are for external requests, not intra-container requests. This is why you can include() data or forward() to resources that are otherwise protected from direct end-user requests (e.g. files under WEB-INF). : But what I need to get is: : Request -- Filter - Servlet1 - Filter - Servlet2 You may want to consider a high-level redesign, or at least change the include() to an HTTP request in and of itself. What's going on in your design that you require the filter to wrap the inner (include()'d) request? Storing/changing session objects? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sending New Line Characters and ; in URL
Hi Peter Crowther, I am using the POST Method , The problem is not loss of data, it is about the new Line Character and ' , ; charcters when setting as below, Window.location=mailto:[EMAIL PROTECTED];[EMAIL PROTECTED];?CC=ik [EMAIL PROTECTED] Subject=This Raise Error ?Body= sdf ' ' '' This is SAmple Message '; The above are the line i set in the URL of the Window.location; Thanks for ever, inr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0.28 -- HTTP server dies
Hi, Thank you for providing a good laugh on this cold Monday morning ;) We haven't had an oops I had a System.exit call... email in at least a year. The container itself can't do much about developer carelessness. Of course there are other gotchas: don't have infinite loops, don't leave unneeded descriptors open, don't launch an infinite amount of threads, etc, etc. A dedicatd JVM per webapp is a good isolation approach, but you might consider tackling the problem earlier in a the process via a combination of automated tools (checkstyle, PMD, etc.), human code reviews, and tests that mimic real-life conditions, i.e. tests in the container and not just from the command-line. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Jon Doe [mailto:[EMAIL PROTECTED] Sent: Saturday, December 04, 2004 10:38 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.28 -- HTTP server dies From: Ben Souther [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Tomcat 5.0.28 -- HTTP server dies Date: Fri, 03 Dec 2004 20:37:35 -0500 I've set it to listen on port 80. Are you running tomcat as root? In Unix/Linux only the root user can bind to ports below 1025. Try changing the port back to port 8080 and see if it works. OK, after a great deal of digging into this (and some rewriting of my code -- ahem!!) I think I'm getting to the bottom of this. Why does my HTTP server die -- could it be ever so slightly something to do with this call, which also explains the absence of any logging: System.exit(1); (now replaced with throw new ServletException();). Which begs the question, is this allowed? I suppose the container can't do much about dodgy code it's hosting, but clearly code written in good faith and for all the right reasons in this instance could cause significant problems in a shared hosting environment. Is the only answer to ensure your hosted on a dedicated JVM? (Yipee! I hear those hosting companies say.) And are there any other such gotchas developers need to be aware of? They say you live and learn.; hmm... :) Joe. _ 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] RE: Sending New Line Characters and ; in URL
you can't have new line characters in URLs, you'll need to get rid of them with a regular expression for what you are doing I think. Allistair. -Original Message- From: inr [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:29 To: Tomcat Users List Subject: Re: Sending New Line Characters and ; in URL Hi Peter Crowther, I am using the POST Method , The problem is not loss of data, it is about the new Line Character and ' , ; charcters when setting as below, Window.location=mailto:[EMAIL PROTECTED];[EMAIL PROTECTED] ail.com;?CC=ik [EMAIL PROTECTED] Subject=This Raise Error ?Body= sdf ' ' '' This is SAmple Message '; The above are the line i set in the URL of the Window.location; Thanks for ever, inr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Developing my First web app
Il giorno dom, 05-12-2004 alle 03:51 +, Alessandro Ronchi ha scritto: Hi to all. I must develop my first Tomcat web app (to make an olap system for datawarehousing queries with versioning support). I'm looking for a (LGPL or similar) gui library to use for my web app, a framework to make the result similar to a non-web app (like a vb one, but with the advantages of web development). I need buttons, mdi interfaces, menus, etc, and I want to make the use of this structures in development process the simplest possible. Is that possible? Where can I find it? Where can I find some more informations? No hints at all? -- Alessandro Ronchi www.aronchi.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Developing my First web app
Hi, There are numerous options, but talking about them usually leads to flame wars. Check out for example Java Server Faces: http://java.sun.com/j2ee/javaserverfaces/index.jsp, http://www.macromedia.com/software/flex/, and http://www.laszlosystems.com/, among others. If you google for any of these or search sites like theserverside.com for any of these, you will see lengthy and passionate discussions about not only these products, but competing and alternative solutions as well. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Alessandro Ronchi [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 10:28 AM To: Tomcat Users List Subject: Re: Developing my First web app Il giorno dom, 05-12-2004 alle 03:51 +, Alessandro Ronchi ha scritto: Hi to all. I must develop my first Tomcat web app (to make an olap system for datawarehousing queries with versioning support). I'm looking for a (LGPL or similar) gui library to use for my web app, a framework to make the result similar to a non-web app (like a vb one, but with the advantages of web development). I need buttons, mdi interfaces, menus, etc, and I want to make the use of this structures in development process the simplest possible. Is that possible? Where can I find it? Where can I find some more informations? No hints at all? -- Alessandro Ronchi www.aronchi.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xercesImpl.jar xerces.jar TC 5.0.19
Hi, Thanks for the tip ;) We're well aware of package-renaming approach, and in fact do it with DBCP for Tomcat 5.5. But for XML parses after JAXP that's really hardly ever necessary. Yoav Shapira http://www.yoavshapira.com -Original Message- From: David Stevenson [mailto:[EMAIL PROTECTED] Sent: Friday, December 03, 2004 8:14 PM To: Tomcat Users List Subject: RE: xercesImpl.jar xerces.jar TC 5.0.19 One thing I've seen done is that third party software (Documentum Web Development Kit(WDK)/Content Management Software) takes the open source Xerces source code, and renames all the package names. The WDK is then coded using the new package names. This allows a customer's version of Xerces to peacefully co-exist with the the third party's software, and saves the customer the problem of doing that to allow both versions of Xerces to co-exist in a web server. This might be something for Tomcat to consider doing, to better serve customers who want to choose the version of Xerces/Xalan to use with their software. David Stevenson On Fri, 2004-12-03 at 11:58, Shapira, Yoav wrote: Hi, I'm working with Apache Tomcat/5.0.19. In the \Tomcat 5.0\common\endorsed\ directory, I've got 2 libraries : xerces.jar (I think it's an old Xerces, I didn't put myself there : someone else need it) and xercesImpl.jar (a newer version of xerces). It's either or, not both. If you put them both there, you're asking for trouble. I coded a class that need xerces2, but when I launch it (via a servlet) in my Tomcat, it throws a NoSuchMethoError cause it doesn't take the good jar ! How can I force Tomcat to take the librairy j want ? The best option is to only have one (the one that ships with Tomcat) xerces in common/endorsed. Consider having two Tomcat instances, one for someone else with the old xerces, and one with the default Tomcat parser for other applications. Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
another problem with session replication
Thank you for your quick response, Filip, you saved me a lot of hassle trying to figure out the problem... I have now discovered another issue. When restarting tomcat, my application joins the cluster and receives all the mcast messages from that point on, but does not receive the state at startup (so attribute must change before a notification is send and the new member receives any messages). Do you have any idea whats going on here? Thank you , Ina!. - Original Message - From: Filip Hanik - Dev [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 06, 2004 3:00 PM Subject: Re: problems with session replication yes, this is a known bug. Should be fixed in .29 or .30. Filip - Original Message - From: Ina Skåre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 06, 2004 6:47 AM Subject: problems with session replication Hi, I'm a newbie to tomcat session replication. I have a web application running on several tomcat instances (5.0.28) in a clustered environment. Session replication is working as it should when stopping and restaring a tomcat instance. The member joins the cluster and receives all mcast messages from the other members. But when stopping and restarting the web application using tomcat manager without stopping tomcat itself, the new cluster member is not rejoining the cluster at all and receives no session state or mcast messages. What can be the problem. It would be great if someone could point me in the right direction. Thank you! Ina - 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: another problem with session replication
This should work fine. What do your logs say? Filip - Original Message - From: Ina Skåre [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 06, 2004 8:36 AM Subject: another problem with session replication Thank you for your quick response, Filip, you saved me a lot of hassle trying to figure out the problem... I have now discovered another issue. When restarting tomcat, my application joins the cluster and receives all the mcast messages from that point on, but does not receive the state at startup (so attribute must change before a notification is send and the new member receives any messages). Do you have any idea whats going on here? Thank you , Ina!. - Original Message - From: Filip Hanik - Dev [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 06, 2004 3:00 PM Subject: Re: problems with session replication yes, this is a known bug. Should be fixed in .29 or .30. Filip - Original Message - From: Ina Skåre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 06, 2004 6:47 AM Subject: problems with session replication Hi, I'm a newbie to tomcat session replication. I have a web application running on several tomcat instances (5.0.28) in a clustered environment. Session replication is working as it should when stopping and restaring a tomcat instance. The member joins the cluster and receives all mcast messages from the other members. But when stopping and restarting the web application using tomcat manager without stopping tomcat itself, the new cluster member is not rejoining the cluster at all and receives no session state or mcast messages. What can be the problem. It would be great if someone could point me in the right direction. Thank you! Ina - 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: another problem with session replication
i'm not sure if this is a similar issue to this thread, but i setup a 3 member tomcat cluster on 1 machine the other night (ensuring that ports were unique) and also each AJP was unique and so fourth. jk was configured correctly. i noticed on starting each tomcat, that although it seemed happy to startup with the cluster configuration, it output that no other members were detected at that point. All 3 tomcats reported no other members, although each were convinced they were a member of their own cluster. i have no logging with me here, but just in case this is the same thing .. sounds simialr. I was using 5.5.4 Allistair. -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:41 To: Tomcat Users List Subject: Re: another problem with session replication This should work fine. What do your logs say? Filip - Original Message - From: Ina Skåre [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 06, 2004 8:36 AM Subject: another problem with session replication Thank you for your quick response, Filip, you saved me a lot of hassle trying to figure out the problem... I have now discovered another issue. When restarting tomcat, my application joins the cluster and receives all the mcast messages from that point on, but does not receive the state at startup (so attribute must change before a notification is send and the new member receives any messages). Do you have any idea whats going on here? Thank you , Ina!. - Original Message - From: Filip Hanik - Dev [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 06, 2004 3:00 PM Subject: Re: problems with session replication yes, this is a known bug. Should be fixed in .29 or .30. Filip - Original Message - From: Ina Skåre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 06, 2004 6:47 AM Subject: problems with session replication Hi, I'm a newbie to tomcat session replication. I have a web application running on several tomcat instances (5.0.28) in a clustered environment. Session replication is working as it should when stopping and restaring a tomcat instance. The member joins the cluster and receives all mcast messages from the other members. But when stopping and restarting the web application using tomcat manager without stopping tomcat itself, the new cluster member is not rejoining the cluster at all and receives no session state or mcast messages. What can be the problem. It would be great if someone could point me in the right direction. Thank you! Ina - 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] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : web.xml
Hi Andreas. You can get you parameter with: 'request.getSession().getServletContext().getInitParameter(CONFIGFILE)' It first gets a reference on your application context and then gets the parameter you wrote in context-param.../context-param Fred. -Message d'origine- De : Andreas Andersson [mailto:[EMAIL PROTECTED] Envoyé : lundi 6 décembre 2004 13:57 À : [EMAIL PROTECTED] Objet : web.xml Hi all! I'm wondering how to get the values of the context-param CONFIGFILE (see below) into my normal class. web-app context-param param-nameCONFIGFILE/param-name param-valuec:\some\path\config.xml/param-value /context-param /web-app -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: web.xml
Allistair Crossley wrote: you should be acquiring your config params in the way I show, and then setting them perhaps in the application scope, or maybe a registry, or whatever pattern you wish. but do not make your normal classes attempt to access any objects like servletconfig or otherise as that breaks good design. In my opinion configuration classes should be static, just reading a configuration file from the system in a static environment. That makes it difficult to set parameters from the .jsp-pages or servlets. VAN DER MARLIERE FREDERIC wrote: Hi Andreas. You can get you parameter with: 'request.getSession().getServletContext().getInitParameter(CONFIGFILE)' It first gets a reference on your application context and then gets the parameter you wrote in context-param.../context-param Again, this all depends on a jsp-page. Perhaps the way to go is to have the config class nostatic and in the application scope. What is best practise? -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE : web.xml
well if request is available (either in a JSP or a Servlet) then he may as well use application.getInitParameter(CONFIGFILE), or in a Servlt getServletContext().getInitParameter .. no point going via the session. He should not be passing J2EE objects down into his business logic either. -Original Message- From: VAN DER MARLIERE FREDERIC [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:44 To: Andreas Andersson; [EMAIL PROTECTED] Subject: RE : web.xml Hi Andreas. You can get you parameter with: 'request.getSession().getServletContext().getInitParameter(CO NFIGFILE)' It first gets a reference on your application context and then gets the parameter you wrote in context-param.../context-param Fred. -Message d'origine- De : Andreas Andersson [mailto:[EMAIL PROTECTED] Envoyé : lundi 6 décembre 2004 13:57 À : [EMAIL PROTECTED] Objet : web.xml Hi all! I'm wondering how to get the values of the context-param CONFIGFILE (see below) into my normal class. web-app context-param param-nameCONFIGFILE/param-name param-valuec:\some\path\config.xml/param-value /context-param /web-app -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: web.xml
we have objects that statically (and lazily) load properties from databases and files and it works great. we have a context listener so we can clean up after ourselves. it means we don't rely on managing context-params and storing them somewhere for the rest of our app. -Original Message- From: Andreas Andersson [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:48 To: Tomcat Users List Subject: Re: web.xml Allistair Crossley wrote: you should be acquiring your config params in the way I show, and then setting them perhaps in the application scope, or maybe a registry, or whatever pattern you wish. but do not make your normal classes attempt to access any objects like servletconfig or otherise as that breaks good design. In my opinion configuration classes should be static, just reading a configuration file from the system in a static environment. That makes it difficult to set parameters from the .jsp-pages or servlets. VAN DER MARLIERE FREDERIC wrote: Hi Andreas. You can get you parameter with: 'request.getSession().getServletContext().getInitParameter(C ONFIGFILE)' It first gets a reference on your application context and then gets the parameter you wrote in context-param.../context-param Again, this all depends on a jsp-page. Perhaps the way to go is to have the config class nostatic and in the application scope. What is best practise? -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how tomcat compile jsp
When tomcat compiles jsp, does it add jars in /WEB-INF/lib/ to classpath? [If I include third party libs in /WEB-INF/lib/, do I have to add them somewhere for tomcat to load? Or I can just leave them there in /WEB-INF. ] Thanks. Peiyun Jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : web.xml
Your value is also available in a jsp with %= application.getInitParameter(CONFIGFILE) % Fred. -Message d'origine- De : Andreas Andersson [mailto:[EMAIL PROTECTED] Envoyé : lundi 6 décembre 2004 13:57 À : [EMAIL PROTECTED] Objet : web.xml Hi all! I'm wondering how to get the values of the context-param CONFIGFILE (see below) into my normal class. web-app context-param param-nameCONFIGFILE/param-name param-valuec:\some\path\config.xml/param-value /context-param /web-app -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how tomcat compile jsp
all libraries in WEB-INF/lib are automatically loaded for your web application. if you want ALL web applications to have access to a particular library or you are setting up datasources there is also the possibility of adding them to tomcat/common/lib e.g a database driver. -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:52 To: 'Tomcat Users List' Subject: how tomcat compile jsp When tomcat compiles jsp, does it add jars in /WEB-INF/lib/ to classpath? [If I include third party libs in /WEB-INF/lib/, do I have to add them somewhere for tomcat to load? Or I can just leave them there in /WEB-INF. ] Thanks. Peiyun Jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE : web.xml
is there an echo in here? -Original Message- From: VAN DER MARLIERE FREDERIC [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:57 To: Andreas Andersson; [EMAIL PROTECTED] Subject: RE : web.xml Your value is also available in a jsp with %= application.getInitParameter(CONFIGFILE) % Fred. -Message d'origine- De : Andreas Andersson [mailto:[EMAIL PROTECTED] Envoyé : lundi 6 décembre 2004 13:57 À : [EMAIL PROTECTED] Objet : web.xml Hi all! I'm wondering how to get the values of the context-param CONFIGFILE (see below) into my normal class. web-app context-param param-nameCONFIGFILE/param-name param-valuec:\some\path\config.xml/param-value /context-param /web-app -- Andreas Andersson IT Dept. Travelstart Nordic [EMAIL PROTECTED] http://www.travelstart.se Ce message et toutes les pieces jointes (ci-apres le message) sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. This message and any attachments ( the message) are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited.E-mails are susceptible to alteration. Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another problem with session replication
your problem might be as simple as multicasting is not working in your network. filip - Original Message - From: Allistair Crossley [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 06, 2004 8:44 AM Subject: RE: another problem with session replication i'm not sure if this is a similar issue to this thread, but i setup a 3 member tomcat cluster on 1 machine the other night (ensuring that ports were unique) and also each AJP was unique and so fourth. jk was configured correctly. i noticed on starting each tomcat, that although it seemed happy to startup with the cluster configuration, it output that no other members were detected at that point. All 3 tomcats reported no other members, although each were convinced they were a member of their own cluster. i have no logging with me here, but just in case this is the same thing .. sounds simialr. I was using 5.5.4 Allistair. -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:41 To: Tomcat Users List Subject: Re: another problem with session replication This should work fine. What do your logs say? Filip - Original Message - From: Ina Skåre [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 06, 2004 8:36 AM Subject: another problem with session replication Thank you for your quick response, Filip, you saved me a lot of hassle trying to figure out the problem... I have now discovered another issue. When restarting tomcat, my application joins the cluster and receives all the mcast messages from that point on, but does not receive the state at startup (so attribute must change before a notification is send and the new member receives any messages). Do you have any idea whats going on here? Thank you , Ina!. - Original Message - From: Filip Hanik - Dev [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 06, 2004 3:00 PM Subject: Re: problems with session replication yes, this is a known bug. Should be fixed in .29 or .30. Filip - Original Message - From: Ina Skåre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 06, 2004 6:47 AM Subject: problems with session replication Hi, I'm a newbie to tomcat session replication. I have a web application running on several tomcat instances (5.0.28) in a clustered environment. Session replication is working as it should when stopping and restaring a tomcat instance. The member joins the cluster and receives all mcast messages from the other members. But when stopping and restarting the web application using tomcat manager without stopping tomcat itself, the new cluster member is not rejoining the cluster at all and receives no session state or mcast messages. What can be the problem. It would be great if someone could point me in the right direction. Thank you! Ina - 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] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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: how tomcat compile jsp
I know they are loaded to RUN the application. I'd like to know when it COMPILES the jsp pages, if they are loaded or not. Can you clarify it? Thanks. Peiyun -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 9:58 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp all libraries in WEB-INF/lib are automatically loaded for your web application. if you want ALL web applications to have access to a particular library or you are setting up datasources there is also the possibility of adding them to tomcat/common/lib e.g a database driver. -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:52 To: 'Tomcat Users List' Subject: how tomcat compile jsp When tomcat compiles jsp, does it add jars in /WEB-INF/lib/ to classpath? [If I include third party libs in /WEB-INF/lib/, do I have to add them somewhere for tomcat to load? Or I can just leave them there in /WEB-INF. ] Thanks. Peiyun Jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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]
What's the usage of the beanName attribute of the jsp:useBean element?
Howdy, There are five attributes of the JSP standard action jsp:useBean : scope, id, class, beanName and type, as we know, the usage of these attributes are easy to understand except beanName.Would you please tell me what does beanName mean? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how tomcat compile jsp
Hi, Can't you just test this in much less time than it takes to ask and wait for responses on this list? ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 10:10 AM To: 'Tomcat Users List' Subject: RE: how tomcat compile jsp I know they are loaded to RUN the application. I'd like to know when it COMPILES the jsp pages, if they are loaded or not. Can you clarify it? Thanks. Peiyun -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 9:58 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp all libraries in WEB-INF/lib are automatically loaded for your web application. if you want ALL web applications to have access to a particular library or you are setting up datasources there is also the possibility of adding them to tomcat/common/lib e.g a database driver. -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:52 To: 'Tomcat Users List' Subject: how tomcat compile jsp When tomcat compiles jsp, does it add jars in /WEB-INF/lib/ to classpath? [If I include third party libs in /WEB-INF/lib/, do I have to add them somewhere for tomcat to load? Or I can just leave them there in /WEB-INF. ] Thanks. Peiyun Jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how tomcat compile jsp
no need to SHOUT, i can HEAR you ;P yoav is right .. just access a library in a new jsp and see what happens ;) if you want the answer scroll down. yes, the libs are available when the jsps are compiled. -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 15:10 To: 'Tomcat Users List' Subject: RE: how tomcat compile jsp I know they are loaded to RUN the application. I'd like to know when it COMPILES the jsp pages, if they are loaded or not. Can you clarify it? Thanks. Peiyun -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 9:58 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp all libraries in WEB-INF/lib are automatically loaded for your web application. if you want ALL web applications to have access to a particular library or you are setting up datasources there is also the possibility of adding them to tomcat/common/lib e.g a database driver. -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:52 To: 'Tomcat Users List' Subject: how tomcat compile jsp When tomcat compiles jsp, does it add jars in /WEB-INF/lib/ to classpath? [If I include third party libs in /WEB-INF/lib/, do I have to add them somewhere for tomcat to load? Or I can just leave them there in /WEB-INF. ] Thanks. Peiyun Jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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: how tomcat compile jsp
I don't have access to the system. I can only deploy the application to the system by using the manager. It's hard to debug without touch it. I'd appreciate an answer. Thanks. Peiyun -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 10:13 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp Hi, Can't you just test this in much less time than it takes to ask and wait for responses on this list? ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 10:10 AM To: 'Tomcat Users List' Subject: RE: how tomcat compile jsp I know they are loaded to RUN the application. I'd like to know when it COMPILES the jsp pages, if they are loaded or not. Can you clarify it? Thanks. Peiyun -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 9:58 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp all libraries in WEB-INF/lib are automatically loaded for your web application. if you want ALL web applications to have access to a particular library or you are setting up datasources there is also the possibility of adding them to tomcat/common/lib e.g a database driver. -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:52 To: 'Tomcat Users List' Subject: how tomcat compile jsp When tomcat compiles jsp, does it add jars in /WEB-INF/lib/ to classpath? [If I include third party libs in /WEB-INF/lib/, do I have to add them somewhere for tomcat to load? Or I can just leave them there in /WEB-INF. ] Thanks. Peiyun Jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: another problem with session replication
The log seems to be fine and gives me no glue as to what is going wrong. I have attached the log from startup of a new tomcat instance. I have sometimes seen this warning (but didn't appear when producing the log this time): Dec 6, 2004 3:57:57 PM messageDataReceived WARNING: Context manager doesn't exist:/opinio Dec 6, 2004 3:57:59 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster messageDataReceived WARNING: Context manager doesn't exist:/opinio Ina! - Original Message - From: Filip Hanik - Dev [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 06, 2004 3:41 PM Subject: Re: another problem with session replication This should work fine. What do your logs say? Filip - Original Message - From: Ina Skåre [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 06, 2004 8:36 AM Subject: another problem with session replication Thank you for your quick response, Filip, you saved me a lot of hassle trying to figure out the problem... I have now discovered another issue. When restarting tomcat, my application joins the cluster and receives all the mcast messages from that point on, but does not receive the state at startup (so attribute must change before a notification is send and the new member receives any messages). Do you have any idea whats going on here? Thank you , Ina!. - Original Message - From: Filip Hanik - Dev [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 06, 2004 3:00 PM Subject: Re: problems with session replication yes, this is a known bug. Should be fixed in .29 or .30. Filip - Original Message - From: Ina Skåre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 06, 2004 6:47 AM Subject: problems with session replication Hi, I'm a newbie to tomcat session replication. I have a web application running on several tomcat instances (5.0.28) in a clustered environment. Session replication is working as it should when stopping and restaring a tomcat instance. The member joins the cluster and receives all mcast messages from the other members. But when stopping and restarting the web application using tomcat manager without stopping tomcat itself, the new cluster member is not rejoining the cluster at all and receives no session state or mcast messages. What can be the problem. It would be great if someone could point me in the right direction. Thank you! Ina - 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] Dec 6, 2004 3:58:58 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 6, 2004 3:58:58 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1938 ms Dec 6, 2004 3:58:59 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 6, 2004 3:58:59 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Dec 6, 2004 3:58:59 PM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 6, 2004 3:58:59 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start Dec 6, 2004 3:58:59 PM org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership Dec 6, 2004 3:58:59 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.0.2.41:4001,10.0.2.41,4001, alive=8986690] INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.0.2.41:4001,10.0.2.41,4001, alive=8986690] Dec 6, 2004 3:59:01 PM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Dec 6, 2004 3:59:01 PM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. Dec 6, 2004 3:59:01 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.28/conf/Catalina/localhost/ROOT.xml Dec 6, 2004 3:59:01 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.28/conf/Catalina/localhost/jsp-examples.xml Dec 6, 2004 3:59:02 PM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta-tomcat-5.0.28/conf/Catalina/localhost/tomcat-docs.xml Dec 6, 2004 3:59:02 PM
%@page isThreadSafe=false % does not work
Howdy, I compared two servlets' source code compiled from JSPs, at the beginning of one jsp I add page directive: [EMAIL PROTECTED] isThreadSafe=false % and the other, [EMAIL PROTECTED] isThreadSafe=true %. But the two servlet are the same , I had thought the first servlet will implement interface SingleThreadModel, but it didn't. Could anyone give me a hint? BTW, jsp compiler (Lomboz) says SingleThreadModel is deprecated. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: %@page isThreadSafe=false % does not work
Hi, Don't rely on SingleThreadModel, it's more than deprecated: it's evil. Don't use the isThreadSafe directive, don't use SingleThreadModel. Yoav Shapira http://www.yoavshapira.com -Original Message- From: zerol tib [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 10:23 AM To: [EMAIL PROTECTED] Subject: [EMAIL PROTECTED] isThreadSafe=false % does not work Howdy, I compared two servlets' source code compiled from JSPs, at the beginning of one jsp I add page directive: [EMAIL PROTECTED] isThreadSafe=false % and the other, [EMAIL PROTECTED] isThreadSafe=true %. But the two servlet are the same , I had thought the first servlet will implement interface SingleThreadModel, but it didn't. Could anyone give me a hint? BTW, jsp compiler (Lomboz) says SingleThreadModel is deprecated. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: What's the usage of the beanName attribute of the jsp:useBean element?
From: Core Servlets http://pdf.coreservlets.com Rather than use the class attribute, you are permitted to use beanName instead. The difference is that beanName can refer either to a class or to a file containing a serialized bean object. The value of the beanName attribute is passed to the instanciate method of java.beans.Bean On Mon, 2004-12-06 at 10:13, zerol tib wrote: Howdy, There are five attributes of the JSP standard action jsp:useBean : scope, id, class, beanName and type, as we know, the usage of these attributes are easy to understand except beanName.Would you please tell me what does beanName mean? Thanks in advance. - 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: Prevent user from retrieving previous page in jsp/servlet
Google it. Hint, you need to play with response header. -Original Message- From: Segree, Gareth [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 8:54 AM To: '[EMAIL PROTECTED]' Subject: Prevent user from retrieving previous page in jsp/servlet I want to invalidate previous page if the back button is pressed. The user should not get the previous page if they return to it pressed. Gareth Segree mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technical Support Analyst The Gleaner Company Ltd. 7 North Street Kingston Tel: 922-3400 !DSPAM:41b46519164291721719361!
RE: how tomcat compile jsp
Hi, I had problem in deploying the web-apps in tomcat 4 in windows 2000 workstation. When I installed the tomcat 5 in windows XP it disappeared. In windows 2k I was able to run the jsps but not the servlet except from the following folder: C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\WEB-INF\classes . In XP the problem has gonne away and I could install the application even from any other folder. If you don't have to the production environment you have to have a test or development environment to replicate the production situation. Otherwise, its time consuming and hard to debug the errors. Is it in Linux or win 2k or win xp? Razzakul -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 9:18 AM To: 'Tomcat Users List' Subject: RE: how tomcat compile jsp I don't have access to the system. I can only deploy the application to the system by using the manager. It's hard to debug without touch it. I'd appreciate an answer. Thanks. Peiyun -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 10:13 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp Hi, Can't you just test this in much less time than it takes to ask and wait for responses on this list? ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 10:10 AM To: 'Tomcat Users List' Subject: RE: how tomcat compile jsp I know they are loaded to RUN the application. I'd like to know when it COMPILES the jsp pages, if they are loaded or not. Can you clarify it? Thanks. Peiyun -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 9:58 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp all libraries in WEB-INF/lib are automatically loaded for your web application. if you want ALL web applications to have access to a particular library or you are setting up datasources there is also the possibility of adding them to tomcat/common/lib e.g a database driver. -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:52 To: 'Tomcat Users List' Subject: how tomcat compile jsp When tomcat compiles jsp, does it add jars in /WEB-INF/lib/ to classpath? [If I include third party libs in /WEB-INF/lib/, do I have to add them somewhere for tomcat to load? Or I can just leave them there in /WEB-INF. ] Thanks. Peiyun Jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: how tomcat compile jsp
It's a linux box. It's working on my win2k, on another linux box, but not on the one I'm deploying now. Have no access to it, just want to know some general possibilities and try them out for now. Thanks. Peiyun -Original Message- From: Razzakul H Chowdhury [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 10:35 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp Hi, I had problem in deploying the web-apps in tomcat 4 in windows 2000 workstation. When I installed the tomcat 5 in windows XP it disappeared. In windows 2k I was able to run the jsps but not the servlet except from the following folder: C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\WEB-INF\classes . In XP the problem has gonne away and I could install the application even from any other folder. If you don't have to the production environment you have to have a test or development environment to replicate the production situation. Otherwise, its time consuming and hard to debug the errors. Is it in Linux or win 2k or win xp? Razzakul -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 9:18 AM To: 'Tomcat Users List' Subject: RE: how tomcat compile jsp I don't have access to the system. I can only deploy the application to the system by using the manager. It's hard to debug without touch it. I'd appreciate an answer. Thanks. Peiyun -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 10:13 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp Hi, Can't you just test this in much less time than it takes to ask and wait for responses on this list? ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 10:10 AM To: 'Tomcat Users List' Subject: RE: how tomcat compile jsp I know they are loaded to RUN the application. I'd like to know when it COMPILES the jsp pages, if they are loaded or not. Can you clarify it? Thanks. Peiyun -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 9:58 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp all libraries in WEB-INF/lib are automatically loaded for your web application. if you want ALL web applications to have access to a particular library or you are setting up datasources there is also the possibility of adding them to tomcat/common/lib e.g a database driver. -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:52 To: 'Tomcat Users List' Subject: how tomcat compile jsp When tomcat compiles jsp, does it add jars in /WEB-INF/lib/ to classpath? [If I include third party libs in /WEB-INF/lib/, do I have to add them somewhere for tomcat to load? Or I can just leave them there in /WEB-INF. ] Thanks. Peiyun Jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: %@page isThreadSafe=false % does not work
I have to agree with Yoav. You shouldn't use the isThreadSafe directive unless you absolutely have to (why would you?). I would reconsider your design if you think you need to use this directive. On the other hand, AFAIK, the servlet spec only requires the container to guarantee synchronized access to the servlet when the isThreadSafe directive is set to true. It doesn't specify how it is implemented. The SingleThreadModel has been deprecated so I wouldn't expect any recent Servlet container to implement it. I would guess, as I have never used this directive, that the JSP translator would synchronize the methods on the Servlet. Have you checked the access modifiers on the servlet methods? There are probably several ways a container can achieve synchronized access to the servlet. Regards, Andre Van Klaveren, SCJP http://www.vanklaverens.com On Mon, 6 Dec 2004 23:22:57 +0800, zerol tib [EMAIL PROTECTED] wrote: Howdy, I compared two servlets' source code compiled from JSPs, at the beginning of one jsp I add page directive: [EMAIL PROTECTED] isThreadSafe=false % and the other, [EMAIL PROTECTED] isThreadSafe=true %. But the two servlet are the same , I had thought the first servlet will implement interface SingleThreadModel, but it didn't. Could anyone give me a hint? BTW, jsp compiler (Lomboz) says SingleThreadModel is deprecated. Thanks in advance. - 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: Service Not Starting Up with Start bar icon but only with a reboot
Hi, Doug, I am talking about the regular Tomcat logs. If that is not what you mean, then I am not aware of the windows logs. Where are they? My server.xml is: Server port=8005 shutdown=SHUTDOWN GlobalNamingResources !-- Used by Manager webapp -- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved /Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector port=8080 / !-- This is here for compatibility only, not required -- Connector port=8009 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost Logger className=org.apache.catalina.logger.FileLogger / Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase / Host name=localhost appBase=webapps / /Engine /Service /Server Jack On Mon, 6 Dec 2004 07:15:59 -0500, Parsons Technical Services [EMAIL PROTECTED] wrote: Jack, However, hitting the icon won't start Tomcat. If I restart the machine it will restart Tomcat however. Have you tried starting it from the services window? Any ideas? Do I need to provide any more information? There is nothing in the logs. Which logs? Have you looked in the windows logs and do you have then enabled? Doug www.parsonstechnical.com -- You can't wake a person who is pretending to be asleep. ~Native Proverb~ Each man is good in His sight. It is not necessary for eagles to be crows. ~Hunkesni (Sitting Bull), Hunkpapa Sioux~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: webapps ROOT folder significance
Hi Is there anymore background information you can offer on this? Cheers, Allistair. -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: 05 December 2004 10:35 To: Tomcat Users List Subject: Re: webapps ROOT folder significance On Sat, 4 Dec 2004 19:32:13 -, Allistair Crossley [EMAIL PROTECTED] wrote: lol, i wasn't having a dig Remy don't be so cynical, I am just interested, and you didn't answer my question either ;) I mean, it's not difficult of course to redeploy on another server and rename the WAR, I don't think this is anthing sinister at all, sorry you had to think that, I am merely curious why this is now the case in 5.5, when afterall it does tie a webapp's naming to Tomcat's way of doing things. I figured it would be better to have a deployer which worked :) -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat with IIS 6 on Win 2003
Do you know if a new isapi_redirect.dll is available to run Tomcat under IIS 6 (without switching in IIS 5 isolation mode)? Thanks, Andrey Vakulenko, EDS - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Chirag: Which Version is Stable 5.5.2 Is this Version Stable
Hi, 5.5.4 is stable is you said. 5.0.29 and 5.0.30, both available now, are both beta. 5.0.28 is stable. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Saturday, December 04, 2004 2:20 PM To: Tomcat Users List [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: Chirag: Which Version is Stable 5.5.2 Is this Version Stable In terms of 5.5, 5.5.4 is the current stable version. In terms of 5.0, 5.0.29 is the current stable version with 5.0.30 coming soon. I have 5.5.2 version it works properly but the problem is that when I try to access it with the IP Address http://160.160.160.160/ http://160.160.160.160/ then it throws an SocketException and the server hangs really? can you post the problem again or give me a link to the post on a mail archive. Can you also provide the SocketException stack trace that you get, and explain _when_ the exception occurs. E.g does it occur on the 1st request, or on startup. Because you say it works properly which I assume means Tomcat can FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: how tomcat compile jsp
Presumably this is a security issue. You could check the directory permission and also see whether the examples or any other webapp's servlets are running. After deploying webapps you might restart the tomcat server and check the log files. Thanks. Razzakul -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 9:37 AM To: 'Tomcat Users List' Subject: RE: how tomcat compile jsp It's a linux box. It's working on my win2k, on another linux box, but not on the one I'm deploying now. Have no access to it, just want to know some general possibilities and try them out for now. Thanks. Peiyun -Original Message- From: Razzakul H Chowdhury [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 10:35 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp Hi, I had problem in deploying the web-apps in tomcat 4 in windows 2000 workstation. When I installed the tomcat 5 in windows XP it disappeared. In windows 2k I was able to run the jsps but not the servlet except from the following folder: C:\Program Files\Apache Group\Tomcat 4.1\webapps\examples\WEB-INF\classes . In XP the problem has gonne away and I could install the application even from any other folder. If you don't have to the production environment you have to have a test or development environment to replicate the production situation. Otherwise, its time consuming and hard to debug the errors. Is it in Linux or win 2k or win xp? Razzakul -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 9:18 AM To: 'Tomcat Users List' Subject: RE: how tomcat compile jsp I don't have access to the system. I can only deploy the application to the system by using the manager. It's hard to debug without touch it. I'd appreciate an answer. Thanks. Peiyun -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 10:13 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp Hi, Can't you just test this in much less time than it takes to ask and wait for responses on this list? ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 10:10 AM To: 'Tomcat Users List' Subject: RE: how tomcat compile jsp I know they are loaded to RUN the application. I'd like to know when it COMPILES the jsp pages, if they are loaded or not. Can you clarify it? Thanks. Peiyun -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 9:58 AM To: Tomcat Users List Subject: RE: how tomcat compile jsp all libraries in WEB-INF/lib are automatically loaded for your web application. if you want ALL web applications to have access to a particular library or you are setting up datasources there is also the possibility of adding them to tomcat/common/lib e.g a database driver. -Original Message- From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 14:52 To: 'Tomcat Users List' Subject: how tomcat compile jsp When tomcat compiles jsp, does it add jars in /WEB-INF/lib/ to classpath? [If I include third party libs in /WEB-INF/lib/, do I have to add them somewhere for tomcat to load? Or I can just leave them there in /WEB-INF. ] Thanks. Peiyun Jiang - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
DBCP/JNDI/Realms
Good morning! I've been running into an intermittent problem with my database connections for authentication. It appears that periodically, the iSeries (DB2/400) that I connect to terminates all incoming ODBC/JDBC connections (one a week, apparently). What happens in my application is that users can no longer login after the connections have been dropped. The connection pool apparently doesn't try to re-initiate the connections after they've been dropped. I see an exception in my logs regarding the connection being reset, then I see an exception relating to the pool being exhausted. I'm not entirely sure what the root cause of the problem here is - in theory, DBCP should recover gracefully when a connection is reset/dropped, right? Here's the initial exception: java.sql.SQLException: Communication link failure.(Connection was dropped unexpectedly.) at com.ibm.as400.access.JDError.throwSQLException(JDError.java:365) at com.ibm.as400.access.AS400JDBCConnection.send(AS400JDBCConnection.java(Compiled Code)) at com.ibm.as400.access.AS400JDBCConnection.send(AS400JDBCConnection.java(Inlined Compiled Code)) at com.ibm.as400.access.AS400JDBCStatement.syncRPB(AS400JDBCStatement.java(Compiled Code)) at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java(Compiled Code)) at com.ibm.as400.access.AS400JDBCPreparedStatement.init(AS400JDBCPreparedStatement.java(Compiled Code)) at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCConnection.java(Compiled Code)) at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCConnection.java(Compiled Code)) at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java(Compiled Code)) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java(Compiled Code)) at org.apache.catalina.realm.DataSourceRealm.credentials(DataSourceRealm.java:460) [snip] Here's the next one: 2004-12-06 04:39:21 DataSourceRealm[]: Exception performing authentication org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java(Compiled Code)) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java(Compiled Code)) at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:438) at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:277) [snip] So, what I've done now to see if it helps matters any, is specify the AS400's own connection pool factory in my JNDI definition, like so: parameter namefactory/name valuecom.ibm.as400.access.AS400JDBCConnectionPoolDataSource/value /parameter Both Tomcat's form authentication as well as my application (through iBATiS) use this JNDI DataSource for connections. Can anyone shed more light on what the root cause of the problem is here? Should DBCP gracefully recover? Regards, Brice Ruth -- Brice Ruth, Sr. IT Analyst Fiskars Brands Inc http://www.fiskarsbrands.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DBCP/JNDI/Realms
Hi, DBCP will NOT gracefully recover by itself. You need to configure it according to your desired behavior. Specifically, check out the testOnBorrow, testOnReturn, and testWhileIdle properties at http://jakarta.apache.org/commons/dbcp/configuration.html. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 11:32 AM To: Tomcat Users List Subject: DBCP/JNDI/Realms Good morning! I've been running into an intermittent problem with my database connections for authentication. It appears that periodically, the iSeries (DB2/400) that I connect to terminates all incoming ODBC/JDBC connections (one a week, apparently). What happens in my application is that users can no longer login after the connections have been dropped. The connection pool apparently doesn't try to re-initiate the connections after they've been dropped. I see an exception in my logs regarding the connection being reset, then I see an exception relating to the pool being exhausted. I'm not entirely sure what the root cause of the problem here is - in theory, DBCP should recover gracefully when a connection is reset/dropped, right? Here's the initial exception: java.sql.SQLException: Communication link failure.(Connection was dropped unexpectedly.) at com.ibm.as400.access.JDError.throwSQLException(JDError.java:365) at com.ibm.as400.access.AS400JDBCConnection.send(AS400JDBCConnection.java( Comp iled Code)) at com.ibm.as400.access.AS400JDBCConnection.send(AS400JDBCConnection.java( Inli ned Compiled Code)) at com.ibm.as400.access.AS400JDBCStatement.syncRPB(AS400JDBCStatement.java (Com piled Code)) at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatemen t.ja va(Compiled Code)) at com.ibm.as400.access.AS400JDBCPreparedStatement.init(AS400JDBCPrepare dSta tement.java(Compiled Code)) at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCConn ecti on.java(Compiled Code)) at com.ibm.as400.access.AS400JDBCConnection.prepareStatement(AS400JDBCConn ecti on.java(Compiled Code)) at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(Delegatin gCon nection.java(Compiled Code)) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.pr epar eStatement(PoolingDataSource.java(Compiled Code)) at org.apache.catalina.realm.DataSourceRealm.credentials(DataSourceRealm.j ava: 460) [snip] Here's the next one: 2004-12-06 04:39:21 DataSourceRealm[]: Exception performing authentication org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSour ce.j ava(Compiled Code)) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j ava( Compiled Code)) at org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:438 ) at org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm. java :277) [snip] So, what I've done now to see if it helps matters any, is specify the AS400's own connection pool factory in my JNDI definition, like so: parameter namefactory/name valuecom.ibm.as400.access.AS400JDBCConnectionPoolDataSource/value /parameter Both Tomcat's form authentication as well as my application (through iBATiS) use this JNDI DataSource for connections. Can anyone shed more light on what the root cause of the problem is here? Should DBCP gracefully recover? Regards, Brice Ruth -- Brice Ruth, Sr. IT Analyst Fiskars Brands Inc http://www.fiskarsbrands.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat with IIS 6 on Win 2003
Vakulenko, Andrey V wrote: Do you know if a new isapi_redirect.dll is available to run Tomcat under IIS 6 (without switching in IIS 5 isolation mode)? No. Neither it will. We'll probably develop a new connector for IIS6 using new proxy_ajp code base. There are just too many differences between IIS5 and IIS6 modes. MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat with IIS 6 on Win 2003
Any timetable? -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 10:40 AM To: Tomcat Users List Subject: Re: Tomcat with IIS 6 on Win 2003 Vakulenko, Andrey V wrote: Do you know if a new isapi_redirect.dll is available to run Tomcat under IIS 6 (without switching in IIS 5 isolation mode)? No. Neither it will. We'll probably develop a new connector for IIS6 using new proxy_ajp code base. There are just too many differences between IIS5 and IIS6 modes. MT. - 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: HP-UX misbehaving AGAIN
From: Tim Funk [EMAIL PROTECTED] http://jakarta.apache.org/tomcat/faq/memory.html#why After a long battle with HP-UX - I love the performance I get on it. Odds are - your memory issues have to do with process/thread limits. Thank you for the tip! It turned out to be that Tomcat was out of threads, according to a message in catalina.out. In server.xml, maxThreads was set to 75, and I read that it should be set to the same thing as Apache's MaxClients, which was 150. I probably did that to myself, we install Apache and Tomcat from HP's 'depot' but then I replace Tomcat as they always lag behind. Crisis averted for the moment! Thanks again for your help. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Chirag: java.net.SocketException: socket closed Endpoint ServerSocket
Software Installed -- jakarta-tomcat-5.5.2 JDK 1.5 IE 6.0SP1 Requirement The PC has Internet Connection. and we start the Tomcat Server. After that we try to see the site http://localhost:8080/ We get normal Tomcat Home Page ready Afterwards I try to surf the same site by typing http://160.160.160.160:8080/ where 160.160.160.160 is the IP address After that the Tomcat Server throws the error and the IE also is trying to display the page The problem is that I want that other people should be able to access my site through IP Address and I don't want to get into the domain thing How to do that Exception Raised in Tomcot Server INFO: Server startup in 20650 msNov 18, 2004 8:03:23 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocketSEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception: java.net.SocketException: socket closedjava.net.SocketException: socket closed at java.net.PlainSocketImpl.socketAccept(Native Method)at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)at java.net.ServerSocket.implAccept(ServerSocket.java:450)at java.net.ServerSocket.accept(ServerSocket.java:421)at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:368) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)Nov 18, 2004 8:03:23 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocketWARNING: Reinitializing ServerSocket Thanks in advance CSJakharia Subscribe to bermudaEmail: [input] [input] Browse Archives at groups-beta.google.com - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.
Re: Tomcat with IIS 6 on Win 2003
Vakulenko, Andrey V wrote: Any timetable? Not this year for sure :). I think by the end of February next year. MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Prevent user from retrieving previous page in jsp/servlet
This is an interesting question. I have created a ServletFilter that appends the following headers to all responses: response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); response.setDateHeader(Last-Modified, System.currentTimeMillis/()); response.setDateHeader(Expires, 0); This doesn't work. Firefox will serve the previous page out of it's cache. I'd be interested to know if anyone else has been able to make this work. Karl On Mon, 6 Dec 2004 08:54:29 -0500, Segree, Gareth [EMAIL PROTECTED] wrote: I want to invalidate previous page if the back button is pressed. The user should not get the previous page if they return to it pressed. Gareth Segree mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technical Support Analyst The Gleaner Company Ltd. 7 North Street Kingston Tel: 922-3400 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat with IIS 6 on Win 2003
Thanks a lot -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 10:54 AM To: Tomcat Users List Subject: Re: Tomcat with IIS 6 on Win 2003 Vakulenko, Andrey V wrote: Any timetable? Not this year for sure :). I think by the end of February next year. MT. - 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: Prevent user from retrieving previous page in jsp/servlet
response.setDateHeader(Last-Modified, System.currentTimeMillis/()); ^^^ is invalid .. -Original Message- From: Karl Ostendorf [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 17:03 To: Tomcat Users List Subject: Re: Prevent user from retrieving previous page in jsp/servlet This is an interesting question. I have created a ServletFilter that appends the following headers to all responses: response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); response.setDateHeader(Last-Modified, System.currentTimeMillis/()); response.setDateHeader(Expires, 0); This doesn't work. Firefox will serve the previous page out of it's cache. I'd be interested to know if anyone else has been able to make this work. Karl On Mon, 6 Dec 2004 08:54:29 -0500, Segree, Gareth [EMAIL PROTECTED] wrote: I want to invalidate previous page if the back button is pressed. The user should not get the previous page if they return to it pressed. Gareth Segree mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technical Support Analyst The Gleaner Company Ltd. 7 North Street Kingston Tel: 922-3400 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HP-UX misbehaving AGAIN
Wendy, There are also a number of HP recommended tunes you can do the kernal of HP-UX to improve performance for tomcat apache httpd - provided you have a busy system. Some easy ones are: maxuprc default=75, recommend 3500 nproc default=(20+8*MAXUSERS), recommend (20+32*MAXUSERS) max_thread_proc default=64, recommend 2048 dbc_max_pct default=50, recommend 30 dbc_min_pct default=2, recommend 15 tcphashsz = 32000 See HP's site for more detail. --Dan -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 10:51 AM To: Tomcat Users List Subject: Re: HP-UX misbehaving AGAIN From: Tim Funk [EMAIL PROTECTED] http://jakarta.apache.org/tomcat/faq/memory.html#why After a long battle with HP-UX - I love the performance I get on it. Odds are - your memory issues have to do with process/thread limits. Thank you for the tip! It turned out to be that Tomcat was out of threads, according to a message in catalina.out. In server.xml, maxThreads was set to 75, and I read that it should be set to the same thing as Apache's MaxClients, which was 150. I probably did that to myself, we install Apache and Tomcat from HP's 'depot' but then I replace Tomcat as they always lag behind. Crisis averted for the moment! Thanks again for your help. -- Wendy Smoak - 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 is not working
by default, tomcat runs it's http server on port 8080. It sounds as thought you haven't configured a connector between apache and tomcat and you are expecting tomcat to answer the request made tp apache. Try directing your http request to port 8080 by appending :8080 to the domain name part of the url and please take the time t read the documentation :) Akhthar Parvez. K wrote: Hi All, I have installed Tomcat 5.0.28 with apache 1.3.3 Following are the details of tomcat environments. Using CATALINA_BASE: /usr/local/jakarta/jakarta-tomcat-5.0.28/ Using CATALINA_HOME: /usr/local/jakarta/jakarta-tomcat-5.0.28/ Using CATALINA_TMPDIR: /usr/local/jakarta/jakarta-tomcat-5.0.28//temp Using JAVA_HOME: /usr/local/java/j2sdk1.4.2_05/ I have started the tomcat daemon, but JSP pages are not working for all domains eventhough their entries are added in server.xml. I can see the following logs in the server while starting tomcat. Dec 6, 2004 8:15:36 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 6, 2004 8:15:36 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1009 ms Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/conf/Catalina/localhost/admin.xml Dec 6, 2004 8:15:37 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Dec 6, 2004 8:15:37 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Dec 6, 2004 8:15:37 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Dec 6, 2004 8:15:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/conf/Catalina/localhost/balancer.xml Dec 6, 2004 8:15:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/conf/Catalina/localhost/manager.xml Dec 6, 2004 8:15:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/ROOT Dec 6, 2004 8:15:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/jsp-examples Dec 6, 2004 8:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/servlets-examples Dec 6, 2004 8:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tomcat-docs from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/tomcat-docs Dec 6, 2004 8:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /webdav from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/webdav Dec 6, 2004 8:15:39 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Dec 6, 2004 8:15:39 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Dec 6, 2004 8:15:39 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/25 config=/usr/local/jakarta/jakarta-tomcat-5.0.28/conf/jk2.properties Dec 6, 2004 8:15:39 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 3032 ms And I can see the ports are listening for tomcat. netstat -lpn|grep 80 tcp0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 25571/java tcp0 0 0.0.0.0:80090.0.0.0:* LISTEN 25571/java tcp0 0 0.0.0.0:80800.0.0.0:* LISTEN 25571/java tcp0 0 0.0.0.0:80 0.0.0.0:* LISTEN 25041/httpd But when I access jsp pages, I am getting the following error. HTTP Status 404 - /jsptest.jsp type Status report message /jsptest.jsp description The requested resource (/jsptest.jsp) is not available. Apache Tomcat/5.0.28 I am new in tomcat user, can anyone help me out? Thank
help with html + servlet
Hello experts, I am reading to the documentation, but I do not understand how to make it so that Tomcat executes a servlet as the action for an HTML file after the submit button is clicked. I put my HTML code in the Tomcat 5.0\webapps\ROOT directory and I am putting my servlet in the Tomcat 5.0\webapps\ROOT\WEB-INF\classes\florezn, but this does not work. What Iam I missing I am doing this for a homework and part one is supposed to be simple a HTML file that ask for your name and the servlet just display the named enter. I am just missing where to put the servlet. I was reading a book that said that you put your servlets in the path/servlets/myservlet, but then you access the servlet by using path/servlet/myservlet. This obviously different from Tomcat This is probable very basic for you guys, but not for me. Appreciate any help - Thanks, :-) Néstor Alberto Flórez Torres - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] RE: Prevent user from retrieving previous page in jsp/servlet
hm, i can't seem to get them working either in IE, I think the last time I had this working was after a form post, not just navigation through pages. Sorry. A google search may be more appropriate. Cheers, Allistair. -Original Message- From: Allistair Crossley Sent: 06 December 2004 17:11 To: Tomcat Users List; Karl Ostendorf Subject: RE: Prevent user from retrieving previous page in jsp/servlet response.setDateHeader(Last-Modified, System.currentTimeMillis/()); ^^^ is invalid .. -Original Message- From: Karl Ostendorf [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 17:03 To: Tomcat Users List Subject: Re: Prevent user from retrieving previous page in jsp/servlet This is an interesting question. I have created a ServletFilter that appends the following headers to all responses: response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); response.setDateHeader(Last-Modified, System.currentTimeMillis/()); response.setDateHeader(Expires, 0); This doesn't work. Firefox will serve the previous page out of it's cache. I'd be interested to know if anyone else has been able to make this work. Karl On Mon, 6 Dec 2004 08:54:29 -0500, Segree, Gareth [EMAIL PROTECTED] wrote: I want to invalidate previous page if the back button is pressed. The user should not get the previous page if they return to it pressed. Gareth Segree mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technical Support Analyst The Gleaner Company Ltd. 7 North Street Kingston Tel: 922-3400 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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: Prevent user from retrieving previous page in jsp/servlet
I would suggest doing it client side with javascript. use location.replace(url) which will in effect replace the url in the history. so the back button will take you 2 step back. The only other way that i know of to do this is to clear the cache as offered in the other answer thread and keep track of the user's activity in his session Segree, Gareth wrote: I want to invalidate previous page if the back button is pressed. The user should not get the previous page if they return to it pressed. Gareth Segree mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technical Support Analyst The Gleaner Company Ltd. 7 North Street Kingston Tel: 922-3400 -- Alain Gaeremynck CTO Le Groupe Interstructure (514) 374-1110 (514) 825-7810 cell weblog: http://www.sanssucre.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Prevent user from retrieving previous page in jsp/servlet
Also add response.setHeader(cache-control, no-cache,no-store,must-revalidate,post-check=0, pre-check=0); -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 12:11 PM To: Tomcat Users List; Karl Ostendorf Subject: RE: Prevent user from retrieving previous page in jsp/servlet response.setDateHeader(Last-Modified, System.currentTimeMillis/()); ^^^ is invalid .. -Original Message- From: Karl Ostendorf [mailto:[EMAIL PROTECTED] Sent: 06 December 2004 17:03 To: Tomcat Users List Subject: Re: Prevent user from retrieving previous page in jsp/servlet This is an interesting question. I have created a ServletFilter that appends the following headers to all responses: response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); response.setDateHeader(Last-Modified, System.currentTimeMillis/()); response.setDateHeader(Expires, 0); This doesn't work. Firefox will serve the previous page out of it's cache. I'd be interested to know if anyone else has been able to make this work. Karl On Mon, 6 Dec 2004 08:54:29 -0500, Segree, Gareth [EMAIL PROTECTED] wrote: I want to invalidate previous page if the back button is pressed. The user should not get the previous page if they return to it pressed. Gareth Segree mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technical Support Analyst The Gleaner Company Ltd. 7 North Street Kingston Tel: 922-3400 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41b492ae186863581515385!
RE: Prevent user from retrieving previous page in jsp/servlet
There were a lot of posts rearding this Back issue in struts-user mailing list. -Original Message- From: Alain Gaeremynck [mailto:[EMAIL PROTECTED] Sent: December 6, 2004 12:26 PM To: Tomcat Users List Subject: Re: Prevent user from retrieving previous page in jsp/servlet I would suggest doing it client side with javascript. use location.replace(url) which will in effect replace the url in the history. so the back button will take you 2 step back. The only other way that i know of to do this is to clear the cache as offered in the other answer thread and keep track of the user's activity in his session Segree, Gareth wrote: I want to invalidate previous page if the back button is pressed. The user should not get the previous page if they return to it pressed. Gareth Segree mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Technical Support Analyst The Gleaner Company Ltd. 7 North Street Kingston Tel: 922-3400 -- Alain Gaeremynck CTO Le Groupe Interstructure (514) 374-1110 (514) 825-7810 cell weblog: http://www.sanssucre.ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:41b49647187547177317199!
problem with response.encodeURL in jsp
I am trying to customize the login.jsp page and when I add more formatting and some graphics the jsp that encodes the URL for the security check does not encode correctly. Instead of %= response.encodeURL(j_security_check) % retruning j_security_check;j_sessionid=A94B886CDA164C04611E9DF6E121DC5B it simply returns j_security_check Any ideas why adding tables and graphics would change the return value? Robert S. Harper Senior Engineer
OT (Slightly): Large 64 bit JVMs
Title: OT (Slightly): Large 64 bit JVMs Hi, Does anyone have any experience of running large 64 bit JVMs on Solaris. We've got a box with 16GB of RAM and despite increasing the kernel parameter shmmax I can't get a JVM to be any bigger than about 3300MB. Any hints or tips or links appreciated. Ta Matt Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT (Slightly): Large 64 bit JVMs
Hi, I have a little bit of experience in this area, not much. The JVM will grow as much as it needs subject to your -Xms/-Xmx and other settings, as I'm sure you know already. So could it be it's not growing past 3300MB because it doesn't need to? Stress it out with a bigger load, or maybe try -Xms4G just for testing, to see what happens ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:02 PM To: Tomcat Users List (E-mail) Subject: OT (Slightly): Large 64 bit JVMs Hi, Does anyone have any experience of running large 64 bit JVMs on Solaris. We've got a box with 16GB of RAM and despite increasing the kernel parameter shmmax I can't get a JVM to be any bigger than about 3300MB. Any hints or tips or links appreciated. Ta Matt This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
Re: JSP is not working
hi All, I just fixed it. Now the JSP is working:) The problem was with the /Engine directive. It was above of all the domain's host entries in server.xml. So that Tomcat did not recognize those domains. I have moved that entry at the bottom and JSP is working fine for all the domains. Any way thanks to the guys who have tried to help me in this issue. On Monday 06 December 2004 19:06, Akhthar Parvez. K wrote: Hi All, I have installed Tomcat 5.0.28 with apache 1.3.3 Following are the details of tomcat environments. Using CATALINA_BASE: /usr/local/jakarta/jakarta-tomcat-5.0.28/ Using CATALINA_HOME: /usr/local/jakarta/jakarta-tomcat-5.0.28/ Using CATALINA_TMPDIR: /usr/local/jakarta/jakarta-tomcat-5.0.28//temp Using JAVA_HOME: /usr/local/java/j2sdk1.4.2_05/ I have started the tomcat daemon, but JSP pages are not working for all domains eventhough their entries are added in server.xml. I can see the following logs in the server while starting tomcat. Dec 6, 2004 8:15:36 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 6, 2004 8:15:36 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1009 ms Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.28 Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardHost start INFO: XML validation disabled Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) Dec 6, 2004 8:15:36 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/conf/Catalina/localhost/admin .xml Dec 6, 2004 8:15:37 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true Dec 6, 2004 8:15:37 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true Dec 6, 2004 8:15:37 AM org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true Dec 6, 2004 8:15:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/conf/Catalina/localhost/balan cer.xml Dec 6, 2004 8:15:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Processing Context configuration file URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/conf/Catalina/localhost/manag er.xml Dec 6, 2004 8:15:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/ROOT Dec 6, 2004 8:15:38 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /jsp-examples from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/jsp-examples Dec 6, 2004 8:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /servlets-examples from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/servlets-examples Dec 6, 2004 8:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /tomcat-docs from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/tomcat-docs Dec 6, 2004 8:15:39 AM org.apache.catalina.core.StandardHostDeployer install INFO: Installing web application at context path /webdav from URL file:/usr/local/jakarta/jakarta-tomcat-5.0.28/webapps/webdav Dec 6, 2004 8:15:39 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Dec 6, 2004 8:15:39 AM org.apache.jk.common.ChannelSocket init INFO: JK2: ajp13 listening on /0.0.0.0:8009 Dec 6, 2004 8:15:39 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/25 config=/usr/local/jakarta/jakarta-tomcat-5.0.28/conf/jk2.properties Dec 6, 2004 8:15:39 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 3032 ms And I can see the ports are listening for tomcat. netstat -lpn|grep 80 tcp0 0 127.0.0.1:8005 0.0.0.0:* LISTEN 25571/java tcp0 0 0.0.0.0:80090.0.0.0:* LISTEN 25571/java tcp0 0 0.0.0.0:80800.0.0.0:* LISTEN 25571/java tcp0 0 0.0.0.0:80 0.0.0.0:* LISTEN 25041/httpd But when I access jsp pages, I am getting the following error. HTTP Status 404 - /jsptest.jsp type Status report message /jsptest.jsp description The requested resource (/jsptest.jsp) is not
Re: help with html + servlet
I've got some example code here: http://simple.souther.us SimpleBean has an example of a form post. SimpleServlet has a mapped bean. They're all war files that you can just drop into your webapps folder and run. On Mon, 2004-12-06 at 12:24, Nestor Florez wrote: Hello experts, I am reading to the documentation, but I do not understand how to make it so that Tomcat executes a servlet as the action for an HTML file after the submit button is clicked. I put my HTML code in the Tomcat 5.0\webapps\ROOT directory and I am putting my servlet in the Tomcat 5.0\webapps\ROOT\WEB-INF\classes\florezn, but this does not work. What Iam I missing I am doing this for a homework and part one is supposed to be simple a HTML file that ask for your name and the servlet just display the named enter. I am just missing where to put the servlet. I was reading a book that said that you put your servlets in the path/servlets/myservlet, but then you access the servlet by using path/servlet/myservlet. This obviously different from Tomcat This is probable very basic for you guys, but not for me. Appreciate any help - Thanks, :-) Nstor Alberto Flrez Torres - 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: help with html + servlet
From: Nestor Florez [EMAIL PROTECTED] I put my HTML code in the Tomcat 5.0\webapps\ROOT directory and I am putting my servlet in the Tomcat 5.0\webapps\ROOT\WEB-INF\classes\florezn, Make sure your package statement is correct for that path. I am doing this for a homework and part one is supposed to be simple a HTML file that ask for your name and the servlet just display the named enter. I am just missing where to put the servlet. I was reading a book that said that you put your servlets in the path/servlets/myservlet, but then you access the servlet by using path/servlet/myservlet. Is this the assigned textbook for your class? That path is indicative of the Invoker Servlet. You will either need to enable it, which may get you by for this class, or else configure your servlet in web.xml. Last time I checked, the Invoker Servlet was still enabled in the 'examples' webapp. Try dropping your .class file and html page into webapps\examples\ instead and see if it works. [I'm still on 4.1, no idea about 5.0.] -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xercesImpl.jar xerces.jar TC 5.0.19
Hi Yoav But consider having two Tomcat instances, it means make a new installation of Tomcat? Thanks Peppe - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 03, 2004 5:58 PM Subject: RE: xercesImpl.jar xerces.jar TC 5.0.19 Hi, I'm working with Apache Tomcat/5.0.19. In the \Tomcat 5.0\common\endorsed\ directory, I've got 2 libraries : xerces.jar (I think it's an old Xerces, I didn't put myself there : someone else need it) and xercesImpl.jar (a newer version of xerces). It's either or, not both. If you put them both there, you're asking for trouble. I coded a class that need xerces2, but when I launch it (via a servlet) in my Tomcat, it throws a NoSuchMethoError cause it doesn't take the good jar ! How can I force Tomcat to take the librairy j want ? The best option is to only have one (the one that ships with Tomcat) xerces in common/endorsed. Consider having two Tomcat instances, one for someone else with the old xerces, and one with the default Tomcat parser for other applications. Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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]
FactoryConfigurationError: Couldn't find SAXParserImpl
I get an error similar to this everytime I try to start Tomcat, and it won't start. Does anyone have any idea why this is? To the best of my knowledge, the jar file are correctly in the path and there is a SAXParserImpl in one of them. How does Tomcat try to find these? Could it be some sort of versioning problem? Help! _ Regards, Allen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xercesImpl.jar xerces.jar TC 5.0.19
Hi, But consider having two Tomcat instances, it means make a new installation of Tomcat? I'm not sure what your point is here. You can have as many instances of Tomcat as you like, using at least two approaches. One is completely separate installations, i.e. different CATALINA_HOME/BASE for each one. The other is one CATALINA_BASE and different HOMEs. That way you can either share or separate the parsers. It's no problem. Yoav Shapira http://www.yoavshapira.com This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Chirag: java.net.SocketException: socket closed Endpoint ServerSocket
Are you running any kind of firewall? Doug - Original Message - From: Chirag [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 06, 2004 11:53 AM Subject: Chirag: java.net.SocketException: socket closed Endpoint ServerSocket Software Installed -- jakarta-tomcat-5.5.2 JDK 1.5 IE 6.0SP1 Requirement The PC has Internet Connection. and we start the Tomcat Server. After that we try to see the site http://localhost:8080/ We get normal Tomcat Home Page ready Afterwards I try to surf the same site by typing http://160.160.160.160:8080/ where 160.160.160.160 is the IP address After that the Tomcat Server throws the error and the IE also is trying to display the page The problem is that I want that other people should be able to access my site through IP Address and I don't want to get into the domain thing How to do that Exception Raised in Tomcot Server INFO: Server startup in 20650 msNov 18, 2004 8:03:23 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocketSEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8080] ignored exception: java.net.SocketException: socket closedjava.net.SocketException: socket closedat java.net.PlainSocketImpl.socketAccept(Native Method)at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)at java.net.ServerSocket.implAccept(ServerSocket.java:450)at java.net.ServerSocket.accept(ServerSocket.java:421)at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:368) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:548) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)Nov 18, 2004 8:03:23 PM org.apache.tomcat.util.net.PoolTcpEndpoint acceptSocketWARNING: Reinitializing ServerSocket Thanks in advance CSJakharia Subscribe to bermudaEmail: [input] [input] Browse Archives at groups-beta.google.com - Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FactoryConfigurationError: Couldn't find SAXParserImpl
Williams, Allen wrote: I get an error similar to this everytime I try to start Tomcat, and it won't start. Does anyone have any idea why this is? To the best of my knowledge, the jar file are correctly in the path and there is a SAXParserImpl in one of them. How does Tomcat try to find these? Could it be some sort of versioning problem? I had a heck of a time on linux setting up rc init scripts, due to something similar to this. My discovery (and unlikely this works on windows) was that in the bin/ directory the shell scripts search for setenv.sh, which by default doesn't exist. By bin/setenv.sh for tomcat 5.0.30 it suddenly worked, whereas manually adding JAVA_HOME and CATALINA_HOME to individual startup files always left something broken. Here is what I added, see if an adjusted version of this works: #!/bin/sh export JAVA_HOME=/opt/jdk1.5.0 export CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.30 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: FactoryConfigurationError: Couldn't find SAXParserImpl
Thanks! I'll try again and give that a shot... Thanks, Allen -Original Message- From: D. Stimits [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 2:25 PM To: Tomcat Users List Subject: Re: FactoryConfigurationError: Couldn't find SAXParserImpl Williams, Allen wrote: I get an error similar to this everytime I try to start Tomcat, and it won't start. Does anyone have any idea why this is? To the best of my knowledge, the jar file are correctly in the path and there is a SAXParserImpl in one of them. How does Tomcat try to find these? Could it be some sort of versioning problem? I had a heck of a time on linux setting up rc init scripts, due to something similar to this. My discovery (and unlikely this works on windows) was that in the bin/ directory the shell scripts search for setenv.sh, which by default doesn't exist. By bin/setenv.sh for tomcat 5.0.30 it suddenly worked, whereas manually adding JAVA_HOME and CATALINA_HOME to individual startup files always left something broken. Here is what I added, see if an adjusted version of this works: #!/bin/sh export JAVA_HOME=/opt/jdk1.5.0 export CATALINA_HOME=/usr/local/jakarta-tomcat-5.0.30 - 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]
IIS replacement
I am trying to move a Java web application (Tomcat 3, IIS, Windows 2000) to Win 2003 server. I already know that there is no way to make tomcat working with IIS 6 (without switching in IIS 5 mode). So, my next question is if I can get rid of IIS? I am using IIS now to get Windows integrated authentification and provide userID to my application for using in role based security. Are new versions of Tomcat (4 and 5) provide functionality to authentificate users (with providing UID to the application thru server variable) and if so can you direct me to documentation? Once again the app is old and does not require other functional Tomcat upgrade (servlet API and so on). Your input will be highly appreciated. Thanks, Andrey V. Vakulenko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: help with html + servlet
The assign text book is Beginning java 2, Ivor Horton, but I was reading one of O'reilly's books about servlets I am also trying to do the same thing using the Oracle 10g IDE but I have the same problem. The thing is in our previous homework I manage to make jsp files find on TOmcat by putting my package on the Tomcat5.0\webapps\ROOT\WEB-INF\classes\ and everything worked great. Wendy - I will try putting the 2 files in one of the example directories Ben - I will try your examples. the example says Download SimpleServlet.war to your TOMCAT_HOME\webapps Should I download this code to my Tomcat5.0\webapps\ROOT or Tomcat5.0\webapps\ROOT\WEB-INF\classes\ directories? Thanks Wendy and Ben et all, :-) Néstor Alberto Flórez Torres [EMAIL PROTECTED] 12/6/2004 10:30:07 AM From: Nestor Florez [EMAIL PROTECTED] I put my HTML code in the Tomcat 5.0\webapps\ROOT directory and I am putting my servlet in the Tomcat 5.0\webapps\ROOT\WEB-INF\classes\florezn, Make sure your package statement is correct for that path. I am doing this for a homework and part one is supposed to be simple a HTML file that ask for your name and the servlet just display the named enter. I am just missing where to put the servlet. I was reading a book that said that you put your servlets in the path/servlets/myservlet, but then you access the servlet by using path/servlet/myservlet. Is this the assigned textbook for your class? That path is indicative of the Invoker Servlet. You will either need to enable it, which may get you by for this class, or else configure your servlet in web.xml. Last time I checked, the Invoker Servlet was still enabled in the 'examples' webapp. Try dropping your .class file and html page into webapps\examples\ instead and see if it works. [I'm still on 4.1, no idea about 5.0.] -- Wendy Smoak - 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]
Guide to installing Latest JVM on Redhat?
Can someone help a noob out and tell me if there is any definitive guide of Somones experience installing a JRE/JVM on a Redhat Linux machine? Please help. Thankyou! Robert Keddie Web Development/MIS Phone: (352)671-8802 Marion County BCC Florida
Re: IIS replacement
Vakulenko, Andrey V wrote: I am trying to move a Java web application (Tomcat 3, IIS, Windows 2000) to Win 2003 server. I already know that there is no way to make tomcat working with IIS 6 (without switching in IIS 5 mode). The main question is are you using full features of IIS6, namely separete worker processes for each application under different credentials? If not then you may switch to IIS5 mode and have a single worker process for all applications. AFAICT you'll use the IIS in front of Tomcat to obtaing integrated autorization, so where's the problem? MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Redhat and JVM Install?
Can someone help a noob out and tell me if there is any definitive guide of Somones experience installing a JRE/JVM on a Redhat Linux machine? Please help. Thankyou! Robert Keddie Web Development/MIS Phone: (352)671-8802 Marion County BCC Florida
RE: IIS replacement
It will be shared server used by multiple MS application, so switching to IIS 5 mode is out of question -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Monday, December 06, 2004 1:57 PM To: Tomcat Users List Subject: Re: IIS replacement Vakulenko, Andrey V wrote: I am trying to move a Java web application (Tomcat 3, IIS, Windows 2000) to Win 2003 server. I already know that there is no way to make tomcat working with IIS 6 (without switching in IIS 5 mode). The main question is are you using full features of IIS6, namely separete worker processes for each application under different credentials? If not then you may switch to IIS5 mode and have a single worker process for all applications. AFAICT you'll use the IIS in front of Tomcat to obtaing integrated autorization, so where's the problem? MT. - 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: Redhat and JVM Install?
Can you give an idea af what problems you have? The rpm install is quiite simple. the only thing to remember is to put the bin folder of the installed jvm in the path env variable and JAVA_HOME in .bash_profile. The settings can also be made system wide in profile.d (http://www.google.com/search?q=java+profile.d+sourceid=mozillastart=0start=0ie=utf-8oe=utf-8) Keddie, Robert wrote: Can someone help a noob out and tell me if there is any definitive guide of Somones experience installing a JRE/JVM on a Redhat Linux machine? Please help. Thankyou! Robert Keddie Web Development/MIS Phone: (352)671-8802 http://www.marioncountyfl.org/Marion County BCC Florida -- Alain Gaeremynck CTO Le Groupe Interstructure (514) 374-1110 (514) 825-7810 cell weblog: http://www.sanssucre.ca
Re: IIS replacement
Vakulenko, Andrey V wrote: I am trying to move a Java web application (Tomcat 3, IIS, Windows 2000) to Win 2003 server. I already know that there is no way to make tomcat working with IIS 6 (without switching in IIS 5 mode). So, my next question is if I can get rid of IIS? You may take a look at: http://www.directionsonmicrosoft.com/sample/DOMIS/update/2002/07jul/0702riawns_illo1.htm; and http://www.directionsonmicrosoft.com/sample/DOMIS/update/2002/07jul/0702riawns_illo2.htm; IMHO the IIS will work much faster in IIS5 mode then in IIS6. MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IIS replacement
Vakulenko, Andrey V wrote: It will be shared server used by multiple MS application, so switching to IIS 5 mode is out of question Well, then either add additional server, or you'll be unable to use integrated athorization with Tomcat. MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
migrate IIS to J2ee based web server, then migrate .net architecture to j2ee based one
Dear Sir/Madam: the company i will work for later on has the software product based on the .net framework with the IIS middle ware. because of the requirement of the current market, the company needs to migrate the whole architecture to J2ee based one. because the company only has .net resources without any j2ee experty. my background is with a lot of java/j2ee and without any .net. at the moment i work with the chief architecture of this company and try to figure out how to migrate .net architecture to j2ee based. if i can help them to map out the .net architecture to j2ee based one, then i will have the chance to work on the java/j2ee and probably oracle migration development work. hopefully i can win this contract. however, i really need some help/input from some free resources, like the Forum Groups, to point me to the right direction. they plan to start with changing the presentation layer IIS to j2ee based one. the following are the list of questions I need to figure out urgently. it will be very appreciated if you can help on these. 1. do you think the tomcat web server a good option for them or the other ones? 2. what should be the approach they should apply to replace the IIS only at this stage? 3. how can they replace IIS with tomcat on windows and keep all the existing binaries? 4. if the tomcat is a good option, then after installing the tomcat, does the apache need to be installed as well? if it is, why? 5. what is the next step for them to migrate the architecture to j2ee based one after replace IIS with tomcat? 6. do you recommend weblogic or websphere for them at this stage? why? 7. they have the chief architecture knows only the .net architecture and don't know j2ee one, i know only the j2ee architecture and don't know .net one. both of us need to work together to figure out a way to migrate from .net to j2ee in a very tight time frame. what can you suggest us to achieve this? what documentation or books we need for this without recruiting additional resource? 8. if they change the whole .net to j2ee based, what else they need to install, except of the tomcat? for the whole migration, how can they map the applications/components from .net to j2ee for this migration, like, asp.net(.net) to jsp(j2ee), iis(.net) to tomcat(j2ee), (sql server(.net) to oracle(j2ee) etc.. it will be very appreciated if you can help on the above as soon as you can. or point me to someone who can help with this. Thanks and regards! david --- Vakulenko, Andrey V [EMAIL PROTECTED] wrote: I am trying to move a Java web application (Tomcat 3, IIS, Windows 2000) to Win 2003 server. I already know that there is no way to make tomcat working with IIS 6 (without switching in IIS 5 mode). So, my next question is if I can get rid of IIS? I am using IIS now to get Windows integrated authentification and provide userID to my application for using in role based security. Are new versions of Tomcat (4 and 5) provide functionality to authentificate users (with providing UID to the application thru server variable) and if so can you direct me to documentation? Once again the app is old and does not require other functional Tomcat upgrade (servlet API and so on). Your input will be highly appreciated. Thanks, Andrey V. Vakulenko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]