<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_夜淡茶清.shenfx</title><subtitle type="text">不积跬步,无以至千里,不积小流,无以成江海</subtitle><id>http://feed.cnblogs.com/blog/u/17096/rss</id><updated>2011-11-26T16:10:08Z</updated><author><name>shenfx</name><uri>http://www.cnblogs.com/shenfx318/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/shenfx318/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/17096/rss"/><entry><id>http://www.cnblogs.com/shenfx318/archive/2011/11/23/2259657.html</id><title type="text">Missing required bundle org.eclipse.core.databinding.beans_0.0.0</title><summary type="text">开发环境：eclipse 3.7.1 RCP SDK问题产生过程：新建eclipse RCP工程，使用windowbuilder设计editor界面，将某控件（如：label）进行数据绑定。eclipse 后台生成代码：protectedDataBindingContextinitDataBindings(){DataBindingContextbindingContext=newDataBindingContext();IObservableValuelblSysNoObserveTextObserveWidget=SWTObservables.observeText(lblSysNo);I</summary><published>2011-11-22T16:23:00Z</published><updated>2011-11-22T16:23:00Z</updated><author><name>shenfx</name><uri>http://www.cnblogs.com/shenfx318/</uri></author><link rel="alternate" href="http://www.cnblogs.com/shenfx318/archive/2011/11/23/2259657.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/shenfx318/archive/2011/11/23/2259657.html"/><content type="html">&lt;p&gt;&lt;strong&gt;开发环境：&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;eclipse 3.7.1 &amp;nbsp;RCP SDK&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;问题产生过程：&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;新建eclipse RCP工程，使用windowbuilder设计editor界面，将某控件（如：label）进行数据绑定。&lt;/p&gt;&lt;p&gt;&lt;img src="http://images.cnblogs.com/cnblogs_com/shenfx318/1.jpg" border="0" alt="" width="363" height="195" /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;eclipse 后台生成代码：&lt;/strong&gt;&lt;/p&gt;&lt;div style="background-color: #F5F5F5;border: 1px solid #CCCCCC;padding-left:5px;padding-right:5px;"&gt;&lt;div&gt;&lt;span style="color: #0000FF;"&gt;protected&lt;/span&gt;&amp;nbsp;DataBindingContext&amp;nbsp;initDataBindings()&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DataBindingContext&amp;nbsp;bindingContext&amp;nbsp;=&amp;nbsp;&lt;span style="color: #0000FF;"&gt;new&lt;/span&gt;&amp;nbsp;DataBindingContext();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IObservableValue&amp;nbsp;lblSysNoObserveTextObserveWidget&amp;nbsp;=&amp;nbsp;SWTObservables.observeText(lblSysNo);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;IObservableValue&amp;nbsp;sysContextSysTypesystemNameObserveValue&amp;nbsp;=&amp;nbsp;&lt;span style="color: red; "&gt;PojoObservables&lt;/span&gt;.observeValue(sysContext,&amp;nbsp;"sysType.systemNo");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bindingContext.bindValue(lblSysNoObserveTextObserveWidget,&amp;nbsp;sysContextSysTypesystemNameObserveValue,&amp;nbsp;&lt;span style="color: #0000FF;"&gt;null&lt;/span&gt;,&amp;nbsp;&lt;span style="color: #0000FF;"&gt;null&lt;/span&gt;);&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #0000FF;"&gt;return&lt;/span&gt;&amp;nbsp;bindingContext;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;span  style="font-family: 'Courier New'; font-size: 13px; line-height: 19px; "&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p&gt;保存程序后运行代码出现一下错误信息。&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;错误信息：&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;&lt;div&gt;&lt;div&gt;!SESSION 2011-11-22 22:58:20.305 -----------------------------------------------&lt;/div&gt;&lt;div&gt;eclipse.buildId=unknown&lt;/div&gt;&lt;div&gt;java.version=1.6.0_22&lt;/div&gt;&lt;div&gt;java.vendor=Sun Microsystems Inc.&lt;/div&gt;&lt;div&gt;BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN&lt;/div&gt;&lt;div&gt;Framework arguments: &amp;nbsp;-application teshost.application&lt;/div&gt;&lt;div&gt;Command-line arguments: &amp;nbsp;-application teshost.application -data D:\work\src/../runtime-teshost.application -dev file:D:/work/src/.metadata/.plugins/org.eclipse.pde.core/teshost.application/dev.properties -os win32 -ws win32 -arch x86 -consoleLog&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;!ENTRY org.eclipse.osgi 2 0 2011-11-22 22:58:21.360&lt;/div&gt;&lt;div&gt;!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:&lt;/div&gt;&lt;div&gt;!SUBENTRY 1 org.eclipse.osgi 2 0 2011-11-22 22:58:21.360&lt;/div&gt;&lt;div&gt;!MESSAGE Bundle initial@reference:file:http://www.cnblogs.com/work/src/teshost/ was not resolved.&lt;/div&gt;&lt;div&gt;!SUBENTRY 2 teshost 2 0 2011-11-22 22:58:21.360&lt;/div&gt;&lt;div&gt;!MESSAGE &lt;span style="color: red; "&gt;Missing required bundle org.eclipse.core.databinding.beans_0.0.0.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;!ENTRY org.eclipse.osgi 2 0 2011-11-22 22:58:21.361&lt;/div&gt;&lt;div&gt;!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:&lt;/div&gt;&lt;div&gt;!SUBENTRY 1 org.eclipse.osgi 2 0 2011-11-22 22:58:21.362&lt;/div&gt;&lt;div&gt;!MESSAGE Bundle teshost_1.0.0 [38] was not resolved.&lt;/div&gt;&lt;div&gt;!SUBENTRY 2 teshost 2 0 2011-11-22 22:58:21.362&lt;/div&gt;&lt;div&gt;!MESSAGE &lt;span style="color: red; "&gt;Missing required bundle org.eclipse.core.databinding.beans_0.0.0.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;!ENTRY org.eclipse.osgi 2 0 2011-11-22 22:58:21.371&lt;/div&gt;&lt;div&gt;!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:&lt;/div&gt;&lt;div&gt;!SUBENTRY 1 org.eclipse.osgi 2 0 2011-11-22 22:58:21.371&lt;/div&gt;&lt;div&gt;!MESSAGE Bundle initial@reference:file:http://www.cnblogs.com/work/src/teshost/ was not resolved.&lt;/div&gt;&lt;div&gt;!SUBENTRY 2 teshost 2 0 2011-11-22 22:58:21.372&lt;/div&gt;&lt;div&gt;!MESSAGE Missing required bundle org.eclipse.core.databinding.beans_0.0.0.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;!ENTRY org.eclipse.osgi 2 0 2011-11-22 22:58:21.373&lt;/div&gt;&lt;div&gt;!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:&lt;/div&gt;&lt;div&gt;!SUBENTRY 1 org.eclipse.osgi 2 0 2011-11-22 22:58:21.373&lt;/div&gt;&lt;div&gt;!MESSAGE Bundle teshost_1.0.0 [38] was not resolved.&lt;/div&gt;&lt;div&gt;!SUBENTRY 2 teshost 2 0 2011-11-22 22:58:21.373&lt;/div&gt;&lt;div&gt;!MESSAGE Missing required bundle org.eclipse.core.databinding.beans_0.0.0.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;!ENTRY org.eclipse.osgi 4 0 2011-11-22 22:58:21.374&lt;/div&gt;&lt;div&gt;!MESSAGE Application error&lt;/div&gt;&lt;div&gt;!STACK 1&lt;/div&gt;&lt;div&gt;java.lang.RuntimeException: Application "teshost.application" could not be found in the registry. The applications available are: org.eclipse.equinox.app.error.&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at java.lang.reflect.Method.invoke(Unknown Source)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at org.eclipse.equinox.launcher.Main.run(Main.java:1407)&lt;/div&gt;&lt;div&gt;&lt;span style="white-space:pre"&gt;	&lt;/span&gt;at org.eclipse.equinox.launcher.Main.main(Main.java:1383)&lt;/div&gt;&lt;/div&gt;&lt;p&gt;An error has occurred. See the log file&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;错误原因：&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;生成的绑定代码中，&lt;span  style="font-family: 'Courier New'; font-size: 13px; line-height: 19px; "&gt;PojoObservables&amp;nbsp;&lt;/span&gt;&lt;span  style="font-family: 'Courier New'; font-size: 13px; line-height: 19px; "&gt;来自于&lt;div style="display: inline-block; "&gt;&lt;/div&gt;&lt;/span&gt;&amp;nbsp;org.eclipse.core.databinding.beans jar包。&amp;nbsp;&lt;/p&gt;&lt;p&gt;这个jar包本在 Plug-in Dependencies中，但是项目无论如何加载不了，具体错误原因不明，跟进代码调试，会报异常：&lt;/p&gt;&lt;p&gt;java.lang.RuntimeException:&amp;nbsp;&lt;span style="color: #ff0000; "&gt;No&amp;nbsp;application&amp;nbsp;id&amp;nbsp;has&amp;nbsp;been&amp;nbsp;found.&lt;/span&gt;&lt;/p&gt;&lt;div&gt;at&amp;nbsp;org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:242)&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;解决方法：&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1. 找到eclipse安装目录下的对应jar包， 如： d:\eclipse-SDK-3.7.1-win32\eclipse\plugins\org.eclipse.core.databinding.beans_1.2.100.I20100824-0800.jar&lt;/p&gt;&lt;p&gt;2. 将该jar包以外部jar包形式添加到项目引用（Add Extenal JARS...）&lt;/p&gt;&lt;p&gt;3. 将 jar包copy到项目下的lib文件夹下&lt;/p&gt;&lt;p&gt;4. &amp;nbsp;打开项目的MANIFEST.MF文件，转到MANIFEST.MF Tab页面&lt;/p&gt;&lt;p&gt;5. 删除依赖项：&lt;/p&gt;&lt;p&gt;Require-Bundle: org.eclipse.ui,&lt;/p&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp;org.eclipse.core.runtime,&lt;/div&gt;&lt;div&gt;&amp;nbsp;org.eclipse.core.databinding,&lt;/div&gt;&lt;div&gt;&lt;span style="color: #ff0000; "&gt;&amp;nbsp;org.eclipse.core.databinding.beans, &amp;nbsp;//删除这一行，由于第2部的原因，项目生成代码不会因为找到命名空间而报错。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;org.eclipse.core.databinding.observable,&lt;/div&gt;&lt;div&gt;&amp;nbsp;org.eclipse.core.databinding.property,&lt;/div&gt;&lt;div&gt;&amp;nbsp;org.eclipse.jface.databinding&lt;/div&gt;&lt;/div&gt;&lt;p&gt;6. 分别在runtime 和 build tab页面中添加jar包的引用&lt;img src="http://images.cnblogs.com/cnblogs_com/shenfx318/3.jpg" border="0" alt="" width="778" height="526" /&gt;&lt;/p&gt;&lt;p&gt;7. 重新启动执行，问题解决&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;PS: 该问题具体原因不明，有可能是RCP的一个bug。&lt;/p&gt;&lt;img src="http://www.cnblogs.com/shenfx318/aggbug/2259657.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/shenfx318/archive/2011/11/23/2259657.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/shenfx318/archive/2010/11/24/1886766.html</id><title type="text">Allocate exception for servlet</title><summary type="text">Technorati 标签: Allocate exception for servlet部署应用tes，启动tomcat，浏览器打开应用程序url，错误信息如下：严重: Allocate exception for servlet user javax.servlet.ServletException: Error instantiating servlet class com.dc.tes.u...</summary><published>2010-11-24T08:59:00Z</published><updated>2010-11-24T08:59:00Z</updated><author><name>shenfx</name><uri>http://www.cnblogs.com/shenfx318/</uri></author><link rel="alternate" href="http://www.cnblogs.com/shenfx318/archive/2010/11/24/1886766.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/shenfx318/archive/2010/11/24/1886766.html"/><content type="html">&lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:37736894-f4ea-4747-97bf-78256e81cd42" &gt;Technorati 标签: &lt;a href="http://technorati.com/tags/Allocate+exception+for+servlet" rel="tag"&gt;Allocate exception for servlet&lt;/a&gt;&lt;/div&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;部署应用tes，启动tomcat，浏览器打开应用程序url，错误信息如下：&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;严重: &lt;strong&gt;Allocate exception for servlet user&lt;/strong&gt; &lt;br /&gt;javax.servlet.ServletException: Error instantiating servlet class com.dc.tes.ui. &lt;br /&gt;server.UserService &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper. &lt;br /&gt;java:1138) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav &lt;br /&gt;a:808) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV &lt;br /&gt;alve.java:129) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV &lt;br /&gt;alve.java:191) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j &lt;br /&gt;ava:128) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j &lt;br /&gt;ava:102) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal &lt;br /&gt;ve.java:109) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav &lt;br /&gt;a:286) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java &lt;br /&gt;:845) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce &lt;br /&gt;ss(Http11Protocol.java:583) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 &lt;br /&gt;7) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.Thread.run(Unknown Source)&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;问题原因，使用ant打包common.jar，ant没有把common工程下的xml文件打到jar包中，包括hibernate的配置文件，base.xml文件等，使用eclipse打jar包，替换common重启，问题解决。&lt;/p&gt;&lt;img src="http://www.cnblogs.com/shenfx318/aggbug/1886766.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/shenfx318/archive/2010/11/24/1886766.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/shenfx318/archive/2010/11/23/1885957.html</id><title type="text">gxt-2.2.0 sample 搭建过程</title><summary type="text">环境：eclipse3.6(Helios) + GWT2.1.0 + GXT2.2.0  下载eclipse Technorati 标签: helios,GWT2.1.0,GXT2.2.0,samples,GXT环境,GWT环境,explorer  通过插件形式更新GWT2.1.0,下载GXT2.2.0 Help –&amp;gt; Install New Software 插件地址 ：Google Up...</summary><published>2010-11-23T14:34:00Z</published><updated>2010-11-23T14:34:00Z</updated><author><name>shenfx</name><uri>http://www.cnblogs.com/shenfx318/</uri></author><link rel="alternate" href="http://www.cnblogs.com/shenfx318/archive/2010/11/23/1885957.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/shenfx318/archive/2010/11/23/1885957.html"/><content type="html">&lt;p&gt;环境：eclipse3.6(Helios) + GWT2.1.0 + GXT2.2.0&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;下载eclipse &lt;/strong&gt;&lt;/p&gt;  &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:db4cfdcb-3325-445b-bc8a-c3c8b838ba33" &gt;Technorati 标签: &lt;a href="http://technorati.com/tags/helios" rel="tag"&gt;helios&lt;/a&gt;,&lt;a href="http://technorati.com/tags/GWT2.1.0" rel="tag"&gt;GWT2.1.0&lt;/a&gt;,&lt;a href="http://technorati.com/tags/GXT2.2.0" rel="tag"&gt;GXT2.2.0&lt;/a&gt;,&lt;a href="http://technorati.com/tags/samples" rel="tag"&gt;samples&lt;/a&gt;,&lt;a href="http://technorati.com/tags/GXT%e7%8e%af%e5%a2%83" rel="tag"&gt;GXT环境&lt;/a&gt;,&lt;a href="http://technorati.com/tags/GWT%e7%8e%af%e5%a2%83" rel="tag"&gt;GWT环境&lt;/a&gt;,&lt;a href="http://technorati.com/tags/explorer" rel="tag"&gt;explorer&lt;/a&gt;&lt;/div&gt;  &lt;p&gt;&lt;strong&gt;通过插件形式更新GWT2.1.0,下载GXT2.2.0&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Help –&amp;gt; Install New Software&lt;/li&gt; &lt;/ul&gt; &lt;a href="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_2.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_thumb.png" width="404" height="281" /&gt;&lt;/a&gt;  &lt;ul&gt;   &lt;li&gt;插件地址 ：Google Update Site for Eclipse 3.6 - &lt;a href="http://dl.google.com/eclipse/plugin/3.6"&gt;http://dl.google.com/eclipse/plugin/3.6&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;勾选插件及SDK（GWT）&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_4.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_thumb_1.png" width="401" height="304" /&gt;&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;顺便安装GWT Designer，地址：GWT Designer - &lt;a href="http://dl.google.com/eclipse/inst/d2gwt/latest/3.6"&gt;http://dl.google.com/eclipse/inst/d2gwt/latest/3.6&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;插件安装完毕重启eclipse，工具栏中会看到如下GWT按钮&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_6.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_thumb_2.png" width="244" height="38" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;从ext官网下载最新的gxt，我所使用的版本是gxt2.2.0&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;新建GXTSample示例工程&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;点击工具栏中 Create a java project with GWT support&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_8.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_thumb_3.png" width="244" height="38" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Project Name: GXTSamples –&amp;gt; Next&lt;/li&gt;    &lt;li&gt;选择Greate GWT Model , ToolKit选择EXT GWT（GXT） –&amp;gt; Next&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_10.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_thumb_4.png" width="338" height="284" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Libraries中添加 GWT SDK和gxt.jar –&amp;gt; Finsih&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_12.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_thumb_5.png" width="305" height="107" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;找到工程所在目录，删除原有src目录。&lt;/li&gt;    &lt;li&gt;打开解压后的gxt-2.2.0目录，将gxt-2.2.0\samples下的：examples、explorer、mail、resources四个目录下的src 拷贝到一起，并放在GXTSamples\src下&lt;/li&gt;    &lt;li&gt;刷新后的src目录结构：&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_14.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_thumb_6.png" width="211" height="370" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;将gxt-2.2.0\samples下的：examples.war解压缩并重命名为war，之后将war目录copy到GXTSamples下，覆盖合并&lt;/li&gt;    &lt;li&gt;刷新GXTSamples目录&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_16.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_thumb_7.png" width="229" height="370" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;     &lt;div align="left"&gt;选择explorer.html,Run As –&amp;gt; WebApplication&lt;/div&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_18.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_thumb_8.png" width="376" height="58" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;在浏览器中打开页面地址，samples部署完成！&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_20.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://images.cnblogs.com/cnblogs_com/shenfx318/WindowsLiveWriter/gxt2.2.0sample_13C7C/image_thumb_9.png" width="282" height="202" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/shenfx318/aggbug/1885957.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/shenfx318/archive/2010/11/23/1885957.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/shenfx318/archive/2007/02/28/658835.html</id><title type="text">ISAPI扩展初窥</title><summary type="text">&#xD;1. 从CGI说起… &#xD;2. 缺陷怎么办?&#xD;3. 什么是ISAPI?&#xD;4. ISAPI与IIS是如何协同工作的呢?&#xD;5. ISAPI到底做了哪些事?&#xD;6. 关于ISAPI过滤器(Filter)&#xD;</summary><published>2007-02-27T16:00:00Z</published><updated>2007-02-27T16:00:00Z</updated><author><name>shenfx</name><uri>http://www.cnblogs.com/shenfx318/</uri></author><link rel="alternate" href="http://www.cnblogs.com/shenfx318/archive/2007/02/28/658835.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/shenfx318/archive/2007/02/28/658835.html"/></entry><entry><id>http://www.cnblogs.com/shenfx318/archive/2007/02/08/645257.html</id><title type="text">对 Windows 窗体控件进行线程安全调用</title><summary type="text">由于 Windows 窗体控件本质上不是线程安全的。因此如果有两个或多个线程适度操作某一控件的状态(setvalue)，则可能会迫使该控件进入一种不一致的状态。还可能出现其他与线程相关的 bug，包括争用和死锁的情况。于是在调试器中运行应用程序时，如果创建某控件的线程之外的其他线程试图调用该控件，则调试器会引发一个 InvalidOperationException ....</summary><published>2007-02-08T12:47:00Z</published><updated>2007-02-08T12:47:00Z</updated><author><name>shenfx</name><uri>http://www.cnblogs.com/shenfx318/</uri></author><link rel="alternate" href="http://www.cnblogs.com/shenfx318/archive/2007/02/08/645257.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/shenfx318/archive/2007/02/08/645257.html"/></entry><entry><id>http://www.cnblogs.com/shenfx318/archive/2007/01/28/632724.html</id><title type="text">Builder与Factory，殊途同归！</title><summary type="text">在设计模式的学习过程中，Builder与Factory是创建模式中两个经典的教程，给与了我们很多值得汲取的宝贵设计思想，然而Builder与Factory模式也是初学者容易混淆的两个模式，经常看到有人问及两者的区别与适用的场景，我在近一段设计模式的学习过程中同样碰到了这个问题，在两种模式的区别与联系间我看到的更多是后者.......</summary><published>2007-01-28T14:19:00Z</published><updated>2007-01-28T14:19:00Z</updated><author><name>shenfx</name><uri>http://www.cnblogs.com/shenfx318/</uri></author><link rel="alternate" href="http://www.cnblogs.com/shenfx318/archive/2007/01/28/632724.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/shenfx318/archive/2007/01/28/632724.html"/></entry><entry><id>http://www.cnblogs.com/shenfx318/archive/2007/01/25/630760.html</id><title type="text">抽象基类与接口，共性与个性的选择！</title><summary type="text">C#中的抽象基类(Abstract Class)和接口(Interface)都实现了面向对象中的继承机制，它们通过定义抽象方法匀实现了对继承类的功能上的约束，那么在如何在恰当的场景选择恰当的继承机制是我们在设计中经常会遇到的问题，我们先来对比两者之间的区别与联系.....</summary><published>2007-01-25T14:51:00Z</published><updated>2007-01-25T14:51:00Z</updated><author><name>shenfx</name><uri>http://www.cnblogs.com/shenfx318/</uri></author><link rel="alternate" href="http://www.cnblogs.com/shenfx318/archive/2007/01/25/630760.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/shenfx318/archive/2007/01/25/630760.html"/></entry><entry><id>http://www.cnblogs.com/shenfx318/archive/2007/01/17/623236.html</id><title type="text">IIS中的身份验证</title><summary type="text">本文对IIS6.0中的几种常见的身份验证方式，包括匿名、集成Windows身份验证、基本验证和摘要式验证，并分析了各自优缺点及适用场景。主要内容摘选自MSDN。</summary><published>2007-01-17T15:22:00Z</published><updated>2007-01-17T15:22:00Z</updated><author><name>shenfx</name><uri>http://www.cnblogs.com/shenfx318/</uri></author><link rel="alternate" href="http://www.cnblogs.com/shenfx318/archive/2007/01/17/623236.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/shenfx318/archive/2007/01/17/623236.html"/></entry><entry><id>http://www.cnblogs.com/shenfx318/archive/2007/01/16/621237.html</id><title type="text">持续改进，抽象工厂也反射</title><summary type="text">在我的上一篇文章中，详细论述了创建模式中简单工厂到工厂方法的演变过程，并试图结合工厂方法的设计以及.net中的反射机制之所长，改良出一种新型的工厂—反射工厂，这当然不是我的首创，经典的PetShop 中便有此工厂的身影。本文尝试按照前篇文章的思路，借着工厂方法到抽象工厂的演变过程而继续对抽象工厂进行改良。</summary><published>2007-01-15T16:40:00Z</published><updated>2007-01-15T16:40:00Z</updated><author><name>shenfx</name><uri>http://www.cnblogs.com/shenfx318/</uri></author><link rel="alternate" href="http://www.cnblogs.com/shenfx318/archive/2007/01/16/621237.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/shenfx318/archive/2007/01/16/621237.html"/></entry><entry><id>http://www.cnblogs.com/shenfx318/archive/2007/01/09/614844.html</id><title type="text">疑惑？改良？ 从简单工厂到工厂方法</title><summary type="text">本文尝试从简单工厂模式出发，剖析其设计理念，并结合设计原则与.net反射机制，尝试一种结合简单工厂模式与工厂方法原则的工厂模式的改良方案，本文是作者在学习设计模式过程中的一些体会以及疑惑之处，欢迎大家提出自己的宝贵看法，交流意见。</summary><published>2007-01-09T04:34:00Z</published><updated>2007-01-09T04:34:00Z</updated><author><name>shenfx</name><uri>http://www.cnblogs.com/shenfx318/</uri></author><link rel="alternate" href="http://www.cnblogs.com/shenfx318/archive/2007/01/09/614844.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/shenfx318/archive/2007/01/09/614844.html"/></entry></feed>
