Hoping someone can help me.
I downloaded Glassfish 4.0 and JDK1.7.0_67 separately. JDK installed fine, however not able to get glassfish to start at all.
I have already checked the following -
1. Made sure the paths are all correct, infact I hardcoded some in asenv.conf and asenv.bat, so no question of things not being resolved.
2. netstat -a -b | findstr 4848 tells me that port 4848 is not in use.
When I execute the below ->
C:\glassfish4\glassfish\bin>asadmin.bat start-domain domain1
below is the output I get.
Remote server does not listen for requests on [localhost:4848]. Is the server up
?
Exception in thread "main" java.lang.NullPointerException
at com.sun.enterprise.admin.cli.CLIContainer.getLocalCommandsNames(CLIContainer.java:258)
at com.sun.enterprise.admin.cli.CLIUtil.getLocalCommands(CLIUtil.java:212)
at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:388)
at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:298)
at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:56)
3. Below is how my hosts file looks.
127.0.0.1 localhost
127.0.0.1 localhost $HOSTNAME
All I am trying to do is to get Glassfish to run some Java 7 EE stuff on my local windows machine. Any help is greatly appreciated.