You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by "jinlong.liu@dewmobile.net" <ji...@dewmobile.net> on 2014/05/22 14:26:00 UTC

help: exception occers when install the jsp wiki

Hello ,I have a problem when installing the jspwiki ,I  use windows 8.1 , jdk7 and tomcat7,and copy the ranamed wiki.war to the webapp directory of tomcat ,start tomcat  and point to http://localhost:8080/wiki/Install.jsp ,then something happened ,org.apache.jasper.JasperException: An exception occurred processing JSP page /Install.jsp at line 46
43: WikiSession wikiSession = wikiContext.getWikiSession();
44: 
45: // Parse the existing properties
46: installer.parseProperties();
47: boolean validated = false;
48: String password = null;
49: ResourceBundle rb = Preferences.getBundle( wikiContext, "CoreResources" );
Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
	org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
root causejava.lang.NullPointerException
	org.apache.wiki.util.CommentedProperties.writeProperty(CommentedProperties.java:213)
	org.apache.wiki.util.CommentedProperties.put(CommentedProperties.java:116)
	org.apache.wiki.ui.Installer.parseProperty(Installer.java:320)
	org.apache.wiki.ui.Installer.parseProperties(Installer.java:223)
	org.apache.jsp.Install_jsp._jspService(Install_jsp.java:122)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
	org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)

just like that ,I read the source for short , it seems like that it needs a file called jspwiki.properties which i think will be created by jspwiki itself, but anyway ,I copy one from the source ,and put it in the place ,and restart the tomcat ,no accident , exception occers again ,though it is a different one ,but i think the two may be caused by the same problem.Here follows the exception:exceptionorg.apache.jasper.JasperException: java.lang.NullPointerException
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
	org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
root causejava.lang.NullPointerException
	org.apache.wiki.util.CommentedProperties.writeProperty(CommentedProperties.java:213)
	org.apache.wiki.util.CommentedProperties.put(CommentedProperties.java:116)
	org.apache.wiki.ui.Installer.parseProperty(Installer.java:320)
	org.apache.wiki.ui.Installer.parseProperties(Installer.java:223)
	org.apache.jsp.Install_jsp._jspService(Install_jsp.java:122)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
	org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)

I don't know how to solve it  . I just do as the document say ,and I don't think the document make such a terrible bug ,maybe there are some common senses thich are not known by me ,please give me a hand ,thanks a lot.





jinlong.liu@dewmobile.net

Re: Re: wrong happens when change war name

Posted by "jinlong.liu" <ji...@dewmobile.net>.
I have alreday done that in jspwiki-custom.properties before I sent  the first  mail ,the files is in tomcat\temp   directory


From: Harry Metske
Date: 2014-06-06 16:47
To: user; jinlong.liu
Subject: Re: wrong happens when change war name
If you change the war name, you should also change the jspwiki.baseURL property. For example to jspwiki.baseURL=http://localhost:8080/wiki


regards,
Harry





On 6 June 2014 10:44, jinlong.liu <ji...@dewmobile.net> wrote:

maybe  the picture is broken so i paste the wrong info below:

url : http://localhost:8080/wiki/
wrong info :
GET http://localhost:8080/JSPWiki/templates/default/jspwiki.css 404 (Not Found) localhost/:41GET http://localhost:8080/JSPWiki/templates/default/jspwiki_print.css 404 (Not Found) localhost/:44GET http://localhost:8080/JSPWiki/scripts/mootools.js 404 (Not Found) localhost/:58GET http://localhost:8080/JSPWiki/scripts/jspwiki-common.js 404 (Not Found)


maybe just I did not find the conf file



jinlong.liu

From: jinlong.liu
Date: 2014-06-06 16:32
To: user
Subject: wrong happens when change war name

I change the name JSPWiki.war to wiki.war , and all things goes wrong  just as below.I did not find where to change the conf,I have run the install.jsp





I think it doesn't need me to explain what the wrong is , 

Re: wrong happens when change war name

Posted by Harry Metske <ha...@gmail.com>.
If you change the war name, you should also change the jspwiki.baseURL
property. For example to jspwiki.baseURL=http://localhost:8080/wiki

regards,
Harry



On 6 June 2014 10:44, jinlong.liu <ji...@dewmobile.net> wrote:

> maybe  the picture is broken so i paste the wrong info below:
>
> url : http://localhost:8080/wiki/
> wrong info :
> GET http://localhost:8080/JSPWiki/templates/default/jspwiki.css 404 (Not
> Found) localhost/:41GET
> http://localhost:8080/JSPWiki/templates/default/jspwiki_print.css 404
> (Not Found) localhost/:44GET
> http://localhost:8080/JSPWiki/scripts/mootools.js 404 (Not Found)
> localhost/:58GET http://localhost:8080/JSPWiki/scripts/jspwiki-common.js
> 404 (Not Found)
>
>
> maybe just I did not find the conf file
>
>
>
> jinlong.liu
>
> From: jinlong.liu
> Date: 2014-06-06 16:32
> To: user
> Subject: wrong happens when change war name
> I change the name JSPWiki.war to wiki.war , and all things goes wrong
>  just as below.I did not find where to change the conf,I have run the
> install.jsp
>
>
>
>
> I think it doesn't need me to explain what the wrong is ,
>

Re: wrong happens when change war name

Posted by "jinlong.liu" <ji...@dewmobile.net>.
maybe  the picture is broken so i paste the wrong info below:

url : http://localhost:8080/wiki/ 
wrong info :
GET http://localhost:8080/JSPWiki/templates/default/jspwiki.css 404 (Not Found) localhost/:41GET http://localhost:8080/JSPWiki/templates/default/jspwiki_print.css 404 (Not Found) localhost/:44GET http://localhost:8080/JSPWiki/scripts/mootools.js 404 (Not Found) localhost/:58GET http://localhost:8080/JSPWiki/scripts/jspwiki-common.js 404 (Not Found) 


maybe just I did not find the conf file



jinlong.liu

From: jinlong.liu
Date: 2014-06-06 16:32
To: user
Subject: wrong happens when change war name
I change the name JSPWiki.war to wiki.war , and all things goes wrong  just as below.I did not find where to change the conf,I have run the install.jsp




I think it doesn't need me to explain what the wrong is , 

wrong happens when change war name

Posted by "jinlong.liu" <ji...@dewmobile.net>.
I change the name JSPWiki.war to wiki.war , and all things goes wrong  just as below.I did not find where to change the conf,I have run the install.jsp




I think it doesn't need me to explain what the wrong is , 

Re: help: exception occers when install the jsp wiki

Posted by Juan Pablo Santos Rodríguez <ju...@gmail.com>.
Hi,

although 2.10.1 is also available at search.maven.org, I'll send the
announce mail this afternoon/tonight, we have to give 24h between releasing
and announcing to give enough time to the mirrors' syncing.

Said that, yes, sections on http://jspwiki.apache.org/general/downloads.html
should link to the appropiate sections on NewIn wiki pages (e.g.
https://jspwiki-wiki.apache.org/Wiki.jsp?page=NewIn2.10#section-NewIn2.10-NewInJSPWiki2.10.0ReleasedOn01022014)
and 2.10.0 should state the login / auth container issues, we've had quite
some mails regarding those topics. I'll make the appropiate changes on the
site this afternoon/night


br,
juan pablo




On Thu, May 29, 2014 at 11:21 AM, Harry Metske <ha...@gmail.com>
wrote:

> Dave,
>
> if you click the download link now, you get to both 2.10.0 and 2.10.1.
> The 2.10.1 release will be announced shortly.
>
> Or am I missing something here ?
>
> regards,
> Harry
>
>
>
> On 29 May 2014 02:57, Dave Koelmeyer <da...@davekoelmeyer.co.nz>
> wrote:
>
> >
> > On 23/05/14 16:32, Harry Metske wrote:
> >
> >> 2.10.1 (or 2.10.2) is not yet available. We are working on the release
> of
> >> it. When it is released, we cant tell, hopefully next month, but only
> when
> >> it's ready.
> >>
> >
> > Hi Folks,
> >
> > Would it not make sense to make a note of this issue next to the download
> > link, seeing how many people (myself included) are being caught out by
> > this? Apologies if it's there and I'm missing it.
> >
> > Cheers,
> > Dave
> >
>

Re: help: exception occers when install the jsp wiki

Posted by Harry Metske <ha...@gmail.com>.
Dave,

if you click the download link now, you get to both 2.10.0 and 2.10.1.
The 2.10.1 release will be announced shortly.

Or am I missing something here ?

regards,
Harry



On 29 May 2014 02:57, Dave Koelmeyer <da...@davekoelmeyer.co.nz>
wrote:

>
> On 23/05/14 16:32, Harry Metske wrote:
>
>> 2.10.1 (or 2.10.2) is not yet available. We are working on the release of
>> it. When it is released, we cant tell, hopefully next month, but only when
>> it's ready.
>>
>
> Hi Folks,
>
> Would it not make sense to make a note of this issue next to the download
> link, seeing how many people (myself included) are being caught out by
> this? Apologies if it's there and I'm missing it.
>
> Cheers,
> Dave
>

Re: help: exception occers when install the jsp wiki

Posted by Dave Koelmeyer <da...@davekoelmeyer.co.nz>.
On 23/05/14 16:32, Harry Metske wrote:
> 2.10.1 (or 2.10.2) is not yet available. We are working on the release of
> it. When it is released, we cant tell, hopefully next month, but only when
> it's ready.

Hi Folks,

Would it not make sense to make a note of this issue next to the 
download link, seeing how many people (myself included) are being caught 
out by this? Apologies if it's there and I'm missing it.

Cheers,
Dave

Re: Re: help: exception occers when install the jsp wiki

Posted by Harry Metske <ha...@gmail.com>.
2.10.1 (or 2.10.2) is not yet available. We are working on the release of
it. When it is released, we cant tell, hopefully next month, but only when
it's ready.

Regards ,
Harry
Op 23 mei 2014 01:20 schreef "jinlong.liu@dewmobile.net" <
jinlong.liu@dewmobile.net>:

>
>
>
>
>
>
> I  am sorry ,but Is there a 2.10.1 version ? I have fount everywhere I can
> ,but did not find it .   From
> https://issues.apache.org/jira/browse/JSPWIKI-817   someone said Advanced
> Installation Is ok ,I think I must try that.
>
>
>
>
> jinlong.liu@dewmobile.net
>  From: Harry MetskeDate: 2014-05-23 01:30To: userSubject: Re: help:
> exception occers when install the jsp wikiThis NPE should not popup anymore
> on the current trunk version (we don't
> use the CommentedProperties anymore).
> See https://issues.apache.org/jira/browse/JSPWIKI-817
>
> another reason to release 2.10.1 :-)
>
> kind regards,
> Harry
>
>
>
> On 22 May 2014 18:21, Eric Ladner <er...@gmail.com> wrote:
>
> > Edit the jspwiki.properties file by hand and make sure things are sane
> > (path to wiki folder, temporary folder).  Most things are OK as is, but
> the
> > paths on your system will have to be in sync with what's in the
> properties
> > file.
> >
> >
> > On Thu, May 22, 2014 at 7:26 AM, jinlong.liu@dewmobile.net <
> > jinlong.liu@dewmobile.net> wrote:
> >
> > >
> > > Hello ,I have a problem when installing the jspwiki ,I  use windows
> 8.1 ,
> > > jdk7 and tomcat7,and copy the ranamed wiki.war to the webapp directory
> of
> > > tomcat ,start tomcat  and point to
> > http://localhost:8080/wiki/Install.jsp ,then
> > > something happened ,org.apache.jasper.JasperException: An exception
> > > occurred processing JSP page /Install.jsp at line 46
> > > 43: WikiSession wikiSession = wikiContext.getWikiSession();
> > > 44:
> > > 45: // Parse the existing properties
> > > 46: installer.parseProperties();
> > > 47: boolean validated = false;
> > > 48: String password = null;
> > > 49: ResourceBundle rb = Preferences.getBundle( wikiContext,
> > > "CoreResources" );
> > > Stacktrace:
> > >
> > >
> >
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
> > >
> > >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
> > >
> > >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> > >
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> > >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > >
> > > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> > >
> > >
> org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> > >
> org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> > > root causejava.lang.NullPointerException
> > >
> > >
> >
> org.apache.wiki.util.CommentedProperties.writeProperty(CommentedProperties.java:213)
> > >
> > >
> >
> org.apache.wiki.util.CommentedProperties.put(CommentedProperties.java:116)
> > >         org.apache.wiki.ui.Installer.parseProperty(Installer.java:320)
> > >
> org.apache.wiki.ui.Installer.parseProperties(Installer.java:223)
> > >         org.apache.jsp.Install_jsp._jspService(Install_jsp.java:122)
> > >
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> > >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > >
> > >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
> > >
> > >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> > >
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> > >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > >
> > > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> > >
> > >
> org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> > >
> org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> > >
> > > just like that ,I read the source for short , it seems like that it
> needs
> > > a file called jspwiki.properties which i think will be created by
> jspwiki
> > > itself, but anyway ,I copy one from the source ,and put it in the place
> > > ,and restart the tomcat ,no accident , exception occers again ,though
> it
> > is
> > > a different one ,but i think the two may be caused by the same
> > problem.Here
> > > follows the exception:exceptionorg.apache.jasper.JasperException:
> > > java.lang.NullPointerException
> > >
> > >
> >
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
> > >
> > >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
> > >
> > >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> > >
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> > >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > >
> > > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> > >
> > >
> org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> > >
> org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> > > root causejava.lang.NullPointerException
> > >
> > >
> >
> org.apache.wiki.util.CommentedProperties.writeProperty(CommentedProperties.java:213)
> > >
> > >
> >
> org.apache.wiki.util.CommentedProperties.put(CommentedProperties.java:116)
> > >         org.apache.wiki.ui.Installer.parseProperty(Installer.java:320)
> > >
> org.apache.wiki.ui.Installer.parseProperties(Installer.java:223)
> > >         org.apache.jsp.Install_jsp._jspService(Install_jsp.java:122)
> > >
> > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> > >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > >
> > >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
> > >
> > >
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> > >
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> > >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> > >
> > > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> > >
> > >
> org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> > >
> org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> > >
> > > I don't know how to solve it  . I just do as the document say ,and I
> > don't
> > > think the document make such a terrible bug ,maybe there are some
> common
> > > senses thich are not known by me ,please give me a hand ,thanks a lot.
> > >
> > >
> > >
> > >
> > >
> > > jinlong.liu@dewmobile.net
> > >
> >
> >
> >
> > --
> > Eric Ladner
> >
>
>

Re: Re: help: exception occers when install the jsp wiki

Posted by "jinlong.liu@dewmobile.net" <ji...@dewmobile.net>.





I  am sorry ,but Is there a 2.10.1 version ? I have fount everywhere I can ,but did not find it .   From https://issues.apache.org/jira/browse/JSPWIKI-817   someone said Advanced Installation Is ok ,I think I must try that.




jinlong.liu@dewmobile.net
 From: Harry MetskeDate: 2014-05-23 01:30To: userSubject: Re: help: exception occers when install the jsp wikiThis NPE should not popup anymore on the current trunk version (we don't
use the CommentedProperties anymore).
See https://issues.apache.org/jira/browse/JSPWIKI-817
 
another reason to release 2.10.1 :-)
 
kind regards,
Harry
 
 
 
On 22 May 2014 18:21, Eric Ladner <er...@gmail.com> wrote:
 
> Edit the jspwiki.properties file by hand and make sure things are sane
> (path to wiki folder, temporary folder).  Most things are OK as is, but the
> paths on your system will have to be in sync with what's in the properties
> file.
>
>
> On Thu, May 22, 2014 at 7:26 AM, jinlong.liu@dewmobile.net <
> jinlong.liu@dewmobile.net> wrote:
>
> >
> > Hello ,I have a problem when installing the jspwiki ,I  use windows 8.1 ,
> > jdk7 and tomcat7,and copy the ranamed wiki.war to the webapp directory of
> > tomcat ,start tomcat  and point to
> http://localhost:8080/wiki/Install.jsp ,then
> > something happened ,org.apache.jasper.JasperException: An exception
> > occurred processing JSP page /Install.jsp at line 46
> > 43: WikiSession wikiSession = wikiContext.getWikiSession();
> > 44:
> > 45: // Parse the existing properties
> > 46: installer.parseProperties();
> > 47: boolean validated = false;
> > 48: String password = null;
> > 49: ResourceBundle rb = Preferences.getBundle( wikiContext,
> > "CoreResources" );
> > Stacktrace:
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> >         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> >
> > org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> >         org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> > root causejava.lang.NullPointerException
> >
> >
> org.apache.wiki.util.CommentedProperties.writeProperty(CommentedProperties.java:213)
> >
> >
> org.apache.wiki.util.CommentedProperties.put(CommentedProperties.java:116)
> >         org.apache.wiki.ui.Installer.parseProperty(Installer.java:320)
> >         org.apache.wiki.ui.Installer.parseProperties(Installer.java:223)
> >         org.apache.jsp.Install_jsp._jspService(Install_jsp.java:122)
> >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> >         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> >
> > org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> >         org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> >
> > just like that ,I read the source for short , it seems like that it needs
> > a file called jspwiki.properties which i think will be created by jspwiki
> > itself, but anyway ,I copy one from the source ,and put it in the place
> > ,and restart the tomcat ,no accident , exception occers again ,though it
> is
> > a different one ,but i think the two may be caused by the same
> problem.Here
> > follows the exception:exceptionorg.apache.jasper.JasperException:
> > java.lang.NullPointerException
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> >         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> >
> > org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> >         org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> > root causejava.lang.NullPointerException
> >
> >
> org.apache.wiki.util.CommentedProperties.writeProperty(CommentedProperties.java:213)
> >
> >
> org.apache.wiki.util.CommentedProperties.put(CommentedProperties.java:116)
> >         org.apache.wiki.ui.Installer.parseProperty(Installer.java:320)
> >         org.apache.wiki.ui.Installer.parseProperties(Installer.java:223)
> >         org.apache.jsp.Install_jsp._jspService(Install_jsp.java:122)
> >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> >         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> >
> > org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> >         org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> >
> > I don't know how to solve it  . I just do as the document say ,and I
> don't
> > think the document make such a terrible bug ,maybe there are some common
> > senses thich are not known by me ,please give me a hand ,thanks a lot.
> >
> >
> >
> >
> >
> > jinlong.liu@dewmobile.net
> >
>
>
>
> --
> Eric Ladner
>


Re: help: exception occers when install the jsp wiki

Posted by Harry Metske <ha...@gmail.com>.
This NPE should not popup anymore on the current trunk version (we don't
use the CommentedProperties anymore).
See https://issues.apache.org/jira/browse/JSPWIKI-817

another reason to release 2.10.1 :-)

kind regards,
Harry



On 22 May 2014 18:21, Eric Ladner <er...@gmail.com> wrote:

> Edit the jspwiki.properties file by hand and make sure things are sane
> (path to wiki folder, temporary folder).  Most things are OK as is, but the
> paths on your system will have to be in sync with what's in the properties
> file.
>
>
> On Thu, May 22, 2014 at 7:26 AM, jinlong.liu@dewmobile.net <
> jinlong.liu@dewmobile.net> wrote:
>
> >
> > Hello ,I have a problem when installing the jspwiki ,I  use windows 8.1 ,
> > jdk7 and tomcat7,and copy the ranamed wiki.war to the webapp directory of
> > tomcat ,start tomcat  and point to
> http://localhost:8080/wiki/Install.jsp ,then
> > something happened ,org.apache.jasper.JasperException: An exception
> > occurred processing JSP page /Install.jsp at line 46
> > 43: WikiSession wikiSession = wikiContext.getWikiSession();
> > 44:
> > 45: // Parse the existing properties
> > 46: installer.parseProperties();
> > 47: boolean validated = false;
> > 48: String password = null;
> > 49: ResourceBundle rb = Preferences.getBundle( wikiContext,
> > "CoreResources" );
> > Stacktrace:
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> >         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> >
> > org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> >         org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> > root causejava.lang.NullPointerException
> >
> >
> org.apache.wiki.util.CommentedProperties.writeProperty(CommentedProperties.java:213)
> >
> >
> org.apache.wiki.util.CommentedProperties.put(CommentedProperties.java:116)
> >         org.apache.wiki.ui.Installer.parseProperty(Installer.java:320)
> >         org.apache.wiki.ui.Installer.parseProperties(Installer.java:223)
> >         org.apache.jsp.Install_jsp._jspService(Install_jsp.java:122)
> >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> >         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> >
> > org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> >         org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> >
> > just like that ,I read the source for short , it seems like that it needs
> > a file called jspwiki.properties which i think will be created by jspwiki
> > itself, but anyway ,I copy one from the source ,and put it in the place
> > ,and restart the tomcat ,no accident , exception occers again ,though it
> is
> > a different one ,but i think the two may be caused by the same
> problem.Here
> > follows the exception:exceptionorg.apache.jasper.JasperException:
> > java.lang.NullPointerException
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> >         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> >
> > org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> >         org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> > root causejava.lang.NullPointerException
> >
> >
> org.apache.wiki.util.CommentedProperties.writeProperty(CommentedProperties.java:213)
> >
> >
> org.apache.wiki.util.CommentedProperties.put(CommentedProperties.java:116)
> >         org.apache.wiki.ui.Installer.parseProperty(Installer.java:320)
> >         org.apache.wiki.ui.Installer.parseProperties(Installer.java:223)
> >         org.apache.jsp.Install_jsp._jspService(Install_jsp.java:122)
> >
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> >
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
> >
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
> >         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
> >         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> >
> > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> >
> > org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
> >         org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> >
> > I don't know how to solve it  . I just do as the document say ,and I
> don't
> > think the document make such a terrible bug ,maybe there are some common
> > senses thich are not known by me ,please give me a hand ,thanks a lot.
> >
> >
> >
> >
> >
> > jinlong.liu@dewmobile.net
> >
>
>
>
> --
> Eric Ladner
>

Re: help: exception occers when install the jsp wiki

Posted by Eric Ladner <er...@gmail.com>.
Edit the jspwiki.properties file by hand and make sure things are sane
(path to wiki folder, temporary folder).  Most things are OK as is, but the
paths on your system will have to be in sync with what's in the properties
file.


On Thu, May 22, 2014 at 7:26 AM, jinlong.liu@dewmobile.net <
jinlong.liu@dewmobile.net> wrote:

>
> Hello ,I have a problem when installing the jspwiki ,I  use windows 8.1 ,
> jdk7 and tomcat7,and copy the ranamed wiki.war to the webapp directory of
> tomcat ,start tomcat  and point to http://localhost:8080/wiki/Install.jsp ,then
> something happened ,org.apache.jasper.JasperException: An exception
> occurred processing JSP page /Install.jsp at line 46
> 43: WikiSession wikiSession = wikiContext.getWikiSession();
> 44:
> 45: // Parse the existing properties
> 46: installer.parseProperties();
> 47: boolean validated = false;
> 48: String password = null;
> 49: ResourceBundle rb = Preferences.getBundle( wikiContext,
> "CoreResources" );
> Stacktrace:
>
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>
> org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
>         org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> root causejava.lang.NullPointerException
>
> org.apache.wiki.util.CommentedProperties.writeProperty(CommentedProperties.java:213)
>
> org.apache.wiki.util.CommentedProperties.put(CommentedProperties.java:116)
>         org.apache.wiki.ui.Installer.parseProperty(Installer.java:320)
>         org.apache.wiki.ui.Installer.parseProperties(Installer.java:223)
>         org.apache.jsp.Install_jsp._jspService(Install_jsp.java:122)
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>
> org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
>         org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
>
> just like that ,I read the source for short , it seems like that it needs
> a file called jspwiki.properties which i think will be created by jspwiki
> itself, but anyway ,I copy one from the source ,and put it in the place
> ,and restart the tomcat ,no accident , exception occers again ,though it is
> a different one ,but i think the two may be caused by the same problem.Here
> follows the exception:exceptionorg.apache.jasper.JasperException:
> java.lang.NullPointerException
>
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>
> org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
>         org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
> root causejava.lang.NullPointerException
>
> org.apache.wiki.util.CommentedProperties.writeProperty(CommentedProperties.java:213)
>
> org.apache.wiki.util.CommentedProperties.put(CommentedProperties.java:116)
>         org.apache.wiki.ui.Installer.parseProperty(Installer.java:320)
>         org.apache.wiki.ui.Installer.parseProperties(Installer.java:223)
>         org.apache.jsp.Install_jsp._jspService(Install_jsp.java:122)
>         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
>         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
>         javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>
> org.apache.wiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:177)
>         org.apache.wiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:121)
>
> I don't know how to solve it  . I just do as the document say ,and I don't
> think the document make such a terrible bug ,maybe there are some common
> senses thich are not known by me ,please give me a hand ,thanks a lot.
>
>
>
>
>
> jinlong.liu@dewmobile.net
>



-- 
Eric Ladner