License in Ubuntu/Windows

User 4616a6b00d

07-10-2014 09:30:34

Hi,


We have deployed our application in JBoss Sever in Windows/Ubuntu system. In development environment the application works fine without any license installation. But when it is at client location it gives some license issues.


Implementation:


<center>


<script type="text/javascript">


var mrvData = document.getElementById("frmMarvinSketch:moleculeTxt").value;


msketch_name="MSketch";


msketch_begin("../marvin/",800,400);


msketch_param("mol",mrvData);


msketch_end();


</script>


 


</center> 




Question 1:


We require a sever level license installation. As per the documentation I have installed the license through environment variables:


Variable Name : CHEMAXON_LICENSE_URL


Value : D:\Marvin License\license.cxl


But when I open the Marvin Editor, the license path shows :


C:\Users\mohith.kumar\chemaxon\license.cxl


 


Question 2:


How can I install license if my server is running in Ubuntu.


 


Question 3:


Does any code change is required in the HTML file?


How will I verify if the Marvin Editor is using the license I have configured. Mainly in Development environment all the functionalities work without any license configuration.



ChemAxon d26931946c

07-10-2014 16:02:31

Hi,


 


I assume that you are integrating Marvin as an applet into your application. In this case the Applet runs on the client machine so it uses the environment of the client.


Setting the environment variables works only for server-side code.


You can set the license for the Applet using the license or license file  parameter.


 


Best regards,


Peter

User 4616a6b00d

08-10-2014 12:35:27

Yes, I agree.


Can you post a sample code, that sets the license on client side.


 

ChemAxon d26931946c

08-10-2014 13:31:25

You can find a code example here.

User 4616a6b00d

08-10-2014 14:50:14

Is your previous reply complete ?, I think you missed the link while posting

ChemAxon d26931946c

09-10-2014 11:15:02

Yes, the link was left out.


Here it is: https://docs.chemaxon.com/display/marvinview/Licensing+Applets


I'm sorry  for the inconvenience. 


Peter

User 4616a6b00d

14-10-2014 08:19:15

Our application is depoyed in a ubuntu server, Through java I will initialize the mrvLicensePath  to the below value :


mrvLicensePath = "https://10.106.100.178/usr/local/jboss-as-7.1.1.Final/license/license.cxl";


 


HTML Code:


msketch_name="MSketch";


msketch_begin("../marvin/",800,400);


msketch_param("licenseFile",mrvLicensePath);


msketch_param("mol",mrvData);


msketch_end();


 


When applet is instantiated it shows the below message :


License is not found: https://10.106.100.178/usr/local/jboss-as-7.1.1.Final/license/license.cxl


 


Kindly help me in solving this issue.

User 4616a6b00d

14-10-2014 11:21:25

I have solved this issue, we need to use http: instead of https:

User 4616a6b00d

16-10-2014 08:41:38

Everything was working fine. Suddenly I am getting this issue now 'The license is not a well-formed xml:'. The license file is never modified.


Can you just help me in resolving this.


MK

ChemAxon d26931946c

16-10-2014 08:49:31

We throw this exception when the license file could not be validated.


 Could you pass the full exception? The cause of this should be mentioned there.


Many thing can cause this kind of error e.g. the file was not loaded completely due to network issues or the file was corrupted during the transfer.

User 4616a6b00d

16-10-2014 10:42:39

Below is the Exception :


chemaxon.license.LicenseProcessingException: The license is not a well-formed xml: http://10.106.100.178/usr/local/jboss-as-7.1.1.Final/license/license.cxl


at chemaxon.license.LicenseReader.verifyCXLContents(LicenseReader.java:483)


at chemaxon.license.LicenseReader.fetch(LicenseReader.java:106)


at chemaxon.license.LicenseHandler.process(LicenseHandler.java:212)


at chemaxon.license.LicenseHandler.setLicenseFile(LicenseHandler.java:230)


at chemaxon.license.LicenseManager.setLicenseFile(LicenseManager.java:316)


at chemaxon.marvin.common.swing.MolPanel.molInit(Unknown Source)


at chemaxon.marvin.sketch.swing.SketchPanel.molInit(Unknown Source)


at chemaxon.marvin.common.swing.MolPanel.init(Unknown Source)


at chemaxon.marvin.common.swing.MolPanel.init(Unknown Source)


at chemaxon.marvin.applet.JMSketch.createGUI(Unknown Source)


at chemaxon.marvin.applet.AbstractMarvinApplet.init(Unknown Source)


at chemaxon.marvin.applet.JMSketchLaunch.showApplet(Unknown Source)


at chemaxon.marvin.applet.AppletLaunch$3.run(Unknown Source)


at java.awt.event.InvocationEvent.dispatch(Unknown Source)


at java.awt.EventQueue.dispatchEventImpl(Unknown Source)


at java.awt.EventQueue.access$200(Unknown Source)


at java.awt.EventQueue$3.run(Unknown Source)


at java.awt.EventQueue$3.run(Unknown Source)


at java.security.AccessController.doPrivileged(Native Method)


at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)


at java.awt.EventQueue.dispatchEvent(Unknown Source)


at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)


at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)


at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)


at java.awt.EventDispatchThread.pumpEvents(Unknown Source)


at java.awt.EventDispatchThread.pumpEvents(Unknown Source)


at java.awt.EventDispatchThread.run(Unknown Source)

ChemAxon d26931946c

16-10-2014 14:01:29

I thought it would be more useful...


Please send me a license report to pcseh _at_ chemaxon.com, that will contain log files and some licensing-related information as well.


 


Peter

User 4616a6b00d

20-10-2014 05:42:11

Due to this issue ('license is not a well-formed xml') in the license, Marvin Editor don't even get instantiated. How am I going to get the 'Create Report' link ? It will not show the applet. Marvin Applet space will be empty since it couldn't validate the license.


I can send the license file if required.


 


Thanks,


MK

User 4616a6b00d

22-10-2014 03:28:19

Can I please get any response regarding the above query ?

ChemAxon d26931946c

22-10-2014 06:03:48

Sorry for the delay, we were thinking about how to get more information about the errors during applet loading.


Could you check out the java console during applet loading or check the lic.log files under your user home/chemaxon folder? They may reveal some more information about the problem.