`
jkbjxy
  • 浏览: 83400 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

WebLogic的错误编译错误

阅读更多

问题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未能正常关闭!

分享到:
评论

相关推荐

    weblogic12c部署webservice错误问题WSSERVLET11

    - 尝试清理并重新构建项目,有时候编译错误或遗漏的文件会导致这种问题。 - 使用WebLogic控制台进行部署,查看详细的部署日志,这有助于定位问题的具体原因。 4. **服务器状态**: - 如果WebLogic Server正在...

    WebLogic创建根上下文

    虽然在示例中为空,但在实际使用中可以设置JSP编译选项、错误报告等。 ##### 4. `container-descriptor`元素 此元素用于配置容器级别的设置,如异常处理、事务管理等。 ##### 5. `context-root`元素 此元素非常...

    张浩Weblogic巡检手册

    - **预编译语句缓存**:利用PreparedStatement缓存机制减少数据库往返次数。 - **本地接口**:使用本地接口或引用传递方式减少序列化开销。 - **连接回退缓冲**:配置TCP允许接入连接的最大数量。 #### 三、总结...

    svn和weblogic的自动同步

    这种双重操作不仅增加了开发人员的工作负担,还可能引入人为错误。为了简化这一过程并提高效率,可以采用自动化工具来实现SVN与WebLogic服务器之间的自动同步。 #### 原理介绍 实现SVN与WebLogic服务器之间的自动...

    myeclips+weblogic文档配置

    - WebLogic 8仅支持JDK 1.4,而更高版本的JDK(如JDK 1.5)编译的程序将无法在该版本的WebLogic上运行,具体表现为`Unsupported major.minor version`错误。 #### 三、配置步骤 ##### 1. 安装与配置WebLogic 9.2 ...

    weblogic.xml说明

    7. **jsp-descriptor**:定制JSP页面的编译和处理行为,如设置JSP的编译选项。 8. **auth-filter**:定义认证过滤器,用于在请求到达Servlet之前进行身份验证。 9. **container-descriptor**:提供Web容器的全局...

    struts2 sping hibernate 部署到weblogic8.1.6上所需要jar包

    目前在将struts2部署到weblogic8.1.6的时候,总会提示很多莫名其妙的错误,后来经过查找时因为struts2是需要jdk1.5的,但是weblogic是使用的是1.4,所以在使用的时候需要将struts2和相关的jar文件用jdk1.4编译一下。...

    MyEclipse+WebLogic配置详解[参考].pdf

    WebLogic 8不支持JDK 1.5,这意味着使用JDK 1.5编译的程序在WebLogic 8上运行时会报"Unsupported major.minor version 49.0"错误。解决此问题的方法是使用JDK 1.4重新编译代码,或者升级WebLogic到9.2版,因为...

    weblogic 开发经验汇总

    示例中的程序由于没有明确接口A中的x,会引发编译错误。可以通过`A.x`来引用接口中的常量,而使用`super.x`来引用父类B的实例变量。 2. **Java Server Page (JSP) 与 Servlet** - **联系**:JSP是Java EE中的视图...

    Installation Guide for Oracle WebLogic Server

    逆向工程、拆卸或反编译本软件(除非法律要求用于互操作性)是被禁止的。 #### 三、安装前准备 1. **系统要求**:在安装之前,请确保操作系统满足 Oracle WebLogic Server 12c (12.1.1) 的最低要求。这些要求包括...

    weblogic扩展JVM扩容

    在WebLogic服务器运行过程中,如果JVM内存配置过低,当应用程序对内存的需求超过当前设置时,就会触发内存溢出错误(如`OutOfMemoryError`),进而可能导致WebLogic服务中断。 #### 四、解决方案 为了解决上述问题...

    Apache-WebLogic plub-in插件的安装

    如果没有,你需要重新编译Apache,添加`--enable-module=so`和`--enable-rule=SHARED_CORE`参数进行配置。 一旦Apache支持DSO,你就可以安装WebLogic的插件模块。在WebLogic的lib目录(例如:lib/linux)下,找到...

    Weblogic安装及配置手把手教你(Windows下)

    3. **应用部署失败**:检查WAR文件格式是否正确,以及应用中是否存在编译错误。 #### 七、总结 通过以上步骤,读者应该能够顺利完成WebLogic在Windows环境下的安装与配置,并且能够成功部署和运行应用程序。虽然...

    Apache+weblogic基础知识

    1. **安装与配置**:Apache的安装过程相对简单,可以通过源码编译或者二进制包安装。配置主要通过修改httpd.conf配置文件,设定服务器监听端口、服务器根目录、虚拟主机等关键参数。 2. **模块管理**:Apache支持...

    Agile_PLM_on_Oracle_ WebLogic_Server

    同时,文档也提到了错误报告的途径,强调该软件信息可能不完整且不保证无误,鼓励用户反馈发现的任何错误。 关于文档的适用范围,提到了软件不是为使用在本质上危险的应用程序而开发的,例如可能导致人身伤害的应用...

    如何在Weblogic中部署app

    在WebLogic中部署的应用通常需要先进行编译和打包成符合Java EE规范的格式,例如将Java源文件编译为字节码并打包成`.jar`或`.war`文件,再整合到`.ear`文件中。 2. **工具**:为了提高效率,开发者通常会使用集成...

    [转]使用Ant管理配置Weblogic

    通过以上知识点,我们可以理解如何利用Ant来自动化WebLogic Server的管理工作,提高开发效率,减少错误,并使得部署流程更加可靠和一致。这在大型项目中尤其重要,因为手动管理配置会变得极其繁琐和不可靠。

    Eclipse中集成weblogic时的JDK选择

    在Eclipse中集成WebLogic服务器时,选择正确的JDK版本是非常关键的步骤,因为这直接影响到应用程序的编译、运行以及服务器的稳定性。本文将详细阐述这个过程中的知识点。 首先,JDK(Java Development Kit)是Java...

    Weblogic9异常解决nested errors.txt

    标题和描述均提到了“Weblogic9异常解决nested errors”,这指向了在使用WebLogic Server 9版本时可能遇到的特定错误处理问题。WebLogic Server是Oracle公司提供的一款功能强大的应用服务器,它支持多种标准协议,如...

Global site tag (gtag.js) - Google Analytics