Re: apache fop and Logger
Re: apache fop and Logger
- Subject: Re: apache fop and Logger
- From: email@hidden
- Date: Mon, 24 Nov 2003 20:36:37 -0500
Try importing:
import org.apache.avalon.framework.logger.ConsoleLogger;
Make sure the jar with the avalon framework is in your classpath.
jimp
On Monday, November 24, 2003, at 07:37 PM, Michael Warner wrote:
I am getting the error message below when I use the following. The
problem is simply with setting up the correct configuration of
import statements to match Logger syntax. I must be doing something
wrong that is obvious.
import java.io.*;
import org.apache.fop.apps.*;
import org.xml.sax.InputSource;
import org.apache.log.*;
(I have also tried import.org.apache.log4j.*;
Its apparently not able to interpret variations of this code:
Driver driver = new Driver();
Logger logger =
Hierarchy.getDefaultHierarchy().getLoggerFor("fop");
driver.setLogger(logger);
all my .jar files are in /Library/Java/Home/lib/ext
Any help will be appreciated.
Mike W.
<class com.webobjects.foundation.NSData (offset=0, length=5541,
data=[60]'<', [63]'?', [120]'x', [109]'m', [108]'l', [32]' ', [118]'v',
[101]'e', [114]'r', [115]'s', [105]'i', [111]'o', [110]'n', [61]'=',
[34]'"', [49]'1', [46]'.', [48]'0', [34]'"', [32]' ', [101]'e',
[110]'n', [99]'c', [111]'o', [100]'d', [105]'i', [110]'n', [103]'g',
[61]'=', [34]'"'...)>
[2003-11-24 16:24:14 PST] <WorkerThread1>
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException
[java.lang.NoClassDefFoundError]
org/apache/avalon/framework/logger/ConsoleLogger
[2003-11-24 16:24:14 PST] <WorkerThread1>
com.webobjects.foundation.NSForwardException for
java.lang.NoClassDefFoundError:
org/apache/avalon/framework/logger/ConsoleLogger
at org.apache.fop.apps.Driver.getLogger(Driver.java:237)
at org.apache.fop.apps.Driver.setRenderer(Driver.java:383)
at org.apache.fop.apps.Driver.setRenderer(Driver.java:348)
at FOPTest.render(FOPTest.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
v
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
r
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAcce
s
sor.java:54)
at
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject
(
NSKeyValueCoding.java:1160)
at
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueF
o
rKey(NSKeyValueCoding.java:1268)
at
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1544)
at
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyVal
u
eCoding.java:498)
at
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementati
o
n.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1
6
05)
at
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponen
t
(WOKeyValueAssociation.java:46)
at
com.webobjects.appserver._private.WOSubmitButton.invokeAction(WOSubmitB
u
tton.java:70)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(W
O
DynamicGroup.java:101)
at
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamic
G
roup.java:110)
at
com.webobjects.appserver._private.WOForm.invokeAction(WOForm.java:82)
at
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(W
O
DynamicGroup.java:101)
at
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamic
G
roup.java:110)
at
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:950)
at
com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1136)
at
com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:
1
316)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWi
t
hPreparedPage(WOComponentRequestHandler.java:196)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWi
t
hPreparedSession(WOComponentRequestHandler.java:287)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWi
t
hPreparedApplication(WOComponentRequestHandler.java:322)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleRequ
e
st(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleReque
s
t(WOComponentRequestHandler.java:432)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.ja
v
a:1247)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread
.
java:167)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.jav
a
:248)
at java.lang.Thread.run(Thread.java:554)
[2003-11-24 16:24:21 PST] <WorkerThread0> _WOProject: could not find
path to source file for org.apache.fop.apps.Driver Driver.java
On Monday, November 24, 2003, at 02:59 PM, Colin Clark wrote:
Hi Michael,
The Logger class is part of the Apache Log4J package. The Javadocs
are located here:
http://jakarta.apache.org/log4j/docs/api/index.html
Colin
On Monday, November 24, 2003, at 01:11 PM, Michael Warner wrote:
Java 1.4.1
I am using something like this:
import java.io.*;
import org.apache.fop.apps.*;
import org.xml.sax.InputSource;
import org.apache.avalon.framework.*;
import org.apache.log4j.*;
to background a method to render a .pdf document.
I would like to know,
(a) which .jar is used to get me to this statement:
driver.setLogger(logger);
and how to set up
Logger logger = ...
I am getting error messages on various configurations.
Mike W
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
---
Colin Clark
Dynamic Web/Database Developer
Resource Centre for Academic Technology,
University of Toronto
(416) 946-7592 / email@hidden
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
-----------------------
Jim & Jean Marie Pearson
We Love Bugs
(o\_vw_/o)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.