Bonjour,
je suis entrain de concevoir une application web sémantique dans le cadre de mon stage
j'ai créer mon repository sesame et je peut lancer des requête sparql à partir d'un programme java .
Maintenant je veut exécuter mes requête à partir d'une d'un client web Servlet/JSP mais quand j’exécute mon servlet il me dit comme erreur :
et je comprends toujours pas c'est quoi le problème j'ai regarder sur le net mais je ne trouve rien pouvez vous m'aider
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 GRAVE: Exception lors de l'allocation pour la servlet EnpointServlet java.lang.ClassNotFoundException: org.openrdf.repository.RepositoryException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2416) at java.lang.Class.getConstructor0(Class.java:2726) at java.lang.Class.newInstance0(Class.java:345) at java.lang.Class.newInstance(Class.java:327) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1149) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:827) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129) 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:103) 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:861) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679)
voici mon code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
27
28
29
30 protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // IV. Connexion à un serveur Sesame // pour se connecter à un serveur Sesame : utiliser le constructeur avec 2 String // en donnant l'adresse du serveur et le nom du repository Repository repository = new HTTPRepository("http://localhost:8080/openrdf-sesame","MediumVueNative"); try { repository.initialize(); } catch (RepositoryException e) { // TODO Auto-generated catch block System.out.println("c koi ton blème"); } // on ouvre une connexion au repository // comme en JDBC, c'est à travers cette connexion que sont envoyées toute les requêtes try { RepositoryConnection connection = repository.getConnection(); } catch (RepositoryException e) { // TODO Auto-generated catch block //e.printStackTrace(); System.out.println("prkoi tu rale"); } // controleur String action = request.getParameter("action"); // System.out.println(action); if ((action == null) || (action.equals("accueil"))) { // page accueil request.getRequestDispatcher("EndPoinJSP.jsp").forward(request, response); }
Partager