Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 89298 invoked from network); 2 Mar 2011 16:04:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 16:04:42 -0000 Received: (qmail 34739 invoked by uid 500); 2 Mar 2011 16:04:38 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 34349 invoked by uid 500); 2 Mar 2011 16:04:33 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 34340 invoked by uid 99); 2 Mar 2011 16:04:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 16:04:32 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_FROM,HTML_FONT_FACE_BAD,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of felixtheratruns@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qy0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 16:04:26 +0000 Received: by qyk36 with SMTP id 36so5104775qyk.18 for ; Wed, 02 Mar 2011 08:04:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=0ip1x7GcGlfoI4c+lLxzCKOavs/tUq+1DVURUuSvQN8=; b=n8PEAyJChztPGPhuNPbn4nmlZqSaIH6ExKdz4svnDDgW2LEgAYhRPEUXGPoLYfjNLK fBMylQVQ1DFSZjvW0MmnaJwnLSiS6ZyauH5dq37vvaOR0CO5WIIMOsv2Oqp/Kk7FdmZp V+drdeSqcih6AuqAwD+MUD7jemX6tLko8n58E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qqK/142kcnUuYXro6zsZacaxYcDVD5jjoJ+QgR0hryQrsj+r24MAQPjj0pJwgf8pVq p4qw7csz8Cbfda+fmNgXvhGuKowL9Fy3R06Uaf+aG2SlemKMmOOxyQaV3vC+h9UfGgSm RNdvc24RtCROYYREBMnBbq8AI1wylAXJkb41w= MIME-Version: 1.0 Received: by 10.229.231.9 with SMTP id jo9mr6575881qcb.201.1299081845376; Wed, 02 Mar 2011 08:04:05 -0800 (PST) Received: by 10.229.240.148 with HTTP; Wed, 2 Mar 2011 08:04:05 -0800 (PST) In-Reply-To: <4D659365.2030204@christopherschultz.net> References: <99C8B2929B39C24493377AC7A121E21FACC4FCB5DF@USEA-EXCH8.na.uis.unisys.com> <4D653118.8060604@christopherschultz.net> <4D659365.2030204@christopherschultz.net> Date: Wed, 2 Mar 2011 11:04:05 -0500 Message-ID: Subject: Re: server running website From: Joel To: Tomcat Users List Content-Type: multipart/alternative; boundary=00163630f323ed88c0049d820f3c --00163630f323ed88c0049d820f3c Content-Type: text/plain; charset=ISO-8859-1 On 2/23/2011 4:18 PM, Joel wrote: > >>> sackett-research-lab2b:~ joel$ sudo find /opt/Tomcat -type f -exec \ > >>>> grep "function2.basiceng.umr.edu" "{}" \; > > Oops: I forgot the "-l" switch on grep... it's not giving you any file > names :) sackett-research-lab2b:~ joel$ sudo find /opt/Tomcat -type f -exec grep -l " function2.basiceng.umr.edu" "{}" \; Password: Sorry, try again. Password: /opt/Tomcat/webapps/ROOT/index.jsp /opt/Tomcat/webapps/view/acct_new.jsp /opt/Tomcat/webapps/view/css/.nobar.css.swp /opt/Tomcat/webapps/view/test.html /opt/Tomcat/webapps/view/test1.html /opt/Tomcat/webapps/view2/acct_new.jsp /opt/Tomcat/webapps/view2/css/.nobar.css.swp /opt/Tomcat/work/Standalone/localhost/_/index_jsp.class /opt/Tomcat/work/Standalone/localhost/_/index_jsp.java /opt/Tomcat/work/Standalone/localhost/view/acct_new_jsp.java > >>> Password: > >>> > >>> // " >>> http://function2.basiceng.umr.edu:8080/view/Accounting/confirm.jsp?id=" > + > >>> id + "\">" > >>> Binary file /opt/Tomcat/webapps/view/css/.nobar.css.swp matches > >>> Test > >>>
> >>> // " >>> http://function2.basiceng.umr.edu:8080/view/Accounting/confirm.jsp?id=" > + > >>> id + "\">" > >>> Binary file /opt/Tomcat/webapps/view2/css/.nobar.css.swp matches > >>> Binary file /opt/Tomcat/work/Standalone/localhost/_/index_jsp.class > >>> matches > >>> out.write(" >>> http://function2.basiceng.umr.edu/view\">\r\n"); > >>> // " >>> http://function2.basiceng.umr.edu:8080/view/Accounting/confirm.jsp?id=" > + > >>> id + "\">" > > Got some hits, I see. What is the hostname of the server on which the > app is actually running, now? Either :80 or :8080 should work given the > configuration you've shown, so I suspect the hostname is the problem. > You can always try to configure an /etc/hosts setting for the above > hostname and set them to the IP address of the real host -- just for > testing, of course... it's not reasonable to have users modify their > hosts files just to use your webapp :) > > I'm not exactly sure what you are talking about. I don I tried setting the host name to function2.basiceng.umr.edu with "sudo scutil --set HostName function2.basiceng.umr.edu" I also tried escaping the periods like so "sudo scutil --set HostName "function2\.basiceng\.umr\.edu", and "sudo scutil --set HostName function2\\.basiceng\\.umr\\.edu" and I tried putting quotes around all of the former but the hostname continues to show up as "function2" or "function2\". function2:~ joel$ PS1="[\d \t \u@\h:\w ] $ " [Thu Feb 24 13:19:21 joel@function2:~ ] $ I may be missing something here, if this isn't what you meant let me know. > > Hmm... does Wireshark have a Mac OS X build? You might try that if you > get desperate. > > > So I was wondering if the website url in these files has anything to do > with > > my problem > > If the hostname of the server has changed (or you've moved the app, > which it sounds like you have), then it is /very/ likely to cause problems. > > Yes it does, but when I don > and if so are all the java files present for all the class files > > You'll have to check that out for yourself. How familiar are you with > Java in general? Each .class file comes from a .java file, though there > are some cases where the .java filename isn't obvious from the .class > file name (inner classes, anonymous classes, and other assorted fun stuff). > > String constants are compiled-into the .class files without any > compression, so if you have a .java file with that text in it, you > should find it in the .java file that goes with it. > > Web applications rarely come with any source files in them, though .jsp > files (which are compiled on the fly by the server) are always in > "source form". If the webapp is written properly, all UI-related stuff > will be in the .jsp files and not in any .java files. > > > and if so how would I go about recompiling the java files? > > That really depends on the build process of the webapp. Are there any > files like "build.xml" in the root directory of the webapp? Anything > else that might look like a build script? If you don't have any .java > files, you have nothing to compile, which would be convenient. If you do > have them and there are no build scripts, you might have to use "javac", > the command-line compiler, which is similar to the "cc" C compiler > except that it doesn't do any linking: just compiles .java -> .class. > > > Binary file Tomcat/work/Standalone/localhost/_/index_jsp.class matches > > These files are compiled .jsp files: you can ignore them and focus on > the source .jsp with a similar name. For instance, the file above should > have come from a file called "index.jsp". > > There will also be a .java file laying around with a similar name. Oh, > there it is: > > > Tomcat/work/Standalone/localhost/_/index_jsp.java: out.write(" > http-equiv=\"Refresh\" content=\"0;url= > > http://function2.basiceng.umr.edu/view\">\r\n"); > > --00163630f323ed88c0049d820f3c--