You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Lars Hecking <lh...@users.sourceforge.net> on 2001/11/14 17:10:44 UTC

velocity rc3 broken

 This is what I get with velocity 1.2rc3 and wormscan 1.2/1.3
 (http://www.websoup.net/wormscan/). I don't claim to understand what
 the error is, or propose a fix :), but can supply more information
 (which?) if required. Downgrading to 1.2rc1 fixes the problem for me,
 and I had no chance to try rc2.

 Solaris 8 07/01 SPARC
 java version "1.2.2"
 Solaris VM (build Solaris_JDK_1.2.2_07a, native threads, sunwjit)

$ java -classpath jakarta-oro-2.0.4.jar:velocity-1.2-rc3.jar:wormscan.jar net.websoup.wormscan.Program
[...]
Completed resolving hostnames
DNS Cache written to disk
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/ExtendedProperties
        at org.apache.velocity.runtime.RuntimeInstance.<init>(RuntimeInstance.java:207)
        at <Unloaded Method>
        at org.apache.velocity.app.Velocity.init(Velocity.java:123)
        at net.websoup.wormscan.Program.main(Compiled Code)
$ 

 I'm not on the list, if you want to mail me directly or Cc me, that's fine.

 Thanks.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: velocity rc3 broken

Posted by "Geir Magnusson Jr." <ge...@yahoo.com>.
Please accept my apologies.

rc3 has a change where we don't bundle all the external dependencies in the
default jar included in the distro package.  It is something we did in the
release phase, just to get it done.  :-}

There is a build target, jar-dep, which will build a jar with them included.

Alternatively, just add the commons-collections.jar to the classpath (found
in build/lib)

This will be made screamingly clear in the notes for the 1.2 release
(shooting for this sat when I get back..)

There is a reminder on the Velocity home page as well.

geir


On 11/14/01 11:10 AM, "Lars Hecking" <lh...@users.sourceforge.net> wrote:

> 
> This is what I get with velocity 1.2rc3 and wormscan 1.2/1.3
> (http://www.websoup.net/wormscan/). I don't claim to understand what
> the error is, or propose a fix :), but can supply more information
> (which?) if required. Downgrading to 1.2rc1 fixes the problem for me,
> and I had no chance to try rc2.
> 
> Solaris 8 07/01 SPARC
> java version "1.2.2"
> Solaris VM (build Solaris_JDK_1.2.2_07a, native threads, sunwjit)
> 
> $ java -classpath jakarta-oro-2.0.4.jar:velocity-1.2-rc3.jar:wormscan.jar
> net.websoup.wormscan.Program
> [...]
> Completed resolving hostnames
> DNS Cache written to disk
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/collections/ExtendedProperties
>       at 
> org.apache.velocity.runtime.RuntimeInstance.<init>(RuntimeInstance.java:207)
>       at <Unloaded Method>
>       at org.apache.velocity.app.Velocity.init(Velocity.java:123)
>       at net.websoup.wormscan.Program.main(Compiled Code)
> $ 
> 
> I'm not on the list, if you want to mail me directly or Cc me, that's fine.
> 
> Thanks.
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 

-- 
Geir Magnusson Jr.                                     geirm@optonline.net
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: velocity rc3 broken

Posted by Jon Stevens <jo...@latchkey.com>.
on 11/14/01 10:54 AM, "Geir Magnusson Jr." <ge...@yahoo.com>
wrote:

> Good idea...  That's fair, for 1.2 only (and then will rethrow...)

I think it is good for 1.3 as well. Having a simple answer to runtime
dependency issues is nice. I was going to suggest a commons utility where
you could configure in a properties file what the runtime requirements are,
but then I realized that if it is in the commons, you would have a circular
dependency problem. :-)

-jon


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: velocity rc3 broken

Posted by "Geir Magnusson Jr." <ge...@yahoo.com>.
On 11/14/01 1:46 PM, "Jon Stevens" <jo...@latchkey.com> wrote:

> on 11/14/01 8:10 AM, "Lars Hecking" <lh...@users.sourceforge.net> wrote:
> 
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/commons/collections/ExtendedProperties
>>       at 
>> org.apache.velocity.runtime.RuntimeInstance.<init>(RuntimeInstance.java:207)
> 
> Hey Geir,
> 
> How about catching the NCDFE's for the classes that we no longer bundle and
> displaying a helpful error message (maybe a URL for more information?).
> 

Good idea...  That's fair, for 1.2 only (and then will rethrow...)


-- 
Geir Magnusson Jr.                                     geirm@optonline.net
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: velocity rc3 broken

Posted by Jon Stevens <jo...@latchkey.com>.
on 11/14/01 8:10 AM, "Lars Hecking" <lh...@users.sourceforge.net> wrote:

> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/collections/ExtendedProperties
>       at 
> org.apache.velocity.runtime.RuntimeInstance.<init>(RuntimeInstance.java:207)

Hey Geir,

How about catching the NCDFE's for the classes that we no longer bundle and
displaying a helpful error message (maybe a URL for more information?).

-jon


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>