NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Introducing a J2EE Server to Netbeans. A pitfall to be avoided.

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
joerobbins



Joined: 25 Mar 2009
Posts: 4
Location: Bawtry Yorkshire UK

PostPosted: Mon Nov 01, 2010 4:33 pm    Post subject: Introducing a J2EE Server to Netbeans. A pitfall to be avoided. Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo