Error running ./setup.sh during Metadata Library configuration

Hi all,

I get the following error when I attempt to run the Metadata Library ./setup.sh script for our HP-UX box:

[META.MLIVP.1001] FAILED! Stack trace:
{0}org.semanticweb.owl.model.OWLException: Cannot instantiate KAON connection class ‘com.cerebra.lib.owlapi.client.util.impl.OWLConnectionImpl’
at org.semanticweb.owl.util.OWLManager.getOWLConnection(OWLManager.java:153)
at com.webMethods.sc.metadata.mlivp.MLIVP.getRepositoryConnection(Unknown Source)
at com.webMethods.sc.metadata.mlivp.MLIVP.run(Unknown Source)
at com.webMethods.sc.metadata.mlivp.MLIVP.main(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.semanticweb.owl.util.OWLManager.getOWLConnection(OWLManager.java:141)
… 3 more
Caused by: com.cerebra.lib.owlapi.client.extension.OWLWSClientRemoteException: Error communicating with remote service
at com.cerebra.lib.owlapi.client.util.impl.OWLConnectionImpl.mapException(OWLConnectionImpl.java:965)
at com.cerebra.lib.owlapi.client.util.impl.OWLConnectionImpl.(OWLConnectionImpl.java:114)
… 8 more
Caused by: java.net.ConnectException: Connection refused (errno:239)
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.cerebra.service.owlapi.generated.OwlapiSoapBindingStub.OWLManagerGetOwlConnection(OwlapiSoapBindingStub.java:7763)
at com.cerebra.lib.owlapi.client.util.impl.OWLConnectionImpl.(OWLConnectionImpl.java:110)
… 8 more
Caused by: java.net.ConnectException: Connection refused (errno:239)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:530)
at java.net.Socket.connect(Socket.java:480)
at java.net.Socket.(Socket.java:366)
at java.net.Socket.(Socket.java:180)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:149)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
… 19 more

I am using a non-default port of 25441 (one of our environment standards) and I know my database url/credentials are correct because I am using them for the IS right now. Is it possible that I need to verify the port is open (which would be puzzling)? Do I need to have something else up when i attempt to run this process. I know the DB is up because I am logged in via TOAD.

Thanks in advance for your help

bump

All,

I figured this out. Apparently as it says in the documentation, you need to start the metadata library prior to running the server.sh configuration. In addition, before you run server.sh, you should change it to match the hostname/port that you are using for your environment

Bone-head move on my part :blush:

Raul

Hi,

Any idea, how much time approximately will take to complete mlivp setup. I executed setup and it is still running and not completed for last 90 minutes.

In log i could see,
(webMethods.DEFAULT) [mlivp.main.mlivp.main.repoconn] 2009-04-21 16:24:15.640 IST DEBUG: Connecting to the repository service.
service uri: [URL]http://localhost:8090/cerebra-owlapi-svc/owlapi[/URL]
(webMethods.DEFAULT) [mlivp.main.mlivp.main.resoconn] 2009-04-21 16:24:17.546 IST DEBUG: Connecting to the reasoning service.
service uri: [URL]http://localhost:8090/cerebra-reasoning-svc/owlreasoner[/URL]
(webMethods.DEFAULT) [mlivp.main.mlivp.main.continuewarn] 2009-04-21 16:24:17.687 IST INFO: Setting up initial Metadata.
WARNING! This will remove ALL the metadata on this server.
If you continue you will have to re-publish any previoulsy published assets.
(webMethods.DEFAULT) [mlivp.main.mlivp.main.setupstart] 2009-04-21 16:24:19.921 IST INFO: Starting setup. This may take a few minutes.
(webMethods.DEFAULT) [mlivp.main.mlivp.main.autorealfalse] 2009-04-21 16:24:19.921 IST DEBUG: Setting AutoRealise false.
(webMethods.DEFAULT) [mlivp.main.mlivp.main.removeexisting] 2009-04-21 16:24:20.671 IST DEBUG: Removing existing import of rootShared.owl
(webMethods.DEFAULT) [mlivp.main.mlivp.main.importing] 2009-04-21 16:24:21.437 IST DEBUG: Importing rootShared.owl
(webMethods.DEFAULT) [mlivp.main.mlivp.main.setupwaiting] 2009-04-21 16:58:09.218 IST INFO: Waiting for setup to finish…
(webMethods.DEFAULT) [mlivp.main.mlivp.main.loadontology] 2009-04-21 16:58:09.265 IST DEBUG: [META.MLIVP.1010] Loading ontology.
(webMethods.DEFAULT) [mlivp.main.mlivp.main.repoconn] 2009-04-21 16:58:11.468 IST DEBUG: Connecting to the repository service.
service uri: [URL]http://localhost:8090/cerebra-owlapi-svc/owlapi[/URL]
(webMethods.DEFAULT) [mlivp.main.mlivp.main.resoconn] 2009-04-21 16:58:12.625 IST DEBUG: Connecting to the reasoning service.
service uri: [URL]http://localhost:8090/cerebra-reasoning-svc/owlreasoner[/URL]
(webMethods.DEFAULT) [mlivp.main.mlivp.main.setonotlogy] 2009-04-21 16:58:50.718 IST DEBUG: [META.MLIVP.1011] Setting ontology.
(webMethods.DEFAULT) [mlivp.main.mlivp.main.synchronize] 2009-04-21 16:58:51.31 IST DEBUG: [META.MLIVP.1012] Synchronizing ontology.
(webMethods.DEFAULT) [mlivp.main.mlivp.main.consistency] 2009-04-21 16:58:52.984 IST DEBUG: [META.MLIVP.1013] Checking consistency.

Please advise.

Thanks in advance
Arul

Anyone get this to work.
please Explain how -
installed with Non std port (8190) trying to run mlivp
(metadata Lib is installed and running using 8190 as port )

After repeated failures
I ran an updated setup.sh :
more setup.sh
./mlivp.sh “-setup -host localhost -port 8190”

Did not work

and then I updated

${JAVA} -classpath ${ACLASSPATH} com.webMethods.sc.metadata.mlivp.MLIVP -setup -host localhost -port 8190
in mlivp.sh

Here is last failures COLOR=#0000ff:[/color]

B [mlivp.main.mlivp.main.repoconn] 2010-02-10 13:57:09.668 EST DEBUG: Connecting to the repository service.
service uri: [URL]http://localhost:8190/cerebra-owlapi-svc/owlapi[/URL]
(webMethods.DEFAULT) [mlivp.main.mlivp.main.failed] 2010-02-10 13:57:11.138 EST ERROR: [META.MLIVP.1001] FAILED! Stack trace:
org.semanticweb.owl.model.OWLException: Cannot instantiate KAON connection class ‘com.cerebra.lib.owlapi.client.util.impl.OWLConnectionImpl’
at org.semanticweb.owl.util.OWLManager.getOWLConnection(OWLManager.java:153)
at com.webMethods.sc.metadata.mlivp.MLIVP.getRepositoryConnection(Unknown Source)
at com.webMethods.sc.metadata.mlivp.MLIVP.run(Unknown Source)
at com.webMethods.sc.metadata.mlivp.MLIVP.main(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.semanticweb.owl.util.OWLManager.getOWLConnection(OWLManager.java:141)
… 3 more
Caused by: com.cerebra.lib.owlapi.client.extension.OWLWSClientRemoteException: Error communicating with remote service
at com.cerebra.lib.owlapi.client.util.impl.OWLConnectionImpl.mapException(OWLConnectionImpl.java:965)
at com.cerebra.lib.owlapi.client.util.impl.OWLConnectionImpl.(OWLConnectionImpl.java:114)
… 8 more
Caused by: (404)/cerebra-owlapi-svc/owlapi
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.cerebra.service.owlapi.generated.OwlapiSoapBindingStub.OWLManagerGetOwlConnection(OwlapiSoapBindingStub.java:7763)
at com.cerebra.lib.owlapi.client.util.impl.OWLConnectionImpl.(OWLConnectionImpl.java:110)
… 8 more[/b]

B [mlivp.main.mlivp.main.repoconn[/b]

Did a re-install of the metadata library only and re ran mlivp successfully

I would not place much effort on MDL, as is on dead path.

The test I made on wM 8.0 uses CentraSite for metadata, and begins to be something useful. MDL is simply CRAP.

Just a humble recommendation.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.