It's all about the answers!

Ask a question

Unable to build plugin from provided source

sam detweiler (12.4k6169200) | asked Dec 06 '12, 12:15 p.m.
edited Dec 07 '12, 8:22 a.m.
I am extending a class in, which imports and gives me the source as usual..

however, now that I have found all the source., the build fails..

there are two error classes (550+ errors in all)


1498. ERROR in C:\Users\sam\workspacevx - Repository manager etc\\repository_servicesrc\com\ibm\team\repository\service\internal\dataaccess\ (at line 60)
    class JDBC3QueryByBlocks implements ResultSet, IDataAccessConstants {
The type JDBC3QueryByBlocks must implement the inherited abstract method ResultSet.getHoldability()

1903. ERROR in C:\Users\sam\workspacevx - Repository manager etc\\repository_servicesrc\com\ibm\team\repository\service\internal\db\jdbcwrappers\errlog\ (at line 31)
    public class CallableStatementErrLogWrapper extends
The type CallableStatementErrLogWrapper must implement the inherited abstract method CallableStatement.getCharacterStream(String)

the plugin jar is still built.. but some classes are not produced is seems (.class file not present)
java.lang.NoClassDefFoundError: (initialization failure)

Accepted answer

permanent link
Nick Edgar (6.5k611) | answered Dec 07 '12, 9:00 a.m.
 Which JDK are you compiling against?  For 3.0.1.x, it should be JDK 1.5.  It's likely the referenced abstract methods are new in 1.6.

sam detweiler selected this answer as the correct answer

sam detweiler commented Dec 07 '12, 11:06 a.m.

thanks.. indeed I was using the default jdk, 1.6..
changed to the 1.5_22 jdk, and that cleared one set, but the


still fail as above

2 other answers

permanent link
sam detweiler (12.4k6169200) | answered Dec 07 '12, 12:13 p.m.
edited Dec 07 '12, 11:13 p.m.
Ok, found that the project config doesn't matter, its in the plugin.xml 'runtime'..

now code compiles properly, but the runtime still fails. like some config is missing

Nick Edgar commented Dec 07 '12, 1:08 p.m.

It's looking for /com/ibm/team/repository/service/internal/property/

as a sibling to

Do you have that .properties file?  If you have it in source, is it getting copied to the bin dir properly?

sam detweiler commented Dec 07 '12, 11:13 p.m.

there are a bunch of properties files that are not loaded by the project import..
once these are copied from the production plugin,  things work as expected

thanks Nick!

permanent link
Fatos Sopjani (1112) | answered Jan 17 '13, 5:42 a.m.
edited Jan 17 '13, 5:44 a.m.

I am having a similar problem, I've downloaded RTC 4, for some reasons I am unable to get the following imports.

any suggestions?

sam detweiler commented Jan 17 '13, 8:15 a.m.

did you download the rtc SDK? and set the plugin platform in eclipse?

Nick Edgar commented Jan 17 '13, 10:14 a.m.

I think Sam meant "Target platform" (in preferences, under Plug-in Development).  If you're using the default target, it's compiling against the running RTC client, which does not include the server-side plug-ins.

Your answer

Register or to post your answer.