[Dev] Rest Services in mdm-admin

2016-06-09 Thread First NameTangwe Caleb
Good day all, 
I am having problems adding Rest Services to mdm-admin
I had some troubles with mdm-android-* I created the service and refrence in 
the permition.xml file
Creating a rest service in mdm-admin it has sefinitin as below
@GET @Path("{type}/{id}/logs") public List 
getDeviceLogs( @PathParam("type") String type, @PathParam("id") String id) 
throws MDMAPIException { List applications; 
ApplicationManagementProviderService appManagerConnector; DeviceIdentifier 
deviceIdentifier = new DeviceIdentifier(); try { 
deviceIdentifier.setType(type); deviceIdentifier.setId(id); appManagerConnector 
= MDMAPIUtils.getAppManagementService(); applications = 
appManagerConnector.getApplicationListForDevice(deviceIdentifier); } catch 
(ApplicationManagementException e) { String msg = "Error occurred while 
fetching the apps of the device."; log.error(msg, e); throw new 
MDMAPIException(msg, e); } return applications; }
Its a clone of the get list of application method with just the path and 
function name changed. when I deploy it. my webapp returns a 404 error status 
Code. 
How do i resolve this pls___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Emm Alpha 2.1.0 first Build Errors Pls Help

2016-06-08 Thread First NameTangwe Caleb
I Downloaded the latest release Emm Alpha 2.1.0 and on running build "mvn 
install" thats my error pls help


[INFO] 33 errors[INFO] 
-[INFO] 
[INFO] 
Reactor Summary:[INFO][INFO] WSO2 MDM - Parent 
.. SUCCESS [  1.995 s][INFO] WSO2 MDM - Mobile 
Device Management Admin Services . FAILURE [ 23.470 s][INFO] 
wso2mdm-product-mobileservices . SKIPPED[INFO] JAX-RS 
Windows API . SKIPPED[INFO] JAX-RS Android API 
. SKIPPED[INFO] WSO2 EMM - Enterprise Mobility 
Manager End-user Web Application SKIPPED[INFO] WSO2 EMM - Enterprise Mobility 
Manager Web Agent ... SKIPPED[INFO] WSO2 Mobile Device Manager (MDM) - UI 
styles ... SKIPPED[INFO] WSO2 Mobile Device Manager (MDM) Features 
.. SKIPPED[INFO] WSO2 Mobile Device Manager (MDM) Styles Feature  
SKIPPED[INFO] WSO2 Mobile Device Manager (MDM) - P2 Profile Gen .. 
SKIPPED[INFO] WSO2 Mobile Device Manager (MDM) - Distribution  
SKIPPED[INFO] WSO2 MDM - Integration Tests ... 
SKIPPED[INFO] WSO2 MDM Integration Test Common ... 
SKIPPED[INFO] WSO2 MDM Integration Test Common ... 
SKIPPED[INFO] WSO2 MDM - Integration Admin Clients ... 
SKIPPED[INFO] WSO2 MDM - Integration Test Utils .. 
SKIPPED[INFO] WSO2 MDM - Integration Test UI Pages ... 
SKIPPED[INFO] WSO2 MDM Backend Integration Tests . 
SKIPPED[INFO] WSO2 MDM - Integration Test UI Module .. 
SKIPPED[INFO] WSO2 MDM Platform Integration Tests  
SKIPPED[INFO] 
[INFO] 
BUILD FAILURE[INFO] 
[INFO] 
Total time: 27.131 s[INFO] Finished at: 2016-06-08T12:39:47+01:00[INFO] Final 
Memory: 67M/1279M[INFO] 
[ERROR] 
Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:2.3.1:compile (default-compile) 
on project mdm-admin: Compilation failure: Compilation failure:[ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[71,10]
 error: exception SQLException is never thrown in body of corresponding try 
statement[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[88,10]
 error: exception SQLException is never thrown in body of corresponding try 
statement[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[70,68]
 error: unreported exception DataAccessLayerException; must be caught or 
declared to be thrown[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[87,104]
 error: unreported exception DataAccessLayerException; must be caught or 
declared to be thrown[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[116,10]
 error: exception SQLException is never thrown in body of corresponding try 
statement[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[115,112]
 error: unreported exception DataAccessLayerException; must be caught or 
declared to be thrown[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[154,10]
 error: exception SQLException is never thrown in body of corresponding try 
statement[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[146,53]
 error: unreported exception DataAccessLayerException; must be caught or 
declared to be thrown[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[200,10]
 error: exception SQLException is never thrown in body of corresponding try 
statement[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[223,10]
 error: exception SQLException is never thrown in body of corresponding try 
statement[ERROR][ERROR] 
\JAVA\proMDM\product-emm-2.1.0-alpha\modules\apps\jax-rs\mdm-admin\src\main\java\org\wso2\carbon\mdm\api\Dashboard.java:[192,82]
 error: unreported exception DataAccessLayerException; must be caught or 
declared to be thrown[ERROR][ERROR] 

[Dev] Emm Help

2016-06-06 Thread First NameTangwe Caleb



  
Good Day. I need Help on adding some operations to be caried out on an android 
platform I tweaked the Jaguery files to include what I want on the interface, I 
added what I wanted on the Feature table It works well in the Binary 
1* I wanna know which repository I need to download so as to ensure that a 
recompile doesn't need me to go modify the database all over again.2* My 
Operations Dont get registered into the database from the new rest service i 
created 


  ___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Jaguery app Deployment

2016-06-01 Thread First NameTangwe Caleb
Good day.
I succeded in getting wso2 emm running for me from source, step 2 would be 
modifications, I see a new javascript framework was adopted in it jagueryjs,  I 
did some modifications to modules\apps\jaggery\emm\src\emm 
, zipped the folder, and uploaded on Carbon but couldn't get to navigate to it 
on my browser. I reloaded the app, restarted it but still nothing. changed to 
https nothing likewise http with thier relative ports
Pls I need your help. ___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Ws02 emm Help

2016-05-24 Thread First NameTangwe Caleb
Good Day allthis is my first run of this projectm I am a newBie so please 
overlook my ignorance.My Deve Environment is NetBeans 8Apach maven 3.3glassfish 
3.3.3Project-emm 2.0.1 Downloaded from 
https://codeload.github.com/wso2/product-emm/zip/v2.0.1
On Deployment after Succesful Build I get this errorPlease anyHelp or advice 
would be greatly apreciated
Severe:   Startup of context /mdm-admin failed due to previous errorsSevere:   
ContainerBase.addChild: start: org.apache.catalina.LifecycleException: 
java.lang.NoClassDefFoundError: org/springframework/context/ApplicationListener 
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5985) at 
com.sun.enterprise.web.WebModule.start(WebModule.java:691) at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1041)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:1024) at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:747) at 
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2286) at 
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1932) at 
com.sun.enterprise.web.WebApplication.start(WebApplication.java:139) at 
org.glassfish.internal.data.EngineRef.start(EngineRef.java:122) at 
org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:291) at 
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:352) at 
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:500)
 at 
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:219)
 at 
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:491) at 
com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:539)
 at 
com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:535)
 at java.security.AccessController.doPrivileged(Native Method) at 
javax.security.auth.Subject.doAs(Subject.java:360) at 
com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:534)
 at 
com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:565) 
at 
com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:557) 
at java.security.AccessController.doPrivileged(Native Method) at 
javax.security.auth.Subject.doAs(Subject.java:360) at 
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:556)
 at 
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1464)
 at 
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:109)
 at 
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1846)
 at 
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1722)
 at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:534) 
at 
com.sun.enterprise.v3.admin.AdminAdapter.onMissingResource(AdminAdapter.java:224)
 at 
org.glassfish.grizzly.http.server.StaticHttpHandlerBase.service(StaticHttpHandlerBase.java:189)
 at 
com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459)
 at 
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167)
 at 
org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) 
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) 
at 
org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
 at 
org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
 at 
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:283)
 at 
org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:200)
 at 
org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:132)
 at 
org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:111)
 at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) 
at 
org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:536)
 at 
org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
 at 
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
 at 
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
 at 
org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
 at 
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
 at 
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
 at java.lang.Thread.run(Thread.java:745)Caused by: 
java.lang.NoClassDefFoundError: org/springframework/context/ApplicationListener 
at