Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 90811 invoked from network); 8 Apr 2002 22:38:01 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 8 Apr 2002 22:38:01 -0000 Received: (qmail 17922 invoked by uid 97); 8 Apr 2002 22:37:41 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 17872 invoked by uid 97); 8 Apr 2002 22:37:40 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 17861 invoked from network); 8 Apr 2002 22:37:39 -0000 Subject: Re: Problem with Tomcat 4.0.*/mod_webapp.so/Apache-1.24 and virtual hosts To: "Tomcat Users List" X-Mailer: Lotus Notes Release 5.0.7 March 21, 2001 Message-ID: From: rsequeira@transentric.com Date: Mon, 8 Apr 2002 17:34:11 -0500 X-MIMETrack: Serialize by Router on TransSMTP01/Transentric(Release 5.0.6a |January 17, 2001) at 04/08/2002 05:27:35 PM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I mean only html files are being served. Sorry typo. RS rsequeira@transentric.com on 04/08/2002 05:29:05 PM Please respond to "Tomcat Users List" To: "Tomcat Users List" cc: Subject: Re: Problem with Tomcat 4.0.*/mod_webapp.so/Apache-1.24 and virtual hosts The strange part is that only html files aren't being served. Does Apache serve html files allright? Say http://localhost and the document root being something different for localhost than the documentroot for java.whalin.com RS Gregory Whalin on 04/08/2002 05:11:27 PM Please respond to "Tomcat Users List" To: Tomcat Users List cc: Subject: Re: Problem with Tomcat 4.0.*/mod_webapp.so/Apache-1.24 and virtual hosts OK, I checked. The redirect that is being sent is simply redirecting to the index.html file. If I try to go to .... http://java.whalin.com/examples/servlets/index.html directly, I do not even see a hit to Tomcat. At the same time, Apache does not bother to look in its docroot to see if the file exists there, and instead sends a 404. I actually created /examples/servlets/index.html under the Apache doc root and still the 404. Greg -- Gregory Whalin gwhalin@whalin.com On Mon, 8 Apr 2002 rsequeira@transentric.com wrote: > > Well your setup looks fine to me (except that the Apache DocumentRoot > doesn't point to the examples directory - but that's ok). Also your jsps > and servlets are working fine when accessed directly. numguess.jsp and > HelloWorldExample work fine when accessed directly. Do you have an > index.html file the jsp directory? Try putting an index.jsp in there and > see if that works. Rename the index.html to maybe index1.html. I just > happened to browse to you website and it seems that it's only the html > files that aren't being served. Try making the DocumentRoot in the virtual > host point to the examples folder. > Also mod_webapp isn't very stable. Sometimes you need to refresh the page a > couple of times (the data doesn't show up). Maybe you should download the > latest mod_webapp version. > > RS > > > > > > Gregory Whalin on 04/08/2002 04:11:56 PM > > Please respond to "Tomcat Users List" > > To: Tomcat Users List > cc: > > Subject: Re: Problem with Tomcat 4.0.*/mod_webapp.so/Apache-1.24 and > virtual hosts > > It worked fine when using standalone. It is not working through Apache > via WARP though. However, I can still run the servlets and jsps. I > simply can't access and .html files that exist under the webapp directory > ($CATALINA_HOME/webapps/examples/*.html for example). So, I can run this > with no problem ... > > http://java.whalin.com/examples/servlet/HelloWorldExample > > But, I can't access > > http://java.whalin.com/examples/servlets/ > > See my problem? For some reason, I get a 404 (generated by Apache) when I > try to load that page. And, I get 404 errors in my apache error log. Not > sure how WARP is supposed to deal with static content in the webapps dir > that I have deployed. > > Greg > > -- > Gregory Whalin > gwhalin@whalin.com > > On Mon, 8 Apr 2002 rsequeira@transentric.com wrote: > > > > > did you try accessing your examples directory using Tomcat standalone? > Does > > Tomcat serve the servlets and jsps? You might need to enable the > > HttpConnector for this. Once you know for sure that Tomcat serves the > > servlets and jsps on port 8080, then go ahead and put a webserver in > front > > of Tomcat. > > Just my 2 cents. > > > > RS > > > > > > > > > > > > Gregory Whalin on 04/08/2002 11:15:11 AM > > > > Please respond to "Tomcat Users List" > > > > To: tomcat-user@jakarta.apache.org > > cc: > > > > Subject: Problem with Tomcat 4.0.*/mod_webapp.so/Apache-1.24 and virtual > > hosts > > > > I am having a small issue with setup. I am connecting fine to the > > examples webapp, but, I can't seem to view any .html files that are a > part > > of the app. Apache is looging them as a 404, but they are still not > found > > even if I put them in the apache doc root. So it seems that Tomcat does > > not know how to send them on to Apache. Now, this has me perplexed > > because I have setup Apache/Tomcat integration via mod_webapp before and > > not had any issues, although I was not using virtual hosts before. Any > > ideas what I am doing wrong. The configs are below and I can send any > > additional helpful info you might need (logs, etc.). Also, please feel > > free to take a look at my test site http://java.whalin.com/examples/ > > > > > > httpd.conf > > -- > > > > LoadModule webapp_module libexec/mod_webapp.so > > ... > > > > ServerName java.whalin.com > > DocumentRoot /usr/local/htdocs/javawww > > > > WebAppConnection conn warp localhost:8008 > > WebAppDeploy examples conn /examples > > WebAppDeploy tomcat-docs conn /tomcat-docs > > WebAppInfo /webapp-info > > > > ErrorLog logs/java_error_log > > CustomLog logs/java_access_log combined > > > > > > -- > > server.xml > > -- > > > > > > > > > > > className="org.apache.catalina.connector.warp.WarpConnector" > > port="8008" minProcessors="5" maxProcessors="75" > > enableLookups="false" appBase="webapps" > > acceptCount="10" debug="1"/> > > > > > name="Apache" defaultHost="java.whalin.com" debug="1"> > > > > > appBase="webapps" unpackWARs="true"> > > > > > prefix="apache_log." suffix=".txt" > > timestamp="true"/> > > > > > > > > > reloadable="true" crossContext="true"> > > > > > prefix="java.whalin.com_examples_log." > > suffix=".txt" timestamps="true"/> > > > > > > > > > > > > > > > > Thanks for any help or ideas! > > Greg > > -- > > Gregory Whalin > > gwhalin@whalin.com > > > > > > -- > > To unsubscribe: > > For additional commands: > > Troubles with the list: > > > > > > > > > > > > > > > > > > > > -- > > To unsubscribe: > > For additional commands: > > Troubles with the list: > > > > > -- > To unsubscribe: > For additional commands: > Troubles with the list: > > > > > > > > > > -- > To unsubscribe: > For additional commands: > Troubles with the list: > -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: