It's all about the answers!

Ask a question

running the Jetty Release 1 server


Annie Ying (2062103) | asked Aug 05 '08, 2:13 p.m.
JAZZ DEVELOPER
Hi

I'm having trouble getting the Jetty server launched from RTC. I am using the launch configuration from the wiki (JazzServer-06-RTC10-Maximal.launch) and in my runtime I have the license plugin from server zip (in jazz/server/license-update-site/com.ibm.team.rtc.server.license.standard-trial) I keep getting an error saying at the Setup Step 4:

An error occurred while saving the configuration properties. Please check your server log for more details.

However, I don't see any errors written in the Tomcat server log.

Please help! Thanks!
Annie

16 answers



permanent link
megha mittal (15112613) | answered Apr 15 '09, 10:11 a.m.
Hi ,
I am using jetty server in RTC1.0.1.1 and i am facing same issue as mentioned in this topic .I tried adding all plugins mentioned in earlier reply to my launch config but still in web UI repository permissions are grayed out shows "directory service is not writable" .

I am using non LDAP user registry.Also my "Advanced properties" link on web UI shows "DETECT" i tried to change it to jetty , on save it showed me error in "saving configuration properties" please check your server logs for more details".

permanent link
Annie Ying (2062103) | answered Aug 08 '08, 11:04 a.m.
JAZZ DEVELOPER
4. There is also another bug: You must create a new user account with "JazzAdmin" access. Once a user account is created, you cannot change the repository permissions.


There seems to be a related bug here: a user account with JazzAdmin access cannot persist the JazzAdmin permissions after the Jetty server is relaunched.

permanent link
Annie Ying (2062103) | answered Aug 07 '08, 11:18 a.m.
JAZZ DEVELOPER
It turns out that the WIKI page on running a Jetty server is inaccurate and there are a few bugs in the Jetty server. Thanks to the help of Matt, we found that we need the following steps to get the Jetty server into a reasonable state:

1. Install the JUnit test source to the RTC client (The JUnit code has some code to tell the server that it is a development server).
- Download the JUnit test source at https://jazz.net/downloads/rational-team-concert/releases/1.0/JazzJUnitTests-0.6.zip
- Unzip it (on a MAC, do it on command line. on a Windows, use the 7-zip software suggested by the Jazz team. Otherwise there can be problems with the long names) to $RTC-Client-PATH/jazz/client/eclipse. The content of the zip should be unzipped to the "links" and the "source" folders there.
- Enable the JUnit test plugins in the RTC. Go to Window --> Preferences --> Plug-in Development --> Target Platform. Select the Target "Jazz JUnit Tests Source and Binaries" and press Load Target.

2. Modify the launch configuration file (https://jazz.net/wiki/bin/viewfile/Main/JazzServerRunAndDebug?rev=1;filename=JazzServer-06-RTC10-Maximal.launch) to include the following test plugins:
- com.ibm.team.repository.service.tests
- com.ibm.team.repository.common.serialize.tests
- com.ibm.team.repository.common.test
- com.ibm.team.repository.tests.common
- com.ibm.team.repository.tests.service
- org.eclipse.test.performance
3. Run the server. You will notice that there are two errors as follows. Ignore them as they are induced by the JUnit tests for testing purposes.

com.ibm.team.repository.tests.service.internal.IFailingService
CRJAZ1092I The service class "com.ibm.team.repository.tests.service.internal.FailingService" failed during activation.

com.ibm.team.repository.tests.service.internal.INoClassDefFoundService
CRJAZ1138I Failed to create service instance com.ibm.team.repository.tests: "com.ibm.team.repository.tests.service.internal.NoClassDefFoundService".

4. There is also another bug: You must create a new user account with "JazzAdmin" access. Once a user account is created, you cannot change the repository permissions.

permanent link
Matt Lavin (2.7k2) | answered Aug 07 '08, 11:11 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
While working together out of band, we discovered a collection of needed
updates for the wiki page. Those updates will help people who hit
similar problems with the Jetty server.

aying wrote:
I'm sorry that even a simple operation is such a pain, but neither
tabbing nor clicking a new field enables the save button.

I'm suspecting that even the ADMIN account doesn't have write
access...

permanent link
Annie Ying (2062103) | answered Aug 06 '08, 5:09 p.m.
JAZZ DEVELOPER
I'm sorry that even a simple operation is such a pain, but neither tabbing nor clicking a new field enables the save button.

I'm suspecting that even the ADMIN account doesn't have write access...

permanent link
Matt Lavin (2.7k2) | answered Aug 06 '08, 4:49 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
This shouldn't be needed, but after changing the value in the text
field, press the tab button or click on a new field so that the page
will notice that you changed a value. I think the save button should
enable.

aying wrote:
Sorry... in my last message I meant to say I tried saving the User
Registry property (even without hitting Preview) but it doesn't let
me -- the save button is grayed out...

permanent link
Annie Ying (2062103) | answered Aug 06 '08, 4:34 p.m.
JAZZ DEVELOPER
Sorry... in my last message I meant to say I tried saving the User Registry property (even without hitting Preview) but it doesn't let me -- the save button is grayed out...

permanent link
Matt Lavin (2.7k2) | answered Aug 06 '08, 4:27 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Sorry, I should have gave more precise directions. Yes, I meant
modifying the 'User Registry Type' property on the 'Advanced Properties'
page of the admin web UI. After updating the property value, don't
click 'Preview' but click 'Save' immediately.

aying wrote:
Do you mean modifying the User Registry Type under the Advanced
Properties tab to JETTY? I tried, but when I pressed
"Preview", the field automatically changed back to DETECT,
and the Save button is disabled...

permanent link
Annie Ying (2062103) | answered Aug 06 '08, 4:03 p.m.
JAZZ DEVELOPER
Do you mean modifying the User Registry Type under the Advanced Properties tab to JETTY? I tried, but when I pressed "Preview", the field automatically changed back to DETECT, and the Save button is disabled...

permanent link
Matt Lavin (2.7k2) | answered Aug 06 '08, 3:28 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
I was afraid that you were in that situation (a not writable user
registry), but when running in Jetty with the Detect mode, it should be
writable.

Could you try manually changing the property value to 'JETTY'? If there
is a problem, then it should output an exception to the server console.

aying wrote:
Thanks for help again. Yes, the repository permissions are grayed out
for every user. I just realized this text may help pinpoint the
issue, but I have no idea what I should do to fix it:

Notice: You are using a directory service that is not writable. User
roles cannot be modified.

Annie

lavinmwrote:
Are they grayed out for every user? When I tried it locally, I had
no
problem changing the roles for the user I created.

aying wrote:
Great! My JOE user can log in now!!!!!!!!! Is there a chance that
this information can be documented, like on the wiki page on
"JazzServerRunAndDebug"? Or did I miss some piece of
documentation that tells me this?

Regarding the User Registry Type, it is DETECT as you expected.
Any
other ideas of why the repository permissions are screwed up?

Thanks again!
Annie

lavinmwrote:
In the development mode of the Jazz Team Server (using Jetty),
every
user in the system is treated as having the password 'password'.

Having the repository permissions checkboxes grayed out does sound
like
a problem. On the 'Advanced Properties' page in the Admin
perspective
of the web UI, what is the value of the "User Registry
Type" property?
In your setup, I would expect it to be 'DETECT'.


aying wrote:
Anyways, the 2 problems I'm having are related to user accounts.
First, only ADMIN can log into the Jetty server launched from RTC.
Any other user accounts just can't log in. A perhaps related
problem
that any user I created have the repository permissions check boxes
grayed out (the repository permission under the User Management tab
in ADMIN's page). My user accounts do have the Developer license
assigned (I got the licenses from the plugin in the
jazz/server/license-update-site directory from the server
installation zip). I'm experiencing these problems in both the
Express and the Standard Editions of the Release 1
server.

Your answer


Register or to post your answer.