Hi Bastiaan, difficult to say but
* JAVA_HOME points to the installation directory and not to the “bin” folder * The “bin” folder is something you add to the PATH, e.g. “SET PATH=%PATH%;%JAVA_HOME%\bin;” * I give it a try on a Windows box tomorrow and document the steps (since I’m not using Windows it is a bit difficult to troubleshoot) So stay tuned Siegfried Goeschl > On 30 Nov 2014, at 18:51, Geelhoed, B (thorax) <[email protected]> wrote: > > > > Dear Siegfried , > > Thank you for this suggestion (I am from now on going to use this newer > version). > > About my previous problem (woas-2.9.1.1-bin), however, it was not really > solved, I only thought it was solved. > > Here is what I did (woas-2.9.1.1-bin): > > 1A. I unzipped the files and put them on my memory stick. > 2A. In start (configuration file) I removed the "#" in front of the line: > -Dorg.apache.jasper.compiler.disablejsr199=true > 3A. I then double clicked on the file start.jar [this is probably not as it > is supposed] > 4A. Then, I double clicked on woas (Internet shortcut) > 5A. The browser was opened as a result of the above step. > 6A. In the browser I clicked on the hyperlink "Your Wiki-On-A-Stick" > 7A. The result of the above step was something that seemed to be the wiki, > fully functioning. > --> But I later wanted to edit a page (clicking on edit) and there came an > error: > > HTTP ERROR 500 > Problem accessing /wiki/Edit.jsp. Reason: > Server Error > Caused by: > org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for > JSP > > Probably the installation of woas-2.9.1.1-bin is more complicated than my > above attempt. > > I therefore now want to try the newer version > jspwiki-portable-2.10.1-SNAPSHOT-woas.tar.gz. > > I did the following steps: > > 1B. I downloaded jspwiki-portable-2.10.1-SNAPSHOT-woas.tar.gz > 2B. Unzipped the files on my memory stick > 3B. To take into your account of the spaces in the folder name of Java, I > wanted to make sure this will not lead to an error so I re-installed Java jdk > and jre and put them respectively in the folders: > > C:\JAVA64\jdk > > and > > C:\JAVA64\jre > > (in these folders the relevant java applications are in bin folders) > 4B. In the command prompt I typed: > > Set JRE_HOME=C:\JAVA64\jre\bin > > and > > Set JAVA_HOME=C:\JAVA64\jdk\bin > > 5B. In > > > G:\jspwiki-portable-2.10.1-SNAPSHOT-woas.tar\jspwiki-portable-2.10.1-SNAPSHOT-woas\jspwiki-portable-2.10.1-SNAPSHOT > (this is the location where I unzipped the files to) > > I didn't see a configuration file. > > 6B. So I first double-clicked on the file woas (Internet link). This resulted > in the opening of the browser. > 7B. I clicked on the link "Your Wiki-On-A-Stick" in the browser. > 8B. This resulted in the message "This webpage is not available". > 9B. So I again looked in the folder > > > G:\jspwiki-portable-2.10.1-SNAPSHOT-woas.tar\jspwiki-portable-2.10.1-SNAPSHOT-woas\jspwiki-portable-2.10.1-SNAPSHOT > > and I found woas (application) > > 10B. I double-clicked on woas (application) > 11B. The firewall gave a message and I had to allow access. > 12B. A command-prompt like window appeared, displaying a lot of text, the > last line was: > "INFO: Server startup in 6742 ms" > 13B. I double-clicked on woas (Internet Shortcut) > 14B. The browser appeared again, I clicked on the link "Your > Wiki-On-A-Stick". > 15B. The result was an error message in the browser: > > HTTP Status 404 - /wiki/ > type Status report > message /wiki/ > description The requested resource is not available. > Apache Tomcat/7.0.52 > > 16B. I continued as follows: using CTRL-C I closed the window that was opened > in step 12B. > 17B. I double clicked on woas (batch file) > 18B. As a result of this a command-prompt like window appeared, but also > disappeared very fast. > 19B. Trying several times, I finally was able to get a screen capture of the > fast-disappearing window > The message there was: > "'.' is not recognized as an internal; or external command, operable > program or batch file." > > > So it still didn't work. > > Could you please give me a few suggestions with things I could try? > > Many thanks in advance. > > Kind regards, > Bastiaan > > Van: Siegfried Goeschl [[email protected]] > Verzonden: zondag 30 november 2014 11:36 > Aan: Geelhoed, B (thorax) > CC: Siegfried Goeschl > Onderwerp: Re: portable JSPwiki -PROBLEM PROBABLY SOLVED > > Hi Bastian, > > first of all thanks for using one of my pet projects and those email are > highly welcome - I know of a problem AND a solution :-) > > Some thing along the lines > > * do you have a JAVA_HOME or JRE_HOME defined pointing to your JDK > Installation? > * if possible avoid JDK installation directories with spaces in it - just > staying clear of potential issues > > If you like you can give jspwiki-portable-2.10.1-SNAPSHOT-woas.tar.gz > <http://people.apache.org/~sgoeschl/download/wikionastick/jspwiki-portable-2.10.1-SNAPSHOT-woas.tar.gz> > in http://people.apache.org/~sgoeschl/download/wikionastick/ > <http://people.apache.org/~sgoeschl/download/wikionastick/> a try - > technically it is the JSPWiki 2.10.1 release and I switched to Tomcat as well > but it needs some community testing > > Cheers, > > Siegfried Goeschl > > >> On 29 Nov 2014, at 15:05, Geelhoed, B (thorax) <[email protected] >> <mailto:[email protected]>> wrote: >> >> Dear Siegfried Goeschl, >> Hello again. >> Using google, I read somewhere that >> >> -Dorg.apache.jasper.compiler.disablejsr199=true >> >> could solve the problem. >> >> Therefore, >> I replaced >> >> # -Dorg.apache.jasper.compiler.disablejsr199=true >> >> by >> >> -Dorg.apache.jasper.compiler.disablejsr199=true >> >> in the start configuration file. >> >> It now seems to work. >> >> So apologies for my previous unneccesary email. >> >> Regards, >> Bastiaan Geelhoed >> Van: Geelhoed, B (thorax) >> Verzonden: zaterdag 29 november 2014 11:54 >> Aan: [email protected] <mailto:[email protected]> >> Onderwerp: portable JSPwiki - Installation question >> >> >> >> Dear Siegfried Goeschl, >> >> I would like to start using portable JSPwiki, but there was an error message. >> >> Here is what I did: >> >> I downloaded the file woas-2.9.1.1-bin.tar.gz from >> http://people.apache.org/~sgoeschl/download/wikionastick/ >> <http://people.apache.org/~sgoeschl/download/wikionastick/> . >> >> I unpacked all the files on a memory stick. >> Then, I double-clicked on the file woas (Internet shortcut .url). >> Then, the browser (Google) opens and a hyperlink "Your Wiki-On-A-Stick" is >> visble. >> I clicked on that hyperlink (hoping to start the wiki), but there is the >> following error message: >> >> >> HTTP ERROR 500 >> >> Problem accessing /wiki/. Reason: >> >> Server Error >> Caused by: >> >> org.apache.jasper.JasperException: java.err.nojdk >> at >> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:89) >> at >> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:375) >> at >> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116) >> at >> org.apache.jasper.compiler.Jsr199JavaCompiler.compile(Jsr199JavaCompiler.java:198) >> at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:364) >> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:433) >> at >> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608) >> at >> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) >> at >> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:476) >> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652) >> at >> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445) >> at >> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) >> at >> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:574) >> at >> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) >> at >> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044) >> at >> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372) >> at >> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189) >> at >> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978) >> at >> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) >> at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:293) >> at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:120) >> at >> org.eclipse.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:572) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) >> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652) >> at >> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:445) >> at >> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) >> at >> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:532) >> at >> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) >> at >> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044) >> at >> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372) >> at >> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189) >> at >> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978) >> at >> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) >> at >> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) >> at >> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) >> at >> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) >> at org.eclipse.jetty.server.Server.handle(Server.java:369) >> at >> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486) >> at >> org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:933) >> at >> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:995) >> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) >> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) >> at >> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) >> at >> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667) >> at >> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) >> at >> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) >> at >> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) >> at java.lang.Thread.run(Unknown Source) >> Powered by Jetty:// >> >> >> The problem seems to be that the jdk is not found. >> However, I have installed a jdk. >> I am using windows and it is in the folder: C:\Program Files\Java\jdk1.8.0_25 >> >> Is there anything I can do to solve this problem? >> If yes, what can I do? >> >> Many thanks in advance for your answer. >> >> With kind regards, >> Bastiaan Geelhoed >> >> PS. I listened to your talk about JSPwiki on youtube ( >> http://www.youtube.com/watch?v=_ndfyn0y9B0 >> <http://www.youtube.com/watch?v=_ndfyn0y9B0> ) and found the corresponding >> slides ( >> http://people.apache.org/~sgoeschl/presentations/apachecon-2014/jspwiki.pdf >> <http://people.apache.org/~sgoeschl/presentations/apachecon-2014/jspwiki.pdf> >> ), then I decided to use JSPwiki myself. >> >> >> De inhoud van dit bericht is vertrouwelijk en alleen bestemd voor de >> geadresseerde(n). Anderen dan de geadresseerde(n) mogen geen gebruik maken >> van dit bericht, het niet openbaar maken of op enige wijze verspreiden of >> vermenigvuldigen. Het UMCG kan niet aansprakelijk gesteld worden voor een >> incomplete aankomst of vertraging van dit verzonden bericht. >> >> The contents of this message are confidential and only intended for the eyes >> of the addressee(s). Others than the addressee(s) are not allowed to use >> this message, to make it public or to distribute or multiply this message in >> any way. The UMCG cannot be held responsible for incomplete reception or >> delay of this transferred message. > > De inhoud van dit bericht is vertrouwelijk en alleen bestemd voor de > geadresseerde(n). Anderen dan de geadresseerde(n) mogen geen gebruik maken > van dit bericht, het niet openbaar maken of op enige wijze verspreiden of > vermenigvuldigen. Het UMCG kan niet aansprakelijk gesteld worden voor een > incomplete aankomst of vertraging van dit verzonden bericht. > > The contents of this message are confidential and only intended for the eyes > of the addressee(s). Others than the addressee(s) are not allowed to use this > message, to make it public or to distribute or multiply this message in any > way. The UMCG cannot be held responsible for incomplete reception or delay of > this transferred message.
