You didn't unclude the most important part of all your command line:
"java -cp ...."

Obviously you failed to add the commons logging jar file to the classpath.

Try: java -cp path/to/the/following/file/commons-logging-1.0.4.jar;...  ......

2008/7/10 Milan Milanovic <[EMAIL PROTECTED]>:
>
> Dear Dave,
>
> I put this in my classpath:
>
> C:\eclipse\workspace\myProject\WebContent\WEB-INF\lib\commons-logging-1.0.4.jar;
>
> and I run sitegraph from my lib folder:
>
> C:\eclipse\workspace\myProject\WebContent\WEB-INF\lib>java -cp ... -jar stru
> ts2-sitegraph-plugin-2.0.11.1.jar -config ../src/java -views ../../pages
> -output
>  shema
>
> and I get this exception:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/lo
> gging/LogFactory
>        at
> org.apache.struts2.sitegraph.SiteGraph.<clinit>(SiteGraph.java:51)
>
> What is the problem here ?
>
> --
> Thx, Milan
>
>
>
>
> newton.dave wrote:
>>
>> That's not how classpaths work: as I said, jar files must be listed
>> individually. This is most easily done programmatically in a shell script
>> (or batch file*s*; thanks Windows :(
>>
>> *Class* files need only the top-level directory listed--usually a build
>> output directory.
>>
>> Dave
>>
>> Milan Milanovic wrote:
>>> Hi,
>>> newton.dave wrote:
>>>>
>>>> Driving. In an automobile. To get from one place to another.
>>>>
>>>>
>>> Oh that, sorry ;-). You are anwsering to the list while driving, WOW :-).
>>> newton.dave wrote:
>>>>
>>>> Java 101 just means really basic Java: if you put all the libraries in
>>>> your lib directory that'd probably be enough (plus your build directory,
>>>> I
>>>> think somebody else mentioned).
>>>>
>>> All of my libs are in my lib directory, and I put CLASSPATH variable to
>>> that
>>> directory and still I got that error with LogManager.
>>> --
>>> Milan
>>> newton.dave wrote:
>>>>
>>>> Milan Milanovic wrote:
>>>>> You are driving ? Java 101 ? I must say I don't understand you :-(.
>>>>> I now how to define classpath, but there is a lot of things to
>>>>> configure
>>>>> for
>>>>> this SiteGraph plugin, so I'm asking if anyone have an example ?
>>>>> --
>>>>> Milan
>>>>> newton.dave wrote:
>>>>>>
>>>>>> No, I'm driving. This is Java 101, so any Java tutorial should be able
>>>>>> to
>>>>>> point you in the right direction.
>>>>>>
>>>>>> Dave
>>>>>>
>>>>>>
>>>>>> Milan Milanovic wrote:
>>>>>>> Could you please give me an example ?
>>>>>>> --
>>>>>>> Milan
>>>>>>> newton.dave wrote:
>>>>>>>>
>>>>>>>> No, it means you should include the directory *containing* the
>>>>>>>> compiled
>>>>>>>> class files. Jar files must be listed individually (trivial under
>>>>>>>> Unix-like environments, nearly under Windows--set your classpath or
>>>>>>>> do
>>>>>>>> it
>>>>>>>> from a shell/batch script; why would you do it by hand?!)
>>>>>>>>
>>>>>>>> Dave
>>>>>>>>
>>>>>>>> Milan Milanovic wrote:
>>>>>>>>> Hi,
>>>>>>>>> what this means: "Futhermore, you must also include your Action
>>>>>>>>> class
>>>>>>>>> files
>>>>>>>>> referenced in struts.xml" ?
>>>>>>>>> Does this mean that I should include in command line all of my 100
>>>>>>>>> action
>>>>>>>>> classes ?
>>>>>>>>> --
>>>>>>>>> Thx, Milan
>>>>>>>>> Musachy Barroso wrote:
>>>>>>>>>>
>>>>>>>>>> Or this:
>>>>>>>>>>
>>>>>>>>>> http://cwiki.apache.org/S2PLUGINS/sitegraph-plugin.html
>>>>>>>>>>
>>>>>>>>>> musachy
>>>>>>>>>>
>>>>>>>>>> On Wed, Jul 9, 2008 at 8:08 AM, Don Brown <[EMAIL PROTECTED]>
>>>>>>>>>> wrote:
>>>>>>>>>>> You can try the config browser plugin:
>>>>>>>>>>>
>>>>>>>>>>> http://struts.apache.org/2.x/docs/config-browser-plugin.html
>>>>>>>>>>>
>>>>>>>>>>> Don
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Jul 9, 2008 at 2:04 AM, Milan Milanovic
>>>>>>>>>>> <[EMAIL PROTECTED]> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>> I'm wodering is there any Eclipse plug-in (or something similar)
>>>>>>>>>>>> which
>>>>>>>>>>>> will
>>>>>>>>>>>> vizualize struts.xml configuration ?
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Thx, Milan
>>>>>>>>>>>> --
>>>>>>>>>>>> View this message in context:
>>>>>>>>>>>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18342762.html
>>>>>>>>>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> View this message in context:
>>>>>>>>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18361832.html
>>>>>>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18362620.html
>>>>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>
>>>>>>
>>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18363044.html
>>>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18364578.html
>>> Sent from the Struts - User mailing list archive at Nabble.com.
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/-S2--Struts-configuration-vizualization-tp18342762p18382932.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to