Monday, November 29, 2010

Generating build.xml file for web app

Hi,

I took over a fairly large gwt project from someone midway. I'm done
with my app, but I don't know how to generate the ant build script
now. I've tried the "deploy module" feature, but I get a "Parse Error
or Internal Design Error", log below:

-------------------------------------------------------------------------------
Plug-in Provider: Instantiations
Plug-in Name: WindowBuilder Professional
Plug-in ID: com.swtdesigner
Plug-in Version: 8.1.0.r36x201010220706

org.eclipse.core.runtime.CoreException: The archive: //Wnyc0166527/c$/
eclipse/c$/eclipse/plugins/
org.eclipse.swt.win32.win32.x86_3.6.1.v3655c.jar which is referenced
by the classpath, does not exist.
at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:
1354)
at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:
1340)
at
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:
928)
at
org.eclipse.jdt.internal.launching.DefaultEntryResolver.resolveRuntimeClasspathEntry(DefaultEntryResolver.java:
38)
at
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:
933)
at
org.eclipse.jdt.launching.StandardClasspathProvider.resolveClasspath(StandardClasspathProvider.java:
75)
at
org.eclipse.jdt.internal.launching.RuntimeClasspathProvider.resolveClasspath(RuntimeClasspathProvider.java:
60)
at
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspath(JavaRuntime.java:
1214)
at
org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getClasspath(AbstractJavaLaunchConfigurationDelegate.java:
417)
at
org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:
71)
at
org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.runInSeparateVM(AntLaunchDelegate.java:
652)
at
org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:
270)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:
853)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:
702)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:
695)
at
com.instantiations.designer.gwt.actions.deploy.AntHelper.execute(AntHelper.java:
66)
at
com.instantiations.designer.gwt.actions.deploy.DeployModuleAction
$1.run(DeployModuleAction.java:94)
at org.eclipse.jface.operation.ModalContext
$ModalContextThread.run(ModalContext.java:121)

Full stack trace (to see full context):
java.lang.reflect.InvocationTargetException
at
com.instantiations.designer.gwt.actions.deploy.DeployModuleAction
$1.run(DeployModuleAction.java:97)
at org.eclipse.jface.operation.ModalContext
$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.runtime.CoreException: The archive: //
Wnyc0166527/c$/eclipse/c$/eclipse/plugins/
org.eclipse.swt.win32.win32.x86_3.6.1.v3655c.jar which is referenced
by the classpath, does not exist.
at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:
1354)
at org.eclipse.jdt.launching.JavaRuntime.abort(JavaRuntime.java:
1340)
at
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:
928)
at
org.eclipse.jdt.internal.launching.DefaultEntryResolver.resolveRuntimeClasspathEntry(DefaultEntryResolver.java:
38)
at
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:
933)
at
org.eclipse.jdt.launching.StandardClasspathProvider.resolveClasspath(StandardClasspathProvider.java:
75)
at
org.eclipse.jdt.internal.launching.RuntimeClasspathProvider.resolveClasspath(RuntimeClasspathProvider.java:
60)
at
org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspath(JavaRuntime.java:
1214)
at
org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getClasspath(AbstractJavaLaunchConfigurationDelegate.java:
417)
at
org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:
71)
at
org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.runInSeparateVM(AntLaunchDelegate.java:
652)
at
org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate.launch(AntLaunchDelegate.java:
270)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:
853)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:
702)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:
695)
at
com.instantiations.designer.gwt.actions.deploy.AntHelper.execute(AntHelper.java:
66)
at
com.instantiations.designer.gwt.actions.deploy.DeployModuleAction
$1.run(DeployModuleAction.java:94)
... 1 more

---------------------------------------------------------------------------------------

This error seems to have my path wrong in the first place (with the
repeating 'C:\eclipse'), and secondly that jar is not referenced
anywhere in my classpath. I tried removing this plug in, but then I
lose the "deploy module" functionality.

If I understand correctly, the other way to get the build file is my
using the webAppCreator in the beginning to create the project.

How can I write a ant build script once the project is completed?
There must be a systematic way to go about doing this?

Any help is appreciated. Thanks.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment