tuongkha
Hi Dario,
I built 2 adapter and I want to run on one server.
1. QuotesStreamer.HoSE.Adapters.Data.StockListAdapter
2. QuotesStreamer.HaSTC.Adapters.Data.StockListAdapter
and i try to config :
1. Modified "DotNetServer.bat"
...
start "StockListAdapter" /MIN DotNetServer QuotesStreamer.HoSE.Adapters.Data.StockListAdapter /host localhost /rrport 6661 /notifport 6662
start "StockListAdapter" /MIN DotNetServer QuotesStreamer.HaSTC.Adapters.Data.StockListAdapter /host localhost /rrport 6661 /notifport 6662
2. Modified "C:\Lightstreamer\adapters\StockList_sockets\adapters.xml"
<adapters_conf id="HOSE">
<!-- Metadata provider is the Java Remote Metadata Adapter Proxy with
sockets transport. -->
<metadata_provider>
...
</metadata_provider>
</adapters_conf>
<adapters_conf id="HaSTC">
<!-- Metadata provider is the Java Remote Metadata Adapter Proxy with
sockets transport. -->
<metadata_provider>
...
</metadata_provider>
</adapters_conf>
After that, I run "Start_LS_as_Application.bat" + "DotnetServer.bat".
And there are my error :
....
17.Mar.08 22:33:40,625 < WARN> No users defined for Internal Monitor.
[Fatal Error] adapters.xml:94:2: The markup in the document following the root e
lement must be well-formed.
[Fatal Error] :94:2: The markup in the document following the root element must
be well-formed.
17.Mar.08 22:33:40,734 <ERROR> Unable to read configuration file.
org.xml.sax.SAXParseException: The markup in the document following the root ele
ment must be well-formed.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
java:239)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
umentBuilderImpl.java:283)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
at com.lightstreamer.d.eb.a(eb.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)
17.Mar.08 22:33:40,750 <ERROR> Adapters configuration error
org.xml.sax.SAXParseException: The markup in the document following the root ele
ment must be well-formed.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
java:239)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
umentBuilderImpl.java:283)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
at com.lightstreamer.d.eb.a(eb.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)
17.Mar.08 22:33:40,750 <ERROR> Error while loading the Adapters
org.xml.sax.SAXParseException: The markup in the document following the root ele
ment must be well-formed.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
java:239)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
umentBuilderImpl.java:283)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
at com.lightstreamer.d.eb.a(eb.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)
17.Mar.08 22:33:40,750 <FATAL> Adapters initialization failed
17.Mar.08 22:33:40,750 < INFO> Exiting.....
Press any key to continue . . .
-------
Can u help me?
skidrow406
Tham thế, sao ông chạy 2 trong 1 dc
_ DotNetServer.exe create instant của HO thì nghỉ HA đi chứ
_ cần 2 adapters.xml
_ run "DotnetServer.bat" trước, rồi "Start_LS_as_Application.bat"
tuongkha
Hi skidrow406,
How to created 2 adapters.xml? I try follow your instruction :
- First : run "DotNetServer.bat"
- Second : run "Start_LS_as_Application.bat"
but it still has error. Can't solve problem.
Why I need run 2 adapters on 01 server? Because I don't have many server.