[Dhis2-users] creating objects with web api, POST fails

2014-06-29 Thread Lavi Shpigelman
Hi
I have a server (on Linux, running on Tomcat) with and empty dhis app
running (version 2.14)

I would like to populate it with data (and metadata) using the web API.
I tried an example from the documentation:

I created a file called  pi.xml:

http://dhis2.org/schema/dxf/2.0";>
  3.14159265359


and gave this command from my windows command line:

C:\>curl.exe -d @pi.xml "http://:8080/dhis/api/constants" -H "Content-Type:application/xml" -u
admin:district -v

The server responded with

Apache Tomcat/7.0.52 (Debian) - Error
report HTTP Status 405 - Request method
'POST' not supportedtypeStatus reportmessage
Request method 'POST' not supporteddescription
The specified HTTP method is not allowed for the requested
resource.Apache
Tomcat/7.0.52 (Debian)

when I tried the same with https (instead of http), I got the reply:

C:\>curl.exe -d @pi.xml "https://:8080/dhis/api/constants" -
H "Content-Type:application/xml" -u admin:district -v
* Hostname was NOT found in DNS cache
*   Trying ...
* Connected to  () port 8080 (#0)
* schannel: SSL/TLS connection with  port 8080 (step 1/3)
* schannel: checking server certificate revocation
* schannel: sending initial handshake data: sending 171 bytes...
* schannel: sent initial handshake data: sent 171 bytes
* schannel: SSL/TLS connection with  port 8080 (step 2/3)
* schannel: failed to receive handshake, need more data
* schannel: SSL/TLS connection with  port 8080 (step 2/3)
* schannel: encrypted data buffer: offset 144 length 4096
* schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN
(0x80090308) - The token supplied to the function is invalid
* Closing connection 0
* schannel: shutting down SSL/TLS connection with  port 8080
* schannel: clear security context handle
* schannel: clear credential handle
curl: (35) schannel: next InitializeSecurityContext failed:
SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function
is invalid

The same command (using https with my windows curl) was successful
when sent to the dhis web site demo app

I am guessing that creating objects in dhis requires a secure
connection and that my server does not currently support it.  (or does
not support the specific ssh protocol that curl uses?)

Is this the problem or am I missing something?


Thanks,

Lavi
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] [Dhis2-devs] dhis 2.16 update

2014-06-29 Thread Assetta BARA
Salut à tous; 
Peter,moi j'arrive plus à voir le tracker avec mon smartphone en choisissant 
l'option Basic ou smartphone est ce normal? Merci
Assetta


Le Lundi 23 juin 2014 17h51, Peder Andreas Nergaard  a 
écrit :
 


Hi Dayo,

If you are talking about J2ME, we will provide a fully generic
tracker application for 2.16. If you want to test it, please give a
heads up and we can send you a pre-release. For 2.15 we have an
application which is in final testing in a real project now, and
that supports the traditional patient use case.

For Android and for mobile browsers we are aiming at 2.17 and 2.18
for new versions.

Br,

_Andreas_


On 23. juni 2014 13:48, Deemoyes wrote:

Dear Lars,
>
>
>Great work so far. May I ask again, is there a stable tracker app now for 
>mobile???
>
>
>Regards,
>
>
>Dayo
>
>
>Sent from my BlackBerry 10 smartphone.
>From: Lars Helge Øverland
>Sent: Sunday, 22 June 2014 14:45
>To: DHIS 2 Developers list; DHIS 2 Users list
>Subject: [Dhis2-users] dhis 2.16 update 
>
>Hi all, 
>
>
>here comes a quick update and preview of version 2.16. We plan to release in 
>the first weeks on July. The major features being included:
>
>
>- Event visualizer: New app for visualizations / charts of aggregated event 
>data. 
>
>
>Preview
>
>
>
>
>- Tracker capture: New app for tracking, intended to replace the current 
>individual records module in 2.17. For 2.16 it will support search for tracked 
>entities and dashboard with widgets for enrollment, data capture, current 
>selections, profile, relationships and notes (at least).
>
>
>Preview
>
>
>
>
>- Web API: Improved meta-data support. The API will support meta-data field 
>filtering, allowing the consumer to explicitly define which fields should be 
>included on objects when retrieving meta-data. The tracker related objects 
>like programs and events will be fully supported in the API including the 
>possibility for creating and updating objects.
>
>
>Docs | Docs
>
>
>
>- Calendar: Support for an array of eight calendars
  including nepal, coptic, julian.
>
>
>Preview
>
>
>
>
>- Data value one-way sync: Support for automatically sending data from a 
>semi-offline DHIS instance to another central, online DHIS instance.
>
>
>
>
>- Event analytics: Support for data element aggregation operators in the event 
>analytics api and event reports app, allowing for sum, average, count, etc 
>aggregation of events.
>
>
>
>
>There is a range of smaller features planned for 2.16 which you can find on 
>Launchpad here.
>
>
>
>
>regards,
>
>
>Lars
>
>
>
>
> 
>
>
>
>
>
>___
Mailing list: https://launchpad.net/~dhis2-devs Post to : 
dhis2-d...@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs 
More help   : https://help.launchpad.net/ListHelp 

-- 
Peder Andreas Nergaard, Mobile Coordinator
HISP/DHIS2, Department of Informatics, University of Oslo http://www.dhis2.org/ 
p: +47 922 47 500 - s: peder.andreas.nergaard - e: andre...@ifi.uio.no
___
Mailing list: https://launchpad.net/~dhis2-users
Post to     : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] [Dhis2-devs] dhis 2.16 update

2014-06-29 Thread Knut Staring
Sault Assetta,

On peut effectivement vérifier les versions mobiles aussi sur un ordinateur
portable. Il n'y a pas Tracker dans la version smartphone encore, mais il
ya certaines fonctionnalités de Tracker dans la version basic:

https://apps.dhis2.org/demo/light/index.action
https://apps.dhis2.org/demo/mobile/index



On Sun, Jun 29, 2014 at 5:54 PM, Assetta BARA 
wrote:

> Salut à tous;
> Peter,moi j'arrive plus à voir le tracker avec mon smartphone en
> choisissant l'option Basic ou smartphone est ce normal? Merci
> Assetta
>
>
>   Le Lundi 23 juin 2014 17h51, Peder Andreas Nergaard 
> a écrit :
>
>
>   Hi Dayo,
>
> If you are talking about J2ME, we will provide a fully generic tracker
> application for 2.16. If you want to test it, please give a heads up and we
> can send you a pre-release. For 2.15 we have an application which is in
> final testing in a real project now, and that supports the traditional
> patient use case.
>
> For Android and for mobile browsers we are aiming at 2.17 and 2.18 for new
> versions.
>
> Br,
>
> _Andreas_
>
> On 23. juni 2014 13:48, Deemoyes wrote:
>
> Dear Lars,
>
>  Great work so far. May I ask again, is there a stable tracker app now
> for mobile???
>
>  Regards,
>
>  Dayo
>
>  Sent from my BlackBerry 10 smartphone.
>*From: *Lars Helge Øverland
> *Sent: *Sunday, 22 June 2014 14:45
> *To: *DHIS 2 Developers list; DHIS 2 Users list
> *Subject: *[Dhis2-users] dhis 2.16 update
>
>  Hi all,
>
>  here comes a quick update and preview of version 2.16. We plan to
> release in the first weeks on July. The major features being included:
>
>  - Event visualizer: New app for visualizations / charts of aggregated
> event data.
>
>  Preview
> 
>
>
>  - Tracker capture: New app for tracking, intended to replace the current
> individual records module in 2.17. For 2.16 it will support search for
> tracked entities and dashboard with widgets for enrollment, data capture,
> current selections, profile, relationships and notes (at least).
>
>  Preview 
>
>
>  - Web API: Improved meta-data support. The API will support meta-data
> field filtering, allowing the consumer to explicitly define which fields
> should be included on objects when retrieving meta-data. The tracker
> related objects like programs and events will be fully supported in the API
> including the possibility for creating and updating objects.
>
>  Docs  |
> Docs 
>
>
> - Calendar: Support for an array of eight calendars including nepal,
> coptic, julian.
>
>  Preview
> 
>
>
>  - Data value one-way sync: Support for automatically sending data from a
> semi-offline DHIS instance to another central, online DHIS instance.
>
>
>  - Event analytics: Support for data element aggregation operators in the
> event analytics api and event reports app, allowing for sum, average,
> count, etc aggregation of events.
>
>
>  There is a range of smaller features planned for 2.16 which you can find
> on Launchpad here .
>
>
>  regards,
>
>  Lars
>
>
>
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-d...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>
> --
> Peder Andreas Nergaard, Mobile Coordinator
> HISP/DHIS2, Department of Informatics, University of Oslohttp://www.dhis2.org/
> p: +47 922 47 500 - s: peder.andreas.nergaard - e: andre...@ifi.uio.no
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to: dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help  : https://help.launchpad.net/ListHelp
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-d...@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522
http://dhis2.org
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] [Dhis2-devs] dhis 2.16 update

2014-06-29 Thread Deemoyes
Oh amazing.yes I will like to test it. please give me the pre-release.Many thanks.  Sent from my BlackBerry 10 smartphone. From: Peder Andreas NergaardSent: Monday, 23 June 2014 18:51To: dhis2-d...@lists.launchpad.net; dhis2-users@lists.launchpad.netSubject: Re: [Dhis2-users] [Dhis2-devs]  dhis 2.16 update
  

  
  
Hi Dayo,

If you are talking about J2ME, we will provide a fully generic
tracker application for 2.16. If you want to test it, please give a
heads up and we can send you a pre-release. For 2.15 we have an
application which is in final testing in a real project now, and
that supports the traditional patient use case.

For Android and for mobile browsers we are aiming at 2.17 and 2.18
for new versions.

Br,

_Andreas_

On 23. juni 2014 13:48, Deemoyes wrote:


  
  Dear Lars,
  
  
  Great work so
far. May I ask again, is there a stable tracker app now for
mobile???
  
  
  Regards,
  
  
  Dayo
  
  
  Sent from my BlackBerry
10 smartphone.
  

  

  
From: Lars Helge Øverland
Sent: Sunday, 22 June 2014 14:45
To: DHIS 2 Developers list; DHIS 2 Users
  list
Subject: [Dhis2-users] dhis 2.16 update
  

  

  
  
  
Hi all,
  
  
  here comes a quick update and preview of version 2.16. We
plan to release in the first weeks on July. The major
features being included:
  
  
  - Event visualizer: New app for visualizations / charts
of aggregated event data. 
  
  
  Preview
  
  
  
  
  - Tracker capture: New app for tracking, intended to
replace the current individual records module in 2.17. For
2.16 it will support search for tracked entities and
dashboard with widgets for enrollment, data capture, current
selections, profile, relationships and notes (at least).
  
  
  Preview
  
  
  
  
  - Web API: Improved meta-data support. The API will
support meta-data field filtering, allowing the consumer to
explicitly define which fields should be included on objects
when retrieving meta-data. The tracker related objects like
programs and events will be fully supported in the API
including the possibility for creating and updating objects.
  
  
  Docs |
Docs
  
  
  

  - Calendar: Support for an array of eight calendars
  including nepal, coptic, julian.


Preview


  
  
  
  - Data value one-way sync: Support for automatically
sending data from a semi-offline DHIS instance to another
central, online DHIS instance.
  
  
  
  
  
- Event analytics: Support for data element aggregation
operators in the event analytics api and event reports app,
allowing for sum, average, count, etc aggregation of events.
  
  
  
  
  There is a range of smaller features planned for 2.16
which you can find on Launchpad here.
  
  
  
  
  regards,
  
  
  Lars
  
  
  
  
   
  
  



  
  
  
  ___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-d...@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp



-- 
Peder Andreas Nergaard, Mobile Coordinator
HISP/DHIS2, Department of Informatics, University of Oslo
http://www.dhis2.org/
p: +47 922 47 500 - s: peder.andreas.nergaard - e: andre...@ifi.uio.no
  

___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscri

[Dhis2-users] Error when upload war file in tomcat7

2014-06-29 Thread channara rin
Hi dev, users
When i upload dhis2 v2.15.war file into tomcat 7. that my database is:
PostgreSQL, i got the error in tomcat console. plz look attached file.
Do you know what is the problem? how can i fix it?

Thank you
Channara
Jun 30, 2014 1:45:46 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performanc
e in production environments was not found on the java.library.path: C:\tomcat7\
bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files (x86
)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\Syst
em32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;.
Jun 30, 2014 1:45:46 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jun 30, 2014 1:45:46 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jun 30, 2014 1:45:46 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 909 ms
Jun 30, 2014 1:45:46 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jun 30, 2014 1:45:46 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
Jun 30, 2014 1:45:46 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\tomcat7\webapps\docs
Jun 30, 2014 1:45:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\tomcat7\webapps\docs has finish
ed in 780 ms
Jun 30, 2014 1:45:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\tomcat7\webapps\host-manager
Jun 30, 2014 1:45:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\tomcat7\webapps\host-manager ha
s finished in 140 ms
Jun 30, 2014 1:45:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\tomcat7\webapps\manager
Jun 30, 2014 1:45:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\tomcat7\webapps\manager has fin
ished in 139 ms
Jun 30, 2014 1:45:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\tomcat7\webapps\ROOT
Jun 30, 2014 1:45:47 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\tomcat7\webapps\ROOT has finish
ed in 91 ms
Jun 30, 2014 1:45:47 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jun 30, 2014 1:45:47 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jun 30, 2014 1:45:47 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1264 ms
Jun 30, 2014 1:46:28 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive C:\tomcat7\webapps\dhis.2.15-old.war
* INFO  2014-06-30 01:47:52,268 System property dhis2.home not set (DefaultLocat
ionManager.java [http-bio-8080-exec-3])
* INFO  2014-06-30 01:47:52,273 Environment variable DHIS2_HOME points to C:\DHI
S2_HOME (DefaultLocationManager.java [http-bio-8080-exec-3])
* INFO  2014-06-30 01:47:55,255 Hibernate configuration loaded, using dialect: o
rg.hibernate.dialect.PostgreSQLDialect (DefaultHibernateConfigurationProvider.ja
va [http-bio-8080-exec-3])
* INFO  2014-06-30 01:48:10,864 Found the following message senders: [org.hisp.d
his.message.EmailMessageSender@172aa81b, org.hisp.dhis.sms.SmsMessageSender@7182
907e] (DefaultMessageService.java [http-bio-8080-exec-3])
* WARN  2014-06-30 01:48:22,602 SQL Error: 0, SQLState: 42P01 (SqlExceptionHelpe
r.java [http-bio-8080-exec-3])
* ERROR 2014-06-30 01:48:22,603 ERROR: relation "systemsetting" does not exist
  Position: 113 (SqlExceptionHelper.java [http-bio-8080-exec-3])
* ERROR 2014-06-30 01:48:22,785 Context initialization failed (ContextLoader.jav
a [http-bio-8080-exec-3])
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'org.hisp.dhis.appmanager.AppManager': Invocation of init method failed;
nested exception is org.hibernate.exception.SQLGrammarException: could not extra
ct ResultSet
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBea
nPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProc
essor.java:133)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanF
actory.java:396)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1505)
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
at org.springfr