websphere常用的命令

来源:互联网 发布:深入浅出数据分析阅读 编辑:程序博客网 时间:2024/04/30 12:00
  1. websphere 官方文档  
  2. http://www-01.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.express.doc/ae/twbs_thirdparty.html?cp=SS7JFU_8.5.5%2F1-13-1-12-1  
  3. 我的cxf应用程序使用的是cxf2.5.2,将 放在四个jar包放在ibm lib包下的endorsed_apis中  
  4.   
  5. javax.annotation-api-1.2.jar  
  6. jaxb-api-2.1.jar  
  7. jaxb-impl-2.1.13.jar  
  8. jaxws-api-2.1-1.jar  
  9. 这里说个最佳实践,因为jdk不管是sun的还是ibm的都会有冲突跟cxf,你可以先用个1.5的环境让你的cxf程序能够运行起来,这样所有的jar包依赖都在自己的lib中了  
  10.   
  11.   
  12. 以下是我使用的几个jar包冲突的放在共享库中,模块引用,类加载器引用了(有些可能不需要引用,我就没一一再试了)  
  13. <classPath>D:\IBM\WebSphere\AppServer\lib\oaJars\httpclient-4.3.1.jar</classPath>  
  14.   <classPath>D:\IBM\WebSphere\AppServer\lib\oaJars\httpcore-4.3.jar</classPath>  
  15.   <classPath>D:\IBM\WebSphere\AppServer\lib\oaJars\httpmime-4.3.1.jar</classPath>  
  16.   <classPath>D:\IBM\WebSphere\AppServer\lib\oaJars\xmlschema-core-2.1.0.jar</classPath>  
  17.   <classPath>D:\IBM\WebSphere\AppServer\lib\oaJars\javax.annotation-api-1.2.jar</classPath>  
  18.   <classPath>D:\IBM\WebSphere\AppServer\lib\oaJars\commons-logging-1.1.1.jar</classPath>  
  19.   
  20.   
  21. 部分问题处理:  
  22.   
  23.   
  24. 如果打开was启动不了(如果将websphere作为系统程序的话执行以下操作,如果不是忽略1)  
  25. 1、WSService  
  26. 2、和IBMWASjsglcz两个进程  
  27. 3、还有一个java进程  
  28.   
  29.   
  30. 打不开之前 先将java进程树关闭,确保WSService是运行的的,然后手动执行命令,将IBM。。。启动  
  31.   
  32.   
  33. 安装was,之后将  
  34.    
  35. 应用程序服务器 > server1 > 进程定义 > Java 虚拟机 的参数配置大一点 再配置jndi数据源  
  36.   
  37.   
  38.   
  39.   
  40. //找到解压后的  
  41. D:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\jsgls-czoaNode01Cell\gloa_war.ear\gloa.war  
  42. 查看类加载器结构  
  43. 应用程序服务器 > server1 > 已安装的应用程序 > gloa_war > 管理模块 > gloa.war > 类装入器查看器  
  44. 删除jar包中的jsp-api 和servlet-api,jstl-三个   
  45.      Caused by:   
  46. java.lang.NoClassDefFoundError: com.sun.crypto.provider.SunJCE  
  47. at java.lang.J9VMInternals.verifyImpl(Native Method)  
  48. at java.lang.J9VMInternals.verify(J9VMInternals.java:72)  
  49. at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)  
  50.   
  51.   
  52.        原因:   IBM有另外的 IBMJCE 实现类 。  
  53.   
  54.   
  55.        解决方法: 在 WEB-INF/lib 加入 jce.jar和 sunjce_provider.jar  
  56.        -Dcom.ibm.websphere.webservices.DisableIBMJAXWSEngine=true  
  57.   
  58.   
  59.        http://blog.csdn.net/a477997/article/details/38173863?utm_source=tuicool  
  60.   
  61.   
  62. /**/  
  63. http://stackoverflow.com/questions/25432259/failed-to-start-my-application-in-websphere-8-5-5  
  64. mine 20:51:15   
  65. http://www.webspherechina.net/club/thread-83873-1-1.html  
  66. mine 21:08:09   
  67.   
  68.   
  69.   
  70.   
  71.   
  72.   
  73. If you are running this project from IDE, Check your server configurations.  
  74. 上述jar包从 war包中删除试试  
  75. mine 21:08:17   
  76. http://stackoverflow.com/questions/16577535/build-path-is-incomplete-cannot-find-class-file-for-javax-servlet-servletcontex  
  77. mine 22:09:02   
  78. http://www.ibm.com/developerworks/cn/websphere/library/techarticles/1111_zhangt_opensource/1111_zhangt_opensource.html  
  79. 2015-07-02   
  80. mine 21:28:20   
  81. http://wenku.baidu.com/link?url=0Uz8Y9hwLhomWftTrWrln-S2F0qkUi8L6OgS_xR8PpeM-8RcTVQyo8n6nc1wWZZwnxykB2v-xh6joPezuMaSxUyCHlxilsl75dqlpMSS5kK  
  82. mine 22:17:39   
  83. 若想加载自己的jar,而不是websphere相应的jar。需:  
  84. 1.在应用服务器菜单中,应用程序类载入器策略设为“多个”,将应用程序类装入方式设为“最后装入父类”;  
  85. 2.在应用程序菜单中,选择相应war包,设置类载入器方式为“parent_last”,设置WAR 类载入器策略为“模块”。  
  86. 3.重启websphere  
  87. [@more@]  
  88.   
  89.   
  90. 手动修改server的jvm配置(http://down.51cto.com/data/515642)  
  91. D:\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\jsgls-czoaNode01Cell\nodes\jsgls-czoaNode01\servers\server1\server.xml  
  92.   
  93.   
  94.   
  95.   
  96.   
  97.   
  98.   
  99.   
  100. java.lang.verifyerrorjvmvrfy013加载约束违反 应该是你的程序的lib中有jar包,was类路径中也有,删除自己程序中的,加入共享库中  
  101. http://blog.csdn.net/siwangying/article/details/42081823 如:找到报错的地方 (Ljavax/xml/stream/XMLEventReader;)Ljava/lang/Object;, pc=0 找到该类所在的jar  
  102.   
  103.   
  104.   
  105.   
  106.   
  107.   
  108.   
  109.   
  110. 为工作流修改sun的jce配置,was默认的是ibm jce  
  111. http://www.ibm.com/developerworks/cn/websphere/library/techarticles/0306_yu/yu.html  
  112. http://blog.sina.com.cn/s/blog_4a7318860100bi2j.html  
  113. 修改安全认证配置,增加jar包:  
  114. #  cd opt/IBM/WebSphere/AppServer/java/jre/lib/security/  
  115. 编辑文件java.security  
  116. # vi java.security  
  117. 在security.provider.9后面加一条  
  118. security.provider.10=com.sun.crypto.provider.SunJCE  
  119.    
  120. 将sunjce_provider.jar和jce.jar复制到opt/IBM/WebSphere/AppServer/java/jre/lib/ext下  
  121. # cp /usr/local/sunjce_provider.jar opt/IBM/WebSphere/AppServer/java/jre/lib/ex  
  122. # cp /usr/local/jce.jar opt/IBM/WebSphere/AppServer/java/jre/lib/ex  
  123.   
  124.   
  125.   
  126.   
  127. Websphere(WAS)安装war包后项目无法启动或删除,同时Websphere(WAS)无法关闭或启动的解决办法  
  128. http://blog.csdn.net/dreamcode/article/details/38367757  
  129. 1、杀掉WAS进程,强制关闭WAS  
  130. 执行命令:ps -ef|grep java  
  131. 杀掉进程:kill -9 16974064  
  132.   
  133.   
  134. 2、手动删除已安装war包及相关配置文件  
  135. (1)    删除war包:rm –rf /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/localhostNode01Cell/xxx_war.ear  
  136. (2)    删除对应的配置文件:rm –rf /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/localhostNode01Cell/applications/xxx_war.ear  
  137.   
  138.   
  139. 3、 启动WAS上某个Profile,进入目录如  
  140. /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin  
  141. 执行启动命令:sh ./startServer.sh server1  
  142.   
  143.   
  144. 遇到启动不了又删不掉项目的话  
  145. 就serverindex.xml 找到这个文件,看清楚是在node下的,将gloa_war 删除掉,下面的一行,启动后控制台卸载,ok  
  146.     <extendedApplicationDataElements xmi:id="ExtendedApplicationData_1436502961095" applicationName="gloa_war" standaloneModuleName="gloa.war"/>  
  147.   
  148.   
  149.   
  150.   
  151. 工作流crm.xml要加入  
  152.  <configValue key="AppServer" desc="配置应用服务器">websphere</configValue>  
  153.   
  154.   
  155. 乱码问题  
  156. 1.修改服务器编码类型:  
  157. 1)前台修改方法:  
  158. 服务器-》服务器类型-》WebSphere Application Server-》 SuiteServer -》 进程定义 -》 Java 虚拟机  
  159. 通用 JVM 参数-》-Dfile.encoding=UTF-8 -Ddefault.client.encoding=UTF-8  
  160. 2)后台修改方法:  
  161. /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/10Cell01/nodes/10Node01/servers/SuiteServer  
  162. 修改其中的server.xml中的  
  163. 参数genericJvmArguments="-Dfile.encoding=UTF-8 -Ddefault.client.encoding=UTF-8"  
  164.   
  165.   
  166.   
  167.   
  168.  http://cxf.apache.org/docs/application-server-specific-configuration-guide.html  
0 0
原创粉丝点击