Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
OpenDeploy Adapter for getting filelist
System
I am using OD 5.6 and I want to get filelist on the OD server. I thought of using OD Adapters. The out-of-the box adapter AdapterExample works perfectly fine.
I changed the class name to say 'Adapter1', compiled and built odadapter.jar and put it in <iwhome>/userlib. finally modified the config file(test.xml) to add the lines
<odAdapterSet>
<odAdapter name="Adapter1" parameter="" />
</odAdapterSet>
It doesn't work.
the server log file says
<odAdapterSet><odAdapter name="Adapter1" parameter="null"/></odAdapterSet>
ENG: 2003-05-07 16:21:32 PDT GMT-07:00 *** Iterating
ENG: 2003-05-07 16:21:32 PDT GMT-07:00 *** Class To Instantiate = Adapter1
ENG: 2003-05-07 16:21:32 PDT GMT-07:00 *** parameter = null
ENG: 2003-05-07 16:21:32 PDT GMT-07:00 Can't find the class Adapter1
ENG: 2003-05-07 16:21:32 PDT GMT-07:00 ***WARNING - Failed executing user class null
-----------------------------
But if i change the fileback to AdapterExample.java and repeat the whole process it works.
I think there is one more configuration I am missing.
-koti
Find more posts tagged with
Comments
Migrateduser
If you see the content of odadapter.jar (supplied with the example) by issuing the command jar -tvf odadpter.jar , you will see AdapterExample.class is in top level directory structure. AdapterExample.class is not inside any subdirectory. If you have created the class in the subdirectory, yo need to specify the full path to the main class. eg. com.interwoven.com/foo/fooclass
Migrateduser
I tried that. The jar file seems fine to me.
iw-home/OpenDeployNG/userlib > jar -tf odadapter.jar
META-INF/
META-INF/MANIFEST.MF
Adapter1.class
iw-home/OpenDeployNG > java -cp solutions/adapter/baseadapter.jar:userlib/odadapter.jar Adapter1
Exception in thread "main" java.lang.NoSuchMethodError: main
The above ouput should be fine. Since we are calling the run() method. I even got the exact same output on the original odadapter.jar supplied by Interwoven by using the same cmd
$java -cp .... AdapterExample
Migrateduser
Send me your config file and the odadapter.jar with the source for Adapter1.java.
Migrateduser
Thanks Vijay for your help. I restarted the odserver. It works now.
-koti