I am still seeing problems not sure if other have the same issue (it
fails to parse the domain.xml, specifically it is shouting about the
DTD, but my glassfish 2.1 server starts fine):
glassfish>java -jar modules\glassfish.jar -upgrade true -domaindir
c:\kumar\glassfish2.1\domains\domain1
21 Aug, 2009 3:13:50 PM com.sun.enterprise.glassfish.bootstrap.ASMain main
INFO: Launching GlassFish on Felix platform
Welcome to Felix.
=================
21 Aug, 2009 3:14:35 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.common.glassfish-mbeanserver [41]
21 Aug, 2009 3:14:35 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.core.kernel [58]
21 Aug, 2009 3:14:35 PM OSGiModuleImpl start
INFO: Started bundle org.glassfish.common.util [104]
21 Aug, 2009 3:14:35 PM OSGiModuleImpl start
INFO: Started bundle com.sun.enterprise.config [154]
ERROR: Error starting
reference:file:/C:/kumar/workspaces/latest/glassfish/glass
fishv3/glassfish/modules/osgi-main.jar
(org.osgi.framework.BundleException: Acti
vator start error in bundle com.sun.enterprise.osgi-adapter [48].)
java.lang.RuntimeException: Failed to parse
file:/C:/kumar/glassfish2.1/domains/
domain1/config/domain.xml
at
org.glassfish.config.support.DomainXml.parseDomainXml(DomainXml.java:
155)
at org.glassfish.config.support.DomainXml.run(DomainXml.java:100)
at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.pop
ulateConfig(AbstractModulesRegistryImpl.java:157)
at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.cre
ateHabitat(AbstractModulesRegistryImpl.java:142)
at
com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:421)
at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:118)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
ion.java:589)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1461)
at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:779)
at org.jvnet.hk2.osgimain.Main.start(Main.java:117)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAct
ion.java:589)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1461)
at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263
)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.stream.XMLStreamException: ParseError at
[row,col]:[2,155]
Message: found: DTD, expected START_ELEMENT or END_ELEMENT
at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.nextTag(U
nknown Source)
at javax.xml.stream.util.StreamReaderDelegate.nextTag(Unknown
Source)
at
org.glassfish.config.support.XMLStreamReaderFilter.nextTag(XMLStreamR
eaderFilter.java:66)
at org.jvnet.hk2.config.ConfigParser.parse(ConfigParser.java:85)
at
org.glassfish.config.support.DomainXml.parseDomainXml(DomainXml.java:
149)
... 14 more
--------------------------
regards,
kumar
Hong Zhang wrote:
>
>>>
>>> c:\kumar\workspaces\latest\glassfish\glassfishv3\glassfish\bin>.
>>> \asadmin start-domain --upgrade=true --user admin --domaindir c:
>>> \kumar\glassfish2.1\domains domain1
>>> Deprecated syntax, instead use:
>>> asadmin --user admin start-domain [options] ...
>>> com.sun.enterprise.universal.xml.MiniXmlParserException:
>>> com.ctc.wstx.exc.WstxIOException: www.sun.com
>>> Command start-domain failed.
>>
>> I thought the syntax was (and have been using):
>>
>> asadmin start-domain --upgrade [etc] domain1
>>
>> Does --upgrade=true do the same thing? For what it's worth, you may
>> want to try the 'java -jar <glassfish.jar>' route instead to avoid
>> some domain.xml parsing issues. See [0] for more information. Since
>> you didn't get the same errors I've seen, I wonder if
>> "--upgrade=true" did anything.
> The "--upgrade=true" did not work for me. After talking to Jerome, I
> am now using "java -jar <GF_INSTALL>/modules/glassfish.jar -upgrade
> true" (note, one dash before upgrade instead of two dashes) and it
> works for me.
>
> - Hong
>
>>
>> [0] https://glassfish.dev.java.net/issues/show_bug.cgi?id=9127
>>
>> Cheers,
>> Bobby
>>
>> p.s. Am just back from a couple days out of the office -- my token
>> card broke and so I couldn't set up a vacation message so sorry for
>> the delay with no apparent reason. To make things even more
>> interesting, I'm only receiving email intermittently now (have filed
>> a service request) so the trend could continue.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>