Mymw:Patch For DDR Service 1.1
From Morfeo Wiki
- There was a problem in the JSON encoded data
Step by step for the DDR Service Installation
1) Download the nightly build of the DDR Service 2) Uncompress the DevInfo-Simple-Latest.tar.gz in a temporal folder and copy the DDR Service subdirectory to the webapps folder of your Tomcat Server
- E.g.
D:/Test/DDR-apache-tomcat-6.0.16/webapps/DDRService
3) Configure the Installation_Path property (in web.xml file)
<context-param> <param-name>Installation_Path</param-name> <param-value>D:/Test/DDR-apache-tomcat-6.0.16/webapps/DDRService</param-value> </context-param>
4) Configure Log4J (File parameter and the priority, DEBUG by default)
<param name="File" value="C:/Test/tmp/ddr-service.log" />
5) Running the DDR Service 5.1) Append to JVM parameters '-Xms512m -Xmx512m'
-
set JAVA_OPTS=-Xms512m -Xmx512m(E.g. Windows console)
5.2) Set JAVA_HOME (E.g. Windows console)
-
set JAVA_HOME=C:\Archivos de programa\Java\jdk1.6.0_04
5.3) Execute startup.bat
![]()
6) Test your DDR Service
6.1) Browse http://localhost:8080/DDRService
6.2) Click on List Available Properties
->
-> ![]()
6.3) Check the traces of Tomcat Console
![]()
Step by step for running a MyMobileWeb Application
1) Download the nightly build of the DDR Service
2) Uncompress the DevInfo-Simple-Latest.tar.gz in a temporal folder
3) Copy devinfo-simple-connector-latest.jar, commons-codec-1.3.jar and commons-httpclient-3.1.jar libraries to the WEB-INF/lib folder of your MyMobileWeb Application (e.g. DemoMenu in the SDK)
- E.g.
D:/Test/MyMobileWeb_SDK_3_4_1/examples/MyMobileWeb_DemoMenu/WEB-INF/lib
4) Delete devinfo-simple-connector-1.1.jar library
- It's important to apply the patch before you create the MyMobileWeb Application so you should copy libraries in the SDK directly like the previous example
5) Configure your DDR Service URL:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <configuration name="root"> <property name="log4jConfig" value="logs/traces.xml"/> <module name="devinfo"> <property name="type" value="remoteDDR"/> <property name="data" value="D:\Test\workspace\DemoMenu\WebContent\DeviceBBDD"/> <!--module name="localDDR"--> <!--property name="sources" value="WURFL,UAPROF"/--> <!--property name="timeout" value="5"/--> <!--property name="retry" value="5"/--> <!--/module--> <module name="remoteDDR"> <property name="url" value="http://localhost:8080/DDRService"/> </module> </module> </configuration>
Additional information (by David Beers)
- Verified using Eclipse 3.4.2 (Ganymede) with WTP (J2EE and Web Standard Tools), MyMobileWeb SDK 3.4.1 and the MyMobileWeb Eclipse plug-in 1.2.1 and the Basic example web app.
- PRECONDITION: the following jars have been added to the
WEB-INF/libdir of the mobile web project:commons-codec-1.3.jar, commons-httpclient-3.1.jar, devinfo-simple-connector-latest.jar. The olderdevinfo-simple-connector-1.1.jarhas been deleted fromWEB-INF/lib
- In the mobile web project Package Explorer right-click Web App Libraries and select Build Path -> Remove from Build Path
- Add the Web App Libraries back to the project as follows: Project -> Properties -> Build Path -> Configure Build Path -> Libraries tab -> Add Library -> Web App Libraries -> Finish
- If you expand the Web App Libraries node in the Package Explorer the new jars should now be visible and the application should run correctly against the 1.1 version of the DDRService. Some users in the Eclipse newsgroups report that they had to exit and relaunch Eclipse for the new libraries to be correctly added to the classpath of the web app project