Re: Can't build maven sample GWT app, generated by webAppCreator

2016-11-17 Thread vitrums
Problem was fixed by removing the .m2 directory and all its content and 
running *mvn package* in command prompt, therefore forcing maven to 
download them again. I assume, that the original corruption had something 
to do with eclipse.

-- 
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-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Can't build maven sample GWT app, generated by webAppCreator

2016-11-17 Thread vitrums
Problem was fixed by removing the .m2 directory and all its content and 
running *mvn package* in command prompt, therefore forcing maven to 
download them again. I assume, that the original corruption had something 
to do with eclipse.

On Wednesday, November 16, 2016 at 6:10:04 PM UTC+3, vitrums wrote:
>
> [INFO] Scanning for projects...
> [INFO] 
> 
> [INFO] 
> 
> [INFO] Building com.example.webapp.WebApp 1.0-SNAPSHOT
> [INFO] 
> 
> [INFO] 
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
> WebApp ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory 
> C:\temp\mvnSampleGwtApp\WebApp\src\main\resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ WebApp ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 5 source files to 
> C:\temp\mvnSampleGwtApp\WebApp\target\WebApp-1.0-SNAPSHOT\WEB-INF\classes
> [WARNING] error reading 
> C:\Users\vitru\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar; invalid LOC 
> header (bad signature)
> [WARNING] error reading 
> C:\Users\vitru\.m2\repository\com\ibm\icu\icu4j\50.1.1\icu4j-50.1.1.jar; 
> invalid LOC header (bad signature)
> [INFO] 
> [INFO] --- gwt-maven-plugin:1.0-rc-6:import-sources (default) @ WebApp ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 6 resources
> [INFO] 
> [INFO] --- maven-resources-plugin:2.6:testResources 
> (default-testResources) @ WebApp ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] skip non existing resourceDirectory 
> C:\temp\mvnSampleGwtApp\WebApp\src\test\resources
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
> WebApp ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 2 source files to 
> C:\temp\mvnSampleGwtApp\WebApp\target\test-classes
> [WARNING] error reading 
> C:\Users\vitru\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar; invalid LOC 
> header (bad signature)
> [WARNING] error reading 
> C:\Users\vitru\.m2\repository\com\ibm\icu\icu4j\50.1.1\icu4j-50.1.1.jar; 
> invalid LOC header (bad signature)
> [INFO] 
> [INFO] --- gwt-maven-plugin:1.0-rc-6:import-test-sources (default) @ 
> WebApp ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] 
> [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ WebApp ---
> [INFO] Tests are skipped.
> [INFO] 
> [INFO] --- gwt-maven-plugin:1.0-rc-6:test (default) @ WebApp ---
> [INFO] GWT tests report directory: 
> C:\temp\mvnSampleGwtApp\WebApp\target\surefire-reports
>
> ---
>  T E S T S
> ---
> Running com.example.webapp.WebAppSuite
> Starting Jetty on port 0
>[WARN] ServletContainerInitializers: detected. Class hierarchy: empty
> Loading inherited module 'com.example.webapp.WebAppJUnit'
>Loading inherited module 'com.example.webapp.WebApp'
>   Loading inherited module 'com.google.gwt.user.User'
>  Loading inherited module 'com.google.gwt.event.Event'
> Loading inherited module 'com.google.gwt.dom.DOM'
>Loading inherited module 'com.google.gwt.safehtml.SafeHtml'
>   Loading inherited module 'com.google.gwt.http.HTTP'
>  Loading inherited module 'com.google.gwt.user.Timer'
> [ERROR] Line 19: Unexpected exception while 
> processing element 'source'
> java.lang.NoClassDefFoundError: org/apache/tools/ant/types/ZipScanner
> at 
> com.google.gwt.dev.resource.impl.DefaultFilters.getScanner(DefaultFilters.java:240)
> at 
> com.google.gwt.dev.resource.impl.DefaultFilters$4.(DefaultFilters.java:371)
> at 
> com.google.gwt.dev.resource.impl.DefaultFilters.getCustomFilter(DefaultFilters.java:370)
> at 
> com.google.gwt.dev.resource.impl.DefaultFilters.customJavaFilter(DefaultFilters.java:301)
> at 
> com.google.gwt.dev.cfg.ModuleDef.addSourcePackageImpl(ModuleDef.java:257)
> at com.google.gwt.dev.cfg.ModuleDef.addSourcePackage(ModuleDef.java:246)
> at 
> com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.addSourcePackage(ModuleDefSchema.java:860)
> at 
> com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.addSourcePackage(ModuleDefSchema.java:817)
> at 
> com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__source_end(ModuleDefSchema.java:717)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at 
> 

Re: Can't build maven sample GWT app, generated by webAppCreator

2016-11-16 Thread vitrums
I made another clean project with command prompt and ran into the same 
issue. Using fresh installations of jdk1.8.0_111 and apache-maven-3.3.9. 
M2_HOME, JAVA_HOME are set properly. gwt-2.8.0 folder was added to PATH. 
Btw, here's the only related topic I found so far 
https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/fdWmFBtKvGA
 


webAppCreator -out foo -templates maven,sample,readme com.example.foo.Foo

I ran "mvn clean" - no warnings. Then "mvn package" gives the same result:

[INFO] Scanning for projects...
[INFO] 

[INFO] 

[INFO] Building com.example.foo.Foo 1.0-SNAPSHOT
[INFO] 

[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Foo 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
c:\temp\mvnSampleGwtApp\foo\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ Foo ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-6:import-sources (default) @ Foo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) 
@ Foo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
c:\temp\mvnSampleGwtApp\foo\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
Foo ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-6:import-test-sources (default) @ Foo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ Foo ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-6:test (default) @ Foo ---
[INFO] GWT tests report directory: 
c:\temp\mvnSampleGwtApp\foo\target\surefire-reports

---
 T E S T S
---
Running com.example.foo.FooSuite
Starting Jetty on port 0
   [WARN] ServletContainerInitializers: detected. Class hierarchy: empty
Loading inherited module 'com.example.foo.FooJUnit'
   Loading inherited module 'com.example.foo.Foo'
  Loading inherited module 'com.google.gwt.user.User'
 Loading inherited module 'com.google.gwt.event.Event'
Loading inherited module 'com.google.gwt.dom.DOM'
   Loading inherited module 'com.google.gwt.safehtml.SafeHtml'
  Loading inherited module 'com.google.gwt.http.HTTP'
 Loading inherited module 'com.google.gwt.user.Timer'
[ERROR] Line 19: Unexpected exception while 
processing element 'source'
java.lang.NoClassDefFoundError: org/apache/tools/ant/types/ZipScanner
at 
com.google.gwt.dev.resource.impl.DefaultFilters.getScanner(DefaultFilters.java:240)
at 
com.google.gwt.dev.resource.impl.DefaultFilters$4.(DefaultFilters.java:371)
at 
com.google.gwt.dev.resource.impl.DefaultFilters.getCustomFilter(DefaultFilters.java:370)
at 
com.google.gwt.dev.resource.impl.DefaultFilters.customJavaFilter(DefaultFilters.java:301)
at com.google.gwt.dev.cfg.ModuleDef.addSourcePackageImpl(ModuleDef.java:257)
at com.google.gwt.dev.cfg.ModuleDef.addSourcePackage(ModuleDef.java:246)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.addSourcePackage(ModuleDefSchema.java:860)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.addSourcePackage(ModuleDefSchema.java:817)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__source_end(ModuleDefSchema.java:717)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
com.google.gwt.dev.util.xml.HandlerMethod.invokeEnd(HandlerMethod.java:272)
at 
com.google.gwt.dev.util.xml.ReflectiveParser$Impl.endElement(ReflectiveParser.java:174)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at 

Re: Can't build maven sample GWT app, generated by webAppCreator

2016-11-16 Thread Thomas Broyer


On Wednesday, November 16, 2016 at 4:10:04 PM UTC+1, vitrums wrote:
>
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ WebApp ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 5 source files to 
> C:\temp\mvnSampleGwtApp\WebApp\target\WebApp-1.0-SNAPSHOT\WEB-INF\classes
> [WARNING] error reading 
> C:\Users\vitru\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar; invalid LOC 
> header (bad signature)
> [WARNING] error reading 
> C:\Users\vitru\.m2\repository\com\ibm\icu\icu4j\50.1.1\icu4j-50.1.1.jar; 
> invalid LOC header (bad signature)
>

Looks like you have corrupted JARs. Try re-downloading them (delete them 
and re-run Maven) 

-- 
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-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Can't build maven sample GWT app, generated by webAppCreator

2016-11-16 Thread vitrums
[INFO] Scanning for projects...
[INFO] 

[INFO] 

[INFO] Building com.example.webapp.WebApp 1.0-SNAPSHOT
[INFO] 

[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
WebApp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
C:\temp\mvnSampleGwtApp\WebApp\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ WebApp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to 
C:\temp\mvnSampleGwtApp\WebApp\target\WebApp-1.0-SNAPSHOT\WEB-INF\classes
[WARNING] error reading 
C:\Users\vitru\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar; invalid LOC 
header (bad signature)
[WARNING] error reading 
C:\Users\vitru\.m2\repository\com\ibm\icu\icu4j\50.1.1\icu4j-50.1.1.jar; 
invalid LOC header (bad signature)
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-6:import-sources (default) @ WebApp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 6 resources
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) 
@ WebApp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
C:\temp\mvnSampleGwtApp\WebApp\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
WebApp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to 
C:\temp\mvnSampleGwtApp\WebApp\target\test-classes
[WARNING] error reading 
C:\Users\vitru\.m2\repository\ant\ant\1.6.5\ant-1.6.5.jar; invalid LOC 
header (bad signature)
[WARNING] error reading 
C:\Users\vitru\.m2\repository\com\ibm\icu\icu4j\50.1.1\icu4j-50.1.1.jar; 
invalid LOC header (bad signature)
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-6:import-test-sources (default) @ WebApp 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ WebApp ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- gwt-maven-plugin:1.0-rc-6:test (default) @ WebApp ---
[INFO] GWT tests report directory: 
C:\temp\mvnSampleGwtApp\WebApp\target\surefire-reports

---
 T E S T S
---
Running com.example.webapp.WebAppSuite
Starting Jetty on port 0
   [WARN] ServletContainerInitializers: detected. Class hierarchy: empty
Loading inherited module 'com.example.webapp.WebAppJUnit'
   Loading inherited module 'com.example.webapp.WebApp'
  Loading inherited module 'com.google.gwt.user.User'
 Loading inherited module 'com.google.gwt.event.Event'
Loading inherited module 'com.google.gwt.dom.DOM'
   Loading inherited module 'com.google.gwt.safehtml.SafeHtml'
  Loading inherited module 'com.google.gwt.http.HTTP'
 Loading inherited module 'com.google.gwt.user.Timer'
[ERROR] Line 19: Unexpected exception while 
processing element 'source'
java.lang.NoClassDefFoundError: org/apache/tools/ant/types/ZipScanner
at 
com.google.gwt.dev.resource.impl.DefaultFilters.getScanner(DefaultFilters.java:240)
at 
com.google.gwt.dev.resource.impl.DefaultFilters$4.(DefaultFilters.java:371)
at 
com.google.gwt.dev.resource.impl.DefaultFilters.getCustomFilter(DefaultFilters.java:370)
at 
com.google.gwt.dev.resource.impl.DefaultFilters.customJavaFilter(DefaultFilters.java:301)
at com.google.gwt.dev.cfg.ModuleDef.addSourcePackageImpl(ModuleDef.java:257)
at com.google.gwt.dev.cfg.ModuleDef.addSourcePackage(ModuleDef.java:246)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.addSourcePackage(ModuleDefSchema.java:860)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.addSourcePackage(ModuleDefSchema.java:817)
at 
com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__source_end(ModuleDefSchema.java:717)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
com.google.gwt.dev.util.xml.HandlerMethod.invokeEnd(HandlerMethod.java:272)
at 
com.google.gwt.dev.util.xml.ReflectiveParser$Impl.endElement(ReflectiveParser.java:174)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at