chinghunglai
I do everything follow the GettingStart and HelloWorld document.
But i get the follow error :
*******************************************************************************
26.三月.08 11:12:50,453 <ERROR> Metadata adapter init error
java.lang.ClassNotFoundException:
com.lightstreamer.adapters.metadata.LiteralBasedProvider
*******************************************************************************
OS : WindowsXP SP2
Run : C:\Lightstreamer\bin\windows\Start_LS_as_Application.bat
My LS.bat setting:
set LS_HOME=C:\Lightstreamer
set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_12
I didn't remove any file from my install path, the jar is exist :
C:\Lightstreamer\shared\lib\ls-generic-adapters.jar
the detail error :
****************************************************************************************************
C:\Lightstreamer\bin\windows>call LS.bat run
Starting Lightstreamer Server...
Please check logs for detailed information.
26.三月.08 11:12:50,156 < INFO> Starting MAC address check
26.三月.08 11:12:50,171 < INFO> Found MAC address 00:1c:25:25:e5:b2
26.三月.08 11:12:50,171 < INFO> MAC address check successful
26.三月.08 11:12:50,171 < INFO> License correctly bound with the following param
eter(s):
26.三月.08 11:12:50,171 < INFO> Client ID : EgkSUbSgBGyUgfRfqxZAn
26.三月.08 11:12:50,171 < INFO> Mac Address : 00:1c:25:25:e5:b2
26.三月.08 11:12:50,312 < INFO> Lightstreamer Server starting in Moderato editio
n
26.三月.08 11:12:50,343 < WARN> JMX management features not available with the c
urrent license
26.三月.08 11:12:50,375 < INFO> Started HTML Adaptor for JMX on port 6666
26.三月.08 11:12:50,421 < INFO> Started JMXMP Connector for JMX on port 9999
26.三月.08 11:12:50,453 < INFO> Loading Metadata Provider HELLOWORLD
26.三月.08 11:12:50,453 <ERROR> Metadata adapter init error
java.lang.ClassNotFoundException:
com.lightstreamer.adapters.metadata.LiteralBasedProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at com.lightstreamer.d.yc.loadClass(yc.java)
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.LS.main(LS.java)
26.三月.08 11:12:50,453 <ERROR> Error while loading the Adapters
java.lang.ClassNotFoundException:
com.lightstreamer.adapters.metadata.LiteralBasedProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at com.lightstreamer.d.yc.loadClass(yc.java)
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.b.a(b.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.i.j.a(j.java)
at com.lightstreamer.LS.main(LS.java)
26.三月.08 11:12:50,453 <FATAL> Adapters initialization failed
26.三月.08 11:12:50,453 < INFO> Exiting.....
****************************************************************************************************
I am searching a good push server solution for my company, i think lightstreamer is good solution, but i can't keep trying anymore, can anybody give me help ?
chinghunglai
i get the point !
when i write adapters.xml following the HelloWorld document, my adapters.xml like this:
*******************************************************************************************************
<?xml version="1.0"?>
<adapters_conf id="HELLOWORLD">
<metadata_provider>
<adapter_class>
com.lightstreamer.adapters.metadata.LiteralBasedProvider
</adapter_class>
</metadata_provider>
<data_provider>
<adapter_class>
HelloWorldDataAdapter
</adapter_class>
</data_provider>
</adapters_conf>
*******************************************************************************************************
i will got error when i start server !
but if i replace the file with the adapters.xml from lightstreamerhelloworld.zip, my adapters.xml become like this:
*******************************************************************************************************
<?xml version="1.0"?>
<adapters_conf id="HELLOWORLD">
<metadata_provider>
<adapter_class>com.lightstreamer.adapters.metadata.LiteralBasedProvider</adapter_class>
</metadata_provider>
<data_provider>
<adapter_class>HelloWorldDataAdapter</adapter_class>
</data_provider>
</adapters_conf>
*******************************************************************************************************
i try start server and get no more error ! i can use HelloWorld now !
Alessandro Alinone
chinghunglai,
You are right. The XML parser used for adapters.xml is sensible to spaces. This issue will be solved in the next release of Lightstreamer. Notice that the same issue does not apply to the parsing of lightstreamer_conf.xml.
Thank you very much for pointing that out.
Cheers,
Alessandro