users@grizzly.java.net

Re: Example echo

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Fri, 25 Jan 2008 11:57:10 -0500

Hi Peter,

Peter Murray wrote:
> Erik,
>
> Thanks for the code... it seems that the example code is not my only problem.
>
> I put the "echo" example in the grizzely src tree on my local box.
> I build it with a mvn scrip I created.
> I then try to run the code with the following script:
> -------
> #
> export CLASSPATH=./target/classes
> echo $CLASSPATH
> #src/main/java/com/sun/grizzely/examples/
>
> java -cp $CLASSPATH -jar
> ../../modules/bundles/comet/target/grizzly-comet-webserver-1.7-SNAPSHOT.jar
> 8888 ./target/classes/com/sun/grizzely/examples
> com.sun.grizzely.examples.CometPojoEcho

is grizzely or grizzly? Seems you have a typo?

Thanks

-- Jeanfrancois

> ------
> ./run.sh
> ./target/classes
> Jan 24, 2008 10:17:34 PM
> com.sun.grizzly.standalone.StaticResourcesAdapter <init>
> INFO: New Servicing page from:
> /Users/petem/Downloads/GlassFish/Grizzly/grizzly/examples/echo/target/classes/com/sun/grizzely/examples
>
> java.lang.ClassNotFoundException: com.sun.grizzely.examples.CometPojoEcho
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> ------
> I have been looking at
> http://weblogs.java.net/blog/jfarcand/archive/2007/09/introducing_gri_1.html
>
> which seems to imply I need to make my project dir look like:
>
> | 4 drwxrwxr-x 3 ja120114 ja120114 4096 Sep 20 22:25 com
> 4 drwxrwxr-x 2 ja120114 ja120114 4096 Sep 19 17:31 images
> 4 -rw-rw-r-- 1 ja120114 ja120114 1634 Sep 19 19:32 index.html
> 4 drwxrwxr-x 2 ja120114 ja120114 4096 Sep 19 20:59 javascripts
> 4 drwxrwxr-x 2 ja120114 ja120114 4096 Sep 19 21:01 stylesheets|
>
>
> I hope this is not the case.
>
> Do I need html, js, ... just to run the pojo?
> Or am I missing something in my script?
>
> Thanks
>
> Peter
>
>
>
> --
> Peter Murray
> murraypetera_at_gmail.com <mailto:murraypetera_at_gmail.com>
> +1 914-414-3727
> AIM: retepmurray
> http://www.linkedin.com/in/peteramurray
>