NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
joerobbins
Joined: 25 Mar 2009 Posts: 4 Location: Bawtry Yorkshire UK
|
Posted: Mon Nov 01, 2010 4:33 pm Post subject: Introducing a J2EE Server to Netbeans. A pitfall to be avoided. |
|
|
I have noticed some postings relating to Netbeans 6.9 and the way Netbeans "links" to a J2EE server (Glassfish in my case). This is my experience and I am logging it because it might help some others coming after ...
I have a Glassfish-v3 server running on a Linux box; this box communicates with Windows based systems on the network via SAMBA. My Netbeans is running on a Windows PC.
In Netbeans, go to the Services tab -> Servers -> right-click -> Add Server. Everything goes OK when filling out the property sheets. No error dialogs are displayed.. Job done the new server appears in the tree under Servers
But any attempt to connect to the server is rejected. For example, right-click -> Refresh is mute: no applications, no resources. All the signs are that the server is not running. This is confirmed when the server node is right-clicked -> View Admin Console. The error dialog: | Quote: | | The server must be running for this action to succeed. |
Trying to deploy the application to the server fails: | Quote: | | Starting of server GlassFish V3 BANGKOK is not supported. Please, start the server manually. |
Now this is puzzling: the server is definitely running. The admin console (via Firefox) operates correctly when accessed on the same PC as Netbeans is running on.
Is it a Glassfish admin password problem? But hold-on, Netbeans has not asked for the password so how can it access the Glassfish server? I have a recollection that when adding a server previously, Netbeans asked for an admin password for the Glassfish server.
I deleted the server entry from Netbeans and entered it again - but this time I used the ip address of the server instead of its name on the network. YIPPEE! everything works - and yes Netbeans did ask for a user-name/password. (The server network name was not recognised - but thats another story.)
This isn't a criticism, but it would be much more helpful if, when adding the server, Netbeans displayed a dialog something like: | Quote: | | Failed to connect to the server. Do you want to continue to add this server? | That way, it would be possible for the user to diagnose and remedy the problem there and then instead of head-scratching later on.
P.S. Netbeans is really great! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|