问题1:
weblogic.servlet.jsp.CompilationException: Compilation of C:\bea\user_projects\domains\mydomain\myserver\.wlnotdelete\extract\myserver__appsdir_weboa_dir_weboa\jsp_servlet\__index.java failed.
解决:移除weblogic.jar包
问题2:
weblogic.management.ApplicationException: start() failed. { Module Name: DS, Error: weblogic.management.DeploymentException: Error creating bean with name 'txAdvice': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.Error: Unresolved compilation problems: The import weblogic cannot be resolved PoolConnection cannot be resolved to a type - with nested exception: [java.lang.Error: Unresolved compilation problems: The import weblogic cannot be resolved PoolConnection cannot be resolved to a type ] } at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2188) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2222) at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2169) at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(SlaveDeployer.java:3111) at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:1769) at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:352) at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229) at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136) at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360) at weblogic.Server.main(Server.java:32) >
解决:数据库连接失败,可能是数据源配置错误,或者是数据库没有打开!
问题3
weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to the embedded LDAP data files directory: C:\bea\user_projects\domains\mydomain\myserver\ldap\ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server. at weblogic.ldap.EmbeddedLDAP.ensureExclusiveAccess(EmbeddedLDAP.java:966) at weblogic.ldap.EmbeddedLDAP.initialize(EmbeddedLDAP.java:228) at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:815) at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:669) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:343) at weblogic.Server.main(Server.java:32) > <2012-8-5 下午12时07分23秒 GMT> <Emergency> <WebLogicServer> <BEA-000342> <Unable to initialize the server: weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to the embedded LDAP data files directory: C:\bea\user_projects\domains\mydomain\myserver\ldap\ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server.> *************************************************************************** The WebLogic Server did not start up properly. Exception raised: 'weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to the embedded LDAP data files directory: C:\bea\user_projects\domains\mydomain\myserver\ldap\ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server.' Reason: weblogic.server.ServiceFailureException: Could not obtain an exclusive lock to the embedded LDAP data files directory: C:\bea\user_projects\domains\mydomain\myserver\ldap\ldapfiles because another WebLogic Server is already using this directory. Ensure that the first WebLogic Server is completely shutdown and restart the server. ***************************************************************************
解决:重启就好,可能因为前一次weblogi未能正常关闭!