users@glassfish.java.net

NoSuchMethodError at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.getNamespaceContext()Lcom/sun/org/apache/,xerces/internal/xni/NamespaceContext;

From: Lokesh <lokeshvarma.m_at_gmail.com>
Date: Sat, 23 Jul 2011 17:38:15 -0400

Hi All,
I installed Glassfish3 on my windows 7 machine and trying to start the
domain(asadmin.bat start-domain). But I am getting this
NoSuchMethodError in XMLDocumentScannerImpl. Please help me with this. I
would like to know anything wrong I am doing here. I appreciate your help.
Following is the full stack trace:

C:\glassfish3\glassfish\bin>asadmin.bat start-domain
Exception in thread "main" java.lang.NoSuchMethodError:
com.sun.org.apache.xerce
s.internal.impl.XMLDocumentScannerImpl.getNamespaceContext()Lcom/sun/org/apache/
xerces/internal/xni/NamespaceContext;
         at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.<init>(XM
LStreamReaderImpl.java:99)
         at
com.sun.xml.internal.stream.XMLInputFactoryImpl.getXMLStreamReaderImp
l(XMLInputFactoryImpl.java:264)
         at
com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader
(XMLInputFactoryImpl.java:141)
         at
com.sun.enterprise.universal.xml.MiniXmlParser.createParser(MiniXmlPa
rser.java:230)
         at
com.sun.enterprise.universal.xml.MiniXmlParser.read(MiniXmlParser.jav
a:210)
         at
com.sun.enterprise.universal.xml.MiniXmlParser.<init>(MiniXmlParser.j
ava:85)
         at
com.sun.enterprise.admin.launcher.GFLauncher.setup(GFLauncher.java:15
1)
         at
com.sun.enterprise.admin.cli.StartDomainCommand.createLauncher(StartD
omainCommand.java:190)
         at
com.sun.enterprise.admin.cli.StartDomainCommand.executeCommand(StartD
omainCommand.java:102)
         at
com.sun.enterprise.admin.cli.CLICommand.execute(CLICommand.java:263)
         at
com.sun.enterprise.admin.cli.AsadminMain.executeCommand(AsadminMain.j
ava:295)
         at
com.sun.enterprise.admin.cli.AsadminMain.main(AsadminMain.java:227)