Academic research license is not valid for web usage?

User 9d2c03e26a

15-06-2010 09:56:51

Dear Sir:


I have recently applied and got a license file from this location:


https://www.chemaxon.com/forum/ftopic3670.html


But after a test, I found that the license can not be used on a web application. We tried to register the license via your API:


LicenseManager.setLicenseFile("E:\\Downloads\\license.cxl");


However, the license error is still there.


After we install the license via License Manager (which means a license.cxl file is copied to the user directory), then the application goes smoonthly.


On the other hand, a junit test shows no error, no matter we installed or removed the license from user directory (but still register via API)


After looking at the documents, we found there's another type of "academic web license", is this what we are looking for?


Can you change my license to that type?


Thanks a lot

ChemAxon 0265132c1a

15-06-2010 11:40:05

Dear Urs,


You're right, to build a database you need an academic web license.


I've sent the license to you via e-mail. If you've got troubles with that license too please post your questions here.


Regards,


Janos

User 9d2c03e26a

15-06-2010 15:44:05

Hi Janos:



Thanks for the reply, we got the new license file.


However, it does not work properly. This is what we did:



  1. Pack the license file within our jar file

  2. Load the license file content via classloader (no error, content can be seen via debug)

  3. Call "LicenseManager.setLicense(jchemLicenseContent)" in servlet listener (note: not file path, but file content)

  4. Call JChemSearch related function


Note: we did NOT install via the license manager.


Here is the error message:


No license file found.
Product name: Structure search
License path:
Please contact sales _at_ chemaxon.com to obtain the corresponding license.
Students and academic researchers are entitled of free use
through our Academic Package, for more information
please visit: http://www.chemaxon.com/acpack_conditions.html


One more thing, the junit used to work with the research license even if it is not installed via license manager, but with the web license, exception is thrown.


Anything wrong with our usage? I guess in a web environment we don't have a JChem environment, hence installation to user directory is not necessary, is this correct?


FYI: JChem 5.3.3, we use it for Marvin applet (input) & substructure search

User 9d2c03e26a

15-06-2010 16:11:14

this is the stacktrace we caught after set license file path: LicenseManager.setLicenseFile("E:\\Downloads\\license_web.cxl");


Product name: Structure search
License path: E:\Downloads\license_web.cxl
Please contact sales _at_ chemaxon.com to obtain the corresponding license.
Students and academic researchers are entitled of free use
through our Academic Package, for more information
please visit: http://www.chemaxon.com/acpack_conditions.html />chemaxon.license.LicenseException: No valid license has been found.
Product name: Structure search
License path: E:\Downloads\license_web.cxl
Please contact sales _at_ chemaxon.com to obtain the corresponding license.
Students and academic researchers are entitled of free use
through our Academic Package, for more information
please visit: http://www.chemaxon.com/acpack_conditions.html />    at chemaxon.license.LicenseHandler.checkLicense(Unknown Source)
    at chemaxon.sss.search.MolSearch.checkLicense(MolSearch.java:2002)
    at chemaxon.sss.search.MolSearch.setQuery(MolSearch.java:396)
    at chemaxon.jchem.db.JChemSearch.initQuery(JChemSearch.java:2781)
    at chemaxon.jchem.db.JChemSearch.searchCore(JChemSearch.java:1836)
    at chemaxon.jchem.db.JChemSearch.enumeratedSearch(JChemSearch.java:4721)
    at chemaxon.jchem.db.JChemSearch.search1(JChemSearch.java:1720)
    at chemaxon.jchem.db.JChemSearch.search(JChemSearch.java:1516)
    at chemaxon.jchem.db.JChemSearch.setRunning(JChemSearch.java:1369)
    at chemaxon.jchem.db.JChemSearch.run(JChemSearch.java:1392)
    at com.novionic.delphIL.util.JChemUtils.searchJChem(JChemUtils.java:294)
    at com.novionic.delphIL.util.JChemUtilsTest.testSearchJChem(JChemUtilsTest.java:87)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

User 9d2c03e26a

16-06-2010 03:27:24

I uploaded some screenshot to my personal website since no attachment upload can be found here:


http://cube316.net/license.zip


The strange thing is that both academic research and web license is valid for "web services server", don't know if this refers to a web environment.


Moreover, there is always a restriction: Server Use: Not Allowed


What does this "Server Use" stand for?

User 9d2c03e26a

18-06-2010 05:12:08

Hello, any idea?

ChemAxon b124dd5f17

18-06-2010 08:28:26

Sorry for the delay, the main person responsible for this is out today - we can respond only on Monday. Alex

ChemAxon e274e1bada

18-06-2010 08:54:11

Hi,


Sorry for the delay, I'm investigating the problem.



The strange thing is that both academic 
research and web license is valid for "web services server", don't know
if this refers to a web environment.

Web Services Server is a different product, it is not relevant with JChem Base web access.



Moreover, there is always a restriction: Server Use: Not Allowed
What does this "Server Use" stand for?



'Server use=allowed' restriction means, that you can put the license file to a different machine (e.g. server) and  you can specify the path of license file remotely. As I see you specified this with local path, your license should work in this way.


Back to your problem, it seems to be the problem is in our side. 'Structure Search' license would not have been needed, because JChem Base license contains this. I will come back soon with the solution.


Regards, Edvard


ChemAxon b124dd5f17

18-06-2010 13:17:29

Hi,


I sent on a license to cover for this bug until we can release a fix.


Cheers/Alex

ChemAxon e274e1bada

18-06-2010 13:19:48

Hi,


we sent you a new license file directly. Please inform me the result of using.


Thank you, Edvard

User 9d2c03e26a

19-06-2010 01:43:44

Hi Edvard:


I have received the new license, and it works well via your API. Thanks a lot.


One last question concerns the license security, if I want to use the license with MarvinSketch, need some js code like this:


msketch_param("licenseFile", "https://www.yourserver.com/chemaxon/license.cxl");

But js code is open to client, and someone may easily steal the license by reading the html source code.


How can I avoid this?

ChemAxon e274e1bada

23-06-2010 10:33:56

Hi,



One last question 
concerns the license security, if I want to use the license with
MarvinSketch, need some js code like this:


 msketch_param("licenseFile", "https://www.yourserver.com/chemaxon/license.cxl");

But js code is open to client, and someone may easily steal the
license by reading the html source code.


At the moment this is the only way to set the license for applet.


Could you send me your merged license file? (Academic + free web ) We could have reproduced your issue neither the academic nor the free web license. Did you try to use the webapp just with the freeweb license?


Regards, Edvard