On Mon, Oct 6, 2008 at 1:06 PM, Simon Nash <[EMAIL PROTECTED]> wrote:
> I built the source distro without any problems.
>
> I tried running a selection of samples from the binary distro.
> Unfortunately I didn't get very far before hitting the first problem.
> In samples/helloworld-jms-service, "ant run" gives the following error:
>
> Buildfile: build.xml
>
> run:
>     [java] java.lang.NoClassDefFoundError: helloworld/HelloWorldServer
>     [java] Caused by: java.lang.ClassNotFoundException:
> helloworld.HelloWorldServer
>     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>     [java]     at java.security.AccessController.doPrivileged(Native Method)
>     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>     [java]     at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
>
>     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>     [java]     at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>
>     [java] Exception in thread "main"
>     [java] Java Result: 1
>
> BUILD SUCCESSFUL
> Total time: 0 seconds
>
> Despite the reassuring "BUILD SUCCESSFUL" message, something is clearly
> wrong with this picture.  I looked at the build.xml file and it is
> trying to call sample-helloworld-ws-service-jms.jar instead of the
> correct filename sample-helloworld-service-jms.jar.  Correcting this
> allows the sample to run.
>
> I'm withholding my +1 until I've had a chance to try more samples to
> see how many of them have similar problems.
>

Looks like some samples need a minor README update.
You should use : ant compile run

>  Simon
>
>
>



-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Reply via email to