Weblogic 发布/启停/排错

从FileZilla (Host: sftp://lgtca1ows01  fzou/decathlon.)上下载到/home/admin;

ear存到 /opt/appdata/deploy

su - oraclew

manage_application.sh list


//查看weblogic的状态

wlsctl status

wlsctl stop

//Weblogic发布

wlsctl stop HR01 &&  manage_application.sh redeploy --name myprogress --target HR01 --ear /opt/appdata/deploy/myprogress.ear --plan /opt/appdata/deploy/plan/plan-myprogress.xml && wlsctl  start HR01


manage_application.sh redeploy --name masterdatasadmin --target OFFER01 --ear /opt/appdata/deploy/masterdatasadmin.ear  --plan /opt/appdata/deploy/plan/plan-masterdatasadmin.xml

wlsctl  restart OFFER01


 

//检查发布是否ok

locate *capetm*web.xml

ls –l

检查日期是否更新

Tattoo是weblogic

wlsctl stop LOG01 && manage_application.sh redeploy --name tattoo --target LOG01 --ear /opt/appdata/deploy/tattoo.ear --plan /opt/appdata/deploy/plan/plan-tattoo.xml && wlsctl  start LOG01

//重启 FLUX01要停mqflowsd

root# service mqflowsd stop

ps -ef|grep FLUX01

Kill -9  [2次当前进程(前一个)]

wlsctl restart FLUX01

root# service mqflowsd start

 

//检查log
/u01/app/weblogic/node/lgtca1ows03/servers/RETURN/logs

 

//Get the bar version

/u01/app/weblogic/node/lgtca1ows10/servers/FLUX01/tmp/_WL_user/capetm/lvuxh9/war/META-INF/maven/com.oxit.cape/capetm/pom.properties

 

//查看pool的配置

/u01/app/weblogic/node/cahrz1ows01/config/jdbc

Vim myteam-jdbc.xml

*所有修改都要在console里面

http://cahrz1ows01:9000/console/

weblogic /weblogic11g;


Trouble-shooting

Error creating bean with name 'persistenceUnitManager' defined in ServletContext resource [/WEB-INF/spring-config/datasource.xml]: Cannot resolve reference to bean 'mytimeweekly_DS' while setting bean property 'dataSources' with key [TypedStringValue: value [mytimeweekly-ds], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mytimeweekly_DS': Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Unable to resolve 'jdbc.mytimeweekly_db'. Resolved 'jdbc'; remaining name 'mytimeweekly_db'

 检查jdbc/mytimeweekly_db是不是在发布的instance上,看jdbc pooltarget里有没有

请使用浏览器的分享功能分享到微信等