Re: Character Encoding question
Just a guess: Check the format of the .jsp-files. I had similar problems and solved them by converting the jsp-files to UTF-8. - Manfred Richard Jones wrote: Hi All, I am having problems with Scandinavian characters on my system and am attempting to isolate the problem; any help would be greatly appreciated. The problem manifests when forms are posted containing Scandinavian characters. In some cases these characters are de/encoded correctly and in other cases they are replaced by strings of other special characters. The system that I am working with aims to use UTF-8 encoding, and there are meta elements on all the pages to this effect. I have enabled the RequestDumperValve which shows that the characters are incorrectly decoded by the time they reach this stage of processing. I have noticed a correlation (although not necessarily a relationship) between whether the characters are correctly decoded and whether the request is reporting using: contentType=text/html;charset=ISO-8859-1 or incorrectly decoded when: contentType=text/html;charset=UTF-8 (This comes from the part of the RequestDumperValve output which is separated from the main request part by two dashed lines). I have tried modifying the Connector for the service by adding URIEncoding=UTF-8 and experimented with both: useBodyEncodingForURI=true and useBodyEncodingForURI=false with no luck. Does anyone have any experience or advice that might point me in the right direction. It is entirely possible that this problem is /not/ a tomcat issue, but I am running out of ideas here. PS, sorry for the previous partial post - I just discovered a new keyboard shortcut by accident! Best Wishes, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat base vs. home
I don't know VSS, but using CVS I would do a new checkout to the H: drive, so Tomcat and VSS would use the same location and there is no extra config to do. - Manfred Sternbergh, Cornell wrote: Sorry for the basic stuff here guys... I'm a bit under the gun and haven't found the answer in an admittedly cursory search, so I thought I'd ask those who know all (that's you ;-) I've eclipse (3.0) with sysdeo's plugin for tomcat, and tomcat (4.1). In eclipse/window/preferences/tomcat there's a text box for Tomcat home, currently h:\tomcat. Under tomcat, in advanced, there's a text box for Tomcat base, also h:\tomcat. Is Tomcat home the place tomcat looks for its stuff and Tomcat base where it looks for applications? And then where would the HTML/JSP pages go? Why do I ask Now, with my limited understanding of this stuff, there's a directory with the java stuff in it, for the application server, a directory for the HTML and JSP stuff, for the http server, and a directory for the libraries used to actually run the application server. When I'd worked with Visual Age for Java, we had the source code in, for example, C:\project\ etc. and the HTML/JSPs in C:\Program Files\IBM\...\DEFAULT_HOST\ProjectApp\ etc. I'm guessing that VAJ's libraries were also in C:\Program Files\IBM etc. In support of that, we also have Visual Source Safe pointing to the same directories, as it contains the Java/HTML/JSP and conf and prop and etc files. I'd put Eclipse and Tomcat on C:\tomcat, and had to move it to a network drive, H:\tomcat. (because of the zips and McAfee) But, I need to get tomcat to get the Java, HTML and JSPs from the same place that VSS is pointed at, i.e. back at C:\project and C:\program files\ibm\etc. (so as to minimize my straying from the standard ;-) So what do I set to c:\project and what do I set to C;\program files\ibm\ etc.? Thanks Thank you R. Cornell Sternbergh PennDOT/BIS APRASTeam (717) 787-6760 [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: Moving to another drive
Did you change Tomcat Home and Configuration File at Window/Preferences/Tomcat? Fight the bureaucrats ;) - Manfred Sternbergh, Cornell wrote: Hi everybody I'm using Tomcat (4.1) with the Sysdeo plug-in for Eclipse (3.0) on a WinXP machine. Had everything installed on C:\ and all was right with the world. rant Then came McAfee and the bureaucrats, who feel that ALL files should be scanned on access. Which means that even something as benign as looking for a file in an archive, a zip, or jar, causes the entire archive to be scanned, every time. This drives the CPU time consumed by McAfee to 99%. /rant The bureaucrats' solution... Move them all to a network drive, where more powerful machines will do the scanning (and get maxed out) So... I've moved the C:\eclipse and C:\tomcat directories to a networked drive, H:\ I've changed the environment variable CATALINA_HOME to be H:\tomcat and I've changed references in H:\tomcat\conf\server.xml to H: instead of C: Eclipse comes up fine, but when I try to start tomcat, I get: java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap The Bootstrap class is in H:\tomcat\bin\bootstrap.jar, I copied it back to C:\ and tried to start tomcat, and got: Exception during startup processing java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:992) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:857) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:176) So... tomcat is still looking at C: for stuff when starting. What am I missing, any ideas? Thank you R. Cornell Sternbergh PennDOT/BIS APRASTeam (717) 787-6760 [EMAIL PROTECTED] Sternbergh, Cornell.vcf - 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't get ssl redirection to work properly
I think you have a problem with the url-pattern in the web.xml. It redirects anything after pds/ to ssl - but in http://adress:8080/pds there is nothing. I don't have time to test now, but it may work without any url-pattern or just * instead of /*. - ms Stefan Nilsson wrote: Hi again.. I don´t know if this mail reached the mailinglist som I just reply to myself to get the attention again ;). Is this kind of behaviour by tomcat normal with the redirection?. Does behave in this way even if you just have an application.war file deployed on a standalone tomcat? Best regards Stefan Nilsson. On 7/15/05, Stefan Nilsson [EMAIL PROTECTED] wrote: I am running Jboss 4.0.1 with the tomcat 5.0 and I have an application.ear called pds running on it. To access the application you simple write http://adress:8080/pds; Now I wanted to enable ssl on the webapp.war in the application so I changed the server.xml and web.xml and created a keystore and everything. I redirect from 8080 to 8443 and everything works as long as do like this. https://adress:8443/pds - works!! http://adress:8080/pds/login.jsp - works! get redirected to https://adress:8443/pds/x http://adress:8080/pds - doesn´t work - I time out and get a no page found error. I really need the the old url http://adress:8080/pds; to be redirected to https://adress:8443/pds Any suggestions?? Best regards Stefan Nisson Below follows some relevant sections from my server.xml and web.xml: === server.xml == Connector port = 8080 address = ${jboss.bind.address} maxThreads = 150 minSpareThreads = 25 maxSpareThreads = 75 enableLookups = false redirectPort = 8443 acceptCount = 100 connectionTimeout = 2 disableUploadTimeout = true/ Connector port = 8443 address = ${jboss.bind.address} maxThreads = 100 minSpareThreads = 5 maxSpareThreads = 15 scheme = https secure = true clientAuth = false keystoreFile = ./keystore keystorePass = secret sslProtocol = TLS/ === web.xml = security-constraint display-nameSecurity for Julius PDS/display-name web-resource-collection web-resource-nameJulius web Security/web-resource-name descriptionRedirect all to SSL/description url-pattern/*/url-pattern /web-resource-collection user-data-constraint descriptionProtection should be CONFIDENTIAL/description transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint - 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: Request parameter data not being recognised as UTF-8
Try saving the JSP-File itself as UTF-8. Worked for me at a similar Problem. - ms - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat stops responding
We have an app running productive for ~1 year without noticeable errors (Tomcat 4.1.24, Java 1.4.1_03, Postgres 7.3 on RedHat 9). But recently tomcat stops processing requests now and then. - Tomcat is running - No errors in the logfiles - Due to RequestDumperValve Tomcat does not receive any requests when locked - Other non-Tomcat java-apps on this server (using the same db) don't encounter any problems After restarting Tomcat everything is fine. Any suggestions will be appreciated. thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]