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

How to use RTC Plain Java API in webservices?

Is it possible to use the RTC Plain Java API in webserices (for an in house application)?

When we try this I get the following error

This Web axisService has deployment faults

Error: java.lang.NoClassDefFoundError: com/ibm/team/repository/common/TeamRepositoryException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator. (DefaultSchemaGenerator.java:140) at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:453) at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:388) at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:101) at 
....

0 votes


Accepted answer

Permanent link
You need to get the location of the Java API in the class path.  You don't go into much detail about what the web hosting application is (e.g. Apache, Apache Tomcat, WAS...) or how you might be deploying (war file, bare jar or class files...)

I just replied to a post that I've been using the Java API in a Apache Tomcat environment.  I deploy a war file and all the required libraries are in the WebContent/WEB-INF/lib folder of the package.


Karthik Krishnan selected this answer as the correct answer

1 vote

Comments

Thanks Kevin for your feedback. I am planing to use Apache Tomcat.
We are trying to develop a we based app using RTC API's. At present it's only in the starting phase and I am trying to find the compatibility of these API's and that's when I got the aforementioned errors.

We are planning to use Eclipse + Tomcat

Since you say it;s possible it would be great if you could share some more light on this topic regarding the setup

Many thanks once again.

Karthik,
As an IBM-er, I am spoiled in that I can get Rational Application Developer and I haven't used "bare" Eclipse in a while.  One way to start would be to create a new "Dynamic Web Project" in Eclipse (if the supporting plugins are in your Eclipse).  Creating that project type will put down the rudiments of the web application structure.

Eclipse.org has "Eclipse IDE for Java EE Developers"


http://www.eclipse.org/downloads/

1 vote

Thanks Kevin.
I already have configured eclipse & Tomcat. My main point is do you think adding the RTC plain java jars to the WebContent/WEB-INF/lib be sufficient?


Karthik,

Most definitely !

1 vote

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
× 10,950

Question asked: Sep 18 '13, 8:46 a.m.

Question was seen: 4,362 times

Last updated: Sep 20 '13, 10:39 a.m.

Confirmation Cancel Confirm