English 中文(简体)
Can t 经营GWT样本
原标题:Can t run GWT sample

I m试图操作WT样本StockWatcher。 缩略语 然后,我向Eclipse进口了插手,在项目特性中设置了“Use/2008/4 Web Toolkit”检查箱,点击Debug As->Web Application。 然后,我就去了。

Started code server on port 9997
Parsing file:<some file path>/StockWatcher/war/WEB-INF/web.xml
   startElement: web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"
 xmlns="http://java.sun.com/xml/ns/javaee"
   startElement:   servlet
   startElement:     servlet-name
     characters:       greetServlet
     endElement:     servlet-name
   startElement:     servlet-class
     characters:       com.company.gwt.stockwatcher.server.GreetingServiceImpl
     endElement:     servlet-class
     endElement:   servlet
   startElement:   servlet-mapping
   startElement:     servlet-name
     characters:       greetServlet
     endElement:     servlet-name
   startElement:     url-pattern
     characters:       /stockwatcher/greet
     endElement:     url-pattern
     endElement:   servlet-mapping
   startElement:   welcome-file-list
   startElement:     welcome-file
     characters:       StockWatcher.html
     endElement:     welcome-file
     endElement:   welcome-file-list
     endElement: web-app
Loading modules
   -remoteUI
      [ERROR] Invalid module name:  -remoteUI 
[ERROR] shell failed in doStartup method
   Parsing response (length 1443)
   Ping delay is 1; next ping at Tue Apr 17 13:06:08 EEST 2012
   Server version (2.3.0) is not newer than 2.4.0

Here is my web.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
          http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
     version="2.5"
     xmlns="http://java.sun.com/xml/ns/javaee">

  <!-- Servlets -->
  <servlet>
    <servlet-name>greetServlet</servlet-name>
    <servlet-class>com.company.gwt.stockwatcher.server.GreetingServiceImpl</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>greetServlet</servlet-name>
    <url-pattern>/stockwatcher/greet</url-pattern>
  </servlet-mapping>

  <!-- Default page to serve -->
    <welcome-file-list>
    <welcome-file>StockWatcher.html</welcome-file>
  </welcome-file-list>

</web-app>

www.un.org/Depts/DGACM/index_french.htm

<?xml version="1.0" encoding="UTF-8"?>
<module rename-to= stockwatcher >
  <inherits name= com.google.gwt.user.User />

  <inherits name= com.google.gwt.user.theme.clean.Clean />

  <entry-point class= com.company.gwt.stockwatcher.client.StockWatcher />

  <source path= client />
  <source path= shared />

</module>

即便我从辅导页下载该项目,这个问题还是重复的。 我如何解决这个问题?

UPD: Strange,但当我试图再次发射(无改动)时,我看上“易发生”窗口:

Launching StockWatcher has encountered a problem.

可变的参考资料

为什么会发生这种情况?

最佳回答

通过删除“ de”组合来解决这个问题。 当我试图以欺骗方式行事时,Eclipse便产生了新的假装,一切都奏效。

问题回答

请你通过正确点击项目和选择Run menu项目,检查在Run Configurations窗口GWT tab中有哪些可供使用的单元。

Your launch configuration depends on the project location.So, before you run your launch configuration you need to have your project selected in the project explorer so that Eclipse can know which project’s location you want to refer to.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签