> -----Original Message----- > From: Thorsten Scherler > [mailto:thorsten.scherler....@juntadeandalucia.es] > Sent: Monday, 22 February 2010 10:26 PM > To: ga...@16degrees.com.au > Subject: RE: Can't get Dispatcher working at all windows/linux from > trunk >
<snip> > > > > > As said before, one of the issues is the agreed Java base > version. > > > > > See the "build.compiler.vm" parameter in our build.xml > > > > > and instructions in the Release documentation and recent > discussion > > > > > in these dev archives. > > > > > > > > Yep, I read briefly but need to go back in case I missed > something. > > > > And there lies the clue! > > > > Despite having set default java to either 1.5 or 1.6, despite setting > > JAVA_HOME to point to 1.5 or 1.6, it still compiled using 1.4 due to > the > > fact that the build.compiler.vm was still set at 1.4 !! > > > > I have now brought my local copy back up to trunk:HEAD, changed the > > setting to 1.5, changed the JAVA_HOME to 1.5 and Dispatcher now works > > fine on Windows and Linux !! > > > > (Have others tried that and had success/failure) > > > > Looking at the Forrest Zone at > > > > http://forrest.zones.apache.org/ft/build/forrest-sample-2/ > > > > it is clearly not using Dispatcher. > > > > I also tested in 1.6 and get the following compile errors: > > > > compile: > > Created dir: /home/gmcdonald/asf/forrest/build/classes > > Compiling 33 source files to > /home/gmcdonald/asf/forrest/build/classes > > > /home/gmcdonald/asf/forrest/main/java/org/apache/forrest/util/IdGenerat > orTransformer.java:177: unmappable character for encoding UTF8 > > // - <a href="#Quelques+r%E8gles...">Quelques > > r�gles...</a > > ^ > > > /home/gmcdonald/asf/forrest/main/java/org/apache/forrest/util/IdGenerat > orTransformer.java:180: unmappable character for encoding UTF8 > > // - <a href="#Quelques+r%C3%A8gles...">Quelques > > r�gles...</a> > > > ^ > > 2 errors > > > > So, getting closer to having 1.6 work too. > > Hmm, that is under Windows right? > > I have seen it before in other projects. actually no, that was under Linux (using java 1.6.0_15-b03) I tested Forrest & dispatcher under Windows using Java 1.6 (using java 1.6.0_18-b07) and that too, now works fine without any errors. So to re-cap my situation now: Using Java 1.4.x under Windows or Linux - dispatcher does not work. (but if you roll back whiteboard/plugins/dispatcher to r886146 then that older version works fine with rest of current trunk) Using Java 1.5.x under Windows or Linux - current dispatcher works fine. Using Java 1.6.x under Windows - current dispatcher works fine. Using Java 1.6.x under Linux - current dispatcher does not work. (with those two utf8 errors mentioned) With all the above - set the build.compiler.vm to match java version. also note I don't have a MAC to test the above scenarios. HTH Gav... > > > > > > > > > > > One thing is for sure, the forward momentum of this project > depends on this > > > > being resolved, and soon. We should vote on a minimum version of > java soon, > > > > then work on fixing it for that version - as tried and tested as > much as I > > > > have, dispatcher for me doesn't work in any of them. > > > > > > I personally prefer to use 1.6 as minimum since 1.4 and 1.5 are not > > > officially supported anymore. However to make the dispatcher work > with > > > 1.4 is not that hard since it is mostly generic compilation > exception. > > > > If others can test, and it is as simple as upping the > build.compiler.vm > > setting, then I say we should do it right now, but others may have > other > > views. > > Well, nothing is fater to raise build.compiler.vm settings other then > having a vote. ...but I reckon it should not hard to get it 1.4 conform > my problem is ATM I am having too much commercial work to actually do > some coding on the dispatcher. > > > > > As we are still in the 0.X range of release versions, then if we can > fix > > the above UTF8 problem I'd be happy to go straight to 1.6 > > If you under windows I could ask a co worker that had the similar > problem. > > aslu2 > > > > > > > Thanks for looking into it. > > > > Gav... > > > > > > > > salu2 > > > > > -- > Thorsten Scherler <thorsten.at.apache.org> > Open Source Java <consulting, training and solutions> > > Sociedad Andaluza para el Desarrollo de la Sociedad > de la Información, S.A.U. (SADESI) > > >