On Tue, Feb 22, 2011 at 10:59 AM, Caldarale, Charles R <
chuck.caldar...@unisys.com> wrote:
>
>
> Again, it looks like something's wrong with the hosts file.  Might be as
> simple as not having a hosts file, or not having an entry for localhost.
>
> Another possibility is that you may have a webapp deployed that has
> hard-coded the original website address, and did a redirect with it - hard
> coding like that is a very, very bad practice.
>
>
So yeah it might be the later problem, where there is a hardcoded directory.
Is there a quick way to fix this? This should be a list of all the files
that "function2.basiceng.umr.edu" appears in

sackett-research-lab2b:opt joel$ sudo find /opt/Tomcat -type f | xargs grep
function2.basiceng.umr.edu
grep: /opt/Tomcat/conf/server: No such file or directory
grep: copy.xml: No such file or directory
/opt/Tomcat/webapps/ROOT/index.jsp: <meta http-equiv="Refresh"
content="0;url=http://function2.basiceng.umr.edu/view";>
/opt/Tomcat/webapps/view/acct_new.jsp:// "<a href=\"
http://function2.basiceng.umr.edu:8080/view/Accounting/confirm.jsp?id="; + id
+ "\">"
Binary file /opt/Tomcat/webapps/view/css/.nobar.css.swp matches
grep: /opt/Tomcat/webapps/view/images/folder_closed: No such file or
directory
grep: copy.gif: No such file or directory
grep: /opt/Tomcat/webapps/view/Pick_: No such file or directory
grep: CLMatrices.jsp: No such file or directory
grep: /opt/Tomcat/webapps/view/Reading: No such file or directory
grep: Excel.jsp: No such file or directory
grep: /opt/Tomcat/webapps/view/searchmorph_results: No such file or
directory
grep: old.jsp: No such file or directory
/opt/Tomcat/webapps/view/test.html: <a href="
http://function2.basiceng.umr.edu:8080/view/cgi-bin/test.cgi";>Test</a>
/opt/Tomcat/webapps/view/test1.html: <FORM ACTION="
http://function2.basiceng.umr.edu/tst.cgi";>
grep: /opt/Tomcat/webapps/view/Testing: No such file or directory
grep: DB.jsp: No such file or directory
grep: /opt/Tomcat/webapps/view/UserPick_: No such file or directory
grep: CLMatrices.jsp: No such file or directory
/opt/Tomcat/webapps/view2/acct_new.jsp:// "<a href=\"
http://function2.basiceng.umr.edu:8080/view/Accounting/confirm.jsp?id="; + id
+ "\">"
Binary file /opt/Tomcat/webapps/view2/css/.nobar.css.swp matches
grep: /opt/Tomcat/webapps/view2/images/folder_closed: No such file or
directory
grep: copy.gif: No such file or directory
Binary file /opt/Tomcat/work/Standalone/localhost/_/index_jsp.class matches
/opt/Tomcat/work/Standalone/localhost/_/index_jsp.java:
 out.write("<meta http-equiv=\"Refresh\" content=\"0;url=
http://function2.basiceng.umr.edu/view\";>\r\n");
/opt/Tomcat/work/Standalone/localhost/view/acct_new_jsp.java:// "<a href=\"
http://function2.basiceng.umr.edu:8080/view/Accounting/confirm.jsp?id="; + id
+ "\">"
grep: copy/SESSIONS.ser: No such file or directory






Check the logs to find out what happened when you attempted to start the

server.

here is what happens in catalina.out when I start, not sure which log file
you want, though there aren't errors in any of them

Feb 23, 2011 10:37:26 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stoping http11 protocol on 80 Catalina:type=ThreadPool,name=http80
Feb 23, 2011 10:41:50 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Feb 23, 2011 10:41:50 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Starting service Tomcat-Standalone
Apache Tomcat/4.1.29-LE-jdk14
Feb 23, 2011 10:41:51 AM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Feb 23, 2011 10:41:51 AM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Feb 23, 2011 10:41:51 AM org.apache.struts.util.PropertyMessageResources
<init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
returnNull=true
Feb 23, 2011 10:41:52 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Feb 23, 2011 10:41:52 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 80
Feb 23, 2011 10:41:52 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:9007
Feb 23, 2011 10:41:52 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/8  config=/opt/Tomcat/conf/jk2.properties


Is there something else already running on the ports tomcat is
trying to use?  What does netstat list as listening ports with and
without tomcat running?


With tomcat:
sackett-research-lab2b:logs joel$ netstat -a | grep LISTEN
tcp4       0      0  localhost.8005         *.*                    LISTEN
tcp46      0      0  *.9007                 *.*                    LISTEN
tcp46      0      0  *.commplex-link        *.*                    LISTEN
tcp46      0      0  *.http                 *.*                    LISTEN
tcp46      0      0  *.http-alt             *.*                    LISTEN
tcp4       0      0  *.kerberos             *.*                    LISTEN
tcp6       0      0  *.kerberos             *.*                    LISTEN
tcp46      0      0  *.vnc-server           *.*                    LISTEN
tcp4       0      0  sackett-research.cbt   *.*                    LISTEN
tcp4       0      0  localhost.8802         *.*                    LISTEN
tcp4       0      0  localhost.8010         *.*                    LISTEN
tcp4       0      0  localhost.8012         *.*                    LISTEN
tcp4       0      0  localhost.8009         *.*                    LISTEN
tcp4       0      0  localhost.8011         *.*                    LISTEN
tcp4       0      0  localhost.8801         *.*                    LISTEN
tcp46      0      0  *.jabber-server        *.*                    LISTEN
tcp46      0      0  *.jabber-client        *.*                    LISTEN
tcp4       0      0  sackett-research.http  *.*                    LISTEN
tcp4       0      0  localhost.9010         *.*                    LISTEN
tcp4       0      0  localhost.5347         *.*                    LISTEN
tcp4       0      0  *.8087                 *.*                    LISTEN
tcp4       0      0  *.8086                 *.*                    LISTEN
tcp4       0      0  *.asip-webadmin        *.*                    LISTEN
tcp4       0      0  *.62310                *.*                    LISTEN
tcp4       0      0  localhost.62309        *.*                    LISTEN
tcp4       0      0  *.http-alt             *.*                    LISTEN
tcp4       0      0  *.sunwebadmin          *.*                    LISTEN
tcp4       0      0  localhost.postgresql   *.*                    LISTEN
tcp6       0      0  localhost.postgres     *.*                    LISTEN
tcp6       0      0  localhost.postgres     *.*                    LISTEN
tcp4       0      0  localhost.11211        *.*                    LISTEN
tcp4       0      0  localhost.11611        *.*                    LISTEN
tcp4       0      0  *.apple-sasl           *.*                    LISTEN
tcp4       0      0  *.3com-tsmux           *.*                    LISTEN
tcp4       0      0  *.apple-sasl           *.*                    LISTEN
tcp4       0      0  *.3com-tsmux           *.*                    LISTEN
tcp4       0      0  *.ldap                 *.*                    LISTEN
tcp6       0      0  *.ldap                 *.*                    LISTEN
tcp4       0      0  *.kerberos-adm         *.*                    LISTEN
tcp4       0      0  *.ssh                  *.*                    LISTEN
tcp6       0      0  *.ssh                  *.*                    LISTEN
tcp4       0      0  *.netbios-ssn          *.*                    LISTEN
tcp4       0      0  *.microsoft-ds         *.*                    LISTEN
tcp4       0      0  *.afpovertcp           *.*                    LISTEN
tcp6       0      0  *.afpovert             *.*                    LISTEN
tcp4       0      0  *.dec_dlm              *.*                    LISTEN
tcp4       0      0  localhost.ipp          *.*                    LISTEN
tcp6       0      0  localhost.ipp          *.*                    LISTEN

without:

sackett-research-lab2b:bin joel$ netstat -a | grep LISTEN
tcp4       0      0  *.kerberos             *.*                    LISTEN
tcp6       0      0  *.kerberos             *.*                    LISTEN
tcp46      0      0  *.vnc-server           *.*                    LISTEN
tcp4       0      0  sackett-research.cbt   *.*                    LISTEN
tcp4       0      0  localhost.8802         *.*                    LISTEN
tcp4       0      0  localhost.8010         *.*                    LISTEN
tcp4       0      0  localhost.8012         *.*                    LISTEN
tcp4       0      0  localhost.8009         *.*                    LISTEN
tcp4       0      0  localhost.8011         *.*                    LISTEN
tcp4       0      0  localhost.8801         *.*                    LISTEN
tcp46      0      0  *.jabber-server        *.*                    LISTEN
tcp46      0      0  *.jabber-client        *.*                    LISTEN
tcp4       0      0  sackett-research.http  *.*                    LISTEN
tcp4       0      0  localhost.9010         *.*                    LISTEN
tcp4       0      0  localhost.5347         *.*                    LISTEN
tcp4       0      0  *.8087                 *.*                    LISTEN
tcp4       0      0  *.8086                 *.*                    LISTEN
tcp4       0      0  *.asip-webadmin        *.*                    LISTEN
tcp4       0      0  *.62310                *.*                    LISTEN
tcp4       0      0  localhost.62309        *.*                    LISTEN
tcp4       0      0  *.http-alt             *.*                    LISTEN
tcp4       0      0  *.sunwebadmin          *.*                    LISTEN
tcp4       0      0  localhost.postgresql   *.*                    LISTEN
tcp6       0      0  localhost.postgres     *.*                    LISTEN
tcp6       0      0  localhost.postgres     *.*                    LISTEN
tcp4       0      0  localhost.11211        *.*                    LISTEN
tcp4       0      0  localhost.11611        *.*                    LISTEN
tcp4       0      0  *.apple-sasl           *.*                    LISTEN
tcp4       0      0  *.3com-tsmux           *.*                    LISTEN
tcp4       0      0  *.apple-sasl           *.*                    LISTEN
tcp4       0      0  *.3com-tsmux           *.*                    LISTEN
tcp4       0      0  *.ldap                 *.*                    LISTEN
tcp6       0      0  *.ldap                 *.*                    LISTEN
tcp4       0      0  *.kerberos-adm         *.*                    LISTEN
tcp4       0      0  *.ssh                  *.*                    LISTEN
tcp6       0      0  *.ssh                  *.*                    LISTEN
tcp4       0      0  *.netbios-ssn          *.*                    LISTEN
tcp4       0      0  *.microsoft-ds         *.*                    LISTEN
tcp4       0      0  *.afpovertcp           *.*                    LISTEN
tcp6       0      0  *.afpovert             *.*                    LISTEN
tcp4       0      0  *.dec_dlm              *.*                    LISTEN
tcp4       0      0  localhost.ipp          *.*                    LISTEN
tcp6       0      0  localhost.ipp          *.*                    LISTEN



Also what connectors are configured in your

tomcat's server.xml?

Not sure how I can tell. I searched for connector in the xml and couldn't
find anything

Reply via email to