Re: Q: Why Tomcat return me a OLD version of my doc.jar in an Applet ?
did you clean up your local cache? the jar file might be a local version of the file. You might not be able to see the new version until you remove the old one. (usually ~/.java/.deployment/javaws/) -- Darek Czarkowski Infinite Source Systems Corp. Ph: 604 294 6557 (Ext. 113) Fx: 604 294 6507 www.infinitesource.ca [EMAIL PROTECTED] ce.ca On Sat, 2005-10-08 at 06:05, Amadeo Alonso wrote: Hi list: I apologize me last (first) email to the list with faults on date and form Thanks to Mark Thomas for your explanations. The problem I attempt to solve is the next: When I demand the page 'http://expresiongrafica.caminos.upm.es/PAU/AppletDoc.html', which has an Applet with a tag 'archive=doc.jar', Tomcat (?) v5.5 returns me the OLD VERSION of 'doc.jar' (v1) with the old bugs, as I deduct from the 'Java Console'. I have placed two connector tags in 'server.xml' file to use ports :80 y :8080 in the same way but http://expresiongrafica.caminos.upm.es:8080/PAU/AppletDoc.html return de rigth 'doc.jar' (v2), OK: http://expresiongrafica.caminos.upm.es:80/PAU/AppletDoc.html return de old 'doc.jar' (v1), BAD: using localhost/..., localhost:80/... y localhost:8080/... OK (v2). How can I destroy the old version? where is it? What is it happening? Is maybe a navigators problem? (I get 'similar' results with IE and Firefox ) Thanks in advance Amadeo. Universidad Politécnica de Madrid. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie question - Tomcat 5.0 and external Javascript files
You have to specify the full path, this should not work under any of the webservers. DarekC On Wed, 2005-10-05 at 08:03, Pigott, Paul wrote: Greetings, I'm having problems executing functions in an external javascript file. It's like the .js file can't be found. I was able to do this under Tomcat 4.0 but for some reason it's not working under Tomcat 5.0. The folder under webapps is /EdiHost and I've got another folder, /js, under /EdiHost. In my HTML, I've got the attribute SRC=/js/EdiHost.js in my SCRIPT tag. Any ideas anyone? TIA, Paul CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - 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: no luck with allowLinking=true
On Sun, 11 Sep 2005 16:55:38 -0700 Maurice Yarrow [EMAIL PROTECTED] wrote: Hello tomcat-users I have simply had no success getting allowLinking=true. I have read simply dozens and dozens of links with a standard recipe for doing this, as well as the tomcat documentation, of course. Am running 5.0.28 (tried it in 5.0.30, as well, with same lack of success). I have tried placing the context fragment (which, as a separate file, I call getimg.xml) in virtually every place I could think of, as well as the recommended locations: tomcat/conf/Catalina/localhost/getimg.xml In the server.xml host element (at the bottom of the element) In the webapps directory... This is the context fragment I am using: Context path=/getimg docBase=getimg debug=0 reloadable=true crossContext=true Resources className=org.apache.naming.resources.FileDirContext allowLinking=true / /Context I then place the following symbolic link in the webapps/getimg directory: ln -s /usr/scratch/images images and reboot tomcat. But, no visibility whatsoever! Of course, when I actually mkdir a directory in webapps/getimg, files in this directory are visible, but not with a symlink, and of course I don't want to have to actually put gigabytes of stuff in the tomcat tree. I have, however, successfully used the context element to point tomcat to my getimg webapp when I have located it outside of the tomcat/webapp directory (for example, with docbase=/tmp/getimg or docbase=/usr/scratch/getimg) but tomcat and the webapp still cannot see the linked-in subdirectory at all. Pull-eesse help!!! Pleease!! Maurice Yarrow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Try again, make sure you have only one declaration of context, since you could be overriding the declaration by including the incorrect one. Also make sure that user used to run tomcat has read access to the directory you created. DarekC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connection timed out error when shutting down tomcat
Hello, Tomcat takes long time to shut down, it takes about a minute from the shut down command until it terminates with an error in catalina.out. Apache should have nothing to do with it. Tomcat version: jakarta-tomcat-4.1.27 Server version: Apache/2.0.46 with mod_jk2 OS RHE Linux 2.4.21-32.0.1.EL Does any one know possible resons? From Catalina.out log file: Stopping service Tomcat-Standalone java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:169) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.init(Socket.java:309) at java.net.Socket.init(Socket.java:153) at org.apache.jk.common.ChannelSocket.destroy(ChannelSocket.java:384) at org.apache.jk.server.JkMain.stop(JkMain.java:311) at org.apache.jk.server.JkCoyoteHandler.destroy(JkCoyoteHandler.java:181) at org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1205) at org.apache.catalina.core.StandardService.stop(StandardService.java:546) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225) at org.apache.catalina.startup.Catalina.start(Catalina.java:543) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) 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.main(Bootstrap.java:203) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: invalidate session after calling listeners
You could implement HttpSessionBindingListener and define your own valueBound and valueUnbound methods. DarekC On Fri, 2005-08-26 at 13:08, Franklin Phan wrote: Is there a way to set Tomcat to call listeners before invalidate() is called on a session? I'm trying to code a method to clean up specifically named files inside a working dir (in Windows XP) whenever the session times out. I can't seem to find a way to do it. Apparently, invalidate() is called prior to calling listeners, and these specifically named files that I want to clean up are named after the user ID that is stored in the HttpSession object (meaning I'd need to access the session object. I understand Resin has a setting called invalidate-after-listener and am wondering whether Tomcat has same. Thanks. - 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: logout
Invalidate user session, assuming you check if user session is valid every visit to the page. On Fri, 19 Aug 2005 01:53:10 + ganesan malairaja [EMAIL PROTECTED] wrote: hi guys i am wondering .. is it possible for me to disable and internet (http / ftp ) connection on particular machine just buy knowing the Ip address or logout the current user after certain amount of time currently i have jsp codes which allow users to login .. now i want to know how to terminate the internet connection to the pc after certain amount of time.. 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: Max thread/session timeouts
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: follow simboilic links when requesting an html page using tomcat 5.0.25
Add Resources className=org.apache.naming.resources.FileDirContext allowLinking=true / To the context DarekC On Mon, 2005-06-20 at 10:03, Ariel Pessah wrote: Hi all, Does any body knows how can I configure Tomcat to follow symbolic links when showing a page on Linux ? I am trying to load an html page which is actually a symbolic link to a different html page in a different location but I get a not found error. Also even when the requested html is in the same directory the error still occurs so it is not a permission problem. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What is max value for MaxThreads
How many threads can tomcat handle? Assuming single tomcat hosting 5 different apps, no load balance, using mod_jk and Apache. I am wondering what would be the safe limit. DarekC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logging to seperate log file per war file
do you have console appender included in your log4j config file? comment it out. On Mon, 2005-04-11 at 20:12, quentin.compson wrote: is this possible using context.xml or some other way? im using log4j but some output still goes to stdout (e.g System.out.println()). thx - 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 imports
I am not sure if this is relevant but, is session data a full name of the package? I would expect to see something like com.packagename.sessionData DarekC On Wed, 2005-03-23 at 03:20, Pawson, David wrote: Tomcat 5.0.28 In my index.jsp file I have %@ page import=sessionData% % sessionData s = new sessionData(); s.clrSession(session, index.jsp); % And I get the error, Cannot resolve symbol 'sessionData'. It is not in a package. What syntax must I use to locate the class please? Or is it required to be packaged? Regards DaveP. snip here * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running a thread in Tomcat
you have to terminate that thread explicitly. You can do that by defining ApplicationServletContextListener and have it stopped on contextDestroyed event DarekC On Tue, 2005-03-15 at 07:31, Mark wrote: Hi, I'm starting a new thread in my init servlet(I know it has been discussed few time, that it's not the best idea, but anyway) and everyhing is fine untill I need to restart tomcat. When I shutdown (shutdown.sh) Tomcat the java process remain active. The question is it expected? or I need to take care about this thread in destroy() method of my init servlet? I have tomcat 5.0.24 on RH9. Thanks a lot, Mark. __ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 - 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]