Fatal error

Hi,
Connecting wireless I get the redirection page and then:

"Fatal error: Call to undefined function json_encode() in /var/www/vhosts/mesh-web.net/httpdocs/modules/ewt/EWTClient.php on line 82"

The Browser-Url shows:
"http://mesh-web.net/hotspot?res=notyet&uamip=101.115.214.1&uamport=3990&challenge=d6082b3bc83574b467b0920db47d7bd8&mac=00-0C-F6-41-DF-F6&ip=101.115.214.2&ssid=silver&called=00-12-CF-81-73-D7&nasid=nas01&userurl=http%3a%2f%2fwww.wikel.prv.pl%2f&md=2DE39086F3456C81ABF62205E7B7C31B"

Where is my error?
Thks
Uwe

New Installation

Hi,
I installed all new.
in coova-jradius starting, I get the following error:

2009-07-09 12:12:56,096 ERROR [net.jradius.log.Log4JRadiusLogger] - Invalid JRadius configuration.
java.io.FileNotFoundException: server.p12 (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at net.jradius.server.TCPListener.setConfiguration(TCPListener.java:126)
at net.jradius.server.TCPListener.setConfiguration(TCPListener.java:80)
at net.jradius.server.JRadiusServer.newListenerWithConfig(JRadiusServer.java:267)
at net.jradius.server.JRadiusServer.createListenerWithConfigAndQueue(JRadiusServer.java:256)
at net.jradius.server.JRadiusServer.initializeServer(JRadiusServer.java:201)
at net.jradius.server.JRadiusServer.afterPropertiesSet(JRadiusServer.java:112)
at net.jradius.impl.JRadiusManagerImpl.afterPropertiesSet(JRadiusManagerImpl.java:69)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
at com.coova.Start.main(Start.java:10)

Later I get :

2009-07-09 12:12:56,184 INFO [net.jradius.log.Log4JRadiusLogger] - Listeners succesfully started.

2009-07-09 12:14:44,028 INFO [com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource] - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> z8kflt82qh6pw42twwq|15e2075, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> org.hsqldb.jdbcDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kflt82qh6pw42twwq|15e2075, idleConnectionTestPeriod -> 600, initialPoolSize -> 3, jdbcUrl -> jdbc:hsqldb:file:CoovaDB, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]

What I am doing wrong?
Help please.
Uwe

Re: Fatal error

You must have JSON and libCURL support in PHP for it to work... standard in many distributions, but not in all. You probably just need to add it to your php init files to load these modules.

drupal

Hi David, I changed my Linux on my VServer and got Php5.2.
I installed all new, http://mesh-web.net:1900/ewt/com.coova.ewt.Home/Coova.html works well.
But if I connect to my Hotspot wirelessly I get an empty page with following url:
http://88.84.141.163/?q=hotspot&res=notyet&uamip=101.115.214.1&uamport=3...

If I start sh start.sh I will get the following log with errors:

2009-07-04 08:51:12,065 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@10655dd: display name [org.springframework.context.support.ClassPathXmlApplicationContext@10655dd]; startup date [Sat Jul 04 08:51:12 GMT 2009]; root of context hierarchy
2009-07-04 08:51:14,403 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [spring-config.xml]
2009-07-04 08:51:20,198 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [net/jradius/spring-config.xml]
2009-07-04 08:51:20,301 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [com/coova/spring-config.xml]
2009-07-04 08:51:20,551 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Overriding bean definition for bean 'attributeDictionary': replacing [Generic bean: class [net.jradius.dictionary.AttributeDictionaryImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [net/jradius/spring-config.xml]] with [Generic bean: class [net.jradius.dictionary.AttributeDictionaryImpl]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/coova/spring-config.xml]]
2009-07-04 08:51:20,552 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Overriding bean definition for bean 'radiusProcessor': replacing [Generic bean: class [net.jradius.freeradius.FreeRadiusProcessor]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [net/jradius/spring-config.xml]] with [Generic bean: class [net.jradius.freeradius.FreeRadiusProcessor]; scope=prototype; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/coova/spring-config.xml]]
2009-07-04 08:51:20,556 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Overriding bean definition for bean 'radiusListener': replacing [Generic bean: class [net.jradius.freeradius.FreeRadiusListener]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [net/jradius/spring-config.xml]] with [Generic bean: class [net.jradius.freeradius.FreeRadiusListener]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/coova/spring-config.xml]]
2009-07-04 08:51:20,559 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Overriding bean definition for bean 'attributeSearchTree': replacing [Generic bean: class [net.jradius.ewt.handler.AttributeSearchTree]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [net/jradius/spring-config.xml]] with [Generic bean: class [net.jradius.ewt.handler.AttributeSearchTree]; scope=singleton; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [com/coova/spring-config.xml]]
2009-07-04 08:51:20,745 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@10655dd]: org.springframework.beans.factory.support.DefaultListableBeanFactory@4c4975
2009-07-04 08:51:24,213 INFO [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer] - Loading properties file from class path resource [configuration.properties]
2009-07-04 08:51:25,295 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4c4975: defining beans [propertyConfigurer,cacheManager,createDatabase,dataSource,threadContextManager,dataCacheManager,dataSecurityManager,attributeDictionary,radiusProcessor,radiusListener,attributeSearchTree,sqlMapClientJRadius,nasDAO,radAcctDAO,radCheckDAO,radGroupCheckDAO,radGroupReplyDAO,radIPPoolDAO,radPostAuthDAO,radReplyDAO,radUserGroupDAO,uiHelpDAO,sqlMapClientCoovaAAA,radAccessPointDAO,radAttributeDAO,radAttributeSetDAO,radAttributeTypeDAO,radClientDAO,radClientDeviceDAO,radControllerTypeDAO,radRealmDAO,radRealmRouteDAO,radServerDAO,radSessionDAO,radUserDAO,radLogDAO,radTestClientDAO,radTestAttributeDAO,radTestLogDAO,radEwtPermissionDAO,radConfigDAO,radWalledGardenDAO,radUIHelpDAO,radConfigurationManager,radHelpManager,radUserManager,radRealmManager,radSharedSecretManager,radSessionManager,radClientDeviceManager,radAttributeManager,radAccessPointManager,radRoutingManager,radControllerManager,radOTPManager,testClientUI,testClientCloneUI,drupalMenus,drupalMenuUsage,drupalSessions,drupalSettings,coovaAccessAPI,coovaUsersAPI,ewtServerSupport,otpListener,otpProcessor,sessionFactory,sessionKeyProvider,radEventDispatcher,sessionManager,ewtSessionManager,jsonHandler,uiHandler,radProcessor,udpProcessor,udpListener,webServiceListener,webServiceProcessor,jRadiusManager]; root of factory hierarchy
2009-07-04 08:51:25,343 INFO [org.springframework.cache.ehcache.EhCacheManagerFactoryBean] - Initializing EHCache CacheManager
v29163:~/coova-jradius # Database version: 1.0-0
2009-07-04 08:51:36,989 INFO [com.mchange.v2.log.MLog] - MLog clients using log4j logging.
2009-07-04 08:51:39,098 INFO [com.mchange.v2.c3p0.C3P0Registry] - Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
2009-07-04 08:53:10,119 INFO [net.jradius.log.Log4JRadiusLogger] - Configuring JRadius Server....
2009-07-04 08:53:14,546 INFO [net.jradius.log.Log4JRadiusLogger] - Initializing realm manager
2009-07-04 08:53:14,585 INFO [net.jradius.log.Log4JRadiusLogger] - Initializing session manager
2009-07-04 08:53:14,870 INFO [net.jradius.log.Log4JRadiusLogger] - Initializing JRadius Server....
2009-07-04 08:53:14,870 INFO [net.jradius.log.Log4JRadiusLogger] - Loading dictionary: bean:attributeDictionary
2009-07-04 08:53:15,061 WARN [net.sf.ehcache.CacheManager] - Creating a new instance of CacheManager using the diskStorePath "/tmp" which is already used by an existing CacheManager.
The source of the configuration was classpath.
The diskStore path for this CacheManager will be set to /tmp/ehcache_auto_created_1246697595061.
To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
2009-07-04 08:53:15,402 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4c4975: defining beans [propertyConfigurer,cacheManager,createDatabase,dataSource,threadContextManager,dataCacheManager,dataSecurityManager,attributeDictionary,radiusProcessor,radiusListener,attributeSearchTree,sqlMapClientJRadius,nasDAO,radAcctDAO,radCheckDAO,radGroupCheckDAO,radGroupReplyDAO,radIPPoolDAO,radPostAuthDAO,radReplyDAO,radUserGroupDAO,uiHelpDAO,sqlMapClientCoovaAAA,radAccessPointDAO,radAttributeDAO,radAttributeSetDAO,radAttributeTypeDAO,radClientDAO,radClientDeviceDAO,radControllerTypeDAO,radRealmDAO,radRealmRouteDAO,radServerDAO,radSessionDAO,radUserDAO,radLogDAO,radTestClientDAO,radTestAttributeDAO,radTestLogDAO,radEwtPermissionDAO,radConfigDAO,radWalledGardenDAO,radUIHelpDAO,radConfigurationManager,radHelpManager,radUserManager,radRealmManager,radSharedSecretManager,radSessionManager,radClientDeviceManager,radAttributeManager,radAccessPointManager,radRoutingManager,radControllerManager,radOTPManager,testClientUI,testClientCloneUI,drupalMenus,drupalMenuUsage,drupalSessions,drupalSettings,coovaAccessAPI,coovaUsersAPI,ewtServerSupport,otpListener,otpProcessor,sessionFactory,sessionKeyProvider,radEventDispatcher,sessionManager,ewtSessionManager,jsonHandler,uiHandler,radProcessor,udpProcessor,udpListener,webServiceListener,webServiceProcessor,jRadiusManager]; root of factory hierarchy
2009-07-04 08:53:15,407 INFO [org.springframework.cache.ehcache.EhCacheManagerFactoryBean] - Shutting down EHCache CacheManager
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jRadiusManager' defined in class path resource [spring-config.xml]: Invocation of init method failed; nested exception is java.net.BindException: Address already in use
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:93)
at com.coova.Start.main(Start.java:10)
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.DatagramChannelImpl.bind(DatagramChannelImpl.java:495)
at sun.nio.ch.DatagramSocketAdaptor.bind(DatagramSocketAdaptor.java:80)
at com.coova.jradius.server.UDPListener.setConfiguration(SourceFile:254)
at net.jradius.server.JRadiusServer.newListenerWithConfig(JRadiusServer.java:267)
at net.jradius.server.JRadiusServer.createListenerWithConfigAndQueue(JRadiusServer.java:256)
at net.jradius.server.JRadiusServer.initializeServer(JRadiusServer.java:201)
at net.jradius.server.JRadiusServer.afterPropertiesSet(JRadiusServer.java:112)
at net.jradius.impl.JRadiusManagerImpl.afterPropertiesSet(JRadiusManagerImpl.java:69)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1368)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1334)
... 15 more

v29163:~/coova-jradius #

Can You help me, please?

The new pages are looking very goog!

Greetings from Cologne

Uwe

Some of the errors are

Some of the errors are non-fatal. The "Address already in use" means you probably have another RADIUS server already running.