Check the file permissions. That has bit me more than once on JBoss. Make sure the user running the JBoss process can read the file.

On May 7, 2008, at 10:11 AM, neha sood wrote:

hi
i have log4j.properties file but it is not being read..i have that file in config directory of my project.i have copied it into project/ webapp/WEBINF/....but here no classes folder was present ..so i created one and copied into dat since...in all projects it is available there..
still its not workin...
thanx for reply
cheers
neha


On Wed, May 7, 2008 at 6:21 PM, Michael Bauer <[EMAIL PROTECTED]> wrote: You need a log4j.properties file, else loging doesn't work. You should be able to find a decent example of one on the web.



On May 7, 2008, at 7:28 AM, neha sood wrote:

hi
 i m getting the folloewing error..
log4j:ERROR Could not read configuration file [/usr/local/apache- tomcat-5.5.12/WEB-INF/classes/log4j.properties]. [createdb] java.io.FileNotFoundException: /usr/local/apache- tomcat-5.5.12/WEB-INF/classes/log4j.properties (No such file or directory)
 [createdb]     at java.io.FileInputStream.open(Native Method)
[createdb] at java.io.FileInputStream.<init>(FileInputStream.java:106) [createdb] at java.io.FileInputStream.<init>(FileInputStream.java:66) [createdb] at org .apache .log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:297) [createdb] at org .apache .log4j.PropertyConfigurator.configure(PropertyConfigurator.java:315) [createdb] at org .gridlab .gridsphere .portlet.impl.SportletLog.setConfigureURL(SportletLog.java:33) [createdb] at org .gridlab .gridsphere .core.persisstence.hibernate.DBTask.setConfigDir(DBTask.java:71) [createdb] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [createdb] at sun .reflect .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [createdb] at sun .reflect .DelegatingMethodAccessorImpl .invoke(DelegatingMethodAccessorImpl.java:25)
 [createdb]     at java.lang.reflect.Method.invoke(Method.java:585)
[createdb] at org.apache.tools.ant.IntrospectionHelper $3.set(IntrospectionHelper.java:939) [createdb] at org .apache .tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java: 393) [createdb] at org .apache .tools .ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:370) [createdb] at org .apache .tools .ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:324)
.........
what can be the reason..as it says file or dir doesnt exsit there..how can i resolve this error

--
Friends are flowers in the garden of life

Michael Bauer
[EMAIL PROTECTED]
http://www.codechimp.net






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




--
Friends are flowers in the garden of life

Michael Bauer
[EMAIL PROTECTED]
http://www.codechimp.net





Reply via email to