`
pouyang
  • 浏览: 313936 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

websphere6.1.X安装与配置

阅读更多

 

 
 websphere6.1.X安装与配置
 
1、Red Hat Enterprise Linux AS release 4 上安装firefox2.0
下载firefox-2.0.tar.gz,gz包解压:tar zxvf xx.tar.gz
启动firefox若报错:找不到libstdc++.so.5,请安装compat-libstdc++-33-3.2.3-47.3.i386.rpm,安装rpm指令:rpm -ivh  ***.rpm
    (下载compat-libstdc++-33-3.2.3-47.3.i386.rpm地址: http://mirror.centos.org/centos/4/os/i386/CentOS/RPMS/compat-libstdc++-33-3.2.3-47.3.i386.rpm
    (若在本地机器上访问虚拟机需关闭虚拟机防火墙,指令#service iptables stop)
 
2、安装websphere
websphere版本: /opt/IBM/WebSphere/AppServer/bin/versionInfo.sh
websphere中JDK版本:/opt/IBM/WebSphere/AppServer/java/bin/java -version
 
3、启动websphere
启动管理平台
#cd /opt/IBM/WebSphere/AppServer/bin
#./startManager.sh 
http://ip:9060/admin
 
 
启动结点和服务(可页面操作)
#cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin
#./startNode.sh
#./startServer.sh server1
    
4、部署应用  
页面操作部署即可。
 
war包上传位置:
cd /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/wstemp/92668751/upload
 
安装位置(页面显示应用):
cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/XXX-NFCCell01
 
5、查看日志
      所有的应用日志的输出:
#cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1
#tail -200f SystemOut.log
 
单个应用的日志(log4j)
cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/log
 
注:SystemOut.log中单个应用的日志比log中单个应用的日志全,log中的日志有时可能会丢失。
     
 
其他问题
1)、设置was v6.1.x的jsp编译器使用jdk1.5的规范
was v6.1.x 默认情况下JSP编译器用1.3的规范来编译JSP文件,设置j1.5的规范如下(应用部署完后进行设置):
cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/UMPAY-NFCCell01/applications/cmccPay_war.ear/deployments/cmccPay_war/cmccPay.war/WEB-INF
在ibm-web-ext.xmi中增加
<jspAttributes xmi:id="JSPAttribute_113" name="jdkSourceLevel" value="15"/> 
保存后重启应用。也请同时删除 jsp 已经编译过的 class 文件(cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/temp/UMPAY-NFCNode01/server1/cmccPay_war/cmccPay.war )
 
2)、jsp编译后存放的位置
#cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/temp/UMPAY-NFCNode01/server1/cmccPay_war/webProject.war
 
 
    
 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics