Hi Kristian, On Thu 10 May 2007 06:30, kristian wrote: > hello, > > has someone any clues for me how to solve that issue. it has something > to do with URI do not allow space in the path
Maybe if try: String.replaceAll("\\s", "%20") on all paths? Regards, Kostis > > thanx > Kristian > > ---------- Forwarded message ---------- > From: Ian Dallas <[EMAIL PROTECTED]> > Date: May 10, 2007 5:11 AM > Subject: mvn gwt:compile fails with space in path (on Windows) > To: [EMAIL PROTECTED] > > > It looks like GWTCompileMojo has problems when the path to > gwt-dev-$OS.jar has a space in it... > > The line that's throwing the error is "GWTCompiler compiler = new > GWTCompiler();" I'm afraid I don't understand the classloader and > proxying acrobatics well enough to know where to fix it. > > Stacktrace attached. > > Thanks, > --ian > > [DEBUG]Configuring mojo 'de.saumya.mojo:gwt-maven-plugin:1.4:compile' --> > [DEBUG] (f) artifacts = > [cearch:io-socket-cearch-connection:jar:1.0-SNAPSHOT:compile, > cearch:protocol-controller:jar:1.0-SNAPSHOT:compile, > cearch:json-serialization-codec-google:jar:1.0-SNAPSHOT:compile, > cearch:model-objects:jar:1.0-SNAPSHOT:compile, > cearch:json-serialization-controller:jar:1.0-SNAPSHOT:compile, > com.google:gwt-user:jar:1.2.11:compile, > cearch:json-serialization-common:jar:1.0-SNAPSHOT:compile, > cearch:io-serialization-common:jar:1.0-SNAPSHOT:compile, > cearch:protocol-common:jar:1.0-SNAPSHOT:compile, > cearch:io-json:jar:1.0-SNAPSHOT:compile, > cearch:clients-common:jar:1.0-SNAPSHOT:compile, > cearch:io-common:jar:1.0-SNAPSHOT:compile, > cearch:base-device-profile:jar:1.0-SNAPSHOT:compile, > cearch:clients-controller:jar:1.0-SNAPSHOT:compile] > [DEBUG] (f) classRealm = [EMAIL PROTECTED] > [DEBUG] (f) gwtVersion = 1.3.3 > [DEBUG] (f) localRepository = [local] -> file://C:\Documents and > Settings\Ian\.m2\repository > [DEBUG] (f) module = cearch.web.cwa.CWADriver > [DEBUG] (f) outputDirectory = C:\Documents and > Settings\Ian\Desktop\dev\cearch\trunk\java\web\cearch-web-app\www\www > [DEBUG] (f) resourceDirectories = [EMAIL PROTECTED] > [DEBUG] (f) sourceDirectory = C:\Documents and > Settings\Ian\Desktop\dev\cearch\trunk\java\web\cearch-web-app\src\main\java > [DEBUG] (f) style = PRETTY > [DEBUG]-- end configuration -- > [gwt:compile] > [DEBUG] adding to classpath: C:\Documents and > Settings\Ian\.m2\repository\com\google\gwt\gwt-user\1.3.3\gwt-user-1.3.3.ja >r [DEBUG] adding to classpath: C:\Documents and > Settings\Ian\.m2\repository\com\google\gwt\gwt-dev-windows\1.3.3\gwt-dev-wi >ndows-1.3.3.jar [DEBUG] adding to classpath: C:\Documents and > Settings\Ian\Desktop\dev\cearch\trunk\java\web\cearch-web-app\src\main\java > [DEBUG]classpath=[file:/C:/Documents and > Settings/Ian/.m2/repository/de/saumya/mojo/gwt-maven-plugin/1.4/gwt-maven-p >lugin-1.4.jar, file:/C:/Documents and > Settings/Ian/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar, > file:/C:/Documents and > Settings/Ian/.m2/repository/org/apache/maven/shared/maven-plugin-testing-ha >rness/1.0-beta-1/maven-plugin-testing-harness-1.0-beta-1.jar, > file:/C:/Documents and > Settings/Ian/.m2/repository/com/google/gwt/gwt-user/1.3.3/gwt-user-1.3.3.ja >r, file:/C:/Documents and > Settings/Ian/.m2/repository/com/google/gwt/gwt-dev-windows/1.3.3/gwt-dev-wi >ndows-1.3.3.jar, file:/C:/Documents and > Settings/Ian/Desktop/dev/cearch/trunk/java/web/cearch-web-app/src/main/java >/] > [INFO]--------------------------------------------------------------------- >--- [ERROR]BUILD ERROR > [INFO]--------------------------------------------------------------------- >--- [INFO]Exception during reflection call > > Illegal character in path at index 18: file:/C:/Documents and > Settings/Ian/.m2/repository/com/google/gwt/gwt-dev-windows/1.3.3/gwt-dev-wi >ndows-1.3.3.jar > [INFO]--------------------------------------------------------------------- >--- [DEBUG]Trace > org.apache.maven.lifecycle.LifecycleExecutionException: Exception > during reflection call > > at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLif >ecycleExecutor.java:635) at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(D >efaultLifecycleExecutor.java:564) at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLife >cycleExecutor.java:534) at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFai >lures(DefaultLifecycleExecutor.java:309) at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Def >aultLifecycleExecutor.java:222) at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycl >eExecutor.java:143) at > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:393) at > org.apache.maven.DefaultMaven.execute(DefaultMaven.java:182) at > org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:760) at > org.codehaus.mevenide.netbeans.execute.MavenJavaExecutor.run(MavenJavaExecu >tor.java:257) at > org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131) > Caused by: org.apache.maven.plugin.MojoExecutionException: Exception during > reflection call > at > de.saumya.mojo.gwt.GWTCompileMojo.execute(GWTCompileMojo.java:128) at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManag >er.java:417) at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLif >ecycleExecutor.java:610) ... 10 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3 >9) at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp >l.java:25) at java.lang.reflect.Method.invoke(Method.java:585) > at > de.saumya.mojo.gwt.GWTCompileMojo$CompilerFacadeInvocationHandler.invoke(GW >TCompileMojo.java:166) at $Proxy19.compile(Unknown Source) > at > de.saumya.mojo.gwt.GWTCompileMojo.execute(GWTCompileMojo.java:124) ... 12 > more > Caused by: java.lang.ExceptionInInitializerError > at > de.saumya.mojo.gwt.GWTCompilerFacadeImpl.compile(GWTCompilerFacadeImpl.java >:121) ... 19 more > Caused by: java.lang.IllegalArgumentException > at java.net.URI.create(URI.java:842) > at > com.google.gwt.util.tools.Utility.computeInstallationPath(Utility.java:287) > at com.google.gwt.util.tools.Utility.getInstallPath(Utility.java:223) at > com.google.gwt.util.tools.ToolBase.<clinit>(ToolBase.java:55) ... 20 more > Caused by: java.net.URISyntaxException: " > at java.net.URI$Parser.fail(URI.java:2816) > at java.net.URI$Parser.checkChars(URI.java:2989) > at java.net.URI$Parser.parseHierarchical(URI.java:3073) > at java.net.URI$Parser.parse(URI.java:3021) > at java.net.URI.<init>(URI.java:578) > at java.net.URI.create(URI.java:840) > ... 23 more > [INFO]--------------------------------------------------------------------- >--- [INFO]Total time: 1 second > [INFO]Finished at: Wed May 09 16:30:04 PDT 2007 > [INFO]Final Memory: 106M/127M > [INFO]--------------------------------------------------------------------- >--- > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email