Is -Dsun.io.useCanonCaches still necessary?
Hi, is still necessary to use -Dsun.io.useCanonCaches in the command line to start tomcat-5.0.27? What is -Dsun.io.useCanonCaches for? Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hi
Craig, FYI : There was a worm virus in one of the attachments you sent out. Time to virus scan your sun box ;o) Slim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 01 November 2004 23:43 To: [EMAIL PROTECTED] Subject: Hi Importance: High -- Virus Warning Message (on uusnwa0p) Found virus WORM_NETSKY.Z in file Informations.txt .exe (in Informations.zip) The file is deleted. - ## This email from Talgentra is intended only for the personal use of the recipient(s) named above. The email and any files transmitted with it are confidential to the intended recipient(s) and may be legally privileged or contain proprietary and private information. If you are not an intended recipient, you may not review, copy or distribute this message. If received in error, please notify the sender and delete the message from your system. Any views or opinions expressed in this email and any files transmitted with it are those of the author only and may not necessarily reflect the views of Talgentra and it does not create any legally binding rights or obligations whatsoever. Unless otherwise pre-agreed by exchange of hard copy documents signed by duly authorised representatives, contracts may not be concluded on behalf of Talgentra by email. Please note that neither Talgentra nor the sender accepts any responsibility for any viruses and it is your responsibility to scan the email and the attachments (if any). All email received and sent by Talgentra may be monitored to protect the business interests of Talgentra. ## - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hi
Simon Kelly wrote: Craig, FYI : There was a worm virus in one of the attachments you sent out. Time to virus scan your sun box ;o) It is NOT Craig! Todays (and yesterdays) viruses forge the sender's email address. They usually pick one from the address book. So, the only thing we can conclude is that someone subscribed to this list and having Craig's e-mail in his/her address book is infected. The only way to tell for sure is to track down the IP and from that to track down the infected machine. ISP dial-in accounts can and does complicate matters. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE:how to set encoding parameter in Tomcat4...
I set request.setCharacterEncoding(...) before handling the request. My Tomcat-5 doesn't pick up the content-type of the request from a browser, because browsers do not send content encoding as http headers. Maybe xmlRPC does the same. I recommend you to use a network sniffer for looking what bytes are really send over the wire between the application and the server and tomcat and the database. Ronald. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/javax/servlet/ServletRequest.html#setCharacterEncoding(java.lang.String) On Mon Nov 01 20:48:07 CET 2004 Shilpa Nalgonda [EMAIL PROTECTED] wrote: Hi, I am working on an application which has international clients like Japan, Europe etc., Our java Application is using Tomcat4, XmlRPC and Oracle database. This application will insert the international characters in database. But the inserted data is all garbage and is inserted as ''. Initially i thought the problem is in the database layer, but i found out that problem is not in that layer. The request sent by the client is in Unicode, encoding is UTF-8. But when the request is printed in the XmlRPC, it is getting garbage. And XMLRPC encoding is set to UTF-8 in the application. So there might be some place in tomcat where i should set the encoding. Can anyone suggest me how to do that and give me any other suggestions. And also i am testing this both on my local PC Tomcat instance and on Linux box. Same code is being executed on both instances, but the behaviour is different, on My PC instance i see that some of the field are encoded right, but on Unix, evrything is inserted as . Both instances point to same database and XMLRpc lib is same and Tomcat versions are same. I am definitely missing something here. can someone please help --- Shilpa Nalgonda [EMAIL PROTECTED] wrote: can u point me to a resource how i can do it. -Original Message- From: Evgeny Gesin [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 9:42 AM To: Tomcat Users List Subject: Re: Internationalization of characters --UTF8 encoding .. is supposed to take japanese characters an insert them into database. Is there any setting in Tomcat4 where i should be giving the encoding option. You can specify parameters for SQL driver when you define DataSource in Tomcat's server.xml. I think most of Oracle drivers can process UTF-8, without the needs for such parameters, but MySQL 3.xx, for example, needs such parameters... Evgeny Javadesk / AllTelescopes __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - 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] __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail - 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: FW: Virtual host (JSP) in Apache+Tomcat+Mod_jk
Batpurev wrote: Dear all, I am sure the list is always talking and discussing about Virtual host (JSP) in Apache+Tomcat+Mod_jk problems. Though I need some advices from experts or experienced people in this list. There are three (sometimes complex) steps to take: 1. Setup Tomcat VHost 2. Setup Apache VHost 3. Setup mod_jk2 URI mapping For step 1, test it with Tomcat's regular Coyote HTTP connector. You must be able to access your web app as http://vhost.domain.com:8080/path/ For step 2, check Apache http://vhost.domain.com/ For step 3, it is recomended to make specific URI maps and map just the URI you wish to go to Tomcat. Other that this, I had no issues in the past. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP 505: version not supported
Hi All I've the following error : HTTP 505: version not supported Which happens when i try and connect to the WebService deployed on HP-UX from a .NET client The Same WebService, deployed on Linux and Windows, connects fine from the .NET client. Just so you know, the Service is deployed using AXIS Is this a known issue? Or am i missing some configuration parameters? Appreciate any help on this. kindest regards, Mahesh *** Information contained in this email message is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the [EMAIL PROTECTED] and destroy the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hi
Funnily enough, having been involved in system security for a number of years, I knew this. It was a joke. Obviously though, not a funny one. Slim -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: 02 November 2004 08:51 To: Tomcat Users List Subject: Re: Hi Simon Kelly wrote: Craig, FYI : There was a worm virus in one of the attachments you sent out. Time to virus scan your sun box ;o) It is NOT Craig! Todays (and yesterdays) viruses forge the sender's email address. They usually pick one from the address book. So, the only thing we can conclude is that someone subscribed to this list and having Craig's e-mail in his/her address book is infected. The only way to tell for sure is to track down the IP and from that to track down the infected machine. ISP dial-in accounts can and does complicate matters. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ## This email from Talgentra is intended only for the personal use of the recipient(s) named above. The email and any files transmitted with it are confidential to the intended recipient(s) and may be legally privileged or contain proprietary and private information. If you are not an intended recipient, you may not review, copy or distribute this message. If received in error, please notify the sender and delete the message from your system. Any views or opinions expressed in this email and any files transmitted with it are those of the author only and may not necessarily reflect the views of Talgentra and it does not create any legally binding rights or obligations whatsoever. Unless otherwise pre-agreed by exchange of hard copy documents signed by duly authorised representatives, contracts may not be concluded on behalf of Talgentra by email. Please note that neither Talgentra nor the sender accepts any responsibility for any viruses and it is your responsibility to scan the email and the attachments (if any). All email received and sent by Talgentra may be monitored to protect the business interests of Talgentra. ## - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File upload
Hi Derrick I have added a comment to this bug that links to the original bug report thread that I was on when I was getting this. This problem was fixed back in May and a release was made, but some people were still getting it. I recently built the isapi DLL from CVS head and it fixed all our known instances of this problem. I can email you the DLL if you provide your address, Cheers, AC -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: 29 October 2004 22:54 To: Tomcat Users List; Struts User Apache (E-mail) Subject: RE: File upload For anyone who is interested, I found this interesting bug report on bugzilla describing the problem. Does anyone know a workaround for IIS adding 35 bytes? http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26890 -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 2:27 PM To: Tomcat Users List; Struts User Apache (E-mail) Subject: RE: File upload Upon reviewing some struts code and documentation, the memory threshold for a file to be parsed for upload is 256K (configurable). If the file is over that size, I believe the uploader puts it in a temp file. However, since the url to retrieve it for parsing is a relative path, the parser cannot find it. Can anyone verify this? Thanks, Derrick -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 11:52 AM To: Tomcat Users List Subject: File upload Configuration: Tomcat 5.0.24 IIS 5.0 JK2 connector Isapi_redirector2.dll Struts 1.1 Commons file upload 1.0 I seem to have an issue that when the file is a certain size it is written to a temp file on the file system before it is parsed by the multipart parser (at least that's what the exception message leads me to believe). However, since the working directory is my web app (/WEB-INF/ilt), the parser can't seem to find the file (not a fully qualified file name). This is a guess, but if correct I don't know how to fix the problem. Any help is appreciated. Belows is the stack trace and data from the request dumper valve: 2004-10-28 10:59:32 RequestDumperValve[/ilt]: === 2004-10-28 10:59:43 RequestDumperValve[/ilt]: REQUEST URI =/ilt/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: authType=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: characterEncoding=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentLength=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentType=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]:contextPath=/ilt 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPo rt=http:// dkoesxp/djk/home/index.cfm?selectdTab=0 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFMX_JSESSIONID=c8301990451098975559821 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFID=19459 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept=text/xml,application/xml,application/xhtml+xml,t ext/html;q =0.9,text/plain;q=0.8,image/png,*/*;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-language=en-us,en;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=connection=keep-alive 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=host=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=referer=http://dkoesxp/ilt/ilt/iltUpload.do;jsessionid= 3048D443AD 4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=user-agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnTo SkillPort= http://dkoesxp/djk/home/index.cfm?selectdTab=0; CFMX_JSESSIONID=c8301990451098975559821; CFID=19459; CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-length=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-type=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-encoding=gzip,deflate 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=keep-alive=300 2004-10-28 10:59:43 RequestDumperValve[/ilt]: locale=en_US 2004-10-28 10:59:43 RequestDumperValve[/ilt]: method=POST 2004-10-28 10:59:43 RequestDumperValve[/ilt]: pathInfo=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: protocol=HTTP/1.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]:queryString=null 2004-10-28
RE: purported javac memory leak?
I think this is a jdk bug fixed in java 1.4 -Original Message- From: T K [mailto:[EMAIL PROTECTED] Sent: 01 November 2004 22:41 To: [EMAIL PROTECTED] Subject: purported javac memory leak? Hi all, as most of you know the tomcat 4.1.x jasper HOW-TO claims there is a javac memory leak; is there a SUN bug report I can look up? A small test case calling com.sun.tools.Main.compile() repeatedly does not exhibit the problem with JDK 1.4.2. Tomcat 5.x uses the JDT Java compiler - what was the motivation for doing so? Just so that one would not need the full JDK? thanks /st __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What's a sealing violation please?
From the log 2004-11-02 09:24:51 StandardContext[/servlets-examples]SessionListener: contextInitialized() 2004-11-02 09:25:52 StandardWrapperValve[putpr]: Servlet.service() for servlet putpr threw exception java.lang.SecurityException: sealing violation: can't seal package nu.xom: already loaded at java.net.URLClassLoader.defineClass(URLClassLoader.java:234) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) Any help appreciated. Regards DaveP. snip here * -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Huge tomcat memory footprint
Hi, your problem is Java 1.4.1_02, it has a memory leak in StringBuffer which is used a lot for XML parsing. Upgrade to 1.4.2 and it will be fine. Pete On Monday 01 November 2004 22:25, Anand Narasimhan wrote: Hi, I am not able to determine if the problem is related to tomcat, solaris or the application itself. Any help/pointers to debug the problem will be greatly appreciated. The application runs on Solaris 2.8 using Sun's Java version 1.4.1_02. The tomcat version is 4.1.27. The GUI is written using HTML/JSP/Struts 1.0.2. The database is Oracle version 8.x (I think). The application also has API interface written using Java/XML/Soap etc. The application is memory/CPU intensive. The problem I am having is, after running under a large load, tomcat process's memory footprint (reported by top command) increases rapidly to more that 2G. The heap size (max configured to 1G), increases to about 500 - 600M. I have tried running tomcat with optimizeit to see if there are any memory leaks. optimizeit as wells as the output from GC (running with -verbose:gc, -XX+PrintGCDetails) shows frequent garbage collection activity and the heap size does not grow too much. I am not able to figure out why the process memory grows. If the heap is not growing too much, what is consuming the memory? Thanks Anand _ Anand Narasimhan [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding silent installation of tomcat 5.0
Hi all, I have a doubt regarding the doubt regarding the installation of tomcat 5.0 I need to install tomcat 5.0 and also the NT service. I need to do all this silently ie without user input. Is it possible ? Is there a silent option in tomcat installation exe file ? Kindly advise. Thanks and Regards, Satya
Re: Regarding silent installation of tomcat 5.0
Narayan, Satya wrote: Hi all, I have a doubt regarding the doubt regarding the installation of tomcat 5.0 I need to install tomcat 5.0 and also the NT service. I need to do all this silently ie without user input. Is it possible ? Is there a silent option in tomcat installation exe file ? 'jakarta-tomcat-5.X.X.exe /S' (case Sensitive) MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual host (JSP) in Apache+Tomcat+Mod_jk
Hello, I know that what I missed for years when trying to get this working was that Tomcat has to have virtual hosts set up also. What to do is remove Apache from the equation altogether and get www.virtual-host-1.com:8080 working on tomcat. This is done by copying the Host section in server.xml and changing the name of the host from localhost to www.virtual-host-1.com. Then you can make another copy for the next host etc. Hope this helps, Andoni. - Original Message - From: Batpurev [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.tomcat.user Sent: Tuesday, November 02, 2004 5:47 AM Subject: FW: Virtual host (JSP) in Apache+Tomcat+Mod_jk Dear all, I am sure the list is always talking and discussing about Virtual host (JSP) in Apache+Tomcat+Mod_jk problems. Though I need some advices from experts or experienced people in this list. I have Apache 2.0.49 Tomcat - 4.1.30 Mod2_jk Need to do some JSP virtual hosts. I have read many guides, manuals from internet that I could find with no luck. I think that my configuration for httpd.conf, server.xml, workers2.properties and jk2.properties are all correct. But the problem is virtual hosts doesnot come up. When accessing www.virtual-host-1.com http://www.virtual-host-1.com/ instead Tomcat default page is shown. I tried many different configuration with no luck. What could be the reason for this? I tried changing appBase, docBase, path directives in the server.xml file. But when I open www.virtual-host-1.com/virtual-host-1/ then it shows the website I want to see when accessing www.virtual-host-1.com http://www.virtual-host-1.com/ which is in /Catalina_home/webapps/virtual-host-1/ directory. I tried appBase=//Catalina_home/webapps/virtual-host-1 etc., Please advice me ASAP, Thank you in advance, Purvee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: User Authentication Problem LDAP
I'm not a specialist in this but it smells like you're saying that the role name are listedin the attribute 'cn' and that to access your site the connected user should have the role 'cn' hence if you do not have a user with it's cn=cn (attribute cn = value cn), it won't work. Maybe you could either enter real roles to your users in another attribute than cn and adapt your web.xml accordingly or suppress the auth-constraint on the role-name Hope it helps Olivier Sandeep N wrote: Hi, I have a problem trying to authenticate users, whose details are stored in the LDAP directory through Apache Tomcat. The details of the software I am using are as follows : LDAP: OpenLDAP V 2.2.17 Web-Server: Apache-Tomcat V 4.1.30 OS: Suse - Linux The LDAP directory structure is somewhat like this - dc=my-domain,dc=com cn= Manager cn=person1 cn=person2 and so on In the server.xml file (under APACHE-TOMCAT-DIR/conf/) I have included he following piece of code - Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionName=cn=Manager,dc=my-domain,dc=com connectionPassword=secret connectionURL=ldap://localhost:389; roleName=cn roleSearch=(uniqueMember={0}) userPassword=userPassword userPattern=cn={0},cn=Manager,dn=my-domain,dn=com / The folder I have to authenticate is param_test and this resides under APACHE-TOMCAT-DIR/webapps. The web.xml file under the param_test folder contains the following piece of code - .. security-constraint web-resource-collection web-resource-nametest/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-namecn/role-name /auth-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nametest/realm-name /login-config .. I have even copied the jndi.jar, ldap.jar files to APACHE-TOMCAT-DIR/server/lib directory When I try to access the link, http://localhost:8089/param_test, it prompts me for the username and password. When I type in these parameters as per the entries in the LDAP directory, the pop-up reappears and this goes on continously. If I cancel this pop-up, HTTP error 401 is returned. Any guesses where I have gone wrong? Thanks in advance. Regards, Sandeep - 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]
information
Hi All I am a new user of tomcat.i need to run flex app in tomcat can anybody guide me thru the procedure Jatinder Singh [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What's a sealing violation please?
It's part of the core java security model. If a package is sealed within a jar then packages of the same name cannot be defined in another jar, or elsewhere on the classpath. Within the manifest file of the jar file which is being loaded by your putpr servlet you'll probably have a couple of lines like: Name: nu/xom Sealed: true The XOM jar that I have (xom-1.0d8.jar) doesn't seal its packages. So, you need to find the jar which is sealing the nu.xom package and stop it doing so. (Or work out your xom dependencies) Regards, Jon Pawson, David wrote: From the log 2004-11-02 09:24:51 StandardContext[/servlets-examples]SessionListener: contextInitialized() 2004-11-02 09:25:52 StandardWrapperValve[putpr]: Servlet.service() for servlet putpr threw exception java.lang.SecurityException: sealing violation: can't seal package nu.xom: already loaded at java.net.URLClassLoader.defineClass(URLClassLoader.java:234) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) Any help appreciated. Regards DaveP. snip here * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTTP 505: version not supported
Return Receipt Your HTTP 505: version not supported document : was Sachin S Zope/Complementary/PharmRD/GSK received by: at: 11/02/2004 07:39:54 AM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP 505: version not supported
Laba diena. Dkojame, kad mums parate. Js atsista inut isaugota ms duomen bazje. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: index.jsp doesn't change
That worked... is there a reason it wasn't recompling on its own? Date maybe? Ross Andoni wrote: Hello, You might try deleting the contents of the $CATALINA_HOME/work directory. This is where the compiled .jsp files are kept. Andoni. - Original Message - From: Ross Rankin [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.tomcat.user Sent: Tuesday, November 02, 2004 1:00 AM Subject: index.jsp doesn't change This is on 4.1.30. I have updated the index.jsp page in the $CATALINA_HOME/webapps/root directory and I even deleted all instances of the original splash pages (i.e. *If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!) *And still that is the page that shows up when I go to the root of the server http://www.mydomain.com/ I'm guessing the old one is still there compiled... How do I force this to recompile, restarting the server doesn't help... Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What's a sealing violation please?
Thanks for the reply Jon. -Original Message- From: Jon Wingfield It's part of the core java security model. If a package is sealed within a jar then packages of the same name cannot be defined in another jar, or elsewhere on the classpath. Within the manifest file of the jar file which is being loaded by your putpr servlet you'll probably have a couple of lines like: Name: nu/xom Sealed: true The XOM jar that I have (xom-1.0d8.jar) doesn't seal its packages. So, you need to find the jar which is sealing the nu.xom package and stop it doing so. (Or work out your xom dependencies) I'm guessing its xercesImpl jar? Having removed it the error 'went'. I also got a clue, just import nu.xom.*; rather than individual ones? Unsure which one cleared the error, but its OK now. What the heck do I do if I want xom to validate? regard sDaveP -- DISCLAIMER: NOTICE: The information contained in this email and any attachments is confidential and may be privileged. If you are not the intended recipient you should not use, disclose, distribute or copy any of the content of it or of any attachment; you are requested to notify the sender immediately of your receipt of the email and then to delete it and any attachments from your system. RNIB endeavours to ensure that emails and any attachments generated by its staff are free from viruses or other contaminants. However, it cannot accept any responsibility for any such which are transmitted. We therefore recommend you scan all attachments. Please note that the statements and views expressed in this email and any attachments are those of the author and do not necessarily represent those of RNIB. RNIB Registered Charity Number: 226227 Website: http://www.rnib.org.uk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: index.jsp doesn't change
Check your system clock. That might be your problem. -Tim --- US citizens: Remember to vote today. Ross Rankin wrote: That worked... is there a reason it wasn't recompling on its own? Date maybe? Ross Andoni wrote: Hello, You might try deleting the contents of the $CATALINA_HOME/work directory. This is where the compiled .jsp files are kept. Andoni. - Original Message - From: Ross Rankin [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.tomcat.user Sent: Tuesday, November 02, 2004 1:00 AM Subject: index.jsp doesn't change This is on 4.1.30. I have updated the index.jsp page in the $CATALINA_HOME/webapps/root directory and I even deleted all instances of the original splash pages (i.e. *If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!) *And still that is the page that shows up when I go to the root of the server http://www.mydomain.com/ I'm guessing the old one is still there compiled... How do I force this to recompile, restarting the server doesn't help... Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is -Dsun.io.useCanonCaches still necessary?
Hi, It's not necessary now and I don't think it was ever necessary. If it's needed for some rare use-case, I'm not aware of it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 3:21 AM To: Tomcat Users List Subject: Is -Dsun.io.useCanonCaches still necessary? Hi, is still necessary to use -Dsun.io.useCanonCaches in the command line to start tomcat-5.0.27? What is -Dsun.io.useCanonCaches for? Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Huge tomcat memory footprint
Hi, Yup, upgrade the JDK if you can, that's a bad version. Struts 1.0.2 is also fairly ancient, you'll gain if you update that as well. The heap is not the only memory consumer in a given JVM. There's the stack, symbol tables, various lookup tables, etc. As you load classes at runtime some of these areas grow in consumption. That's normal and expected. Then there's the OS-level memory, which is different and always larger than the JVM itself. That's why top is a sub-optimal (unless you really know what you're doing) indicator of JVM memory usage. The OS-level memory includes other data such as paging and thread management information, in addition to anything and everything used by the JVM. As the JVM itself grows, so will the OS-level memory consumption. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Anand Narasimhan [mailto:[EMAIL PROTECTED] Sent: Monday, November 01, 2004 5:26 PM To: [EMAIL PROTECTED] Subject: Huge tomcat memory footprint Hi, I am not able to determine if the problem is related to tomcat, solaris or the application itself. Any help/pointers to debug the problem will be greatly appreciated. The application runs on Solaris 2.8 using Sun's Java version 1.4.1_02. The tomcat version is 4.1.27. The GUI is written using HTML/JSP/Struts 1.0.2. The database is Oracle version 8.x (I think). The application also has API interface written using Java/XML/Soap etc. The application is memory/CPU intensive. The problem I am having is, after running under a large load, tomcat process's memory footprint (reported by top command) increases rapidly to more that 2G. The heap size (max configured to 1G), increases to about 500 - 600M. I have tried running tomcat with optimizeit to see if there are any memory leaks. optimizeit as wells as the output from GC (running with -verbose:gc, -XX+PrintGCDetails) shows frequent garbage collection activity and the heap size does not grow too much. I am not able to figure out why the process memory grows. If the heap is not growing too much, what is consuming the memory? Thanks Anand _ Anand Narasimhan [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: so confused: compiling tomcat without cvs update?
Hi, If you're going to do this, you might want to learn CVS a tiny bit better ;) You need a space between the -r and the actual tag, e.g. -r TOMCAT_5_0_28 ;) If you look at build.xml, there's a property called cvstag I added a while ago just for your use-case ;) Set it (either in build.xml or build.properties, preferably the latter) and it will be applied. This is obviously better than modifying the ant checkout/update tasks themselves. When you're grabbing from CVS without a tag, you're getting CVS HEAD, which right now is 5.5.4+. The Tomcat 5.0 stuff is on its own branch (TOMCAT_5_0, also usable as a tag). Yoav Shapira http://www.yoavshapira.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 01, 2004 4:10 PM To: Tomcat Users List Subject: RE: so confused: compiling tomcat without cvs update? I removed the TOMCAT_5_0_28 from two of the checkouts... the two that are under checkout.depends That seemed to get rid of the errors. Hope it was the right thing to do. =P Thanks, -Raiden On Mon, 1 Nov 2004 [EMAIL PROTECTED] wrote: Hi Mark, That sounds like it would do the trick, but I'm getting an error: checkout.depends: [cvs] Using cvs passfile: /home/synn/.cvspass [cvs] cvs server: cannot find module `-rTOMCAT_5_0_28' - ignored [cvs] cvs [checkout aborted]: cannot expand modules [cvs] Using cvs passfile: /home/synn/.cvspass [cvs] cvs server: cannot find module `-rTOMCAT_5_0_28' - ignored [cvs] cvs [checkout aborted]: cannot expand modules Thanks, -Raiden On Mon, 1 Nov 2004, Mark Thomas wrote: Adding tag=TOMCAT_5_0_28 to each of the ant cvs tasks in the build.xml that does the checkouts should do the trick. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 01, 2004 8:08 PM To: [EMAIL PROTECTED] Subject: so confused: compiling tomcat without cvs update? Hello, This is the first time I have tried to compile the Tomcat 5 tree. If I run ant, it works great, compiles fine... except, it also seems to download any updates to the source. I want to build a stable Tomcat release, without grabbing any updates that are in the repository. I downloaded the source for 5.0.28. Is there a way for me to build without grabbing the updates? (And am I right in assuming that the updates it's grabbing are those that are in place for 5.0.29, the current beta?) Thank you, -Raiden Johnson - 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] 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]
Can anyone help me/guide me?
Dear All, i have a domain name and i am using no-ip software to bind my IP address (my ISP provides dynamic IP ) so, i have redirected my domain name: http://www.export4u.co.uk to micsexport.servepics.com In tomcat Server.xml file, i have put host name Host name=www.export4u.co.uk now problem is: when u visit http://www.export4u.co.uk and u click on contact us section. If a user refreshes a page while he is on any section.. contact us, about us ... and etc , the browser takes back the user to the home page which is index page. (http://www.export4u.co.uk ) I want the user to remain on the same page where he visited. . Also, when u go through different pages, u cannot see which page on Address URL . ( complete Encapsulation :) Also, google is only indexing my home page. I think it has to do with redirection as i am redirected What changes do i need to do in server.xml so that i doesnt happen? Thankx in advance. Vaneet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can anyone help me/guide me?
[EMAIL PROTECTED] wrote: now problem is: when u visit http://www.export4u.co.uk and u click on contact us section. If a user refreshes a page while he is on any section.. contact us, about us ... and etc , the browser takes back the user to the home page which is index page. (http://www.export4u.co.uk ) ... which is what shows in the browser address bar, regardless of the content being displayed. So of course a reload will just bring you back to the default page view. You'll need to provide a proper URL, e.g., at least something like http://www.export4u.co.uk/contact;, instead of (apparently) just forwarding within your main servlet. Or keep track of the user's real page location as part of the session. Or something :-) HTH! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5 IIS 5 Integration
I am running Tomcat 5.0.25 and IIS 5.0 in tandem and am getting some strange configuration errors from the JK2 connector. It seems to lose connection between Tomcat and IIS and I can't seem to correct it. It appears to be random and happen at different times during the day. If I get 500 hits on the server, there will be about 5 cases, where Tomcat and IIS become disconnected and the session data is lost. Any help would be greatly appreciated. Here is from the Windows event viewer. Error: [jk_worker_ajp13.c (648)]: ajp13.service() Error forwarding ajp13:localhost:8009 1 0 Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_handler_response.c (140)]: handler.response() Error sending response Error: [jk_service_iis.c (126)]: jk_ws_service_t::head, ServerSupportFunction failed Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 3 Error: [jk_service_iis.c (260)]: jk_ws_service_t::write, WriteClient failed -Ken Ken Hall The Reeher Group 370 Selby Avenue Saint Paul, MN 55102 t 651.292.0642 m 651.214.0005 e [EMAIL PROTECTED] blocked::mailto:[EMAIL PROTECTED] w www.reehergroup.com blocked::http://www.reehergroup.com/
problems with LD_LIBRARY_PATH --(SOLVED)-
All, The problem is solved. rather than to call perl /usr/PP/perl/auth I call a ksh script setting the environment and exec perl with the command line. It work now. Many thanks to everybody, specially those who responded. Regards Andre Her BlarenbergLaan,2 2800 Mechelen Belgium Tel : +32 (0)15 78 6887 Fax: +32 (0)15 78 5405 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems with LD_LIBRARY_PATH --(SOLVED)-
Hi And thanks to you for posting your final approach and solution. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Her, Andre [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 11:03 AM To: '[EMAIL PROTECTED]' Subject: problems with LD_LIBRARY_PATH --(SOLVED)- All, The problem is solved. rather than to call perl /usr/PP/perl/auth I call a ksh script setting the environment and exec perl with the command line. It work now. Many thanks to everybody, specially those who responded. Regards Andre Her BlarenbergLaan,2 2800 Mechelen Belgium Tel : +32 (0)15 78 6887 Fax: +32 (0)15 78 5405 - 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]
can't run a simple servlet on tomcat5.5 server
Hello friends, I have written a simple servlet, compiled it and placed in a folder called web-inf/classes and I have placed sevlet.jar file in web-inf/lib folder. I'm using a Tomcat5.5 version and my tomcat server is running and when I'm trying to call my servlet is with an URL like this gives an error URL = http://localhost:3030/examples/servlet/HelloClientServlet please help me, I'm stuck with this error since yesterday, regards, raasi the error message it gives me is ** HTTP Status 404 - /examples/servlet/HelloClientServlet type Status report message /examples/servlet/HelloClientServlet description The requested resource (/examples/servlet/HelloClientServlet) is not available. Apache Tomcat/5.5.4 ** my servlet is like this [CODE] import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloClientServlet extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/html); PrintWriter out = res.getWriter(); out.println(HTMLHEADTITLEHello Client!/TITLE+ /HEADBODYHello Client!/BODY/HTML); out.close(); } public String getServletInfo() { return HelloClientServlet 1.0 by Stefan Zeiger; } } [CODE] __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can't run a simple servlet on tomcat5.5 server
Hi, Don't put the servlet.jar (or servlet-api.jar, or any other jars that ship with Tomcat) in your WEB-INF/lib directory. Do declare and map your servlet in web.xml. Check out the First Webapp guide at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Raasi Potluri [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 11:28 AM To: [EMAIL PROTECTED] Subject: can't run a simple servlet on tomcat5.5 server Hello friends, I have written a simple servlet, compiled it and placed in a folder called web-inf/classes and I have placed sevlet.jar file in web-inf/lib folder. I'm using a Tomcat5.5 version and my tomcat server is running and when I'm trying to call my servlet is with an URL like this gives an error URL = http://localhost:3030/examples/servlet/HelloClientServlet please help me, I'm stuck with this error since yesterday, regards, raasi the error message it gives me is *** *** HTTP Status 404 - /examples/servlet/HelloClientServlet --- - type Status report message /examples/servlet/HelloClientServlet description The requested resource (/examples/servlet/HelloClientServlet) is not available. --- - Apache Tomcat/5.5.4 *** *** my servlet is like this [CODE] import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloClientServlet extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType(text/html); PrintWriter out = res.getWriter(); out.println(HTMLHEADTITLEHello Client!/TITLE+ /HEADBODYHello Client!/BODY/HTML); out.close(); } public String getServletInfo() { return HelloClientServlet 1.0 by Stefan Zeiger; } } [CODE] __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can not run a servlet that generates a pdf
Hello: I am trying to write a PDF using a servlet in Apache Tomcat/5.0.27 , and It doesn´t work. I just call the servlet in an html page, I never use a response.getWriter, so I dont undestand why I can not use response.getOutputStream in the servlet, SmartJPrint_PDFServlet1--- package demo.activetree.print.webapps; import com.activetree.print.*; import com.activetree.utils.AtStringUtil; import com.activetree.resource.AtImageList; import java.io.*; import java.awt.*; import javax.servlet.*; import javax.servlet.http.*; import javax.swing.table.TableModel; import javax.swing.table.DefaultTableModel; import javax.swing.*; public class SmartJPrint_PDFServlet1 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { //TODO-1: Use your own license key here SmartJPrint.setLicenseKey(8FE6-D08A-68A5-191A); //Set header first response.setHeader(Cache-Control, max-age=30); response.setContentType(application/pdf); //TODO-3: Use inline for directly opening in the browser window. //String inline = inline; filename=\smartjprint_ + System.currentTimeMillis() + .pdf\; //response.setHeader(Content-disposition, inline); //TODO-2: Use attachment for doing a SaveAs... in the browser. String attachment = attachment; filename=\smartjprint_ + System.currentTimeMillis() + .pdf\; response.setHeader(Content-disposition, attachment); //Prepare the data. AtBook book = new AtBook(); Color fgColor = SystemColor.black; Color bgColor = SystemColor.white; //Produce lines of Styled/Plain text, icons, 2D line data. produceRandomData(book); //Table-1. TableModel tabularData = createSampleTabularData(); Font titleFont = new Font(Arial, Font.BOLD, 20); book.append(new AtStringElement(\nPermanent Employees\n, titleFont, AtPrintConstants.GENERAL_HEADER_FG1)); Font normalBoldFont = new Font(Arial, Font.BOLD, 12); book.append(new AtStringElement(Table-1\n, normalBoldFont)); Font font = new Font(Arial, Font.PLAIN, 12); book.append(tabularData, font, fgColor, bgColor); //Page Break - to put things next in a new page. book.append(new AtStringElement(\nPage Break (applied next to this line)\n, titleFont, AtPrintConstants.GENERAL_HEADER_FG1)); book.append(AtElement.PAGE_BREAK); //show in next page. //Table-2. tabularData = createSampleTabularData(); book.append(new AtStringElement(\nContract Employees\n, titleFont, AtPrintConstants.GENERAL_HEADER_FG1)); book.append(new AtStringElement(Table-2\n, normalBoldFont)); book.append(tabularData, font, fgColor, bgColor); //We are done with our data, now write to the client. try { ServletOutputStream outStream = response.getOutputStream(); AtPdfPrinter pdfPrinter = new AtPdfPrinter(); pdfPrinter.print(book, outStream); outStream.flush(); outStream.close(); }catch(Throwable t) { response.setContentType(text/html); PrintWriter out = response.getWriter(); out.write(Got exception when doing a AtGenericPrinter.print(book, pdfStream) p); out.write(AtStringUtil.getStackTrace(t)); out.write(/p); out.close(); } } public TableModel createSampleTabularData() { String[] cols = {Employee Name, SS No., Date Of Birth, Position, Salary}; String[][] data = new String[5][cols.length]; //Create same data for the table. String name = Employee Name - ; String ssn = SS No - ; String dob = Birth Date - ; String position = Position - ; String annualSalary = Employee Salary - ; for (int row=0; row data.length; row++) { data[row][0] = name + row; data[row][1] = ssn + row; data[row][2] = dob + row; data[row][3] = position + row; data[row][4] = annualSalary + row; } DefaultTableModel tableModel = new DefaultTableModel(data, cols); return tableModel; } public void produceRandomData(AtBook book) { Font titleFont = new Font(Arial, Font.BOLD, 20); Color titleColor = AtPrintConstants.GENERAL_HEADER_FG1; ImageIcon bullet = AtImageList.IMAGE_LIST.RIGHT_ARROW_16; AtStringElement note = new AtStringElement(Note: , new Font(Helvitica, 3, 12)); //3 == BOLD + ITALIC book.write(note); book.write(new AtStringElement(This PDF document is generated using Smart JPrint (AtGenericPrinter class).\n, new Font(Helvetica, Font.ITALIC, 12))); book.write(new AtLineElement(200, 1, AtLineElement.TOP, true)); AtStringElement elm = new AtStringElement(Generate PDF Documents using \Smart JPrint\\n\n, titleFont); elm.setForeground(titleColor); book.write(elm); book.write(bullet); book.write(Smart JPrint is 100% pure Java APIs for (i) PDF generation, +
Re: Re: Can anyone help me/guide me?
Dear hassan, Thankx I am not using any servlets. this is just an HTML website. However, the web sever is TOMCAT. so i thought , might be some settings in server.xml and web.xml which can help me resolve this. I hope u understood my question. Regards Vaneet --- [EMAIL PROTECTED] wrote: now problem is: when u visit http://www.export4u.co.uk and u click on contact us section. If a user refreshes a page while he is on any section.. contact us, about us ... and etc , the browser takes back the user to the home page which is index page. (http://www.export4u.co.uk ) ... which is what shows in the browser address bar, regardless of the content being displayed. So of course a reload will just bring you back to the default page view. You'll need to provide a proper URL, e.g., at least something like http://www.export4u.co.uk/contact;, instead of (apparently) just forwarding within your main servlet. Or keep track of the user's real page location as part of the session. Or something :-) HTH! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - 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: can not run a servlet that generates a pdf
You are calling getWriter in your catch clause after you have already called getOutputStream. That's illegal. You could set up an error page in web.xml to report the exception instead of catching it. Jon Lina MarÃa Rojas Barahona wrote: Hello: I am trying to write a PDF using a servlet in Apache Tomcat/5.0.27 , and It doesn´t work. I just call the servlet in an html page, I never use a response.getWriter, so I dont undestand why I can not use response.getOutputStream in the servlet, SmartJPrint_PDFServlet1--- package demo.activetree.print.webapps; import com.activetree.print.*; import com.activetree.utils.AtStringUtil; import com.activetree.resource.AtImageList; import java.io.*; import java.awt.*; import javax.servlet.*; import javax.servlet.http.*; import javax.swing.table.TableModel; import javax.swing.table.DefaultTableModel; import javax.swing.*; public class SmartJPrint_PDFServlet1 extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { //TODO-1: Use your own license key here SmartJPrint.setLicenseKey(8FE6-D08A-68A5-191A); //Set header first response.setHeader(Cache-Control, max-age=30); response.setContentType(application/pdf); //TODO-3: Use inline for directly opening in the browser window. //String inline = inline; filename=\smartjprint_ + System.currentTimeMillis() + .pdf\; //response.setHeader(Content-disposition, inline); //TODO-2: Use attachment for doing a SaveAs... in the browser. String attachment = attachment; filename=\smartjprint_ + System.currentTimeMillis() + .pdf\; response.setHeader(Content-disposition, attachment); //Prepare the data. AtBook book = new AtBook(); Color fgColor = SystemColor.black; Color bgColor = SystemColor.white; //Produce lines of Styled/Plain text, icons, 2D line data. produceRandomData(book); //Table-1. TableModel tabularData = createSampleTabularData(); Font titleFont = new Font(Arial, Font.BOLD, 20); book.append(new AtStringElement(\nPermanent Employees\n, titleFont, AtPrintConstants.GENERAL_HEADER_FG1)); Font normalBoldFont = new Font(Arial, Font.BOLD, 12); book.append(new AtStringElement(Table-1\n, normalBoldFont)); Font font = new Font(Arial, Font.PLAIN, 12); book.append(tabularData, font, fgColor, bgColor); //Page Break - to put things next in a new page. book.append(new AtStringElement(\nPage Break (applied next to this line)\n, titleFont, AtPrintConstants.GENERAL_HEADER_FG1)); book.append(AtElement.PAGE_BREAK); //show in next page. //Table-2. tabularData = createSampleTabularData(); book.append(new AtStringElement(\nContract Employees\n, titleFont, AtPrintConstants.GENERAL_HEADER_FG1)); book.append(new AtStringElement(Table-2\n, normalBoldFont)); book.append(tabularData, font, fgColor, bgColor); //We are done with our data, now write to the client. try { ServletOutputStream outStream = response.getOutputStream(); AtPdfPrinter pdfPrinter = new AtPdfPrinter(); pdfPrinter.print(book, outStream); outStream.flush(); outStream.close(); }catch(Throwable t) { response.setContentType(text/html); PrintWriter out = response.getWriter(); out.write(Got exception when doing a AtGenericPrinter.print(book, pdfStream) p); out.write(AtStringUtil.getStackTrace(t)); out.write(/p); out.close(); } } public TableModel createSampleTabularData() { String[] cols = {Employee Name, SS No., Date Of Birth, Position, Salary}; String[][] data = new String[5][cols.length]; //Create same data for the table. String name = Employee Name - ; String ssn = SS No - ; String dob = Birth Date - ; String position = Position - ; String annualSalary = Employee Salary - ; for (int row=0; row data.length; row++) { data[row][0] = name + row; data[row][1] = ssn + row; data[row][2] = dob + row; data[row][3] = position + row; data[row][4] = annualSalary + row; } DefaultTableModel tableModel = new DefaultTableModel(data, cols); return tableModel; } public void produceRandomData(AtBook book) { Font titleFont = new Font(Arial, Font.BOLD, 20); Color titleColor = AtPrintConstants.GENERAL_HEADER_FG1; ImageIcon bullet = AtImageList.IMAGE_LIST.RIGHT_ARROW_16; AtStringElement note = new AtStringElement(Note: , new Font(Helvitica, 3, 12)); //3 == BOLD + ITALIC book.write(note); book.write(new AtStringElement(This PDF document is generated using Smart JPrint (AtGenericPrinter class).\n, new Font(Helvetica, Font.ITALIC, 12))); book.write(new AtLineElement(200, 1, AtLineElement.TOP, true)); AtStringElement elm = new
SSL on tomcat breaks file download
I created a JSP web application that allows user to dynamically generate and download excel files using POI/HSSF. I use the following lines to store the excel file in my application directory under a directory titled xlsreports: nextXLSName = MiscUtil.getNextXLSName(); //gets the next file name by querying the database. report.writeFile(WebappPrefs.getRptPath(session.getServletContext()) + nextXLSName); The above lines seem to work because I find the generated file in the correct folder with the correct time stamp of when I tested the JSP. I then use the following line of code to send the user the file: jsp:forward page=%= \xlsreports/\ + nextXLSName % / This has always worked flawlessly until I implemented SSL on Tomcat. Now, IE tells me that the requested site is either unavailable or cannot be found. Any ideas why implementing SSL would break this or how to fix it? Thanks a million in advance. --Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL on tomcat breaks file download
Archives: http://marc.theaimsgroup.com/?l=tomcat-userm=109818070801385w=2 http://marc.theaimsgroup.com/?l=tomcat-userm=105966032518910w=2 Jon Dobson Paul L Contr OO-ALC/LGFBR wrote: I created a JSP web application that allows user to dynamically generate and download excel files using POI/HSSF. I use the following lines to store the excel file in my application directory under a directory titled xlsreports: nextXLSName = MiscUtil.getNextXLSName(); //gets the next file name by querying the database. report.writeFile(WebappPrefs.getRptPath(session.getServletContext()) + nextXLSName); The above lines seem to work because I find the generated file in the correct folder with the correct time stamp of when I tested the JSP. I then use the following line of code to send the user the file: jsp:forward page=%= \xlsreports/\ + nextXLSName % / This has always worked flawlessly until I implemented SSL on Tomcat. Now, IE tells me that the requested site is either unavailable or cannot be found. Any ideas why implementing SSL would break this or how to fix it? Thanks a million in advance. --Paul - 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: SSL on tomcat breaks file download
hey, it is simply an header problem. I encountered the same problem few month except that I am using servlet and not JSP file. But I think it should be exactly the same. Tomcat by default set Cache-Control and Pragma to no-cache. So you have to force those to to cache. I had to add those two line to my servlet: response.setHeader( Cache-Control, cache ); response.setHeader( Pragma,cache ); I hope it will help you Doud On Tue, 02 Nov 2004 17:32:21 +, Jon Wingfield [EMAIL PROTECTED] wrote: Archives: http://marc.theaimsgroup.com/?l=tomcat-userm=109818070801385w=2 http://marc.theaimsgroup.com/?l=tomcat-userm=105966032518910w=2 Jon Dobson Paul L Contr OO-ALC/LGFBR wrote: I created a JSP web application that allows user to dynamically generate and download excel files using POI/HSSF. I use the following lines to store the excel file in my application directory under a directory titled xlsreports: nextXLSName = MiscUtil.getNextXLSName(); //gets the next file name by querying the database. report.writeFile(WebappPrefs.getRptPath(session.getServletContext()) + nextXLSName); The above lines seem to work because I find the generated file in the correct folder with the correct time stamp of when I tested the JSP. I then use the following line of code to send the user the file: jsp:forward page=%= \xlsreports/\ + nextXLSName % / This has always worked flawlessly until I implemented SSL on Tomcat. Now, IE tells me that the requested site is either unavailable or cannot be found. Any ideas why implementing SSL would break this or how to fix it? Thanks a million in advance. --Paul - 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: Can anyone help me/guide me?
[EMAIL PROTECTED] wrote: I am not using any servlets. this is just an HTML website. However, the web sever is TOMCAT. so i thought , might be some settings in server.xml and web.xml which can help me resolve this. I hope u understood my question. Well, I can't imagine any way that plain HTML files would *not* show up as the page URL in a default Tomcat install; they certainly do on any of my systems. Perhaps if you post your server.xml and web.xml files... -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: SSL on tomcat breaks file download
Worked perfectly! Thank you. Paul Dobson, F-16 Programmer/Analyst Viranim Technologies, Inc OO-ALC/LGFBR (801) 755-3679 [EMAIL PROTECTED] -Original Message- From: Edouard Dalla-Costa [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 10:34 AM To: Tomcat Users List Subject: Re: SSL on tomcat breaks file download hey, it is simply an header problem. I encountered the same problem few month except that I am using servlet and not JSP file. But I think it should be exactly the same. Tomcat by default set Cache-Control and Pragma to no-cache. So you have to force those to to cache. I had to add those two line to my servlet: response.setHeader( Cache-Control, cache ); response.setHeader( Pragma,cache ); I hope it will help you Doud On Tue, 02 Nov 2004 17:32:21 +, Jon Wingfield [EMAIL PROTECTED] wrote: Archives: http://marc.theaimsgroup.com/?l=tomcat-userm=109818070801385w=2 http://marc.theaimsgroup.com/?l=tomcat-userm=105966032518910w=2 Jon Dobson Paul L Contr OO-ALC/LGFBR wrote: I created a JSP web application that allows user to dynamically generate and download excel files using POI/HSSF. I use the following lines to store the excel file in my application directory under a directory titled xlsreports: nextXLSName = MiscUtil.getNextXLSName(); //gets the next file name by querying the database. report.writeFile(WebappPrefs.getRptPath(session.getServletContext()) + nextXLSName); The above lines seem to work because I find the generated file in the correct folder with the correct time stamp of when I tested the JSP. I then use the following line of code to send the user the file: jsp:forward page=%= \xlsreports/\ + nextXLSName % / This has always worked flawlessly until I implemented SSL on Tomcat. Now, IE tells me that the requested site is either unavailable or cannot be found. Any ideas why implementing SSL would break this or how to fix it? Thanks a million in advance. --Paul - 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]
AW: can't run a simple servlet on tomcat5.5 server
Hi ... and placed in a folder called web-inf/classes and I have placed sevlet.jar file in web-inf/lib folder. First, to start read the docs. Second, to start I would prefer a stable release, go back to 5.0. Third, tomcats libs are fine where they are. Don't copy them, remove the copies. Fourth, your sentence seems to tell me, you made a packageless servlet. This is not possible. Put your servlet in a package and put the compiled class file in matching subfolder of web-inf/classes. Fifth, I hope it is WEB-INF/classes instead of web-inf/classes. Sixth, did you map your servlet? Regards, Steffen smime.p7s Description: S/MIME cryptographic signature
RE: SSL on tomcat breaks file download
Does anyone know how to setup Tomcat so that no-cache is not the default. I have a simular problem except accessing files under ssl. These are physically located on the server and when I try to open them I get an error saying the request is unavailable. Stephen -Original Message- From: Dobson Paul L Contr OO-ALC/LGFBR [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 9:49 To: 'Tomcat Users List' Subject: RE: SSL on tomcat breaks file download Worked perfectly! Thank you. Paul Dobson, F-16 Programmer/Analyst Viranim Technologies, Inc OO-ALC/LGFBR (801) 755-3679 [EMAIL PROTECTED] -Original Message- From: Edouard Dalla-Costa [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 10:34 AM To: Tomcat Users List Subject: Re: SSL on tomcat breaks file download hey, it is simply an header problem. I encountered the same problem few month except that I am using servlet and not JSP file. But I think it should be exactly the same. Tomcat by default set Cache-Control and Pragma to no-cache. So you have to force those to to cache. I had to add those two line to my servlet: response.setHeader( Cache-Control, cache ); response.setHeader( Pragma,cache ); I hope it will help you Doud On Tue, 02 Nov 2004 17:32:21 +, Jon Wingfield [EMAIL PROTECTED] wrote: Archives: http://marc.theaimsgroup.com/?l=tomcat-userm=109818070801385w=2 http://marc.theaimsgroup.com/?l=tomcat-userm=105966032518910w=2 Jon Dobson Paul L Contr OO-ALC/LGFBR wrote: I created a JSP web application that allows user to dynamically generate and download excel files using POI/HSSF. I use the following lines to store the excel file in my application directory under a directory titled xlsreports: nextXLSName = MiscUtil.getNextXLSName(); //gets the next file name by querying the database. report.writeFile(WebappPrefs.getRptPath(session.getServletContext()) + nextXLSName); The above lines seem to work because I find the generated file in the correct folder with the correct time stamp of when I tested the JSP. I then use the following line of code to send the user the file: jsp:forward page=%= \xlsreports/\ + nextXLSName % / This has always worked flawlessly until I implemented SSL on Tomcat. Now, IE tells me that the requested site is either unavailable or cannot be found. Any ideas why implementing SSL would break this or how to fix it? Thanks a million in advance. --Paul - 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: Hassan Schroeder
Dear Sir, yes.the problem is the redirection and nothing else. read my first email again and click on export4u.co.uk and browse. ON the status bar , u can see the pages but on address bar... only http://www.export4u.co.uk Also, when u visit any section, u refresh on that page, u are redirected to home page. Thankx Vaneet --- [EMAIL PROTECTED] wrote: I am not using any servlets. this is just an HTML website. However, the web sever is TOMCAT. so i thought , might be some settings in server.xml and web.xml which can help me resolve this. I hope u understood my question. Well, I can't imagine any way that plain HTML files would *not* show up as the page URL in a default Tomcat install; they certainly do on any of my systems. Perhaps if you post your server.xml and web.xml files... -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - 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: refresh problem
[EMAIL PROTECTED] wrote: yes.the problem is the redirection and nothing else. read my first email again and click on export4u.co.uk and browse. ON the status bar , u can see the pages but on address bar... only http://www.export4u.co.uk Also, when u visit any section, u refresh on that page, u are redirected to home page. Yes, and -- I'll repeat -- this isn't a standard behavior. Please go to contact us and use your browser to display Page Info (in Moz/Firefox) or Properties (IE). What URL does that show? http://www.export4u.co.uk/;, which is what will be loaded when the browser refresh button is clicked. If you *explicitly* load http://www.export4u.co.uk/html/contact.html and hit refresh -- surprise! that's what reloads. No problem. Hence my suggestion that your problem is in your server|web.xml :-) -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat/apache problem when using ssl
Hello, I am having problem accessing my webapps deployed in tomcat, through apache. I have setup apache to use SSL. When I attempt to access any files within tomcat I see the following error in apache's error logs. The browser says the connections was broken unexpectedly. I am running apache 2.0.49, tomcat 5.0.28 on redhat 9. [Tue Nov 02 13:06:25 2004] [error] Error ajp_marshal_into_msgb - No such method \x80g\x01\x03 [Tue Nov 02 13:06:25 2004] [error] ajp13.service(): error marshaling [Tue Nov 02 13:06:25 2004] [error] mod_jk2.handler() Error connecting to tomcat 12, status 0 Has anyone seen this error before? Regards, Nandish ECI Conference Call Services, LLC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Questions on loading servlet vs. loading JSP
I have a webapp. In 2 servlets, I call JNI code. When I call the servlets from a browser DIRECTLY, all is well and the code executes. When the servlets get called from JSP's, the JNI code hangs. I know I am cleaning up after myself in the JNI code What is the difference in how Tomcat loads and processes a servlet call versus a JSP call??? How can I debug/profile this to determine the problem??? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat/apache problem when using ssl
I'm experiencing the same problem. The issue is that microsoft (article Q316431) will not display a file from a SSL site if the cache is set to no-cache. It seems that Tomcat automatically generates a Contect-Type header that includes this parameter. I have not yet found out how to change it. If you look in the /conf/web.xml file under mime type mappings you will see this. Hopefully someone will have the answer. Stephen -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 10:30 To: Tomcat Users List (E-mail) Subject: tomcat/apache problem when using ssl Hello, I am having problem accessing my webapps deployed in tomcat, through apache. I have setup apache to use SSL. When I attempt to access any files within tomcat I see the following error in apache's error logs. The browser says the connections was broken unexpectedly. I am running apache 2.0.49, tomcat 5.0.28 on redhat 9. [Tue Nov 02 13:06:25 2004] [error] Error ajp_marshal_into_msgb - No such method \x80g\x01\x03 [Tue Nov 02 13:06:25 2004] [error] ajp13.service(): error marshaling [Tue Nov 02 13:06:25 2004] [error] mod_jk2.handler() Error connecting to tomcat 12, status 0 Has anyone seen this error before? Regards, Nandish ECI Conference Call Services, LLC - 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/apache problem when using ssl
Hello Stephen, From what you said it seems like you encountered the problem from IE, but i am not using IE and still see the error. Also, I can't even get images from the DoucmentRoot, which I have set to webapps in tomcat. Please do let me know if you come across a solution. Nandish Rudra -Original Message- From: Goldman, Stephen CIV SWRMC [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 1:51 PM To: Tomcat Users List Subject: RE: tomcat/apache problem when using ssl I'm experiencing the same problem. The issue is that microsoft (article Q316431) will not display a file from a SSL site if the cache is set to no-cache. It seems that Tomcat automatically generates a Contect-Type header that includes this parameter. I have not yet found out how to change it. If you look in the /conf/web.xml file under mime type mappings you will see this. Hopefully someone will have the answer. Stephen -Original Message- From: Nandish Rudra [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 10:30 To: Tomcat Users List (E-mail) Subject: tomcat/apache problem when using ssl Hello, I am having problem accessing my webapps deployed in tomcat, through apache. I have setup apache to use SSL. When I attempt to access any files within tomcat I see the following error in apache's error logs. The browser says the connections was broken unexpectedly. I am running apache 2.0.49, tomcat 5.0.28 on redhat 9. [Tue Nov 02 13:06:25 2004] [error] Error ajp_marshal_into_msgb - No such method \x80g\x01\x03 [Tue Nov 02 13:06:25 2004] [error] ajp13.service(): error marshaling [Tue Nov 02 13:06:25 2004] [error] mod_jk2.handler() Error connecting to tomcat 12, status 0 Has anyone seen this error before? Regards, Nandish ECI Conference Call Services, LLC - 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]
Apache / Tomcat restart
Hello all! I'm running a webapp with apache 2, tomcat 5 and jk2 under debian. The system is running fine for about a week or so. Then some strange small things start to happen. The webapp loads new pages put doesn't show them in a browser, all GET requests are ok, but POST requests are not responding, and other things like that. When apache / tomcat is restarted everything is back to normal. I wonder if other people are experiencing similar things? How often do you _need_ to restart your systems? There is no problem for me to restart the system with a cron job at night, but if you guys don't have to restart why should I? I think that my tomcat / jk2 config is proper, but I have no experience in configuring apache 2 so this is pretty much out of the box configured. Regards Trond Ziarkowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Questions on loading servlet vs. loading JSP
Hi, As you know, a JSP is just a servlet after it's compiled. A JSP call is handled by the JSPServlet by default, which calls Jasper to evaluate (and if necessary compile) the JSP into a .class file. The request processing and resource handling pipeline is otherwise identical. As the Tomcat source code is freely available to you (and anyone else), feel free to confirm the above or just browse the code out of curiosity. When you say servlets get called from JSP's -- what do you mean exactly? Is it an include, forward, or other RequestDispatcher-based call? Or is it a simple reference from an HTML page (in which case the fact that the HTML page is generated by a JSP is irrelevant)? Yoav Shapira http://www.yoavshapira.com -Original Message- From: John MccLain [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 1:50 PM To: tomcat jasper list; Tomcat Dev List; Tomcat user list Subject: Questions on loading servlet vs. loading JSP I have a webapp. In 2 servlets, I call JNI code. When I call the servlets from a browser DIRECTLY, all is well and the code executes. When the servlets get called from JSP's, the JNI code hangs. I know I am cleaning up after myself in the JNI code What is the difference in how Tomcat loads and processes a servlet call versus a JSP call??? How can I debug/profile this to determine the problem??? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache / Tomcat restart
Hi, Why are you using Apache and JK2? Using Tomcat standalone, most of the systems I've put in place run for weeks and months without needing a restart. However, it takes good design *and* support/maintenance practices (such as not reloading the app in place every five minutes) to get there. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Trond G. Ziarkowski [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 2:18 PM To: [EMAIL PROTECTED] Subject: Apache / Tomcat restart Hello all! I'm running a webapp with apache 2, tomcat 5 and jk2 under debian. The system is running fine for about a week or so. Then some strange small things start to happen. The webapp loads new pages put doesn't show them in a browser, all GET requests are ok, but POST requests are not responding, and other things like that. When apache / tomcat is restarted everything is back to normal. I wonder if other people are experiencing similar things? How often do you _need_ to restart your systems? There is no problem for me to restart the system with a cron job at night, but if you guys don't have to restart why should I? I think that my tomcat / jk2 config is proper, but I have no experience in configuring apache 2 so this is pretty much out of the box configured. Regards Trond Ziarkowski - 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]
refresh problem
Dear hassan, pls see two files attached. the first one is WEB.xml from the conf directory and second one is from the WEBAPPS directory thankx again. lets solve it :) vaneet --- [EMAIL PROTECTED] wrote: yes.the problem is the redirection and nothing else. read my first email again and click on export4u.co.uk and browse. ON the status bar , u can see the pages but on address bar... only http://www.export4u.co.uk Also, when u visit any section, u refresh on that page, u are redirected to home page. Yes, and -- I'll repeat -- this isn't a standard behavior. Please go to contact us and use your browser to display Page Info (in Moz/Firefox) or Properties (IE). What URL does that show? http://www.export4u.co.uk/;, which is what will be loaded when the browser refresh button is clicked. If you *explicitly* load http://www.export4u.co.uk/html/contact.html and hit refresh -- surprise! that's what reloads. No problem. Hence my suggestion that your problem is in your server|web.xml :-) -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Introduction == -- !-- This document defines default values for *all* web applications -- !-- loaded into this instance of Tomcat. As each application is -- !-- deployed, this file is processed, followed by the-- !-- /WEB-INF/web.xml deployment descriptor from your own -- !-- applications.-- !-- -- !-- WARNING: Do not configure application-specific resources here! -- !-- They should go in the /WEB-INF/web.xml file in your application. -- !-- == Built In Servlet Definitions -- !-- The default servlet for all web applications, that serves static -- !-- resources. It processes all requests that are not mapped to other -- !-- servlets with servlet mappings (defined either here or in your own -- !-- web.xml file. This servlet supports the following initialization-- !-- parameters (default values are in square brackets): -- !-- -- !-- debug Debugging detail level for messages logged -- !-- by this servlet. [0] -- !-- -- !-- input Input buffer size (in bytes) when reading -- !-- resources to be served. [2048]-- !-- -- !-- listingsShould directory listings be produced if there -- !-- is no welcome file in this directory? [true] -- !-- -- !-- output Output buffer size (in bytes) when writing -- !-- resources to be served. [2048]-- !-- -- !-- readonlyIs this context read only, so HTTP -- !-- commands like PUT and DELETE are -- !-- rejected? [true] -- !-- -- !-- readmeFile File name to display with the directory-- !-- contents. [null] -- !-- -- !-- For directory listing customization. Checks localXsltFile, then -- !-- globalXsltFile, then defaults to original behavior. -- !-- -- !-- localXsltFile Make directory listings an XML doc and -- !-- pass the result to this style sheet residing -- !-- in that directory. This overrides -- !--globalXsltFile[null] -- !-- -- !-- globalXsltFile Site wide configuration
Can application scope data be replicated
Is there a way to replicate application scope data like there is a way to replicate session scope information? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache / Tomcat restart
Hi Shapira, the reason for running apache / jk2 is that we are running other things on the same server using php. Haven't tried to make php run inside tomcat, never even checked to see if it is possible. The php stuff existed before we started using tomcat so the natural approach for us was to expand our existing solution to also support running servlets / jsp. However we are in the process of porting our old php stuff to servlets / jsp, so in the near future we should be able to use tomcat standalone. I'm a junior (2yrs. exp.) and curious about hints / tips when you talk about good design and support / maintenance practices. Pointers to good docs on these topics or som pointers from you or others that are more experienced than myself would be much appreciated. Regards Trond Ziarkowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache / Tomcat restart
Hi, the reason for running apache / jk2 is that we are running other things on the same server using php. Haven't tried to make php run inside tomcat, never even checked to see if it is possible. The php stuff It's possible, but clunky. So you're fine for now, but when you're done converting to all servlets/JSPs, you should seriously consider running Tomcat standalone. I'm a junior (2yrs. exp.) and curious about hints / tips when you talk about good design and support / maintenance practices. Pointers to good docs on these topics or som pointers from you or others that are more experienced than myself would be much appreciated. You can search the archives: you'll find a good amount of tips and such. Yoav 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]
Tomcat bug?
Hi It looks like Tomcat cannot generate Servlet code for JSP files that have incorrect HTMLish syntax. In the simple JSP page below I have written the end /html tag incorrectly and have missed to put the end character and then Tomcat complains that it cannot compile the class for my JSP. Is this behaviour expected or is it a bug? Regards, Behrang S. JSP page: - %@ page contentType=text/html;charset=UTF-8 language=java % html headtitleSimple jsp page/title/head body bgcolor=black /body /html Exception: -- HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:515) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) root cause java.lang.ArrayIndexOutOfBoundsException: 162 org.apache.jasper.compiler.JspReader.peekChar(JspReader.java:154) org.apache.jasper.compiler.JspReader.isSpace(JspReader.java:347) org.apache.jasper.compiler.JspReader.isDelimiter(JspReader.java:414) org.apache.jasper.compiler.JspReader.parseToken(JspReader.java:395) org.apache.jasper.compiler.Parser.checkUnbalancedEndTag(Parser.java:1699) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1561) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220) org.apache.jasper.compiler.ParserController.parse(ParserController.java:101) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.compiler.Compiler.compile(Compiler.java:422) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.24 logs. Apache Tomcat/5.0.24 BTW, I'm using Tomcat version 5.0.24. -- Using 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: Tomcat bug?
Works for me in 5.0.28 -Tim Behrang Saeedzadeh wrote: Hi It looks like Tomcat cannot generate Servlet code for JSP files that have incorrect HTMLish syntax. In the simple JSP page below I have written the end /html tag incorrectly and have missed to put the end character and then Tomcat complains that it cannot compile the class for my JSP. Is this behaviour expected or is it a bug? Regards, Behrang S. JSP page: - %@ page contentType=text/html;charset=UTF-8 language=java % html headtitleSimple jsp page/title/head body bgcolor=black /body /html Exception: -- HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: refresh problem
I know Tomcat 5 hides index.jsp so that the home page appears as www.mydomain.com. I don't if it affects your links. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: November 2, 2004 2:22 PM To: [EMAIL PROTECTED] Subject: refresh problem Dear hassan, pls see two files attached. the first one is WEB.xml from the conf directory and second one is from the WEBAPPS directory thankx again. lets solve it :) vaneet --- [EMAIL PROTECTED] wrote: yes.the problem is the redirection and nothing else. read my first email again and click on export4u.co.uk and browse. ON the status bar , u can see the pages but on address bar... only http://www.export4u.co.uk Also, when u visit any section, u refresh on that page, u are redirected to home page. Yes, and -- I'll repeat -- this isn't a standard behavior. Please go to contact us and use your browser to display Page Info (in Moz/Firefox) or Properties (IE). What URL does that show? http://www.export4u.co.uk/;, which is what will be loaded when the browser refresh button is clicked. If you *explicitly* load http://www.export4u.co.uk/html/contact.html and hit refresh -- surprise! that's what reloads. No problem. Hence my suggestion that your problem is in your server|web.xml :-) -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:4187df0a8956271612!
password encryption JDBC connection pool
Can anybody point how to encrypt password and configure Tomcat 5.0.24(or higher) JDBC connection pool. Thanks, Mark. __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: password encryption JDBC connection pool
IP Sec, VPN Tunnel, etc Search the archives on this one. - Original Message - From: Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 3:31 PM Subject: password encryption JDBC connection pool Can anybody point how to encrypt password and configure Tomcat 5.0.24(or higher) JDBC connection pool. Thanks, Mark. __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.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: Can application scope data be replicated
not at this time - Original Message - From: Norris Shelton [EMAIL PROTECTED] To: Tomcat [EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 1:45 PM Subject: Can application scope data be replicated Is there a way to replicate application scope data like there is a way to replicate session scope information? = Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Appriss, Inc. ICQ# 26487421 AIM NorrisEShelton YIM norrisshelton __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.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]
Bind Tomcat to one IP address on multiple IP machine
My computer has multiple IP addresses assigned to it and I'd like Tomcat to only listen on one of those addresses. I've scoured the documentation on the server.xml config file and the closest thing I can find is the tcpListenAddress of a cluster element. However, it seems to me that I shouldn't have to get that complicated. Other than that, I've pretty much replaced any instance of the word localhost with an IP address but still I can access Tomcat on all the IP addresses for the machine. Am I missing something simple? Thanks, -JF __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bind Tomcat to one IP address on multiple IP machine
Hi, My computer has multiple IP addresses assigned to it and I'd like Tomcat to only listen on one of those addresses. I've scoured the documentation on the server.xml config file and the closest thing I can find is the tcpListenAddress of a cluster element. However, it seems to me that I shouldn't have to get that complicated. It's this kind of post that really discourages me ;( As the connector doc (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html) clearly says, right at the top of the attributes section: Attribute Description address For servers with more than one IP address, this attribute specifies which address will be used for listening on the specified port. By default, this port will be used on all IP addresses associated with the server. Yoav 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]
Tomcat Manager
I am running Apache Tomcat/4.1.31 on Win2000. Yesterday I tried to deploy some war files and had no luck. I added a Context path=/myapp docBase=myapp debug=0 reloadable=true / stopped and started tomcat and it never worked. Anyway, a person in the group recommended me using the Tomcat Manager. Using the Tomcat Manager I was able to deploy the war file with no problem. So all is good. Problem is, when I edited the server.xml file, I do not see an entry for the new myapp in there at all? I assume that it does not write any info there? Does it put the entry somewhere I can see? I would like to create a log file for this myapp and was used to doing it via editing the server.xml file. How can I do it in the Manager? Thanks, Scott
RE: Tomcat Manager
Hi, If you look in the conf directory, is there a myapp.xml file? ;) If so, that's your answer. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 4:05 PM To: [EMAIL PROTECTED] Subject: Tomcat Manager I am running Apache Tomcat/4.1.31 on Win2000. Yesterday I tried to deploy some war files and had no luck. I added a Context path=/myapp docBase=myapp debug=0 reloadable=true / stopped and started tomcat and it never worked. Anyway, a person in the group recommended me using the Tomcat Manager. Using the Tomcat Manager I was able to deploy the war file with no problem. So all is good. Problem is, when I edited the server.xml file, I do not see an entry for the new myapp in there at all? I assume that it does not write any info there? Does it put the entry somewhere I can see? I would like to create a log file for this myapp and was used to doing it via editing the server.xml file. How can I do it in the Manager? Thanks, Scott 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: Bind Tomcat to one IP address on multiple IP machine
Sorry, it was really late at night when I was looking into this and after spending the evening going through docs for Apache, jk2, MySQL, etc. my eyes were very tired. There are a ton of questions that I answered for myself by going through these docs. This just happens to be one that slipped by. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, My computer has multiple IP addresses assigned to it and I'd like Tomcat to only listen on one of those addresses. I've scoured the documentation on the server.xml config file and the closest thing I can find is the tcpListenAddress of a cluster element. However, it seems to me that I shouldn't have to get that complicated. It's this kind of post that really discourages me ;( As the connector doc (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html) clearly says, right at the top of the attributes section: Attribute Description address For servers with more than one IP address, this attribute specifies which address will be used for listening on the specified port. By default, this port will be used on all IP addresses associated with the server. Yoav 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] __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Bind Tomcat to one IP address on multiple IP machine
Hi, Well, that's understandable, and at least you didn't bitch and moan at the quality of the Tomcat docs ;) ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: footh [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 4:17 PM To: Tomcat Users List Subject: RE: Bind Tomcat to one IP address on multiple IP machine Sorry, it was really late at night when I was looking into this and after spending the evening going through docs for Apache, jk2, MySQL, etc. my eyes were very tired. There are a ton of questions that I answered for myself by going through these docs. This just happens to be one that slipped by. --- Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, My computer has multiple IP addresses assigned to it and I'd like Tomcat to only listen on one of those addresses. I've scoured the documentation on the server.xml config file and the closest thing I can find is the tcpListenAddress of a cluster element. However, it seems to me that I shouldn't have to get that complicated. It's this kind of post that really discourages me ;( As the connector doc (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html) clearly says, right at the top of the attributes section: Attribute Description address For servers with more than one IP address, this attribute specifies which address will be used for listening on the specified port. By default, this port will be used on all IP addresses associated with the server. Yoav 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] __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Binding Address Problem
I have a similar problem. I have two Tomcat instances installed on the same server. I want them each to bind to a specific IP address and use port 8080. See config snippets below. Even though I specify an address, they clobber each other. Whichever one starts first wins. Anyone know what I'm doing wrong? I'm using Tomcat 4.x --Dan Server#1 Connector className=org.apache.catalina.connector.http.HttpConnector address=12.12.12.12 port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ Server#2 Connector className=org.apache.catalina.connector.http.HttpConnector address=13.13.13.13 port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ Starting service Tomcat-Standalone Apache Tomcat/4.1 StandardServer.await: create[8005]: java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331) at java.net.ServerSocket.bind(ServerSocket.java:324) at java.net.ServerSocket.init(ServerSocket.java:186) at org.apache.catalina.core.StandardServer.await(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Binding Address Problem
Yeah, it looks like you haven't made the shutdown port unique for each server instance. Tomcat uses several ports for it's operation. Notice your exception is throwing 8005. This is the port that Tomcat listens for shutdown requests. Change it to a different value in one of the server.xml config files. Ed Wick, Daniel wrote: I have a similar problem. I have two Tomcat instances installed on the same server. I want them each to bind to a specific IP address and use port 8080. See config snippets below. Even though I specify an address, they clobber each other. Whichever one starts first wins. Anyone know what I'm doing wrong? I'm using Tomcat 4.x --Dan Server#1 Connector className=org.apache.catalina.connector.http.HttpConnector address=12.12.12.12 port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ Server#2 Connector className=org.apache.catalina.connector.http.HttpConnector address=13.13.13.13 port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ Starting service Tomcat-Standalone Apache Tomcat/4.1 StandardServer.await: create[8005]: java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331) at java.net.ServerSocket.bind(ServerSocket.java:324) at java.net.ServerSocket.init(ServerSocket.java:186) at org.apache.catalina.core.StandardServer.await(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) - 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: Binding Address Problem
Sweet. Thanks worked. Thanks Ed. -Original Message- From: Ed Robbins [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 3:34 PM To: Tomcat Users List Subject: Re: Binding Address Problem Yeah, it looks like you haven't made the shutdown port unique for each server instance. Tomcat uses several ports for it's operation. Notice your exception is throwing 8005. This is the port that Tomcat listens for shutdown requests. Change it to a different value in one of the server.xml config files. Ed Wick, Daniel wrote: I have a similar problem. I have two Tomcat instances installed on the same server. I want them each to bind to a specific IP address and use port 8080. See config snippets below. Even though I specify an address, they clobber each other. Whichever one starts first wins. Anyone know what I'm doing wrong? I'm using Tomcat 4.x --Dan Server#1 Connector className=org.apache.catalina.connector.http.HttpConnector address=12.12.12.12 port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ Server#2 Connector className=org.apache.catalina.connector.http.HttpConnector address=13.13.13.13 port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ Starting service Tomcat-Standalone Apache Tomcat/4.1 StandardServer.await: create[8005]: java.net.BindException: Address already in use java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331) at java.net.ServerSocket.bind(ServerSocket.java:324) at java.net.ServerSocket.init(ServerSocket.java:186) at org.apache.catalina.core.StandardServer.await(Unknown Source) at org.apache.catalina.startup.Catalina.start(Unknown Source) at org.apache.catalina.startup.Catalina.execute(Unknown Source) at org.apache.catalina.startup.Catalina.process(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Unknown Source) - 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]
jboss with tomcat
Hello, I've got tomcat embedded into jboss 2.2.5 . I get some kind of mapping error when I go to http://localhost:8080/web-console/ and the browser displays a 500 error. What is causing this and where can I look to fix it? [INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING configuration error for request URI [ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke java.lang.NullPointerException at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatche rValve.java:280) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline .java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso r.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja va:1106) at java.lang.Thread.run(Unknown Source) thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: password encryption JDBC connection pool
I rank pretty low on the expert pole. But from all the prior threads and reading, No. If the data is important enough to need a password, then the data stream should also be protected. If the steam is not vulnerable, then the only issue is a user on the server. Then it is an issue of rights to the file. Do a search and you will find several discussions on this topic and the pros and cons. One point of clarification, this is based on my understanding that you wish to encrypt the password that the pool uses to connect to the database. If it is about storing encrypted passwords in the database, then as far as I know the pool has no bearing on this and is why I responded as I did. Doug - Original Message - From: Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 3:44 PM Subject: Re: password encryption JDBC connection pool Hm are you saying that connection pool in tomcat doesn't support password encryption ? --- Parsons Technical Services [EMAIL PROTECTED] wrote: IP Sec, VPN Tunnel, etc Search the archives on this one. - Original Message - From: Mark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 3:31 PM Subject: password encryption JDBC connection pool Can anybody point how to encrypt password and configure Tomcat 5.0.24(or higher) JDBC connection pool. Thanks, Mark. __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.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] __ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does Tomcat 5 users java.nio?
I checked this document: http://www-106.ibm.com/developerworks/library/j-nioserver/ and it talks about how wonderful new io could help server to serves higher number of connections and less error/drop connections. Is it true in practice? Does Tomcat 5 uses new io of just io? If not, do they plan to move to this? Just curious. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Refresh Problem
Dear hassan, Can this be a problem ( can framesets be a problem in getting the home page again and again ) When I tried the URL the content was served. This is what I got. HTTP/1.1 200 OK Date: Mon, 27 Sep 2004 13:33:15 GMT Server: Apache/1.3.29 (Unix) Transfer-Encoding: chunked Content-Type: text/html HTMLHEAD META NAME=description content= META NAME=keywords content= TITLEwww. Export4U.co.uk/TITLE /HEAD FRAMESET ROWS=100%,* BORDER=0 FRAMEBORDER=0 FRAME SRC=http://micsexport.servepics.com/; SCROLLING=AUTO NAME=bannerframe NORESIZE /FRAMESET NOFRAMES www. Export4U.co.uk P DIV ALIGN=CENTERA HREF=http://micsexport.servepics.com/;http://export4u.c o.uk//A/DIV /NOFRAMES /HTML what do u think the ORIGINAL QUESTION WAS: i have a domain name and i am using no-ip software to bind my IP address (my ISP provides dynamic IP ) so, i have redirected my domain name: http://www.export4u.co.uk to micsexport.servepics.com now problem is: when u visit http://www.export4u.co.uk u click on contact us section. If a user refreshes a page, it takes back the user to the home page which is index page. I think it has to do with redirection as i am redirected Vaneet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Does Tomcat 5 users java.nio?
From: Vy Ho [EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 3:03 PM I checked this document: http://www-106.ibm.com/developerworks/library/j-nioserver/ and it talks about how wonderful new io could help server to serves higher number of connections and less error/drop connections. Is it true in practice? Does Tomcat 5 uses new io of just io? If not, do they plan to move to this? The dillema is that the Servlet Model as defined in the specification doesn't work well in the kind of environment provided by NIO, so it's difficult to say whether something that handled the semantics of a Servlet written using NIO would actually be any faster at all. Now, technically, if one were so inclined, you could implement that bits that handle static content with Tomcat to, perhaps, use the nio model and maybe get a bonus for a pure Tomcat, yet static heavy, site. But since most folks simply Don't Do That (i.e. if they're distinguishing static content at all, odds pretty good that they're fronting Tomcat with Apache anyway...), there's little motivation to engineer Tomcat to support NIO for simply static content. Servlets are pretty much thread based, being as they can perform arbitrary calculations. Also, Servlets can, technically, access the input and output streams of the request directly. Many servlets don't need that kind of direct access. For example, most simply use the request headers and parameters rather than the input stream itself. NIO based servers are essentially event driven, with the sockets and IO channels being a dominant source of the events. The NIO server repeatedly checks the two ends of a request (the source and the sink, for example, the input stream and server logic). When the source has data ready to read and the sink is ready to take data, the NIO server grabs a chunk from the source and feeds it to the sink, and then moves on to the other sources/sinks within its queue. The main thread of an NIO server can NOT block waiting for something to come ready, as it will stall the entire server (because none of the other requests will get serviced). If you're simply moving data from disk to a socket, this works fine because OS's offer asynchronous IO calls and make available routines which an NIO server can use to see who's waiting and needs servicing. But exposing that is it ready interface to arbitrary logic like that within a servlet is difficult. If the code is very short, it's no problem at all. The code is always ready and essentially returns immediately. But if it's doing anything more than that (say, contacting a database), then things get more ugly very quickly. The IO drivers of the system are asynchronous without directly using a user level mechanism like threads, so they're asynchronous for free. But if you want user written logic to have an asynchronous behavior, we typically turn to threads to provide that for us. But, the strength of the NIO model is that the requests it manages within its internal queue have simple state than a thread, and therefore switch from request to request is much cheaper (and therefor faster) than using the JVMs thread scheduler to switch between threads. But if the NIO server needs to spawn a thread to get asynchronous behaviour from an arbitrary Servlet, then most of the benefit of the NIO architecture is lost. Servers can certainly be written this way. Servers can perform all of the things that a Servlet can provide. But the fine grained event model is much different than what the Servlet specification provides, and it would also require that all calls be basically event based, particularly calls to things like DBs.\ Regards, Will Hartung ([EMAIL PROTECTED]) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cant get servlets to run in shared instance through mod_jk2
Hello Im running tomcat5 with mod_jk2, apache 2 and RH FC01 Im not a programmer, just someone who manages tomcat. But anyway, Im having trouble getting servlets to work under mod_jk2 and shared instance. It works fine with preview link context for the site: http://ip:8080/domain.com but with domain.com/servlet/helloworld does not work. I uploaded the root contents for servlets-examples to the root of the site (html folder which is also doc base). The WEB-INF in the dir is from the servlets-examples. So when you go to domain.com the index.html from the examples loads. But links to serlvet/servletname doesnt work. Settings: Tomcats entry for virtual host in server.xml: Host name=domain1.com debug=0 appBase=/home/username/domain1.com/html unpackWARs=true autoDeploy=true Aliaswww.domain1.com/Alias Valve className=org.apache.catalina.valves.AccessLogValve directory=/home/username/domain1.com/logs prefix=tomcat5_log. suffix=.txt pattern=common resolveHosts=false/ /Host Workers2.properties entry (JSPs work and html is routed to apache) # DOMAIN1.COM [uri:domain1.com:80/*.jsp] group=TC5 [uri:www.domain1.com:80/*.jsp] group=TC5 [uri:domain1.com:80/servlet/*] group=TC5 [uri:www.domain1.com:80/servlet/*] group=TC5 The http.conf file has document root as /home/username/domain1.com/html and the locations for WEB-INF are included for security. Any Ideas what I might be missing?? (remember it works when accessing via port.) Thanks! John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Regarding silent installation of tomcat 5.0
Hi MT, Thanks a lot for the advise. Is it possible to give any other options alongwith this like the directory to install to ? And does it install the services also ? Kindly advise. Best Regards, Satya -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 03:51 PM To: Tomcat Users List Subject: Re: Regarding silent installation of tomcat 5.0 Narayan, Satya wrote: Hi all, I have a doubt regarding the doubt regarding the installation of tomcat 5.0 I need to install tomcat 5.0 and also the NT service. I need to do all this silently ie without user input. Is it possible ? Is there a silent option in tomcat installation exe file ? 'jakarta-tomcat-5.X.X.exe /S' (case Sensitive) MT. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]