Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
8.9k views
in Java FTP by (320 points)
I am getting this error while using edtFTPj/PRO
Error comes at line
SSHFTPClient ftp = new SSHFTPClient();
in the JSP file that I am using

Following is the error stack trace
java.lang.SecurityException: class "com.enterprisedt.net.ftp.RecursiveOperations"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java)
at java.lang.ClassLoader.defineClass(ClassLoader.java:532)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java)
at com.evermind.util.OC4JSecureClassLoader.defineClassEntry(OC4JSecureClassLoader.java:172)
at com.evermind.naming.ContextClassLoader.defineClass(ContextClassLoader.java:1179)
at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.java:401)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at com.evermind.naming.ContextClassLoader.loadClass(ContextClassLoader.java)
at java.lang.ClassLoader.loadClass(ClassLoader.java)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.<init>(Unknown Source)
at _doFTP._jspService(doFTP.jsp:39)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:57)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
t javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)


Following the error that i got in JSP page
500 Internal Server Error
java.lang.IllegalAccessError: com/enterprisedt/net/ftp/RecursiveOperations
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.<init>(Unknown Source)
at _doFTP._jspService(doFTP.jsp:39)
[SRC:/doFTP.jsp]
at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:57)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)


Please help me solve this.

6 Answers

0 votes
by (162k points)
Have you other jar files in the CLASSPATH? Perhaps edtftpj.jar?
0 votes
by (280 points)
Have you other jar files in the CLASSPATH? Perhaps edtftpj.jar?


I have a similar problem. I'm using the trial version for edtFTPj/PRO for 30 days. I have added the edtftpj.jar in my classpathand also included the license.jar( not sure if that is needed). But I still get the error. Can anybody help me please?


Thanks
Rashmi
0 votes
by (162k points)
Ensure edtftpj.jar is NOT in your CLASSPATH.
0 votes
by (280 points)
Ensure edtftpj.jar is NOT in your CLASSPATH.


Yeah I got this working. I had my old edtftpj.jar in the classpath. But now I'm stuck with a different exception.

com.enterprisedt.net.ftp.ssl.SSLFTPCertificateException: Server certificate could not be validated. (use SSLFTPCertificateException.printCertificates to view certificates.)
at com.enterprisedt.net.ftp.ssl.SSLFTPControlSocket.I(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.auth(Unknown Source)
at com.cypherit.bbrad.server.jobs.FTPThread.initialiseFTPConnection(FTPThread.java:482)
at com.cypherit.bbrad.server.jobs.FTPThread.run(FTPThread.java:645)

I think I have made some mistake in coding as I'm new to ftp. I'll try to figure out the problem. But just in case you have any ideas then please let me know.

FYI, I am using filezilla server and I have also created a certificate using filezilla. Is there any particular location where the certificate has to be stored or should there be any config changes made in filezilla for this certificate?

Thanks
0 votes
by (280 points)
Ensure edtftpj.jar is NOT in your CLASSPATH.


Yeah I got this working. I had my old edtftpj.jar in the classpath. But now I'm stuck with a different exception.

com.enterprisedt.net.ftp.ssl.SSLFTPCertificateException: Server certificate could not be validated. (use SSLFTPCertificateException.printCertificates to view certificates.)
at com.enterprisedt.net.ftp.ssl.SSLFTPControlSocket.I(Unknown Source)
at com.enterprisedt.net.ftp.ssl.SSLFTPClient.auth(Unknown Source)
at com.cypherit.bbrad.server.jobs.FTPThread.initialiseFTPConnection(FTPThread.java:482)
at com.cypherit.bbrad.server.jobs.FTPThread.run(FTPThread.java:645)

I think I have made some mistake in coding as I'm new to ftp. I'll try to figure out the problem. But just in case you have any ideas then please let me know.

FYI, I am using filezilla server and I have also created a certificate using filezilla. Is there any particular location where the certificate has to be stored or should there be any config changes made in filezilla for this certificate?

Thanks


I re-created the certificate and it worked fine on my local computer. Probably the commonname was wrong.

But when I try to connect to a third party hosting(which we normally connected using simple FTP-not secure) it gives me the error as before "Server certificate could not be validated". Now this means I have to have their certificate or need to store our certificate their end?? I'm not clear with the working. Can anyone help me please?

Thanks
0 votes
by (162k points)
Yes, you need either their certificate OR their certificate must be signed by a root certificate provider and the common name must match.

Categories

...