Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1740 connectés 

  FORUM HardWare.fr
  Programmation
  Java

  Inclure un applet java sur une jsp d'un serveur silverstream

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Inclure un applet java sur une jsp d'un serveur silverstream

n°1064130
brupistone
Posté le 28-04-2005 à 12:22:35  profilanswer
 

Bonjour à tous,
 
Je développe actuellement une application de lecture de carte à puce via une interface web.
 
Cette application est donc sous forme d'applet java.
 
Je dispose de jsp et dans l'une d'entre elle j'y ai mis (comme j'ai pu le voir) ceci :
 

Code :
  1. <jsp:plugin type="applet" codebase="be.bhc.citiesonline.applet" code="Main.class" align="left">
  2.   <jsp:params>
  3.     <jsp:param name="documentId" value="1" />
  4.   </jsp:params>
  5.   <jsp:fallback>
  6.     <p>Java Virtual Machine needed to load applet...</p>
  7.   </jsp:fallback>
  8. </jsp:plugin>


 
Seulement lors du chargement de l'applet voilà les erreurs :
 

Code :
  1. sun.plugin.cache.DownloadException
  2. at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
  3. at sun.plugin.cache.FileCache.get(Unknown Source)
  4. at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connectWithCache(Unknown Source)
  5. at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(Unknown Source)
  6. at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(Unknown Source)
  7. at java.net.HttpURLConnection.getResponseCode(Unknown Source)
  8. at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
  9. at sun.applet.AppletClassLoader.getBytes(Unknown Source)
  10. at sun.applet.AppletClassLoader.access$100(Unknown Source)
  11. at sun.applet.AppletClassLoader$1.run(Unknown Source)
  12. at java.security.AccessController.doPrivileged(Native Method)
  13. at sun.applet.AppletClassLoader.findClass(Unknown Source)
  14. at java.lang.ClassLoader.loadClass(Unknown Source)
  15. at sun.applet.AppletClassLoader.loadClass(Unknown Source)
  16. at java.lang.ClassLoader.loadClass(Unknown Source)
  17. at sun.applet.AppletClassLoader.loadCode(Unknown Source)
  18. at sun.applet.AppletPanel.createApplet(Unknown Source)
  19. at sun.plugin.AppletViewer.createApplet(Unknown Source)
  20. at sun.applet.AppletPanel.runLoader(Unknown Source)
  21. at sun.applet.AppletPanel.run(Unknown Source)
  22. at java.lang.Thread.run(Unknown Source)
  23. sun.plugin.cache.DownloadException
  24. at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
  25. at sun.plugin.cache.FileCache.get(Unknown Source)
  26. at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connectWithCache(Unknown Source)
  27. at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(Unknown Source)
  28. at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(Unknown Source)
  29. at java.net.HttpURLConnection.getResponseCode(Unknown Source)
  30. at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
  31. at sun.applet.AppletClassLoader.getBytes(Unknown Source)
  32. at sun.applet.AppletClassLoader.access$100(Unknown Source)
  33. at sun.applet.AppletClassLoader$1.run(Unknown Source)
  34. at java.security.AccessController.doPrivileged(Native Method)
  35. at sun.applet.AppletClassLoader.findClass(Unknown Source)
  36. at java.lang.ClassLoader.loadClass(Unknown Source)
  37. at sun.applet.AppletClassLoader.loadClass(Unknown Source)
  38. at java.lang.ClassLoader.loadClass(Unknown Source)
  39. at sun.applet.AppletClassLoader.loadCode(Unknown Source)
  40. at sun.applet.AppletPanel.createApplet(Unknown Source)
  41. at sun.plugin.AppletViewer.createApplet(Unknown Source)
  42. at sun.applet.AppletPanel.runLoader(Unknown Source)
  43. at sun.applet.AppletPanel.run(Unknown Source)
  44. at java.lang.Thread.run(Unknown Source)
  45. charger : classe Main.class introuvable.
  46. java.lang.ClassNotFoundException: Main.class
  47. at sun.applet.AppletClassLoader.findClass(Unknown Source)
  48. at java.lang.ClassLoader.loadClass(Unknown Source)
  49. at sun.applet.AppletClassLoader.loadClass(Unknown Source)
  50. at java.lang.ClassLoader.loadClass(Unknown Source)
  51. at sun.applet.AppletClassLoader.loadCode(Unknown Source)
  52. at sun.applet.AppletPanel.createApplet(Unknown Source)
  53. at sun.plugin.AppletViewer.createApplet(Unknown Source)
  54. at sun.applet.AppletPanel.runLoader(Unknown Source)
  55. at sun.applet.AppletPanel.run(Unknown Source)
  56. at java.lang.Thread.run(Unknown Source)
  57. Caused by: java.io.IOException: open HTTP connection failed.
  58. at sun.applet.AppletClassLoader.getBytes(Unknown Source)
  59. at sun.applet.AppletClassLoader.access$100(Unknown Source)
  60. at sun.applet.AppletClassLoader$1.run(Unknown Source)
  61. at java.security.AccessController.doPrivileged(Native Method)
  62. ... 10 more


 
Je précise que cette page est protégée par un certificat SSL si cela peut influencer...
 
Entre autre voici la structure des dossiers sur le serveur SilverStream :
 
WEB-INF/
WEB-INF/classes/be/bhc/citiesonline/Preferences
WEB-INF/lib
be/bhc/citiesonline/applet
be/bhc/citiesonline/application
be/bhc/citiesonline/utils
be/bhc/citiesonline/web
 
Les jsp se trouvent à la racine et les applets dans be/bhc/citiesonline/applet
 
Voilà si vous avez des idées et un peu de temps à m'accorder cela serait très sympa de votre part!

mood
Publicité
Posté le 28-04-2005 à 12:22:35  profilanswer
 

n°1068660
brupistone
Posté le 02-05-2005 à 13:27:28  profilanswer
 

[:undertaker666]

n°1068699
brupistone
Posté le 02-05-2005 à 13:42:19  profilanswer
 

Bon j'ai trouvé mon applet se trouve maintenant à la racine du site et ca fonctionne mais maintenant je bute sur une impossibilité d'importer une classe qui se trouve dans jpcsc.jar du répertoire WEB-INF/lib. Voici l'erreur :
 
[c++]
sun.plugin.cache.DownloadException
 
 at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
 
 at sun.plugin.cache.FileCache.get(Unknown Source)
 
 at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connectWithCache(Unknown Source)
 
 at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(Unknown Source)
 
 at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(Unknown Source)
 
 at java.net.HttpURLConnection.getResponseCode(Unknown Source)
 
 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
 
 at sun.applet.AppletClassLoader.getBytes(Unknown Source)
 
 at sun.applet.AppletClassLoader.access$100(Unknown Source)
 
 at sun.applet.AppletClassLoader$1.run(Unknown Source)
 
 at java.security.AccessController.doPrivileged(Native Method)
 
 at sun.applet.AppletClassLoader.findClass(Unknown Source)
 
 at java.lang.ClassLoader.loadClass(Unknown Source)
 
 at sun.applet.AppletClassLoader.loadClass(Unknown Source)
 
 at java.lang.ClassLoader.loadClass(Unknown Source)
 
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 
 at be.bhc.citiesonline.applet.SmartCardReader.<init>(SmartCardReader.java:19)
 
 at CitiesOnlineApplet.checkCard(CitiesOnlineApplet.java:188)
 
 at CitiesOnlineApplet.action(CitiesOnlineApplet.java:84)
 
 at java.awt.Component.handleEvent(Unknown Source)
 
 at java.awt.Component.postEvent(Unknown Source)
 
 at java.awt.Component.postEvent(Unknown Source)
 
 at java.awt.Component.dispatchEventImpl(Unknown Source)
 
 at java.awt.Component.dispatchEvent(Unknown Source)
 
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 
 at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
 
java.lang.NoClassDefFoundError: com/linuxnet/jpcsc/State
 
 at be.bhc.citiesonline.applet.SmartCardReader.<init>(SmartCardReader.java:19)
 
 at CitiesOnlineApplet.checkCard(CitiesOnlineApplet.java:188)
 
 at CitiesOnlineApplet.action(CitiesOnlineApplet.java:84)
 
 at java.awt.Component.handleEvent(Unknown Source)
 
 at java.awt.Component.postEvent(Unknown Source)
 
 at java.awt.Component.postEvent(Unknown Source)
 
 at java.awt.Component.dispatchEventImpl(Unknown Source)
 
 at java.awt.Component.dispatchEvent(Unknown Source)
 
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 
 at java.awt.EventDispatchThread.pumpOneEventForHierarchy(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)
 
[/cpp]

n°1068704
brupistone
Posté le 02-05-2005 à 13:45:24  profilanswer
 

Désolé pour vos yeux, c'ets mieux comme ça :
 

Code :
  1. sun.plugin.cache.DownloadException
  2. at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
  3. at sun.plugin.cache.FileCache.get(Unknown Source)
  4. at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connectWithCache(Unknown Source)
  5. at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(Unknown Source)
  6. at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(Unknown Source)
  7. at java.net.HttpURLConnection.getResponseCode(Unknown Source)
  8. at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
  9. at sun.applet.AppletClassLoader.getBytes(Unknown Source)
  10. at sun.applet.AppletClassLoader.access$100(Unknown Source)
  11. at sun.applet.AppletClassLoader$1.run(Unknown Source)
  12. at java.security.AccessController.doPrivileged(Native Method)
  13. at sun.applet.AppletClassLoader.findClass(Unknown source)
  14. at java.lang.ClassLoader.loadClass(Unknown Source)
  15. at sun.applet.AppletClassLoader.loadClass(Unknown Source)
  16. at java.lang.ClassLoader.loadClass(Unknown Source)
  17. at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  18. at be.bhc.citiesonline.applet.SmartCardReader.<init>(SmartCardReader.java:19)
  19. at CitiesOnlineApplet.checkCard(CitiesOnlineApplet.java:188)
  20. at CitiesOnlineApplet.action(CitiesOnlineApplet.java:84)
  21. at java.awt.Component.handleEvent(Unknown Source)
  22. at java.awt.Component.postEvent(Unknown Source)
  23. at java.awt.Component.postEvent(Unknown Source)
  24. at java.awt.Component.dispatchEventImpl(Unknown Source)
  25. at java.awt.Component.dispatchEvent(Unknown Source)
  26. at java.awt.EventQueue.dispatchEvent(Unknown Source)
  27. at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
  28. at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
  29. at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  30. at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  31. at java.awt.EventDispatchThread.run(Unknown Source)
  32. java.lang.NoClassDefFoundError: com/linuxnet/jpcsc/State
  33. at be.bhc.citiesonline.applet.SmartCardReader.<init>(SmartCardReader.java:19)
  34. at CitiesOnlineApplet.checkCard(CitiesOnlineApplet.java:188)
  35. at CitiesOnlineApplet.action(CitiesOnlineApplet.java:84)
  36. at java.awt.Component.handleEvent(Unknown Source)
  37. at java.awt.Component.postEvent(Unknown Source)
  38. at java.awt.Component.postEvent(Unknown Source)
  39. at java.awt.Component.dispatchEventImpl(Unknown Source)
  40. at java.awt.Component.dispatchEvent(Unknown Source)
  41. at java.awt.EventQueue.dispatchEvent(Unknown Source)
  42. at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
  43. at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
  44. at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  45. at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  46. at java.awt.EventDispatchThread.run(Unknown Source)

n°1068770
brupistone
Posté le 02-05-2005 à 14:26:35  profilanswer
 

Siouplé snif :'(


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Java

  Inclure un applet java sur une jsp d'un serveur silverstream

 

Sujets relatifs
[JAVA] Boucle de dessin...[JAVA] Petit problème de centrage [résolu]
UNC comment acceder a un dossier sur un serveurJava JSP
[Java] Problème de compatibilité [Résolu][JAVA] JNI, problème création fenetre en c++
communication JAVA/VBConversion sources C en source asm (en java)
[JAVA] Euh... Problème d'affichage [résolu][JAVA] Listerner sur un JTree
Plus de sujets relatifs à : Inclure un applet java sur une jsp d'un serveur silverstream


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR