我遇到的weblogic安装部署和连接池中的错误 和解决办法

Posted on 2010-10-08 20:51  LuckCOffey  阅读(6125)  评论(0)    收藏  举报

今天的weblogic在部署成功项目的时候报出拉一个错误(以下是写给自己的,不一定我的语言说的是正确的表达是正确的,也可能是错误的,如果有人看的话,仅作参考,我不能保证你按照我的方法能做对)

weblogic.management.ManagementException: weblogic.management.ManagementException: [Deployer:149164]The domain edit lock is owned by another session in exclusive mode - hence this deployment operation cannot proceed.

 at weblogic.management.deploy.ApplicationsDirPoller.doActivate(ApplicationsDirPoller.java:246)

 at weblogic.management.deploy.GenericAppPoller.doit(GenericAppPoller.java:275)

 at weblogic.management.deploy.GenericAppPoller$PollerTimerListener.timerExpired(GenericAppPoller.java:476)

 at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)

 at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)

 Truncated. see log file for complete stacktrace

我没有遇到这种情况问人的

解决的时候要看congfig。xml和你的weblogic'中的database中是不是写正确啦

 

 

解决如下

先是找到domain下的config目录下的config.xml打开看看:

<?xml version='1.0' encoding='UTF-8'?>

<domain xmlns="http://www.bea.com/ns/weblogic/920/domain" xmlns:sec="http://www.bea.com/ns/weblogic/90/security" xmlns:wls="http://www.bea.com/ns/weblogic/90/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/90/security/wls http://www.bea.com/ns/weblogic/90/security/wls.xsd http://www.bea.com/ns/weblogic/920/domain http://www.bea.com/ns/weblogic/920/domain.xsd http://www.bea.com/ns/weblogic/90/security/xacml http://www.bea.com/ns/weblogic/90/security/xacml.xsd http://www.bea.com/ns/weblogic/90/security http://www.bea.com/ns/weblogic/90/security.xsd">

  <name>pingan_domain</name>

  <domain-version>10.3.0.0</domain-version>

  <security-configuration>

    <name>pingan_domain</name>

    <realm>

      <sec:authentication-provider xsi:type="wls:default-authenticatorType"></sec:authentication-provider>

      <sec:authentication-provider xsi:type="wls:default-identity-asserterType">

        <sec:active-type>AuthenticatedUser</sec:active-type>

      </sec:authentication-provider>

      <sec:role-mapper xmlns:xac="http://www.bea.com/ns/weblogic/90/security/xacml" xsi:type="xac:xacml-role-mapperType"></sec:role-mapper>

      <sec:authorizer xmlns:xac="http://www.bea.com/ns/weblogic/90/security/xacml" xsi:type="xac:xacml-authorizerType"></sec:authorizer>

      <sec:adjudicator xsi:type="wls:default-adjudicatorType"></sec:adjudicator>

      <sec:credential-mapper xsi:type="wls:default-credential-mapperType"></sec:credential-mapper>

      <sec:cert-path-provider xsi:type="wls:web-logic-cert-path-providerType"></sec:cert-path-provider>

      <sec:cert-path-builder>WebLogicCertPathProvider</sec:cert-path-builder>

      <sec:name>myrealm</sec:name>

    </realm>

    <default-realm>myrealm</default-realm>

    <credential-encrypted>{3DES}jr+P6VwvKWplWUZm4dRtA/QydpWeIbEL1MfkYC0paXOlSMa5HYO9eq7NijwqCqxpV/02eTDkP1jfuHFYS+FMPxLmfJrJN6CR</credential-encrypted>

    <node-manager-username>weblogic</node-manager-username>

    <node-manager-password-encrypted>{3DES}EWx8Cx3TkOYwW/8guQ5f/g==</node-manager-password-encrypted>

  </security-configuration>

  <server>

    <name>AdminServer</name>

    <listen-address></listen-address>

  </server>

  <embedded-ldap>

    <name>pingan_domain</name>

    <credential-encrypted>{3DES}S0d4+hvvGreJc8HsO5yZpIYUcSsjoIr1qw2p44hNfvo=</credential-encrypted>

  </embedded-ldap>

  <configuration-version>10.3.0.0</configuration-version>

就是这一段,如果没有的话就是weblogic的加启动,你的项目并没有真正的部署

  <app-deployment>

    <name>_appsdir_paserver_dir</name>

    <target>AdminServer</target>

    <module-type>war</module-type>

    <source-path>autodeploy\paserver</source-path>

    <security-dd-model>DDOnly</security-dd-model>

    <staging-mode>nostage</staging-mode>

  </app-deployment>

到这里是分界线

——————————————————————————————————————————————————

这里是你的连接的东西即你weblogic里的database的东西,看看对照一下有没有错误,如果有的话就去weblogic中去改正

  <admin-server-name>AdminServer</admin-server-name>

  <jdbc-system-resource>

    <name>JDBC Data Source-0</name>

    <target>AdminServer</target>

    <descriptor-file-name>jdbc/JDBC_Data_Source-0-3407-jdbc.xml</descriptor-file-name>

  </jdbc-system-resource>

  <jdbc-system-resource>

    <name>JDBC Data Source-1</name>

    <target>AdminServer</target>

    <descriptor-file-name>jdbc/JDBC_Data_Source-1-3408-jdbc.xml</descriptor-file-name>

  </jdbc-system-resource>

  <jdbc-system-resource>

    <name>JDBC Data Source-2</name>

    <target>AdminServer</target>

    <descriptor-file-name>jdbc/JDBC_Data_Source-2-3409-jdbc.xml</descriptor-file-name>

  </jdbc-system-resource>

</domain>

 

 

因为我的QQ空间在公司的时候是屏蔽拉,所以就集体啊迁移到博客园上啦,给大家分享一下

 

——————————————————————————————————————————————————

wenblogic部署想的时候应该注意的3个地方

   1:  是不是设置啦domain

  2:   weblogic使用的jdk是不是自己自带的jdk,不能用你自己单独安装的jdk  

 如果部署的时候还出现问题,就看第三条

 

找到你的E:\bea8.1\user_projects\domains\mydomain下的config.xml   有没有

    <Application Name="_appsdir_hxjj_dir"
        Path="E:\bea8.1\user_projects\domains\mydomain\applications"
        StagingMode="nostage" TwoPhase="true">
        <WebAppComponent Name="hxjj" Targets="myserver" URI="hxjj"/>
    </Application>

 

 

如果没有最简单的方法就是找你的做同一个项目的同事的webligic  下的config.xml下的就添加上去

注意: Path="E:\bea8.1\user_projects\domains\mydomain\applications"  路径要写对  ,这个路径是你的项目部署后的路径

 

——————————————————————————————————————————————————

 

配置好连接池   test      成功                 Connection test succeeded

但是save是报错    解决办法  

                           1. 你先将Deployments中pingane和paserver的应用停掉, 然后删除掉;

                           2.将JDBC下Data Sources下你配置的数据源都删除掉

                           3. 重新配置数据源

                            4.在Deployments中重新添加应用部署

 

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3