You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org> on 2007/03/08 01:04:31 UTC
[jira] Closed: (VELOCITY-75) Send all log output to System.out in
the event that Avalon or whatever can't be loaded.
[ https://issues.apache.org/jira/browse/VELOCITY-75?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henning Schmiedehausen closed VELOCITY-75.
------------------------------------------
> Send all log output to System.out in the event that Avalon or whatever can't be loaded.
> ---------------------------------------------------------------------------------------
>
> Key: VELOCITY-75
> URL: https://issues.apache.org/jira/browse/VELOCITY-75
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.3-rc1
> Environment: Operating System: All
> Platform: All
> Reporter: Matt Gould
> Priority: Minor
> Fix For: 1.5
>
>
> First of all, a problem with this site:
> I just submitted this bug by laboriously typing in lots of detailed info, and
> your bug servlet complained that it was missing a component, and to
> press "back", but I then lost everything I had typed.
> This is really "insult to injury". Please don't let the user go to a new page
> and throw away everything that they've typed! This is a favor to you guys and
> the development community.
> Phew! Now, the main point:
> This is the second time I've posted a bug in the log system, this time
> regarding the default settings in the velocity.properties file searching for an
> Avalon log system that is not present.
> Here's what you do: If the avalon log system is not found, create a simple
> class that sends everything to Standard.out.
> O.k.?
> The class to change is: org.apache.velocity.runtime.log.LogManager.java
> The line to change is in the following block of code, noted inline:
> try
> {
> als = new AvalonLogSystem();
> als.init( rsvc );
> }
> catch( NoClassDefFoundError ncdfe )
> {
> ///////////////////////////// PUT THE CHANGE HERE!
> ////////////////////////////// END OF THE CHANGE, REMOVE THE REST OF THE CODE
> ///////////////////////////// IN THIS CATCH BLOCK
> String errstr = "PANIC : Velocity cannot find any of the"
> + " specified or default logging systems in the classpath,"
> + " or the classpath doesn't contain the necessary classes"
> + " to support them."
> + " Please consult the documentation regarding logging."
> + " Exception : " + ncdfe;
> System.out.println( errstr );
> System.err.println( errstr );
> throw ncdfe;
> }
> java.lang.NoClassDefFoundError: org/apache/log/format/Formatter
> at org.apache.velocity.runtime.log.LogManager.createLogSystem
> (LogManager.java:200)
> at org.apache.velocity.runtime.RuntimeInstance.initializeLogger
> (RuntimeInstance.java:533)
> at org.apache.velocity.runtime.RuntimeInstance.init
> (RuntimeInstance.java:267)
> at org.apache.velocity.runtime.RuntimeSingleton.init
> (RuntimeSingleton.java:169)
> at org.apache.velocity.app.Velocity.init(Velocity.java:123)
> at com.wonderwidgets.util.Preprocessor.main(Preprocessor.java:20)
> Thanks.
> Matt Gould
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org