LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache- Tomcat application not functioning from public web access (https://www.linuxquestions.org/questions/linux-server-73/apache-tomcat-application-not-functioning-from-public-web-access-936457/)

stevenl 03-26-2012 05:21 AM

Apache- Tomcat application not functioning from public web access
 
Hi,

We have an application running under Tomcat 6.x server.

From internal LAN access - http://hostname:8080/Appsdir/logonAdmin.html

We have also set in for external web access - http://hostname.abc.com/Appsdir/logonAdmin.html
This has Apache through mod_jk to Tomcat to service the request.

There is a redirect to https SSL through port 80 to port 443 (usual Apache and Tomcat configuration settings)

From both internal LAN and external public web access, the URL http://hostname.abc.com/Appsdir/logonAdmin.html gets redirected to https://hostname.abc.com/Appsdir/logonAdmin.html and the application log-in screen appears without any problem.

From internal LAN access,the login screen appears and after authentication,it goes into the application without any problem.

However, from external public access,the login screen appears, however, after login, it displays only all the html in text format regardless of whichever browser type was used.

Apparently, the Apache, Tomcat settings seems correct to bring us to above Apps login screen. What could be the issue?


Appreciate assistance as I'm a newby in Linux, Apache, Tomcat, SSL, Java setup.

acid_kewpie 03-26-2012 05:27 AM

what is "text format"? can you show what this means in more detail? Maybe this refers to a missing CSS file or something?

I'd fire up firebug, or Chrome Developer tools and see what is being requested from the server, maybe something in there is 404ing and trying to hit an invalid URI, maybe something hard coded onto port 8080 which is still being successfully reached through the LAN.

stevenl 03-26-2012 06:02 AM

Hi,

Following text gets displayed.


Code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="ext30/resources/css/ext-all.css">       
<link rel="stylesheet" type="text/css" href="ext30/calendar/resources/css/calendar.css">
<link href="scheduler/css/sch.schedulergroupingview.css" rel="stylesheet" type="text/css" />
<link href="scheduler/css/sch.schedulerpanel.css" rel="stylesheet" type="text/css" />
<link href="scheduler/css/sch.schedulerview.css" rel="stylesheet" type="text/css" />
<link href="scheduler/css/sch.lockingschedulerview.css" rel="stylesheet" type="text/css" />
<link href="scheduler/css/sch.plugins.dragcreator.css" rel="stylesheet" type="text/css" />
<link href="scheduler/css/sch.plugins.dragdrop.css" rel="stylesheet" type="text/css" />
<link href="scheduler/css/sch.plugins.resize.css" rel="stylesheet" type="text/css" />
<link href="scheduler/css/sch.plugins.common.css" rel="stylesheet" type="text/css" />
<link href="scheduler/css/sch.event.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="aware_ext/ext/column-tree.css">       
<link rel="stylesheet" type="text/css" href="aware_ext/ext/LockingGridView.css">       
<link rel="stylesheet" type="text/css" href="aware_ext/ext/RowEditor.css">       
<link rel="stylesheet" type="text/css" href="aware_ext/ext/GroupSummary.css">       
<link rel="stylesheet" type="text/css" href="aware_ext/multiselect/Multiselect2.css">
<link rel="stylesheet" type="text/css" href="aware_ext/resources/css/blue.css">       
<link rel="stylesheet" type="text/css" href="fw/def2/style/default.css">
<!-- CSS SEPARATOR. Don't delete -->
<!-- Fix for transparent PNG in IE6.0 -->
<style type="text/css">
        img { behavior: url(aware_ext/resources/css/iepngfix.htc) }
</style> </head>

</head>

<body><div id="bas_startup_msg" style="text-align: center; padding-top: 200px; ">Loading page. Please wait...</div>
<div style="visibility:hidden;" id="main_screen" >
<!--
<?xml version='1.0' encoding='UTF-8' ?>
<root>
<login_action_return>
<login_action_success>
<header business_space="spng4" business_space_raw="spng4" user_name="admin" testing_mode="false" logon_page="logonAdmin.html" user_id="10000030" user_entity_name="RegularUser" server_url="https://aims.austraining.com.au:443/AwareIM" >
</header>
<visual_perspective name="Administrator" id="101" is_startup="true" display_errors_in_status="true" theme="ext30/resources/css/ext-all.css">
  <vpframe type="main" title_bar="false" collapsible="false" visible="true" splittable="false" borders_off="true">
    <page name="BAS_Main_Page" id="0" tabs_at_top="true" force_tab="true">
      <pagetab title="Home" layout="vert" columns="2">
        <panelinfo links="Full Screen" anchor="">
          <content_panel name="Main" display_title="false" closable="false" collapsible="false" show_borders="false">
            <menu_item name="Query" type="run_query" id="0">
              <menu_item_param>Awardee List</menu_item_param>
            </menu_item>
          </content_panel>
        </panelinfo>
      </pagetab>
    </page>
  </vpframe>
  <vpframe type="banner" initial_size="60" max_size="60" title_bar="true" title="Scholarships Papua New Guinea - SPNG" collapsible="false" visible="true" splittable="false" borders_off="true">
    <page name="BAS_Banner_Page" id="0">
      <pagetab title="Main" layout="vert" columns="2">
        <panelinfo>
          <content_panel name="Main" display_title="false" closable="false" collapsible="false" show_borders="false">
            <static_html>
              &lt;div style=&quot;border: solid 1px gray; margin-bottom:2px; PADDING: 5px; FONT-FAMILY: Verdana; FONT-SIZE: 9px; COLOR: #600000; BACKGROUND-COLOR: #FFFFEC; TEXT-ALIGN: justify; LINE-HEIGHT:1.2em&quot;&gt;&lt;img src=&quot;austraining_images/ailogopicsmaller.png&quot; alt=&quot;&quot;/&gt;
Help Tips:
Do not use the browser's back and forward key
&lt;/div&gt;
            </static_html>
          </content_panel>
        </panelinfo>
      </pagetab>
    </page>
  </vpframe>
  <vpframe type="top_bar" title_bar="true" title="SPNG v1.11" collapsible="false" visible="true" splittable="true" borders_off="false">
    <menu_definition type="tree" next_id="39">
      <menu_item name="Main Menu" type="folder" id="0">
        <menu_item name="Home" type="home" id="1">
        </menu_item>
        <menu_item name="Awardees" type="folder" id="2" image_path="TEMP_RESOURCES/spng4_om_113_image114.png" expanded="true">
          <menu_item name="List All Awardees" type="run_query" id="3" output="new_tab">
            <menu_item_param>Awardee List</menu_item_param>
          </menu_item>
          <menu_item name="Awardee - New Adv Search" type="run_query" id="4" output="new_tab">
            <menu_item_param>Awardee - Advanced Search</menu_item_param>
          </menu_item>
          <menu_item name="Quick Contact List" type="run_query" id="5" output="new_tab">
            <menu_item_param>Awardee - Quick Contact List Report</menu_item_param>
          </menu_item>
          <menu_item name="Emergency Contact Search" type="run_query" id="6" image_path="TEMP_RESOURCES/spng4_om_113_image115.png" output="new_tab">
            <menu_item_param>Emergency Contact - by form</menu_item_param>
          </menu_item>
          <menu_item name="New Awardee" type="create_object" id="7" image_path="TEMP_RESOURCES/spng4_om_113_image113.png" output="new_tab">
            <menu_item_param>true</menu_item_param>
            <menu_item_param></menu_item_param>
            <menu_item_param>Awardee</menu_item_param>
          </menu_item>
          <menu_item name="New Emergency Contact" type="create_object" id="8" image_path="TEMP_RESOURCES/spng4_om_113_image117.png" output="new_tab">
            <menu_item_param>false</menu_item_param>
            <menu_item_param></menu_item_param>
            <menu_item_param>EmergencyContact</menu_item_param>
          </menu_item>
        </menu_item>
        <menu_item name="Monthly Exchange" type="folder" id="9" image_path="TEMP_RESOURCES/spng4_om_113_image118.png" expanded="true">
          <menu_item name="List All CM Mthly - Activity" type="run_query" id="10" image_path="TEMP_RESOURCES/spng4_om_113_image115.png" output="new_tab">
            <menu_item_param>Awardee - CM Monthly Report Activity</menu_item_param>
          </menu_item>
          <menu_item name="List All CM Mthly - Cases" type="run_query" id="11" image_path="TEMP_RESOURCES/spng4_om_113_image115.png" output="new_tab">
            <menu_item_param>Awardee - CM Monthly Report Cases</menu_item_param>
          </menu_item>
          <menu_item name="Search CM Mthly Cases by Date Range" type="run_query" id="12" output="new_tab">
            <menu_item_param>AMXCasesBetween</menu_item_param>
          </menu_item>
          <menu_item name="List All CM Mthly - Circumstances" type="run_query" id="13" image_path="TEMP_RESOURCES/spng4_om_113_image115.png" output="new_tab">
            <menu_item_param>Awardees - CM Monthly Circumstances</menu_item_param>
          </menu_item>
          <menu_item name="Search CM Mthly Circumstances by Date Range" type="run_query" id="14" output="new_tab">
            <menu_item_param>AMXCircumstancesBetween</menu_item_param>
          </menu_item>
          <menu_item name="New Adv Monthly Exchange Search" type="run_query" id="15" output="new_tab">
            <menu_item_param>AMX Filters</menu_item_param>
          </menu_item>
        </menu_item>
        <menu_item name="Admin Control" type="folder" id="16" image_path="TEMP_RESOURCES/spng4_om_113_image108.png">
          <menu_item name="Manage Case Managers" type="run_query" id="17" image_path="TEMP_RESOURCES/spng4_om_113_image120.png" output="new_tab">
            <menu_item_param>Case Manager -all</menu_item_param>
          </menu_item>
          <menu_item name="Manage Institutions" type="run_query" id="18" image_path="TEMP_RESOURCES/spng4_om_113_image107.png" output="new_tab">
            <menu_item_param>Institution - all</menu_item_param>
          </menu_item>
          <menu_item name="Manage Intake" type="run_query" id="19" output="new_tab">
            <menu_item_param>Intake - all</menu_item_param>
          </menu_item>
          <menu_item name="Manage SCO" type="run_query" id="20" image_path="TEMP_RESOURCES/spng4_om_113_image110.png" output="new_tab">
            <menu_item_param>SCO - all</menu_item_param>
          </menu_item>
          <menu_item name="Create New System  User" type="create_object" id="21" image_path="TEMP_RESOURCES/spng4_om_113_image112.png" output="new_tab">
            <menu_item_param>false</menu_item_param>
            <menu_item_param></menu_item_param>
            <menu_item_param>RegularUser</menu_item_param>
          </menu_item>
          <menu_item name="List All System Users" type="run_query" id="22" image_path="TEMP_RESOURCES/spng4_om_113_image111.png" output="new_tab">
            <menu_item_param>Regular User - all</menu_item_param>
          </menu_item>
          <menu_item name="Recent Changes" type="recent_objects" id="23" output="new_tab">
          </menu_item>
        </menu_item>
        <menu_item name="System" type="folder" id="24" image_path="TEMP_RESOURCES/spng4_om_113_image105.gif">
          <menu_item name="New Object" type="create_object" id="25">
          </menu_item>
          <menu_item name="Search Objects" type="search_objects" id="26">
          </menu_item>
          <menu_item name="Start Process" type="start_process" id="27">
            <menu_item_param>ShowLoggedInStudentDetails</menu_item_param>
          </menu_item>
          <menu_item name="Documents" type="create_document" id="28">
            <menu_item_param>true</menu_item_param>
            <menu_item_param>false</menu_item_param>
          </menu_item>
          <menu_item name="Import" type="import" id="29">
          </menu_item>
          <menu_item name="Export" type="export" id="30">
          </menu_item>
          <menu_item name="Recent Objects" type="recent_objects" id="31">
          </menu_item>
          <menu_item name="Active Processes" type="active_processes" id="32">
          </menu_item>
          <menu_item name="Change login details" type="user_details" id="33">
          </menu_item>
          <menu_item name="System settings" type="system_settings" id="34">
          </menu_item>
          <menu_item name="Theme Selection" type="themes" id="35">
          </menu_item>
          <menu_item name="Locale Selection" type="select_locale" id="36">
          </menu_item>
          <menu_item name="Home Page" type="home" id="37">
          </menu_item>
        </menu_item>
        <menu_item name="Logout" type="logout" id="38" image_path="TEMP_RESOURCES/spng4_om_113_image106.gif">
          <menu_item_param></menu_item_param>
        </menu_item>
      </menu_item>
    </menu_definition>
  </vpframe>
  <vpframe type="left" title_bar="true" title="Menu SPNG4 v1.13" collapsible="false" visible="true" splittable="true" borders_off="false">
    <menu_definition type="tree" next_id="39">
      <menu_item name="Main Menu" type="folder" id="0">
        <menu_item name="Home" type="home" id="1">
        </menu_item>
        <menu_item name="Awardees" type="folder" id="2" image_path="TEMP_RESOURCES/spng4_om_113_image114.png" expanded="true">
          <menu_item name="List All Awardees" type="run_query" id="3" output="new_tab">
            <menu_item_param>Awardee List</menu_item_param>
          </menu_item>
          <menu_item name="Awardee - New Adv Search" type="run_query" id="4" output="new_tab">
            <menu_item_param>Awardee - Advanced Search</menu_item_param>
          </menu_item>
          <menu_item name="Quick Contact List" type="run_query" id="5" output="new_tab">
            <menu_item_param>Awardee - Quick Contact List Report</menu_item_param>
          </menu_item>
          <menu_item name="Emergency Contact Search" type="run_query" id="6" image_path="TEMP_RESOURCES/spng4_om_113_image115.png" output="new_tab">
            <menu_item_param>Emergency Contact - by form</menu_item_param>
          </menu_item>
          <menu_item name="New Awardee" type="create_object" id="7" image_path="TEMP_RESOURCES/spng4_om_113_image113.png" output="new_tab">
            <menu_item_param>true</menu_item_param>
            <menu_item_param></menu_item_param>
            <menu_item_param>Awardee</menu_item_param>
          </menu_item>
          <menu_item name="New Emergency Contact" type="create_object" id="8" image_path="TEMP_RESOURCES/spng4_om_113_image117.png" output="new_tab">
            <menu_item_param>false</menu_item_param>
            <menu_item_param></menu_item_param>
            <menu_item_param>EmergencyContact</menu_item_param>
          </menu_item>
        </menu_item>
        <menu_item name="Monthly Exchange" type="folder" id="9" image_path="TEMP_RESOURCES/spng4_om_113_image118.png" expanded="true">
          <menu_item name="List All CM Mthly - Activity" type="run_query" id="10" image_path="TEMP_RESOURCES/spng4_om_113_image115.png" output="new_tab">
            <menu_item_param>Awardee - CM Monthly Report Activity</menu_item_param>
          </menu_item>
          <menu_item name="List All CM Mthly - Cases" type="run_query" id="11" image_path="TEMP_RESOURCES/spng4_om_113_image115.png" output="new_tab">
            <menu_item_param>Awardee - CM Monthly Report Cases</menu_item_param>
          </menu_item>
          <menu_item name="Search CM Mthly Cases by Date Range" type="run_query" id="12" output="new_tab">
            <menu_item_param>AMXCasesBetween</menu_item_param>
          </menu_item>
          <menu_item name="List All CM Mthly - Circumstances" type="run_query" id="13" image_path="TEMP_RESOURCES/spng4_om_113_image115.png" output="new_tab">
            <menu_item_param>Awardees - CM Monthly Circumstances</menu_item_param>
          </menu_item>
          <menu_item name="Search CM Mthly Circumstances by Date Range" type="run_query" id="14" output="new_tab">
            <menu_item_param>AMXCircumstancesBetween</menu_item_param>
          </menu_item>
          <menu_item name="New Adv Monthly Exchange Search" type="run_query" id="15" output="new_tab">
            <menu_item_param>AMX Filters</menu_item_param>
          </menu_item>
        </menu_item>
        <menu_item name="Admin Control" type="folder" id="16" image_path="TEMP_RESOURCES/spng4_om_113_image108.png">
          <menu_item name="Manage Case Managers" type="run_query" id="17" image_path="TEMP_RESOURCES/spng4_om_113_image120.png" output="new_tab">
            <menu_item_param>Case Manager -all</menu_item_param>
          </menu_item>
          <menu_item name="Manage Institutions" type="run_query" id="18" image_path="TEMP_RESOURCES/spng4_om_113_image107.png" output="new_tab">
            <menu_item_param>Institution - all</menu_item_param>
          </menu_item>
          <menu_item name="Manage Intake" type="run_query" id="19" output="new_tab">
            <menu_item_param>Intake - all</menu_item_param>
          </menu_item>
          <menu_item name="Manage SCO" type="run_query" id="20" image_path="TEMP_RESOURCES/spng4_om_113_image110.png" output="new_tab">
            <menu_item_param>SCO - all</menu_item_param>
          </menu_item>
          <menu_item name="Create New System  User" type="create_object" id="21" image_path="TEMP_RESOURCES/spng4_om_113_image112.png" output="new_tab">
            <menu_item_param>false</menu_item_param>
            <menu_item_param></menu_item_param>
            <menu_item_param>RegularUser</menu_item_param>
          </menu_item>
          <menu_item name="List All System Users" type="run_query" id="22" image_path="TEMP_RESOURCES/spng4_om_113_image111.png" output="new_tab">
            <menu_item_param>Regular User - all</menu_item_param>
          </menu_item>
          <menu_item name="Recent Changes" type="recent_objects" id="23" output="new_tab">
          </menu_item>
        </menu_item>
        <menu_item name="System" type="folder" id="24" image_path="TEMP_RESOURCES/spng4_om_113_image105.gif">
          <menu_item name="New Object" type="create_object" id="25">
          </menu_item>
          <menu_item name="Search Objects" type="search_objects" id="26">
          </menu_item>
          <menu_item name="Start Process" type="start_process" id="27">
            <menu_item_param>ShowLoggedInStudentDetails</menu_item_param>
          </menu_item>
          <menu_item name="Documents" type="create_document" id="28">
            <menu_item_param>true</menu_item_param>
            <menu_item_param>false</menu_item_param>
          </menu_item>
          <menu_item name="Import" type="import" id="29">
          </menu_item>
          <menu_item name="Export" type="export" id="30">
          </menu_item>
          <menu_item name="Recent Objects" type="recent_objects" id="31">
          </menu_item>
          <menu_item name="Active Processes" type="active_processes" id="32">
          </menu_item>
          <menu_item name="Change login details" type="user_details" id="33">
          </menu_item>
          <menu_item name="System settings" type="system_settings" id="34">
          </menu_item>
          <menu_item name="Theme Selection" type="themes" id="35">
          </menu_item>
          <menu_item name="Locale Selection" type="select_locale" id="36">
          </menu_item>
          <menu_item name="Home Page" type="home" id="37">
          </menu_item>
        </menu_item>
        <menu_item name="Logout" type="logout" id="38" image_path="TEMP_RESOURCES/spng4_om_113_image106.gif">
          <menu_item_param></menu_item_param>
        </menu_item>
      </menu_item>
    </menu_definition>
  </vpframe>
  <vpframe type="status" title_bar="false" collapsible="false" visible="true" splittable="false" borders_off="true">
    <page name="BAS_Right_Page" id="0">
      <pagetab title="Main" layout="vert" columns="2">
        <panelinfo>
          <content_panel name="Main" display_title="false" closable="false" collapsible="false" show_borders="false">
            <static_html>
             
&lt;div style=&quot;border: solid 1px gray; margin-bottom:3px; PADDING: 8px; FONT-FAMILY: Verdana; FONT-SIZE: 12px; COLOR: #600000; BACKGROUND-COLOR: #FFFFEC; TEXT-ALIGN: justify; LINE-HEIGHT:1.2em&quot;&gt;
Help Tips:
Do not use the browser's back and forward key
&lt;/div&gt;

            </static_html>
          </content_panel>
        </panelinfo>
      </pagetab>
    </page>
  </vpframe>
  <startup_acl>Administrator</startup_acl>
</visual_perspective>
</login_action_success>
</login_action_return>
</root>

-->
</div>
 

<script type="text/javascript" src="ext30/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext30/ext-all.js"></script>
<script type="text/javascript" src="ext30/calendar/calendar-all.js"></script>

<!-- Placeholders for dynamic module scripts for IE7 and IE6 -->
<script type="text/javascript" src="" id="udp_script"></script>
<script type="text/javascript" src="" id="ud_script"></script>
<script type="text/javascript" src="" id="import_script"></script>
<script type="text/javascript" src="" id="misc_script"></script>
<script type="text/javascript" src="" id="search_script"></script>
<script type="text/javascript" src="" id="recur_script"></script>

<script type="text/javascript" src="aware_ext/ext/LockingGridView.js"></script>
<script type="text/javascript" src="scheduler/sch-all.js"></script>
<script type="text/javascript" src="aware_ext/aware.js"></script>       
<!-- JS SEPARATOR. Don't delete -->

<script type="text/javascript">
        Ext.onReady(function(){
               
                // find the DIV with XML node
                var div = Ext.get ('main_screen');
                if (div == null)
                        return;
               
                var xmlText = "";
                for (var i = 0; i < div.dom.childNodes.length; ++ i)
                {
                        xmlText += div.dom.childNodes [i].nodeValue;
                }
                var xmlDoc = parseXMLDocument (xmlText.trim ());
                if (xmlDoc == null)
                {
                        alert ('Unable to parse XML');
                        return;
                }
                if (xmlDoc.parseError && xmlDoc.parseError.reason && xmlDoc.parseError.reason != '')
                {
                        alert ('XML parsing error ' + xmlDoc.parseError.reason + ' on line ' + xmlDoc.parseError.line + ' ' + xmlDoc.parseError.srcText);
                        return;
                }

                var startupMsg = Ext.get ('bas_startup_msg');
                if (startupMsg)
                        startupMsg.remove ();
                       
                AwareApp.start (xmlDoc);
        });
</script>

</body>
</html>


Enrix 04-03-2012 04:23 PM

Quote:

Originally Posted by stevenl (Post 4636405)
Hi,

Following text gets displayed.


Code:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
.........


Hello,

This seems to be a configuration error on your external connection. My guess is that the apache is forwarding the response as TEXT/PLAIN instead of TEXT/HTML (i don't remember the exact MIME type for HTTP) response and, thus, the browser is displaying as text.


All times are GMT -5. The time now is 04:08 PM.