Problems running Zekr

12 views
Skip to first unread message

RafiqC

unread,
Dec 28, 2009, 12:40:43 PM12/28/09
to zekr
Salaam all

I installed Ubuntu 9.10 a couple of days ago and one of the first
things I loaded was Zekr. Unfortunately it does not want to run.
Terminal just shows me this ...

Launching Zekr...

(<unknown>:8022): GLib-WARNING **: g_set_prgname() called multiple
times
java.lang.NullPointerException
at org.apache.velocity.context.InternalContextAdapterImpl.put
(InternalContextAdapterImpl.java:269)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render
(ASTSetDirective.java:213)
at org.apache.velocity.runtime.parser.node.SimpleNode.render
(SimpleNode.java:336)
at org.apache.velocity.Template.merge(Template.java:328)
at org.apache.velocity.Template.merge(Template.java:235)
at net.sf.zekr.engine.theme.TemplateEngine.getUpdated
(TemplateEngine.java:115)
at net.sf.zekr.common.config.VelocityInputStream.<init>
(VelocityInputStream.java:29)
at net.sf.zekr.common.config.ResourceManager.<init>
(ResourceManager.java:30)
at net.sf.zekr.common.config.ResourceManager.getInstance
(ResourceManager.java:40)
at net.sf.zekr.ui.splash.AbstractSplachScreen.<init>
(AbstractSplachScreen.java:16)
at net.sf.zekr.ui.splash.AdvancedSplashScreen.<init>
(AdvancedSplashScreen.java:31)
at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:41)
at net.sf.zekr.ZekrMain.main(ZekrMain.java:79)

Any ideas?

ps. I have JRE 6 and Java browser plug-in installed.

Shukran,
Salaam,

chuina kagji

unread,
Dec 28, 2009, 1:36:14 PM12/28/09
to zekr
Salaam,

Install from Zekr repository according to these instructions:
http://zekr.org/wiki/Installation#Zekr_Repository

milad gholami

unread,
Dec 28, 2009, 1:59:08 PM12/28/09
to ze...@googlegroups.com
Salam,
I have this problem too.
I installed it from this repository.but jw player didn't installed.
here is the error when I run zekr:


(<unknown>:17252): GLib-WARNING **: g_set_prgname() called multiple times
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@1cfb549 for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by
org.apache.commons.logging.LogConfigurationException: No suitable Log
constructor [Ljava.lang.Class;@1cfb549 for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category))
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:121)
at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:222)
at net.sf.zekr.common.config.ResourceManager.<init>(ResourceManager.java:25)
at net.sf.zekr.common.config.ResourceManager.getInstance(ResourceManager.java:34)


at net.sf.zekr.ui.splash.AbstractSplachScreen.<init>(AbstractSplachScreen.java:16)

at net.sf.zekr.ui.splash.AdvancedSplashScreen.<init>(AdvancedSplashScreen.java:45)
at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:45)
at net.sf.zekr.ZekrMain.main(ZekrMain.java:88)
Caused by: org.apache.commons.logging.LogConfigurationException: No
suitable Log constructor [Ljava.lang.Class;@1cfb549 for
org.apache.commons.logging.impl.Log4JLogger (Caused by
java.lang.NoClassDefFoundError: org/apache/log4j/Category)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
... 11 more
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)
at java.lang.Class.getConstructor0(Class.java:2716)
at java.lang.Class.getConstructor(Class.java:1674)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
... 12 more
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
... 17 more

Thanks for helping

> --
>
> You received this message because you are subscribed to the Google Groups
> "zekr" group.
> To post to this group, send email to ze...@googlegroups.com.
> To unsubscribe from this group, send email to
> zekr+uns...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/zekr?hl=en.
>
>
>

tamjidfb

unread,
Dec 28, 2009, 7:31:33 PM12/28/09
to zekr

i face same trouble to install zekr.

but only able to come over when i freshly install Ubuntu 9.10.
however i'm not recommending to re-install your Ubuntu 9.10.
if you in case reinstall Ubuntu, try to install "zekr" from the above
instruction earlier/first. rather than installing other program.

i just saying my experience.

"....but jw player didn't installed.."

may be your jw player somehow installed by firefox before you tried
to install zekr.

that's all i can tell now.

it's on the hand of the "zekr project" developers.

thanks.

Mohsen Saboorian

unread,
Dec 29, 2009, 2:05:06 AM12/29/09
to ze...@googlegroups.com
Salaam,

Milad, your problem is too strange. Can you tell me what you did to install Zekr? What is result of jave -version in your machine, and which Ubuntu version you use?

It doesn't need re-installing you Ubuntu. Just remove Zekr package (purge it) and install it again:

It's possible that jw player website is not accessible for you (for example filtered or something), but it doesn't cause those ClassNotFoundExceptions.

Mohsen

RafiqC

unread,
Dec 29, 2009, 12:18:05 PM12/29/09
to zekr
Shukran all

Working perfectly now :)

Salaam.

Aditia A. Pratama

unread,
Dec 29, 2009, 7:27:58 PM12/29/09
to ze...@googlegroups.com
AlhamduliLLAH...:)

waalaykumsalam

--

You received this message because you are subscribed to the Google Groups "zekr" group.
To post to this group, send email to ze...@googlegroups.com.
To unsubscribe from this group, send email to zekr+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/zekr?hl=en.





--
Then which favors of GOD will you deny
As mercy and grace control universe
As everything was made in pairs for balance
As lights always given after darkness
As sins are revealed for us to be avoided
--------------------------------------------------------------------------
Blog :
http://balikpapan.linux.or.id

YM :
u.alf...@yahoo.com

milad gholami

unread,
Jan 3, 2010, 1:06:16 AM1/3/10
to ze...@googlegroups.com
Salam
Sorry for late answer.

$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-3ubuntu1)
OpenJDK Client VM (build 14.0-b16, mixed mode, sharing)

I am using ubuntu 9.10.I installed it from the repository you said.and the version of my zekr is 0.7.1-3.
Again I'm sorry for my late answer.
Thanks.

milad gholami

unread,
Jan 3, 2010, 1:20:48 AM1/3/10
to ze...@googlegroups.com
Salam
When I use  sudo apt-get install zekr ttf-me-quran ttf-sil-scheherazade
it gives this errors:


You are free to download JW FLV player and use it for your own use,
but you may not redistribute it in modified form, including changes
to the file name or packaging format.                             

--2010-01-03 09:47:14--  http://developer.longtailvideo.com/trac/export/133/tags/mediaplayer-3.12/mediaplayer.swf                                            
Resolving developer.longtailvideo.com... failed: Connection timed out.        
wget: unable to resolve host address `developer.longtailvideo.com'            
Bad checksum !                                                                
JW FLV player needs to be installed.                                          
org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@a0dcd9 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@a0dcd9 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category))                                   
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)                                                               
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)                                                               
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)                                                               
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)  
        at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:121)                                             
        at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:222)                                                 
        at net.sf.zekr.common.config.ResourceManager.<init>(ResourceManager.java:25)                                                                         
        at net.sf.zekr.common.config.ResourceManager.getInstance(ResourceManager.java:34)                                                                    
        at net.sf.zekr.common.config.ApplicationPath.<clinit>(ApplicationPath.java:20)                                                                       
        at net.sf.zekr.common.config.ApplicationConfig.loadConfig(ApplicationConfig.java:232)                                                                
        at net.sf.zekr.common.config.ApplicationConfig.<init>(ApplicationConfig.java:119)                                                                    
        at net.sf.zekr.common.config.ApplicationConfig.getInstance(ApplicationConfig.java:226)                                                               
        at net.sf.zekr.common.commandline.IndexCommandHandler.execute(IndexCommandHandler.java:41)                                                           
        at net.sf.zekr.common.commandline.CommandRunUtils.performAll(CommandRunUtils.java:35)                                                                
        at net.sf.zekr.ZekrMain.main(ZekrMain.java:87)                        
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@a0dcd9 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413)                                                         
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)                                                               
        ... 14 more                                                           
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category          
        at java.lang.Class.getDeclaredConstructors0(Native Method)            
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)    
        at java.lang.Class.getConstructor0(Class.java:2716)                   
        at java.lang.Class.getConstructor(Class.java:1674)                    
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)                                                         
        ... 15 more                                                           
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category        
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)             
        at java.security.AccessController.doPrivileged(Native Method)         
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)         
        at java.lang.ClassLoader.loadClass(ClassLoader.java:319)              
        at java.lang.ClassLoader.loadClass(ClassLoader.java:264)              
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)      
        ... 20 more                                                           
Exception in thread "main" java.lang.ExceptionInInitializerError              
        at net.sf.zekr.common.config.ApplicationConfig.loadConfig(ApplicationConfig.java:232)                                                                
        at net.sf.zekr.common.config.ApplicationConfig.<init>(ApplicationConfig.java:119)                                                                    
        at net.sf.zekr.common.config.ApplicationConfig.getInstance(ApplicationConfig.java:226)                                                               
        at net.sf.zekr.common.commandline.IndexCommandHandler.execute(IndexCommandHandler.java:41)                                                           
        at net.sf.zekr.common.commandline.CommandRunUtils.performAll(CommandRunUtils.java:35)                                                                
        at net.sf.zekr.ZekrMain.main(ZekrMain.java:87)                        
Caused by: java.lang.NullPointerException                                     
        at net.sf.zekr.common.config.ResourceManager.getString(ResourceManager.java:50)                                                                      
        at net.sf.zekr.common.config.ResourceManager.getString(ResourceManager.java:39)                                                                      
        at net.sf.zekr.common.config.ApplicationPath.<clinit>(ApplicationPath.java:23)                                                                       
        ... 6 more                                                            
org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1d9dc39 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1d9dc39 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category))                                 
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)                                                               
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)                                                               
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)                                                               
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)  
        at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:121)                                             
        at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:222)                                                 
        at net.sf.zekr.common.config.ResourceManager.<init>(ResourceManager.java:25)                                                                         
        at net.sf.zekr.common.config.ResourceManager.getInstance(ResourceManager.java:34)                                                                    
        at net.sf.zekr.common.config.ApplicationPath.<clinit>(ApplicationPath.java:20)                                                                       
        at net.sf.zekr.common.config.ApplicationConfig.loadConfig(ApplicationConfig.java:232)                                                                
        at net.sf.zekr.common.config.ApplicationConfig.<init>(ApplicationConfig.java:119)                                                                    
        at net.sf.zekr.common.config.ApplicationConfig.getInstance(ApplicationConfig.java:226)                                                               
        at net.sf.zekr.common.commandline.IndexCommandHandler.execute(IndexCommandHandler.java:41)                                                           
        at net.sf.zekr.common.commandline.CommandRunUtils.performAll(CommandRunUtils.java:35)                                                                
        at net.sf.zekr.ZekrMain.main(ZekrMain.java:87)                        
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@1d9dc39 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)

        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413)                                                         
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)                                                               
        ... 14 more                                                           
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category          
        at java.lang.Class.getDeclaredConstructors0(Native Method)            
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)    
        at java.lang.Class.getConstructor0(Class.java:2716)                   
        at java.lang.Class.getConstructor(Class.java:1674)                    
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
        ... 15 more

Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
        ... 20 more
Exception in thread "main" java.lang.ExceptionInInitializerError
        at net.sf.zekr.common.config.ApplicationConfig.loadConfig(ApplicationConfig.java:232)
        at net.sf.zekr.common.config.ApplicationConfig.<init>(ApplicationConfig.java:119)
        at net.sf.zekr.common.config.ApplicationConfig.getInstance(ApplicationConfig.java:226)
        at net.sf.zekr.common.commandline.IndexCommandHandler.execute(IndexCommandHandler.java:41)
        at net.sf.zekr.common.commandline.CommandRunUtils.performAll(CommandRunUtils.java:35)
        at net.sf.zekr.ZekrMain.main(ZekrMain.java:87)
Caused by: java.lang.NullPointerException
        at net.sf.zekr.common.config.ResourceManager.getString(ResourceManager.java:50)
        at net.sf.zekr.common.config.ResourceManager.getString(ResourceManager.java:39)
        at net.sf.zekr.common.config.ApplicationPath.<clinit>(ApplicationPath.java:23)
        ... 6 more

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for menu ...

Mohsen Saboorian

unread,
Jan 3, 2010, 1:59:33 PM1/3/10
to ze...@googlegroups.com
Salaam,

It fails to download jw flv player (there is some issue with your internet connection), but the other exceptions are thrown because of something missing in classpath (probably log4j).

I really cannot help more on this issue. Please instead of installing from repositories simply download and use latest Zekr .tar.gz from our download page. Just edit zekr.sh and point MOZILLA_FIVE_HOME to your firefox installation folder (e.g. /usr/share/firefox).

Mohsen

milad gholami

unread,
Jan 3, 2010, 4:58:43 PM1/3/10
to ze...@googlegroups.com
Salam
I used the tar.gz after setting the MOZILLA_FIVE_HOME.It has the same problem:



(<unknown>:11100): GLib-WARNING **: g_set_prgname() called multiple times
org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@f9f9d8 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category) (Caused by org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@f9f9d8 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category))                                   
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)                                                               
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)                                                               
        at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)                                                               
        at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)  
        at org.apache.commons.configuration.AbstractFileConfiguration.<init>(AbstractFileConfiguration.java:119)                                             
        at org.apache.commons.configuration.PropertiesConfiguration.<init>(PropertiesConfiguration.java:227)                                                 
        at net.sf.zekr.common.config.ResourceManager.<init>(ResourceManager.java:25)                                                                         
        at net.sf.zekr.common.config.ResourceManager.getInstance(ResourceManager.java:34)                                                                    
        at net.sf.zekr.ui.splash.AbstractSplachScreen.<init>(AbstractSplachScreen.java:16)                                                                   
        at net.sf.zekr.ui.splash.AdvancedSplashScreen.<init>(AdvancedSplashScreen.java:45)                                                                   
        at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:45)                   
        at net.sf.zekr.ZekrMain.main(ZekrMain.java:88)                        
Caused by: org.apache.commons.logging.LogConfigurationException: No suitable Log constructor [Ljava.lang.Class;@f9f9d8 for org.apache.commons.logging.impl.Log4JLogger (Caused by java.lang.NoClassDefFoundError: org/apache/log4j/Category)
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413)                                                         
        at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)                                                               
        ... 11 more                                                           
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category          
        at java.lang.Class.getDeclaredConstructors0(Native Method)            
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)    
        at java.lang.Class.getConstructor0(Class.java:2716)                   
        at java.lang.Class.getConstructor(Class.java:1674)                    
        at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)                                                         
        ... 12 more                                                           
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Category        
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)             
        at java.security.AccessController.doPrivileged(Native Method)         
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)         
        at java.lang.ClassLoader.loadClass(ClassLoader.java:319)              
        at java.lang.ClassLoader.loadClass(ClassLoader.java:264)              
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)      
        ... 17 more

Mohsen Saboorian

unread,
Jan 4, 2010, 2:03:03 AM1/4/10
to ze...@googlegroups.com
Salaam,

Try to set commons-logging before log4j in classpath (in zekr.sh):
move lib/commons-logging-1.0.4.jar: to the beginning of CLASS_PATH variable.

Mohsen
Reply all
Reply to author
Forward
0 new messages