Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lyo-dev] Unable to register with service provider catalog

Hi Samuel.

 

Thanks for your help,

I forget to set org.eclipse.lyo.oslc4j.core.servlet.port=8081…I didn’t know that.

 

Regards

Otto

 

Von: lyo-dev-bounces@xxxxxxxxxxx [mailto:lyo-dev-bounces@xxxxxxxxxxx] Im Auftrag von Samuel Padgett
Gesendet: Donnerstag, 10. Oktober 2013 17:58
An: Lyo project developer discussions
Cc: lyo-dev@xxxxxxxxxxx; lyo-dev-bounces@xxxxxxxxxxx
Betreff: Re: [lyo-dev] Unable to register with service provider catalog

 

Hi, Otto. Can you try setting these system properties on the server running at 8081?

-Dorg.eclipse.lyo.oslc4j.client.registryuri=http://localhost:8081/OSLC4JRegistry/catalog/singleton -Dorg.eclipse.lyo.oslc4j.core.servlet.port=8081

Right now the registry assumes it's on port 8080.
--
Samuel Padgett | IBM Rational |
spadgett@xxxxxxxxxx
Eclipse Lyo: Enabling tool integration with OSLC


Inactive hide details for Brechelmacher Otto ---10/10/2013 10:56:02 AM---Hello! I've implemented an automation provider and an Brechelmacher Otto ---10/10/2013 10:56:02 AM---Hello! I've implemented an automation provider and an asset manager and both work fine.

From:


Brechelmacher Otto <Otto.Brechelmacher@xxxxxxxxx>

To:


"lyo-dev@xxxxxxxxxxx" <lyo-dev@xxxxxxxxxxx>

Date:


10/10/2013 10:56 AM

Subject:


[lyo-dev] Unable to register with service provider catalog

Sent by:


lyo-dev-bounces@xxxxxxxxxxx





Hello!
 
I’ve implemented an automation provider and an asset manager and both work fine.
Now I tried to run both applications on one computer. Therefore I set the port number from 8080 to 8081, 8181, 80 but it failed.
(I changed the port number in pom.xml, web.xml and also the parametes of the run configuration)
 
SEVERE: Unable to register with service provider catalog
org.apache.wink.client.ClientRuntimeException: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect
       at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:240)
       at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:189)
       at org.apache.wink.client.internal.ResourceImpl.invokeNoException(ResourceImpl.java:181)
       at org.apache.wink.client.internal.ResourceImpl.get(ResourceImpl.java:310)
       at org.eclipse.lyo.oslc4j.client.OslcRestClient.getOslcResource(OslcRestClient.java:189)
       at org.eclipse.lyo.oslc4j.client.ServiceProviderRegistryClient.getServiceProviderCatalog(ServiceProviderRegistryClient.java:245)
       at org.eclipse.lyo.oslc4j.client.ServiceProviderRegistryClient.registerServiceProvider(ServiceProviderRegistryClient.java:93)
       at servlet.ServletListener$RegistrationTask.run(ServletListener.java:168)
       at java.util.TimerThread.mainLoop(Timer.java:555)
       at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect
       at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.handle(HttpURLConnectionHandler.java:57)
       at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52)
       at org.apache.wink.client.internal.handlers.AcceptHeaderHandler.handle(AcceptHeaderHandler.java:79)
       at org.apache.wink.client.internal.handlers.HandlerContextImpl.doChain(HandlerContextImpl.java:52)
       at org.apache.wink.client.internal.ResourceImpl.invoke(ResourceImpl.java:227)
       ... 9 more
Caused by: java.net.ConnectException: Connection refused: connect
       at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
       at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:75)
       at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
       at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
       at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
       at java.net.Socket.connect(Socket.java:579)
       at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
       at sun.net.www.http.HttpClient.<init>(HttpClient.java:203)
       at sun.net.www.http.HttpClient.New(HttpClient.java:290)
       at sun.net.www.http.HttpClient.New(HttpClient.java:306)
       at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)
       at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
       at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)
       at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.processRequest(HttpURLConnectionHandler.java:97)
       at org.apache.wink.client.internal.handlers.HttpURLConnectionHandler.handle(HttpURLConnectionHandler.java:54)
       ... 13 more
 
When I use port 8080 it works and when I change the port and comment
serviceProviderURI = client.registerServiceProvider(serviceProvider)
it works and I can run both tools on my machine (except service provider registration on !8080).
 
How can I solve this problem?
 
Regards
 

OTTO BRECHELMACHER
Junior Engineer

Safety & Security Department

Safe and Autonomous Systems

AIT Austrian Institute of Technology GmbH

Donau-City-Strasse 1  |  1220 Vienna  |  Austria
M +43 664 8251393  |  F +43 50550-4150

otto.brechelmacher@xxxxxxxxx  |  http://www.ait.ac.at

 
FN: 115980 i HG Wien | UID: ATU14703506
www.ait.ac.at/Email-Disclaimer
 _______________________________________________
lyo-dev mailing list
lyo-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/lyo-dev


Back to the top