`
我改名了
  • 浏览: 87803 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

ofbiz 之部署常见错误集锦

 
阅读更多

本文以ofbiz 11.04 为蓝本:

1:

   错误描述:

   Multiple markers at this line
 - implements com.sunyard.cpsp.base.biz.IBizFlowService.prepare
 - The method prepare() of type CheckInquiryService must override a superclass 
  如果某一天你发现你的Eclipse 中 override 方法集体报上述错误的时候,那么你的Eclipse java编译版本低了。

   解决办法:
   右键项目-->properties---->java compiler 中将Compiler compiance settings 设为1.6

   这个错误一般发生在低级Eclipse版本中,当然偶尔也会发生在高级版本中。

2:

   错误描述:

   The method getContextPath() is undefined for the type ServletContext

   framework\webapp\src\org\ofbiz\webapp\control\ControlServlet.java  78行
   解决办法:

   发生这个错误的原因是由于.classpath中
   <classpathentry kind="lib" path="framework/base/lib/j2eespecs/tomcat-6.0.32-servlet-api.jar"/>

   <classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/> 这两者的位置造成的。

   把GROOVY_SUPPORT 的配置 放到tomcat-6.0.32-servlet-api.jar下面就可以了  .

3:

   错误描述:eclipse 中 dom4j 不起作用 ,报错

   解决办法 :把classpath 中tidy.jar 去掉

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics