Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] jetty-requestlog.xml in jetty 7.1.5

Hello,

I tried to use this jetty.conf:

--pre=etc/jetty-logging.xml
--pre=etc/jetty-requestlog.xml

But when I start jetty I get an exception (see below).
What am I doing from here, i really dont get it... :/

It can be reproduced with a fresh 7.1.5 installation:
- unpack
- add --pre=etc/jetty-requestlog.xml to jetty.conf
- bin/jetty.sh start
- see log

I thought this is the way to include these additional config-files. Or am I wrong?

regards,
Daniel



WARN  2010-07-16 11:41:45,549 [ain Thread] Config error at <Ref id="Handlers"><Call name="addHandler"><Arg>
          <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"><Set name="requestLog">
<New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog"><Set name="filename"><Property name="jetty.logs" default="./logs"/>/yyyy_mm_dd.request.log</Set><Set name="filenameDateFormat">yyyy_MM_dd</Set><Set name="retainDays">90</Set><Set name="append">true</Set><Set name="extended">false</Set><Set name="logCookies">false</Set><Set name="LogTimeZone">GMT</Set></New>
            </Set></New>
        </Arg></Call></Ref> [Slf4jLog.java:40]
WARN  2010-07-16 11:41:45,558 [ain Thread] EXCEPTION  [Slf4jLog.java:50]
java.lang.IllegalStateException: No object for id=Handlers
at org.eclipse.jetty.xml.XmlConfiguration.refObj(XmlConfiguration.java:676) [jetty-xml-7.1.5.v20100705.jar:7.1.5.v20100705] at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:266) [jetty-xml-7.1.5.v20100705.jar:7.1.5.v20100705] at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:220) [jetty-xml-7.1.5.v20100705.jar:7.1.5.v20100705] at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1007) [jetty-xml-7.1.5.v20100705.jar:7.1.5.v20100705] at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1033) [jetty-xml-7.1.5.v20100705.jar:7.1.5.v20100705]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_17]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_17]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_17]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_17]
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:486) [start.jar:7.1.5.v20100705]
        at org.eclipse.jetty.start.Main.start(Main.java:626) [start.jar:7.1.5.v20100705]
        at org.eclipse.jetty.start.Main.parseCommandLine(Main.java:275) [start.jar:7.1.5.v20100705]
        at org.eclipse.jetty.start.Main.main(Main.java:82) [start.jar:7.1.5.v20100705]


Back to the top