• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Old JSP page is suddenly incomplete

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am completely new to Tomcat so please bear with my ignorance. I've searched through some of the archives but quite honestly I don't even know what to look for.

I'm supporting an application that was developed long ago by someone who is no longer employed here. Unfortunately nobody else has any knowledge of this application either. It has been running fine since I started (about a year ago) but recently began acting strangely. For the most part the app runs fine except for one page...it no longer displays like it used to, there are several items missing.

I've already tried restarting the Tomcat process but that did not fix anything. I took a look at the filing system and it doesn't look like any of the objects have changed in several years.

I'm trying to find some log files that may help me get started. Can anyone suggest a starting point for my troubleshooting effort? I know this is a very general question, I apologize for that...I'm a little out of my element on this one.

Thanks in advance for any guidance!

~Jake
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey,

first try to see what exactly the problem is.
What items are missing on the page? Are we talking about JSP pages? Are there any error messages or stacktraces in your console or logfile?
This would help.
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Without further details, it's hard to offer any help.

You said that there were missing elements: Are they in the HTML being sent to the browser (View Source) and just not displaying? Are they not making it into the HTML at all?

If the page is old, I imagine it's full of grody scriptlets and a lot of Java code. That'll make it harder to diagnose problems.

Is the file as deployed the same as stored in source control? Perhaps the deployed file has been corrupted.

Just grasping at straws here...


P.S. Please use more meaningful subjects than "Noob needs help".
 
Jake Hammer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the quick responses!

This is a JSP page. When it renders now I get an input text box and two buttons (select and clear), there used to be a menu bar across the top as well as some additional stuff. Sorry I cannot be more specific with this I've only seen this page once or twice in the past year. The page does not show any errors and I'm not exactly sure which logfile to look at. I see a few of them in /etc/tomcat/logs, they are called catalina_log.YYYY-MM-DD.txt, localhost_prodreport1_0_log.YYYY-MM-DD.txt, and a huge one called mod_jk.log. The mod_jk.log file has an error toward the end of it that says "ERROR sending data to client. Connection aborted of network problems". Could this be my problem?

When I 'view source' I don't see anything concerning...this is what that says:


Source Control??? What is that ;)

It looks like in the past they've simply copied objects into a new version directory...primitive but it works. Nothing sticks out as a glaring difference, like I said none of these files appear to have been touched in about 5 years.

I do apologize for the ambiguous title, I could not think of anything else more appropriate...perhaps 'objects missing from page' ??

Thanks again!
 
Jake Hammer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the page source that should be doing the work:

 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please put your code between the code tags..

It looks like there is something missing in your JSP page.

Where is the starting <form> tag. Also, I see a closing </select> ... Where is the start tag ?
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, that HTML certainly has no menu bar or additional stuff, and is completely malformed. There's obviously a big problem somewhere!

Employ some basic debugging techniques:

How does it compare with the source JSP? Is there markup in the JSP that looks like it should result in the menu bar?

How does it compare to pages that look OK and do display the header stuff?

Source Control??? What is that ;)


Ay, carumba!

primitive but it works.


Except that it doesn't, as evidenced by your current dilemma.

Perhaps this is a good opportunity to stop the insanity and get everything into proper source control?
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please go back and add code tags to your post. I will not inspect unformatted code. Please read this for more information.

You can go back and change your post to add code tags by clicking the button on your post.
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jake Hammerschmitt wrote:I do apologize for the ambiguous title, I could not think of anything else more appropriate...perhaps 'objects missing from page' ?


Handled.
 
Jake Hammer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:How does it compare with the source JSP?



Again, please forgive my ignorance...but are you are referring to the '/etc/tomcat/work/Standalone/localhost/prod_report/jsp/change_role_jsp.java' file?

or the '/usr/local/lib/tomcat/webapps/examples/jsp/source.jsp' file?


Thanks!
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSP source is .jsp.
 
Jake Hammer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure if this is of any help...but I 'tailed' the mod_jk.log file and maneuvered around the application. Here is the output from that (the green text was a successful page and the red was not):

> tail -f mod_jk.log
[Thu Jul 30 12:25:11 2009] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done
[Thu Jul 30 12:25:11 2009] [jk_ajp_common.c (642)]: sending to ajp13 #1378
[Thu Jul 30 12:25:11 2009] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0
[Thu Jul 30 12:25:12 2009] [jk_ajp_common.c (729)]: received from ajp13 #43
[Thu Jul 30 12:25:12 2009] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 200
[Thu Jul 30 12:25:12 2009] [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of headers is = 1
[Thu Jul 30 12:25:12 2009] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1]
[Thu Jul 30 12:25:12 2009] [jk_ajp_common.c (729)]: received from ajp13 #672
[Thu Jul 30 12:25:12 2009] [jk_ajp_common.c (729)]: received from ajp13 #2
[Thu Jul 30 12:25:12 2009] [jk_ajp_common.c (1382)]: Into jk_endpoint_t::done, recycling connection
[Thu Jul 30 12:26:55 2009] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Thu Jul 30 12:26:55 2009] [jk_uri_worker_map.c (477)]: Attempting to map URI '/costing/prod/report/jsp/user_parm.jsp'
[Thu Jul 30 12:26:55 2009] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13Worker -> /costing/
[Thu Jul 30 12:26:55 2009] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13Worker
[Thu Jul 30 12:26:55 2009] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker
[Thu Jul 30 12:26:55 2009] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint
[Thu Jul 30 12:26:55 2009] [jk_ajp_common.c (1448)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 5988 seconds
[Thu Jul 30 12:26:55 2009] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service
[Thu Jul 30 12:26:55 2009] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Thu Jul 30 12:26:55 2009] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done
[Thu Jul 30 12:26:55 2009] [jk_ajp_common.c (642)]: sending to ajp13 #1358
[Thu Jul 30 12:26:55 2009] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0
[Thu Jul 30 12:26:56 2009] [jk_ajp_common.c (729)]: received from ajp13 #43
[Thu Jul 30 12:26:56 2009] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 200
[Thu Jul 30 12:26:56 2009] [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of headers is = 1
[Thu Jul 30 12:26:56 2009] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1]
[Thu Jul 30 12:26:56 2009] [jk_ajp_common.c (729)]: received from ajp13 #131
[Thu Jul 30 12:26:56 2009] [jk_ajp_common.c (729)]: received from ajp13 #1028
[Thu Jul 30 12:26:56 2009] [jk_ajp_common.c (729)]: received from ajp13 #1028
[Thu Jul 30 12:26:56 2009] [jk_ajp_common.c (729)]: received from ajp13 #1008
[Thu Jul 30 12:26:56 2009] [jk_ajp_common.c (729)]: received from ajp13 #928
[Thu Jul 30 12:26:56 2009] [jk_ajp_common.c (729)]: received from ajp13 #1015
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #623
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #973
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1006
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #993
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1009
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1004
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1009
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #972
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1022
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #975
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #964
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1008
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #982
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #989
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1009
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1017
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1010
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #996
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1020
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1018
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1016
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1008
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #973
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1019
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1026
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1011
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1026
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1008
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1028
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1013
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #995
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #986
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #992
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1024
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #977
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1012
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1004
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #985
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #992
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #996
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1024
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #976
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #999
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #995
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1025
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1009
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1011
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1020
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1009
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #984
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1016
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #988
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1003
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #993
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #992
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1017
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #988
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #988
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1000
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #997
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1027
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #996
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #975
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #979
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1023
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #977
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #998
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1000
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #978
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #999
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1024
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1015
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1027
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1022
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #993
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1008
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1028
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1002
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1010
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1021
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #994
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1012
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #994
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #999
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #991
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1008
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #993
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1011
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #995
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #991
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #994
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1012
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #971
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1022
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #988
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #973
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1018
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1003
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1002
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #989
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #983
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #985
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #989
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #991
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #980
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1013
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #983
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1002
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1024
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1027
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #984
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #989
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #999
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1025
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1017
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1024
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #985
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1011
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1011
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #976
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #998
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #985
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #997
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1012
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #972
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1025
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #989
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #990
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1014
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1021
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1011
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #996
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1009
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #981
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1002
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #999
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #985
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1004
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #972
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #991
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1019
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1019
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #995
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #971
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #993
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1004
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #989
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1014
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #991
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #976
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #999
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #993
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #990
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #990
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1010
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #998
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1021
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1004
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #985
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1013
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1017
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #995
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1000
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #980
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1028
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1008
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #996
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #991
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1008
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1028
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1008
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1004
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #1023
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #977
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #980
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #962
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #221
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (729)]: received from ajp13 #2
[Thu Jul 30 12:26:57 2009] [jk_ajp_common.c (1382)]: Into jk_endpoint_t::done, recycling connection
[Thu Jul 30 12:26:59 2009] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Thu Jul 30 12:26:59 2009] [jk_uri_worker_map.c (477)]: Attempting to map URI '/costing/prod/report/jsp/change_role.jsp'
[Thu Jul 30 12:26:59 2009] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13Worker -> /costing/
[Thu Jul 30 12:26:59 2009] [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13Worker
[Thu Jul 30 12:26:59 2009] [jk_worker.c (136)]: wc_get_worker_for_name, done found a worker
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (1404)]: Into jk_worker_t::get_endpoint
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (1448)]: In jk_endpoint_t::ajp_get_endpoint, time elapsed since last request = 4 seconds
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (1116)]: Into jk_endpoint_t::service
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (295)]: Into ajp_marshal_into_msgb
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (432)]: ajp_marshal_into_msgb - Done
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (642)]: sending to ajp13 #1378
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (884)]: ajp_send_request 2: request body to send 0 - request body to resend 0
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (729)]: received from ajp13 #43
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (483)]: ajp_unmarshal_response: status = 200
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (488)]: ajp_unmarshal_response: Number of headers is = 1
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (532)]: ajp_unmarshal_response: Header[0] [Content-Type] = [text/html;charset=ISO-8859-1]
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (729)]: received from ajp13 #672
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (729)]: received from ajp13 #2
[Thu Jul 30 12:26:59 2009] [jk_ajp_common.c (1382)]: Into jk_endpoint_t::done, recycling connection
[Thu Jul 30 12:28:33 2009] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Thu Jul 30 12:28:33 2009] [jk_uri_worker_map.c (477)]: Attempting to map URI '/cgi-netreg/dnetregister.cgi'
[Thu Jul 30 12:28:33 2009] [jk_uri_worker_map.c (599)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jake Hammerschmitt wrote:This is the page source that should be doing the work:


That's the container-generated servlet code. Not particularly useful.
 
Jake Hammer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is interesting...I found the *.jsp files in /costing/prod/report/versions/1.0.11/jsp

The change_role.jsp page looks like this:



The title is different...I think I'm not even looking in the right place.
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This clearly indicates that the original authors had no idea what they were doing. The forward renders everything else in that file moot -- it's just dumb luck that it isn't generating an Illegal State Exception.

What's really being rendered and sent to the browser is whatever is mapped at /mainPage.
 
Jake Hammer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

This clearly indicates that the original authors had no idea what they were doing.



I get that impression every time I see a query where clause 1=1

Is there anyplace, perhaps a config file somewhere, where I could increase the level of logging for tomcat? I would like to be able to see the access paths if possible.

I'm not seeing any files called 'mainPage' on this machine.
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Only if the app is instrumented for logging. Doubtful.

The path may be mapped in the web.xml deployment descriptor.
 
Jake Hammer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not seeing any reference to this page in the web.xml file. From what I understand, the server would then just find the closest match to the request in the context path and display that. Is this correct?

I've tried to access a few of the servlets directly by their name listed in the web.xml file and that doesn't seem to make a difference.

For example, my web.xml file has:

So I entered http://www.anycompany.com/com.anycompany.UserMachReport into my browser expecting to be redirected to the Machine Report page. However I remained on the main home page.

Also, I've increased the logging level in several of my configuration files:
- /etc/tomcat/conf/web.xml - Changed from "WARNING" to "DEBUG"
- /usr/costing/webapps/report_omega.xml - Changed debug from "0" to "trace"
- /usr/costing/report1_0.xml - Changed debeug from "4" to "trace"

All of the log files are now quite verbose and it looks like I am indeed working in the proper directory.

I'm past the point of trying to figure out what happened, now I'd just like to get this working again. Is there a way that I can access the .JSP page directly just to see if that is working?

Thanks again for any help!
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's the servlet declaration, not the mapping.
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jake Hammerschmitt wrote:I've tried to access a few of the servlets directly by their name listed in the web.xml file and that doesn't seem to make a difference.



That won't work (thank goodness). The URL to access servlets is defined by the servlet mappings.

The most important task at this point is finding out what /mainPage maps to because that's what's not creating the proper output.

So there are no originals anywhere to compare against? Just one copy kept in deployment?
 
Jake Hammer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried running a diff against the various versions I could find but still found no changes. I also compared the current set of code to the versions restored from back-up that were a couple weeks old but still came up 'empty-handed'

I decided to start this effort over from the beginning...I found an include in my /etc/httpd/httpd.conf file which brings in /etc/tomcat/conf/mod_jk.conf.

The mod_jk.conf file has several aliases in it for the various versions of code that are in the filing system (prod, QA, beta, alpha, omega, etc...). I tried the url for the QA system and got a page that works. The source from that page is below:



I removed the long list of options.

Now time to dig through some log files...
 
Jake Hammer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
BTW...in my web.xml file (assuming I'm looking at the correct one), the mainPage looks like it maps to the MainMenu servelet:

[code]
<servlet-mapping>
<servlet-name>MainMenu</servlet-name>
<url-pattern>/mainPage</url-pattern>
</servlet-mapping>
]/code]
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yup, that's what it does.
 
Jake Hammer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So just for the heck of it I tried to copy the QA version of the WebReportMain.class over to the prod directory (as it turns out MainMenu maps to WeReportMain later in the web.xml file)


Then I restarted the tomcat server. That didn't seem to help anything.

Can anyone tell me where the source for these class files are typically stored? So far what I've learned is that WEB-INF directories have a web.xml file that is used to configure many different things as well as a classes directory which is where I'll find the servlet class files. At the same level as the WEB-INF directory I can find a jsp directory that has all the .jsp pages in it. The servlet source directory still eludes me however. Any help in locating this would be greatly appreciated.

Thanks again!


 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There's no way of us knowing where the source for your Java classes is.
 
Jake Hammer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I understand that every implementation is different. I was simply hoping that since there seems to be some consistency with the jsp and WEB-INF directories that there may also be a common location for class source files.

Please remember that 3 days ago I learned of a new thing called Tomcat. ;)

I appreciate all the help I can get.
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're on a Unix-like system go someplace likely and typeThe servlet spec only discusses application structure (the /WEB-INF-type stuff), not project or build layout.
 
Bear Bibeault
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The Java source files are typically not any part of the web application at all. The class files resulting from compilation are placed in WEB-INF/classes, but where the sources file reside is anybody's guess.
 
Jake Hammer
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As it turns out, the database table that the servlet obtains is content from was in a state in which it could not be read. This must have been preventing the page from being constructed properly. When I checked this at the very beginning I was using a privileged account that was able to read the table regardless of it's state which masked the problem and sent me on this wild goose chase.

</JAVA-TOMCAT CRASH COURSE>

After learning about this technology I've become quite fond of it's flexibility.

Thanks to all who have helped me with this!

~Jake
 
reply
    Bookmark Topic Watch Topic
  • New Topic