Problems installing JChem Service

User 74b72c099e

07-06-2011 12:21:53

I'm trying to install JChem 5.5.0.1 on a (virtual) Windows Server 2008 R2 64-bit. However, I am encountering problems when attempting the installation of the JChem Server. It failed during the cartridge installation so I have attempted the installation of the server again, receiving the exact same error:


E:\chemaxon\jchem\cartridge>.\install-interact.bat --jcserver-only

Name of the Oracle host. [localhost]:
Oracle listener port [1521]:
Name of the Oracle instance [mydb]: Orcl
The host name of the JChem Server [localhost]:
The port at which the JChem Server accepts connections [1099]:
maximum memory allocated to the JChem Server process [700m]:
The structure cache id of this JChem Server instance [JCC1]:
INFO: Checking JChem Server at localhost:1099...

You have entered the following parameters:
==========================================

Name of the Oracle host.: localhost
Oracle listener port: 1521
Name of the Oracle instance: Orcl
The host name of the JChem Server: localhost
The port at which the JChem Server accepts connections: 1099
maximum memory allocated to the JChem Server process: 700m
The structure cache id of this JChem Server instance: JCC1

Proceed with the Install? (y,n) [n]: y
Do you want to install JChemServer as an operating system service? (y,n) [y]:
Name of the JChem Server service [JChemCartridgeService]:
Display name of the JChem Server service [JChem Cartridge Service]:

java.lang.RuntimeException:
        at chemaxon.util.RuntimeUtils.exec(RuntimeUtils.java:276)
        at chemaxon.util.RuntimeUtils.exec(RuntimeUtils.java:263)
        at chemaxon.jchem.cartridge.install.WindowsServiceInstaller.execCommand(WindowsServiceInstaller.java:168)
        at chemaxon.jchem.cartridge.install.WindowsServiceInstaller.installOrUpdateService(WindowsServiceInstaller.java:102)
        at chemaxon.jchem.cartridge.install.WindowsServiceInstaller.installService(WindowsServiceInstaller.java:38)
        at chemaxon.jchem.cartridge.install.InstallCmdLine.installJChemServerAsAService(InstallCmdLine.java:541)
        at chemaxon.jchem.cartridge.install.InstallCmdLine.install(InstallCmdLine.java:87)
        at chemaxon.jchem.cartridge.install.InstallCmdLine.main(InstallCmdLine.java:589)
E:\chemaxon\jchem\cartridge>

It seems someone else has previously been experiencing a very similar problem but no solution was provided: https://www.chemaxon.com/forum/ftopic5286.html

ChemAxon aa7c50abf8

07-06-2011 12:36:29

It seems someone else has previously been experiencing a very similar problem but no solution was provided: https://www.chemaxon.com/forum/ftopic5286.html

And did you follow the instructions there?

User 74b72c099e

07-06-2011 13:29:48

I have tried adding the line



chemaxon.level = FINEST


in the jchem\cartridge\conf\logging.properties file but no logs really seem to be produced when running the server-only installation.


The other thing that is talked about in that topic is a fix which should have been included already in JChem version 5.2.5 so I assume this fix still exists in 5.5.0.1.

ChemAxon aa7c50abf8

07-06-2011 13:40:06

no logs really seem to be produced

The installation and upgrade logs are in the jchem/cartridge directory (not in the jchem/cartridge/logs) directory. Sorry, for not mentionning this.


Peter

User 74b72c099e

07-06-2011 14:16:17

Ahh, I see.  Here's the log the installation attempt returned:


[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: # property name | description | prompt | accepted input | default value | is value to be saved...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: oracle.home | The directory where Oracle's "bin" directory can be found containing the Oracle executables | Oracle's home | | /opt/oracle/product/10.2.0/db_1 | y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=oracle.home, promptMessage=Oracle's home, description=The directory where Oracle's "bin" directory can be found containing the Oracle executables, allowedValues=null, defaultValue=/opt/oracle/product/10.2.0/db_1, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: oracle.server.host | The name of the Oracle host. | Name of the Oracle host. | | localhost | y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=oracle.server.host, promptMessage=Name of the Oracle host., description=The name of the Oracle host., allowedValues=null, defaultValue=localhost, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: oracle.server.port | The port where the Oracle listener accepts connections | Oracle listener port | | 1521 | y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=oracle.server.port, promptMessage=Oracle listener port, description=The port where the Oracle listener accepts connections, allowedValues=null, defaultValue=1521, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: oracle.server.instance | Name of the Oracle instance | Name of the Oracle instance | |mydb|y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=oracle.server.instance, promptMessage=Name of the Oracle instance, description=Name of the Oracle instance, allowedValues=null, defaultValue=mydb, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: tns.name | The local TNS name of the Oracle instance. | Local TNS name of the Oracle instance. | | XXXX | y ...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=tns.name, promptMessage=Local TNS name of the Oracle instance., description=The local TNS name of the Oracle instance., allowedValues=null, defaultValue=XXXX, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: jcart.owner.login | The name of schema where JChem Cartridge has to be installed | Name of the cartridge owner | | jchem | y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=jcart.owner.login, promptMessage=Name of the cartridge owner, description=The name of schema where JChem Cartridge has to be installed, allowedValues=null, defaultValue=jchem, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: jcart.owner.password | The password of the Oracle user in whose schema JChem Cartridge has been installed |Password of the cartridge owner | | | n...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=jcart.owner.password, promptMessage=Password of the cartridge owner, description=The password of the Oracle user in whose schema JChem Cartridge has been installed, allowedValues=null, defaultValue=, password=true, valueToBeSaved=false, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: dba.login| DBA login is required to create the JChem Cartridge owner's schema, granting the JChem Cartridge owner the required system privileges, creating public synonyms and optionally creating a basic role for JChem Cartridge users. If you don't wish to specify a DBA login, please enter '!'. The SQL statements to be executed with elevated privileges can be listed by executing the 'config-util.{sh,bat} list-dba-sqls' command in the jchem/cartridge directory. | DBA login | | SYSTEM |y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=dba.login, promptMessage=DBA login, description=DBA login is required to create the JChem Cartridge owner's schema, granting the JChem Cartridge owner the required system privileges, creating public synonyms and optionally creating a basic role for JChem Cartridge users. If you don't wish to specify a DBA login, please enter '!'. The SQL statements to be executed with elevated privileges can be listed by executing the 'config-util.{sh,bat} list-dba-sqls' command in the jchem/cartridge directory., allowedValues=null, defaultValue=SYSTEM, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: dba.password | The password of the DBA with create schema privileges. If the DBA password is not specified, the dba login is considered unspecified as well. | DBA password | | |n...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=dba.password, promptMessage=DBA password, description=The password of the DBA with create schema privileges. If the DBA password is not specified, the dba login is considered unspecified as well., allowedValues=null, defaultValue=, password=true, valueToBeSaved=false, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: jchem.server.host | The host name of the JChem Server, as seen (pingable) from the Oracle host. In a single-host setup, it is "localhost" or 127.0.0.1. | The host name of the JChem Server | | localhost |y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=jchem.server.host, promptMessage=The host name of the JChem Server, description=The host name of the JChem Server, as seen (pingable) from the Oracle host. In a single-host setup, it is "localhost" or 127.0.0.1., allowedValues=null, defaultValue=localhost, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: jchem.server.port | The port at which the JChem Server accepts connections | The port at which the JChem Server accepts connections | | 1099 |y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=jchem.server.port, promptMessage=The port at which the JChem Server accepts connections, description=The port at which the JChem Server accepts connections, allowedValues=null, defaultValue=1099, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: basic.jcc.role | The role for basic JChem Cartridge user privileges | The role for basic JChem Cartridge user privileges | | JCC_BASIC_ROLE | y|...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=basic.jcc.role, promptMessage=The role for basic JChem Cartridge user privileges, description=The role for basic JChem Cartridge user privileges, allowedValues=null, defaultValue=JCC_BASIC_ROLE, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: oracle.server.login | Oracle "super user" login used by JChem Server to connect back to Oracle | Oracle "super user" login used by JChem Server to connect back to Oracle | | |n ...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=oracle.server.login, promptMessage=Oracle "super user" login used by JChem Server to connect back to Oracle, description=Oracle "super user" login used by JChem Server to connect back to Oracle, allowedValues=null, defaultValue=, password=false, valueToBeSaved=false, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: oracle.server.password | Password for the Oracle "super user" used by JChem Server to connect back to Oracle | Password for the Oracle "super user" login used by JChem Server to connect back to Oracle | | |n...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=oracle.server.password, promptMessage=Password for the Oracle "super user" login used by JChem Server to connect back to Oracle, description=Password for the Oracle "super user" used by JChem Server to connect back to Oracle, allowedValues=null, defaultValue=, password=true, valueToBeSaved=false, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: license.dir | The directory containing the license files | The directory containing the license files | | | y ...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=license.dir, promptMessage=The directory containing the license files, description=The directory containing the license files, allowedValues=null, defaultValue=, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: logging.config.file | Configuration file for logging | Configuration file for logging | | conf/logging.properties | y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=logging.config.file, promptMessage=Configuration file for logging, description=Configuration file for logging, allowedValues=null, defaultValue=conf/logging.properties, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: logging.output.dir | Directory to store the log files | Directory to store the log files | | logs | y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=logging.output.dir, promptMessage=Directory to store the log files, description=Directory to store the log files, allowedValues=null, defaultValue=logs, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: jcserver.maxmem | The maximum heap memory allocated to Java process in which the JChem Server is running. See http://www.chemaxon.com/jchem/doc/admin/cartridge.html#server_memory for details on how to calculate the required amount. | maximum memory allocated to the JChem Server process | | 700m |y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=jcserver.maxmem, promptMessage=maximum memory allocated to the JChem Server process, description=The maximum heap memory allocated to Java process in which the JChem Server is running. See http://www.chemaxon.com/jchem/doc/admin/cartridge.html#server_memory for details on how to calculate the required amount., allowedValues=null, defaultValue=700m, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: structure.cache.id | The structure cache id of the JChem Server instance currently being configured. The structure cache id must uniquely identify JChem structure caches across all JChem based application accessing the same structure tables. | The structure cache id of this JChem Server instance | | JCC1 | y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=structure.cache.id, promptMessage=The structure cache id of this JChem Server instance, description=The structure cache id of the JChem Server instance currently being configured. The structure cache id must uniquely identify JChem structure caches across all JChem based application accessing the same structure tables., allowedValues=null, defaultValue=JCC1, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: jdbc.driver.path | The path to the JDBC driver to be used by JChem Server. By default, the JDBC driver will be used which came with the Oracle installation pointed to by the ORACLE_HOME environment variable. | The path to the JDBC driver to be used by JChem Server | | | y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=jdbc.driver.path, promptMessage=The path to the JDBC driver to be used by JChem Server, description=The path to the JDBC driver to be used by JChem Server. By default, the JDBC driver will be used which came with the Oracle installation pointed to by the ORACLE_HOME environment variable., allowedValues=null, defaultValue=, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: reservedMemory | The size of memory (in megabytes) which should not be used by the JChem Structure Cache | The size of memory (in megabytes) which should not be used by the JChem Structure Cache | | |n...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=reservedMemory, promptMessage=The size of memory (in megabytes) which should not be used by the JChem Structure Cache, description=The size of memory (in megabytes) which should not be used by the JChem Structure Cache, allowedValues=null, defaultValue=, password=false, valueToBeSaved=false, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: indexingThreadsPerCall | One index operation will be executed in this many concurrent threads. The default is the number of processing CPU cores. | Number of threads per index operations | | |n...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=indexingThreadsPerCall, promptMessage=Number of threads per index operations, description=One index operation will be executed in this many concurrent threads. The default is the number of processing CPU cores., allowedValues=null, defaultValue=, password=false, valueToBeSaved=false, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: jcSearchThreadsPerCall | One search operation will be executed in this many concurrent threads. The default is the number of processing CPU cores. | Number of threads per search requests | | |n...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=jcSearchThreadsPerCall, promptMessage=Number of threads per search requests, description=One search operation will be executed in this many concurrent threads. The default is the number of processing CPU cores., allowedValues=null, defaultValue=, password=false, valueToBeSaved=false, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: jcReactThreadsPerCall | One jc_react operation will be executed in this many concurrent threads. The default is the number of processing CPU cores. | Number of threads per jc_react requests | | |n...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=jcReactThreadsPerCall, promptMessage=Number of threads per jc_react requests, description=One jc_react operation will be executed in this many concurrent threads. The default is the number of processing CPU cores., allowedValues=null, defaultValue=, password=false, valueToBeSaved=false, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: connection.cached.pool.impl | Connection pool implementation to use. See http://www.chemaxon.com/forum/viewpost17530.html#17530 | Connection pool implementation to use | | |n...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=connection.cached.pool.impl, promptMessage=Connection pool implementation to use, description=Connection pool implementation to use. See http://www.chemaxon.com/forum/viewpost17530.html#17530, allowedValues=null, defaultValue=, password=false, valueToBeSaved=false, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: service.name | Name of the JChem Server service. | Name of the JChem Server service | | JChemCartridgeService |y...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=service.name, promptMessage=Name of the JChem Server service, description=Name of the JChem Server service., allowedValues=null, defaultValue=JChemCartridgeService, password=false, valueToBeSaved=true, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Processing line: service.display.name | Display name of the JChem Server service. | Display name of the JChem Server service | | JChem Cartridge Service |n...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter createConfigurationParameter
FINEST: Returning ConfigurationParameter [name=service.display.name, promptMessage=Display name of the JChem Server service, description=Display name of the JChem Server service., allowedValues=null, defaultValue=JChem Cartridge Service, password=false, valueToBeSaved=false, userInput=null]...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter loadFrom
FINEST: Returning {service.name=ConfigurationParameter [name=service.name, promptMessage=Name of the JChem Server service, description=Name of the JChem Server service., allowedValues=null, defaultValue=JChemCartridgeService, password=false, valueToBeSaved=true, userInput=null], dba.password=ConfigurationParameter [name=dba.password, promptMessage=DBA password, description=The password of the DBA with create schema privileges. If the DBA password is not specified, the dba login is considered unspecified as well., allowedValues=null, defaultValue=, password=true, valueToBeSaved=false, userInput=null], oracle.server.host=ConfigurationParameter [name=oracle.server.host, promptMessage=Name of the Oracle host., description=The name of the Oracle host., allowedValues=null, defaultValue=localhost, password=false, valueToBeSaved=true, userInput=null], jchem.server.port=ConfigurationParameter [name=jchem.server.port, promptMessage=The port at which the JChem Server accepts connections, description=The port at which the JChem Server accepts connections, allowedValues=null, defaultValue=1099, password=false, valueToBeSaved=true, userInput=null], jchem.server.host=ConfigurationParameter [name=jchem.server.host, promptMessage=The host name of the JChem Server, description=The host name of the JChem Server, as seen (pingable) from the Oracle host. In a single-host setup, it is "localhost" or 127.0.0.1., allowedValues=null, defaultValue=localhost, password=false, valueToBeSaved=true, userInput=null], service.display.name=ConfigurationParameter [name=service.display.name, promptMessage=Display name of the JChem Server service, description=Display name of the JChem Server service., allowedValues=null, defaultValue=JChem Cartridge Service, password=false, valueToBeSaved=false, userInput=null], oracle.server.login=ConfigurationParameter [name=oracle.server.login, promptMessage=Oracle "super user" login used by JChem Server to connect back to Oracle, description=Oracle "super user" login used by JChem Server to connect back to Oracle, allowedValues=null, defaultValue=, password=false, valueToBeSaved=false, userInput=null], jcart.owner.password=ConfigurationParameter [name=jcart.owner.password, promptMessage=Password of the cartridge owner, description=The password of the Oracle user in whose schema JChem Cartridge has been installed, allowedValues=null, defaultValue=, password=true, valueToBeSaved=false, userInput=null], jcReactThreadsPerCall=ConfigurationParameter [name=jcReactThreadsPerCall, promptMessage=Number of threads per jc_react requests, description=One jc_react operation will be executed in this many concurrent threads. The default is the number of processing CPU cores., allowedValues=null, defaultValue=, password=false, valueToBeSaved=false, userInput=null], oracle.home=ConfigurationParameter [name=oracle.home, promptMessage=Oracle's home, description=The directory where Oracle's "bin" directory can be found containing the Oracle executables, allowedValues=null, defaultValue=/opt/oracle/product/10.2.0/db_1, password=false, valueToBeSaved=true, userInput=null], oracle.server.password=ConfigurationParameter [name=oracle.server.password, promptMessage=Password for the Oracle "super user" login used by JChem Server to connect back to Oracle, description=Password for the Oracle "super user" used by JChem Server to connect back to Oracle, allowedValues=null, defaultValue=, password=true, valueToBeSaved=false, userInput=null], jdbc.driver.path=ConfigurationParameter [name=jdbc.driver.path, promptMessage=The path to the JDBC driver to be used by JChem Server, description=The path to the JDBC driver to be used by JChem Server. By default, the JDBC driver will be used which came with the Oracle installation pointed to by the ORACLE_HOME environment variable., allowedValues=null, defaultValue=, password=false, valueToBeSaved=true, userInput=null], jcserver.maxmem=ConfigurationParameter [name=jcserver.maxmem, promptMessage=maximum memory allocated to the JChem Server process, description=The maximum heap memory allocated to Java process in which the JChem Server is running. See http://www.chemaxon.com/jchem/doc/admin/cartridge.html#server_memory for details on how to calculate the required amount., allowedValues=null, defaultValue=700m, password=false, valueToBeSaved=true, userInput=null], indexingThreadsPerCall=ConfigurationParameter [name=indexingThreadsPerCall, promptMessage=Number of threads per index operations, description=One index operation will be executed in this many concurrent threads. The default is the number of processing CPU cores., allowedValues=null, defaultValue=, password=false, valueToBeSaved=false, userInput=null], logging.config.file=ConfigurationParameter [name=logging.config.file, promptMessage=Configuration file for logging, description=Configuration file for logging, allowedValues=null, defaultValue=conf/logging.properties, password=false, valueToBeSaved=true, userInput=null], basic.jcc.role=ConfigurationParameter [name=basic.jcc.role, promptMessage=The role for basic JChem Cartridge user privileges, description=The role for basic JChem Cartridge user privileges, allowedValues=null, defaultValue=JCC_BASIC_ROLE, password=false, valueToBeSaved=true, userInput=null], oracle.server.instance=ConfigurationParameter [name=oracle.server.instance, promptMessage=Name of the Oracle instance, description=Name of the Oracle instance, allowedValues=null, defaultValue=mydb, password=false, valueToBeSaved=true, userInput=null], tns.name=ConfigurationParameter [name=tns.name, promptMessage=Local TNS name of the Oracle instance., description=The local TNS name of the Oracle instance., allowedValues=null, defaultValue=XXXX, password=false, valueToBeSaved=true, userInput=null], logging.output.dir=ConfigurationParameter [name=logging.output.dir, promptMessage=Directory to store the log files, description=Directory to store the log files, allowedValues=null, defaultValue=logs, password=false, valueToBeSaved=true, userInput=null], reservedMemory=ConfigurationParameter [name=reservedMemory, promptMessage=The size of memory (in megabytes) which should not be used by the JChem Structure Cache, description=The size of memory (in megabytes) which should not be used by the JChem Structure Cache, allowedValues=null, defaultValue=, password=false, valueToBeSaved=false, userInput=null], dba.login=ConfigurationParameter [name=dba.login, promptMessage=DBA login, description=DBA login is required to create the JChem Cartridge owner's schema, granting the JChem Cartridge owner the required system privileges, creating public synonyms and optionally creating a basic role for JChem Cartridge users. If you don't wish to specify a DBA login, please enter '!'. The SQL statements to be executed with elevated privileges can be listed by executing the 'config-util.{sh,bat} list-dba-sqls' command in the jchem/cartridge directory., allowedValues=null, defaultValue=SYSTEM, password=false, valueToBeSaved=true, userInput=null], jcart.owner.login=ConfigurationParameter [name=jcart.owner.login, promptMessage=Name of the cartridge owner, description=The name of schema where JChem Cartridge has to be installed, allowedValues=null, defaultValue=jchem, password=false, valueToBeSaved=true, userInput=null], jcSearchThreadsPerCall=ConfigurationParameter [name=jcSearchThreadsPerCall, promptMessage=Number of threads per search requests, description=One search operation will be executed in this many concurrent threads. The default is the number of processing CPU cores., allowedValues=null, defaultValue=, password=false, valueToBeSaved=false, userInput=null], oracle.server.port=ConfigurationParameter [name=oracle.server.port, promptMessage=Oracle listener port, description=The port where the Oracle listener accepts connections, allowedValues=null, defaultValue=1521, password=false, valueToBeSaved=true, userInput=null], connection.cached.pool.impl=ConfigurationParameter [name=connection.cached.pool.impl, promptMessage=Connection pool implementation to use, description=Connection pool implementation to use. See http://www.chemaxon.com/forum/viewpost17530.html#17530, allowedValues=null, defaultValue=, password=false, valueToBeSaved=false, userInput=null], license.dir=ConfigurationParameter [name=license.dir, promptMessage=The directory containing the license files, description=The directory containing the license files, allowedValues=null, defaultValue=, password=false, valueToBeSaved=true, userInput=null], structure.cache.id=ConfigurationParameter [name=structure.cache.id, promptMessage=The structure cache id of this JChem Server instance, description=The structure cache id of the JChem Server instance currently being configured. The structure cache id must uniquely identify JChem structure caches across all JChem based application accessing the same structure tables., allowedValues=null, defaultValue=JCC1, password=false, valueToBeSaved=true, userInput=null]}...
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=oracle.home, promptMessage=Oracle's home, description=The directory where Oracle's "bin" directory can be found containing the Oracle executables, allowedValues=null, defaultValue=/opt/oracle/product/10.2.0/db_1, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=oracle.server.host, promptMessage=Name of the Oracle host., description=The name of the Oracle host., allowedValues=null, defaultValue=localhost, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=oracle.server.port, promptMessage=Oracle listener port, description=The port where the Oracle listener accepts connections, allowedValues=null, defaultValue=1521, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=oracle.server.instance, promptMessage=Name of the Oracle instance, description=Name of the Oracle instance, allowedValues=null, defaultValue=mydb, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=tns.name, promptMessage=Local TNS name of the Oracle instance., description=The local TNS name of the Oracle instance., allowedValues=null, defaultValue=XXXX, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=jdbc.driver.path, promptMessage=The path to the JDBC driver to be used by JChem Server, description=The path to the JDBC driver to be used by JChem Server. By default, the JDBC driver will be used which came with the Oracle installation pointed to by the ORACLE_HOME environment variable., allowedValues=null, defaultValue=, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=jcart.owner.login, promptMessage=Name of the cartridge owner, description=The name of schema where JChem Cartridge has to be installed, allowedValues=null, defaultValue=jchem, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=jcart.owner.password, promptMessage=Password of the cartridge owner, description=The password of the Oracle user in whose schema JChem Cartridge has been installed, allowedValues=null, defaultValue=, password=true, valueToBeSaved=false, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=dba.login, promptMessage=DBA login, description=DBA login is required to create the JChem Cartridge owner's schema, granting the JChem Cartridge owner the required system privileges, creating public synonyms and optionally creating a basic role for JChem Cartridge users. If you don't wish to specify a DBA login, please enter '!'. The SQL statements to be executed with elevated privileges can be listed by executing the 'config-util.{sh,bat} list-dba-sqls' command in the jchem/cartridge directory., allowedValues=null, defaultValue=SYSTEM, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=dba.password, promptMessage=DBA password, description=The password of the DBA with create schema privileges. If the DBA password is not specified, the dba login is considered unspecified as well., allowedValues=null, defaultValue=, password=true, valueToBeSaved=false, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=jchem.server.host, promptMessage=The host name of the JChem Server, description=The host name of the JChem Server, as seen (pingable) from the Oracle host. In a single-host setup, it is "localhost" or 127.0.0.1., allowedValues=null, defaultValue=localhost, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=jchem.server.port, promptMessage=The port at which the JChem Server accepts connections, description=The port at which the JChem Server accepts connections, allowedValues=null, defaultValue=1099, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=jcserver.maxmem, promptMessage=maximum memory allocated to the JChem Server process, description=The maximum heap memory allocated to Java process in which the JChem Server is running. See http://www.chemaxon.com/jchem/doc/admin/cartridge.html#server_memory for details on how to calculate the required amount., allowedValues=null, defaultValue=700m, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=logging.config.file, promptMessage=Configuration file for logging, description=Configuration file for logging, allowedValues=null, defaultValue=conf/logging.properties, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=logging.output.dir, promptMessage=Directory to store the log files, description=Directory to store the log files, allowedValues=null, defaultValue=logs, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=structure.cache.id, promptMessage=The structure cache id of this JChem Server instance, description=The structure cache id of the JChem Server instance currently being configured. The structure cache id must uniquely identify JChem structure caches across all JChem based application accessing the same structure tables., allowedValues=null, defaultValue=JCC1, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=basic.jcc.role, promptMessage=The role for basic JChem Cartridge user privileges, description=The role for basic JChem Cartridge user privileges, allowedValues=null, defaultValue=JCC_BASIC_ROLE, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=service.name, promptMessage=Name of the JChem Server service, description=Name of the JChem Server service., allowedValues=null, defaultValue=JChemCartridgeService, password=false, valueToBeSaved=true, userInput=null] copied
[main/10]: 07-06-2011 15:20:59 chemaxon.jchem.cartridge.install.params.ConfigurationParameter copyTo
FINEST: ConfigurationParameter [name=service.display.name, promptMessage=Display name of the JChem Server service, description=Display name of the JChem Server service., allowedValues=null, defaultValue=JChem Cartridge Service, password=false, valueToBeSaved=false, userInput=null] copied
[Thread-1/11]: 07-06-2011 15:21:04 chemaxon.jchem.cartridge.install.InstallUtil run
FINE: -
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at chemaxon.jchem.cartridge.install.InstallUtilrun(InstallUtil.java:256)
[main/10]: 07-06-2011 15:21:06 chemaxon.jchem.cartridge.install.InstallUtil checkJChemServer
INFO: Checking JChem Server at localhost:1099...
[main/10]: 07-06-2011 15:21:07 chemaxon.jchem.cartridge.install.InstallUtil checkJChemServer
FINER: returning:
[Thread-3/12]: 07-06-2011 15:21:20 chemaxon.jchem.cartridge.install.InstallUtil run
FINE: -
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at chemaxon.jchem.cartridge.install.InstallUtilrun(InstallUtil.java:256)
[Thread-7/13]: 07-06-2011 15:21:28 chemaxon.jchem.cartridge.install.InstallUtil run
FINE: -
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at chemaxon.jchem.cartridge.install.InstallUtilrun(InstallUtil.java:256)
[main/10]: 07-06-2011 15:21:33 chemaxon.jchem.cartridge.install.ServerCtrl isRunning
FINER: returning false

ChemAxon aa7c50abf8

07-06-2011 15:48:52

You perform the installation with administrator privileges, do you?


Also, you don't have any JChem Cartridge service created yet on this machine, do you? (Please, check the "Services" Microsoft Management Console.)


I can easily reproduce the same console output (samt Java stack trace), if I run the installation as a regular user. But I still have much more in the log file than you showed. With the chemaxon.level = FINEST setting, you should have lines such as the following in the log file:


[main/10]: Jun 7, 2011 4:28:44 PM chemaxon.util.RuntimeUtils startProcess
FINEST: Starting C:\Program Files\Java\jdk1.6.0_23\bin\java.exe -server -version ...

This log entry should absolutely be visible, if the execution ever gets to the point wich corresponds to the Java stack trace in your console output.


 


Let me revisit this one:


It seems someone else has previously been experiencing a very similar problem but no solution was provided: https://www.chemaxon.com/forum/ftopic5286.html

If you carefully read the forum topic you referred to, a solution was provided to the user's satisfaction:


I tried the 64 tomcat version (or at least I think that's the link you sent) and it worked like a charm.  I had to uninstall the service and re-install it with the newly renamed prunsrv file in place, but the service starts successfully and keeps running.

Peter

User 74b72c099e

08-06-2011 11:27:55

 


You perform the installation with administrator privileges, do you?

Yes.

Also, you don't have any JChem Cartridge service created yet on this machine, do you? (Please, check the "Services" Microsoft Management Console.)

 


Also true.


 


[main/10]: Jun 7, 2011 4:28:44 PM chemaxon.util.RuntimeUtils startProcess

FINEST: Starting C:\Program Files\Java\jdk1.6.0_23\bin\java.exe -server -version ...

This log entry should absolutely be visible, if the execution ever gets to the point wich corresponds to the Java stack trace in your console output.

 


Hmm... well, I did include the entire log file and I assume the chemaxon.level has been set properly when I have other entries in the log file with the "FINEST" tag?


If you carefully read the forum topic you referred to, a solution was provided to the user's satisfaction:

I didn't mean to imply that the user didn't receive any help. In fact, I'm impressed with the fast replies I am receiving here and really apprecite that.


What I meant was that I assumed the fix provided in that thread would not be helpful in my situation as that fix (as I understand the thread at least) was meant for an older version of JChem and included in releases starting from 5.2.5. I have attempted the workaround suggested but still receive the same error.


I have tried reinstalling Java and in the process updated to Update 26 from Update 25. The console output has changed slightly but the same error occurs in the end:


E:\chemaxon\jchem\cartridge>.\install-interact.bat --jcserver-only
Name of the Oracle host. [localhost]:
Oracle listener port [1521]:
Name of the Oracle instance [mydb]: Orcl
The host name of the JChem Server [localhost]:
The port at which the JChem Server accepts connections [1099]:
maximum memory allocated to the JChem Server process [700m]:
The structure cache id of this JChem Server instance [JCC1]:

INFO: Checking JChem Server at localhost:1099...

====> Trying to start JChem Server...

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
INFO: Using classpath: E:\chemaxon\jchem\lib\jchem.jar
INFO: Server process start-ed.
INFO: Cache id set to JCC1
INFO: Directory licenses does not exist. Leaving it to LicenseHandler to check the default location for licenses.
INFO: Listening at 1099

You have entered the following parameters:
==========================================

Name of the Oracle host.: localhost
Oracle listener port: 1521
Name of the Oracle instance: Orcl
The host name of the JChem Server: localhost
The port at which the JChem Server accepts connections: 1099
maximum memory allocated to the JChem Server process: 700m
The structure cache id of this JChem Server instance: JCC1

Proceed with the Install? (y,n) [n]: y
Do you want to install JChemServer as an operating system service? (y,n) [y]:

Name of the JChem Server service [JChemCartridgeService]:
Display name of the JChem Server service [JChem Cartridge Service]:
Java version "1.6.0_26"

Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
INFO: Using classpath: E:\chemaxon\jchem\lib\jchem.jar
INFO: Connecting to localhost:1099
AdminImpl: shutdown called...
INFO: shutdown called
Exiting...
INFO:
Shutting down...
INFO: Server process stop-ed.
java.lang.RuntimeException:
        at chemaxon.util.RuntimeUtils.exec(RuntimeUtils.java:276)
        at chemaxon.util.RuntimeUtils.exec(RuntimeUtils.java:263)
        at chemaxon.jchem.cartridge.install.WindowsServiceInstaller.execCommand(WindowsServiceInstaller.java:168)
        at chemaxon.jchem.cartridge.install.WindowsServiceInstaller.installOrUpdateService(WindowsServiceInstaller.java:102)
        at chemaxon.jchem.cartridge.install.WindowsServiceInstaller.installService(WindowsServiceInstaller.java:38)
        at chemaxon.jchem.cartridge.install.InstallCmdLine.installJChemServerAsAService(InstallCmdLine.java:541)
        at chemaxon.jchem.cartridge.install.InstallCmdLine.install(InstallCmdLine.java:87)
        at chemaxon.jchem.cartridge.install.InstallCmdLine.main(InstallCmdLine.java:589)

E:\chemaxon\jchem\cartridge>

The log file has also changed slightly, the main change being:


INFO: Checking JChem Server at localhost:1099...
[main/10]: 08-06-2011 09:55:32 chemaxon.jchem.cartridge.install.InstallUtil checkJChemServer
FINE: Exception while locating Directory
java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at chemaxon.jchem.cartridge.rmi.client.RmiDirectory.locateBypassCache(RmiDirectory.java:141)
at chemaxon.jchem.cartridge.rmi.client.RmiDirectory.locateBypassCache(RmiDirectory.java:128)
at chemaxon.jchem.cartridge.install.InstallUtil.checkJChemServer(InstallUtil.java:102)
at chemaxon.jchem.cartridge.install.InstallCmdLine.checkStartNewJChemServer(InstallCmdLine.java:428)
at chemaxon.jchem.cartridge.install.InstallCmdLine.checkStartNewJChemServer(InstallCmdLine.java:414)
at chemaxon.jchem.cartridge.install.InstallCmdLine.getParamsInteractively(InstallCmdLine.java:174)
at chemaxon.jchem.cartridge.install.InstallCmdLine.install(InstallCmdLine.java:84)
at chemaxon.jchem.cartridge.install.InstallCmdLine.main(InstallCmdLine.java:589)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.<init>(Socket.java:375)
at java.net.Socket.<init>(Socket.java:189)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
... 12 more

 


 

ChemAxon aa7c50abf8

08-06-2011 15:33:12

Please, could you execute the following to command and post their output:


java -version

"%JAVA_HOME%\bin\java" -version

? I am interested to know whether they are 64-bit java implementations or not.


Thanks


Peter

User 74b72c099e

09-06-2011 07:42:28



java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

ChemAxon aa7c50abf8

10-06-2011 10:19:23

Please, could you upload (or send me by e-mail to pkovacs at chemaxon dot com) the logging.properties file from the jchem/cartridge/conf directory? (I think there must be some unexpected setting there which prevents the log entries with higher detail level from being logged.)


Thanks


Peter

User 74b72c099e

14-06-2011 07:07:29

I had made a mistake in the config file (due to some line break problems) - I'm terribly sorry. I have attached the new log file.

ChemAxon aa7c50abf8

14-06-2011 08:01:51

Please, execute the following two commands with the second immediately following the first:


> "E:\chemaxon\jchem\cartridge\prunsrv-amd64" "//IS//JChemCartridgeService" "--DisplayName=JChem Cartridge Service" "--Install=E:\chemaxon\jchem\cartridge\prunsrv-amd64" "--JavaHome=C:\Program Files\Java\jdk1.6.0_26\jre" "--Jvm=C:\Program Files\Java\jdk1.6.0_26\jre\bin\server\jvm.dll" "--JvmOptions=-Xrs#-Doracle.home=null#-Dchemaxon.jchem.cartridge.config.file=C:\Users\pkovacs\chemaxon\work\trunk\jchem\jchemsite\cartridge\conf\jcart.properties" "--Classpath=E:\chemaxon\jchem\lib\jchem.jar" "--StartMode=jvm" "--StopMode=jvm" "--StartClass=chemaxon.jchem.cartridge.server.Bootstrapper" "--StartParams=start" "--StartPath=E:\chemaxon\jchem\cartridge" "--StopClass=chemaxon.jchem.cartridge.server.Bootstrapper" "--StopParams=stop" "--StopPath=E:\chemaxon\jchem\cartridge" "--StdOutput=E:\chemaxon\jchem\cartridge\logs\server.stdout" "--StdError=E:\chemaxon\jchem\cartridge\logs\server.stderr"

> echo %ERRORLEVEL%

What output do they generate?

User 74b72c099e

14-06-2011 08:36:28

 


E:\chemaxon\jchem\cartridge>"E:\chemaxon\jchem\cartridge\prunsrv-amd64" "//IS//JChemCartridgeService" "--DisplayName=JChem Cartridge Service" "--Install=E:\chemaxon\jchem\cartridge\prunsrv-amd64" "--JavaHome=C:\Program Files\Java\jdk1.6.0_26\jre""--Jvm=C:\ProgramFiles\Java\jdk1.6.0_26\jre\bin\server\jvm.dll" "--JvmOptions=-Xrs#-Doracle.home=null#-Dchemaxon.jchem.cartridge.config.file=C:\Users\pkovacs\chemaxon\work\trunk\jchem\jchemsite\cartridge\conf\jcart.properties" "--Classpath=E:\chemaxon\jchem\lib\jchem.jar" "--StartMode=jvm" "--StopMode=jvm" "--StartClass=chemaxon.jchem.cartridge.server.Bootstrapper" "--StartParams=start" "--StartPath=E:\chemaxon\jchem\cartridge" "--StopClass=chemaxon.jchem.cartridge.server.Bootstrapper""--StopParams=stop" "--StopPath=E:\chemaxon\jchem\cartridge""--StdOutput=E:\chemaxon\jchem\cartridge\logs\server.stdout" "--StdError=E:\chemaxon\jchem\cartridge\logs\server.stderr"

E:\chemaxon\jchem\cartridge>echo %ERRORLEVEL%
7

ChemAxon aa7c50abf8

14-06-2011 09:29:51

Does the following command also exit with ERRORLEVEL 7:


> "E:\chemaxon\jchem\cartridge\prunsrv-amd64" "//IS//JChemCartridgeServiz" "--DisplayName=JChem Cartridge Serviz" "--Install=E:\chemaxon\jchem\cartridge\prunsrv-amd64" "--JavaHome=C:\Program Files\Java\jdk1.6.0_26\jre" "--Jvm=C:\Program Files\Java\jdk1.6.0_26\jre\bin\server\jvm.dll" "--JvmOptions=-Xrs#-Doracle.home=null#-Dchemaxon.jchem.cartridge.config.file=E:\chemaxon\jchem\cartridge\conf\jcart.properties" "--Classpath=E:\chemaxon\jchem\lib\jchem.jar" "--StartMode=jvm" "--StopMode=jvm" "--StartClass=chemaxon.jchem.cartridge.server.Bootstrapper" "--StartParams=start" "--StartPath=E:\chemaxon\jchem\cartridge" "--StopClass=chemaxon.jchem.cartridge.server.Bootstrapper" "--StopParams=stop" "--StopPath=E:\chemaxon\jchem\cartridge" "--StdOutput=E:\chemaxon\jchem\cartridge\logs\server.stdout" "--StdError=E:\chemaxon\jchem\cartridge\logs\server.stderr"

> echo %ERRORLEVEL%

? (I changed the service names.)

User 74b72c099e

14-06-2011 10:40:21

Yes it does.

ChemAxon aa7c50abf8

15-06-2011 11:19:27

Could you please execute the following short command:



"E:\chemaxon\jchem\cartridge\prunsrv-amd64" "//DS//JChemCartridgeServiz"


Does it complete without error messages?

User 74b72c099e

15-06-2011 13:01:10

No, I get a pop-up with the following message:



The specified service does not exist as an installed service.

Unable to delete JChemCartridgeServiz service 

ChemAxon aa7c50abf8

15-06-2011 16:04:06

The following short command will also terminate with ERRORLEVEL = 7, correct?


"E:\chemaxon\jchem\cartridge\prunsrv-amd64" "//IS//JChemCartridgeServiz"

Thanks,


Peter

User 74b72c099e

16-06-2011 06:57:48

Yes:



E:\chemaxon\jchem\cartridge>"E:\chemaxon\jchem\cartridge\prunsrv-amd64" "//IS//JChemCartridgeServiz"

E:\chemaxon\jchem\cartridge>echo %ERRORLEVEL%
7

ChemAxon aa7c50abf8

16-06-2011 14:46:38

The Windows service support tool (Apache Daemon - prunsrv) which is bundled with JChem Cartridge is known to work with Windows Server 2008. The only thing I can think of as the source of this problem is some unusual system setting on your machine -- such as the account used to execute this simple command is lacking the required privileges in some way.  (In the Security Settings there are plenty of options that may affect the accounts' ability to execute this program.)


You can also try to download a new JChem version and try install the service with that -- perhaps the executable you currently use has been corrupted in some unlikely ways.


If all else fails, you can always try the "official" Microsoft tool (http://support.microsoft.com/kb/137890 href="http://www.iopus.com/guides/srvany.htm">http://www.iopus.com/guides/srvany.htm) which gives a fairly large flexibility in creating a Windows Service. If you decide to give it a go, follow the instructions up to step 6. in the knowledge base article. In step 5., use the path to the server.bat file as the <path> component and server.bat as the <application.ext> component. In addition to the Application value, you also have to add an AppDirectory and an AppParameters value under the Parameters key created in step 3. The AppDirectory value must be the path to the server.bat file. The AppParameters value must be start.


For the first time after you created the service, the service has to be started manually using the Services program in the Administrative Tools program group (or Windows has to be restarted). It will be automatically restarted after each Windows restart.


srvany.exe will give you a one-way Windows NT service: it will make sure that JChem Server is started at each system restart, but calling "Service stop" in the Microsoft Management console will not stop it. If you want to stop it without restarting the operating system, you can always call server.bat stop in the command line (or prepare a batch file to the same effect and pin it to Start Menu).


Peter

User 74b72c099e

20-06-2011 09:06:26

I found the problem. Apparently you don't have administrator rights by default if you open Command Prompt in Windows. You'll have to open the application by right clicking and selecting "Run as Administrator". Running the commands from a Command Prompt window opened this way solved the problem.


Thanks for your help, Peter.