LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-09-2023, 10:13 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,612

Rep: Reputation: 180Reputation: 180
running Tomcat with only IP address


I've cloned a running httpd/tomcat system with webapps running on the source system. The target system is essentially identical, but is installed on an office LAN with a broken DNS. For this linux host on this LAN you can get to the web pages only by IP: http://192.168.0.10. It does not work if you specify the actual host name: http://people. Using the IP only, the httpd works (I get "It works!"). Now I want to add in Tomcat. I've added the necessary Module and worker files to httpd.conf and httpd-tomcat.conf. Again, cloned from the original system. I believe tomcat is running. CATALINA_HOME/logs/catalina.out shows no errors and ps ax show tomcat running. However, now http://192.168.0.10 still gives "It works!" (from the httpd document_root) and http:/192.168.0.10/index.jsp give a 404 "Not Found" on the browser, nothing in catalina.out.

I've tried adding the following to server.xml:
Code:
     <Host name="people" appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
            
            <Logger className="org.apache.catalina.logger.FileLogger" directory="logs/" prefix="cwa_access" suffix=".log" timestamp="true"/>

            <Context path="" docBase="cwa" reloadable="false" allowLinking="true">
              <WatchedResource>/WEB-INF/web.xml</WatchedResource>
            </Context>

            <Alias>192.168.0.10</Alias>
      </Host>
This doesn't work. Yes, there is a webapps/cwa directory with jsp files.

Ideas?
 
Old 10-10-2023, 01:02 AM   #2
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,612

Original Poster
Rep: Reputation: 180Reputation: 180
The Admin got the DNS working. Now I'm able to connect to Tomcat! http://people.dom.local/cwa
 
  


Reply

Tags
host, tomcat



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat Issue (multiple tomcat is running) vignesh4sh Linux - Server 4 02-04-2013 01:16 AM
apache-tomcat and jakarta-tomcat shifter Programming 1 07-28-2007 10:36 PM
How to make Tomcat 4.0.1 and Tomcat 5.0.28 coexist in one server? g18397 Linux - Software 0 05-16-2006 03:16 AM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 01:31 AM
Why use Apache with Tomcat rather than just Tomcat itself? davee Linux - Software 1 08-21-2003 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration