Set up Jazz Web UI development environment
Hello,
I'm trying to develop an extension page to run in the Jazz web UI. I am new to developing extensions, and am following this guide as the steps for how to create the basic page:
The guide does not cover step 1: "How to setup your Jazz Web development environment" at all, nor step 7: "Add the web bundle to the server launch configuration" in any detail. I am setting up an enviroment completely from scratch with fresh installs.
I have tried following this guide:
But every time I do, I get the problem that ADMIN does not have an active developer licence applied to it, and cannot go any further. The guide is also very long, and I think covers areas I don't need to be able to create the HiJazz page above.
What do I need to do to be able to add the HiJazz page to my localhost? Unfortunately I have not worked with launching servers through RTC/Eclipse before, and I'm completely at a loss at how much of the guide above I need to follow, or why it's not working, or what I actually do to get the HiJazz page onto localhost when (if) I can successfully set up the environment.
3 answers
I would suggest to look into this how to set up your environment: https://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ . If ADMIN needs a license, the only place where you can assign that user one is the Eclipse Client as mentioned in https://jazz.net/library/article/1000 which is the basis of my blog post and of which you should at least do Lab 1 as mentioned. If you need good Feature Based Launches, these are also accessible in https://jazz.net/library/article/1000 . I am considering to publish new examples but we don't have that yet.
If you follow the suggestions above, you will be able to debug and it will be easier to fix problems.
If you follow the suggestions above, you will be able to debug and it will be easier to fix problems.
Comments
Hi Ralph,
That is the guide I was following. I have done a complete uninstall and followed the guide again from the start, and I get the same error at step 20 b:
Evaluating Load Selection
Unable to obtain licence to read SCM related data: An error response was received from the Jazz Team Server. Status=400. Message: CRJAZ0972I the "com.ibm.team.scm.readaccess.general" operation was forbidden because the "Developer" licence is currently deactivated.
I cannot manually assign the licence to ADMIN through the web UI. I had a look at the Tomcat window and found an error, which I've pasted below as I think it's too long for this comment.
Any idea as to what has happened? I have followed the guide exactly, with the one exception of installing the quality manager where the guide said it could be skipped, as without that I could not import the qm tar file.
- CRJCA0043W There was an error executing an LPA request with hos
t https://localhost:9443.
>>> HEAD https://localhost:9443/jts/storage/com.ibm.team.lpa.c9d572b1-58d8-4a4c-
bdbd-21f68ab4d88f HTTP/1.1
>>> Cache-Control: x-lpa-local
com.ibm.team.jfs.app.oauth.OAuthInvalidConsumerKeyException: CRJZS0033E The cons
umer key is not valid and the consumer may not be registered. The service provid
er is "https://localhost:9443". The consumer key is "d89...bce".
at com.ibm.team.jfs.app.oauth.OAuthHelper.checkResponseForOAuthErrorsInt
ernal(OAuthHelper.java:1921)
at com.ibm.team.jfs.app.oauth.OAuthHelper.checkResponseForOAuthErrors(OA
uthHelper.java:1905)
at com.ibm.team.jfs.app.oauth.OAuthHttpResponseInterceptor.process(OAuth
HttpResponseInterceptor.java:31)
at com.ibm.team.lpa.common.CommonInitializer$2.process(CommonInitializer
.java:285)
at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttp
Processor.java:116)
at org.apache.http.protocol.HttpRequestExecutor.postProcess(HttpRequestE
xecutor.java:342)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultReq
uestDirector.java:472)
at com.ibm.team.jfs.app.http.client.internal.ExtensibleRequestDirector.e
xecute(ExtensibleRequestDirector.java:149)
at com.ibm.team.lpa.common.clients.LpaRequestDirector.internalExecute(Lp
aRequestDirector.java:189)
at com.ibm.team.lpa.common.clients.LpaRequestDirector.execute(LpaRequest
Director.java:168)
at com.ibm.team.lpa.common.http.client.cache.HttpClientCache.executeCach
eMiss(HttpClientCache.java:205)
at com.ibm.team.lpa.common.http.client.cache.HttpClientCache.execute(Htt
pClientCache.java:122)
at com.ibm.team.lpa.common.http.client.cache.HttpClientCache.execute(Htt
pClientCache.java:87)
at com.ibm.team.lpa.common.http.client.cache.HttpClientCacheDirector.exe
cute(HttpClientCacheDirector.java:30)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpCl
ient.java:820)
at com.ibm.team.lpa.common.clients.CommonHttpClient.execute(CommonHttpCl
ient.java:100)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpCl
ient.java:919)
at com.ibm.team.lpa.common.jfs.clients.AbstractStorageClient.execute(Abs
tractStorageClient.java:55)
at com.ibm.team.lpa.common.jfs.clients.AbstractStorageClient.exists(Abst
ractStorageClient.java:118)
at com.ibm.team.lpa.common.util.StorageUtil.areStorageAreasCreated(Stora
geUtil.java:26)
at com.ibm.team.lpa.common.CommonInitializer.initialize(CommonInitialize
r.java:522)
at com.ibm.team.lpa.LPAInitializer.init(LPAInitializer.java:30)
at com.ibm.team.jfs.app.servlet.AppContainerServlet.executeAppInitialize
rs(AppContainerServlet.java:428)
at com.ibm.team.jfs.app.servlet.AppContainerServlet.service(AppContainer
Servlet.java:256)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service
(ServletRegistration.java:61)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(P
roxyServlet.java:126)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyS
ervlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet
.java:120)
at com.ibm.team.repository.server.servletbridge.JazzServlet.service(Jazz
Servlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
at com.ibm.team.repository.server.servletbridge.BridgeFilter.initialize(
BridgeFilter.java:244)
at com.ibm.team.repository.server.servletbridge.BridgeFilter.doFilter(Br
idgeFilter.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:98)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.ja
va:309)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp
11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
AbstractProtocol.java:579)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin
t.java:307)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
at java.lang.Thread.run(Thread.java:736)
2013-08-20 11:09:59,843 RQM [qm: AsynchronousTaskRunner-2] ERROR com.ibm.team.pr
ocess - CRJAZ6016E:Exception occurred attempting
to load project area change listeners.
com.ibm.team.repository.common.transport.TeamServiceRegistryException: CRJAZ1972
E The "com.ibm.team.workitem.service.internal.AllNodeProjectAreaChangeListener"
service failed to activate because a service that it depends on, "com.ibm.team.w
orkitem.common.internal.IWorkItemRepositoryService", failed to be activated. For
more details, open the help system and search for CRJAZ1972E.
at com.ibm.team.repository.common.transport.internal.registry.AbstractAc
tivationManagerOwner.buildServicesMap(AbstractActivationManagerOwner.java:331)
at com.ibm.team.repository.common.transport.internal.registry.AbstractAc
tivationManagerOwner.doActivate(AbstractActivationManagerOwner.java:678)
at com.ibm.team.repository.common.transport.internal.registry.ExtensionS
erviceActivationManagerOwner.doActivate(ExtensionServiceActivationManagerOwner.j
ava:89)
at com.ibm.team.repository.common.transport.internal.registry.ExtensionS
erviceActivationManagerOwner.forceActivate(ExtensionServiceActivationManagerOwne
r.java:111)
at com.ibm.team.repository.common.transport.registry.ExtensionServiceEle
mentDescriptor.getImplementation(ExtensionServiceElementDescriptor.java:366)
at com.ibm.team.process.internal.service.ProjectAreaChangeListenerRegist
ry$ProjectAreaChangeListenerExtensionServiceElementDescriptor.getImplementation(
ProjectAreaChangeListenerRegistry.java:233)
at com.ibm.team.process.internal.service.ProjectAreaChangeListenerRegist
ry.getCalledOnAllNodesListeners(ProjectAreaChangeListenerRegistry.java:200)
at com.ibm.team.process.internal.service.ProjectAreaChangeListenerRunnin
gOnAllNodesTask.runTask(ProjectAreaChangeListenerRunningOnAllNodesTask.java:47)
at com.ibm.team.repository.service.async.AbstractAutoScheduledTask.execu
teTask(AbstractAutoScheduledTask.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.in
voke(ExportProxyServiceRecord.java:361)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.ac
cess$0(ExportProxyServiceRecord.java:347)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$Ex
portedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy885.executeTask(Unknown Source)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRu
nner.runTask(AsynchronousTaskRunner.java:136)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRu
nner.run(AsynchronousTaskRunner.java:99)
at java.lang.Thread.run(Thread.java:736)
Caused by: com.ibm.team.repository.common.transport.TeamServiceRegistryException
: CRJAZ1972E The "com.ibm.team.workitem.service.internal.WorkItemRepositoryServi
ce" service failed to activate because a service that it depends on, "com.ibm.te
am.workitem.service.IWorkItemServer", failed to be activated. For more details,
open the help system and search for CRJAZ1972E.
at com.ibm.team.repository.common.transport.internal.registry.AbstractAc
tivationManagerOwner.buildServicesMap(AbstractActivationManagerOwner.java:331)
at com.ibm.team.repository.common.transport.internal.registry.AbstractAc
tivationManagerOwner.doActivate(AbstractActivationManagerOwner.java:678)
at com.ibm.team.repository.common.transport.internal.registry.ServicePro
viderActivationManagerOwner.getService(ServiceProviderActivationManagerOwner.jav
a:129)
at com.ibm.team.repository.common.transport.internal.registry.OsgiServic
esManager.getService(OsgiServicesManager.java:281)
at com.ibm.team.repository.common.transport.internal.registry.OsgiServic
esManager.getService(OsgiServicesManager.java:290)
at com.ibm.team.repository.common.transport.internal.registry.AbstractAc
tivationManagerOwner.buildServicesMap(AbstractActivationManagerOwner.java:328)
... 19 more
Caused by: com.ibm.team.repository.common.transport.TeamServiceRegistryException
: CRJAZ1115I The "com.ibm.team.workitem.service.IWorkItemServer" service was not
registered.
at com.ibm.team.repository.common.transport.internal.registry.OsgiServic
esManager.getClassForInterface(OsgiServicesManager.java:223)
at com.ibm.team.repository.common.transport.internal.registry.OsgiServic
esManager.getService(OsgiServicesManager.java:289)
at com.ibm.team.repository.common.transport.internal.registry.AbstractAc
tivationManagerOwner.buildServicesMap(AbstractActivationManagerOwner.java:328)
... 24 more
Emma,
You might experience the license issue Morten describes in https://jazz.net/forum/questions/110546/warn-eamrepositoryprovisioninternalprovisionservice-crjzs0383w-failed-to-resolve-the-bundle?page=1&focusedAnswerId=111754#111754
<<<<<<<<<<>>>>>>>>>>
Yes, you are right about the licenses. I'm just pointing out that if you go to https://jazz.net/downloads/rational-team-concert/releases/4.0?p=allDownloads#licenses and download the top one "10 free licenses", I will not work for RTC v4.0 + extension workshop (at least it didn't for me).
You have to download the 2. one saying "Updated RTC Developer Trial with fix for work item 249861". Else you will get an error upon license import.
<<<<<<<<<<>>>>>>>>>>
You might experience the license issue Morten describes in https://jazz.net/forum/questions/110546/warn-eamrepositoryprovisioninternalprovisionservice-crjzs0383w-failed-to-resolve-the-bundle?page=1&focusedAnswerId=111754#111754
<<<<<<<<<<>>>>>>>>>>
Yes, you are right about the licenses. I'm just pointing out that if you go to https://jazz.net/downloads/rational-team-concert/releases/4.0?p=allDownloads#licenses and download the top one "10 free licenses", I will not work for RTC v4.0 + extension workshop (at least it didn't for me).
You have to download the 2. one saying "Updated RTC Developer Trial with fix for work item 249861". Else you will get an error upon license import.
<<<<<<<<<<>>>>>>>>>>