0 Replies Latest reply: Jan 29, 2012 2:29 PM by 913909 RSS

    Glassfish wont start after the first deployment

    913909
      good afternoon.
      i got a problem that i would like to solve whit your help: after the first deployment of my proyect into Glassfish i keep getting this error over and over again, when i reinstall the server everything works fine but after the first deployment the server wont start again, I would be glad to know what i can do to solve this, thx:

      Waiting for domain1 to start ...Error starting domain domain1.
      The server exited prematurely with exit code 1.
      Before it died, it produced the following output:

      Launching GlassFish on Felix platform
      Completed shutdown of GlassFish runtime
      Exception in thread "main" java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMa
      in.java:97)
      at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
      Caused by: org.jvnet.hk2.component.ComponentException: Failed to create a habita
      t
      at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.cre
      ateHabitat(AbstractModulesRegistryImpl.java:169)
      at com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:425)

      at org.jvnet.hk2.osgiadapter.HK2Main.createHabitat(HK2Main.java:96)
      at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishRunt
      ime.newGlassFish(EmbeddedOSGiGlassFishRuntime.java:89)
      at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(
      GlassFishMain.java:113)
      ... 6 more
      Caused by: java.lang.RuntimeException: Fatal Error. Unable to parse file:/C:/Pr
      ogram%20Files/glassfishv3/glassfish/domains/domain1/config/domain.xml
      at org.glassfish.config.support.DomainXml.parseDomainXml(DomainXml.java:
      273)
      at org.glassfish.config.support.DomainXml.run(DomainXml.java:112)
      at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.pop
      ulateConfig(AbstractModulesRegistryImpl.java:176)
      at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.cre
      ateHabitat(AbstractModulesRegistryImpl.java:158)
      ... 10 more
      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[11,88]
      Message: Invalid byte 2 of 4-byte UTF-8 sequence.
      at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLS
      treamReaderImpl.java:590)
      at javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.
      java:88)
      at org.glassfish.config.support.XMLStreamReaderFilter.thisNextTag(XMLStr
      eamReaderFilter.java:94)
      at org.glassfish.config.support.XMLStreamReaderFilter.nextTag(XMLStreamR
      eaderFilter.java:74)
      at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:199
      )
      at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:215
      )
      at org.jvnet.hk2.config.ConfigParser.handleElement(ConfigParser.java:167
      )
      at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:98)
      at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:93)
      at org.glassfish.config.support.DomainXml.parseDomainXml(DomainXml.java:
      254)
      ... 13 more

      Command start-domain failed.