Sftp Fails When Application Is Running Inside Weblogic Server (Doc ID 1442868.1)

Last updated on JUNE 10, 2017

Applies to:

Oracle WebLogic Server - Version 10.3.5 to 10.3.5
Information in this document applies to any platform.

Symptoms

We have a web application that does a simple sftp, it works under tomcat, the same web application failed in Weblogic with the following errors:

2012-03-23 16:38:14,817 ERROR SftpClient.java:66 - error pulling file: /reportapp/stores/BBW/EDW_SEGMENT_ACCT_STORE_RPT/TW/1627.xml
java.lang.RuntimeException: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://helostr:***@sam1511/".
at com.limited.hostreporting.utils.VfsFtpClient.read(VfsFtpClient.java:112)
at com.limited.hostreporting.utils.SftpClient.getFileContent(SftpClient.java:42)
at com.limited.hostreporting.utils.SftpClient.getFileAsString(SftpClient.java:33)
at com.limited.hostreporting.utils.XmlUtil.getXmlAsString(XmlUtil.java:159)
at com.limited.hostreporting.utils.XmlUtil.getXmlReportAsHtml(XmlUtil.java:86)
at com.limited.hostreporting.utils.XmlUtil.getXmlReportAsHtml(XmlUtil.java:61)
at com.limited.shr2012.servlet.HTMLServlet.getHtmlReport(HTMLServlet.java:42)
at com.limited.shr2012.servlet.ReportServlet.doPost(ReportServlet.java:63)
at com.limited.shr2012.servlet.ReportServlet.doGet(ReportServlet.java:28)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:183)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3717)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "sftp://buildmstr:***@ketvl511/".
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:107)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:103)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:81)
at org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:65)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:693)
at org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:621)
at com.limited.hostreporting.utils.VfsFtpClient.read(VfsFtpClient.java:107)
... 23 more
Caused by: org.apache.commons.vfs2.FileSystemException: Could not connect to SFTP server at "ketvl511".
at org.apache.commons.vfs2.provider.sftp.SftpClientFactory.createConnection(SftpClientFactory.java:230)
at org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:96)
... 29 more
Caused by: java.lang.IllegalArgumentException: No Configuration was registered that can handle the configuration named com.sun.security.jgss.krb5.initiate
at com.bea.common.security.jdkutils.JAASConfiguration.getAppConfigurationE

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms