Deploying Smartclient in apache-tomcat 7 (SmartClient Version: v8.2p_2012-08-14/EVAL Deployment (expires 2012.10.13_05.10.35) Licensed to: Isomorphic Software (#ISC_EVAL_NIGHTLY) I got several errors
related to the server side.
First of all, is the SmartClient evaluation software restricted to the embedded tomcat usage or can be deployed within the espiration date ?
A simple test application (given below) getting data from a postgresql database works in the embedded env. but as soon as it is deployed as described in your reference I am running into the following errors:
* Error Message: Object doesn't support this property or method URL: http://172.20.0.21:90/isomorphic/system/modules/ISC_Core.js
This error is related to the call
<script SRC=../isomorphic/DataSourceLoader?dataSource=its_ds_contact></script>
Replacing the dynamic DataSource Loader call with the object definition here follow and calling directly the object I got
<script src="ds/ds.js"></script>
File ds/index.html
File app.js
File ds/ds.js
* Transport error - HTTP code: 404 for URL: http://172.20.0.21:90/isomorphic/IDACall
There is no further information in the RPC Developper Console.
In the browser debugger I have go a call to
http://www.isomorphic.com/versionCheck/blank.gif?version=v8.2p_2012-08-14/EVAL Deployment&date=2012-08-14&licence=ISC_EVAL_NIGHTLY
without any responses...
Other config files:
-------------------
The file web.xml is untouched as remaing the same of in Runtime Distrib.
The file server.properties get the following PostgreSQL setting.
Finally, is this a configuration issue or a licensing problem ?
Regards,
Itaca
Note: please fix in your smartclient distrib the file server.properties (SDK directory) in the section -- SETTINGS FOR DB2 -- that have sql.PostgreSQL instead of sql.DB2 impacting the PostgreSQL setup.
related to the server side.
First of all, is the SmartClient evaluation software restricted to the embedded tomcat usage or can be deployed within the espiration date ?
A simple test application (given below) getting data from a postgresql database works in the embedded env. but as soon as it is deployed as described in your reference I am running into the following errors:
* Error Message: Object doesn't support this property or method URL: http://172.20.0.21:90/isomorphic/system/modules/ISC_Core.js
This error is related to the call
<script SRC=../isomorphic/DataSourceLoader?dataSource=its_ds_contact></script>
Replacing the dynamic DataSource Loader call with the object definition here follow and calling directly the object I got
<script src="ds/ds.js"></script>
File ds/index.html
Code:
<HTML> <head> title>::itsProject v0.1test::</title> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <meta http-equiv="Cache-Control" content="no-cache no-store must-revalidate" > <meta http-equiv="Pragma" content="no-cache" > <meta name="author" content="itaca consulting sagl"> <meta name="keywords" content="itaca itsProject"> <meta name="description" content="evaluation project"> <link rel="shortcut icon" href="./imgs/favicon.ico" /> <script>window.isc_useSimpleNames = false; </script> <script>var isomorphicDir = "../isomorphic/"</script> <script src=../isomorphic/system/modules/ISC_Core.js></script> <script src=../isomorphic/system/modules/ISC_Foundation.js></script> <script src=../isomorphic/system/modules/ISC_Containers.js></script> <script src=../isomorphic/system/modules/ISC_Grids.js></script> <script src=../isomorphic/system/modules/ISC_Forms.js></script> <script src=../isomorphic/system/modules/ISC_DataBinding.js></script> <script src=../isomorphic/skins/Enterprise/load_skin.js></script> <link rel="stylesheet" type="text/css" href="css/ITS.css" /> </head> <body dir="LTR"> <script type="text/javascript"> // window.isc.showConsole(); //debug if(window.isc){ isc.setAutoDraw(false); isc.screenReader=false; } </script> <!-- Get the direct object creation or DataSourceLoader <script src="ds/ds.js"></script> <script SRC=../isomorphic/DataSourceLoader?dataSource=its_ds_contact></script> --> <script src="ds/ds.js"></script> <script src="app.js"></script> </BODY> </HTML>
File app.js
Code:
isc.ClassFactory.defineClass('ITSListGrid','VLayout'); isc.ITSListGrid.addProperties({ width:"100%", height:"100%", layoutMargin:0, initWidget : function () { this.Super("initWidget", arguments); this.ITSListGridFooter = isc.Label.create({ layoutLeftMargin:5, height:22 }); this.ITSListGridList = isc.ListGrid.create({ ITSListGridFooter:this.ITSListGridFooter, dataSource:this.dataSource, canEdit:false, modalEditing:false, autoFetchData:false, autoDraw:false, alternateRecordStyles:true, canDragRecordsOut:true, hoverWidth:200, hoverHeight:20,layoutMargin:0, selectionType:"single", showFilterEditor: true, filterOnKeypress: true, cellChanged:"this.updateDetails();", recordClick:"this.updateDetails();", dataChanged : function () { this.Super("dataChanged", arguments); totalRows = this.data.getLength(); if (totalRows > 0 && this.data.lengthIsKnown()) { if (totalRows==1) footertxt = totalRows +" element selected."; else footertxt = totalRows +" elements selected."; } else { footertxt = totalRows +" elements selected."; } this.ITSListGridFooter.setContents(footertxt); }, updateDetails : function () { var record = this.getSelectedRecord(); if (record == null) return; } }); this.addMembers([this.ITSListGridList,this.ITSListGridFooter]); } }); myTop = isc.ITSListGrid.create({dataSource:"its_ds_contact"}); myTop.ITSListGridList.fetchData(null,null,{operationId:""}); myTop.draw();
File ds/ds.js
Code:
isc.DataSource.create({ schema:"crm", dbName:"PostgreSQL", tableName:"its_ds_contact", ID:"its_ds_contact", dataSourceVersion:1, fields:[ { hidden:true, name:"id_contact", primaryKey:true, type:"integer" }, { detail:true, name:"is_company", sqlStorageStrategy:"integer", title:"is_company", type:"boolean" }, { detail:true, length:255, name:"vocative", title:"vocative", type:"text" }, { length:255, name:"first_name", title:"first_name", type:"text" }, { detail:true, length:255, name:"middle_name", title:"middle_name", type:"text" }, { length:255, name:"last_name", required:true, title:"last_name", type:"text" }, { length:255, name:"co_address", title:"co_address", type:"text" }, { length:255, name:"address", title:"address", type:"text" }, { length:255, name:"zipcode", title:"zipcode", type:"text" }, { length:255, name:"city", title:"city", type:"text" }, { length:255, name:"region", title:"region", type:"text" }, { length:255, name:"country", title:"country", type:"text" }, { hidden:true, name:"id_main_contact_email", type:"integer" }, { hidden:true, name:"id_main_contact_phone", type:"integer" }, { hidden:true, name:"id_main_contact_address", type:"integer" } ], serverType:"sql" })
* Transport error - HTTP code: 404 for URL: http://172.20.0.21:90/isomorphic/IDACall
There is no further information in the RPC Developper Console.
In the browser debugger I have go a call to
http://www.isomorphic.com/versionCheck/blank.gif?version=v8.2p_2012-08-14/EVAL Deployment&date=2012-08-14&licence=ISC_EVAL_NIGHTLY
without any responses...
Other config files:
-------------------
The file web.xml is untouched as remaing the same of in Runtime Distrib.
The file server.properties get the following PostgreSQL setting.
Code:
sql.defaultDatabase: PostgreSQL # -------------- SETTINGS FOR PostgreSQL -------------------- # These are the settings for use with the PostgreSQL database. # hostname and port where the database server is installed sql.PostgreSQL.driver.serverName: localhost sql.PostgreSQL.driver.portNumber: 5432 # name of the database to use sql.PostgreSQL.driver.databaseName: myDatabase # username and password that can create and modify tables in that database # this user must have the following privileges for the system to function # properly: create/alter/drop table; create/drop sequences; # insert/update/replace/delete rows. sql.PostgreSQL.driver.user: MyUser sql.PostgreSQL.driver.password: MyPassword
Finally, is this a configuration issue or a licensing problem ?
Regards,
Itaca
Note: please fix in your smartclient distrib the file server.properties (SDK directory) in the section -- SETTINGS FOR DB2 -- that have sql.PostgreSQL instead of sql.DB2 impacting the PostgreSQL setup.
Comment