0 Replies Latest reply on Aug 5, 2004 5:55 PM by Dipankar Das

    XML parser in j2sdk has default serializer.

    Dipankar Das Newbie

      XML parser in j2sdk has default serializer.

      According to documentation in Apache XML project XMLSerializer will be obsoleted. I get the following error when I use XML parser that comes with j2sdk.

      Is there a better way to use the XML parser that is bundled with j2sdk?
      In otherwords how can I continue to do

      org.w3c.dom.Document document = constructDocument();
      String xml = "" + document +;


      14:40:07,130 WARN [ServiceController] Problem starting service jboss.jmx:name=SnmpAgent,service=s
      p,type=adaptor
      java.lang.NoClassDefFoundError: org/apache/xml/serialize/XMLSerializer
      at org.exolab.castor.xml.Unmarshaller.initConfig(Unmarshaller.java:253)
      at org.exolab.castor.xml.Unmarshaller.(Unmarshaller.java:209)
      at org.exolab.castor.xml.Unmarshaller.(Unmarshaller.java:196)
      at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:626)
      at org.jboss.jmx.adaptor.snmp.config.manager.ManagerList.unmarshal(ManagerList.java:221)
      at org.jboss.jmx.adaptor.snmp.agent.TrapEmitter.load(TrapEmitter.java:240)
      at org.jboss.jmx.adaptor.snmp.agent.TrapEmitter.start(TrapEmitter.java:108)
      at org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService.startService(SnmpAgentService.java:23

      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:22

      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)