从命令行更新网络中的耳朵 [英] Update ear in web sphere from command line

查看:432
本文介绍了从命令行更新网络中的耳朵的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个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管理界面更新了耳朵,没有任何配置。



我做错了什么,还有什么额外的步骤可以成功更新我的耳朵?

解决方案

您正在使用错误的命令。你应该使用这样的东西:


AdminApp.update('MyAppEAR','app','[-operation update -contents
MyApp.ear -nopreCompileJSPs -installed.ear.destination C:\WAS\MyAppEAR
-nodistributeApp -useMetaDataFromBinary -nodeployejb -createMBeansForResources -noreloadEnabled -nodeployws -validateinstall warn -noprocessEmbeddedConfig -filepermission。 .dll = 755#。 .a = 755#。 .sl = 755
-noallowDispatchRemoteInclude -noallowServiceRemoteInclude -asyncRequestDispatchType DISABLED -nouseAutoLink -noenableClientModule -clientMode isolated - novalidateSchema -MapModulesToServers [[MyApp MyApp.war,WEB-INF / web.xml WebSphere:cell = Node02Cell,node = Node02,server = server1]]]))


此外,在WebSphere Application Server中,您可以通过管理控制台记录您发出的每个命令。



步骤 p>


  1. 登录到管理控制台与管理用户(例如,单击系统管理 - >控制台首选项

  2. 检查启用命令帮助通知和日志命令辅助命令 / li>
  3. 单击应用按钮保存更改



如果您选中日志命令辅助命令,您还可以在日志文件< 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:

AdminApp.update('MyAppEAR', 'app', '[ -operation update -contents MyApp.ear -nopreCompileJSPs -installed.ear.destination C:\WAS\MyAppEAR -nodistributeApp -useMetaDataFromBinary -nodeployejb -createMBeansForResources -noreloadEnabled -nodeployws -validateinstall warn -noprocessEmbeddedConfig -filepermission ..dll=755#..so=755#..a=755#..sl=755 -noallowDispatchRemoteInclude -noallowServiceRemoteInclude -asyncRequestDispatchType DISABLED -nouseAutoLink -noenableClientModule -clientMode isolated -novalidateSchema -MapModulesToServers [[ MyApp MyApp.war,WEB-INF/web.xml WebSphere:cell=Node02Cell,node=Node02,server=server1 ]]]' )

Also, in WebSphere Application Server you can log every command you issue through Administrative Console.

Steps

  1. login to admin console with administrative user (e.g. wasadmin)
  2. click "System Administration" -> "Console Preferences"
  3. check "Enable command assistance notifications" and "Log command assistance commands"
  4. 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"

这篇关于从命令行更新网络中的耳朵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆