installing jchem-3.2.10 from remote computer...

User 8688ffe688

04-09-2007 23:52:46

I encounter the following error when performing a fresh install of the cartridge from a remote computer (no the database server).





+ echo 'Create the SQL script used to register the JChem service URLs'


Create the SQL script used to register the JChem service URLs


+ /usr/jdk-1.5.0/bin/java -cp ../lib/jchem.jar:/usr/local/oracle-10.2.0.1/jdbc/lib/ojdbc14.jar chemaxon.jchem.cartridge.install.ChUrl register-urls user/password@server http://localhost:8002/jchemstreams/


java.net.UnknownHostException: localhost


at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)


at java.net.Socket.connect(Socket.java:519)


at java.net.Socket.connect(Socket.java:469)


at sun.net.NetworkClient.doConnect(NetworkClient.java:157)


at sun.net.www.http.HttpClient.openServer(HttpClient.java:382)


at sun.net.www.http.HttpClient.openServer(HttpClient.java:509)


at sun.net.www.http.HttpClient.<init>;(HttpClient.java:231)


at sun.net.www.http.HttpClient.New(HttpClient.java:304)


at sun.net.www.http.HttpClient.New(HttpClient.java:316)


at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)


at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)


at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)


at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:857)


at chemaxon.jchem.cartridge.jcservcli.JcsClientBase.getOutputStream(JcsClientBase.java:114)


at chemaxon.jchem.cartridge.jcservcli.BlockingClient.callService(BlockingClient.java:58)


at chemaxon.jchem.cartridge.jcservcli.BlockingClient.callService(BlockingClient.java:38)


at chemaxon.jchem.cartridge.install.ChUrl.checkEndPoint(ChUrl.java:117)


at chemaxon.jchem.cartridge.install.ChUrl.getServiceEndPoints(ChUrl.java:60)


at chemaxon.jchem.cartridge.install.ChUrl.main(ChUrl.java:183)


+ exit 1

ChemAxon aa7c50abf8

05-09-2007 07:43:14

The problem occurred as the installation program was checking to see if a JChemStreams service was available at the URL configured. (This check has been introduced to discover typos/mistakes in the URL early on in the installation process.)





I suggest using the Oracle host's network interface address in the JChemStreams URL temporarily for the installation. (The interface address that is visible to the client used for the installation.) After the installation is complete you can manually change the URL as the JChem Cartridge owner (the user in whose schema JChem Cartridge has been installed) using the following SQL statements:





Code:
call jchem_core_pkg.set_master_property(null, 'jchem.service.endPoint.url.1', 'http://localhost:8002/jchemstreams/');


commit;