[英]How do I debug server-side errors?
Our Java application is going through migration from a WAS 7 server to a WAS 8.5 server - and for some reason, even though our application shows as Deployed in our Admin Console, the application itself isn't coming up on our assigned URL.我们的 Java 应用程序正在从 WAS 7 服务器迁移到 WAS 8.5 服务器 - 出于某种原因,即使我们的应用程序在我们的管理控制台中显示为已部署,应用程序本身也不会出现在我们分配的 URL 上。
I've ruled out the possibility of a code-related problem by testing the application in my local server, so I know the problem is with some server settings - but, almost all of my experience in CS is in coding, and I don't know how to figure out where those settings have gone awry.我已经通过在我的本地服务器上测试应用程序排除了与代码相关的问题的可能性,所以我知道问题出在某些服务器设置上——但是,我在 CS 方面的几乎所有经验都在编码中,我不知道不知道如何找出这些设置哪里出错了。
What options do I have to debug my application's server-side issues?我有哪些选项可以调试我的应用程序的服务器端问题?
You don't specify what you mean by "coming up," so I'll start with the broad suggestions.您没有具体说明“提出来”是什么意思,所以我将从广泛的建议开始。
A couple things to sanity check:几件事情要检查:
logs
directory, especially the SystemOut.log and the ffdc folder.如果所有这些看起来都是正确的,或者应用程序已停止且无法启动,请检查配置文件logs
目录中的服务器日志,尤其是 SystemOut.log 和 ffdc 文件夹。 It may be that an error is occuring when you go to access it, or when it is starting up.可能是你去访问的时候出错了,或者启动的时候出错了。 Those should appear there.那些应该出现在那里。If all of that fails, you may way to break out the debugger (if that's allowed in your environment) and see if your code is even being reached.如果所有这些都失败了,您可能会中断调试器(如果您的环境允许这样做)并查看是否甚至可以访问您的代码。
Check Server Logs: in WAS Console you can find the logs of your server.检查服务器日志:在 WAS 控制台中,您可以找到服务器的日志。
Debug in local server.在本地服务器调试。 By deploying an ear in your local server, you can then start the server in loggin mode.通过在本地服务器中部署 ear,您可以在登录模式下启动服务器。 Then you shuld stop and restart your websphere aplication and it will be stoped in selected breakpoints.然后你应该停止并重新启动你的 websphere 应用程序,它将在选定的断点处停止。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.