Précédent   Forum des professionnels en informatique > Java > Général Java > APIs
APIs Forum sur les API standard et API complémentaires. Avant de poster -> FAQ Java, Les meilleures API Java
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 20/12/2011, 09h39   #1
Nouveau Membre du Club
 
Homme Raphaël Bruggeman
Analyste programmeur
Inscription : octobre 2010
Messages : 100
Détails du profil
Informations personnelles :
Nom : Homme Raphaël Bruggeman
Âge : 37
Localisation : Belgique

Informations professionnelles :
Activité : Analyste programmeur

Informations forums :
Inscription : octobre 2010
Messages : 100
Points : 35
Points : 35
Par défaut Impossibilité d'utiliser l'API JSON dans une servlet

Bonjour,

Le message suivant apparait constamment lorsque je lance mon application.
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Dec 20, 2011 9:32:08 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet loginServ threw exception
java.lang.Error: Unresolved compilation problems: 
    The import net cannot be resolved
    JSONObject cannot be resolved to a type
    JSONObject cannot be resolved to a type
    JSONObject cannot be resolved to a type
    JSONObject cannot be resolved to a type
 
    at fr.ayt.model.test.<init>(test.java:4)
    at fr.ayt.database.LoginDAO.login(LoginDAO.java:78)
    at fr.ayt.server.loginServ.doGet(loginServ.java:51)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:679)
Quelqu'un saurait-il m'expliquer d'où peut venir le problème ?

Merci d'avance pour vos aides.
SpeedOverflow est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 21/12/2011, 09h19   #2
Membre Expert
 
Homme
Ingénieur développement logiciels
Inscription : septembre 2008
Messages : 730
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations professionnelles :
Activité : Ingénieur développement logiciels
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : septembre 2008
Messages : 730
Points : 1 394
Points : 1 394
Comme le message te l'indique, il ne trouve pas JSONObject.
As tu vérifié qu'il était accessible dans le classpath?
deathness est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 21/12/2011, 09h40   #3
Rédacteur
 
Avatar de thierryler
 
Homme Thierry Leriche-Dessirier
Inscription : octobre 2007
Messages : 1 225
Détails du profil
Informations personnelles :
Nom : Homme Thierry Leriche-Dessirier
Localisation : France

Informations forums :
Inscription : octobre 2007
Messages : 1 225
Points : 3 460
Points : 3 460
Genre n'aurais-tu pas une grosse croix rouge dans ton Eclipse pour t'indiquer qu'il manque quelque chose ?
thierryler est déconnecté   Envoyer un message privé Réponse avec citation 10
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 20h26.


 
 
 
 
Partenaires

Hébergement Web