开发者

How to add a second Glassfish domain in Eclipse

开发者 https://www.devze.com 2023-02-19 10:57 出处:网络
I\'m using Glassfish(3.1) from Eclipse(3.6) and it was very easy to get started with. I now have the need to use two domain开发者_运维技巧s in Glassfish from my eclipse. I\'ve manually created a secon

I'm using Glassfish(3.1) from Eclipse(3.6) and it was very easy to get started with.

I now have the need to use two domain开发者_运维技巧s in Glassfish from my eclipse. I've manually created a second domain (asadmin create-domain --portbase someNumber domain2) and I can login to that domain from the browser.

What I'm unable to do is to add it as a second server in Eclipse. I try to add a new server but I have no dialog where I can choose the domain.

Another odd issue, which I don't know if it's related, is that in the second dialog I see an error message on the top saying: "error testing remote server: localhos" (that's not a typo, it's leaving out the last letter I also tried it with 127.0.0.1 and the same result occured the 1 was ommitted) Attached in the end are screenshots of the dialog.

What am I missing? Is it possible that I can only use one glassfish server (no matter how many domains are configured on it)?

Thanks,

Ittai

How to add a second Glassfish domain in Eclipse

How to add a second Glassfish domain in Eclipse


This is an issue either in WTP or the GF plugin. I guess you typed "localhos": in the server host name field before going to the next step... The workaround is to exit the registration wizard dialog completely to reset this field to a real localhost (without typing anything there), then, the next screen dialog will let you enter the domain location...


I think it's just a matter of adding the domain name as a program argument in the run configuration of your second server to prevent it from starting the default domain (domain1).

0

精彩评论

暂无评论...
验证码 换一张
取 消