Version 6 (modified by 18 years ago) (diff) | ,
---|
How to set up a new Core Business Service for Cork
- Remote Desktop to CORK at (38.116.11.34)
(needs Ihor to login)
- Where on CORE computer is the CORE.exe … find the CORE icon on the desktop and look at its properties…shows where CORE.exe is.
Go to that disk and use it as the disk referenced below! (E: for this example.)
- Go to E:\plugins\com.rpc.core.web_1.0.0\ and look for wrapper.conf then open it with favorite text editor…
- Edit the wrapper.conf file at the same time.
- Add the port used (-xxxx) to the Service(s) Description and Display “Core Business Server-xxxx” where port is found at the “–Dserver” port line in the conf file.
- Look for the application parameters section and add a domain and domain name
wrapper.app.parameter.8=-domain wrapper.app.parameter.9=com.wilsonoi.core.qa
The domain “name” (parameter.9) is found in its plugin xml file that is in E:\plugins\com.wilsonoi.core_1.0.0\plugin.xml and look for the extension point as below:
<extension point="com.rpc.core.domain"> <domain id="production" name="WilsonOI-Production" visible="false" db="MYSQL" driver="org.gjt.mm.mysql.Driver" url="jdbc:mysql://srv-atl-core1/ivanallen?user=root&password=root&zeroDateTimeBehavior=convertToNull" user="root" pwd="root" reportURL="http://srv-atl-core1:8080/rpc" /> <domain id="qa" name="IvanAllen-QA" db="MYSQL" driver="org.gjt.mm.mysql.Driver" url="jdbc:mysql://srv-atl-core1/ivanallen?user=root&password=root&zeroDateTimeBehavior=convertToNull" user="root" pwd="root" reportURL="http://srv-atl-core1:8080/rpc" /> <domain visible="false" id="local" name="WilsonOI-LOCALHOST" db="MYSQL" driver="org.gjt.mm.mysql.Driver" url="jdbc:mysql://localhost/wilson_oi?user=root&password=root&zeroDateTimeBehavior=convertToNull" user="root" pwd="root" reportURL="http://localhost:8080/rpc" /> </extension>
Look for the new domain that is being “added”/configured for (not production and not local…but the one that is being newly configured. Note that the name will be what you log in as when the “service” is started and you then open up the domain’s reportURL ! (later!). Note that in this example the domain id is qa and that the xml is in com.wilsonoi.core which concatenating the two gives the parameter.9 in the conf file! Note if it is a new database that is being added, a similar block needs to be added to this xml file with the appropriate fields for the domain as well as (I presume) a whole subdir of plugins such as com.wilsonoi.core_1.0.0 ?
- Verify that E:\CORE\CORE.ini has xms40m and xmx256m for memory for java range for the desktop.
- Now to add the newly defined service, open a cmd session and go to where the wrapper.conf file (just edited) is then enter the command:
E:\CORE\wrapper -i wrapper.conf
(response should be “wrapper | Core Business Server-xxxx installed” )
Verify that this service is present in the services of the system. Start this service and verify it starts. IF any problems occur in this or the prior step, open up the wrapper.conf and go near the bottom and find the lines like:
(Log file to use for wrapper output logging.) (wrapper.logfile=workspace/com.rpc.core.web/.metadata/wrapper.log )
then go to the noted file under E:\CORE which should give clues as to the problems.
Now open the browser to the location of the reportURL in the wrapper.conf file noted above and verify you can log in with the usual login/pwd and see reports,etc.
(questions: where was it that you had the login PLUS the selection of the database/domain name?)