DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. NetBeans IDE and Glassfish: Remote Deployments

NetBeans IDE and Glassfish: Remote Deployments

Marc Ende user avatar by
Marc Ende
·
Jul. 05, 11 · Interview
Like (1)
Save
Tweet
Share
19.94K Views

Join the DZone community and get the full member experience.

Join For Free

Using NetBeans IDE together with GlassFish works like a charm. Especially when using the preconfigured GlassFish. There is one point which isn't mentioned a lot... you can also work with a remote GlassFish.

When planning to use this feature, you'll have to switch to the "Services" window in NetBeans IDE. Within this, you should choose a new GlassFish instance to be added to the servers:



Within the next page, you've got to choose a locally installed instance:



This is needed so that NetBeans IDE can use the libraries provided by GlassFish. It shoud be the same version of GlassFish as the one on the web server, to avoid any problems.

The next step is the one where the remote instance is chosen. By default, the local instance is chosen, but we'll choose the other now:

Now just hit "Finish!. Nearly everything is done to use the remote GlassFish now. After finishing the dialog, you get another dialog which requests the credentials for GlassFish:


After entering the information, everything should be fine, but there is still one step. Due to security restrictions, the remote administration of the GlassFish isn't enabled. So when you click on OK you receive the following dialog:

This dialog gives you a hint on what to do next. You have to execute "asadmin enable-secure-admin" on the remote server:

[webserver]# asadmin enable-secure-admin
Enter admin user name>  [your admin-user, default: "admin"]
Enter admin password for user "admin">  [the password of this user]
Command enable-secure-admin executed successfully.


Now you can try again, but you will still receive the same error. According to the documentation, Grizzly needs a reload to apply these settings.

After you've enabled-secure-admin, you will be asked to confirm a new certificate (on the console, which you should do). This command enables secure access to the admin functions. That means that the admin-gui (on port 4848) is now running via https and is no longer avaliable using http. The communication between asadmin and GlassFish is now secured.

After stopping and starting GlassFish again, everything works fine. And now you can work with the remote GlassFish.



From: http://blog.e-beyond.de/2011/06/22/netbeans-and-glassfish-remote-deployments/
Integrated development environment GlassFish workplace NetBeans

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Utilize OpenAI API to Extract Information From PDF Files
  • What Is Policy-as-Code? An Introduction to Open Policy Agent
  • Why It Is Important To Have an Ownership as a DevOps Engineer
  • Select ChatGPT From SQL? You Bet!

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: