On 5 Mar 2012, at 17:31, <[email protected]> <[email protected]> wrote: >> Is this the literal error message that you get? > Not Literaly because it's an english translation of the french message. But > to resume, Java can't find or load the d2rq.server class.
Ok. (Note: Translations are nice, but usually the literal message is more important, even if it's in a different language. I can't google for a translation. Reading technical text in a foreign language isn't *that* hard with Google Translate. Here in this case it doesn't matter because the problem is something else, see below.) >> 1. Insert the line "echo %CP" (without the quotes) into d2r-server.bat, >> after the line that starts "set LOGCONFIG" and before the line that starts >> "java -cp", then run again and note the output > > My output is : > > CP > Error : impossible to find or load the main class d2rq.server Oh, I'm sorry, there was a typo in my message. I meant: "echo %CP%", note the second % sign. >> 2. Re-run "ant jar", check if there is anything suspicious in the output, > and check that lib\d2rq-0.8-dev.jar has actually been created and is > approximately 350kB in size > I have one warning : > warning: [options] bootstrap class path not set in conjunction with -source > 1.5 Ok, yeah, you can ignore this warning, it only matters when building a distribution that others are supposed to use. > But, the build has been made with success. And the jar file : > lib/d2rq-0.8-dev.jar has been created and its size is 342Ko. Ok, that's good. >> 3. Try what happens if you run this command, do you get the same error or > a different one? > I have this exception : > > Exception in thread "main" java.lang.NoClassDefFoundError: > com/hp/hpl/jena/shared/JenaException > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2442) > at java.lang.Class.getMethod0(Class.java:2685) > at java.lang.Class.getMethod(Class.java:1620) > at > sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:484) > at > sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:476) > Caused by: java.lang.ClassNotFoundException: > com.hp.hpl.jena.shared.JenaException > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessControler.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:423) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:356) > ... 6 more Ok, then it must be a problem in the d2r-server.bat, it doesn't build the classpath correctly. The value of %CP% should help us debug this, see above. > I also make the tests with my Linux Ubuntu 11.10 64 bits with OpenJDK > 1.7.0_147 and I have exactly the same errors than 3. For 2. I have just 3 > warning about unmappable character for encoding UTF8. Ok, same as for Windows: Can you insert the line "echo $CP" before the "exec java" line in the ./d2r-server shell script, run it, and copy the output? Cheers, Richard > > Hope it helps. > > ---------------------------------------------------------------------------- > ----------------------------------------------- > Julien Plu > > Etudiant en 2ème année de Master Ingénierie en Intelligence Artificielle à > l’Université Montpellier 2. > Mes projets Web sémantique : http://data.lirmm.fr > Page personnelle : http://jplu.developpez.com > Responsable de la rubrique Web sémantique de Developpez.com. > Fichier FOAF (version RDF) : http://jplu.developpez.com/julien > Fichier FOAF (version RDFa) : http://jplu.developpez.com/julien.html > Adresse mail personnelle : [email protected] > Adresse mail universitaire : [email protected] > > > -----Message d'origine----- > De : Richard Cyganiak [mailto:[email protected]] > Envoyé : lundi 5 mars 2012 17:32 > À : [email protected]@redaction-developpez.com > Cc : 'Iqbal, Aftab'; [email protected] > Objet : Re: [d2rq-dev] Jena + ARQ upgraded > > Julien, > > Thanks for trying this! Some questions below. > > On 5 Mar 2012, at 15:45, <[email protected]> > <[email protected]> wrote: >> I will test on another computer with the same config (Windows 64 bits, >> java >> 7.03 and Tomcat 7.0.22) and it doesn't works. > > Just for clarification: How is Tomcat relevant here? You're starting D2R > Server just from the command line, so it will just use its built-in server > (Jetty), and it won't do anything with your installed Tomcat, right? > >> I have this error : >> >> Error : impossible to find or load the main class d2rq.server > > Is this the literal error message that you get? > >> When I run this command : .\d2r-server .\mapping.n3 >> >> The repository is located at : C:\Users\snake\Desktop\d2rq > > Ok. Maybe you can try the following: > > 1. Insert the line "echo %CP" (without the quotes) into d2r-server.bat, > after the line that starts "set LOGCONFIG" and before the line that starts > "java -cp", then run again and note the output > > 2. Re-run "ant jar", check if there is anything suspicious in the output, > and check that lib\d2rq-0.8-dev.jar has actually been created and is > approximately 350kB in size > > 3. Try what happens if you run this command, do you get the same error or a > different one? > java -cp lib\d2rq-0.8-dev.jar d2rq.server > > Thanks, > Richard > > >> >> My java version is also 64 bits. >> >> I will test on my Linux just for see. >> >> Cheers. >> >> ---------------------------------------------------------------------- >> ------ >> ----------------------------------------------- >> Julien Plu >> >> Etudiant en 2ème année de Master Ingénierie en Intelligence >> Artificielle à l’Université Montpellier 2. >> Mes projets Web sémantique : http://data.lirmm.fr Page personnelle : >> http://jplu.developpez.com Responsable de la rubrique Web sémantique >> de Developpez.com. >> Fichier FOAF (version RDF) : http://jplu.developpez.com/julien Fichier >> FOAF (version RDFa) : http://jplu.developpez.com/julien.html >> Adresse mail personnelle : [email protected] >> Adresse mail universitaire : [email protected] >> >> -----Message d'origine----- >> De : Iqbal, Aftab [mailto:[email protected]] Envoyé : lundi 5 mars >> 2012 15:54 À : [email protected] Cc : >> [email protected] >> Objet : Re: [d2rq-dev] Jena + ARQ upgraded >> >> >> Hi Julien, >> >> thanks for testing D2RQ under your windows environment. I am CC'ing >> your response to the mailing list to log your testing environment for >> future reference. >> >> regards >> Aftab Iqbal >> >> -----Original Message----- >> From: Julien Plu on behalf of [email protected] >> Sent: Mon 05/03/2012 14:09 >> To: Iqbal, Aftab >> Subject: RE: [d2rq-dev] Jena + ARQ upgraded >> >> Hi, >> >> I will test the Git version and it works fine on my computer with >> Windows 7 64bits, java 7.03 and Tomcat 7.0.22. >> >> Cheers. >> >> ---------------------------------------------------------------------- >> ------ >> ----------------------------------------------- >> Julien Plu >> >> Etudiant en 2ème année de Master Ingénierie en Intelligence >> Artificielle à l'Université Montpellier 2. >> Mes projets Web sémantique : http://data.lirmm.fr Page personnelle : >> http://jplu.developpez.com Responsable de la rubrique Web sémantique >> de Developpez.com. >> Fichier FOAF (version RDF) : http://jplu.developpez.com/julien Fichier >> FOAF (version RDFa) : http://jplu.developpez.com/julien.html >> Adresse mail personnelle : [email protected] >> Adresse mail universitaire : [email protected] >> >> >> -----Message d'origine----- >> De : Iqbal, Aftab [mailto:[email protected]] Envoyé : jeudi 1 mars >> 2012 >> 10:05 À : [email protected]; >> [email protected] >> Objet : RE: [d2rq-dev] Jena + ARQ upgraded >> >> >> Hi Julien, >> >>> @Richard : I can make some test with Tomcat 7 this weekend and make >>> a report here of these tests, if you interested by this ? >> >> I did some initial deployment testing on Tomcat 7 regarding issue [1]. >> We will highly appreciate if you could also test it in your >> environment. The more tests the merrier :). >> >> Looking forward to your test results >> >> regards >> Aftab Iqbal >> >> [1] https://github.com/d2rq/d2rq/issues/12 >> >> -----Original Message----- >> From: [email protected] >> [mailto:[email protected]] >> Sent: Wed 29/02/2012 19:55 >> To: [email protected] >> Subject: Re: [d2rq-dev] Jena + ARQ upgraded >> >> Hi all, >> >> First congratulation for the very good news about UCB, it's a very >> good thing :) >> >> After for mavenize the D2RQ project, personally, I think that it's not >> very useful because the most users of D2RQ use it just for make a >> mapping and using this mapping and not for extend the development, >> also among this users most of them, maybe, do not know how to use >> maven for build a Tomcat version of D2RQ for example. >> >> It's my opinion, so I agree with Richard, but nothing prevents from >> doing if someone wants to do it. >> >> @Richard : I can make some test with Tomcat 7 this weekend and make a >> report here of these tests, if you interested by this ? >> >> Cheers. >> >> ---------------------------------------------------------------------- >> ------ >> ----------------------------------------------- >> Julien Plu >> >> Etudiant en 2ème année de Master Ingénierie en Intelligence >> Artificielle à l'Université Montpellier 2. >> Mes projets Web sémantique : http://data.lirmm.fr Page personnelle : >> http://jplu.developpez.com Responsable de la rubrique Web sémantique >> de Developpez.com. >> Fichier FOAF (version RDF) : http://jplu.developpez.com/julien Fichier >> FOAF (version RDFa) : http://jplu.developpez.com/julien.html >> Adresse mail personnelle : [email protected] >> Adresse mail universitaire : [email protected] >> >> >> -----Message d'origine----- >> De : Jesse Sightler [mailto:[email protected]] Envoyé : mardi >> 28 février 2012 19:48 À : Richard Cyganiak Cc : >> [email protected] >> Objet : Re: [d2rq-dev] Jena + ARQ upgraded >> >> I sort of understand where you are coming from, and obviously none of >> us can make you do something you don't want to. I've made similar >> remarks about Maven some years ago, but things do change. >> >> I personally don't see a lot of value in maintaining a separate (but >> not >> equal) build system, so I can't see going down that path. I'd be happy >> to help out with converting over completely if that were in the plans, > though. >> >> Anyway, good luck with the ongoing fixes. I think we all appreciate >> seeing the project move forward with bugfixes again. >> >> On Tue, Feb 28, 2012 at 1:43 PM, Richard Cyganiak >> <[email protected]> >> wrote: >>> Jesse, respectfully, I'd prefer not to get any further into this >> discussion. I'm doing my bit to keep D2RQ growing, and I'm more >> productive with Ant than with Maven. If you consider Maven easy and >> useful, then you could walk the talk and collaborate with Bob to make >> an up-to-date mavenized version of D2RQ. >>> >>> Thanks, >>> Richard >>> >>> >>> On 28 Feb 2012, at 15:06, Jesse Sightler wrote: >>> >>>> On Tue, Feb 28, 2012 at 10:01 AM, Richard Cyganiak >>>> <[email protected]> >> wrote: >>>>> Nothing is rather easy with Maven. Maven is almost as awful as EJBs. >>>> >>>> I'm curious what gives you this impression? Modern Maven is actually >>>> pretty easy to use (easier than Ant in a lot of cases, IMO). >>>> >>>> Even Eclipse manages to support it pretty well now, and they were by >>>> far the slowest to get Maven support in the past. >>> >> >> ---------------------------------------------------------------------- >> ------ >> -- >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft >> developers is just $99.99! Visual Studio, SharePoint, SQL - plus >> HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you > subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> d2rq-map-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel >> >> >> ---------------------------------------------------------------------- >> ------ >> -- >> Virtualization & Cloud Management Using Capacity Planning Cloud >> computing makes use of virtualization - but cloud computing also >> focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> d2rq-map-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel >> >> >> >> >> ---------------------------------------------------------------------- >> ------ >> -- >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft >> developers is just $99.99! Visual Studio, SharePoint, SQL - plus >> HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you > subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> d2rq-map-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel >> >> >> ---------------------------------------------------------------------- >> -------- Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft >> developers is just $99.99! Visual Studio, SharePoint, SQL - plus >> HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you > subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> d2rq-map-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > d2rq-map-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ d2rq-map-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
