This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[ BUILD # : 200807170007 ] [ JDK VERSION : 1.6.0_07 ] when I try and start glassfish V3, I see the Applications and Resources sub-items in the Services window, but I also see an error log complaining about insufficient priveliges, and, when I try to start the admin portal, it appears that the installation of the dynamically installed admin app fails, again, with a file access permission issue. I'm running Vista x64 and the x64 version of the jdk. here is the log: Jul 20, 2008 3:19:17 PM com.sun.enterprise.glassfish.bootstrap.ASMain main INFO: Launching GlassFish on HK2 platform java.util.logging.ErrorManager: 4: FATAL ERROR: COULD NOT OPEN LOG FILE. Please Check to make sure that the directory for Logfile exists. Currently reverting back to use the default server.log java.io.FileNotFoundException: C:\Program Files\nbdaily\glassfish-v3tp2\glassfish\domains\domain1\logs\server.lo g (Access is denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:177) at java.io.FileOutputStream.<init>(FileOutputStream.java:102) at com.sun.enterprise.server.logging.FileandSyslogHandler.openFile(Filean dSyslogHandler.java:368) at com.sun.enterprise.server.logging.FileandSyslogHandler.changeFileName( FileandSyslogHandler.java:269) at com.sun.enterprise.server.logging.FileandSyslogHandler.postConstruct(F ileandSyslogHandler.java:166) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:15 0) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java: 86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java :58) at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImp l.java:60) at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:226) at java.util.AbstractList$Itr.next(AbstractList.java:345) at com.sun.enterprise.v3.services.impl.LogManagerService.postConstruct(Lo gManagerService.java:112) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:15 0) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java: 86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java :58) at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImp l.java:60) at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:226) at java.util.AbstractList$Itr.next(AbstractList.java:345) at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.jav a:87) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:437) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:400) at com.sun.enterprise.module.bootstrap.Main.start(Main.java:189) at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:104) java.util.logging.ErrorManager: 4: FATAL ERROR: COULD NOT RE-OPEN SERVER LOG FILE. java.lang.NullPointerException at java.io.File.<init>(File.java:222) at com.sun.enterprise.server.logging.FileandSyslogHandler.openFile(Filean dSyslogHandler.java:361) at com.sun.enterprise.server.logging.FileandSyslogHandler.changeFileName( FileandSyslogHandler.java:279) at com.sun.enterprise.server.logging.FileandSyslogHandler.postConstruct(F ileandSyslogHandler.java:166) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:15 0) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java: 86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java :58) at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImp l.java:60) at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:226) at java.util.AbstractList$Itr.next(AbstractList.java:345) at com.sun.enterprise.v3.services.impl.LogManagerService.postConstruct(Lo gManagerService.java:112) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:15 0) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java: 86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java :58) at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImp l.java:60) at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:226) at java.util.AbstractList$Itr.next(AbstractList.java:345) at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.jav a:87) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:437) at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:400) at com.sun.enterprise.module.bootstrap.Main.start(Main.java:189) at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:104) Jul 20, 2008 3:19:18 PM org.glassfish.deployment.autodeploy.AutoDeployService postConstruct SEVERE: directory C:\Program Files\nbdaily\glassfish-v3tp2\glassfish\domains\domain1\autodeploy not readable org.glassfish.deployment.autodeploy.AutoDeploymentException: directory C:\Program Files\nbdaily\glassfish-v3tp2\glassfish\domains\domain1\autodeploy not readable at org.glassfish.deployment.autodeploy.AutoDeployer.validateDirectory(Aut oDeployer.java:239) at org.glassfish.deployment.autodeploy.AutoDeployer.validateAutodeployDir ectory(AutoDeployer.java:221) at org.glassfish.deployment.autodeploy.AutoDeployer.setDirectory(AutoDepl oyer.java:206) at org.glassfish.deployment.autodeploy.AutoDeployer.<init>(AutoDeployer.j ava:153) at org.glassfish.deployment.autodeploy.AutoDeployService.postConstruct(Au toDeployService.java:94) at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:15 0) at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java: 86) at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75) at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java :58) at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107) at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImp l.java:60) at com.sun.enterprise.v3.server.AppServerStartup$1.run(AppServerStartup.j ava:98) at java.lang.Thread.run(Thread.java:619) Jul 20, 2008 3:19:18 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start INFO: Listening on port 8080 Jul 20, 2008 3:19:19 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start INFO: Listening on port 8181 Jul 20, 2008 3:19:19 PM com.sun.enterprise.v3.services.impl.GrizzlyProxy start INFO: Listening on port 4848 Jul 20, 2008 3:19:19 PM com.sun.enterprise.v3.admin.adapter.AdminConsoleAdapter setContextRoot INFO: Admin Console Adapter: context root: /admin Jul 20, 2008 3:19:19 PM com.sun.enterprise.v3.server.AppServerStartup run INFO: Glassfish v3 started in 1904 ms here is what the web page shows: Current Status: Done!C:\Program Files\nbdaily\glassfish-v3tp2\glassfish\lib\install\applications\admin gui.war (Access is denied)
--> server plugins / glassfish_v3
may be a space in path kind of thing....
No, this is more likely a duplicate of issue #140181, which I just fixed. Will confirm shortly.
On second thought, maybe both. Anyway, launching on windows is botched until the fix for 140181 goes though.
Reporter: If you start this V3 installation from a command prompt (or maybe from Explorer) via "C:\Program Files\nbdaily\glassfish-v3tp2\bin\asadmin.bat", does it run properly, or do you still these I/O errors in the log?
I found that when I went and looked at the security settings for nbdaily, that administrators had 'full' rights, while 'users' did not - ie: not having full, modify or write. I then granted users those three, and re-tried starting the app server, and everything seemed to work great. I then went back and removed the same 3 rights, and it seems to have started ok. I'd say the issue is the security model, and how glassfish is responding to not having admin rights. I expect I would be able to reproduce the issue if I were to completely uninstall and reinstall, but it does seem that temporarily granting the 'user' role full rights has allowed some files to be created that are needed, even when the user doesn't have full rights to them.
If I understand this correctly, the problem boils down to this message: java.util.logging.ErrorManager: 4: FATAL ERROR: COULD NOT OPEN LOG FILE. Please Check to make sure that the directory for Logfile exists. Currently reverting back to use the default server.log java.io.FileNotFoundException: C:\Program Files\nbdaily\glassfish-v3tp2\glassfish\domains\domain1\logs\server.log (Access is denied) And the fact that the reporter was running this server under a user profile that did not have write permissions to the domain's log folder. If this is correct, there is nothing to fix. The user who is running a server domain must have write permissions to the domain. Reporter: What you probably wanted to do here was install the server as Administrator and then create what we call a "personal domain" for each user who needs to run their own server instance. For GlassFish V2, see here: http://blogs.sun.com/vkraemer/entry/new_glassfish_integration_feature_shared For GlassFish V3, (Vince, correct me if I'm mistaken) we don't support creating personal domains in the IDE yet (we will, probably NB 7.0). You will have to use ASADMIN.BAT from the command line. Run "<glassfish>\bin\asadmin.bat create-domain" to see the options. See http://docs.sun.com/app/docs/doc/819-3662/6n5s9hmtm?a=view for more details. (V2 docs, might be small variation from V3, but they should apply in general). I'm going to close this issue. If you don't feel this is resolved or that I've misunderstood the problem, please reopen with explanation.