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

Plugin works on Tomcat/Windows but fails on Websphere/Linux

I have two plugins that work perfectly on my local box (Windows/Tomcat server/Java 6/RTC v4 fresh install), but when I deploy on a test machine (Linux/Websphere/Java 5/RTC v4 upgrade from v2), it runs into problems. One plugin does not even get recognized, and the other gets recognized, but does not do what it is supposed to do.

I would have thought that the OS and web server would have little bearing on the plugins, but obviously I am missing something... Are there any gotchas I should be aware of in this scenario? 

Also, how do I find out if my plugins got provisioned alright on Websphere? On Tomcat, I use the OSGi console. The logs do not get created either - so I am kinda stumped right now! :(

Any help is much appreciated, thanks!

1 vote

Comments

Just wanted to clarify what I mean by "recognized" - The plugin was listed and available for me to use in the operation behavior tab.


Accepted answer

Permanent link
Hi Anita,

I have seen a post around issues with the zip when using an update site generated on Windows on a Unix system I am not sure why that should be an issue, but you could:

- Try to unzip the jar file: jar –xvf myjar.jar
- Try to install RTC on Linux/Unix, check the access permissions and package the files again there.
Anita Jey selected this answer as the correct answer

1 vote

Comments

Thanks Ralph for this suggestion. There was something about the way Windows generates the update site that was the problem. I created the plugin code and ini files on the Linux machine, and it worked and I am finally able to move on!


6 other answers

Permanent link
make sure you reset the server as I posted in another topic..

all my plugins, developed on Tomcat work unchanged on websphere..

If u have access to the server, you can look at the server log to see if there is a loading failure..

there is no debugging info outside the server that is useful.

0 votes


Permanent link
Your test environment states that you are running Java 5.  RTC 4.0 only supports the following Java runtime environments.  If you move to Java 6 then your plugins may in fact work.

Supported Java environments:
  • IBM Java SDK 7.0 SR1 New for CLM 2012
  • IBM Java SDK 6.0 SR10 FP1 [Bundled]
  • IBM Java SDK 6.0.1.1 (J9 2.6) specifically for System z
  • Oracle Java SDK/JRE/JDK 7.0 New for CLM 2012
  • Sun Java SDK/JRE/JDK 6.0 Update 23

0 votes

Comments

Hi David... I am not a regular Websphere user, and so I did not know that, apparently, RTC runs on Websphere' own installed version of Java, which is already Java 6 on the Test machine!! so unfortunately, it did not lead anywhere, but thanks for your help, I will keep it in mind for future problems.


Permanent link
Check out this post with what looks like directions on how to access the OSGi console: https://jazz.net/forum/questions/67113/help-operation-advisor-plugin-not-found-on-prod-sys/67117

0 votes

Comments

Thanks for the link Robin. I will try it out and see what I find!


Permanent link
Robin, I read through the links, and I find that when I invoke the provisionStatus call on the server, it appears like the plugins got installed cleanly:
<snip>
CRJAZ0303I The profile install from "file:jazz/sites/copybook-site" was started at "Tue Aug 28 01:35:58 EDT 2012".
CRJAZ0300I Installing the feature "com.test.copybook.feature_1.0.0.201208231230".
CRJAZ0299I Installing bundle from the URL "file:/JazzTeamServer/server/conf/jazz/sites/copybook-site/plugins/com.test.copybook.common_1.0.0.201208231230.jar".
CRJAZ0299I Installing bundle from the URL "file:/JazzTeamServer/server/conf/jazz/sites/copybook-site/plugins/com.test.copybook.service_1.0.0.201208231230.jar".
</snip>

But when I use the OSGi console, I see errors related to my plugin:

Provisioning using "/JazzTeamServer/server/conf/jazz/provision_profiles".
CRJAZ0285I Failed to connect to "file:jazz/sites/copybook-site".
CRJAZ0285I Failed to connect to "file:jazz/sites/workitem-site".
CRJAZ0285I Failed to connect to "file:jazz/sites/copybook-site".
CRJAZ0285I Failed to connect to "file:jazz/sites/workitem-site".
CRJAZ0285I Failed to connect to "file:jazz/sites/copybook-site".
CRJAZ0288I Failed to install the profile feature "com.test.copybook.feature" from the update site "file:jazz/sites/copybook-site" referenced in the profile file "/JazzTeamServer/server/conf/jazz/provision_profiles/copybook-site.ini".
CRJAZ0285I Failed to connect to "file:jazz/sites/workitem-site".
CRJAZ0288I Failed to install the profile feature "com.test.workitem.feature" from the update site "file:jazz/sites/workitem-site" referenced in the profile file "/JazzTeamServer/server/conf/jazz/provision_profiles/workitem-site.ini".
CRJAZ1834E Error provisioning the server.

It is kinda weird that these two don't match up. 

0 votes


Permanent link

Let me reopen the question, as I have the very same problem.

My plugin is working beautifully in Tomcat/Windows but we cannot get it working on WAS/Unix. We don't get any errors. It is simply not being loaded.

What we have done:

- Created the .ini file under conf/ccm/provision_profiles and copied the correspondent folder with the content of the built Update Site into conf/ccm/sites. This folder contains the file site.xml and the folders plugins and features with both jar files. To be sure the jar files are ok, we have unzipped and zipped them again using the Unix zip command.

url=file:ccm/sites/mysite

featureid=myfeature

- Run CRJAZ0303I The profile install from "file:ccm/sites/rtc-commons-update-site" was started at "Wed Oct 15 16:28:07 BST 2014".

We can also see in that page other legacy plugins are successfully loaded.

The WAS log files do not say anything (or I haven't been able to find it).

Any idea what can we try to identify the issue? Any help will be appreciated.

0 votes

Comments

make sure that your plugin does not have any runtime version dependencies.

sometimes those will not match the server (usually using a new toolkit and trying to install on an older server)

I would suggest to create a new question, as the other one is already closed. You don't gain anything on reposting here. You can create a new question and then reference the closed one if you like.


Permanent link
Thank you for the responses.
We got it working now.
This one of these stupid things that can get you busy for days, and the solution was absolutely trivial.
We were copying the files to an incorrect directory in the server. We were working in JazzTeamServer, while the actual server is located under JazzTeamServer_4.0.3. This is probably due to a version upgrade I wasn't aware of.
Just installed the files in the proper directories and everything is working now.

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
× 12,019

Question asked: Aug 24 '12, 12:09 p.m.

Question was seen: 5,729 times

Last updated: Oct 17 '14, 6:35 a.m.

Confirmation Cancel Confirm