Re: Tomcat virtual host shows blank page
On Thu, Jul 24, 2014 at 6:25 PM, Arya Farzan wrote: > I am using Tomcat by itself. It is pretty much a default installation using > apt-get on Debian. Error #1 - dump that and install a real Tomcat. > I changed the port from 8080 to port 80 Error #2 - don't run Tomcat as root; use jsvc, a proxy server, iptables, whatever to run as a non-privileged user. Not the cause of your immediate problem, but don't do it. :-) You should also supply the Java version you're using after you fix Error #1 (if you have further questions). -- Hassan Schroeder hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat virtual host shows blank page
Thank you. I changed it to your example and now it's working On Thu, Jul 24, 2014 at 8:35 PM, Igal @ getRailo.org wrote: > I prefer to use Context/docBase instead of Host/appBase > > try this: > > >mysite.com > > > > > > > > On 7/24/2014 6:28 PM, Arya Farzan wrote: > >> I just tried this with IE and it says "The webpage cannot be found" >> >> in google chrome source is 100% blank >> >> >> On Thu, Jul 24, 2014 at 8:20 PM, Igal Sapir wrote: >> >> Check with view source on the blank page and see if you get anything >>> there >>> On Jul 24, 2014 6:16 PM, "Jordan Michaels" wrote: >>> >>> Hi Arya, Are you using a web server like Apache in front of Tomcat, or are you hitting the Tomcat port directly? This will tell us if the problem is somewhere in your connector setup or not. Any clues in your catalina.out log file? Warm Regards, Jordan Michaels On 07/24/2014 06:03 PM, Arya Farzan wrote: Hello > > I also asked this on Stackoverflow but no one has commented or > answered. > > I've been trying to configure tomcat for multiple domains and > everything I >>> have tried was unsuccessful. > > I added this to /etc/tomcat7/server.xml > > unpackWARs="true" autoDeploy="true"> > mysite.com > > > and I created the folder /var/lib/tomcat7/webapps/mysite > > Whenever I go to my domain all I get is a blank page. What am I doing > wrong > here? I am running Debian 7 > > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org > -- > Igal Sapir > Railo Core Developer > http://getRailo.org/ > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Tomcat virtual host shows blank page
I prefer to use Context/docBase instead of Host/appBase try this: mysite.com On 7/24/2014 6:28 PM, Arya Farzan wrote: I just tried this with IE and it says "The webpage cannot be found" in google chrome source is 100% blank On Thu, Jul 24, 2014 at 8:20 PM, Igal Sapir wrote: Check with view source on the blank page and see if you get anything there On Jul 24, 2014 6:16 PM, "Jordan Michaels" wrote: Hi Arya, Are you using a web server like Apache in front of Tomcat, or are you hitting the Tomcat port directly? This will tell us if the problem is somewhere in your connector setup or not. Any clues in your catalina.out log file? Warm Regards, Jordan Michaels On 07/24/2014 06:03 PM, Arya Farzan wrote: Hello I also asked this on Stackoverflow but no one has commented or answered. I've been trying to configure tomcat for multiple domains and everything I have tried was unsuccessful. I added this to /etc/tomcat7/server.xml mysite.com and I created the folder /var/lib/tomcat7/webapps/mysite Whenever I go to my domain all I get is a blank page. What am I doing wrong here? I am running Debian 7 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Igal Sapir Railo Core Developer http://getRailo.org/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat virtual host shows blank page
I just tried this with IE and it says "The webpage cannot be found" in google chrome source is 100% blank On Thu, Jul 24, 2014 at 8:20 PM, Igal Sapir wrote: > Check with view source on the blank page and see if you get anything there > On Jul 24, 2014 6:16 PM, "Jordan Michaels" wrote: > > > Hi Arya, > > > > Are you using a web server like Apache in front of Tomcat, or are you > > hitting the Tomcat port directly? This will tell us if the problem is > > somewhere in your connector setup or not. > > > > Any clues in your catalina.out log file? > > > > Warm Regards, > > Jordan Michaels > > > > On 07/24/2014 06:03 PM, Arya Farzan wrote: > > > >> Hello > >> > >> I also asked this on Stackoverflow but no one has commented or answered. > >> > >> I've been trying to configure tomcat for multiple domains and > everything I > >> have tried was unsuccessful. > >> > >> I added this to /etc/tomcat7/server.xml > >> > >> >> unpackWARs="true" autoDeploy="true"> > >>mysite.com > >> > >> > >> and I created the folder /var/lib/tomcat7/webapps/mysite > >> > >> Whenever I go to my domain all I get is a blank page. What am I doing > >> wrong > >> here? I am running Debian 7 > >> > >> > > - > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > >
Re: Tomcat virtual host shows blank page
Hi Jordan I am using Tomcat by itself. It is pretty much a default installation using apt-get on Debian. The only changes I made are: I changed the port from 8080 to port 80 And I changed AUTHBIND=no to AUTHBIND=yes On Thu, Jul 24, 2014 at 8:16 PM, Jordan Michaels wrote: > Hi Arya, > > Are you using a web server like Apache in front of Tomcat, or are you > hitting the Tomcat port directly? This will tell us if the problem is > somewhere in your connector setup or not. > > Any clues in your catalina.out log file? > > Warm Regards, > Jordan Michaels > > > On 07/24/2014 06:03 PM, Arya Farzan wrote: > >> Hello >> >> I also asked this on Stackoverflow but no one has commented or answered. >> >> I've been trying to configure tomcat for multiple domains and everything I >> have tried was unsuccessful. >> >> I added this to /etc/tomcat7/server.xml >> >> > unpackWARs="true" autoDeploy="true"> >>mysite.com >> >> >> and I created the folder /var/lib/tomcat7/webapps/mysite >> >> Whenever I go to my domain all I get is a blank page. What am I doing >> wrong >> here? I am running Debian 7 >> >> > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Tomcat virtual host shows blank page
Check with view source on the blank page and see if you get anything there On Jul 24, 2014 6:16 PM, "Jordan Michaels" wrote: > Hi Arya, > > Are you using a web server like Apache in front of Tomcat, or are you > hitting the Tomcat port directly? This will tell us if the problem is > somewhere in your connector setup or not. > > Any clues in your catalina.out log file? > > Warm Regards, > Jordan Michaels > > On 07/24/2014 06:03 PM, Arya Farzan wrote: > >> Hello >> >> I also asked this on Stackoverflow but no one has commented or answered. >> >> I've been trying to configure tomcat for multiple domains and everything I >> have tried was unsuccessful. >> >> I added this to /etc/tomcat7/server.xml >> >> > unpackWARs="true" autoDeploy="true"> >>mysite.com >> >> >> and I created the folder /var/lib/tomcat7/webapps/mysite >> >> Whenever I go to my domain all I get is a blank page. What am I doing >> wrong >> here? I am running Debian 7 >> >> > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Tomcat virtual host shows blank page
Hi Arya, Are you using a web server like Apache in front of Tomcat, or are you hitting the Tomcat port directly? This will tell us if the problem is somewhere in your connector setup or not. Any clues in your catalina.out log file? Warm Regards, Jordan Michaels On 07/24/2014 06:03 PM, Arya Farzan wrote: Hello I also asked this on Stackoverflow but no one has commented or answered. I've been trying to configure tomcat for multiple domains and everything I have tried was unsuccessful. I added this to /etc/tomcat7/server.xml mysite.com and I created the folder /var/lib/tomcat7/webapps/mysite Whenever I go to my domain all I get is a blank page. What am I doing wrong here? I am running Debian 7 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat virtual host shows blank page
Hello I also asked this on Stackoverflow but no one has commented or answered. I've been trying to configure tomcat for multiple domains and everything I have tried was unsuccessful. I added this to /etc/tomcat7/server.xml mysite.com and I created the folder /var/lib/tomcat7/webapps/mysite Whenever I go to my domain all I get is a blank page. What am I doing wrong here? I am running Debian 7
Re: TC7 and SSL Questions
John, On 24.7.2014 21:11, John Smith wrote: 1. Can I specify /admin/* as a security constraint url pattern so that only that directory runs under SSL? Yes, you can. 2. The NIO connector is accepted for JSSE, since I'm using it already, is there any point in not using it as my SSL connector? If /admin has low traffic, then I would say, there is no need to use anything else. For high traffic TLS/SSL applications you may want to do some performance measurements of different Tomcat connectors, simulating your traffic patterns. 3. Any known issues with routing 443 to 8443 in Iptables? I recommend using JSVC instead of iptables redirect. I had issues with redirect when used with virtual hosts. IPv6 (ip6tables) doesn't support redirect, either. 4. The admin tools share underlying classes with the rest of the web application, which is why it makes sense to have it just as a subdirectory in the same webapp. But would I be better off migrating the admin tools to their own webapp for the purposes of SSL? Yes, I think so. From the security standpoint, that is way better. It will be much easier to apply IP address filtering, move it to another port / server, to isolate admin and user privileges, and so on. -Ognjen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
TC7 and SSL Questions
TC 7.0.54 / JDK 1.7.0_60 / RHEL 6 My webapp is the only one on my TC install. It's in webapps/ROOT. Iptables routes 80 to 8080 and I'm using the NIO connector. There are two physical servers with that same webapp, using session replication. Everything works great. There's a subdirectory "/admin" in the webapp that has some admin tools that we've been using behind our firewall and under BASIC authentication. I want to put just the /admin directory under SSL and have a user/hashed-pass in the database do the login and authentication instead of having them in tomcat-users.xml. Questions: 1. Can I specify /admin/* as a security constraint url pattern so that only that directory runs under SSL? 2. The NIO connector is accepted for JSSE, since I'm using it already, is there any point in not using it as my SSL connector? 3. Any known issues with routing 443 to 8443 in Iptables? 4. The admin tools share underlying classes with the rest of the web application, which is why it makes sense to have it just as a subdirectory in the same webapp. But would I be better off migrating the admin tools to their own webapp for the purposes of SSL? Apologies if I've missed any of this in the docs. Any additional info/advice appreciated. Thanks in Advance, John
Re: Help understanding Session System Properties
Thanks for the replies. My session timeout is 15 minutes. I have thread that may set a session attribute, but it run only once after user login and take approximately 1 minute to complete. My applications are JSF based, and most of managed beans are view scoped. The majority of requests is completed is less than 1 minute. 2014-07-22 17:44 GMT-03:00 Christopher Schultz : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Felipe, > > On 7/22/14, 10:36 AM, Felipe Jaekel wrote: > > I have a simple authentication logic in my applications, where I > > store the current user in the session and check with a filter if > > the current user value is not null. > > > > Eventually I see some null pointer exceptions in my Tomcat 7.0.47 > > that happened in JSF managed beans because the current user value > > was null. > > > > The problem is that the stackTrace shows that login filter was > > executed correctly, so I guess the session timed out right after > > the getAttribute() call in the filter, which would explain why > > there still was value in the filter but not in the managed bean. > > Is your session timeout so low that a session could time out during > the execution of a single request? > > > After some research I found this: > > http://tomcat.apache.org/tomcat-7.0-doc/config/systemprops.html#Sessions > > > > Would org.apache.catalina.session.StandardSession.ACTIVITY_CHECK > > solve this problem? > > If the problem is that your requests are taking longer than the > session timeout (default: 30 minutes), then yes, this will help. > > > What about > > org.apache.catalina.core.StandardHostValve.ACCESS_SESSION > > Perhaps. Do you have lots of requests whose code doesn't actually call > request.getSession()? > > > and > > org.apache.catalina.session.StandardSession.LAST_ACCESS_AT_START? > > Perhaps, depending on whether you really have requests that run so > long that the session can time-out during their execution. > > What is your session timeout value (in minutes)? How long does a > typical request/response transaction take? How often do they occur? > > - -chris > -BEGIN PGP SIGNATURE- > Version: GnuPG v1 > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIcBAEBCAAGBQJTzs0qAAoJEBzwKT+lPKRYyroQAIP0DikrED8AWbu0WuB7pDnv > icK82YnEHVEZwHWeiKl03PV7vZsTkPzG6v+aDP+Yb+DaCuxlCpHN3hGvyT2a8x4x > oDe82O47B/6cMTzCv/JubK06EWYJOfOGtXEYLRHKSye82+v2wHrkwVdFe3JINu0N > ka7CKHFuSPIsAN0HPxrvI0lWEOCJeBffLrb8+mFjixLmQHaA09NEthT9Xr6ohWrq > ZuugHFAo/D+2zW6UGmuYuwU+BkT6HQ13ZuBkyfAl/N/ZylovIde53fxKgWrSMSa3 > ao/9ZMIr9Ig64U9cUyB62RFiJ/kg2piJmq3TCL2UC9zzEmAc0/SpbazO/yAUID8y > +txrwpOfzxYIMZy0iH7aW5FH7gqdSpv/LKbVumPZlcVleBdr9J0AdBncNedoAw9Y > 3T6N2A4KiQDVHU2/f1NBmW+HOWu9r2a9mJN3rQrM+4Lf12NTFk3p6oyyZDkJuVNm > 8SPvZR90xws413TEAWt3IJTVoG8diUl873GZzHzj4HdvE39mp5gAzN+Nnhi2Meqs > ro2Rf6/qfdkEM/R0yvAJVFyeyFSjQvFpSphTvAzDxu1IIiJqQ/GvLKQ6eVgOLOM/ > vsPrksjTJ93KPx4iWHjSm6PgvyLc9R5RZVn1MLcROKpidNLwxJEp6wDO27cYj+GL > 8NOX+YMukTJnFebPtrIW > =cqiq > -END PGP SIGNATURE- > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
RE: Tomcat JDBC Connection Pool initialization question
That worked for H2. For Oracle, however, I had to get more cleaver: Here is the string that worked: BEGIN EXECUTE IMMEDIATE 'ALTER SESSION SET STATISTICS_LEVEL = ALL'; EXECUTE IMMEDIATE 'ALTER SESSION SET CURSOR_SHARING = EXACT'; DBMS_APPLICATION_INFO.SET_MODULE('ExampleCenter', NULL); EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_SORT = BINARY_CI'; EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_COMP = BINARY'; END; I haven't tried SQL Server, yet, but I don't think I have a requirement there. I don't really like the design of using the same method to run the connection initialization query (s/b queries) and the connection validation query in the same place. Also, I think the design should allow multiple DDL or DML statements be run the initialize the connection. -Original Message- From: Felix Schumacher [mailto:felix.schumac...@internetallee.de] Sent: Tuesday, July 22, 2014 11:07 PM To: Tomcat Users List Subject: Re: Tomcat JDBC Connection Pool initialization question On 23. Juli 2014 01:20:27 MESZ, Wes Clark wrote: >I want to initialized a new connection being added to the pool with >more than one SQL statement. I cannot see how to override the existing >methods to do this. Has anyone done this, or have a suggestion for me? Have you tried to separate them with a semicolon? Something like "SELECT 1; SELECT 2" Regards Felix - 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
Re: Unexpanded WAR and FileNotFoundException: META-INF/MANIFEST.MF
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Арсений, On 7/23/14, 10:43 AM, Арсений Зинченко wrote: > Hi, Chris. Thanks for replay. > > Biggest problem is that I'm not our application developer >.< Okay, well then tell the developer to fix it so it works in an unexpanded WAR file. If they don't know how to do that, send them here. - -chris > 2014-07-23 17:26 GMT+03:00 Christopher Schultz > > : > > Арсений, > > On 7/23/14, 10:14 AM, Арсений Зинченко wrote: We have Tomcat with: >>> autoDeploy="false" deployOnStartup="true" > While startup I got ERROR in log: 14-07-22 15:13:01,551+0100 > 289 INFO [com.***.listener.PropertiesConfigListener] (main:) Adapter is a log4j adapter ?org.slf4j.impl.Log4jLoggerAdapter 14-07-22 15:13:01,552+0100 > 290 ERROR [com.***.listener.PropertiesConfigListener] (main:) Exception getting codebase versionjava.io.FileNotFoundException: META-INF/MANIFEST.MF (No such file or directory) I understood, that PropertiesConfigListener can't find path to this file, but - it can't get MANIFEST.MF from inside WAR-file? Any tips - how it can be fixed? > > Your com.***.listener.PropertiesConfigListener needs to know how > to load files from inside WAR files if you don't want to expand the > WAR file. > > How does your code currently attempt to load the file? You are > probably using a FileInputStream or something like that, which > can't operate within a JAR/WAR file. > > -chris >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJT0QP0AAoJEBzwKT+lPKRYWlwP/iyEq+anmYEj/roFYYNV05ci yQPq8l7shC99Gx6bp2puw4puAHL1oU5gX1WyWx915Fqi5Eyj8yMQDNpQ2DfrYI8G ezeCaMhkyl2aHou0Tf1GJdoJT806ob3204Riw8TnagBltkJhIBhhcQF2TOz0aEQW K/LQ+CII5w2MLI5SqhxT2/SWdZogS4YXK9Jy+RB6jfkrXkv1/p4b0y4SPoFl/rcK JwRRsg+H4pcVM+fQMaWLse5pzqSFCc6ASLTfN4ERlxu/y2JhKAn3/hGG20HHTPs1 gFTzOnGch1jWBnm/XY9o1nmcxVLmpvgcCOKCSkJGNCLMZoPnR140x+7tQpcXgJEz irMbdSTQokqy5bFniOr1QBw74l9DGl2CIgReoGDCkXS34qxJ1SbPJXO+a2L0K/g/ Abl2m1S0wz0BEPM9IoZFPp98+g9v00CRo4YnaE1zzL25vF034/EkTHUpmfdOjsXf WOeYfTVdV10t31bQf2YRCz50QzxpZdQwVp5LLIa57QdW4UP7HVhXN5AXb/gF8kVp 2C18D9hXGmj/GLl08j9ZSomwyh3tr+hCFNDaINx+i1BzkCv13DBnsUdAvqXjNElW SSTqjKGv1dBAH/ct74qC15IlkmzqGFfIg9IyfWWXP4neqrasrevxsxh0jgtFhxn8 LWDZzi/ofi5IobCGnrIr =ipWB -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: css files served as application/x-pointplus with java8
Hi Christopher, On 10/07/14 16:45, Christopher Schultz wrote: In our case we have a filter for serving static content from modules (jars). Marmotta has a custom modules' architecture. - From the bug report: This is what I get $ curl -I http://localhost:8080/marmotta/core/public/style/blue/style.css HTTP/1.1 200 OK Server: Apache Marmotta/3.2.0 (build 0) Expires: Mon, 19 May 2014 15:55:53 GMT Content-Type: application/x-pointplus Content-Length: 6118 Date: Mon, 19 May 2014 14:55:53 GMT The "server" string indicates that something other than Tomcat is producing the response. This is likely to be a problem with Marmotta's configuration. Alvaro Graves says: the web.xml shows text/css for mapping. However ./apache-tomcat-7.0.39/webapps/marmotta/WEB-INF/lib/mime-util-2.1.3.jar contains both text/css and application/x-pointplus for mimetypes Well, MARMOTTA-499 has provide us the perfect excuse to move out from mime-utils. Now mimetypes are provide by Apache Tika, but the issue still remains. I'm fairly sure this has nothing to do with Tomcat. After some inquiries we have isolated the environmental circumstance that causes the issue. And it is not at the OS level (OSX), but with Java 8.x: https://issues.apache.org/jira/browse/MARMOTTA-499?focusedCommentId=14071564&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14071564 Jetty (which is used for the integration tests) correctly serves .css as text/css. That's why I initially discarded the issue was located in our static resource handling. Therefore, is it possible there is an issue with Tomcat (embedded via maven or not) and Java 8? Thanks in advance. Cheers, -- Sergio Fernández Partner Technology Manager Redlink GmbH m: +43 660 2747 925 e: sergio.fernan...@redlink.co w: http://redlink.co - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org