[
http://jira.codehaus.org/browse/MGWT-8?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=168919#action_168919
]
Brendan Lawlor commented on MGWT-8:
-----------------------------------
I'm using the latest snapshot of the plugin and I am getting the follow related
error when performing a gwt:run :
[INFO] ------------------------------------------------------------------------
[INFO] Preparing gwt:run
[INFO] [dsi-repository:approvedMissingArtifacts {execution:
approvedMissingArtifacts}]
[INFO] Skipping
[INFO] [gwt:generateAsync {execution: default}]
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO] [compiler:compile]
[INFO] Compiling 1 source file to C:\workspace\claimswebgwt\target\classes
[INFO] [gwt:run]
[INFO] using GWT jars from project dependencies : 1.5.3
[INFO] Unpack native libraries required to run GWT
[INFO] source web.xml NOT present, using default empty web.xml for shell
[INFO] establishing classpath list (scope = runtime)
[ERROR] java.lang.NoClassDefFoundError: and
[ERROR] Exception in thread "main"
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] run.cmd script exited abnormally with code - 1
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13 seconds
[INFO] Finished at: Wed Mar 11 17:08:21 GMT 2009
[INFO] Final Memory: 21M/38M
[INFO] ------------------------------------------------------------------------
The issue here is that although the run.cmd file uses "" to surround all parts
of the classpath, I'm still getting a
java.lang.NoClassDefFoundError: and
Which is only fixed if I find-replace all instances of "Documents and Settings"
with "Docume~1"
Help!?
> gwt-maven-plugin does not work with spaces in repo path
> -------------------------------------------------------
>
> Key: MGWT-8
> URL: http://jira.codehaus.org/browse/MGWT-8
> Project: Maven 2.x GWT Plugin
> Issue Type: Bug
> Reporter: Maxim Gordienko
> Assignee: Olivier Lamy
> Fix For: 1.1
>
> Attachments: spaces-in-path.patch
>
>
> On windows default location of maven repository is under the "C:/Documents
> and Settings/<username>/.m2/repository" (put a correct drive letter).
> Note - there are spaces in the file names under it.
> if we run gwt-maven-plugin it fails with
> ....
> Caused by: java.lang.IllegalArgumentException
> at java.net.URI.create(URI.java:842)
> at
> com.google.gwt.util.tools.Utility.computeInstallationPath(Utility.jav
> a:288)
> at com.google.gwt.util.tools.Utility.getInstallPath(Utility.java:224)
> at com.google.gwt.util.tools.ToolBase.<clinit>(ToolBase.java:55)
> ... 26 more
> Caused by: java.net.URISyntaxException: Illegal character in path at index
> 18: f
> ile:/C:/Documents and
> Settings/xx/.m2/repository/com/google/gwt/gwt-dev/1.5-RC1/
> gwt-dev-1.5-RC1-windows.jar
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parseHierarchical(URI.java:3066)
> at java.net.URI$Parser.parse(URI.java:3014)
> at java.net.URI.<init>(URI.java:578)
> at java.net.URI.create(URI.java:840)
> ... 29 more
> In the attachement is a patch fixing this issue (alternative way to obtain
> compiler class is removed since the only way - is to encode url)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email