users@glassfish.java.net

Problem with glassfish: java.lang.NoClassDefFoundError

From: Giacomo Campanelli - Dogma Systems <giacomo.campanelli_at_dogmasystems.it>
Date: Tue, 30 Sep 2008 16:59:35 +0200

I have a web service using glassfish on the server and i try to connect
to it with a java stand alone application. I have a problem: when i try
to connect with the web service i obtain an exception.
First to post i have tried that i find in this post:
http://www.techienuggets.com/Comments?tx=19244 and i have copied the
fine into the endorsed direcory in glassfiah installation. ok. But i
when i try to connect with the web service i obtain this:
Exception occurred during event dispatching:
java.lang.NoClassDefFoundError: org/jvnet/staxex/XMLStreamReaderEx
        at
com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.storeElementAndChildren(StreamReaderBufferCreator.java:174)
        at
com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.storeDocumentAndChildren(StreamReaderBufferCreator.java:158)
        at
com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.store(StreamReaderBufferCreator.java:139)
        at
com.sun.xml.stream.buffer.stax.StreamReaderBufferCreator.create(StreamReaderBufferCreator.java:82)
        at
com.sun.xml.stream.buffer.MutableXMLStreamBuffer.createFromXMLStreamReader(MutableXMLStreamBuffer.java:113)
        at
com.sun.xml.stream.buffer.XMLStreamBuffer.createNewBufferFromXMLStreamReader(XMLStreamBuffer.java:398)
        at
com.sun.xml.ws.api.addressing.WSEndpointReference.<init>(WSEndpointReference.java:174)
        at
com.sun.xml.ws.api.addressing.WSEndpointReference.<init>(WSEndpointReference.java:166)
        at
com.sun.xml.ws.api.addressing.AddressingVersion.<init>(AddressingVersion.java:436)
        at
com.sun.xml.ws.api.addressing.AddressingVersion.<init>(AddressingVersion.java:67)
        at
com.sun.xml.ws.api.addressing.AddressingVersion$1.<init>(AddressingVersion.java:146)
        at
com.sun.xml.ws.api.addressing.AddressingVersion.<clinit>(AddressingVersion.java:69)
        at
com.sun.xml.ws.mex.client.MetadataUtil.getMexWsdlRequest(MetadataUtil.java:99)
        at
com.sun.xml.ws.mex.client.MetadataUtil.getMetadata(MetadataUtil.java:78)
        at
com.sun.xml.ws.mex.client.MetadataClient.retrieveMetadata(MetadataClient.java:128)
        at
com.sun.xml.ws.mex.client.MetadataResolverImpl.resolve(MetadataResolverImpl.java:62)
        at
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseUsingMex(RuntimeWSDLParser.java:184)
        at
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(RuntimeWSDLParser.java:160)
        at
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:144)
        at
com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:263)
        at
com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:226)
        at
com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:174)
        at
com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
        at javax.xml.ws.Service.<init>(Service.java:56)
        at
webinvoicingapp.WebInvoicingService.<init>(WebInvoicingService.java:46)
        at
it.aessepi.myrentcs.gui.archivi.JSchedaWebInvoicing.salvaElemento(JSchedaWebInvoicing.java:184)
        at
it.aessepi.utils.gui.JDialogScheda.salvaElemento(JDialogScheda.java:150)
        at
it.aessepi.utils.gui.JDialogScheda.doClose(JDialogScheda.java:170)
        at
it.aessepi.utils.gui.JDialogScheda.buttonSalvaActionPerformed(JDialogScheda.java:109)
        at
it.aessepi.utils.gui.JDialogScheda.access$300(JDialogScheda.java:28)
        at
it.aessepi.utils.gui.JDialogScheda$4.actionPerformed(JDialogScheda.java:97)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:6038)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
        at java.awt.Dialog$1.run(Dialog.java:1039)
        at java.awt.Dialog$3.run(Dialog.java:1091)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Dialog.show(Dialog.java:1089)
        at it.aessepi.utils.gui.JDialogScheda.show(JDialogScheda.java:270)
        at
it.aessepi.myrentcs.gui.archivi.JSchedaClienti.buttonWebInvoicingActionPerformed(JSchedaClienti.java:681)
        at
it.aessepi.myrentcs.gui.archivi.JSchedaClienti.access$500(JSchedaClienti.java:49)
        at
it.aessepi.myrentcs.gui.archivi.JSchedaClienti$6.actionPerformed(JSchedaClienti.java:413)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:6038)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
        at java.awt.Dialog$1.run(Dialog.java:1039)
        at java.awt.Dialog$3.run(Dialog.java:1091)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Dialog.show(Dialog.java:1089)
        at it.aessepi.utils.gui.JAnagrafica.show(JAnagrafica.java:2171)
        at
it.aessepi.myrentcs.gui.main.MyRentFrame.jMenuAnaClientiActionPerformed(MyRentFrame.java:3213)
        at
it.aessepi.myrentcs.gui.main.MyRentFrame.access$2400(MyRentFrame.java:177)
        at
it.aessepi.myrentcs.gui.main.MyRentFrame$23.actionPerformed(MyRentFrame.java:1193)
        at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170)
        at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211)
        at java.awt.Component.processMouseEvent(Component.java:6038)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Anyone can help me to solve the problem? Maybe i wrong the libraries?

thanks to all

-- 
Giacomo Campanelli
Dogma Systems S.R.L.
Via Matteotti 2
60020 Polverigi (AN)
telefono: +39 071 9090188
 mobile1: +39 346 3678073
 mobile2: +39 331 3846568
     fax: +39 071 2509963
  
    mail: giacomo.campanelli_at_dogmasystems.it
     web: www.dogmasystems.it
   skype: giacomocampanelliavoro