If you're running into this in Eclipse as we did, the solution to this is to 
create a logs directory in your project workspace's root directory.


----------
Rango Keshavan
617 563 2435
 

> -----Original Message-----
> From: Sie, Yang
> Sent: Monday, March 06, 2006 9:25 AM
> To: Jetspeed Users List
> Subject: RE: strange exception
> 
> 
> Joachim, did you happen to resolve this. I am seeing the same thing...
> Thank you.
> 
> ---yang
> 
> 
> -----Original Message-----
> From: Joachim Müller [mailto:[EMAIL PROTECTED]
> Sent: Saturday, January 28, 2006 2:33 PM
> To: Jetspeed Users List
> Subject: strange exception
> 
> Hi List.
> 
> i am experiencing a strange exception:
> 
> - i extended my portal.genapp.minimal generated application with a new
> service (PortletService)
> 
> - my service implementation uses the logger
> 
> private final static Log log = LogFactory.getLog(WMSInterfaceImpl.class);
> 
> - I added a testcase to test the service
> 
> - when i instantiate the service implementation in the testcase i got
> the following exception (see below):
> 
> - all tests pass (thanks god!)
> 
> - this seems a log4j initialization problem
> 
> what can i do to avoid this exception?
> 
> 
> thanx in advance.
> joachim
> 
> 
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: logs/apacheds.log (No such file or
> directory)
> at java.io.FileOutputStream.openAppend(Native Method)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
> at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
> at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
> at
> org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
> at
> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:1
> 23)
> at
> org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:8
> 7)
> at
> org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.j
> ava:645)
> at
> org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.j
> ava:603)
> at
> org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfig
> urator.java:500)
> at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.jav
> a:406)
> at
> org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.jav
> a:432)
> at
> org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverte
> r.java:460)
> at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
> at org.apache.log4j.Logger.getLogger(Logger.java:85)
> at
> org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:102)
> at
> org.apache.jetspeed.util.IsolatedLog4JLogger.<init>(IsolatedLog4JLogger.ja
> va:141)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcc
> essorImpl.java:39)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstr
> uctorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.
> java:525)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.
> java:272)
> at
> org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.
> java:246)
> at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
> 
> ...
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to