Re: Error 500, restoring backup, GeoNode 2.4 to Geonode 2.4.1
> From: "LEOPOLDO JAVIER NUNEZ DE SANTIAGO ." > To: users@tomcat.apache.org, > Date: 19.10.2016 18:35 > Subject: Error 500, restoring backup, GeoNode 2.4 to Geonode 2.4.1 > > Users Hello, my problem is related to an error in Tomcat 7 to update a > GeoNode gis system. > > Thanks for your support. > > Restarting the service tomcat7 by ssh, the system does not indicate an > error, but tomcat 7 does not start. > > 2.4 GeoNode proceeding to backup. Next restoring in GeoNode 2.4.1 > > *steps for Backup files (GeoNode 2.4)* > > Stop service > > sudo service apache2 stop > > sudo service tomcat7 stop > > sudo service postgresql stop > > > > sudo -u postgres -i pg_dump -c -Fc geonode > geonodedb.backup > > > > tar -cvzf geonodeConfigBackup.tgz /etc/geonode > > tar -zcvf geonodeVarDataBackup.tgz /var/lib/geoserver/geonode-data/ > > tar -zcvf geonodeUsrDataBackup.tgz /usr/share/geoserver/data/ > > tar -zcvf geonodeWWWDataBackup.tgz /var/www/geonode/ > > tar -cvzf geonodei18nBackup.tgz /usr/local/lib/python2.7/dist- > packages/geonode/locale/ > > tar -cvzf geonodePyDjangoBackup.tgz /usr/local/lib/python2.7/dist- > packages/geonode/ > > tar -cvzf geonodePyDjangoEggBackup.tgz /usr/local/lib/python2.7/dist- > packages/GeoNode-2.4.1.egg-info/ > > > > *steps, restoring backup (GeoNode 2.4.1)* > > > sudo service apache2 stop > > sudo service tomcat7 stop > > sudo service postgresql stop > > > sudo tar -C / -xvzf geonodeConfigBackup.tgz > > sudo tar -C / -xvzf geonodei18nBackup.tgz > > sudo tar -C / -xvzf geonodePyDjangoEggBackup.tgz > > sudo tar -C / -xvzf geonodeVarDataBackup.tgz > > sudo tar -C / -xvzf geonodePyDjangoBackup.tgz > > sudo tar -C / -xvzf geonodeUsrDataBackup.tgz > > sudo tar -C / -xvzf geonodeWWWDataBackup.tgz > > sudo service postgresql start > > sudo -u postgres -i psql -c 'drop database geonode;' > > sudo -u postgres -i psql -c 'create database geonode;' > > sudo -u postgres -i pg_restore -Fc -d geonode /path/to/geonodedb.backup > > > > sudo service apache2 stop > > sudo service tomcat7 stop > > > > Did not receive errors during the restore. > > But I have server 500 error. > > Check the access.log file, folder apache2 > > > > > > 172.125.121.52 - - [18/Oct/2016:15:19:55 +] "GET / HTTP/1.1" 200 5234 > "-" "this is a test ua " > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/geonode/css/ext-compatibility.css?v=2.4.1 HTTP/1.1" 200 678 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/lib/css/assets.min.css?v=2.4.1 HTTP/1.1" 200 27247 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/geonode/css/base.css?v=2.4.1 HTTP/1.1" 200 3113 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/geonode/js/utils/utils.js?v=2.4.1 HTTP/1.1" 200 1292 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/autocomplete_light/django_admin.js HTTP/1.1" 200 832 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/autocomplete_light/autocomplete.js HTTP/1.1" 200 8094 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/autocomplete_light/addanother.js HTTP/1.1" 200 1525 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/geonode/js/base/base.js?v=2.4.1 HTTP/1.1" 200 491 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/lib/js/assets.min.js?v=2.4.1 HTTP/1.1" 200 259982 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/autocomplete_light/widget.js HTTP/1.1" 200 4674 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/autocomplete_light/remote.js HTTP/1.1" 200 983 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/geonode/fonts/lato_font.css HTTP/1.1" 200 501 " > http://172.125.122.68/static/geonode/css/base.css?v=2.4.1"; "this is a test > ua " > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/autocomplete_light/style.css HTTP/1.1" 200 1610 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET > /static/autocomplete_light/text_widget.js HTTP/1.1" 200 2991 " > http://172.125.122.68/"; "this is a test ua alert(99) >" > > 172.125.121.52 - - [18/Oct/2016:15:19:57 +
Re: error Tomcat 9 - Failed to detect ServletContainerInitializers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alex, On 10/18/16 11:15 AM, Pustelnik, Alex wrote: > Hello All, > > Please help me to fix an error om my Apache Tomcat 9.0.0 M11 (On > Windows server 2012 R2 Standard). > > Here is from log: > > > 18-Oct-2016 10:47:40.222 INFO [Thread-7] > org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler > ["http-nio-8080"] 18-Oct-2016 10:47:40.300 INFO [Thread-7] > org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler > ["https-jsse-nio-8443"] 18-Oct-2016 10:47:40.363 INFO [Thread-7] > org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler > ["ajp-nio-8009"] 18-Oct-2016 10:47:40.425 INFO [Thread-7] > org.apache.catalina.core.StandardService.stopInternal Stopping > service Catalina 18-Oct-2016 10:47:40.472 INFO [Thread-7] > org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler > ["http-nio-8080"] 18-Oct-2016 10:47:40.488 INFO [Thread-7] > org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler > ["https-jsse-nio-8443"] 18-Oct-2016 10:47:40.488 INFO [Thread-7] > org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler > ["ajp-nio-8009"] 18-Oct-2016 10:49:57.470 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Server > version:Apache Tomcat/9.0.0.M11 18-Oct-2016 10:49:57.470 > INFO [main] org.apache.catalina.startup.VersionLoggerListener.log > Server built: Oct 6 2016 18:54:10 UTC 18-Oct-2016 > 10:49:57.470 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Server > number: 9.0.0.0 18-Oct-2016 10:49:57.470 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log OS Name: > Windows Server 2012 R2 18-Oct-2016 10:49:57.470 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log OS Version: > 6.3 18-Oct-2016 10:49:57.470 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Architecture: > amd64 18-Oct-2016 10:49:57.470 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Java Home: > C:\Program Files\Java\jre1.8.0_101 18-Oct-2016 10:49:57.470 INFO > [main] org.apache.catalina.startup.VersionLoggerListener.log JVM > Version: 1.8.0_101-b13 18-Oct-2016 10:49:57.470 INFO > [main] org.apache.catalina.startup.VersionLoggerListener.log JVM > Vendor:Oracle Corporation 18-Oct-2016 10:49:57.470 INFO > [main] org.apache.catalina.startup.VersionLoggerListener.log > CATALINA_BASE: D:\Tomcat9 18-Oct-2016 10:49:57.470 INFO > [main] org.apache.catalina.startup.VersionLoggerListener.log > CATALINA_HOME: D:\Tomcat9 18-Oct-2016 10:49:57.470 INFO > [main] org.apache.catalina.startup.VersionLoggerListener.log > Command line argument: -Dcatalina.home=D:\Tomcat9 18-Oct-2016 > 10:49:57.470 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: -Dcatalina.base=D:\Tomcat9 18-Oct-2016 10:49:57.470 INFO > [main] org.apache.catalina.startup.VersionLoggerListener.log > Command line argument: -Djava.io.tmpdir=D:\Tomcat9\temp 18-Oct-2016 > 10:49:57.470 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: > -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > 18-Oct-2016 10:49:57.470 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: > -Djava.util.logging.config.file=D:\Tomcat9\conf\logging.properties > 18-Oct-2016 10:49:57.470 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: exit 18-Oct-2016 10:49:57.470 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: -Xms128m 18-Oct-2016 10:49:57.470 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: -Xmx256m 18-Oct-2016 10:49:57.486 INFO [main] > org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The > APR based Apache Tomcat Native library which allows optimal > performance in production environments was not found on the > java.library.path: > D:\Tomcat9\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows; C:\Program > Files\Java\jre1.8.0_101\bin;C:\ProgramData\Oracle\Java\javapath;C:\Win dows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wi ndowsPowerShell\v1.0\;C:\Program > Files\MySQL\MySQL Server 5.5\bin;D:\APPS\MySQL\bin;;. 18-Oct-2016 > 10:49:57.736 INFO [main] org.apache.coyote.AbstractProtocol.init > Initializing ProtocolHandler ["http-nio-8080"] 18-Oct-2016 > 10:49:57.986 INFO [main] > org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using > a shared selector for servlet write/read 18-Oct-2016 10:49:57.986 > INFO [main] org.apache.coyote.AbstractProtocol.init Initializing > ProtocolHandler ["https-jsse-nio-8443"] 18-Oct-2016 10:49:58.486 > INFO [main] > org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using > a shared selector for servlet write/read 18-Oct-2016 10:49:58.486 > INFO [main] org.apache.coyote.AbstractProtocol.init
Re: Quiero su respuesta urgente a mi propuesta de inmediato
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Victoria, On 10/19/16 4:28 PM, Sra Victoria M wrote: > Buen día, > > Soy la Sra. Victoria M. Cómo están usted y su familia hermosa y yo > soy mi mensaje cumple su éxito. Descubrí una gran cantidad de no > - residencial cuenta en nuestro banco y necesitan urgentemente que > me ayude a recibir este dinero en su cuenta de banco local en su > país. Si eres capaz y dispuesto a ayudar a conseguir estos fondos, > te daré más detalles tan pronto como recibo su respuesta positiva a > esta oportunidad. Quiero su respuesta urgente a mi propuesta de > inmediato, por lo que te puedo dar más detalles. Ponerse en > contacto con mí a través de mi dirección de correo electrónico > personal o mi oficina dirección de correo electrónico - > financiera_empresa...@hotmail.com > > Saludos cordiales, Victoria M. I'm in. Where do I sign? - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYCCiaAAoJEBzwKT+lPKRY4EoQAKTwAu7Bn0gsqOujZ2nfIMT5 yqg68r0gPDqsFwi0RU9rW3n8BU7ZmaAaDizsmZsK3QGWCybkfaqXn4Gl9BRLISxg G2RXpaeMeEs85O4ePl4n2bkKXKTqn2EpAI+b9Hp6BYGk2JIQ1e5rvLuCvB+K9BXb +nV3YjxnuCbqhfBmobwKdGhvtR4FPwYAR/doRopRTRFiAQeE1ngk/+7xACF1Jc62 HT0F4lRtI9ML9Gs2d5ZBI/swanTN2oWkyZFtO/jZJpUp0gKL3HMBkhcY2/Xt6MVI F2yxmLklLgAGts556q0/G18g2244eiL4tp4kyPAoPRv2Bz9bb5LtCBrx3H97jSUL 0a6zr3tD0KWlqCaFPtIl3y0AAe+FH68WnGJX4LBBuqsOHTjKs65DlibvcWdfw2Uw dvBjIb9hFKo2C76BDmpopgwW+CpQ76p5dgBKMQSmhMJWhVpXEorinUq6+fHi0oVN 5aKV2LqgC6yk0TO1qhqZM9ScLBVLv8MI45reon3NWDHjXZWP6zFzfsnFH5uqxZfl hlhOin32L/C1yU2pjWgnUnl/trfYg2ChU0rUa2R1wyHpUnaS6iHU4SAO+RtNi+Ts uuIepw0j0LNRNXSXRF8p30vHNDrdwvcPqtsV5IPP7rapXAcDbFJmiF7OJNvP3Rvm b/d2Px9z8IHSkmmfKRpG =7WZU -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 7 and JSR-356
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Kyle, On 10/19/16 4:21 PM, Edwards, Kyle wrote: > I'm attempting to deploy a JSR-356 (WebSocket) application to a > Tomcat server. The application works beautifully on my local > IntelliJ/Tomcat 7.0.52 environment, but when I deploy it to the > staging server, the @ServerEndpoint classes don't get detected by > Tomcat, and attempting to connect to them gets me a 404. My > development OS is Windows 7, the server OS is Ubuntu 14.04, and in > both cases, Tomcat is at version 7.0.52 running on Java 1.8. Thank > you in advance. Have you read-through this document? http://tomcat.apache.org/tomcat-7.0-doc/web-socket-howto.html#Tomcat_Web Socket_specific_configuration - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYCCfzAAoJEBzwKT+lPKRYincP/RtGSS5fqoe04eVq9pWSlWRY QvUcLrmRD/ZxRIKDcDmy7UBgBFxf1W/nzwEPdevEP9GCEnleZqmqb+fBZvLHPrJm PE3ENc2DCHYBzeiN/TOllNUW3BKoiY4ic952RaLtKnh7hLdsJOmXxL1A9S4p9ezJ MRCrwPdLSB/e4cPmmMlyhGUq5mLgV0+Ov9Lwt/CV5i5WrAHBwzePsZFKvzvvK4Q8 9fOXsOhEogRAzv0BmZd0AIIxa/NDQtFFnvCkEX8kZxkEVhKgEAKqzyL+K/RkG5Ox y4vofsmkqko2L7EyKD07KsFV/yrFwuhyQIb5MnjX7l4Ic8q9cqQRl2MyNY8mYWoO 1GYgdjo/Gf1YVdhy5PPYe/oTWG/85ib98wIaRIu5MhTbxo3jMOBtQJLW1n6+p+tH pwlU9eTqHQoEy97oFDJa1UcVKQs1QjdUSddE0bkgr8Tlv1IdBQ99gu2t31HgZVL/ 6ra3vEZlXrWt8FdQoV0Xs8KV5aQWp/+G2qvYoeXLWan6pEBPpxVmjIfvQdslB2QE XkiEea9OazS6aY6zsozaTWDljWaEw8LFPDWcdNhA8rk4m6vA6ZyWr1nX0+o0+bGf k6AoZRG7FcY8vu3QdP2tXIvu8ZxZDpo4NNGAE5HpnVqebpL/Cxt7LCaZcfxEdUs1 JFnMseUfEO1rvCjGAhmj =4FPX -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Apache mod_jk connector question about alias
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Marc, On 10/18/16 7:59 PM, Marc Chamberlin wrote: > On 10/17/2016 10:36 AM, Rainer Jung wrote: >> >> Alias maps URIs to local file system directories. JkMount maps >> URIs to remote back end requests. >> >> You can not change JkMount forwarding using Alias (except that if >> you have a comflict between Alias and JkMount only one of them >> wins). >> >> As far as I understand you are not really trying to map requests >> to the local web server file system, but instead want to forward >> to a Tomcat back end but change the URI path which is used when >> accessing Apache to something else being used to acces Tomcat. >> E.g. the URI /jsp-examples/something gets used when accessing >> Apache and mod_jk should send this request as >> /examples/jsp/something to the Tomcat back end. >> >> If you really need to change URIs, then often mod_proxy is much >> easier to set up, because it has specific directives for this >> (ProxyPass etc.). >> >> With mod_jk you would first need to use mod_rewrite RewriteRules >> to change the URI, and then JkMount to forward them. More details >> can be found at >> >> http://tomcat.apache.org/connectors-doc/common_howto/proxy.html#URL%2 0Rewriting >> >> >> >> The rest of this docs page might be useful as well. >> >> Regards, >> >> Rainer >> > Thanks a million Rainer, you got me over that hump! I have it > working now but have another question - When the response is > generated for a request, that used the alias in the URL, is there a > way to keep the client browser from displaying what the alias got > mapped to? > > So for example, if I use the alias in the URL - > http://www.mydomain.com/jsp-examples that I send to the Apache > server, and it in turn forwards that request to Tomcat as > http://www.mydomain.com/examples/jsp, I would prefer that the > response, sent back to the user, contains the original, aliased or > unaliased, version of the URL that he/she typed, and not just the > resolved version. As it stands I am always getting the response URL > of http://www.mydomain.com/examples/jsp displayed in the client > browser. > > What follows is my current version of the config file that I am > using for the jsp-examples. Seems to be working mostly OK, so > hopefully I am on the right track. FYI - I intend to include these > config files in various virtual hosts configurations each of which > have their own document root, hence the reason for the Alias > commands at the beginning of this config file. > > Thanks again in advance for any and all offers of help, thoughts, > and replies... Your best bet is to name the context in Tomcat to be whatever you really want the URL path to be. This will remove all kinds of problems you are likely to see in the future because of your decision to try to rewrite URLs. I never understand why people would rather spend a great deal of time configuring around the fact that this simple command will get everything working without any other issues: $ mv webapps/name-you-have webapps/name-you-want - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYCAivAAoJEBzwKT+lPKRYANAP/Rh2kvvCHDkVam0HOPky9az3 J9KfYb8JVw/G65iNbyYH+PYBpetYragZAKXm8TqID3H5o95yGCFU4A0TduoqVA2R hqmkM6vXbLclsENL44lJDPiYR7EhO8CwoDe764YzXvB7OMzGSwlNG4jI6SmBHxNO SdvFE8G6bYAGj5zqA+hATMNHv/VhY2esgHbx4rV46hmDouh23yyUVZiu6LEFg0LQ ThDgZzhvURRrb9xv4J78Ml0PMcD/v3F7cYJvlZwU2boLoD9c8p+nTgX+7tN4TZ9d fYsOAuLLWfxQUj/WddN9JjosdkEmf8bdXivBH5JCe5RYeSO1BgVqhxi4PEIp5tUs zTDN5Xb7g+9pnz8Lo5bDYwzNU+BYqtOSI+HdKC8x2Pu+rGGde3q040QEIJIPInaD Ef0Fr8OInhC4z3MnI3dtS8iB6q8k5wwAk9l+2Nt3Up6oAlPUG/jT3xY66oFnr7wS Q1w/M6uwRrmeU/7jjmIOfI+pcgYhOkj2+iRbyBkXvcOazmHDJz3mMx2wdEHSqTE6 5VHW5zqcgOZCTasXQ648KWW/0ajsQvAaU5rMjqJdTHrlpHlWeD2cyPxE1MeOxBq/ PBkuA2rCTwew9P8yeFyiInJtf5l17jbB+IlpaNzEr/ukDob+2BhqmKdUWlCACLp7 iZiAhqne7jaNJEwZL0zp =z2Vs -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: X509Factory.getFromCache
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 10/18/16 4:19 PM, Mark Thomas wrote: > On 18/10/2016 19:43, Rallavagu wrote: >> Tomcat 7.0.70, JDK 1.7.0_80 $java -version java version >> "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) >> Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) >> >> There are many threads BLOCKED as below and due to this these >> threads are very slow. > > That is an outgoing TLS connection and essentially nothing to do > with Tomcat. +1 >> Anybody else experienced this? Am I hitting following JDK bug? >> >> https://bugs.openjdk.java.net/browse/JDK-6432000 > > Looks possible. Definitely possible. However, my guess is that whatever com.dice.api.util.service.DiceHTTPClient is is re-initializing the SSLSocketFactory for every request. If you have control over the code that is calling DiceHTTPClient.getGetDeleteResponse, you might want to see if you can create an SSLSocketFactory a single time and then re-use it for all your outgoing connection (or as many as are appropriate -- you may need a different trust store for each remote endpoint for example). - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYCAl7AAoJEBzwKT+lPKRY150QALwoTDIYdHf1AlLRb8+Tx+N9 Gnu6WVVpvepdsppiPoTyP/s9SBCTQasO6AqzE2peHo7i9dTe2VeaIAgaPVCq6cO1 yeCMVAQ865cVzkThw4HQRwXJF6mcDOVatUtPtS8xm0HXUwjVZT/9COM5aF/BXMT4 9I5N2JSj571tuGriKqTq7Lgm1/DHQLXQENhFiuYhweiYgnkOT287dJcyQiBNAwGM yawUWBCQ2bbg46eXrj5/eOy92rFTL42SkJn+FHHQCESFxQ9ODY8wJN3EwRg449ZV 8nNrEXEmQ5qtokgFM5NEUvLMw6fj+kjLH/SUenyICNkIWph67w1RkHvDiUxlxLj7 SLvJ7NYl9ep0gYxO/aD+GQUKT0TmhjbTzcjKuENquHf0x12q1fvDCS0lO2YwhjOF R8/89ZcNl1h0j+FlMDWpcSuLGtFOI6NK1xfdl5XW3uXRQEEbBZDHWOX5esBcxOM2 jfHJ1Ge4Cug+vRLnTAYD0b1UTUN/h5ySR6Bv63GTro645B9Flj4dRx2XHR5REHRB ZIRPtBfQlkQ77gEEfZrbqLvIbgYpyjlwSZ58j2GYy0qGpmleunhExUoGzSBDQpBE PoHHNa+lzHVGKqLaACjIc9rnZle/4FhY2VWEsmgue78eJuNSK6URzZ16Q+aFD5ET N3h561PCVQSqeEb3H5pN =m4/h -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 7 and JSR-356
Hi all, I'm attempting to deploy a JSR-356 (WebSocket) application to a Tomcat server. The application works beautifully on my local IntelliJ/Tomcat 7.0.52 environment, but when I deploy it to the staging server, the @ServerEndpoint classes don't get detected by Tomcat, and attempting to connect to them gets me a 404. My development OS is Windows 7, the server OS is Ubuntu 14.04, and in both cases, Tomcat is at version 7.0.52 running on Java 1.8. Thank you in advance. Kyle - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat8 ClassCastException
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Musafir, On 10/17/16 5:59 PM, musafir wrote: > Hi Apache Team, > > Got 2 tomcat hosting same web application. Tomcats are installed > on dedicated centos(6.8) VMs. Everything was working fine in > tomcat7 till upgrade to tomcat8(8.0.38). > > Now on one server, i am getting below error.. > java.lang.ClassCastException: java.lang.String cannot be cast to > java.lang.Integer > > e.g code iFacType = > (Integer)userprofilesettings.get("facilityType"); > > Can you guys pls help understand a) why it happens only on one > server . is it something to do non deterministic loader as reported > in https://bz.apache.org/bugzilla/show_bug.cgi?id=57129 b) Since > its happening only on one server. is there any quick fix i can > use..fyi,if i downgrade to tomcat 7 on VM, application works > fine. That code is nowhere in Tomcat. The problem is with your application. - -chris -BEGIN PGP SIGNATURE- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJYB9skAAoJEBzwKT+lPKRYfOgP/R7kk+mvuHvGFJjQQUHhSf3y 9FwLOF+g8ZjZRX3bYkpn2tn+vHzDdE9oAvW6LMLT2drphHlrcLKx/w932vqlMgWN 9BDF4H2cKQcdHTrs54cykT7n74bc8Dxd025PuXaJnelpmBMLbRnO55sPPK2DC1q+ KAb7XRGpopPEp9dcMMqSjKKv0s7p2+Tzn7YsM3SqD0GPg5WX8NaVTa/ByKDCQZ3W zydht4eDaIUnMkHE0sV2q9a3hqOgj6rj6YHIeCIrtqKBIm86siJGmiPafD68Ghxi 2ELoTY58/DmsiqYIJW872XVXjWzJNdbvHWIFLVHUr04a6qHBKooj7AAYTKcgi8HQ g8VpHB3Bgzel3deC8WMzFeZ6JbrTJQBj9ofGue/wZ88sjBkVxP4QCgmVQndTbzGD 2TqD7OYB0R/L+0ZAo/xqzXxZXZLthLEdhGiL6n+qQ8FVyzOpPJ1wNDdAl6qfAD/8 AlYZBVVA9ozZgcbZCwnZpD6O4IViwbtAziJmw2+6SFtDu6fcOAKn4UWasfBrRFlv NIuvyMNjFONRmy2+gzQfeOwDYh/4Ewtt9eMCC0JxwEy709j9psghFSktJa4cX1T0 lINUpQjtDn68dWLPKwhGjGJbCUnfGhvv6kdAea7GFcap8XD2jfKEj0eL8AOeFq7r KSZLxS9Jd3ZilpneQBUB =wII0 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat 7 and JSR-356
I think I figured it out. It looks like this version of Tomcat in Ubuntu doesn't ship with the WebSocket implementation, as per this ticket: https://bugs.launchpad.net/ubuntu/+source/tomcat7/+bug/1326687 I will upgrade Tomcat and come back if I have any more problems. Kyle -Original Message- From: Edwards, Kyle [mailto:kedwa...@integraoptics.com] Sent: Wednesday, October 19, 2016 16:25 To: users@tomcat.apache.org Subject: Tomcat 7 and JSR-356 Hi all, I'm attempting to deploy a JSR-356 (WebSocket) application to a Tomcat server. The application works beautifully on my local IntelliJ/Tomcat 7.0.52 environment, but when I deploy it to the staging server, the @ServerEndpoint classes don't get detected by Tomcat, and attempting to connect to them gets me a 404. My development OS is Windows 7, the server OS is Ubuntu 14.04, and in both cases, Tomcat is at version 7.0.52 running on Java 1.8. Thank you in advance. Kyle - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Quiero su respuesta urgente a mi propuesta de inmediato
Buen día, Soy la Sra. Victoria M. Cómo están usted y su familia hermosa y yo soy mi mensaje cumple su éxito. Descubrí una gran cantidad de no - residencial cuenta en nuestro banco y necesitan urgentemente que me ayude a recibir este dinero en su cuenta de banco local en su país. Si eres capaz y dispuesto a ayudar a conseguir estos fondos, te daré más detalles tan pronto como recibo su respuesta positiva a esta oportunidad. Quiero su respuesta urgente a mi propuesta de inmediato, por lo que te puedo dar más detalles. Ponerse en contacto con mí a través de mi dirección de correo electrónico personal o mi oficina dirección de correo electrónico - financiera_empresa...@hotmail.com Saludos cordiales, Victoria M. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat 7 and JSR-356
Hi all, I'm attempting to deploy a JSR-356 (WebSocket) application to a Tomcat server. The application works beautifully on my local IntelliJ/Tomcat 7.0.52 environment, but when I deploy it to the staging server, the @ServerEndpoint classes don't get detected by Tomcat, and attempting to connect to them gets me a 404. My development OS is Windows 7, the server OS is Ubuntu 14.04, and in both cases, Tomcat is at version 7.0.52 running on Java 1.8. Thank you in advance. Kyle - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 8, AJP 1.3 UTF-8/ISO-8859-1 conversion problem
On Tue, Oct 18, 2016 at 4:45 PM, Mark Juszczec wrote: > > > On Tue, Oct 18, 2016 at 2:58 PM, Mark Juszczec > wrote: >> >> >> Some questions (if these are not relevant, please disregard): >> >> I'm loading a whole bunch of modules. Could some of them be incompatible? >> >> DocumentRoot refers to a directory that does not exist. Is that a >> problem? >> >> What does AddLanguage do? >> >> Is AddDefaultCharset redundant? >> >> Are +ForwardKeySize and -ForwardDirectories somehow disabling what >> +ForwardURIEscaped does? >> >> I have verified the data coming out of Shibboleth is what we expect. >> > > I think I've found where the byte data is coming in. > > AjpAprProcessor.java's method: > > protected boolean read(byte[] buf, int pos, int n, boolean block) throws > IOException > > This ultimately gives me a great big buffer of bytes. Spring Tool Suite > shows me the relevant ones: > > 74 79 -61 -117 76 > > I think I have found where these bytes are interpreted improperly and my problems start. In AbstractAjpProcessor.java there is a method named protected void prepareRequest() // Decode extra attributes boolean secret = false; byte attributeCode; while ((attributeCode = requestHeaderMessage.getByte()) != Constants.SC_A_ARE_DONE) { switch (attributeCode) { case Constants.SC_A_REQ_ATTRIBUTE : requestHeaderMessage.getBytes(tmpMB); String n = tmpMB.toString(); requestHeaderMessage.getBytes(tmpMB); String v = tmpMB.toString(); I have debugged and gotten to the point where n="FirstName" - the bit of data giving me fits After requestHeaderMessage.getBytes(tmpMB); (the one after String n = ) tmpMB shows "JOËL" tmpMB is a MessageByte. It contains a ByteChunk.which is the array of bytes I posted yesterday. The ByteChunk has a start=1049 and an end=1054. That is bytes 1049: 5 1050: 74J 1051: 79O 1052: -610xFC3 1053: -117 0xF8B 1054: 76 L The ByteChunk has a charset and it is set to ISO-8859-1 So, that explains - at least to me - where things go wrong. Now, the question is why. Looking at ByteChunk.java, I see it has the following: /** Default encoding used to convert to strings. It should be UTF8, as most standards seem to converge, but the servlet API requires 8859_1, and this object is used mostly for servlets. */ public static final Charset DEFAULT_CHARSET = StandardCharsets.ISO_8859_1; private Charset charset; public void setCharset(Charset charset) { this.charset = charset; } public Charset getCharset() { if (charset == null) { charset = DEFAULT_CHARSET; } return charset; } I set a breakpoint on ByteChunk.setCharset(Charset) and it is never executed. ByteChunk.getCharset() is called from MessageBytes.toBytes() which is called from AjpMessage.appendBytes(MessageBytes) So, I think this explains why my data is being interpreted incorrectly. Now, the question becomes why isn't this line in server.xml: enough to cause ByteChunk.charset to be set to "UTF-8" Does anyone have any thoughts as to how to proceed?
ApacheCon is now less than a month away!
Dear Apache Enthusiast, ApacheCon Sevilla is now less than a month out, and we need your help getting the word out. Please tell your colleagues, your friends, and members of related technical communities, about this event. Rates go up November 3rd, so register today! ApacheCon, and Apache Big Data, are the official gatherings of the Apache Software Foundation, and one of the best places in the world to meet other members of your project community, gain deeper knowledge about your favorite Apache projects, learn about the ASF. Your project doesn't live in a vacuum - it's part of a larger family of projects that have a shared set of values, as well as a shared governance model. And many of our project have an overlap in developers, in communities, and in subject matter, making ApacheCon a great place for cross-pollination of ideas and of communities. Some highlights of these events will be: * Many of our board members and project chairs will be present * The lightning talks are a great place to hear, and give, short presentations about what you and other members of the community are working on * The key signing gets you linked into the web of trust, and better able to verify our software releases * Evening receptions and parties where you can meet community members in a less formal setting * The State of the Feather, where you can learn what the ASF has done in the last year, and what's coming next year * BarCampApache, an informal unconference-style event, is another venue for discussing your projects at the ASF We have a great schedule lined up, covering the wide range of ASF projects, including: * CI and CD at Scale: Scaling Jenkins with Docker and Apache Mesos - Carlos Sanchez * Inner sourcing 101 - Jim Jagielski * Java Memory Leaks in Modular Environments - Mark Thomas ApacheCon/Apache Big Data will be held in Sevilla, Spain, at the Melia Sevilla, November 14th through 18th. You can find out more at http://apachecon.com/ Other ways to stay up to date with ApacheCon are: * Follow us on Twitter at @apachecon * Join us on IRC, at #apachecon on the Freenode IRC network * Join the apachecon-discuss mailing list by sending email to apachecon-discuss-subscr...@apache.org * Or contact me directly at rbo...@apache.org with questions, comments, or to volunteer to help See you in Sevilla! -- Rich Bowen: VP, Conferences rbo...@apache.org http://apachecon.com/ @apachecon - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Error 500, restoring backup, GeoNode 2.4 to Geonode 2.4.1
Users Hello, my problem is related to an error in Tomcat 7 to update a GeoNode gis system. Thanks for your support. Restarting the service tomcat7 by ssh, the system does not indicate an error, but tomcat 7 does not start. 2.4 GeoNode proceeding to backup. Next restoring in GeoNode 2.4.1 *steps for Backup files (GeoNode 2.4)* Stop service sudo service apache2 stop sudo service tomcat7 stop sudo service postgresql stop sudo -u postgres -i pg_dump -c -Fc geonode > geonodedb.backup tar -cvzf geonodeConfigBackup.tgz /etc/geonode tar -zcvf geonodeVarDataBackup.tgz /var/lib/geoserver/geonode-data/ tar -zcvf geonodeUsrDataBackup.tgz /usr/share/geoserver/data/ tar -zcvf geonodeWWWDataBackup.tgz /var/www/geonode/ tar -cvzf geonodei18nBackup.tgz /usr/local/lib/python2.7/dist- packages/geonode/locale/ tar -cvzf geonodePyDjangoBackup.tgz /usr/local/lib/python2.7/dist- packages/geonode/ tar -cvzf geonodePyDjangoEggBackup.tgz /usr/local/lib/python2.7/dist- packages/GeoNode-2.4.1.egg-info/ *steps, restoring backup (GeoNode 2.4.1)* sudo service apache2 stop sudo service tomcat7 stop sudo service postgresql stop sudo tar -C / -xvzf geonodeConfigBackup.tgz sudo tar -C / -xvzf geonodei18nBackup.tgz sudo tar -C / -xvzf geonodePyDjangoEggBackup.tgz sudo tar -C / -xvzf geonodeVarDataBackup.tgz sudo tar -C / -xvzf geonodePyDjangoBackup.tgz sudo tar -C / -xvzf geonodeUsrDataBackup.tgz sudo tar -C / -xvzf geonodeWWWDataBackup.tgz sudo service postgresql start sudo -u postgres -i psql -c 'drop database geonode;' sudo -u postgres -i psql -c 'create database geonode;' sudo -u postgres -i pg_restore -Fc -d geonode /path/to/geonodedb.backup sudo service apache2 stop sudo service tomcat7 stop Did not receive errors during the restore. But I have server 500 error. Check the access.log file, folder apache2 172.125.121.52 - - [18/Oct/2016:15:19:55 +] "GET / HTTP/1.1" 200 5234 "-" "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/geonode/css/ext-compatibility.css?v=2.4.1 HTTP/1.1" 200 678 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/lib/css/assets.min.css?v=2.4.1 HTTP/1.1" 200 27247 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/geonode/css/base.css?v=2.4.1 HTTP/1.1" 200 3113 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/geonode/js/utils/utils.js?v=2.4.1 HTTP/1.1" 200 1292 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/autocomplete_light/django_admin.js HTTP/1.1" 200 832 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/autocomplete_light/autocomplete.js HTTP/1.1" 200 8094 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/autocomplete_light/addanother.js HTTP/1.1" 200 1525 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/geonode/js/base/base.js?v=2.4.1 HTTP/1.1" 200 491 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/lib/js/assets.min.js?v=2.4.1 HTTP/1.1" 200 259982 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/autocomplete_light/widget.js HTTP/1.1" 200 4674 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/autocomplete_light/remote.js HTTP/1.1" 200 983 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/geonode/fonts/lato_font.css HTTP/1.1" 200 501 " http://172.125.122.68/static/geonode/css/base.css?v=2.4.1"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/autocomplete_light/style.css HTTP/1.1" 200 1610 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/autocomplete_light/text_widget.js HTTP/1.1" 200 2991 " http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/geonode/css/font-awesome.css HTTP/1.1" 200 6744 " http://172.125.122.68/static/geonode/css/base.css?v=2.4.1"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /lang.js HTTP/1.1" 200 10296 "http://172.125.122.68/"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/geonode/img/logo.png HTTP/1.1" 200 3235 " http://172.125.122.68/static/geonode/css/base.css?v=2.4.1"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "GET /static/geonode/fonts/lato_regular.ttf HTTP/1.1" 200 120444 " http://172.125.122.68/static/geonode/fonts/lato_font.css"; "this is a test ua " 172.125.121.52 - - [18/Oct/2016:15:19:57 +] "