Hi,
I have a sample web services application that we given in STS (Help > Task-Focused Tutorials > Spring Web Services > Creating a contract-first web service).
This tutorial creates an application called ws-tutorial and works perfectly on localhost. But, when I try to run it on vCloud by dragging it onto my vCloud account within STS and clicking on Start, I get the following error.
An internal error occurred during: "Starting application ws-tutorial".
java.lang.NullPointerException
Can someone please take a look and let me know whats wrong?
Try looking at the error log from STS to see if there is more detail. Window -> Show View -> Error Log
Thanks. In the error log is see..
<code>
eclipse.buildId=2.5.2.201101081000-RELEASE
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product com.springsource.sts.ide
Command-line arguments: -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide
Error
Wed Jan 26 18:31:46 PST 2011
eclipse.buildId=2.5.2.201101081000-RELEASE
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product com.springsource.sts.ide
Command-line arguments: -os win32 -ws win32 -arch x86 -product com.springsource.sts.ide
Error
Wed Jan 26 18:31:46 PST 2011
Error calling delegate startModule() org.eclipse.wst.server.core.internal.Server$19$1@2811d6
java.lang.NullPointerException
at com.vmware.sts.internal.server.appcloud.core.CloudUtil.createWarFile(CloudUtil.java:78)
at com.vmware.sts.internal.server.appcloud.core.AppCloudServerBehaviour$15.doRun(AppCloudServerBehaviour.java:369)
at com.vmware.sts.internal.server.appcloud.core.AppCloudServerBehaviour$15.doRun(AppCloudServerBehaviour.java:1)
at com.vmware.sts.internal.server.appcloud.core.AppCloudServerBehaviour$Request.run(AppCloudServerBehaviour.java:706)
at com.vmware.sts.internal.server.appcloud.core.AppCloudServerBehaviour.startModule(AppCloudServerBehaviour.java:391)
at com.vmware.sts.internal.server.appcloud.core.AppCloudServerBehaviour.startModule(AppCloudServerBehaviour.java:408)
at org.eclipse.wst.server.core.internal.Server$19$1.run(Server.java:2634)
at org.eclipse.wst.server.core.internal.Server.runAndWait(Server.java:2576)
at org.eclipse.wst.server.core.internal.Server$19.run(Server.java:2623)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
</code>
This looks like a bug in our STS plugin. We will take a look. Meanwhile, can you try "Refresh" on the project and redeploy. Please post here what you see after that.
-Ramnivas
I am moving this to proper forum http://communities.vmware.com/thread/302664