Glad to hear the patch is useful :) There are two threads that I think are related to this problem:
http://groups.google.com/group/gwt-maven/browse_thread/thread/4da569c4741269bf/ed07dd99f4117a26 http://groups.google.com/group/gwt-maven/browse_thread/thread/661f8f3a281cf1e7/329ae6cdc7dc8504?lnk=gst&q=NullPointerException+DefaultWagonManager+getArtifact#329ae6cdc7dc8504 Cheers, Célio On Nov 4, 5:13 pm, Charlie Collins <[EMAIL PROTECTED]> wrote: > I had no idea people were having this problem actually, but it looks > like a solid patch, I will get it applied to the trunk soon. > > Thanks for the contribution. > > On Nov 4, 11:38 am, "Célio Cidral Junior" <[EMAIL PROTECTED]> > wrote: > > > I've seen some people having this problem in earlier posts. In my local > > machine everything works fine, however it have been throwing NPE in our > > development server, I could not know why (the stack trace follows). I have > > fixed it by changing the BuildClasspathUtil class. Here's a patch (against > > 2.0-b24 tag): > > > http://groups.google.com/group/gwt-maven/web/maven-gwt2-plugin.patch > > > Maven version: 2.0.9 > > Java version: 1.6.0_06 > > Plugin version: maven-googlewebtoolkit2-plugin-2.0-beta24.jar > > > I hope it helps. Please let known if there's some problem with this fix. > > > Cheers, > > > Célio > > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Building My Project > > [INFO] task-segment: [clean, install] > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] [clean:clean] > > [INFO] Deleting directory /path/to/target/dir > > [INFO] [resources:resources] > > [INFO] Using default encoding to copy filtered resources. > > [INFO] [gwt:mergewebxml {execution: default}] > > [INFO] copy source web.xml - /path/to/web.xml to build dir (source web.xml > > required if mergewebxml execution is enabled) > > [INFO] establishing classpath list (buildClaspathList - scope = COMPILE) > > [INFO] google.webtoolkit.home (gwtHome) *not* set, using project POM for GWT > > dependencies > > java.lang.NullPointerException > > at > > org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:303) > > at > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200) > > at > > org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74) > > at > > com.totsp.mavenplugin.gwt.util.BuildClasspathUtil.injectGwtDepsFromRepo(BuildClasspathUtil.java:173) > > at > > com.totsp.mavenplugin.gwt.util.BuildClasspathUtil.buildClasspathList(BuildClasspathUtil.java:75) > > at > > com.totsp.mavenplugin.gwt.AbstractGWTMojo.fixThreadClasspath(AbstractGWTMojo.java:335) > > at > > com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java:85) > > at > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) > > at > > hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:159) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) > > at > > org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:42) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > at hudson.maven.agent.Main.launch(Main.java:133) > > at hudson.maven.MavenBuilder.call(MavenBuilder.java:139) > > at > > hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:543) > > at > > hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:489) > > at hudson.remoting.UserRequest.perform(UserRequest.java:69) > > at hudson.remoting.UserRequest.perform(UserRequest.java:23) > > at hudson.remoting.Request$2.run(Request.java:213) > > at > > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) > > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) > > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) > > at java.lang.Thread.run(Thread.java:619) > > [HUDSON] Archiving /path/to/pom.xml to > > /path/to/modules/groupId$artifactId/builds/2008-11-04_13-56-56/archive/groupId/artifactId/1.0-SNAPSHOT/pom.xml > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] BUILD ERROR > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Unable to merge web.xml > > > Embedded error: java.lang.NullPointerException > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] For more information, run Maven with the -e switch > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Total time: 47 seconds > > [INFO] Finished at: Tue Nov 04 13:57:49 BRST 2008 > > [INFO] Final Memory: 61M/81M > > [INFO] > > ------------------------------------------------------------------------ > > > maven-gwt2-plugin.patch > > 1KViewDownload > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "gwt-maven" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/gwt-maven?hl=en -~----------~----~----~----~------~----~------~--~---
