Results 1 to 4 of 4

Hybrid View

  1. #1
    Member
    Join Date
    May 2010
    Location
    Belgaum
    Posts
    9

    How to read config file

    Hi Mone,
    We are using ibatis to persist data in database before pushing it to lightstreaner,
    but when i deploy adapter, i am getting following error, I think lightstreamer is not reading any config xmls, Please suggest how to go for this.

    Exception in thread "Thread-13" java.lang.NoClassDefFoundError: org/apache/ibatis/io/Resources
    at com.marketnews.mni.common.db.MyBatisInitializer.<c linit>(Unknown Source)
    at com.marketnews.mni.common.db.NewsItemDao.createNew sItem(Unknown Source)


    Even i tried to read Properties from .properties file, lightstreamer did not recognise the .properties file eventhogh the file was mentioned in classpath.

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,091
    As you are writing on the .NET Adapter API forum,
    it is unclear whether your are working with normal in-process java Adapters or with Remote Adapters.

    Assuming that you are using java adapters and that they access external libraries through some jar files,
    I confirm that any jar that is put in the adapter's lib folder or in the shared/lib folder is added to the classpath available to Adapter code;
    similarly, any class or other resource file that is put in the adapter's classes folder or in the shared/classes folder is available to Adapter code.

    You can ensure that the classes and resources that you placed in these folders are available by trying to load them (just for testing purpose) from inside your Adapter init method.
    If they still can't be seen by your external library, then try adding them to the global classpath, by modifying the JVM command line in the launch script (namely, LS.bat or LS.sh).

 

 

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 09:42 PM.