Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2008
    Location
    Taipei
    Posts
    2

    ClassNotFoundException: com.lightstreamer.adapters.metadata.LiteralBasedPr ovider

    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.LiteralBasedPr ovider
    ************************************************** *****************************
    OS : WindowsXP SP2

    Run : C:\Lightstreamer\bin\windows\Start_LS_as_Applicati on.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.LiteralBasedPr ovider

    at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    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.LiteralBasedPr ovider

    at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 06)
    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 ?

  2. #2
    Member
    Join Date
    Mar 2008
    Location
    Taipei
    Posts
    2
    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.LiteralBasedPr ovider
    </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 !

  3. #3
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    517
    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

 

 

Similar Threads

  1. Multiple Data/Metadata Adapters
    By odeheurles in forum Adapter APIs
    Replies: 6
    Last Post: January 26th, 2015, 10:50 AM
  2. Replies: 3
    Last Post: November 14th, 2011, 10:33 AM
  3. Authentication with LiteralBasedProvider and NetworkedDataProvider
    By exchangepulse in forum Adapter Protocol
    Replies: 2
    Last Post: March 19th, 2009, 08:37 PM
  4. How to let Data and Metadata Adapters comunicate
    By CitiMan in forum Adapter APIs
    Replies: 4
    Last Post: November 21st, 2008, 06:24 PM
  5. Replies: 14
    Last Post: May 13th, 2008, 04:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 10:43 AM.