cs_kam81
Messages postés114Date d'inscriptiondimanche 25 septembre 2005StatutMembreDernière intervention11 février 2009
-
12 déc. 2007 à 08:53
breathfromhell
Messages postés26Date d'inscriptionvendredi 23 mars 2007StatutMembreDernière intervention 6 mars 2009
-
5 févr. 2008 à 16:35
Bonjour,
Je travaille avec netbeans 5.5, j'ai créé une applet qui se connecte à un serveur ftp, et puis je l'ai deployée dans une application web et ça marchait tres bien.
Tout d'un coup ça ne marche plus lorsque je clique sur le bouton de connection, je reçois cette exception dans la JVM:
Exception in thread "AWT-EventQueue-2" java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
at Myapplet.jButton1ActionPerformed(Myapplet.java:79)
at Myapplet.access$100(Myapplet.java:16)
at Myapplet$2.actionPerformed(Myapplet.java:45)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Sachant que j'utilise l'API commons.net.ftp d'apache (dont le jar est present avec les fichiers .class de l'applet et son archive jar) et qu'au niveau de l'applet viewer ça marche tres bien et que le fichier .java.policy est bien present.
Merci.