Hi Marius,

Leon Wang wrote:
> Hi Dear XWiki Developer,
>

> I met a new problem, when I compile it using Eclipse plugin, it gives me:

"What Eclipse plugin? m2eclipse?"

Yes, m2eclipse

>
> [INFO] [gwt:compile]
> [INFO] using GWT jars from project dependencies : 1.7.0
> [INFO] Unpack native libraries required to run GWT
> [INFO] establishing classpath list (scope = compile)

> [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError:
> com/google/gwt/dev/Compiler
> [ERROR] Caused by: java.lang.ClassNotFoundException:
> com.google.gwt.dev.Compiler
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> [ERROR] at java.security.AccessController.doPrivileged(Native Method)
> [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> [ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> [ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> [ERROR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> [ERROR] Could not find the main class: com.google.gwt.dev.Compiler.
 Program
> will exit.

"Looks like the gwt-maven-plugin doesn't have the gwt-dev jar in its
class path. Can you build from console?"

I checked the gwt-dev jar it is in the local m2 repository. When I try to
build it in the console it give me the checkstyle error even with
"<failsOnError>false</failsOnError>":

[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] [checkstyle:check {execution: default}]
[INFO] [install:install]
[INFO] Installing
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/xwiki-gwt-user/target/xwiki-web-gwt-user-2.1.1.jar
to
/home/freeleons/.m2/repository/org/xwiki/platform/xwiki-web-gwt-user/2.1.1/xwiki-web-gwt-user-2.1.1.jar
[INFO] Installing
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/xwiki-gwt-user/target/xwiki-web-gwt-user-2.1.1-tests.jar
to
/home/freeleons/.m2/repository/org/xwiki/platform/xwiki-web-gwt-user/2.1.1/xwiki-web-gwt-user-2.1.1-tests.jar
[INFO]
------------------------------------------------------------------------
[INFO] Building XWiki Platform - Web - WYSIWYG
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: default}]
[INFO] [remote-resources:process {execution: xwiki-license-resources}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 133 resources
[INFO] Copying 2 resources
[INFO] [compiler:compile]
[INFO] Compiling 272 source files to
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/target/classes
[INFO] [gwt:compile {execution: compile-gwt}]
[INFO] using GWT jars from project dependencies : 1.7.0
[INFO] Unpack native libraries required to run GWT
[INFO] establishing classpath list (scope = compile)
[INFO] Compiling module com.xpn.xwiki.wysiwyg.Wysiwyg
[INFO]    Compiling 24 permutations
[INFO]       Permutation compile succeeded
[INFO]    Linking into
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/target/xwiki-web-wysiwyg-2.1.1/resources/js/xwiki/wysiwyg
[INFO]       Link succeeded
[INFO]    Compilation succeeded -- 107.886s
[INFO] [resources:testResources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 2 resources
[INFO] [compiler:testCompile]
[INFO] Compiling 37 source files to
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/target/test-classes
[INFO] [surefire:test]
[INFO] Tests are skipped.
[INFO] [war:war]
[INFO] Packaging webapp
[INFO] Assembling webapp[xwiki-web-wysiwyg] in
[/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/target/xwiki-web-wysiwyg-2.1.1]
[INFO] Processing war project
[INFO] Copying webapp
resources[/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/src/main/webapp]
[INFO] Building jar:
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/target/xwiki-web-wysiwyg-2.1.1/WEB-INF/lib/xwiki-web-wysiwyg-2.1.1.jar
[INFO] Webapp assembled in [1489 msecs]
[INFO] Building war:
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/target/xwiki-web-wysiwyg-2.1.1.war
[INFO] [gwt:test {execution: test-gwt}]
[INFO] using GWT jars from project dependencies : 1.7.0
[INFO] Unpack native libraries required to run GWT
[INFO] Preparing checkstyle:check
[INFO] [checkstyle:checkstyle]
[INFO] Starting audit...
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/plugin/rationale/RationalePluginFactory.java:6:
Class RationalePluginFactory should be declared as final.
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/plugin/rationale/RationalePluginFactory.java:6:
Missing a Javadoc comment.
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/plugin/rationale/RationalePluginFactory.java:6:67:
'{' should be on a new line.
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/plugin/rationale/RationalePluginFactory.java:8:
member def modifier at indentation level 8 not at correct indentation, 4
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/plugin/rationale/RationalePluginFactory.java:8:1:
Line contains a tab character.
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/plugin/rationale/RationalePluginFactory.java:8:9:
Missing a Javadoc comment.
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/plugin/rationale/RationalePluginFactory.java:10:
ctor def modifier at indentation level 8 not at correct indentation, 4
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/plugin/rationale/RationalePluginFactory.java:10:1:
Line contains a tab character.
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/plugin/rationale/RationalePluginFactory.java:10:9:
Missing a Javadoc comment.
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/plugin/rationale/RationalePluginFactory.java:11:1:
Line contains a tab character.
/home/freeleons/Desktop/XWiki/console/xwiki-web-2.1.1-download1/xwiki-web/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/plugin/rationale/RationalePluginFactory.java:12:
ctor def rcurly at indentation level 8 not at correct indentation, 4

I used console command line checked out the source code. Copied the all the
icon files and source code to the right folder. Then I use "mvn install"
compile the source code,  I get this error:
[INFO]
------------------------------------------------------------------------
[INFO] Building XWiki Platform - Web - WYSIWYG
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] [enforcer:enforce {execution: default}]
[INFO] [remote-resources:process {execution: xwiki-license-resources}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 139 resources
[INFO] Copying 2 resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [gwt:compile {execution: default}]
[INFO] using GWT jars from project dependencies : 2.0.0
[INFO] establishing classpath list (scope = compile)
[INFO] Compiling module com.xpn.xwiki.wysiwyg.Wysiwyg
[INFO]    Validating newly compiled units
[INFO]       [WARN] Warnings in
'jar:file:/home/freeleons/.m2/repository/com/google/gwt/gwt-incubator/20091216-r1739/gwt-incubator-20091216-r1739.jar!/com/google/gwt/widgetideas/client/impl/GlassPanelImpl.java'
[INFO]          [WARN] Line 30: Referencing deprecated class
'com.google.gwt.user.client.impl.DocumentRootImpl'
[INFO]          [WARN] Line 38: Referencing deprecated class
'com.google.gwt.user.client.impl.DocumentRootImpl'
[INFO]    Scanning for additional dependencies:
file:/home/freeleons/Desktop/XWiki/xwiki-web-2.1.1-console-build/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/client/editor/Strings.java
[INFO]       Computing all possible rebind results for
'com.xpn.xwiki.wysiwyg.client.editor.Strings'
[INFO]          Rebinding com.xpn.xwiki.wysiwyg.client.editor.Strings
[INFO]             Invoking
com.google.gwt.dev.javac.standardgeneratorcont...@1c28e4e
[INFO]                Processing interface
com.xpn.xwiki.wysiwyg.client.editor.Strings
[INFO]                   Generating method body for fontNameOther()
[INFO]                      [ERROR] No resource found for key
'fontNameOther'
[INFO] com.google.gwt.i18n.rebind.AbstractResource$MissingResourceException:
No resource found for key 'fontNameOther'
[INFO] at
com.google.gwt.i18n.rebind.AbstractResource$ResourceList.getRequiredStringExt(AbstractResource.java:246)
[INFO] at
com.google.gwt.i18n.rebind.SimpleValueMethodCreator.createMethodFor(SimpleValueMethodCreator.java:95)
[INFO] at
com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.delegateToCreator(AbstractLocalizableImplCreator.java:313)
[INFO] at
com.google.gwt.i18n.rebind.ConstantsImplCreator.emitMethodBody(ConstantsImplCreator.java:163)
[INFO] at
com.google.gwt.user.rebind.AbstractGeneratorClassCreator.genMethod(AbstractGeneratorClassCreator.java:265)
[INFO] at
com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitMethods(AbstractGeneratorClassCreator.java:233)
[INFO] at
com.google.gwt.user.rebind.AbstractGeneratorClassCreator.emitClass(AbstractGeneratorClassCreator.java:116)
[INFO] at
com.google.gwt.i18n.rebind.AbstractLocalizableImplCreator.generateConstantOrMessageClass(AbstractLocalizableImplCreator.java:133)
[INFO] at
com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:121)
[INFO] at
com.google.gwt.i18n.rebind.LocalizableGenerator.generate(LocalizableGenerator.java:98)
[INFO] at
com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:418)
[INFO] at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:38)
[INFO] at
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:108)
[INFO] at
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:54)
[INFO] at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:154)
[INFO] at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:143)
[INFO] at
com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.java:317)
[INFO] at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:95)
[INFO] at
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:200)
[INFO] at
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
[INFO] at
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:123)
[INFO] at
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:234)
[INFO] at
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$200(AbstractCompiler.java:109)
[INFO] at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:522)
[INFO] at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:112)
[INFO] at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:47)
[INFO] at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:421)
[INFO] at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:32)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
[INFO] at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
[INFO] at com.google.gwt.dev.Compiler.run(Compiler.java:201)
[INFO] at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
[INFO] at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[INFO] at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
[INFO] at com.google.gwt.dev.Compiler.main(Compiler.java:159)
[INFO]                      [WARN] Searched the following resources:
[INFO]                         [WARN]
com/xpn/xwiki/wysiwyg/client/editor/Strings_de.properties
[INFO]                            List of keys found
[INFO]                               imageAlignLeftLabel
[INFO]                               imageSelectImageHelpLabel
[INFO]                               tableRowsLabel
[INFO]                               selectorSelectFromAllPages
[INFO]                               no
[INFO]                               macroCategoryUsed
[INFO]                               unlink
[INFO]                               tablePixel
[INFO]                               macro
[INFO]                               fileListFetchError
[INFO]                               colorPicker
[INFO]                               importerClipboardTabCaption
[INFO]                               macroInsert
[INFO]                               insertRowBefore
[INFO]                               foreColor
[INFO]                               imageTooltip
[INFO]                               ol
[INFO]                               importerFileTabCaption

Thank you for your help, Marius! Please give me some clue what should I do.


Jue Wang
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to