Wednesday, May 28, 2008

Oracle AS ESB File FTP Adapter Part 2

Continued from Part 1:

With not much log message to go on when configuring ESB SFTP adapter, I decided to try BPEL SFTP adapter to see if that yields more hints. The strategy seems to help pinpoint the problem.

Here is the BPEL SFTP error msg in log:


JCA: Uncaught exception
oracle.classloader.util.AnnotatedNoClassDefFoundError in
JCA-work-instance:FTP Adapter-4 - cause:

Missing class: com.maverick.ssh.SshTransport

Dependent class: oracle.tip.adapter.ftp.SshImpl.SshImplFactory
Loader: FtpAdapter:0.0.0
Code-Source:
/C:/oracle/product/10.1.3.1/OracleAS_1/j2ee/home/connectors/FtpAdapter/FtpAdapter/ftpAdapter.jar
Configuration: <code-source> in
C:\oracle\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\FtpAdapter\FtpAdapter

The missing class is not available from any code-source or loader in
the system.

The forums.oracle.com has one entry that mentioned that for Oracle AS B2B package, there is a patch # 6353697 available for getting SFTP to work. It makes one think that it is what I needed too but I got to find the confirmation and the right patch. After setting up access to Oracle Metalink, I came across an entry that points to the patch (# 5852001) I need. Since my SOA window install has different path setup, I have to correct the referred path in the patch before applying it. I am glad the final outcome is a success!

There are more things to try for the File/FTP adapter.

1. Test the Synchronous Read File operation, which reads the current contents of a file.

2. Test different options for when to write to new file. The factors are: Number of Messages, Elapsed Time, and File Size.

3. With FTP adapter, there are different methods for obtaining the modification time of files on the remote FTP server. I am able to use File System command “quote mdtm filename”, I need to experiment with Directory Listing and File Name Substring. For now, there is no time zone issue, since the time zone of the FTP server is same as the SOA instance.

4. We could use Public Key option to connect to SSH server.