- This topic has 17 replies, 9 voices, and was last updated 18 years, 3 months ago by jmbeas.
-
AuthorPosts
-
redsniperMemberNow Sun Java Application Server has been released (Glassfish), when do you think MyEclipse is going to have a connector for it?
Is there a way to handle this?
Thanks
jmbeasMemberI am trying to configure a Glassfish server with MyEclipse 5.0 M2 but I always have a very long error log in the console. Most of the errors are NullPointerExceptions in ServerBeansFactory due to ServerBeansFactory.getServerBean(configContext) is returning “null”. Why?
public static Config getConfigModel(ConfigContext configContext) throws ConfigException { 74 75 //create the config bean for this instance 76 if (configContext != null) { 77 Server server = ServerBeansFactory.getServerBean(configContext); 78 String configRef = server.getConfigRef(); 79 String configXpath = ServerXPathHelper.getConfigIdXpath(configRef); 80 configModel = (Config) ConfigBeansFactory.getConfigBeanByXPath(configContext, configXpath); 81 } else { 82 String msg = localStrings.getString( 83 "serverContext.config_context_is_null"); 84 throw new ConfigException(msg); 85 } 86 return configModel; 87 }
The config i’m using for Glassfish connector is:
Home dir: /opt/glassfish
Config dir: /opt/glassfish/config
Server name: localhost
Domain name: domain1
Domain dir: /opt/glassfish/domains/domain1
Optional params: <nothing>From the command line (as a regular user) i can start the server using:
/opt/glassfish/bin/asadmin start-domain domain1Any ideas?
Thanks in advance,
JMB
jmbeasMemberHi, again!
I’ve found that if I change to the J2EE perspective, then I can open the Servers view and start/stop my Glassfish server with no problem (like in a Callisto plain installation). This means the issue is related to MyEclipse, not to the platform or Glassfish.
If I hack the .project and .settings then my Web project (created with MyEclipse) can be deployed in my Glassfish (like with web tools).
Possibly MyEclipse should consider solve this issue.
Kind regards,
Jose M Beas -
AuthorPosts