List Info

Thread: weird page provider problem




weird page provider problem
user name
2006-10-27 19:50:26
Ah-ha!  Mystery solved. I had a trailing space in my 
'jspwiki.pageProvider' property. PageManager just uses
getProperty() 
while CachingProvider uses WikiEngine.getRequiredProperty()
which uses 
TextUtils which calls trim() on the string.
Maybe I'll make PageManager use
WikiEngine.getRequiredProperty() too. 
Janne, thoughts?

-n

On Oct 27, 2006, at 2:26 PM, Neil Miller wrote:

> This is on Tomcat 5.0.28 running on Mac OS X.
>
> On Oct 27, 2006, at 2:10 PM, Neil Miller wrote:
>
>> Hi all,
>>   I'm having a strange issue with a PageProvider I
wrote. The class 
>> is in a separate jar from JSPWiki.jar and in the
com.prospectiv.wiki 
>> package. I've put the full classname in to the
properties file. Now 
>> here's the weird part, with usePageCache set to
"true" all works 
>> fine, the PageManager finds the CachingProvider and
the the 
>> CachingProvider finds my provider, however when I
set usePageCache to 
>> "false" it breaks. PageManager calls
ClassUtils, and it throws throws 
>> an exception saying it can't find my class.
>>
>> 27 Oct 2006 12:44:38,559 ERROR
com.ecyrd.jspwiki.PageManager Unable 
>> to locate provider class
com.prospectiv.wiki.MCPageProvider
>> java.lang.ClassNotFoundException: Class 
>> 'com.prospectiv.wiki.MCPageProvider ' not found in
search path!
>>         at 
>>
com.ecyrd.jspwiki.util.ClassUtil.findClass(ClassUtil.java:73
)
>>         at 
>>
com.ecyrd.jspwiki.util.ClassUtil.findClass(ClassUtil.java:93
)
>>         at
com.ecyrd.jspwiki.PageManager.<init>(PageManager.java:
101)
>>         at 
>>
com.ecyrd.jspwiki.WikiEngine.initialize(WikiEngine.java:558)
>>         at
com.ecyrd.jspwiki.WikiEngine.<init>(WikiEngine.java:43
5)
>>         at 
>>
com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:334
)
>>         at 
>>
com.ecyrd.jspwiki.WikiEngine.getInstance(WikiEngine.java:286
)
>>
>> Any ideas?
>>
>> -n
>>
>> _______________________________________________
>> Jspwiki-users mailing list
>> Jspwiki-usersecyrd.com
>> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
>>
>
> _______________________________________________
> Jspwiki-users mailing list
> Jspwiki-usersecyrd.com
> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
>

_______________________________________________
Jspwiki-users mailing list
Jspwiki-usersecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )