繁体   English   中英

您如何在Jdeveloper 11g中运行Spring 2.5.6示例应用程序?

[英]How do you run Spring 2.5.6 sample apps in Jdeveloper 11g?

我正在尝试在JDeveloper 11g中运行imageDB和jpetstore。 它可以正常编译,但是不会运行,并且weblogic服务器会引发错误。 有谁知道如何在Jdeveloper 11g中成功运行Spring 2.5.x示例应用程序?

尝试jpetstore示例时出现以下错误。

Jul 27, 2009 5:03:20 PM org.springframework.web.context.ContextLoader initWebApplicationContext
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing
XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.NoClassDefFoundError: Could not initialize class
org.springframework.aop.aspectj.AspectJExpressionPointcut

发生此问题是由于WebLogic Server应用程序类加载。

您需要以下weblogic.xml。

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
   <container-descriptor>
      <prefer-web-inf-classes>true</prefer-web-inf-classes>
   </container-descriptor>
</weblogic-web-app>

有关更多信息: http : //download.oracle.com/docs/cd/E13222_01/wls/docs92/programming/classloading.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM