Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC Extensions Development Environment Setup Issue - For Jetty Based Server Launch

Hi,

I am using v5.0.2. Trying to establish a development environment for building RTC extensions using Java API(plugin development).

While validating the Jetty based server launch. Please find the connection issues from the console. I tried to use the public URI but couldn't bring up the interface.

As mentioned in the workshop. Ignored the "framework.BundleException: A fragment bundle cannot be started:" errors

11:09:36,019 [Start Level Event Dispatcher] ERROR com.ibm.team.server.embedded.jetty.auth.Activator - Failed to locate teamserver.properties

2015-09-01 11:09:42.477:INFO::Logging to STDERR via org.mortbay.log.StdErrLog

2015-09-01 11:09:42.540:INFO::jetty-6.1.x

2015-09-01 11:09:42.914:INFO::Started SocketConnector@0.0.0.0:9080

2015-09-01 11:09:43.008:INFO::Started SslSocketConnector@0.0.0.0:9443

....

Sep 1, 2015 11:28:24 AM com.ibm.team.repository.service.internal.discovery.PendingFriendsService removeFriend

INFO: 234567: Cannot find friend by title: JTS

11:28:31,825 [main]  INFO .repository.service.internal.rdb.ConnectionFactory  - CRJAZ1365I The server is attempting to connect to the following database: "C:\Ravikanth\RTC\RTC502Dev\workspaces\dev1/../server/conf/jazz/derby/repositoryDB"
11:28:32,371 [main]  INFO .repository.service.internal.rdb.ConnectionFactory  - CRJAZ1364I The connection to the following database was successful:
 Db Product Name: Apache Derby
  Db Product Version: 10.10.2.0 - (1582446)
  Db URL: jdbc:derby:C:\Ravikanth\RTC\RTC502Dev\workspaces\dev1/../server/conf/jazz/derby/repositoryDB;create=true
  Jdbc Driver Name: Apache Derby Embedded JDBC Driver
  Jdbc Driver Version: 10.10.2.0 - (1582446)
11:28:32,886 [main]  INFO pository.service.internal.ServerDescriptionService  - CRJAZ1971I The server is configured with:
  Public URI: "https://localhost:7443/jazz"
11:28:34,477 [main]  INFO team.fulltext.service.internal.FullTextServiceImpl  - CRJAZ8192I: Full-text Index Location: C:\Ravikanth\RTC\RTC502Dev\workspaces\server\conf\jazz\indices\workitemindex\_fVWmZVDGEeW5ZtLsGK_wUw
11:28:39,562 [jazz: AsynchronousTaskRunner-6 @@ 11:28] ERROR service.internal.discovery.ServiceRegistrationTask  - Error updating discovery service contributions
com.ibm.team.repository.common.TeamRepositoryException: Error updating service contributions for the JTS from https://localhost:7443/jazz/scr
 at com.ibm.team.repository.service.internal.discovery.DiscoveryService.initJazzServiceContributions(DiscoveryService.java:982)
 at com.ibm.team.repository.service.internal.discovery.DiscoveryService.updateJtsServiceContributions(DiscoveryService.java:295)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
 at java.lang.reflect.Method.invoke(Method.java:611)
 at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
 at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
 at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
 at com.sun.proxy.$Proxy772.updateJtsServiceContributions(Unknown Source)
 at com.ibm.team.repository.service.internal.discovery.ServiceRegistrationTask.runTask(ServiceRegistrationTask.java:73)
 at com.ibm.team.repository.service.async.AbstractAutoScheduledTask.executeTask(AbstractAutoScheduledTask.java:96)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
 at java.lang.reflect.Method.invoke(Method.java:611)
 at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
 at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
 at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
 at com.sun.proxy.$Proxy774.executeTask(Unknown Source)
 at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.runTask(AsynchronousTaskRunner.java:185)
 at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.run(AsynchronousTaskRunner.java:138)
 at java.lang.Thread.run(Thread.java:761)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to https://localhost:7443 refused
 at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
 at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
 at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
 at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
 at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
 at com.ibm.team.jfs.app.http.client.internal.ExtensibleRequestDirector.execute(ExtensibleRequestDirector.java:149)
 at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
 at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
 at com.ibm.team.repository.service.internal.discovery.DiscoveryService.getJtsSCR(DiscoveryService.java:1454)
 at com.ibm.team.repository.service.internal.discovery.DiscoveryService.updateSCRInfo(DiscoveryService.java:747)
 at com.ibm.team.repository.service.internal.discovery.DiscoveryService.initJazzServiceContributions(DiscoveryService.java:976)
 ... 22 more
Caused by: java.net.ConnectException: Connection refused: connect
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:412)
 at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:271)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:258)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:376)
 at java.net.Socket.connect(Socket.java:546)
 at com.ibm.jsse2.SSLSocketImpl.connect(SSLSocketImpl.java:88)
 at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:375)
 at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
 ... 32 more
11:28:54,641 [1171604949@qtp-1610768386-2]  WARN com.ibm.team.repository.servlet.TeamServerServlet   - CRJAZ1181W Security notice during initialization: Allowing ADMIN user access.  It is recommended that you disable the ADMIN user and create a real user with administrative rights.
11:28:54,687 [1171604949@qtp-1610768386-2]  WARN com.ibm.team.repository.servlet.TeamServerServlet   - CRJAZ1182W The following security notice is displayed during initialization: Allowing identity assertion. 
11:28:54,703 [1171604949@qtp-1610768386-2]  WARN com.ibm.team.repository.servlet.TeamServerServlet   - CRJAZ2076I Product Details:
  Change and Configuration Management - Core Libraries, Version 5.0.2 (RTC-I20141031-0926)
  Jazz Foundation - Core Libraries, Version 5.0.2 (RJF-I20141028-1603)

 

Thank you,

Ravikanth Chavali

 

0 votes


Accepted answer

Permanent link

I realized my mistake...

For the first time alone to create development time repository database.We would do the JUnit Launch and make sure the Test Database is created and JUnit view shows success.

On the Run Configurations dialog, select JUnit2 Launch > [RTCExt] Create RTC Test Database and then click Run

But I think I did the same thing(JUnit Launch) to actually launch the Jetty Server. instead of using the OSGI Launch.

Both the times JUnit view showed success and was wondering why on the second time or was I looking at the old results.

...

I later(now) tried the OSGI Launch and it worked. I was able to login to "https://localhost:7443/jazz" and work with RTC Extensions.

Sorry for any inconvenience caused.

Thank you, Ravikanth Chavali

Ralph Schoon selected this answer as the correct answer

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 411

Question asked: Sep 01 '15, 2:19 p.m.

Question was seen: 4,139 times

Last updated: Sep 01 '15, 11:54 p.m.

Confirmation Cancel Confirm