|Re: Deploying remote web resources [message #685042 is a reply to message #684891]
||Thu, 16 June 2011 17:18
| Larry Isaacs
Registered: July 2009
On 6/16/2011 8:46 AM, ziggy wrote:|
> By everything appears to be in place i meant the folder that was
> deployed contained everything i was expecting. i..e all the jsp files,
> libraries and all the class files in WEB-INF/classes.
> The tomcat log does not show any errors during deployment. Did you mean
> i can debug the deployment?
With the testing I've done, I would expect the project to publish
correctly. However, I haven't tested a scenario with as much "linking"
as yours. I would say the odds strongly favor something being wrong in
the webapp, but a publishing problem can't be ruled out completely.
When the webapp doesn't respond as expected, determining where it's
going wrong and what it's doing instead can be a challenge sometimes.
This is especially true for "can't find resource" errors, where this is
the expected result for tons of different mistakes. Sometimes the
problem can be found by double checking things. When this doesn't work,
running the server in debug mode is one way to try to discover what is
actually happening. Unfortunately, if things are going wrong before it
reaches your code, it means you may need additional source, such as
Tomcat or Struts source.
An alternate approach is to use logging to determine what's going wrong.
However, figuring out how to configure the logging to give you useful
information can be a challenge too. You can turn on DEBUG logging for
everything, but then you have to scan through lots of noise to find what
you need. This approach also assumes logging is actually implemented
where it's needed to show you what's going wrong. Sometimes this proves
not to be true.
It has been a long time since I played with Struts. I do recall one
general impression, which was that simple mistakes can result in things
not working with virtually no clue as to what I did wrong. I usually
can't find my mistakes just by examination, so I'm pretty quick to grab
source and start debugging.
Powered by FUDForum
. Page generated in 0.02206 seconds