You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by wilson wong <ww...@revacomm.com> on 2002/04/09 22:30:49 UTC
RE: Solved: Problem with the examples/app_examples1 usingvelocity-1.3-rc1 and JDK1.4.0-b92
Hi Geir,
Thanks! It works. I saw that solution and it said it was for
version 1.2 so I didn't try.... I should have tried it anyway.
Wilson
-----Original Message-----
From: Geir Magnusson Jr. [mailto:geirm@optonline.net]
Sent: Tuesday, April 09, 2002 10:20 AM
To: velocity-user@jakarta.apache.org
Subject: Re: Problem with the examples/app_examples1
usingvelocity-1.3-rc1 and JDK1.4.0-b92
On 4/9/02 4:12 PM, "wilson wong" <ww...@revacomm.com> wrote:
> Hi,
>
> The commons-collections.jar and logkit-1.0.1.jar are already in the
> VELOCITY_HOME\build\lib directory.
>
> I am using Windows XP. And I got the following message when I try to
> execute VELOCITY_HOME\examples\app_example1\example.bat. The following
> error message is returned.
>
> E:\apache\velocity-1.3-rc1\examples\app_example1>example.bat
> Using classpath:
> .;..\..\bin\velocity-1.3-rc1.jar;..\..\build\lib\werken.xpath.jar
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/collections/ExtendedProperties
> at
> org.apache.velocity.runtime.RuntimeInstance.<init>(RuntimeInstance.jav
> a:
> 203)
> at
>
org.apache.velocity.runtime.RuntimeSingleton.<clinit>(RuntimeSingleton.j
> ava:150)
> at org.apache.velocity.app.Velocity.init(Velocity.java:136)
> at Example.<init>(Example.java:85)
> at Example.main(Example.java:159)
>
The problem is that the velocity jar builds by default w/o the
dependencies included. You can either copy the dependencies out of the
build/lib dir and put them in your webapp's WEB-INF/lib (or classpath,
which is a bad idea...) or build the velocity jar with included
dependencies ...
ant jar-dep
Which will produce a velocity-dep-1.3.jar in the bin directory...
--
Geir Magnusson Jr.
geirm@optonline.net
System and Software Consulting
The question is : What is a Mahnamahna?
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Solved: Problem with the examples/app_examples1
usingvelocity-1.3-rc1 and JDK1.4.0-b92
Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 4/9/02 4:30 PM, "wilson wong" <ww...@revacomm.com> wrote:
> Hi Geir,
>
> Thanks! It works. I saw that solution and it said it was for
> version 1.2 so I didn't try.... I should have tried it anyway.
Did you see that in the included README's or docs in 1.3? If so, we'll need
to update so that's clear...
>
> Wilson
>
> -----Original Message-----
> From: Geir Magnusson Jr. [mailto:geirm@optonline.net]
> Sent: Tuesday, April 09, 2002 10:20 AM
> To: velocity-user@jakarta.apache.org
> Subject: Re: Problem with the examples/app_examples1
> usingvelocity-1.3-rc1 and JDK1.4.0-b92
>
>
> On 4/9/02 4:12 PM, "wilson wong" <ww...@revacomm.com> wrote:
>
>> Hi,
>>
>> The commons-collections.jar and logkit-1.0.1.jar are already in the
>> VELOCITY_HOME\build\lib directory.
>>
>> I am using Windows XP. And I got the following message when I try to
>> execute VELOCITY_HOME\examples\app_example1\example.bat. The following
>
>> error message is returned.
>>
>> E:\apache\velocity-1.3-rc1\examples\app_example1>example.bat
>> Using classpath:
>> .;..\..\bin\velocity-1.3-rc1.jar;..\..\build\lib\werken.xpath.jar
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/commons/collections/ExtendedProperties
>> at
>> org.apache.velocity.runtime.RuntimeInstance.<init>(RuntimeInstance.jav
>> a:
>> 203)
>> at
>>
> org.apache.velocity.runtime.RuntimeSingleton.<clinit>(RuntimeSingleton.j
>> ava:150)
>> at org.apache.velocity.app.Velocity.init(Velocity.java:136)
>> at Example.<init>(Example.java:85)
>> at Example.main(Example.java:159)
>>
>
> The problem is that the velocity jar builds by default w/o the
> dependencies included. You can either copy the dependencies out of the
> build/lib dir and put them in your webapp's WEB-INF/lib (or classpath,
> which is a bad idea...) or build the velocity jar with included
> dependencies ...
>
> ant jar-dep
>
>
> Which will produce a velocity-dep-1.3.jar in the bin directory...
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
POC lives!
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>