Re: Q: Why Tomcat return me a OLD version of my doc.jar in an Applet ?
Thaks, Darek I didn´t now that cache... Amadeo. - Original Message - From: Darek Czarkowski [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Friday, October 07, 2005 10:21 PM Subject: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Q: Why Tomcat return me a OLD version of my doc.jar in an Applet ?
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.
RE: Q: Why Tomcat return me a OLD version of my doc.jar in an Applet ? [255718:132221]
Many thanks for your email. This is an automated response acknowledging receipt. Please be advised that Badge mailing commences beginning of October 2005. Should your message require a response we will respond shortly. Regards Meridian Club -Original Message- From: Amadeo Alonso [EMAIL PROTECTED] Received: 10/7/2005 2:03 PM To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Q: Why Tomcat return me a OLD version of my doc.jar in an Applet ? 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. -- Meridian Club Unit 5, Caxton Centre Porters Wood St Albans Herts UNITED KINGDOM AL3 6XT Tel: +44 1727 738855 Fax: +44 1700 578955 email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]
Strange behavior of Tooltip when used with JComponent with in Applet
I have a problem with a JComboBox placed in an applet which is having a ToolTip text set on it. While moving the mouse over the ComboBox I am getting the following error stack in the Java Console. java.lang.Error: Destination component not connected to component tree hierarchy at javax.swing.SwingUtilities.convertPoint(Unknown Source) at javax.swing.ToolTipManager.mouseExited(Unknown Source) at java.awt.AWTEventMulticaster.mouseExited(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.trackMouseEnterExit(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source This is not happening regularly. Is it a bug with Java? JDK used: J2SDK 1.4.2_02 Servlet Engine: Tomcat 4.1.29 Web Server: Apache 2.0.43 Please help me out with your suggestions / comments. Thanks in Advance. Ajith Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
Re: Strange behavior of Tooltip when used with JComponent with in Applet
This doesn't sound like a tomcat question--or am I missing something? Brian [EMAIL PROTECTED] wrote: I have a problem with a JComboBox placed in an applet which is having a ToolTip text set on it. While moving the mouse over the ComboBox I am getting the following error stack in the Java Console. java.lang.Error: Destination component not connected to component tree hierarchy at javax.swing.SwingUtilities.convertPoint(Unknown Source) at javax.swing.ToolTipManager.mouseExited(Unknown Source) at java.awt.AWTEventMulticaster.mouseExited(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.trackMouseEnterExit(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source This is not happening regularly. Is it a bug with Java? JDK used: J2SDK 1.4.2_02 Servlet Engine: Tomcat 4.1.29 Web Server: Apache 2.0.43 Please help me out with your suggestions / comments. Thanks in Advance. Ajith Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding JDBC applet server
Hi In our project we are using Tomcat server(version 5.0.28) and DB2(version 5.1).From time to time we get the following error. ERROR_MSG : [IBM][JDBC Driver] CLI0614E Error sending to the socket, server is not responding. SQLSTATE=08S01 This is happening due to the jdbc applet server stopping after some indefinite periods. When we go to services and start the jdbc applet server things work fine. Can anyone tell me why this particular service is stopping at irregular intervals? We have closed all statements and connections in Dao's. Is there anyone who have some information Please pass to me. Thanks Sudheer Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments.
RE: Regarding JDBC applet server
perhaps connection pooling or timeout? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 29 June 2005 11:24 To: tomcat-user@jakarta.apache.org Subject: Regarding JDBC applet server Hi In our project we are using Tomcat server(version 5.0.28) and DB2(version 5.1).From time to time we get the following error. ERROR_MSG : [IBM][JDBC Driver] CLI0614E Error sending to the socket, server is not responding. SQLSTATE=08S01 This is happening due to the jdbc applet server stopping after some indefinite periods. When we go to services and start the jdbc applet server things work fine. Can anyone tell me why this particular service is stopping at irregular intervals? We have closed all statements and connections in Dao's. Is there anyone who have some information Please pass to me. Thanks Sudheer Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. * * * * * * * * * * * * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This email represents the personal views of the author/sender. The author/sender has no authority or delegation to bind the City of York Council by this e-mail and the City of York Council accepts no responsibility whatsoever for its contents. Please note that any reply to this email may be screened. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: jsp:plugin type=applet... and firefox
Original message: missing plugin. Other servers, such as BEA weblogic, are creating the same page very well for various kinds of clients. Which means: I've deployed the exact same page to weblogic, and it works fine with firefox. Of course, I've already tried to install the plugin, but firefox says the plugin is unknown. -Ursprüngliche Nachricht- Von: Jost Richstein [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 1. Juni 2005 14:00 An: Tomcat Users List Betreff: Re: jsp:plugin type=applet... and firefox Maybe it's not the server generating a wrong page...your browser is just not able to load the plugin. I would install the plugin for Firefox first! [EMAIL PROTECTED] wrote: Hi there, I'm using an applet, with the following line: jsp:plugin type=applet code=applet.MyApplet codebase=. width=100 height=100/ I've assumed, that this works fine for any client. Loading the page with iexplorer does, however, loading it into firefox results in the message missing plugin. Other servers, such as BEA weblogic, are creating the same page very well for various kinds of clients. Now the question is how to get this work with the combination tomcat/firefox. And is there any hassle to be expected with other clients, e.g. opera. regards Heiner T-Systems BU Ulm Dipl. Ing. Heiner Amthauer Systementwickler Magirusstr. 39/1, D-89077 Ulm +49 731 9344-4422 (Tel.) +49 731 9344-4409 (Fax) +49 177 7873405 (Mobil) E-Mail: [EMAIL PROTECTED] http://www.t-systems.com http://www.t-systems.com - 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]
jsp:plugin type=applet... and firefox
Hi there, I'm using an applet, with the following line: jsp:plugin type=applet code=applet.MyApplet codebase=. width=100 height=100/ I've assumed, that this works fine for any client. Loading the page with iexplorer does, however, loading it into firefox results in the message missing plugin. Other servers, such as BEA weblogic, are creating the same page very well for various kinds of clients. Now the question is how to get this work with the combination tomcat/firefox. And is there any hassle to be expected with other clients, e.g. opera. regards Heiner T-Systems BU Ulm Dipl. Ing. Heiner Amthauer Systementwickler Magirusstr. 39/1, D-89077 Ulm +49 731 9344-4422 (Tel.) +49 731 9344-4409 (Fax) +49 177 7873405 (Mobil) E-Mail: [EMAIL PROTECTED] http://www.t-systems.com http://www.t-systems.com
Re: jsp:plugin type=applet... and firefox
Maybe it's not the server generating a wrong page...your browser is just not able to load the plugin. I would install the plugin for Firefox first! [EMAIL PROTECTED] wrote: Hi there, I'm using an applet, with the following line: jsp:plugin type=applet code=applet.MyApplet codebase=. width=100 height=100/ I've assumed, that this works fine for any client. Loading the page with iexplorer does, however, loading it into firefox results in the message missing plugin. Other servers, such as BEA weblogic, are creating the same page very well for various kinds of clients. Now the question is how to get this work with the combination tomcat/firefox. And is there any hassle to be expected with other clients, e.g. opera. regards Heiner T-Systems BU Ulm Dipl. Ing. Heiner Amthauer Systementwickler Magirusstr. 39/1, D-89077 Ulm +49 731 9344-4422 (Tel.) +49 731 9344-4409 (Fax) +49 177 7873405 (Mobil) E-Mail: [EMAIL PROTECTED] http://www.t-systems.com http://www.t-systems.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Optimization for Large Applet
From: Chris [EMAIL PROTECTED] Sent: Monday, May 16, 2005 12:32 PM Sorry if this is a dupe, but as far as I can tell, it didn't go through. Setup: Tomcat 5.0.28 JDK 1.4.2_06 W2K Currently, we are running a rather large applet served from TC. When the first user logs on, TC memory usage jumps up about 60MB. When another user logs on after the first one is finished, the memory doesn't really change. Also, the cpu spikes pretty heavily, but only for about 10-20 seconds. The problem that occurs, is that if multiple people log on at the same time, the memory spikes for 60MB for each concurrent log on. Sounds like a caching issue on Tomcats end, but I don't know for sure. 1. Would using ZIP compression help alleviate the problem? The cpu doesn't seem to be as much of a limiting as the memory. I would think that the compression would help users log in faster, thereby helping reduce the chances of concurrent log ons. No, it wouldn't help. First, Applets are just Jar files anyway, and those are normally already compressed, and second, if Tomcat is indeed for whatever reason loading the entire applet into memory before streaming it, then it would do the same thing before compressing it, so it wouldn't help there either. 2. Is there a way to queue connections so that tomcat will wait until it has available memory, thus preventing the OutOfMemory error? AFAIK, once TC gets an OOM error, it won't do anything until it's restarted. You can write a Filter that counts how many folks are requesting the resource, and if more than a certain number are accessing it, you can wait() until the queue frees up space, but you have to write all of this yourself. 3. Would upgrading to TC 5.5.x and/or JDK 1.5 help any? Dunno about that. What I would do is set up the request logging (via the Valve in server.xml), and see what kind of requests you are getting to your Applet URLs. If they are simple GETs for the whole shebang, then you can easily make the URL a custom Servlet instead, and it can more sanely read the Applet from disk and send the data incrementally. You may need to make sure that the OutputStream that you are using the THE stream to the client, and not a buffered stream by Tomcat. Tomcat at times will buffer output so that it can set the Content-Length properly in the header. This is mostly for dynamic content, but you should be able to get access to the correct stream, or turn off the buffering. I'm actually surprised the Tomcat would cache the static resource, which is what it SEEMS to be doing, but I don't know why it would be doing that. Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Optimization for Large Applet
Setup: Tomcat 5.0.28 JDK 1.4.2_06 W2K Currently, we are running a rather large applet served from TC. When the first user logs on, TC memory usage jumps up about 60MB. When another user logs on after the first one is finished, the memory doesn't really change. Also, the cpu spikes pretty heavily, but only for about 10-20 seconds. The problem that occurs, is that if multiple people log on at the same time, the memory spikes for 60MB for each concurrent log on. 1. Would using ZIP compression help alleviate the problem? The cpu doesn't seem to be as much of a limiting as the memory. I would think that the compression would help users log in faster, thereby helping reduce the chances of concurrent log ons. 2. Is there a way to queue connections so that tomcat will wait until it has available memory, thus preventing the OutOfMemory error? AFAIK, once TC gets an OOM error, it won't do anything until it's restarted. 3. Would upgrading to TC 5.5.x and/or JDK 1.5 help any? If anyone can think of any other suggestions, I'd appreciate it. Thanks. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Applet connection drops in Tomcat
We're running TC 5.0.28, JDK 1.4.2_06, W2K. We keep getting the following error, and the users connection is dropped. SEVERE: Remote Host /xxx.xxx.xxx.xxx SocketException: Connection reset May 12, 2005 8:44:54 AM org.apache.tomcat.util.net.TcpWorkerThread runIt At first we thought it was simply because of lack of activity, but that doesn't seem to be the case anymore. We've had the connection die right after logging into the applet. Our best guess is that the firewall is closing the connection, as we have a standalone program connecting to tomcat once a minute. When the connection is dropped, the standalone program can't connect either. Most of what I've seen about the Connection reset error seems to be in reference to the initial connection. Ours seems to happen at random times. Any info would be appreciated. Thanks. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Optimization for Large Applet
Sorry if this is a dupe, but as far as I can tell, it didn't go through. Setup: Tomcat 5.0.28 JDK 1.4.2_06 W2K Currently, we are running a rather large applet served from TC. When the first user logs on, TC memory usage jumps up about 60MB. When another user logs on after the first one is finished, the memory doesn't really change. Also, the cpu spikes pretty heavily, but only for about 10-20 seconds. The problem that occurs, is that if multiple people log on at the same time, the memory spikes for 60MB for each concurrent log on. 1. Would using ZIP compression help alleviate the problem? The cpu doesn't seem to be as much of a limiting as the memory. I would think that the compression would help users log in faster, thereby helping reduce the chances of concurrent log ons. 2. Is there a way to queue connections so that tomcat will wait until it has available memory, thus preventing the OutOfMemory error? AFAIK, once TC gets an OOM error, it won't do anything until it's restarted. 3. Would upgrading to TC 5.5.x and/or JDK 1.5 help any? If anyone can think of any other suggestions, I'd appreciate it. Thanks. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Recommendation for applet signing?
Hello All, We have a need to sign an applet for a project, but would like to test a signed applet first. Can anyone recommend a reasonably priced well reputable signing agent that you may have good experience in dealing with? Thanks, Glenn -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. http://www.sng.ecs.soton.ac.uk/mailscanner/ Configuration by Glenn Parsons dnsadmin-at-1bigthink.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Using Tomcat certificate for signing applet
Hi all, Can I use the same SSL certificate used by tomcat to sign an Applet ? rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Applet CLASSID ?
What is the importance of CLASSID , in autodownloading JRE of my own choice, I mean if I only change http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#V ersion=1,4,2,0 and do not change classid in my JSP file then will it work properly. Can I ignore CLASSID value completely. S H A K E E L A H M A D (EE, SCJP, SCWCD SCBCD) Northstar Technologies, Inc. -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 11:08 AM To: Tomcat Users List Subject: Re: JSTL / MYSQL JDBC / TOMCAT 5 On Mon, Aug 23, 2004 at 09:09:45AM -0400, Williams, Mark L CIV NSWC-PC wrote: : That said, are there any observations about the feasibility of using : Swing for building GUIs to be used via browser? Using the web as a conduit for applets (Swing apps) defeats the purpose of the web's thin-client design. ;) If you want a web-based app, aim for thin technologies -- that is, server-side computations and resources -- and you can save yourself some headaches. : I find too many : unexpected browser peculiarities when trying to do anything too : complicated (probably just me, but...) and would like to use something : more definitively controlled (or more predictable in operation). All my : users will be using MS Internet Explorer, typically v5.5. If you have control over the deployment environment then you can go whole-hog with browser-specific markup and javascript. Many companies do this internally and it simplifies testing, deployment, etc. -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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Applet CLASSID ?
Hola, This is not a Tomcat question, it's more general. You might want to ask on the Java forums or elsewhere. Here's a good background document: http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/using_t ags.html. Yoav Shapira Millennium Research Informatics -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 9:03 AM To: Tomcat Users List Subject: Applet CLASSID ? What is the importance of CLASSID , in autodownloading JRE of my own choice, I mean if I only change http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows- i586.cab#V ersion=1,4,2,0 and do not change classid in my JSP file then will it work properly. Can I ignore CLASSID value completely. S H A K E E L A H M A D (EE, SCJP, SCWCD SCBCD) Northstar Technologies, Inc. -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 11:08 AM To: Tomcat Users List Subject: Re: JSTL / MYSQL JDBC / TOMCAT 5 On Mon, Aug 23, 2004 at 09:09:45AM -0400, Williams, Mark L CIV NSWC-PC wrote: : That said, are there any observations about the feasibility of using : Swing for building GUIs to be used via browser? Using the web as a conduit for applets (Swing apps) defeats the purpose of the web's thin-client design. ;) If you want a web-based app, aim for thin technologies -- that is, server-side computations and resources -- and you can save yourself some headaches. : I find too many : unexpected browser peculiarities when trying to do anything too : complicated (probably just me, but...) and would like to use something : more definitively controlled (or more predictable in operation). All my : users will be using MS Internet Explorer, typically v5.5. If you have control over the deployment environment then you can go whole-hog with browser-specific markup and javascript. Many companies do this internally and it simplifies testing, deployment, etc. -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] - 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]
Does anyone here know any applet user group?
Hi all, Sorry to disturb those who are not interested in this. I know this is not the place to ask applet question. Please anyone tell me where to find a good applet user/news group so I can post my questions, sorry and thanks again, -Simon -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 10:14 AM To: Tomcat Users List Subject: RE: serialized objects invalidating session Hi, Does this behavior also happen for you in 5.0.27? Yoav Shapira Millennium Research Informatics -Original Message- From: Carey Boldenow [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 10:05 AM To: 'Tomcat Users List' Subject: RE: serialized objects invalidating session Hi, I am using version 5.0.19. The objects that I am serializing contain nothing but String attributes and a Collection of other String objects. After shutting down Tomcat, I can view the SESSIONS.SER file and I can make out what appears to be those objects. However, once I restart Tomcat, and invoke request.isRequestedSessionIdValid(), it returns false. However, it returns true if I do not serialize my objects. Regards, Carey -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 7:54 AM To: Tomcat Users List Subject: RE: serialized objects invalidating session Hi, 5.0.27 is stable. Yoav Shapira Millennium Research Informatics -Original Message- From: Alex [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 9:17 AM To: Tomcat Users List Subject: RE: serialized objects invalidating session is 5.0.27 no longer beta? sometimes i see you folks posting to tomcat-dev@ when new releases are available...but i never saw anything stating it's moved out of beta. On Tue, 10 Aug 2004, Shapira, Yoav wrote: Date: Tue, 10 Aug 2004 08:56:36 -0400 From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: serialized objects invalidating session Hi, Needless to say, it works for me ;) We routinely save/restore sessions with Serializable attributes. (Although you didn't specify what Tomcat release you're using, I'm assuming and using 5.0.27). Yoav Shapira Millennium Research Informatics - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does anyone here know any applet user group?
Simon, I've tried the Java forums on Sun's developer site without much luck. I've got some applet experience with html forms etc, so I might be able to help. Cheers, Rowland - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does anyone here know any applet user group?
Try comp.lang.java.programmer. It is a standard Usenet newsgroup. Rhino - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 10:30 AM Subject: Does anyone here know any applet user group? Hi all, Sorry to disturb those who are not interested in this. I know this is not the place to ask applet question. Please anyone tell me where to find a good applet user/news group so I can post my questions, sorry and thanks again, -Simon -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 10:14 AM To: Tomcat Users List Subject: RE: serialized objects invalidating session Hi, Does this behavior also happen for you in 5.0.27? Yoav Shapira Millennium Research Informatics -Original Message- From: Carey Boldenow [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 10:05 AM To: 'Tomcat Users List' Subject: RE: serialized objects invalidating session Hi, I am using version 5.0.19. The objects that I am serializing contain nothing but String attributes and a Collection of other String objects. After shutting down Tomcat, I can view the SESSIONS.SER file and I can make out what appears to be those objects. However, once I restart Tomcat, and invoke request.isRequestedSessionIdValid(), it returns false. However, it returns true if I do not serialize my objects. Regards, Carey -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 7:54 AM To: Tomcat Users List Subject: RE: serialized objects invalidating session Hi, 5.0.27 is stable. Yoav Shapira Millennium Research Informatics -Original Message- From: Alex [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 9:17 AM To: Tomcat Users List Subject: RE: serialized objects invalidating session is 5.0.27 no longer beta? sometimes i see you folks posting to tomcat-dev@ when new releases are available...but i never saw anything stating it's moved out of beta. On Tue, 10 Aug 2004, Shapira, Yoav wrote: Date: Tue, 10 Aug 2004 08:56:36 -0400 From: Shapira, Yoav [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: serialized objects invalidating session Hi, Needless to say, it works for me ;) We routinely save/restore sessions with Serializable attributes. (Although you didn't specify what Tomcat release you're using, I'm assuming and using 5.0.27). Yoav Shapira Millennium Research Informatics - 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] - 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]
Downloading an applet over https
Hi, I have a java applet that I use for signing files before they are posted to my tomcat server. The applet is accessed through a simple JSP page. Since the applet must have access to the client file system, it is signed by my keystore. I can successfully sign files over http, however, some problems occur when I migrated over to https, particulary when using client authentication. Strange things occur when the applet is accessed over https with client authentication. The catalina.out logs write this message whenever the page is accessed: 04-Aug-2004 19:05:05 org.apache.tomcat.util.net.TcpWorkerThread runIt SEVERE: Remote Host /152.78.69.24 SocketException: Broken pipe 04-Aug-2004 19:05:05 org.apache.tomcat.util.net.TcpWorkerThread runIt SEVERE: Remote Host /152.78.69.24 SocketException: Broken pipe The java console on the client reports similar problems, but in a verbose manner: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(OutputRecord.java:282) at com.sun.net.ssl.internal.ssl.OutputRecord.write(OutputRecord.java:271) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:663) the same exception repeats 17 times! load: class SignFilesApplet not found. java.lang.ClassNotFoundException: SignFilesApplet at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:164) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) Caused by: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at com.sun.net.ssl.internal.ssl.OutputRecord.writeBuffer(OutputRecord.java:282) at com.sun.net.ssl.internal.ssl.OutputRecord.write(OutputRecord.java:271) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:663) I've heavily abbreviated these exceptions to ease the reading. I can provide a full stack trace if required. I have no problems downloading the applet when only the server is authenticated over https. I am running jakarta-tomcat-5.0.25, with j2sdk1.4.2_04. The applet has been tested using j2sdk1.4.2_04 and j2sdk1.5.0 with identical results. Firefox 0.9.1 is used for the browser. If anyone can provide some insight as to why the is causing the socket exception, I would be most appreciative. Best Regards, Rowland Watkins - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Applet in tomcat clustering
I thought it would work too. But unfortunately it did not.:( In both applet and servlet code, I have the trace log. From time to time, while in applet log the jsessionid is the correct one, but in servlet, it is a different one. Any idea? -Simon -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 4:42 PM To: Tomcat Users List Subject: Re: Applet in tomcat clustering yes, that should work. print out some debug statements on the server to make sure that your request indeed gets the session Id you want it to. Assuming you have clustering turned on and working properly, you should be good to go Filip - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, July 12, 2004 2:40 PM Subject: RE: Applet in tomcat clustering I thought I did it. Here are my steps 1. first get jsessionid from servlet 2. pass the jsessionid to applet (through htm page) 3. inside applet, create a new HTTPUrlConnection, and set cookie property with jsessionid. 4. connect to server. 5. In server, the request was sent to a different tomcat instance (this is against the sticky session as stated in tomcat cluster). I might have missed out something, please point them out if so. Thanks, -Simon -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 2:56 PM To: Tomcat Users List Subject: Re: Applet in tomcat clustering you will need to send up cookies just like the HTTP protocol says in order to keep state Filip - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:39 PM Subject: RE: Applet in tomcat clustering My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate between applet and server. Thanks, -Simon -Original Message- From: Simon Zeng [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:51 PM To: 'Tomcat Users List' Subject: Applet in tomcat clustering Hi, Does any use applet in tomcat clustering?I have an question and need some help. I have set up two tomcat instances in cluster/load balance. My webapplication has one feature using applet. As I understand, tomcat cluster/load balance has sticky session which means subseqent requests being sent to the same tomcat once the browser/server connection is setup. This is true in my application except while using applet, the request is sent to different tomcat randomly. I use HTTPTunnel to communicate between applet and server. Thanks, -Simon - 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] - 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: Applet in tomcat clustering
no idea until you gives us some more info. like what do your server log files tell you, how does the URL you are constructing to open the connection look like? etc Filip - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 11:43 AM Subject: RE: Applet in tomcat clustering I thought it would work too. But unfortunately it did not.:( In both applet and servlet code, I have the trace log. From time to time, while in applet log the jsessionid is the correct one, but in servlet, it is a different one. Any idea? -Simon -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 4:42 PM To: Tomcat Users List Subject: Re: Applet in tomcat clustering yes, that should work. print out some debug statements on the server to make sure that your request indeed gets the session Id you want it to. Assuming you have clustering turned on and working properly, you should be good to go Filip - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, July 12, 2004 2:40 PM Subject: RE: Applet in tomcat clustering I thought I did it. Here are my steps 1. first get jsessionid from servlet 2. pass the jsessionid to applet (through htm page) 3. inside applet, create a new HTTPUrlConnection, and set cookie property with jsessionid. 4. connect to server. 5. In server, the request was sent to a different tomcat instance (this is against the sticky session as stated in tomcat cluster). I might have missed out something, please point them out if so. Thanks, -Simon -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 2:56 PM To: Tomcat Users List Subject: Re: Applet in tomcat clustering you will need to send up cookies just like the HTTP protocol says in order to keep state Filip - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:39 PM Subject: RE: Applet in tomcat clustering My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate between applet and server. Thanks, -Simon -Original Message- From: Simon Zeng [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:51 PM To: 'Tomcat Users List' Subject: Applet in tomcat clustering Hi, Does any use applet in tomcat clustering?I have an question and need some help. I have set up two tomcat instances in cluster/load balance. My webapplication has one feature using applet. As I understand, tomcat cluster/load balance has sticky session which means subseqent requests being sent to the same tomcat once the browser/server connection is setup. This is true in my application except while using applet, the request is sent to different tomcat randomly. I use HTTPTunnel to communicate between applet and server. Thanks, -Simon - 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] - 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]
Applet in tomcat clustering
Hi, Does any use applet in tomcat clustering?I have an question and need some help. I have set up two tomcat instances in cluster/load balance. My webapplication has one feature using applet. As I understand, tomcat cluster/load balance has sticky session which means subseqent requests being sent to the same tomcat once the browser/server connection is setup. This is true in my application except while using applet, the request is sent to different tomcat randomly. I use HTTPTunnel to communicate between applet and server. Thanks, -Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Applet in tomcat clustering
My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate between applet and server. Thanks, -Simon -Original Message- From: Simon Zeng [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:51 PM To: 'Tomcat Users List' Subject: Applet in tomcat clustering Hi, Does any use applet in tomcat clustering?I have an question and need some help. I have set up two tomcat instances in cluster/load balance. My webapplication has one feature using applet. As I understand, tomcat cluster/load balance has sticky session which means subseqent requests being sent to the same tomcat once the browser/server connection is setup. This is true in my application except while using applet, the request is sent to different tomcat randomly. I use HTTPTunnel to communicate between applet and server. Thanks, -Simon - 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: Applet in tomcat clustering
you will need to send up cookies just like the HTTP protocol says in order to keep state Filip - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:39 PM Subject: RE: Applet in tomcat clustering My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate between applet and server. Thanks, -Simon -Original Message- From: Simon Zeng [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:51 PM To: 'Tomcat Users List' Subject: Applet in tomcat clustering Hi, Does any use applet in tomcat clustering?I have an question and need some help. I have set up two tomcat instances in cluster/load balance. My webapplication has one feature using applet. As I understand, tomcat cluster/load balance has sticky session which means subseqent requests being sent to the same tomcat once the browser/server connection is setup. This is true in my application except while using applet, the request is sent to different tomcat randomly. I use HTTPTunnel to communicate between applet and server. Thanks, -Simon - 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: Applet in tomcat clustering
I thought I did it. Here are my steps 1. first get jsessionid from servlet 2. pass the jsessionid to applet (through htm page) 3. inside applet, create a new HTTPUrlConnection, and set cookie property with jsessionid. 4. connect to server. 5. In server, the request was sent to a different tomcat instance (this is against the sticky session as stated in tomcat cluster). I might have missed out something, please point them out if so. Thanks, -Simon -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 2:56 PM To: Tomcat Users List Subject: Re: Applet in tomcat clustering you will need to send up cookies just like the HTTP protocol says in order to keep state Filip - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:39 PM Subject: RE: Applet in tomcat clustering My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate between applet and server. Thanks, -Simon -Original Message- From: Simon Zeng [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:51 PM To: 'Tomcat Users List' Subject: Applet in tomcat clustering Hi, Does any use applet in tomcat clustering?I have an question and need some help. I have set up two tomcat instances in cluster/load balance. My webapplication has one feature using applet. As I understand, tomcat cluster/load balance has sticky session which means subseqent requests being sent to the same tomcat once the browser/server connection is setup. This is true in my application except while using applet, the request is sent to different tomcat randomly. I use HTTPTunnel to communicate between applet and server. Thanks, -Simon - 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: Applet in tomcat clustering
yes, that should work. print out some debug statements on the server to make sure that your request indeed gets the session Id you want it to. Assuming you have clustering turned on and working properly, you should be good to go Filip - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, July 12, 2004 2:40 PM Subject: RE: Applet in tomcat clustering I thought I did it. Here are my steps 1. first get jsessionid from servlet 2. pass the jsessionid to applet (through htm page) 3. inside applet, create a new HTTPUrlConnection, and set cookie property with jsessionid. 4. connect to server. 5. In server, the request was sent to a different tomcat instance (this is against the sticky session as stated in tomcat cluster). I might have missed out something, please point them out if so. Thanks, -Simon -Original Message- From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 2:56 PM To: Tomcat Users List Subject: Re: Applet in tomcat clustering you will need to send up cookies just like the HTTP protocol says in order to keep state Filip - Original Message - From: Simon Zeng [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:39 PM Subject: RE: Applet in tomcat clustering My mistake. I am using HttpURLConnection (not HttpTunnel) to communicate between applet and server. Thanks, -Simon -Original Message- From: Simon Zeng [mailto:[EMAIL PROTECTED] Sent: Monday, July 12, 2004 1:51 PM To: 'Tomcat Users List' Subject: Applet in tomcat clustering Hi, Does any use applet in tomcat clustering?I have an question and need some help. I have set up two tomcat instances in cluster/load balance. My webapplication has one feature using applet. As I understand, tomcat cluster/load balance has sticky session which means subseqent requests being sent to the same tomcat once the browser/server connection is setup. This is true in my application except while using applet, the request is sent to different tomcat randomly. I use HTTPTunnel to communicate between applet and server. Thanks, -Simon - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: n00b applet URI question
i don't think the webbrowser can access the jar file inside the WEB-INF directory, it is protected by tomcat. you have to place the jar file containing the applet code in a public location such as [...]/hello/applet. the rendered output (sent to the client) of the jsp page would be interesting, if the applet tag only contains the name of the jar file without path the browser only looks in the current directory (where the jsp page resides) for the jar file. if the tag contains a path and the jar file name the path must not be inside WEB-INF (see above). mfg art Michael Labhard wrote: I have a simple project like this: -- /opt/tomcat/webapps/hello: HelloWorld.jsp META-INF WEB-INF /opt/tomcat/webapps/hello/META-INF: MANIFEST.MF /opt/tomcat/webapps/hello/WEB-INF: classes lib web.xml /opt/tomcat/webapps/hello/WEB-INF/classes/xptoolkit/web: HelloWorldServlet.class /opt/tomcat/webapps/hello/WEB-INF/lib: greetmodel.jar helloapplet.jar --- which should ultimately activate the HelloWorldApplet in the helloapplet.jar file and display Hello World from the JSP file: HelloWorld.jsp: [EMAIL PROTECTED] contentType=text/html% [EMAIL PROTECTED] pageEncoding=UTF-8% html headtitleHello World/title/head body jsp:plugin type=applet code=xptoolkit.applet.HelloWorldApplet archive=helloapplet.jar height=200 width=200 align=center jsp:fallback pplugin not supported/p /jsp:fallback /jsp:plugin /body /html However I only see a message Loading java applet ... and nothing more. Is the JSP file wrong, maybe the archive path to the applet is not correct? Thank you. -- Michael - 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]
n00b applet URI question
I have a simple project like this: -- /opt/tomcat/webapps/hello: HelloWorld.jsp META-INF WEB-INF /opt/tomcat/webapps/hello/META-INF: MANIFEST.MF /opt/tomcat/webapps/hello/WEB-INF: classes lib web.xml /opt/tomcat/webapps/hello/WEB-INF/classes/xptoolkit/web: HelloWorldServlet.class /opt/tomcat/webapps/hello/WEB-INF/lib: greetmodel.jar helloapplet.jar --- which should ultimately activate the HelloWorldApplet in the helloapplet.jar file and display Hello World from the JSP file: HelloWorld.jsp: [EMAIL PROTECTED] contentType=text/html% [EMAIL PROTECTED] pageEncoding=UTF-8% html headtitleHello World/title/head body jsp:plugin type=applet code=xptoolkit.applet.HelloWorldApplet archive=helloapplet.jar height=200 width=200 align=center jsp:fallback pplugin not supported/p /jsp:fallback /jsp:plugin /body /html However I only see a message Loading java applet ... and nothing more. Is the JSP file wrong, maybe the archive path to the applet is not correct? Thank you. -- Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't connect from applet
I have developed an applet that can connect to the database and access the data I need. When I run the same applet under Tomcat, I get the following exception Unable to connect to any hosts due to exception java.security.AccessControlException: access denied (java.net.SocketPermission 10.1.1.243:3306 connect, resolve) I only get this exception when I run a browser on the same computer (10.1.1.243) that tomcat/mysql are running from. Accessing this from other browsers on other computers is not a problem. Is this an issue with MySql or Tomcat or Applets? This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email.
RE: Can't connect from applet
Hi, It's an applet security issue. Read http://java.sun.com/sfaq/ especially the part about originating host. Yoav Shapira Millennium Research Informatics -Original Message- From: Celona, Paul - AES [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 10:42 AM To: [EMAIL PROTECTED] Subject: Can't connect from applet I have developed an applet that can connect to the database and access the data I need. When I run the same applet under Tomcat, I get the following exception Unable to connect to any hosts due to exception java.security.AccessControlException: access denied (java.net.SocketPermission 10.1.1.243:3306 connect, resolve) I only get this exception when I run a browser on the same computer (10.1.1.243) that tomcat/mysql are running from. Accessing this from other browsers on other computers is not a problem. Is this an issue with MySql or Tomcat or Applets? This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. 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: Can't connect from applet
Thank you for the info and the link to the sun site. I'm still not sure why this applet would work on other workstations and not on the originating host. I didn't see anything obvious on this web page that explained that. Do you have any ideas about that? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 12:10 PM To: Tomcat Users List Subject: RE: Can't connect from applet Hi, It's an applet security issue. Read http://java.sun.com/sfaq/ especially the part about originating host. Yoav Shapira Millennium Research Informatics -Original Message- From: Celona, Paul - AES [mailto:[EMAIL PROTECTED] Sent: Friday, May 07, 2004 10:42 AM To: [EMAIL PROTECTED] Subject: Can't connect from applet I have developed an applet that can connect to the database and access the data I need. When I run the same applet under Tomcat, I get the following exception Unable to connect to any hosts due to exception java.security.AccessControlException: access denied (java.net.SocketPermission 10.1.1.243:3306 connect, resolve) I only get this exception when I run a browser on the same computer (10.1.1.243) that tomcat/mysql are running from. Accessing this from other browsers on other computers is not a problem. Is this an issue with MySql or Tomcat or Applets? This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. 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] This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet generating applet
Anything under WEB-INF is not visible to clients. Your applet code needs to be somewhere the client can download it from. Mark -Original Message- From: Celona, Paul - AES [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 9:45 PM To: Tomcat Users List Subject: Servlet generating applet Has anyone generated an html page from a servlet that contains an applet? I am having trouble with the browser finding the class specified in the code param. I've had codebase set to a number of things with no success. Is the codebase the root of the webapp? Or is it supposed to set to WEB-INF/classes. The applet works fine when not downloaded from Tomcat. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. - 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]
Servlet generating applet
Has anyone generated an html page from a servlet that contains an applet? I am having trouble with the browser finding the class specified in the code param. I've had codebase set to a number of things with no success. Is the codebase the root of the webapp? Or is it supposed to set to WEB-INF/classes. The applet works fine when not downloaded from Tomcat. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email and any files transmitted with it are proprietary and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the sender. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of ITT Industries, Inc. The recipient should check this email and any attachments for the presence of viruses. ITT Industries accepts no liability for any damage caused by any virus transmitted by this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Applet to Servlet session fails
Hello, I have a JSP page that has an applet embeded in it. The Applet talks to a Servlet. I have a session within the JSP when I try to access the session within my Servlet, I get NullPointerException as there is no session object. How do I get the session object in my Servlet that is present in the JSP? I am using Tomcat 5.0.19 Thank you, Best Regards, Uma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Applet to Servlet session fails
[EMAIL PROTECTED] wrote: I have a JSP page that has an applet embeded in it. The Applet talks to a Servlet. I have a session within the JSP when I try to access the session within my Servlet, I get NullPointerException as there is no session object. How do I get the session object in my Servlet that is present in the JSP? I am using Tomcat 5.0.19 If you use OBJECT ... HTML tag, you can pass parameter to applet with PARAM ... tag, namely JSESSIONID. Inside applet you call servlet with that session id, that way everybody will know the same session. I had this model once and it worked. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Applet to Servlet session fails
Can you help me with more source please? I am using applet tag and not object tag. Thank you, Best Regards, Uma Veniamin Fichin [EMAIL PROTECTED] To 04/23/2004 01:03 Tomcat Users List PM[EMAIL PROTECTED] cc Please respond to Tomcat Users List [EMAIL PROTECTED] rta.apache.org Subject Re: Applet to Servlet session fails [EMAIL PROTECTED] wrote: I have a JSP page that has an applet embeded in it. The Applet talks to a Servlet. I have a session within the JSP when I try to access the session within my Servlet, I get NullPointerException as there is no session object. How do I get the session object in my Servlet that is present in the JSP? I am using Tomcat 5.0.19 If you use OBJECT ... HTML tag, you can pass parameter to applet with PARAM ... tag, namely JSESSIONID. Inside applet you call servlet with that session id, that way everybody will know the same session. I had this model once and it worked. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and JApplet / Applet
Hi. How do I run JApplets / Applets with the Tomcat server? I place the applets in /WEB-INF/classes/package_name/package_name/JAppeltExample.class, but the browser can't see them. /Lars Nielsen Lind
Re: Tomcat and JApplet / Applet
Hi, Class files for applets (or jars) are to be served by the web server exactly as any other STATIC file. Place them outside WEB-INF/classes, as anything in that directory is NOT served. Antonio Fiol Lars Nielsen Lind wrote: Hi. How do I run JApplets / Applets with the Tomcat server? I place the applets in /WEB-INF/classes/package_name/package_name/JAppeltExample.class, but the browser can't see them. /Lars Nielsen Lind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and JApplet / Applet
But then it is possible for third part to download and read the code in the applet? or? How do I protect my applets? /Lars Nielsen Lind - Original Message - From: Antonio Fiol Bonnín [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 4:29 PM Subject: Re: Tomcat and JApplet / Applet Hi, Class files for applets (or jars) are to be served by the web server exactly as any other STATIC file. Place them outside WEB-INF/classes, as anything in that directory is NOT served. Antonio Fiol Lars Nielsen Lind wrote: Hi. How do I run JApplets / Applets with the Tomcat server? I place the applets in /WEB-INF/classes/package_name/package_name/JAppeltExample.class, but the browser can't see them. /Lars Nielsen Lind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and JApplet / Applet
Obfuscators. http://developers.evrsoft.com/directory/dir.pl?redir=/Computers/Programming/Languages/Java/Development_Tools/Obfuscators/ Doug - Original Message - From: Lars Nielsen Lind [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 11:30 AM Subject: Re: Tomcat and JApplet / Applet But then it is possible for third part to download and read the code in the applet? or? How do I protect my applets? /Lars Nielsen Lind - Original Message - From: Antonio Fiol Bonnín [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 4:29 PM Subject: Re: Tomcat and JApplet / Applet Hi, Class files for applets (or jars) are to be served by the web server exactly as any other STATIC file. Place them outside WEB-INF/classes, as anything in that directory is NOT served. Antonio Fiol Lars Nielsen Lind wrote: Hi. How do I run JApplets / Applets with the Tomcat server? I place the applets in /WEB-INF/classes/package_name/package_name/JAppeltExample.class, but the browser can't see them. /Lars Nielsen Lind - 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: Tomcat and JApplet / Applet
Howdy, But then it is possible for third part to download and read the code in the applet? or? How do I protect my applets? No. You need to make your class files accessible only. You do not need tomcat for this. You can use tomcat as well as apache, iis or any other web server. You do not need to place your source files anywhere on the server. In fact, it is possible to decompile the class files, so you get very much of the original source code. Howevery, you cannot prevent this. This is always the case for any applet. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and JApplet / Applet
Hi Lars, put the applet in another folder than WEB-INF I have the same problem, and I put the applet in a diferrent folder and works. Dan A. - Original Message - From: Lars Nielsen Lind [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 1:18 PM Subject: Tomcat and JApplet / Applet Hi. How do I run JApplets / Applets with the Tomcat server? I place the applets in /WEB-INF/classes/package_name/package_name/JAppeltExample.class, but the browser can't see them. /Lars Nielsen Lind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and JApplet / Applet
If I place the applet as a *.jar file in the 'public' area of a web folder - is it possible to prevent any programs from scanning the Apache/Tomcat server for extraction of the files (html, jsp, class, jar)? I want to prevent access by programs to the source files - like /WEB-INF is protected - but in a way so that the applets can be used from the web server? /Lars Nielsen Lind - Original Message - From: SH Solutions [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 7:02 PM Subject: RE: Tomcat and JApplet / Applet Howdy, But then it is possible for third part to download and read the code in the applet? or? How do I protect my applets? No. You need to make your class files accessible only. You do not need tomcat for this. You can use tomcat as well as apache, iis or any other web server. You do not need to place your source files anywhere on the server. In fact, it is possible to decompile the class files, so you get very much of the original source code. Howevery, you cannot prevent this. This is always the case for any applet. Regards, Steffen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat and JApplet / Applet
Hi, For JSP files, it's easy: instead of the source, they will get the processed page. If you do not want your JSP to be called directly, place it in WEB-INF or establish a restriction in web.xml (can't remember at the moment how this is done, but it is not complicated). For HTML, if they can't be retrieved, how will your web be visible?! Jars and Class files for your webapp: WEB-INF Jars and Class files for your applets: publicly available. Now, if you want to prevent directory listing (security by obscurity), you can: see the DefaultServlet in conf/web.xml. But that will only hide those files not linked / used in your HTML (linked / used) files, with a root starting at /, whatever that means, or at any URL published by anyone. But if you speak a bit of HTML and web technologies, you know that in order to use an applet, the client is required to download the class/jar files that compose the applet. So, it will be able to do whatever he likes with it. If you do not like that, CHANGE your technology... Or hire a private detective and sue any client that decompiles your classes ;-) Still one more option: make your classes (sources and binaries) available under the GPL. That way, you'll have no more worries. OTOH, if using a modified applet could fool your server, or be somehow bad for you, you have a bad server-side design. Double-check that. Hope that helps, Antonio Fiol Lars Nielsen Lind wrote: If I place the applet as a *.jar file in the 'public' area of a web folder - is it possible to prevent any programs from scanning the Apache/Tomcat server for extraction of the files (html, jsp, class, jar)? I want to prevent access by programs to the source files - like /WEB-INF is protected - but in a way so that the applets can be used from the web server? /Lars Nielsen Lind - Original Message - From: SH Solutions [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Sunday, March 28, 2004 7:02 PM Subject: RE: Tomcat and JApplet / Applet Howdy, But then it is possible for third part to download and read the code in the applet? or? How do I protect my applets? No. You need to make your class files accessible only. You do not need tomcat for this. You can use tomcat as well as apache, iis or any other web server. You do not need to place your source files anywhere on the server. In fact, it is possible to decompile the class files, so you get very much of the original source code. Howevery, you cannot prevent this. This is always the case for any applet. Regards, Steffen - 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] smime.p7s Description: S/MIME Cryptographic Signature
Getting image files from applet
Hi, Could anyone suggest how to get image files in same directory on server into the applet Regards, Teja Jo. - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
Re: Getting image files from applet
specify your image folder path in your applet using getDocumentBase () or getCodeBase() funtion in Applet Deepak On Tue, 09 Mar 2004 Teja Jo wrote : Hi, Could anyone suggest how to get image files in same directory on server into the applet Regards, Teja Jo. - Do you Yahoo!? Yahoo! Search - Find what youre looking for faster.
howto hold transient record data in a Java applet?
Hi all. I've a Java applet question, which is slightly out of context here. For that I apologize. I want to create a class containing a record structure to hold transient data from other applets on same browser and from same codeBase(). In other words, several other applets in same browser will send record data to it, these transient record data are kept there until they are flushed to database behind Tomcat. I don't want them to request a db connection and send a record one by one. Can some please give me pointers on how to implement such a class so that other applets can write record data to it? TIA :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Run Applet on Tomcat 5.0
Henry, Is anyone know where is Web-accessible directory in Tomcat 5.0.16? A web-accesible directory is anywhere you could put a JSP or HTML file or image. Just some place where a URL can point to the class file and the server will give the browser access to it. -chris signature.asc Description: OpenPGP digital signature
Re: Run Applet on Tomcat 5.0 -- Where to put the plugin class files?
Henry, Please respond to the list, so everyone can see this conversation. Also note that this isn't really a Tomcat question. It's an applet question. However, I'm happy to help. 1. I put PluginApplet.jsp in the directory [TomcarInstalledHome]\webapps\ROOT\ Okay, that should be fine. Since IE is trying to load your applet, I assume that the page is in the proper place. 2. I use IE to browse http://localhost/PluginApplet.jsp Result: IE failed in initializing PluginApplet. Where should I put the following 4 class files? DrawingPanel.class ,PluginApplet.class, TextPanel.class, WindowUtilities.class First of all, I highly recommend using a JAR file since you have multiple class files. I believe that most browsers will use the current base URI for loading classes, so your classes should be in the same directory as your PluginApplet.jsp file (or, at least, the URL created by replacing 'PluginApplet.jsp' with 'PluginApplet.class' should resolve to your class file. jsp:plugin type=applet code=PluginApplet.class width=370 height=420 /jsp:plugin You should, however, specify either the 'codebase' attribute for the jsp:plugin element, or use the 'archive' attribute, which would be required if you were to use a JAR file. So, if you JAR'd all your class files together into, say, PluginApplet.jar, then your JSP code would look like this: jsp:plugin type=applet code=PluginApplet.class archive=/path/to/PluginApplet.jar ... other attributes like width, etc. ... /jsp:plugin Hope that helps. -chris signature.asc Description: OpenPGP digital signature
Run Applet on Tomcat 5.0.16 -- Where should I to put class files?
Hi, I still get applet not initialized error after I using the archive=http://localhost/PluginApplet.jar; tag in jsp:plugin. Do I have to setup classpath environment variable on my Windows system? What should I put in it? Henry 1. I put the class files inside PluginApplet.jar and displayed the jar contents as the following: jar -xvf PluginApplet.jar created: META-INF/ extracted: META-INF/MANIFEST.MF extracted: DrawingPanel.class extracted: PluginApplet.class extracted: TextPanel.class extracted: WindowUtilities.class 2. I copied PluginApplet.jar into http://localhost/ and was able to access it form my IE browser. 3. Here is my PluginApplet.jsp HTML HEADTITLEUsing jsp:plugin/TITLELINK REL=STYLESHEET HREF=JSP-Styles.css TYPE=text/css /HEAD BODYCENTERTABLE BORDER=5 TRTH CLASS=TITLE Using jsp:plugin/TABLE P jsp:plugin type=applet archive=http://localhost/PluginApplet.jar; code=PluginApplet.class width=370 height=420 /jsp:plugin /CENTER/BODY/HTML 4. Here is the translated file from IE browser View Source HTML HEAD TITLEUsing jsp:plugin/TITLELINK REL=STYLESHEET HREF=JSP-Styles.css TYPE=text/css /HEAD BODYCENTERTABLE BORDER=5 TRTH CLASS=TITLE Using jsp:plugin/TABLE P OBJECT classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93 width=370 height=420 codebase=http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0; PARAM name=java_code value=PluginApplet.class PARAM name=java_archive value=http://localhost/PluginApplet.jar; PARAM name=type value=application/x-java-applet; COMMENT EMBED type=application/x-java-applet; width=370 height=420 pluginspage=http://java.sun.com/products/plugin/; java_code=PluginApplet.class java_archive=http://localhost/PluginApplet.jar/ NOEMBED /NOEMBED /COMMENT /OBJECT /CENTER/BODY/HTML
Re: Run Applet on Tomcat 5.0.16 -- Where should I to put class files?
Henry, I still get applet not initialized error after I using the archive=http://localhost/PluginApplet.jar; tag in jsp:plugin. What is the actual error? IE should provide a more descriptive error message when the pplet does not load. Try double-clicking on any strange-looking icons in IE's status bar (like the one when you get a JavaScript error). If you're using Sun's VM (with the plug-in), you probably have a Java console running in your system tray. Check that for some kind of log, etc. Do I have to setup classpath environment variable on my Windows system? No. Do you have any external dependencies that are not provided by the Java version you are expecting (like a strange UI library or something)? If so, you'll have to make those JAR files available to the applet by adding them to the archive attribute, separated by commas, like this: jsp:plugin type=applet code=PluginApplet.class archive=http://localhost/PluginApplet.jar,http://localhost/foo.jar; /jsp:plugin signature.asc Description: OpenPGP digital signature
Run Applet on Tomcat 5.0
I tried to download PluginApplet.jsp from chapter 13 in Marty Hall's Core Servlets and JavaServer Pages 2nd Edition. In the document, it words .Remember that applets are executed by the browser, whereas servlets and JSP pages are executed by the server. Thus, the applet .class file goes in the regular Web-accessible directory, not in WEB-INF/classes. at http://volume1.coreservlets.com/archive/index.html (Chapter 13: Including Files and Applets in JSP Pages ) Is anyone know where is Web-accessible directory in Tomcat 5.0.16?
Tomcat 5 and applet
How to deplay applet in tomcat ? Can somebody give a sample ? When I request a page on tomcat contain a applet , IE tell me can find the applet class, but when I explore the IE cache dir ,I found the class is there Can somebody tell me why ? Sorry for my pool englist Thanks zhengjinyuan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 and applet
It's all in the html, it doesnt really matter if its tomcat or not, because even if you're using JSP, you're still reverting to html to get the browser to display the applet (i dont trust jsp:plugin btw, though the latest tomcat might support it better). I simply use this: object classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93 width=1000 height=700 codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_0-win.cab#Version=1,4,0,0; param name=CODE value= param name=CODEBASE value= param name=type value=application/x-java-applet;version=1.4 param name=mayscript value=true COMMENT embed type=application/x-java-applet;version=1.4 width=1000 height=700 pluginspage=http://java.sun.com/products/plugin/; CODE= CODEBASE= mayscript=true noembed You do not have Java 1.4.2. Use the Java button to get it now! /noembed/embed /comment /object I assume you already know how to use the class and codebase parameters Cheers S wrote: How to deplay applet in tomcat ? Can somebody give a sample ? When I request a page on tomcat contain a applet , IE tell me can find the applet class, but when I explore the IE cache dir ,I found the class is there Can somebody tell me why ? Sorry for my pool englist Thanks zhengjinyuan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 and applet
Since an Applet runs on a client box, you first need to place the .class in a client accessible directory, not underWEB-INF. -- - Original Message - DATE: Wed, 11 Feb 2004 00:51:30 From: #214;#163;#189;#240;#212;#170; [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: How to deplay applet in tomcat ? Can somebody give a sample ? When I request a page on tomcat contain a applet , IE tell me can find the applet class, but when I explore the IE cache dir ,I found the class is there Can somebody tell me why ? Sorry for my pool englist Thanks zhengjinyuan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5 and applet
Vernon Wu wrote: Since an Applet runs on a client box, you first need to place the .class in a client accessible directory, not underWEB-INF. But he said the applet class is already in the IE cache dir, so obviously his applet is already in a place accessable to the browser. Best Bao -- - Original Message - DATE: Wed, 11 Feb 2004 00:51:30 From: #214;#163;#189;#240;#212;#170; [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: How to deplay applet in tomcat ? Can somebody give a sample ? When I request a page on tomcat contain a applet , IE tell me can find the applet class, but when I explore the IE cache dir ,I found the class is there Can somebody tell me why ? Sorry for my pool englist Thanks zhengjinyuan - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Applet class files' location
Hello everyone , There r some jsp files in the root directory of the web application.They display some applets.If the applet class files are placed in a package structure inside WEB-INF/classes - then I get a ClassNotFoundException for the applet.The applet files have to be compulsorily kept in the directory which has the jsp files,but I want the applet class files inside WEB-INF/classes.Could u tell me a way to do it? Regards, Teja. - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!
AUTO 'Getty=987-263'Applet class files' location
Hello and thank you for your email. We strive to respond to all email inquiries within one business day. If your issue cannot wait that long, please call us at 877-438-8966. Our hours are 6:00 a.m. to 6:00 p.m. Pacific Standard Time, Monday through Friday. For reference, your assigned case ID is:987263 -Original Message- From: Teja Jo [EMAIL PROTECTED] Sent: Friday, Jan 30 2004 3:30AM To: Tomcat User Mailing List [EMAIL PROTECTED] Subject: Applet class files' location Hello everyone , There r some jsp files in the root directory of the web application.They display some applets.If the applet class files are placed in a package structure inside WEB-INF/classes - then I get a ClassNotFoundException for the applet.The applet files have to be compulsorily kept in the directory which has the jsp files,but I want the applet class files inside WEB-INF/classes.Could u tell me a way to do it? Regards, Teja. - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! === This email and its contents are confidential. If you are not the intended recipient, please do not disclose or use the information within this email or its attachments. If you have received this email in error, please delete it immediately. Thank you. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Applet class files' location
Teja Jo wrote: Hello everyone , There r some jsp files in the root directory of the web application.They display some applets.If the applet class files are placed in a package structure inside WEB-INF/classes - then I get a ClassNotFoundException for the applet.The applet files It is designed so for security reason in that class files not seeable from outside. have to be compulsorily kept in the directory which has the jsp files,but I want the applet class files inside WEB-INF/classes.Could u tell me a way to do it? I am afraid of no way unless you want to breach the security. Actually applet files can sit anywhere where the directories/files can be served to the user by tomcat, since applet has to be downloaded to the user's own machine to run. Hope this helps. Regards, Teja. Best Bao - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AUTO 'Getty=987-620'Applet class files' location
Hello and thank you for your email. We strive to respond to all email inquiries within one business day. If your issue cannot wait that long, please call us at 877-438-8966. Our hours are 6:00 a.m. to 6:00 p.m. Pacific Standard Time, Monday through Friday. For reference, your assigned case ID is:987620 -Original Message- From: BAO RuiXian [EMAIL PROTECTED] Sent: Friday, Jan 30 2004 3:52AM To: Tomcat Users List [EMAIL PROTECTED] Subject: Applet class files' location Teja Jo wrote: Hello everyone , There r some jsp files in the root directory of the web application.They display some applets.If the applet class files are placed in a package structure inside WEB-INF/classes - then I get a ClassNotFoundException for the applet.The applet files It is designed so for security reason in that class files not seeable from outside. have to be compulsorily kept in the directory which has the jsp files,but I want the applet class files inside WEB-INF/classes.Could u tell me a way to do it? I am afraid of no way unless you want to breach the security. Actually applet files can sit anywhere where the directories/files can be served to the user by tomcat, since applet has to be downloaded to the user's own machine to run. Hope this helps. Regards, Teja. Best Bao - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] === This email and its contents are confidential. If you are not the intended recipient, please do not disclose or use the information within this email or its attachments. If you have received this email in error, please delete it immediately. Thank you. === - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Applet class files' location
Any resource that needs to be accessed by the browser directly should be outside of the WEB-INF directory. An applet is exactly the same as an image file in this way. The classes in WEB-INF are accessed by the container only, and only their results are presented to client browser. That said, you could write a simple servlet that returns contents of a file in this directory. After all, one trivial result of a servlet is a file that's read off the disk! However, you would have difficulty making the browser interpret this as an applet, although I'm sure it's possible. This would make an interesting exercise for an advanced user, I think. But bottom line you want to avoid this! Teja Jo wrote: Hello everyone , There r some jsp files in the root directory of the web application.They display some applets.If the applet class files are placed in a package structure inside WEB-INF/classes - then I get a ClassNotFoundException for the applet.The applet files have to be compulsorily kept in the directory which has the jsp files,but I want the applet class files inside WEB-INF/classes.Could u tell me a way to do it? Regards, Teja. - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! -- Thanks, Josh Rehman Citysearch Toolsdev, 3559 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EOFException in Applet-Servlet communication
Hello everyone, I am writing 2 serializable objects to servlet - after the url connection is setup .The same code is working at number of other places.But at one place it is throwing a EOFException.Could u tell me a way to remove this exception? Regards, Teja. - Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
Applet in jsp
hi all currently i calling the java applet in jsp page in tomcat while running the page it gives the applet loading finelly it gives the following error pls give me the solution Dhayalan.G [EMAIL PROTECTED] Html]# appletviewer -J-Djava.security.policy=mypolicy testtimer.htm Exception in thread main java.util.MissingResourceException: Can't find resource for bundle sun.applet.resources.MsgAppletViewer, key appletpanel.badattribute.exception at java.util.ResourceBundle.getObject(ResourceBundle.java:314) at java.util.ResourceBundle.getString(ResourceBundle.java:274) at sun.applet.AppletMessageHandler.getMessage(AppletMessageHandler.java:39) at sun.applet.AppletPanel.showAppletStatus(AppletPanel.java:755) at sun.applet.AppletPanel.init(AppletPanel.java:190) at sun.applet.AppletViewer.init(AppletViewer.java:177) at sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.java:82) at sun.applet.AppletViewer.parse(AppletViewer.java:1122) at sun.applet.AppletViewer.parse(AppletViewer.java:1056) at sun.applet.Main.run(Main.java:138) at sun.applet.Main.main(Main.java:80) java.lang.RuntimeException: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:8080 connect,resolve) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:589) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1479) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:281) at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:263) at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:43) at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:152) at java.security.AccessController.doPrivileged(Native Method) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:149) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:561) at sun.applet.AppletPanel.createApplet(AppletPanel.java:617) at sun.applet.AppletPanel.runLoader(AppletPanel.java:546) at sun.applet.AppletPanel.run(AppletPanel.java:298) at java.lang.Thread.run(Thread.java:534) Caused by: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:8080 connect,resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1026) at sun.net.www.http.HttpClient.openServer(HttpClient.java:568) at sun.net.www.http.HttpClient.init(HttpClient.java:306) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.New(HttpClient.java:339) at sun.net.www.http.HttpClient.New(HttpClient.java:320) at sun.net.www.http.HttpClient.New(HttpClient.java:315) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:272) ... 13 more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HelloWorld embedded applet not being served
I'm having trouble serving up a fairly simple embedded applet from the O'reilly Servlet Programming tutorials. Tomcat can't seem to find the applet that I request from loginpage.html using this line of HTML. applet CODE=DaytimeApplet CODEBASE=/ WIDTH=300 HEIGHT=180/applet The HTML page is served just fine, but both IE and Netscape seem to bring up an empty applet. I see the Sun logo in the browser so I am assuming it's a Tomcat config issue and not a local client problem. Does Tomcat expect applets to reside next to servlets in the WEB-INF/classes directory? I can't seem to find much documentation and Tomcat and the applet tag. This was the web.xml IN used for the example above. It was my best guess. I scanned the DTD but didn't find the relevant ELEMENTS or ATTRIBUTES. web-app servlet servlet-nameDT/servlet-name servlet-classDaytimeApplet/servlet-class /servlet servlet-mapping servlet-nameDT/servlet-name url-pattern/DaytimeApplet/url-pattern /servlet-mapping /web-app Tomcat version 4.1.27 gave me this output with debug=99 2003-12-22 13:24:52 StandardHost[localhost]: Mapping request URI '/loginpage.html' 2003-12-22 13:24:52 StandardHost[localhost]: Trying the longest context path prefix 2003-12-22 13:24:52 StandardHost[localhost]: Mapped to context '' 2003-12-22 13:24:52 StandardHost[localhost]: Mapping request URI '/DaytimeApplet.class' 2003-12-22 13:24:52 StandardHost[localhost]: Trying the longest context path prefix 2003-12-22 13:24:52 StandardHost[localhost]: Mapped to context '' 2003-12-22 13:24:52 StandardHost[localhost]: Mapping request URI '/DaytimeApplet.class' 2003-12-22 13:24:52 StandardHost[localhost]: Trying the longest context path prefix 2003-12-22 13:24:52 StandardHost[localhost]: Mapped to context '' 2003-12-22 13:24:57 HostConfig[localhost]: Deploying discovered web applications TIA, Mike C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HelloWorld embedded applet not being served
Michael Coughlan said: I'm having trouble serving up a fairly simple embedded applet from the O'reilly Servlet Programming tutorials. Tomcat can't seem to find the applet that I request from loginpage.html using this line of HTML. applet CODE=DaytimeApplet CODEBASE=/ WIDTH=300 HEIGHT=180/applet The HTML page is served just fine, but both IE and Netscape seem to bring up an empty applet. I see the Sun logo in the browser so I am assuming it's a Tomcat config issue and not a local client problem. You're treating an applet as if it was a servlet. An applet is a client java class you want the server to send to the browser's vm. The applet tag is part of html telling the browser what class, and what parameters to use. A servlet is a java class you want the server to execute in its own vm. It looks to me like you're trying to specify an applet as a servlet...which would cause some funny behaviour to be sure. Check out http://java.sun.com/docs/books/tutorial/applet/appletsonly/html.html for proper use of the applet tag. The reason you can't find information on using the applet tag in web.xml is because it doesn't usually belong there. Hope this helps. Rod. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HelloWorld embedded applet not being served
I'm having trouble serving up a fairly simple embedded applet from the O'reilly Servlet Programming tutorials. Nevermind. I now see the debudding information at the bottom of the browser: error.java.long.NoClassDefFoundError:com/oreilly/servlet/HttpMessage I need to point out the Oreilly com package to the servlet by changing the applet codebase to the proper path. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with sending a serialized object from servlet to applet using Tomcat
Howdy, And what was the solution? Yoav Shapira Millennium ChemInformatics -Original Message- From: Dicheva, Darina [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 6:51 PM To: 'Tomcat Users List' Subject: RE: Problems with sending a serialized object from servlet to applet using Tomcat Thanks to all that helped me with suggestions - I solved my problem. Darina -Original Message- From: Dicheva, Darina [mailto:[EMAIL PROTECTED] Sent: Monday, December 15, 2003 11:17 AM To: '[EMAIL PROTECTED]' Subject: Problems with sending a serialized object from servlet to applet using Tomcat Hello, I have a problem sending a serialized object (instance of a class that is not part of the Java Core API) from a servlet to an applet. I don't have a problem to send a serialized String object though - everything works fine (even in both directions). But when I replace the String object to be sent by the servlet to the applet with an object of a class defined by me, 'inputFromServlet.readObject()' is just hanging -- no exception, no error, nothing. The servlet itself seems to have finished its work completely. I have copied the class definition (of the object being serialized) in the applet's directory. I use Tomcat 4.1.29 and j2sdk1.4.2. Any idea will be highly appreciated. Thanks in advance. Darina -- In the applet I have: try { URL servletURL = new URL(getCodeBase(), servletLocation2); HttpURLConnection servletConnection = (HttpURLConnection) servletURL.openConnection(); servletConnection.setDoOutput(true); servletConnection.setDoInput(true); servletConnection.setUseCaches(false); servletConnection.setDefaultUseCaches(false); servletConnection.setRequestProperty(Content-type,applicati on/x-java-seri alized-object); servletConnection.setRequestMethod(POST); //if not included the defaul is the GET method log(Applet Connected); // Writing to servlet // Write the message to the servlet OutputStream os = servletConnection.getOutputStream(); // returns an output stream that writes to this connection ObjectOutputStream outputToServlet = new ObjectOutputStream(os); // serialize the object outputToServlet.writeObject(Message To Server); outputToServlet.flush(); outputToServlet.close(); log(Writing Complete.); // Reading from servlet InputStream is = servletConnection.getInputStream(); ObjectInputStream inputFromServlet = new ObjectInputStream(is); log(Object Input stream created); Object obj = inputFromServlet.readObject(); // HANGS UP HERE !! Topic response = (Topic)obj; log(Finish reading data); inputFromServlet.close(); } catch ... -- In the servlet I have: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { InputStream is = request.getInputStream(); //get an input stream that reads from from this open connection ObjectInputStream inputFromApplet = new ObjectInputStream(is); show(Servlet Connected); String appStr = (String) inputFromApplet.readObject(); show(Applet String: + appStr); inputFromApplet.close(); // Ctreate a topic Topic topic = new Topic(Number1 Systems, tt-NumberSystem1, N1, Number1 System, N1); show(topic.toString()); response.setContentType(application/x-java-serialized-object); OutputStream os = response.getOutputStream(); // returns an output stream that writes to this connection ObjectOutputStream outputToApplet = new ObjectOutputStream(os); show(Servlet connected); outputToApplet.writeObject(topic); outputToApplet.flush(); outputToApplet.close(); show(Data transmission complete.); } catch ... Can somebody help??? I am struggling with this problem for more than a week ... 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]
Problems with sending a serialized object from servlet to applet using Tomcat
Hello, I have a problem sending a serialized object (instance of a class that is not part of the Java Core API) from a servlet to an applet. I don't have a problem to send a serialized String object though - everything works fine (even in both directions). But when I replace the String object to be sent by the servlet to the applet with an object of a class defined by me, 'inputFromServlet.readObject()' is just hanging -- no exception, no error, nothing. The servlet itself seems to have finished its work completely. I have copied the class definition (of the object being serialized) in the applet's directory. I use Tomcat 4.1.29 and j2sdk1.4.2. Any idea will be highly appreciated. Thanks in advance. Darina -- In the applet I have: try { URL servletURL = new URL(getCodeBase(), servletLocation2); HttpURLConnection servletConnection = (HttpURLConnection) servletURL.openConnection(); servletConnection.setDoOutput(true); servletConnection.setDoInput(true); servletConnection.setUseCaches(false); servletConnection.setDefaultUseCaches(false); servletConnection.setRequestProperty(Content-type,application/x-java-seri alized-object); servletConnection.setRequestMethod(POST); //if not included the defaul is the GET method log(Applet Connected); // Writing to servlet // Write the message to the servlet OutputStream os = servletConnection.getOutputStream(); // returns an output stream that writes to this connection ObjectOutputStream outputToServlet = new ObjectOutputStream(os); // serialize the object outputToServlet.writeObject(Message To Server); outputToServlet.flush(); outputToServlet.close(); log(Writing Complete.); // Reading from servlet InputStream is = servletConnection.getInputStream(); ObjectInputStream inputFromServlet = new ObjectInputStream(is); log(Object Input stream created); Object obj = inputFromServlet.readObject(); // HANGS UP HERE !! Topic response = (Topic)obj; log(Finish reading data); inputFromServlet.close(); } catch ... -- In the servlet I have: public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { InputStream is = request.getInputStream(); //get an input stream that reads from from this open connection ObjectInputStream inputFromApplet = new ObjectInputStream(is); show(Servlet Connected); String appStr = (String) inputFromApplet.readObject(); show(Applet String: + appStr); inputFromApplet.close(); // Ctreate a topic Topic topic = new Topic(Number1 Systems, tt-NumberSystem1, N1, Number1 System, N1); show(topic.toString()); response.setContentType(application/x-java-serialized-object); OutputStream os = response.getOutputStream(); // returns an output stream that writes to this connection ObjectOutputStream outputToApplet = new ObjectOutputStream(os); show(Servlet connected); outputToApplet.writeObject(topic); outputToApplet.flush(); outputToApplet.close(); show(Data transmission complete.); } catch ... Can somebody help??? I am struggling with this problem for more than a week ...
Applet doesn't work when served by tomcat
Hello, I have a jsp page with a SpellChecker applet defined using the applet tags. For some reason this doesn't seem to work when the app is deployed in tomcat but the same app works when deployed from IPlanet webserver. It seems that the browser isn't able to download the applet code when it's served by tomcat. The page displays correctly but when any javascript on the page tries to access the applet object, I get a javascript error telling me object does not support method. Has anybody seen this before? I'm using tomcat 4.1.27 on Windows 2000 environment. Thanks, Liem - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Another E-Mail about Applet Client Access
Hi all, I'm relatively new to Tomcat so please excuse any silly errors. I've installed Tomcat/4.1.24 onto a 2k platform and have been building an Intranet site. I've kept the installation standard so it lives in the Tomcat_Home/Webapps/ROOT folder(s). The site now includes JavaScript and SQL+Java Servlets. Everything is running fine up to this point. For reasons of 'monitoring usefulness' I've been asked to add a hit counter (Ugh, I know. I hate the things). Although I know I can do this using the technologies above, I thought I'd try an applet. The class works fine on the server machine in all cases. The html file is in the Tomcat_Home/Webapps/ROOT folder as is the Counter.class file. I understand the applet tag, so therefore the codebase option. But this applet does not load on any client machines. I've read all the achieved mails about the WEB-INF folder etc and which folders are not visible though Tomcat for the client to access applets. But no matter which folder I place the html and class in, the problem still exists. Based on the fact that I've read all the articles I can find on this topic, can someone please fill in the missing link? ### OXFORD INSTRUMENTS http://www.oxford-instruments.com/ ### Unless stated above to be non-confidential, this E-mail and any attachments are private and confidential and are for the addressee only and may not be used, copied or disclosed save to the addressee. If you have received this E-mail in error please notify us upon receipt and delete it from your records. Internet communications are not secure and Oxford Instruments is not responsible for their abuse by third parties nor for any alteration or corruption in transmission. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with applet in jar file accessed from JSP page in area protected with a security constraint.
The problem occurs under my test environment which is a Mac Powerbook G4 running OS X 10.2.6 with Java Plug-in 1.4.1_01. I am running tomcat on this machine. I am trying to first install and then extend a web application that is deployed under tomcat 4.1.24. There is a login based configuration for most of the pages of the site -- I have security-contstraint tags and a login-config section in my applications web.xml file. My problem is this: One of the protected pages is a jsp (map.jsp) page that has an applet tag. This tag references a jar file that is also contained in the same protected folder (called /protected) as the jsp page. When I login and access the page with the applet, in my java console I see the exception: java.lang.ClassFormatError: com/gestalt/sgs/client/MapAsset (Bad magic number) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:148) at sun.plugin.security.PluginClassLoader.findClass(PluginClassLoader.java:1 68) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:501) at sun.applet.AppletPanel.createApplet(AppletPanel.java:574) at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1828) at sun.applet.AppletPanel.runLoader(AppletPanel.java:503) at sun.applet.AppletPanel.run(AppletPanel.java:292) at java.lang.Thread.run(Thread.java:554) The applet apparently is never retrieved from the server. I am using Apple's Safari browser for this test, but the applet also fails to load using Mozilla 1.4 which uses the 1.4.1 plug-in. Interesting point 1: If I access my application from a Windows machine (running XP Professional with IE and Sun's Java plug-in 1.4.1), the applet DOES load and the application works. Interesting point 2: If I move the applet's jar file and the JSP page containing the applet tag to another part of application's folder hierarchy, NOT inside the protected area, and then change the pages that refer to this page to use the new location, the applet can be invoked from the enclosing page on my test Powerbook with Safari. I asked on the Mac Java dev mailing list about this and got some ideas but no definitive answers. Anyone with more tomcat experience than I (I have dabbled over the years but have not done anything recently) care to interpret this phenomenon. My applet tag inside of map.jsp looks like: applet archive=client.jar code=com.gestalt.sgs.client.MapAsset height=1 width=1 param name=MAP_SET_NAME value=%= mappingSetName % param name=SOURCE value=%= endPoints [0] % param name=DEST value=%= endPoints [1] % /applet As I said above, the jar file is located in the same folder as the jsp. All of the pages are part of the folder pattern defined in the tag: security-constraint web-resource-collection web-resource-nameSGS Authorized Pages/web-resource-name !--URL pattern should be relative to the application:-- !--i.e., /*, not /HSP/*-- url-pattern/protected/*/url-pattern /web-resource-collection auth-constraint role-nameuser/role-name /auth-constraint /security-constraint inside the application's web.xml file. I would rather not move the problem page and applet to a non-protected area of my folder hierarchy. But the only way I can get the applet to load in my development and test environment is to make this re-location. Any thoughts/advice appreciated. Jim Solderitsch [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java applet loading question
I have this problem where my applet will only work properly if I move the mouse cursor over the applet. Once I do that all is ok but if I do not the browser just hangs loading the applet, I just get a grey box. Does anyone know why? im using java 1.4.1 mike _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OFF-TOPIC] Re: java applet loading question
Perhaps these folks can help you out: http://forum.java.sun.com/ John On Mon, 14 Jul 2003 08:03:23 -0700, Michael Ni [EMAIL PROTECTED] wrote: I have this problem where my applet will only work properly if I move the mouse cursor over the applet. Once I do that all is ok but if I do not the browser just hangs loading the applet, I just get a grey box. Does anyone know why? im using java 1.4.1 mike _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compensating for applet security restrictions
Further to my earlier comment. I would also question whether making the applet trusted would make any difference. It seems that given its current behaviour this would just allow it to freely read and write to the client rather than reading and writing from the server. Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Susan Hoddinott [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 1:15 PM Subject: Re: Compensating for applet security restrictions Hello, I have thought about signing but unfortunately I have many of these files which can be automatically created by users and therefore I cannot expect them to have CA. Can you give an example as to how deployment of the program as a Java Application would differ as effectively this is what I am doing. The first applet just takes parameters and either runs the program as an applet or an application but the security which is inherited appears to be that for an applet in either case? Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Atreya Basu [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 7:15 PM Subject: RE: Compensating for applet security restrictions If you need to read and write to a file, just keep the files on the server. You can pull a resource off the originating server to read something. Writing to a file is probably going to be a problem however. You could always sign the applet and then you would be able to read and write all you wanted. The other option is to simply deploy it as a Java Application instead of an Applet. That seems a lot more appropriate for what you are trying to do. Atreya _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Susan Hoddinott [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 2:35 AM To: Tomcat Users List Subject: Compensating for applet security restrictions Hello, I currently have a JSP with an APPLET tag (including EMBED and OBJECT references) which runs a JAR file located on my server. The program runs fine but because the APPLET is run by the Java plug-in whenever it needs to read or write data it attempts to read or write the data from or on the client machine, which is clearly inappropriate. I do not want to use servlets as I would like to distribute the APPLET and program when I have finished and do not want to assume servlet support. The jar file first program is a JApplet and this creates a JFrame using a normal class file. All other programs are normal classes (i.e. non-applets). I want to use the graphics environments on the client machine as my own web server does not have an installed graphics environment. I have been investigating URLConnections, Sockets, Proxy Servers and RMI and have been left feeling confused as I am unclear which is the best approach and all seem very complicated to overcome what seems to be a simple problem. Furthermore, all examples seem to use a single text file whereas I want to default all IO to the server rather than the client. Does anyone know a solution for this problem? Regards, Susan Hoddinott http://www.hexworx.com - 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: Compensating for applet security restrictions
If you need to read and write to a file, just keep the files on the server. You can pull a resource off the originating server to read something. Writing to a file is probably going to be a problem however. You could always sign the applet and then you would be able to read and write all you wanted. The other option is to simply deploy it as a Java Application instead of an Applet. That seems a lot more appropriate for what you are trying to do. Atreya _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Susan Hoddinott [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 2:35 AM To: Tomcat Users List Subject: Compensating for applet security restrictions Hello, I currently have a JSP with an APPLET tag (including EMBED and OBJECT references) which runs a JAR file located on my server. The program runs fine but because the APPLET is run by the Java plug-in whenever it needs to read or write data it attempts to read or write the data from or on the client machine, which is clearly inappropriate. I do not want to use servlets as I would like to distribute the APPLET and program when I have finished and do not want to assume servlet support. The jar file first program is a JApplet and this creates a JFrame using a normal class file. All other programs are normal classes (i.e. non-applets). I want to use the graphics environments on the client machine as my own web server does not have an installed graphics environment. I have been investigating URLConnections, Sockets, Proxy Servers and RMI and have been left feeling confused as I am unclear which is the best approach and all seem very complicated to overcome what seems to be a simple problem. Furthermore, all examples seem to use a single text file whereas I want to default all IO to the server rather than the client. Does anyone know a solution for this problem? Regards, Susan Hoddinott http://www.hexworx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compensating for applet security restrictions
You may want to investigate using HTTP to handle your transfer. You could download the file that your applet needs with HTTPClient, and have another JSP page that takes the file back from the applet and saves it on the server using HTTPClient and FileUpload. That at least gives you rudimentary file open/save functionality that doesn't involve the local filesystem that the applet is running on. If for some reason you can't use HTTPClient, you can do the same thing with HttpUrlConnection. Keep in mind when talking to a server with your applet that you have to reference the server EXACTLY like you referenced it in your EMBED or OBJECT tag. i.e. If the applet was downloaded from 127.0.0.1 you have to connect to the server by that IP, if it was dowloaded from www.myserver.com then you have to connect using the FQDN. --Nathan McMinn - Original Message - From: Susan Hoddinott To: Tomcat Users List Sent: Thursday, July 03, 2003 12:35 AM Subject: Compensating for applet security restrictions Hello, I currently have a JSP with an APPLET tag (including EMBED and OBJECT references) which runs a JAR file located on my server. The program runs fine but because the APPLET is run by the Java plug-in whenever it needs to read or write data it attempts to read or write the data from or on the client machine, which is clearly inappropriate. I do not want to use servlets as I would like to distribute the APPLET and program when I have finished and do not want to assume servlet support. The jar file first program is a JApplet and this creates a JFrame using a normal class file. All other programs are normal classes (i.e. non-applets). I want to use the graphics environments on the client machine as my own web server does not have an installed graphics environment. I have been investigating URLConnections, Sockets, Proxy Servers and RMI and have been left feeling confused as I am unclear which is the best approach and all seem very complicated to overcome what seems to be a simple problem. Furthermore, all examples seem to use a single text file whereas I want to default all IO to the server rather than the client. Does anyone know a solution for this problem? Regards,Susan Hoddinotthttp://www.hexworx.com -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compensating for applet security restrictions
Hello, I have thought about signing but unfortunately I have many of these files which can be automatically created by users and therefore I cannot expect them to have CA. Can you give an example as to how deployment of the program as a Java Application would differ as effectively this is what I am doing. The first applet just takes parameters and either runs the program as an applet or an application but the security which is inherited appears to be that for an applet in either case? Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Atreya Basu [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 7:15 PM Subject: RE: Compensating for applet security restrictions If you need to read and write to a file, just keep the files on the server. You can pull a resource off the originating server to read something. Writing to a file is probably going to be a problem however. You could always sign the applet and then you would be able to read and write all you wanted. The other option is to simply deploy it as a Java Application instead of an Applet. That seems a lot more appropriate for what you are trying to do. Atreya _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: Susan Hoddinott [mailto:[EMAIL PROTECTED] Sent: July 3, 2003 2:35 AM To: Tomcat Users List Subject: Compensating for applet security restrictions Hello, I currently have a JSP with an APPLET tag (including EMBED and OBJECT references) which runs a JAR file located on my server. The program runs fine but because the APPLET is run by the Java plug-in whenever it needs to read or write data it attempts to read or write the data from or on the client machine, which is clearly inappropriate. I do not want to use servlets as I would like to distribute the APPLET and program when I have finished and do not want to assume servlet support. The jar file first program is a JApplet and this creates a JFrame using a normal class file. All other programs are normal classes (i.e. non-applets). I want to use the graphics environments on the client machine as my own web server does not have an installed graphics environment. I have been investigating URLConnections, Sockets, Proxy Servers and RMI and have been left feeling confused as I am unclear which is the best approach and all seem very complicated to overcome what seems to be a simple problem. Furthermore, all examples seem to use a single text file whereas I want to default all IO to the server rather than the client. Does anyone know a solution for this problem? Regards, Susan Hoddinott http://www.hexworx.com - 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]
Compensating for applet security restrictions
Hello, I currently have a JSP with an APPLET tag (including EMBED and OBJECT references) which runs a JAR file located on my server. The program runs fine but because the APPLET is run by the Java plug-in whenever it needs to read or write data it attempts to read or write the data from or on the client machine, which is clearly inappropriate. I do not want to use servlets as I would like to distribute the APPLET and program when I have finished and do not want to assume servlet support. The jar file first program is a JApplet and this creates a JFrame using a normal class file. All other programs are normal classes (i.e. non-applets). I want to use the graphics environments on the client machine as my own web server does not have an installed graphics environment. I have been investigating URLConnections, Sockets, Proxy Servers and RMI and have been left feeling confused as I am unclear which is the best approach and all seem very complicated to overcome what seems to be a simple problem. Furthermore, all examples seem to use a single text file whereas I want to default all IO to the server rather than the client. Does anyone know a solution for this problem? Regards,Susan Hoddinotthttp://www.hexworx.com HexButton.gif- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
taking quite a long time for applet to come up
Hi!! I have tomcat 4.0.6 running servlet-applet application..i have two folders in my webapps folder and i have removed all the original folders(manager, example,tomcat-docs)from webapps.i have removed corresponding entries from server.xml file also..still whenever, i restart tomcat, in the logs i can see tomcat redaing and loading variouus parameters say web.xml for all these now non-existing directories..From where(which conf file) is it reading this info???Can this be a factor for the slowness?? Next, my application is SSL based and i have used BASIC authentication scheme..My servlet is invoked from an html page link.. Initially b4 i get the html page , i get the certificate dialog box and username-password window..then html page openes up..on clicking the link to servlet, the applet sized base shows up on the next page immediately but it takes a lot of time for the applet to appear..in between the certificate appears again and the authentication window too comes in again... I wanted to ask why is the authentication window coming twice when it's the same username and password that user has to enter..is it possible to get rid of any one of these windows so that ineed to authenticate only once.. Second, is it possible to reduce the time between my clicking on the hyperlink and the second certificate screen to come up...why does it takes so much time???because once the certificate screen appears, the auth window comes quickly and then within 20-30 seconds, the applet appears..IS IT possible to somehow reduce the time for the applet to appear// Paridhi -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: taking quite a long time for applet to come up
Which browser are you using? I have seen the second authentication window effect on Netscape 4.79. I don't see it on newer Netscapes, Mozilla, or recent IE. G. Wade Paridhi Bansal wrote: Hi!! I have tomcat 4.0.6 running servlet-applet application..i have two folders in my webapps folder and i have removed all the original folders(manager, example,tomcat-docs)from webapps.i have removed corresponding entries from server.xml file also..still whenever, i restart tomcat, in the logs i can see tomcat redaing and loading variouus parameters say web.xml for all these now non-existing directories..From where(which conf file) is it reading this info???Can this be a factor for the slowness?? Next, my application is SSL based and i have used BASIC authentication scheme..My servlet is invoked from an html page link.. Initially b4 i get the html page , i get the certificate dialog box and username-password window..then html page openes up..on clicking the link to servlet, the applet sized base shows up on the next page immediately but it takes a lot of time for the applet to appear..in between the certificate appears again and the authentication window too comes in again... I wanted to ask why is the authentication window coming twice when it's the same username and password that user has to enter..is it possible to get rid of any one of these windows so that ineed to authenticate only once.. Second, is it possible to reduce the time between my clicking on the hyperlink and the second certificate screen to come up...why does it takes so much time???because once the certificate screen appears, the auth window comes quickly and then within 20-30 seconds, the applet appears..IS IT possible to somehow reduce the time for the applet to appear// Paridhi -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup - 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: taking quite a long time for applet to come up
Hi!! I have tried it on IE(5 and 6), Netscape and Mozilla...The second authentication window appears on every browser...The difference between first and second window is that first window shows the option to save username and passowrd and the second doesn't so that you have to enter username and password every time you open.. Paridhi - Original Message - From: G. Wade Johnson [EMAIL PROTECTED] Date: Mon, 16 Jun 2003 12:55:41 -0500 To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: taking quite a long time for applet to come up Which browser are you using? I have seen the second authentication window effect on Netscape 4.79. I don't see it on newer Netscapes, Mozilla, or recent IE. G. Wade Paridhi Bansal wrote: Hi!! I have tomcat 4.0.6 running servlet-applet application..i have two folders in my webapps folder and i have removed all the original folders(manager, example,tomcat-docs)from webapps.i have removed corresponding entries from server.xml file also..still whenever, i restart tomcat, in the logs i can see tomcat redaing and loading variouus parameters say web.xml for all these now non-existing directories..From where(which conf file) is it reading this info???Can this be a factor for the slowness?? Next, my application is SSL based and i have used BASIC authentication scheme..My servlet is invoked from an html page link.. Initially b4 i get the html page , i get the certificate dialog box and username-password window..then html page openes up..on clicking the link to servlet, the applet sized base shows up on the next page immediately but it takes a lot of time for the applet to appear..in between the certificate appears again and the authentication window too comes in again... I wanted to ask why is the authentication window coming twice when it's the same username and password that user has to enter..is it possible to get rid of any one of these windows so that ineed to authenticate only once.. Second, is it possible to reduce the time between my clicking on the hyperlink and the second certificate screen to come up...why does it takes so much time???because once the certificate screen appears, the auth window comes quickly and then within 20-30 seconds, the applet appears..IS IT possible to somehow reduce the time for the applet to appear// Paridhi -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup - 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] -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing data files via APPLET tags in JSP pages
Hello, I am restricted in that my web hoster does not have an installed graphics environment (therefore any attempts to draw graphics offscreen in a servlet results in a null pointer from getLocalGraphicsEnvironment). In order to bypass this problem I have attempted to replace my servlet with an applet and I call this via an APPLET HTML tag in a JSP. It works fine except for the fact that any attempt to read a data file on the server seems instead to be interpreted as an attempt to read the file in a directory of the same name on the client, despite passing in such parameters as request.getRealPath(/) and request.getServletPath(). It also seems to use the JVM in any plug-in on the client machine rather than my preferred JVM environment on the server. Has anyone encountered these problems and found a way around them? Regards,Susan Hoddinotthttp://www.hexworx.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Accessing data files via APPLET tags in JSP pages
man, 09.06.2003 kl. 12.48 skrev Susan Hoddinott: Hello, I am restricted in that my web hoster does not have an installed graphics environment (therefore any attempts to draw graphics offscreen in a servlet results in a null pointer from getLocalGraphicsEnvironment). In order to bypass this problem I have attempted to replace my servlet with an applet and I call this via an APPLET HTML tag in a JSP. It works fine except for the fact that any attempt to read a data file on the server seems instead to be interpreted as an attempt to read the file in a directory of the same name on the client, despite passing in such parameters as request.getRealPath(/) and request.getServletPath(). It also seems to use the JVM in any plug-in on the client machine rather than my preferred JVM environment on the server. Has anyone encountered these problems and found a way around them? An applet is running on the client machine, not on the server. If the server is using java1.4 you can set the server to be headless, making it possible to create images and such on a server without a graphichs environment. -Djava.awt.headless=true on the startup script will make it run headless. I hope this can help. Magne Skjeret Regards, Susan Hoddinott http://www.hexworx.com __ - 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: Accessing data files via APPLET tags in JSP pages
Thanks, I'll try that. The component toolkit methods and awt toolkit stuff were all looking for X11 and there did not seem to be anything else as you are probably aware. It does seems strange to me that the APPLETS will read sound and graphics files on the server but not a simple data file. Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Magne Skjeret [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:30 PM Subject: Re: Accessing data files via APPLET tags in JSP pages man, 09.06.2003 kl. 12.48 skrev Susan Hoddinott: Hello, I am restricted in that my web hoster does not have an installed graphics environment (therefore any attempts to draw graphics offscreen in a servlet results in a null pointer from getLocalGraphicsEnvironment). In order to bypass this problem I have attempted to replace my servlet with an applet and I call this via an APPLET HTML tag in a JSP. It works fine except for the fact that any attempt to read a data file on the server seems instead to be interpreted as an attempt to read the file in a directory of the same name on the client, despite passing in such parameters as request.getRealPath(/) and request.getServletPath(). It also seems to use the JVM in any plug-in on the client machine rather than my preferred JVM environment on the server. Has anyone encountered these problems and found a way around them? An applet is running on the client machine, not on the server. If the server is using java1.4 you can set the server to be headless, making it possible to create images and such on a server without a graphichs environment. -Djava.awt.headless=true on the startup script will make it run headless. I hope this can help. Magne Skjeret Regards, Susan Hoddinott http://www.hexworx.com __ - 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: Accessing data files via APPLET tags in JSP pages
On this same subject, I was wondering if there is any way of forcing an APPLET to access a server file, e.g. via socket connection, etc.? Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: Magne Skjeret [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, June 09, 2003 9:30 PM Subject: Re: Accessing data files via APPLET tags in JSP pages man, 09.06.2003 kl. 12.48 skrev Susan Hoddinott: Hello, I am restricted in that my web hoster does not have an installed graphics environment (therefore any attempts to draw graphics offscreen in a servlet results in a null pointer from getLocalGraphicsEnvironment). In order to bypass this problem I have attempted to replace my servlet with an applet and I call this via an APPLET HTML tag in a JSP. It works fine except for the fact that any attempt to read a data file on the server seems instead to be interpreted as an attempt to read the file in a directory of the same name on the client, despite passing in such parameters as request.getRealPath(/) and request.getServletPath(). It also seems to use the JVM in any plug-in on the client machine rather than my preferred JVM environment on the server. Has anyone encountered these problems and found a way around them? An applet is running on the client machine, not on the server. If the server is using java1.4 you can set the server to be headless, making it possible to create images and such on a server without a graphichs environment. -Djava.awt.headless=true on the startup script will make it run headless. I hope this can help. Magne Skjeret Regards, Susan Hoddinott http://www.hexworx.com __ - 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]
Applet exceptions in non-ROOT WEB-INF subdirectories
Newbie here so I'm probably missing something really basic... I've been looking at this for a few days and decided to be enlightened. Question: Is there a tag I need to place in a config file, web.xml file, or somewhere else to allow an applet access to use/find data/class (non-servlet) files in a local (non-ROOT) WEB-INF subdirectory? If not, what am I doing wrong? Problem: For non-servlets or servlets that have dependencies on other local classes/files, I am not able to locate files other than servlets specified in the local WEB-INF/web.xml file. Files found in the webapps/ROOT/WEB-INF/lib and webapps/ROOT/WEB-INF/classes are being found and used by my server. So I am able to make an applet dependant on certain .jar .xml or .class files work if I place those files in the proper subdirectory under ROOT/WEB-INF . The applet will work if files are place in the same base local directory as the applets' .html file, but it will not work when placed in the local WEB-INF subdirectories. Example: Using: Windows2K Pro. SP3 ; Tomcat 4.1.18 ; Java 2 SDK, SE, 1.4.0 I have a file arc.war with a structure as follows: META-INF/ META-INF/MANIFEST.MF Time.html index.html WEB-INF/ WEB-INF/data/Time.xml WEB-INF/lib/ WEB-INF/lib/jcommon-0.8.0.jar WEB-INF/classes/ WEB-INF/classes/connectionServlet.class WEB-INF/classes/arcChart.class WEB-INF/web.xml I place the .war file into the webapps directory and it expands on startup assuming it hasn't already. index.html refers to the servlet connectionServlet returning html and having no dependencies. This servlet works. Time.html containing an applet using archive=jcommon-0.8.0.jar and code=arcChart arcChart.class uses the file Time.xml The applet gives a java.lang.ClassNotFoundException or FileNotFoundException for the .jar .class and .xml files. If I move these 3 files to the arc.war base directory or the same subdirectories but using webapps/ROOT as the base directory, the applet works. From the localhost_log I get messages including: HostConfig[localhost]: Expanding web application archive arc.war StandardHost[localhost]: Installing web application at context path /arc from URL file:c:/jakarta-tomcat-4.1.18/webapps/arc WebappLoader[/arc]: Deploying class repositories to work directory C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\arc WebappLoader[/arc]: Deploy class files /WEB-INF/classes to c:\jakarta-tomcat-4.1.18\webapps\arc\WEB-INF\classes WebappLoader[/arc]: Deploy JAR /WEB-INF/lib/jcommon-0.8.0.jar to c:\jakarta-tomcat-4.1.18\webapps\arc\WEB-INF\lib\jcommon-0.8.0.jar StandardManager[/arc]: Seeding random number generator class java.security.SecureRandom StandardManager[/arc]: Seeding of random number generator has been completed StandardWrapper[/arc:default]: Loading container servlet default StandardWrapper[/arc:invoker]: Loading container servlet invoker So I know the .jar file is being loaded without any error messages... Virtually all my settings are standard from setup except for the automatic reloading when something changes so I don't have to always restart the server. I'm open to suggestions or any links anyone could provide for further reading on this matter. I'm just not sure where else to look. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Applet -Tomcat 4.1.
** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I build a small applet, that is called by an index.html. When I deploy it on TOMCAT, it gives an error:ClassNotFound. Anynone can help me? Thanks...
RE: Applet -Tomcat 4.1.
Howdy, Make sure your applet archive/codebase attributes are correct. Make sure all the classes the applet needs are indeed compiled and placed in the location named by the archive/codebase attribute. Make sure the server is up and running properly without errors. Yoav Shapira Millennium ChemInformatics -Original Message- From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 9:39 AM To: Tomcat Users List Subject: Applet -Tomcat 4.1. ** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I build a small applet, that is called by an index.html. When I deploy it on TOMCAT, it gives an error:ClassNotFound. Anynone can help me? Thanks... 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: Applet -Tomcat 4.1.
** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** For building an APPLET, is necessary using a JAR file? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: terça-feira, 1 de Abril de 2003 15:53 To: Tomcat Users List Subject: RE: Applet -Tomcat 4.1. Howdy, Make sure your applet archive/codebase attributes are correct. Make sure all the classes the applet needs are indeed compiled and placed in the location named by the archive/codebase attribute. Make sure the server is up and running properly without errors. Yoav Shapira Millennium ChemInformatics -Original Message- From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 9:39 AM To: Tomcat Users List Subject: Applet -Tomcat 4.1. ** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I build a small applet, that is called by an index.html. When I deploy it on TOMCAT, it gives an error:ClassNotFound. Anynone can help me? Thanks... 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: Applet -Tomcat 4.1.
Just make sure that the library that the applet is pointing to is publicly available. This means that it does *not* go in WEB-INF/lib. Put it where you put your static html, jsp's, images, css, and other public stuff. Jake At 03:39 PM 4/1/2003 +0100, you wrote: ** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I build a small applet, that is called by an index.html. When I deploy it on TOMCAT, it gives an error:ClassNotFound. Anynone can help me? Thanks...
RE: Applet -Tomcat 4.1.
Howdy, No it's not necessary to use a jar file. It's probably a good idea though. Perhaps you will find an applet tutorial useful: http://java.sun.com/docs/books/tutorial/applet/ This list is supposed to be used for tomcat-specific questions, and is a heavily trafficked list as is. Please try to develop the applet as shown in the above tutorial, and once you have it working stand-alone and want to deploy to tomcat, give that a shot and let us know if you run into any problems. Good luck ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 9:52 AM To: 'Tomcat Users List' Subject: RE: Applet -Tomcat 4.1. ** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** For building an APPLET, is necessary using a JAR file? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: terça-feira, 1 de Abril de 2003 15:53 To: Tomcat Users List Subject: RE: Applet -Tomcat 4.1. Howdy, Make sure your applet archive/codebase attributes are correct. Make sure all the classes the applet needs are indeed compiled and placed in the location named by the archive/codebase attribute. Make sure the server is up and running properly without errors. Yoav Shapira Millennium ChemInformatics -Original Message- From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 01, 2003 9:39 AM To: Tomcat Users List Subject: Applet -Tomcat 4.1. ** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I build a small applet, that is called by an index.html. When I deploy it on TOMCAT, it gives an error:ClassNotFound. Anynone can help me? Thanks... 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]
Applet access a text file
** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I am using TOMCAT in a Linux Machine, i have to develop a Applet, that have to access to a text file in the Linux Machine. It is possible? Thanks
APPLET using Text File
** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I am using TOMCAT in a Linux Machine, i have to develop a Applet, that have to access to a text file in the Linux Machine. It is possible? Thanks
Re: APPLET using Text File
Alberto A C A S Magalhães wrote: ** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I am using TOMCAT in a Linux Machine, i have to develop a Applet, that have to access to a text file in the Linux Machine. why not ? any servlet should access to the desired file (if permissions are OK ) then send its contents to the client... It's one of the multiple usage of servlets...Give a partial access to the server filesystem for the client.. So it's up to you to code this servlet to stock your file on a convenient directory... H.T.H Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: APPLET using Text File
** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Can i use JNDI? -Original Message- From: jerome moliere [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 28 de Março de 2003 17:55 To: Tomcat Users List Subject: Re: APPLET using Text File Alberto A C A S Magalhães wrote: ** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I am using TOMCAT in a Linux Machine, i have to develop a Applet, that have to access to a text file in the Linux Machine. why not ? any servlet should access to the desired file (if permissions are OK ) then send its contents to the client... It's one of the multiple usage of servlets...Give a partial access to the server filesystem for the client.. So it's up to you to code this servlet to stock your file on a convenient directory... H.T.H Jerome - 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: APPLET using Text File
Hi Alberto, I have been working with Applets since 1995 (don't laugh) and never had an issue with reading a file from the directory of the (Web or App) server the Applet was downloaded from. Just know that there are security issues involved if you try to read files not in the same directory (or sub directories) of the Web or App server. And yes I am using Tomcat and having no issues with reading files under the conditions specified above. Good Luck, -Tony -Original Message- From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 9:35 AM To: Tomcat Users List Subject: APPLET using Text File ** Este email assim como os ficheiros que possa ter em anexo são confidenciais e para uso exclusivo da pessoa ou organização para o qual foi enviado. Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper não tendo sido encontrados virus. www.mimesweeper.com *** Hi, I am using TOMCAT in a Linux Machine, i have to develop a Applet, that have to access to a text file in the Linux Machine. It is possible? Thanks