--- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> this is how it is given at SiteGraph page:
> 
> java -cp ... -jar struts2-sitegraph-plugin-x.x.x.jar
>      -config CONFIG_DIR
>      -views VIEWS_DIRS
>      -output OUTPUT
>      [-ns NAMESPACE]

So... you didn't use "x.x.x", and you didn't add "[-ns NAMESPACE]", which are 
obviously placeholders. So is the "...". It should be replaced with (a) 
nothing, removing the -cp, and rely on the CLASSPATH environment variable, (b) 
use -cp and use the CLASSPATH as -cp's argument, or (c) put all the required 
libraries as -cp arguments (not recommended; too much work).

As I said before: using -cp will cause your classpath environment variable to 
be ignored (IIRC, I could be wrong about that, but avoiding the confusion is 
easy. Or so I thought.)

Apparently the large red box on the SiteGraph plugin page [1] containing the 
following text remains unnoticed:

"You must either supply the correct classpath when invoking the SiteGraph tool 
or place the Sitegraph plugin in the same directory as the dependent jars. 
Specifically, the XWork jar, Struts jar, and their dependencies must be 
included in the classpath. Futhermore, you must also include your Action class 
files referenced in struts.xml. Without the proper class path entries, 
SiteGraph will not function properly."

PUT ***ALL*** THE REQUIRED JARS IN YOUR CLASSPATH. I don't know what else to 
tell you or how else to say it so you'll understand.

(You've installed GraphViz, right?)

Good luck,
Dave

[1] http://struts.apache.org/2.x/docs/sitegraph-plugin.html


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to