users@glassfish.java.net

Re: Glassfish Metro - Getting started problem

From: Martin Matula <Martin.Matula_at_Sun.COM>
Date: Sat, 11 Sep 2010 18:56:15 +0200

Hi,
I'm sorry - there was a bug in the build script for those samples.
Please remove JAX-WS 2.2.1 you added to your JDK endorsed directory,
download the new zips from the getting started page and try again.
Thanks,
Martin

On Sep 10, 2010, at 1:31 AM, glassfish_at_javadesktop.org wrote:

> https://metro.dev.java.net/getting-started/basic.html
>
> I have Glassfish 3.0.1 installed using zip archive and running with
> the System Java VM on my Gentoo Linux pc.
>
> I am using sun JDK 1.6.0_20 and have downloaded and installed
> JAXWS2.2.1-20100617 into the jdk/jre/lib/endorsed directory, as the
> build of the server whinged about requiring 2.2, rather than the
> built in 1.1
>
> I successfully built the server components.
> I can invoke them using soapUI.
> I successfully built the client.
> I try running the client 'ant client' and I receive a stack trace.
> The client actually starts, I have put a 'AddNumbersClient Started.'
> output to confirm this.
> Stack trace follows...
>
> [java] Executing '/opt/sun-jdk-1.6.0.20/jre/bin/java' with
> arguments:
> [java] '-classpath'
> [java] '/opt/sun-jdk-1.6.0.20/lib/tools.jar:/usr/local/GlassFish/
> glassfishv3/glassfish/lib/javaee.jar:/home/pearcely/metro/wsit-jaxws-
> fromwsdl/build/classes:/home/pearcely/metro/wsit-jaxws-fromwsdl/etc'
> [java] 'fromwsdl.client.AddNumbersClient'
> [java]
> [java] The ' characters around the executable and arguments are
> [java] not part of the command.
> [java] AddNumbersClient started.
> [java] Exception in thread "main"
> java.lang.NoClassDefFoundError: org/glassfish/gmbal/
> ManagedObjectManager
> [java] at com.sun.xml.ws.client.Stub.<init>(Stub.java:196)
> [java] at com.sun.xml.ws.client.Stub.<init>(Stub.java:174)
> [java] at com.sun.xml.ws.client.sei.SEIStub.<init>(SEIStub.java:
> 81)
> [java] at
> com
> .sun
> .xml
> .ws
> .client
> .WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:
> 602)
> [java] at
> com
> .sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:
> 344)
> [java] at
> com
> .sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:
> 326)
> [java] at
> com
> .sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:
> 308)
> [java] at javax.xml.ws.Service.getPort(Service.java:99)
> [java] at
> fromwsdl
> .client.AddNumbersService.getAddNumbersPort(AddNumbersService.java:72)
> [java] at fromwsdl.client.AddNumbersClient.main(Unknown Source)
> [java] Caused by: java.lang.ClassNotFoundException:
> org.glassfish.gmbal.ManagedObjectManager
> [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> [java] at java.security.AccessController.doPrivileged(Native
> Method)
> [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:
> 190)
> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> [java] at sun.misc.Launcher
> $AppClassLoader.loadClass(Launcher.java:301)
> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> [java] ... 10 more
> [java] Java Result: 1
> [Message sent by forum member 'lyallp']
>
> http://forums.java.net/jive/thread.jspa?messageID=482227
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>