简体   繁体   English

找不到属性的设置方法-带有Eclipse的Weblogic

[英]Unable to find setter method for attribute - weblogic with eclipse

I am getting the exception in the title for some attribute of a custom tag. 我在标题中遇到了自定义标记的某些属性的异常。 This happens when I run the application locally with eclipse indigo (Weblogic 10.3.3). 当我使用eclipse indigo(Weblogic 10.3.3)在本地运行应用程序时,会发生这种情况。

Now obviously the setter method exists, so I am not sure what the problem is. 现在显然存在setter方法,所以我不确定是什么问题。 I am also able to resolve this issue by cleaning the project (using the Project->Clean option), which re-compiles all the .java files in the project and takes a lot of time (I also have to restart the server and redeploy the application for this). 我还可以通过清理项目(使用Project-> Clean选项)来解决此问题,这将重新编译项目中的所有.java文件,并且花费大量时间(我还必须重新启动服务器并重新部署)该应用程序)。

Is there aa less annoying way to resolve this issue? 有没有更烦人的方法来解决此问题?

I know this behavior from Rational Software Architect (Eclipse 3.6 based, WebSphere) and Eclipse < Version 4 (with GlassFish). 我从Rational Software Architect(基于Eclipse 3.6的WebSphere)和Eclipse <版本4(带有GlassFish)中知道了这种行为。

First: Eclipse 4 (or Rational software version >= 9 which bases on Eclipse 4.2.2) makes a lot of things better. 首先:Eclipse 4(或基于Eclipse 4.2.2的Rational软件版本> = 9)使很多事情变得更好。 Try to update if not already on Juno. 如果尚未在Juno上尝试更新。 Second: Turn of the hot deployment. 第二:轮流进行热部署。 The behavior you see is a mix up of old and new sources which explains why a clean does fix the problem. 您看到的行为是新旧资源的混合,这说明了清除确实可以解决问题的原因。 The simple question is if you really really need hotdeployment... 一个简单的问题是您是否真的需要热部署...

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

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