t; From: Milan Milanovic <[EMAIL PROTECTED]>
> Subject: Re: [OT] RE: RE: RE: RE: Re: [S2] Struts configuration vizualization
> To: user@struts.apache.org
> Date: Thursday, July 10, 2008, 1:34 PM
> Dear Dave,
>
>
> newton.dave wrote:
> >
> > --- On Thu, 7/10/08
Dear Dave,
newton.dave wrote:
>
> --- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>> Oh, it uses commons-logging-1.0.3.jar but I'm using
>> commons-logging-1.0.4.jar in my applications lib directory.
>> So, I need to delete 1.0.4 and copy 1.0.3 in my lib ?
>
> Wouldn't it have
--- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> Oh, it uses commons-logging-1.0.3.jar but I'm using
> commons-logging-1.0.4.jar in my applications lib directory.
> So, I need to delete 1.0.4 and copy 1.0.3 in my lib ?
Wouldn't it have been quicker to try it?
If it can't find a
Dear Dave,
newton.dave wrote:
>
> --- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>> I noticed this, but my Sitegraph plugin in the same
>> directory as the dependent jars so I don't need to
>> put them into classpath?
>
> Oh, it looks like the sitegraph plugin puts its requir
--- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> I noticed this, but my Sitegraph plugin in the same
> directory as the dependent jars so I don't need to
> put them into classpath?
Oh, it looks like the sitegraph plugin puts its requirements in its manifest
file, so never mind a
Dear Dave,
newton.dave wrote:
>
> 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 CLASSP
--- 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 y
Dear Lukasz,
Yes, Environment variable CLASSPATH, I wrote above what is content of the
variable.
java -cp is for setting classpath and it is given at Sitegraph page.
I tried just with "java -jar struts2-sitegraph-plugin-2.0.11.1.jar -config
../src/java...", but it is the same.
--
Milan
Lukas
Dear Dave,
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]
--
Milan
newton.dave wrote:
>
> --- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>
When I write echo %CLASSPATH% in my command prompt I get this:
and I get this exception:
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/commons/lo
gging/LogFactory
at
org.apache.struts2.sitegraph.SiteGraph.(SiteGraph.java:51)
When I write echo %CLASSPATH% in my co
--- On Thu, 7/10/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
> 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 ...
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 D
> 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 -vi
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 -vi
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 wro
15 matches
Mail list logo