JAF Tutorial Step 7 Deploying Plug-in Error
Hello,
I am having difficulty finishing the JAF Tutorial linked here: https://jazz.net/wiki/bin/view/Main/JAFTutorial
I am having difficulty finishing the JAF Tutorial linked here: https://jazz.net/wiki/bin/view/Main/JAFTutorial
Specifically on step 7 given here: https://jazz.net/wiki/bin/view/Main/JAFTutorialStepDeploy
I have managed to get the application to work successfully on the local jetty server but not been able to fully register it to the Jazz server. I followed the instructions to setup all the folders and files, but when I get to the registration of the application a few things happen.
I am able to add the application on the "Registered Applications" page. When I go into the setup though, I make it to the "Configure User Registry" step where it tells me to create a new user. I find this odd since I am already logged in as an admin (used to complete Step 3 of registering your local application) and when it is filled out it returns the error code: There was an error attempting to login as the new user ID CRJAZ1553E
If I click next again, it will return with the message: An error occurred while saving the configuration properties.ID CRJAZ1548E
Oddly enough, I can get around this behavior by simply exiting the setup and restarting it. From here, once I get past the JTS setup, the application setup will display:
We're Sorry...
The user ID you logged in with is not recognizable.
If you used the default ADMIN user to log in, you likely disabled it during the setup. Try again using the new admin user you created during the setup.
From here, if I logout and log back in (with the same admin credentials) it will briefly flash the normal windows and then hide them (as if it finished loading one last css rule to hide everything). I can still click "Next" through this part and the setup will ultimately complete (sometimes the Lifecycle Project Admin page doesn't show up unless I unregister and reregister it as well). From there while the application can be looked at through the Jazz Registered Applications page and hitting the Settings link, the link to the actual service that the application is supposed to use, given here: https://localhost:9443/jafSamples/service/com.ibm.team.jaf.sdk.samples.hellojaf.IHelloService , does not work.
It instead displays an HTTP 503 error with the following info:
type Status report
message CRJAZ1168E The following service was requested but cannot run: com.ibm.team.jaf.sdk.samples.hellojaf.IHelloService
description The requested service is not currently available.
Has anyone else run into this problem? I am ultimately just trying to learn how to plug in to the Jazz Server and write applications for its web interface but I have had no luck with multiple tutorials now.
P.S. I also found a small instruction error in part 7. This line here:
Copy the directory
server/jts/sites/update-site
(and its contents) into the directory
server/conf/jafSamples/sites
.
The first directory should be server/conf/jts/sites/update-site. I just found it using the search function in Windows Explorer.
One answer
Alright I got it!
With some help of a kind individual from IBM, we discovered that the Jazz server was detecting the plugin as a Rational Server instead of a Rational Application like it should. Our eventual solution was noticing that Jazz uses JRE 1.6 while I was using JRE 1.7 in my plugin. We also reverted the scr.xml file back to the original (ignoring the step where you delete a majority of the functionality).
With some help of a kind individual from IBM, we discovered that the Jazz server was detecting the plugin as a Rational Server instead of a Rational Application like it should. Our eventual solution was noticing that Jazz uses JRE 1.6 while I was using JRE 1.7 in my plugin. We also reverted the scr.xml file back to the original (ignoring the step where you delete a majority of the functionality).
So as a heads up to others, make sure you're using the same JRE (1.6 for Jazz 5.0) for development as your Jazz server!
Comments
Bevan Li
Jul 09 '14, 6:30 p.m.I wanted to add a quick follow up question in the event that this one is unanswerable.
Does anyone know of where I could find general instructions or an explanation of how application plug-ins are deployed to the Jazz Server? Most of the tutorial instructions seem to be specific to those exact tutorial (which I wouldn't mind using as a starting point if they were working).