Glassfish-4.0 doesn't start in Netbeans 7.4
I've installed glassfish-4.0 in conjunction with Netbeans 7.4
During installation the directory /usr/local/glassfish-4.0 is created.
asadmin start-domain domain1
works and I'm asked to give a password for user admin, which I do.
I've started netbeans and added the server into netbeans with user id: admin and the same password that I prescribed in the asadmin start-domain domain1 command.
When I run my application, netbeans fails to start the server.
If I start the server manually using the asadmin command, still netbeans does not find it.
Has anyone else encountered this problem and how did you solve it? I'd appreciate your guidance.