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,
IttaiThis 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).
精彩评论