Cannot deploy web service app to emulator

Cannot deploy web service app to emulator

BY 02 Jan 2017 Web Application Development

Hi guys,

I’m new to Tizen so apologies if this should be obvious.

I’m not able to deploy a web service app to a gear emulator (works fine with commercial gear device though).  Should this be possible?  

When I run and deploy the app from the IDE to the emulator VM I get the following message in the console:

start process (install)
.....
error : 42

end process (fail)
processing result : Unknown Error [42] failed
spend time for pkgcmd is [570]ms
cmd_ret:42
    An exception occurred
(Installing the package... > Fail)
An exception occurred
Unexpected stop progress...
(2.512 sec)

Installing from CLI using sdb tool yields little more information but does refer to a settings level violation so I’m wondering if the emulator supports service apps??

__return_cb req_id[40560002] pkg_type[wgt] pkgid[UdbkWv1n41] key[error] val[42] error message: setting level violate
__return_cb req_id[40560002] pkg_type[wgt] pkgid[UdbkWv1n41] key[end] val[fail]
processing result : Unknown Error [42] failed

I’ve provided my config.xml file below. Note that when I comment out the tizen:service element, the app deploys just fine (but obviously the service cannot be run – only the web app is functional).  I’ve tried setting on-boot and auto-restart to false to no avail.

Hoping you can point me in the right direction.

config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://yourdomain/RadarTest2" version="1.0.0" viewmodes="maximized">
    <tizen:application id="UdbkWv1n41.AppTest" package="UdbkWv1n41" required_version="2.3.2"/>
    <content src="index.html"/>
    <feature name="http://tizen.org/feature/screen.size.normal"/>
    <feature name="http://tizen.org/feature/network.internet"/>
    <feature name="http://tizen.org/feature/location.gps"/>
    <feature name="http://tizen.org/feature/web.service"/>
    <icon src="icon.png"/>
    <name>AppTest</name>
    <tizen:privilege name="http://tizen.org/privilege/download"/>
    <tizen:privilege name="http://tizen.org/privilege/location"/>
    <tizen:privilege name="http://tizen.org/privilege/internet"/>
    <tizen:privilege name="http://tizen.org/privilege/application.launch"/>
    <tizen:profile name="wearable"/>
    <tizen:service id="UdbkWv1n41.Service" on-boot="true" auto-restart="true">
        <tizen:content src="service.js"/>
        <tizen:name>Radar Service</tizen:name>
        <tizen:icon src="icon.png"/>
        <tizen:description>Service Test</tizen:description>
    </tizen:service>
    <tizen:setting background-support="disable" encryption="disable" hwkey-event="enable"/>
</widget>

~dennyp

Written by