OM2M builds not working on RPI Board [message #1751447] |
Tue, 10 January 2017 13:16 |
Ashok Athukuri Messages: 14 Registered: November 2015 |
Junior Member |
|
|
Hi,
I am trying to run OM2M IN and MN on RPI board, I have build binaries on windows pc and copied org.eclipse.om2m.site.in-cse folder in RPI board and tried to run using ./start.sh file
here is the Log: (I have added few debug messages)
[INFO] - org.eclipse.om2m.datamapping.jaxb.Activator
Starting Data Mapper
[INFO] - org.eclipse.om2m.datamapping.jaxb.Activator
Registering XML Mapper Service..
[INFO] - org.eclipse.om2m.datamapping.jaxb.Activator
XML Mapper service registered.
[INFO] - org.eclipse.om2m.datamapping.jaxb.Activator
Registering JSON Mapper Service..
[INFO] - org.eclipse.om2m.datamapping.jaxb.Activator
JSON Mapper service registered.
[INFO] - org.eclipse.om2m.binding.coap.Activator
Register CoAP RestClientService..
[INFO] - org.eclipse.om2m.binding.coap.Activator
Starting CoAP server
[INFO] - org.eclipse.om2m.binding.coap.Activator
CseService opened
[INFO] - org.eclipse.om2m.binding.http.Activator
Register HTTP RestClientService..
[INFO] - org.eclipse.om2m.binding.http.Activator
HTTP RestClientService is registered.
[INFO] - org.eclipse.om2m.binding.http.Activator
------ httpServiceTracker.open() ------
[INFO] - org.eclipse.om2m.binding.http.Activator
------ cseServiceTracker.open() ------
[INFO] - org.eclipse.om2m.persistence.eclipselink.Activator
Starting Persistence JPA plugin...
[INFO] - org.eclipse.om2m.binding.http.Activator
HttpService discovered
[INFO] - org.eclipse.om2m.binding.http.Activator
---- HttpServlet Register / context
[INFO] - org.eclipse.om2m.persistence.eclipselink.internal.DBServiceJPAImpl
Initializing Database...
[INFO] - org.eclipse.om2m.persistence.eclipselink.internal.DBServiceJPAImpl
Creating new EntityManagerFactory...
[INFO] - org.eclipse.om2m.core.Activator
Starting CSE...
[INFO] - org.eclipse.om2m.core.Activator
Added Data Mapper Service: application/xml
[INFO] - org.eclipse.om2m.core.Activator
Added Data Mapper Service: application/json
[INFO] - org.eclipse.om2m.core.Activator
Rest client service discovered. Protocol: coap
[INFO] - org.eclipse.om2m.core.Activator
Rest client service discovered. Protocol: http
[INFO] - org.eclipse.om2m.webapp.resourcesbrowser.xml.Activator
HttpService discovered
[INFO] - org.eclipse.om2m.webapp.resourcesbrowser.xml.Activator
Register /webpage http context
osgi> [INFO] - org.eclipse.om2m.webapp.resourcesbrowser.xml.Activator
HttpService removed
[INFO] - org.eclipse.om2m.webapp.resourcesbrowser.xml.Activator
Unregister /webpage http context
[INFO] - org.eclipse.om2m.binding.http.Activator
HttpService removed
[INFO] - org.eclipse.om2m.binding.http.Activator
Unregister / http context
[INFO] - org.eclipse.om2m.core.Activator
Stopping CSE
[INFO] - org.eclipse.om2m.core.CSEInitializer
Sending unregistration request
[INFO] - org.eclipse.om2m.core.comm.RestClient
---- RestClient::sendRequest the requestIndication RC: RequestPrimitive [operation=4,
to=http://127.0.0.1:8080/api//in-cse/in-cse,
from=admin:admin,
resultContent=0,
]
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
******* REST HTTP CLIENT Sending request: RequestPrimitive [operation=4,
to=http://127.0.0.1:8080/api//in-cse/in-cse,
from=admin:admin,
resultContent=0,
] **********
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Query string generated: ?rcn=0
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Request to be send: DELETE http://127.0.0.1:8080/api//in-cse/in-cse?rcn=0 HTTP/1.1
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
Headers:
Accept:
X-M2M-Origin: admin:admin
Content-Type:
[INFO] - org.eclipse.om2m.binding.http.RestHttpClient
******* Http Client response: ResponsePrimitive [responseStatusCode=4004,
content=<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 ProxyServlet: /api//in-cse/in-cse</title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /api//in-cse/in-cse. Reason:
<pre> ProxyServlet: /api//in-cse/in-cse</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
I read the link: https://www.eclipse.org/forums/index.php/t/1026342/
Tried below suggestion:
To do this, go to the GSCL product, open the "om2m.product" file, then unchecked "the product includes native launcher" check-box.
Save the file, and build OM2M.
Now copy the GSCL product on your rasberry pi.
But that didn't worked !
OM2M is java and it is platform independent, Wonder why it is not working !?
Thanks in Advance
~Ashok
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.41139 seconds