facebook

Support for Glassfish

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #254347 Reply

    redsniper
    Member

    Now 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

    #255711 Reply

    jmbeas
    Member

    I 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 domain1

    Any ideas?

    Thanks in advance,
    JMB

    #256191 Reply

    jmbeas
    Member

    Hi, 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

Viewing 3 posts - 16 through 18 (of 18 total)
Reply To: Support for Glassfish

You must be logged in to post in the forum log in