java.lang.RuntimeException: Cannot find annotation org.glassfish.config.support.Create with value _register-instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbeans.Servers.getServer(java.lang.String)

Oracle Community | redhat19 | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    My applications are not launching in GlassFish 3.1.1 on RHE Linux server. Help requested in diagnosising contents of server.log

    Oracle Community | 5 years ago | redhat19
    java.lang.RuntimeException: Cannot find annotation org.glassfish.config.support.Create with value _register-instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbeans.Servers.getServer(java.lang.String)
  2. 0

    Three Win 2008 machines (all machines had Cygwin installation), 3.1.2 build 16. Tried to setup a cluster with three instances, one instance per a machine. But either nodes creation or instances creation or both failed randomly with such messages: ============================================================= remote failure: java.lang.RuntimeException: Cannot find annotation org.glassfish .config.support.Create with value _register-instance on method public abstract c om.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbean s.Servers.getServer(java.lang.String) Cannot find annotation org.glassfish.config.support.Create with value _register- instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbeans.Servers.getServer(java.lang.String) ========================================================== For example, I've unzippped bits and tried such sequence of commands: ============================================= asadmin start-domain Waiting for domain1 to start ... Successfully started the domain : domain1 domain Location: C:\export\glassfish3\glassfish\domains\domain1 Log File: C:\export\glassfish3\glassfish\domains\domain1\logs\server.log Admin Port: 4848 Command start-domain executed successfully. asadmin change-admin-password Enter admin user name [default: admin]> Enter admin password> Enter new admin password> Enter new admin password again> Command change-admin-password executed successfully. asadmin enable-secure-admin Enter admin user name> admin Enter admin password for user "admin"> You must restart all running servers for the change in secure admin to take effect. Command enable-secure-admin executed successfully. asadmin stop-domain Waiting for the domain to stop .... Command stop-domain executed successfully. asadmin start-domain Waiting for domain1 to start ... Successfully started the domain : domain1 domain Location: C:\export\glassfish3\glassfish\domains\domain1 Log File: C:\export\glassfish3\glassfish\domains\domain1\logs\server.log Admin Port: 4848 Command start-domain executed successfully. asadmin --user admin --passwordfile password.txt create-cluster c1 Command create-cluster executed successfully. asadmin --user admin --passwordfile password.txt create-node-ssh --nodehost bigapp-x2250-1 node1 Command create-node-ssh executed successfully. asadmin --user admin --passwordfile password.txt create-node-ssh --nodehost bigapp-oblade-1 node2 Command create-node-ssh executed successfully. asadmin --user admin --passwordfile password.txt create-node-ssh --nodehost bigapp-oblade-2 node3 Command create-node-ssh executed successfully. asadmin --user admin --passwordfile password.txt create-instance --cluster c1 --node node1 in1 remote failure: java.lang.RuntimeException: Cannot find annotation org.glassfish.config.support.Create with value _register-instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbean s.Servers.getServer(java.lang.String) Cannot find annotation org.glassfish.config.support.Create with value _register- instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbeans.Servers.getServer(java.lang.String) Command create-instance failed. ============================================================================= Other time create-node-ssh also failed: ========================================================================= asadmin --user admin --passwordfile password.txt create-node-ssh --nodhost bigapp-x2250-1 node1 emote failure: java.lang.RuntimeException: Cannot find annotation org.glassfish config.support.Create with value _create-node on method public abstract com.sun enterprise.config.serverbeans.Node com.sun.enterprise.config.serverbeans.Nodes. etNode(java.lang.String) annot find annotation org.glassfish.config.support.Create with value _create-no e on method public abstract com.sun.enterprise.config.serverbeans.Node com.sun. nterprise.config.serverbeans.Nodes.getNode(java.lang.String) ommand create-node-ssh failed. =========================================================================

    Java.net JIRA | 5 years ago | easarina
    java.lang.RuntimeException: Cannot find annotation org.glassfish.config.support.Create with value _create-node on method public abstract com.sun.enterprise.config.serverbeans.Node com.sun.enterprise.config.serverbeans.Nodes.getNode(java.lang.String)^M at org.glassfish.config.support.GenericCrudCommand.getAnnotation(GenericCrudCommand.java:196)^M

    Root Cause Analysis

    1. java.lang.RuntimeException

      Cannot find annotation org.glassfish.config.support.Create with value _register-instance on method public abstract com.sun.enterprise.config.serverbeans.Server com.sun.enterprise.config.serverbeans.Servers.getServer(java.lang.String)

      at org.glassfish.config.support.GenericCrudCommand.getAnnotation()
    2. admin-config-api
      GenericCreateCommand.postConstruct
      1. org.glassfish.config.support.GenericCrudCommand.getAnnotation(GenericCrudCommand.java:196)
      2. org.glassfish.config.support.GenericCreateCommand.postConstruct(GenericCreateCommand.java:90)
      2 frames
    3. Inversion of Control / Autodependency mechanism
      AbstractInhabitantImpl.get
      1. com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
      2. com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
      3. com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
      4. com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
      5. com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
      5 frames
    4. HK2 Implementation Utilities
      Habitat.getComponent
      1. org.jvnet.hk2.component.Habitat.getComponent(Habitat.java:796)
      1 frame
    5. Kernel Classes
      CommandRunnerImpl.getModel
      1. com.sun.enterprise.v3.admin.CommandRunnerImpl.getModel(CommandRunnerImpl.java:150)
      1 frame
    6. GlassFish Admin
      RestAdapter.service
      1. org.glassfish.admin.rest.generator.ResourcesGeneratorBase.commandIsPresent(ResourcesGeneratorBase.java:315)
      2. org.glassfish.admin.rest.generator.ResourcesGeneratorBase.generateCommandResources(ResourcesGeneratorBase.java:296)
      3. org.glassfish.admin.rest.generator.ResourcesGeneratorBase.generateSingle(ResourcesGeneratorBase.java:100)
      4. org.glassfish.admin.rest.LazyJerseyInit.generateASM(LazyJerseyInit.java:311)
      5. org.glassfish.admin.rest.LazyJerseyInit.getResourcesConfigForManagement(LazyJerseyInit.java:255)
      6. org.glassfish.admin.rest.adapter.RestManagementAdapter.getResourcesConfig(RestManagementAdapter.java:62)
      7. org.glassfish.admin.rest.adapter.RestAdapter.exposeContext(RestAdapter.java:455)
      8. org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:177)
      8 frames
    7. Grizzly WS
      GrizzlyAdapter.service
      1. com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
      1 frame
    8. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
      2 frames
    9. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      13 frames
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame