Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / March 2004

Tip: Looking for answers? Try searching our database.

log4j:ERROR setFile(null,false) call failed.

Thread view: 
bard - 08 Mar 2004 14:00 GMT
Hello,
I'm use Jboss3.2.3 with Eclipse3M7 and LombozM7 (SO is linux Mandrake 9.1). I have this problem:
log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: /home/raffaele/jboss-3.2.3/server/default/log/boot.log (Permission denied)
       at java.io.FileOutputStream.open(Native Method)
       at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
       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:123)
       at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
       at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645)
       at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
       at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:500)
       at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406)
       at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:432)
       at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
       at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
       at org.jboss.logging.Log4jLoggerPlugin.init(Log4jLoggerPlugin.java:63)
       at org.jboss.logging.Logger.getDelegatePlugin(Logger.java:320)
       at org.jboss.logging.Logger.<init>(Logger.java:78)
       at org.jboss.logging.Logger.getLogger(Logger.java:267)
       at javax.management.NotificationBroadcasterSupport.<init>(NotificationBroadcasterSupport.java:29)
       at org.jboss.system.server.ServerImpl.doInit(ServerImpl.java:141)
       at org.jboss.system.server.ServerImpl.init(ServerImpl.java:126)
       at org.jboss.Main.boot(Main.java:145)
       at org.jboss.Main$1.run(Main.java:395)
       at java.lang.Thread.run(Thread.java:534)
12:04:38,772 INFO  [Server] Starting JBoss (MX MicroKernel)...
12:04:38,776 INFO  [Server] Release ID: JBoss [WonderLand] 3.2.3 (build: CVSTag=JBoss_3_2_3 date=200311301445)
12:04:38,777 INFO  [Server] Home Dir: /home/raffaele/jboss-3.2.3
12:04:38,777 INFO  [Server] Home URL: file:/home/raffaele/jboss-3.2.3/
12:04:38,777 INFO  [Server] Library URL: file:/home/raffaele/jboss-3.2.3/lib/
12:04:38,779 INFO  [Server] Patch URL: null
12:04:38,779 INFO  [Server] Server Name: default
12:04:38,780 INFO  [Server] Server Home Dir: /home/raffaele/jboss-3.2.3/server/default
12:04:38,780 INFO  [Server] Server Home URL: file:/home/raffaele/jboss-3.2.3/server/default/
12:04:38,781 INFO  [Server] Server Data Dir: /home/raffaele/jboss-3.2.3/server/default/data
12:04:38,781 INFO  [Server] Server Temp Dir: /home/raffaele/jboss-3.2.3/server/default/tmp
12:04:38,782 INFO  [Server] Server Config URL: file:/home/raffaele/jboss-3.2.3/server/default/conf/
12:04:38,782 INFO  [Server] Server Library URL: file:/home/raffaele/jboss-3.2.3/server/default/lib/
12:04:38,782 INFO  [Server] Root Deployment Filename: jboss-service.xml
12:04:38,786 INFO  [Server] Starting General Purpose Architecture (GPA)...
12:04:39,199 INFO  [ServerInfo] Java version: 1.4.2,Sun Microsystems Inc.
12:04:39,200 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.2-b28,Sun Microsystems Inc.
12:04:39,200 INFO  [ServerInfo] OS-System: Linux 2.4.21-0.13mdk,i386
12:04:39,253 INFO  [ServiceController] Controller MBean online
12:04:39,356 INFO  [MainDeployer] Started jboss.system:service=MainDeployer
12:04:39,530 INFO  [MainDeployer] Adding deployer: org.jboss.deployment.JARDeployer@196c1b0
12:04:39,530 INFO  [JARDeployer] Started jboss.system:service=JARDeployer
12:04:39,615 INFO  [MainDeployer] Adding deployer: org.jboss.deployment.SARDeployer@544ec1
12:04:39,625 INFO  [SARDeployer] Started jboss.system:service=ServiceDeployer
12:04:39,626 INFO  [Server] Core system initialized
12:04:39,664 INFO  [MainDeployer] Starting deployment of package: file:/home/raffaele/jboss-3.2.3/server/default/conf/jboss-service.xml
12:04:39,667 ERROR [MainDeployer] Could not make local copy for file:/home/raffaele/jboss-3.2.3/server/default/conf/jboss-service.xml
java.io.IOException: No such file or directory
       at java.io.UnixFileSystem.createFileExclusively(Native Method)
       at java.io.File.checkAndCreate(File.java:1314)
       at java.io.File.createTempFile(File.java:1402)
       at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:993)
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:674)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
       at org.jboss.Main.boot(Main.java:150)
       at org.jboss.Main$1.run(Main.java:395)
       at java.lang.Thread.run(Thread.java:534)
12:04:39,883 ERROR [MainDeployer] Could not initialise deloyment: file:/home/raffaele/jboss-3.2.3/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml
       at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:499)
       at org.jboss.deployment.SARDeployer.init(SARDeployer.java:115)
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
       at org.jboss.Main.boot(Main.java:150)
       at org.jboss.Main$1.run(Main.java:395)
       at java.lang.Thread.run(Thread.java:534)
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml
       at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:499)
       at org.jboss.deployment.SARDeployer.init(SARDeployer.java:115)
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
       at org.jboss.Main.boot(Main.java:150)
       at org.jboss.Main$1.run(Main.java:395)
       at java.lang.Thread.run(Thread.java:534)
12:04:39,902 INFO  [Server] JBoss SHUTDOWN: Undeploying all packages
12:04:39,903 INFO  [Server] Shutting down all services
Shutting down
12:04:39,904 INFO  [ServiceController] Stopping 3 services
12:04:39,904 INFO  [SARDeployer] Stopping jboss.system:service=ServiceDeployer
12:04:39,905 INFO  [MainDeployer] Removing deployer: org.jboss.deployment.SARDeployer@544ec1
12:04:39,905 INFO  [JARDeployer] Stopping jboss.system:service=JARDeployer
12:04:39,905 INFO  [MainDeployer] Stopping jboss.system:service=MainDeployer
12:04:39,905 INFO  [ServiceController] Stopped 3 services
12:04:39,906 INFO  [Server] Shutdown complete
Shutdown complete
Halting VM

This error happened also when I try to run Jboss3.2.3, and I'm not root user. Please can anyone help me?
Thanks in advance very much!!!!
bard
Bob Cave - 14 Mar 2004 15:34 GMT
> Hello,
> I'm use Jboss3.2.3 with Eclipse3M7 and LombozM7 (SO is linux Mandrake 9.1). I have this problem:
[quoted text clipped - 132 lines]
> Thanks in advance very much!!!!
> bard

I don't think I can help, but I'm having the same problem.  I'm
running it on a RedHat distro - (7.3).  At first I installed the
tarball as myself and tried to run it.  Then I figured it ought to
live in /usr/local/jboss instead of /home/me/jboss3.2.3 so I moved it.
That didn't work.  Then I decided to blow everything away and install
it as root.  That still didn't work.  I think it might have to do with
the permissions of user 'jboss' (the userid they want you to create
for jboss to run as).

-Caveman


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.