Element type "entry-point" must be declared.

已查看 275 次
跳至第一个未读帖子

Fast prep

未读,
2021年11月23日 05:38:522021/11/23
收件人 GWT Users
<?xml version="1.0" encoding="UTF-8"?>
<!--
  When updating your version of GWT, you should also update this DTD reference,
  so that your app can take advantage of the latest GWT module capabilities.
-->
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.1//EN"
<module rename-to='sandbox'>
  <!-- Inherit the core Web Toolkit stuff.                        -->
  <inherits name='com.google.gwt.user.User'/>

  <!-- Inherit the default GWT style sheet.  You can change       -->
  <!-- the theme of your GWT application by uncommenting          -->
  <!-- any one of the following lines.                            -->
  <inherits name='com.google.gwt.user.theme.clean.Clean'/>
  <!-- <inherits name='com.google.gwt.user.theme.standard.Standard'/> -->
  <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
  <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->

  <!-- Other module inherits                                      -->

  <!-- Specify the app entry point class.                         -->
  <entry-point class='com.manish.sandy.client.SandBox'/>

  <!-- Specify the paths for translatable code                    -->
  <source path='client'/>
  <source path='shared'/>

  <!-- allow Super Dev Mode -->
  <add-linker name="xsiframe"/>
</module>

I am getting these errors . 
I am new to GWT . 

Kindly help 
000152.png

Thomas Broyer

未读,
2021年11月23日 06:34:312021/11/23
收件人 GWT Users
Those errors are only about the XML DTD validation, but they actually won't affect GWT itself.

It looks like there's a problem with the gwtproject.org site that doesn't serve the doctype/2.8.1/gwt-module.dtd and instead redirects back to the home page, breaking XML DTD validation altogether (see that last error in your screenshot? its the one causing all the others).

Because the DTD is useless (it only used to help with autocompletion and the like in IDEs), I'd suggest removing the <!DOCTYPE line. This will clear those errors and won't change the GWT behavior in any way.

Fast prep

未读,
2021年11月24日 00:01:562021/11/24
收件人 google-we...@googlegroups.com
In dtd , www. Was missing. Eclipse issue. 

Adding the same resolved the issue. 

Thanks Thomas for your help.

Regards. Manish


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/a26a546a-34d9-44ef-bc41-47751bf73c79n%40googlegroups.com.

Craig Mitchell

未读,
2021年11月26日 18:47:102021/11/26
收件人 GWT Users
The DTD is also included with the GWT SDK.  So you can just point it there.  Eg:

<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.9.0//EN" "file:///C:/mydir/gwt-2.9.0/gwt-module.dtd">

(change the location path to where you have your GWT SDK)
回复全部
回复作者
转发
0 个新帖子