问题描述
我已经开发了一个java耳朵,我通过使用eclipse中的发布按钮从我的本地eclipse部署到我的本地websphere 8.5。当我尝试从命令行部署我的耳朵时,我在尝试访问网页时收到错误。
我从普通的行更新我的耳朵,如下所示:
$ {was.dir} / profiles / $ {was.profile} /bin/wsadmin.sh -lang jython -username $ {was.username} -password $ {was.password} -c AdminApplication.updateApplicationUsingDefaultMerge('$ { was.app.name}','$ {build.dir} / $ {ear.name}')
部署成功,但是当我通过访问我的应用程序我的网络浏览器我收到以下消息,而不是看到我的应用程序:
错误404:com.ibm.ws.webcontainer.servlet.exception.NoTargetForURIException:没有配置目标servlet对于uri:/wwww/index.html
我已经通过Websphere的Web管理界面更新了耳朵,没有任何配置。
我做错了什么,还有什么额外的步骤可以成功更新我的耳朵?
您正在使用错误的命令。你应该使用这样的东西:
此外,在WebSphere Application Server中,您可以通过管理控制台记录您发出的每个命令。
步骤 p>
- 登录到管理控制台与管理用户(例如,单击系统管理 - >控制台首选项
- 检查启用命令帮助通知和日志命令辅助命令 / li>
- 单击应用按钮保存更改
如果您选中日志命令辅助命令,您还可以在日志文件< WAS_HOME> \profiles\< PROFILE_NAME> \logs\server1\commandAssistanceJythonCommands.log
I have developed an java ear that i deploy from my local eclipse to my local websphere 8.5 by using the publish button in eclipse. When I try to deploy my ear from command line I get an error after I try to access the webpage.
I update my ear from common line like this:${was.dir}/profiles/${was.profile}/bin/wsadmin.sh -lang jython -username ${was.username} -password ${was.password} -c AdminApplication.updateApplicationUsingDefaultMerge('${was.app.name}', '${build.dir}/${ear.name}')
The deployment is successful but when I access my application thru my web browser I get the following message instead of seeing my application:
Error 404: com.ibm.ws.webcontainer.servlet.exception.NoTargetForURIException: No target servlet configured for uri: /wwww/index.html
I have verified that the ear is ok by updating it thru the web admin interface of websphere without any configuration.
What am I doing wrong or what additional steps do I need to do to successfully update my ear?
You are using wrong command. You should use something like this:
Also, in WebSphere Application Server you can log every command you issue through Administrative Console.
Steps
- login to admin console with administrative user (e.g. wasadmin)
- click "System Administration" -> "Console Preferences"
- check "Enable command assistance notifications" and "Log command assistance commands"
- click Apply button to save changes
You can see commands in help portlet on the upper-right side of admin console:
If you checked "Log command assistance commands", you can also see jython commands in a log file "<WAS_HOME>\profiles\<PROFILE_NAME>\logs\server1\commandAssistanceJythonCommands.log
"
这篇关于从命令行更新网络中的耳朵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!