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

WID generated file (smap, java) not shown in Pending Changes

Hi

We are using Websphere Integration Developer (WID7) and have installed RTC 2.0.0.2 on top of it.
Also we are using serviceDeploy command line utility of Websphere ESB to automate the EAR creation process. But there is a small problem caused by RTC here.

WID creates ".smap" & ".java" files (file name pattern Custom*.java & Custom*.java.smap) on building mediations that use Custom classes. These smap and java files do not show up in the Pending Changes view of RTC integrated with WID. Hence the developers do not commit the files to RTC.

But the serviceDeploy command (used in automated builds) of creating a EAR requires that smap and java files be present in source for it to create classes corresponding to them in EAR. Refer link: https://www-304.ibm.com/support/docview.wss?uid=swg21384239

We are stuck here. Please can anyone point would why smap and java files of WID mediations are not displayed in Pending Changes. Is there any setting in RTC that we can change to make this happen?

Thanks!
Rahul

0 votes



9 answers

Permanent link
Two standard things to check.

Request in Eclipse a "refresh" of the project that contains these
generated files. If that does make those files appear in the pending
changes view, then the problem is just that whatever WID process created
those files has neglected to notify Eclipse that something has changed.

If that does not make those files appear, then you could check whether
those files are being ignored (look for a .jazzignore file in the folder
containing those files, or in some parent folder).

Cheers,
Geoff


On 12/17/2010 3:08 AM, techforum99 wrote:
Hi

We are using Websphere Integration Developer (WID7) and have installed
RTC 2.0.0.2 on top of it.
Also we are using serviceDeploy command line utility of Websphere ESB
to automate the EAR creation process. But there is a small problem
caused by RTC here.

WID creates ".smap"& ".java" files (file name
pattern Custom*.java& Custom*.java.smap) on building mediations
that use Custom classes. These smap and java files do not show up in
the Pending Changes view of RTC integrated with WID. Hence the
developers do not commit the files to RTC.

But the serviceDeploy command (used in automated builds) of creating a
EAR requires that smap and java files be present in source for it to
create classes corresponding to them in EAR. Refer link:
https://www-304.ibm.com/support/docview.wss?uid=swg21384239

We are stuck here. Please can anyone point would why smap and java
files of WID mediations are not displayed in Pending Changes. Is
there any setting in RTC that we can change to make this happen?

Thanks!
Rahul

0 votes


Permanent link
Hi again Geoff :)

Thanks for your reply on this thread also.

I tried the two things your suggested. But unfortunately, i am still facing the issue. Even on doing refresh the files are not reflecting in the Pending Changes.

Secondly, I searched the developers workspace for ".jazzignore" file but did not find it either.

This seems to be an issue specifically with RTC-installed-on-top-of-WID (RTC Work Items perspective available in WID). The reason i think so is, I tried a WID separate and RTC separate installation. On this machine when I built the mediations using WID, the "smap" and "java" generated files are shown in the Pending Changes view.
Note: The package of these files is ${Project_Name}\gen\src\sca\component\mediation\java

Please can you give your thoughts.

Thanks!
Rahul


Two standard things to check.

Request in Eclipse a "refresh" of the project that contains these
generated files. If that does make those files appear in the pending
changes view, then the problem is just that whatever WID process created
those files has neglected to notify Eclipse that something has changed.

If that does not make those files appear, then you could check whether
those files are being ignored (look for a .jazzignore file in the folder
containing those files, or in some parent folder).

Cheers,
Geoff


0 votes


Permanent link
I don't have any good ideas at this point, so you'll probably need to
work with Rational Support.

Some random things to try:
- Try creating .java and .smap files directly using the Eclipse
text-editor in those directories where the generated files are being
stored ... do they show up in pending changes view?
- If not, what if you create those files directly using the Eclipse text
editor in some other directory?
- Try modifying the generated .java and .smap files using the Eclipse
text-editor ... does that make them show up in the pending changes view?

Cheers,
Geoff

On 12/20/2010 4:38 AM, techforum99 wrote:
Hi again Geoff :)

Thanks for your reply on this thread also.

I tried the two things your suggested. But unfortunately, i am still
facing the issue. Even on doing refresh the files are not reflecting
in the Pending Changes.

Secondly, I searched the developers workspace for
".jazzignore" file but did not find it either.

This seems to be an issue specifically with
RTC-installed-on-top-of-WID (RTC Work Items perspective available in
WID). The reason i think so is, I tried a WID separate and RTC
separate installation. On this machine when I built the mediations
using WID, the "smap" and "java" generated files
are shown in the Pending Changes view.
Note: The package of these files is
${Project_Name}\gen\src\sca\component\mediation\java

Please can you give your thoughts.

Thanks!
Rahul


gmclemmwrote:
Two standard things to check.

Request in Eclipse a "refresh" of the project that
contains these
generated files. If that does make those files appear in the
pending
changes view, then the problem is just that whatever WID process
created
those files has neglected to notify Eclipse that something has
changed.

If that does not make those files appear, then you could check
whether
those files are being ignored (look for a .jazzignore file in the
folder
containing those files, or in some parent folder).

Cheers,
Geoff



0 votes


Permanent link
Hi Geoff

Thanks for those witty suggestions.

These are the results:
1. & 2. If we manually create .java or .java.smap files in that directory (or any other directory) then they start showing up in the pending changes view

3. Even on manually modifying the file it does not show in the pending changes.

We are also communicating with RTC Support on this and they suggested to right+click on the "gen" folder and uncheck the 'Derived' option so that RTC starts showing the files in pending changes. We'll this did not work directly. But on combining your suggestions and the suggestions from Rational support we got some results to that analysis can continue on this matter. This is what we did and these are the results:

1. Instead of doing a right+click on gen, do a right+click on the actual file Custom*.java or Custom*.java.smap. Go to properties of this file and the Derived option is already checked by default.

2. Now uncheck the Derived option of the file & Click Ok. Refresh the workspace as well as pending changes view. No changes shown in Outgoing.

3. But (this is the turning point), create a new file anyname.anyextension and suddenly the newly created file as well as the one whose derived option we changed above start showing in the Pending Changes view.

With this new findings, can you guess what might be going wrong?

Thanks
Rahul


I don't have any good ideas at this point, so you'll probably need to
work with Rational Support.

Some random things to try:
- Try creating .java and .smap files directly using the Eclipse
text-editor in those directories where the generated files are being
stored ... do they show up in pending changes view?
- If not, what if you create those files directly using the Eclipse text
editor in some other directory?
- Try modifying the generated .java and .smap files using the Eclipse
text-editor ... does that make them show up in the pending changes view?

Cheers,
Geoff

0 votes


Permanent link
At this point, you've collected enough information to make it clear that
something anomalous is going on ... ignoring Derived files is
deliberate, but the pending changes view not noticing (even when
refreshed) that a file is no longer derived is a bug (probably some
caching bug).

Also, it would be worth submitting a request to the WID team to have a
preference indicating whether or not you want these generated files to
be marked as Derived (you can be sure that folks will forget to remove
the "Derived" flag, and get confused).

Cheers,
Geoff

On 12/21/2010 11:23 AM, techforum99 wrote:
Hi Geoff

Thanks for those witty suggestions.

These are the results:
1.& 2. If we manually create .java or .java.smap files in that
directory (or any other directory) then they start showing up in the
pending changes view

3. Even on manually modifying the file it does not show in the pending
changes.

We are also communicating with RTC Support on this and they suggested
to right+click on the "gen" folder and uncheck the
'Derived' option so that RTC starts showing the files in pending
changes. We'll this did not work directly. But on combining your
suggestions and the suggestions from Rational support we got some
results to that analysis can continue on this matter. This is what we
did and these are the results:

1. Instead of doing a right+click on gen, do a right+click on
the actual file Custom*.java or Custom*.java.smap. Go to
properties of this file and the Derived option is already checked by
default.

2. Now uncheck the Derived option of the file& Click Ok. Refresh
the workspace as well as pending changes view. No changes shown in
Outgoing.

3. But (this is the turning point), create a new file
anyname.anyextension and suddenly the newly created file as well as
the one whose derived option we changed above start showing in the
Pending Changes view.

With this new findings, can you guess what might be going wrong?

Thanks
Rahul


gmclemmwrote:
I don't have any good ideas at this point, so you'll probably need to

work with Rational Support.

Some random things to try:
- Try creating .java and .smap files directly using the Eclipse
text-editor in those directories where the generated files are being

stored ... do they show up in pending changes view?
- If not, what if you create those files directly using the Eclipse
text
editor in some other directory?
- Try modifying the generated .java and .smap files using the
Eclipse
text-editor ... does that make them show up in the pending changes
view?

Cheers,
Geoff


0 votes


Permanent link
Thanks Geoff for all your help!
I'll follow up with the WID and RTC support and post the progess here.

Regards
Rahul

0 votes


Permanent link
Hi All

Just a small update on this issue. We had raised a Problem Management Report (PMR) with IBM for this and these are the updates

1. Update the WebSphere Process Server / WebSphere ESB to version 7.0.0.3.
2. Apply the fix packs JR38070, JR38174, IC72369 in this specific order
3. Apply the fix pack JR37152 also (in case your application uses JDBC adapter).

Now use serviceDeploy to bundle mediations into EAR files. The *.smap & *.java files will now be generated during Deployment time. They will no longer need to be bundled in the Zip that is input to serviceDeploy. So in short, there is no need to commit the WID generated *.smap and *.java files to RTC Repository.

Thanks
Rahul

0 votes


Permanent link
Hi All,

Many thanks for all your posts. It was indeed helpful to locate the issue atleast :). But the problem itself still exists with WID 7.5.1 + RTC 3.0.1 together installed.

Though I managed to execute the above suggested steps in this thread, to uncheck the derived type of .java or .java.smap files and create a new file with xyz.abc extension, the 'pending changes view' of RTC did not showing up the *.java, *.java.smap files.

Please help me to checkin these files into RTC. And do let me know if you have any further details.

Thanks in advance,
Rajkumar

0 votes


Permanent link
Hi All,

Many thanks for all your posts. It was indeed helpful to locate the issue atleast :). But the problem itself still exists with WID 7.5.1 + RTC 3.0.1 together installed.

Though I managed to execute the above suggested steps in this thread, to uncheck the derived type of .java or .java.smap files and create a new file with xyz.abc extension, the 'pending changes view' of RTC did not showing up the *.java, *.java.smap files.

Please help me to checkin these files into RTC. And do let me know if you have any further details.

Thanks in advance,
Rajkumar

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

Question asked: Dec 17 '10, 2:59 a.m.

Question was seen: 7,977 times

Last updated: Dec 17 '10, 2:59 a.m.

Confirmation Cancel Confirm