You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@incubator.apache.org by Nate Grandner <n8...@optonline.net> on 2007/04/03 04:44:08 UTC

[Ftpserver] Substitute PASV IP / ftpserver build failed

hi,

I'm not sure where to ask this (since it is a usage question, not a  
project or dev one), but I have a quick question dealing with the  
address sent as a response to the PASV command. My FTP Server is  
behind a router, so the passive IP is set to the local address of the  
server. Is it possible to send the router's address to the client  
instead?

additionally, I tried to build the latest source from the subversion  
repository. (I am currently using a version from April 2006)

% mvn test

results from org.apache.ftpserver.config.XmlConfigurationTest.txt

------------------------------------------------------------------------ 
-------
Battery: org.apache.ftpserver.config.XmlConfigurationTest
------------------------------------------------------------------------ 
-------
Tests run: 9, Failures: 0, Errors: 9, Time elapsed: 0.123 sec

testBaseConfigKeys(org.apache.ftpserver.config.XmlConfigurationTest)   
Time elapsed: 0.093 sec  <<< ERROR!

[ stdout ]  
---------------------------------------------------------------



[ stderr ]  
---------------------------------------------------------------



[ stacktrace ]  
-----------------------------------------------------------

java.lang.LinkageError: Class org/xml/sax/XMLReader violates loader  
constraints
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at java.security.SecureClassLoader.defineClass 
(SecureClassLoader.java:124)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at org.codehaus.surefire.IsolatedClassLoader.loadClass 
(IsolatedClassLoader.java:61)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
	at org.apache.ftpserver.config.XmlConfigurationHandler.parse 
(XmlConfigurationHandler.java:73)
	at  
org.apache.ftpserver.config.XmlConfigurationTest.createConfiguration 
(XmlConfigurationTest.java:35)
	at org.apache.ftpserver.config.ConfigurationTestTemplate.setUp 
(ConfigurationTestTemplate.java:39)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.codehaus.surefire.battery.JUnitBattery.executeJUnit 
(JUnitBattery.java:246)
	at org.codehaus.surefire.battery.JUnitBattery.execute 
(JUnitBattery.java:220)
	at org.codehaus.surefire.Surefire.executeBattery(Surefire.java:204)
	at org.codehaus.surefire.Surefire.run(Surefire.java:153)
	at org.codehaus.surefire.Surefire.run(Surefire.java:77)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.codehaus.surefire.SurefireBooter.run(SurefireBooter.java:104)
	at org.apache.maven.test.SurefirePlugin.execute(SurefirePlugin.java: 
303)
	at org.apache.maven.plugin.DefaultPluginManager.executeMojo 
(DefaultPluginManager.java:443)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals 
(DefaultLifecycleExecutor.java:539)
	at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec 
ycle(DefaultLifecycleExecutor.java:480)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal 
(DefaultLifecycleExecutor.java:459)
	at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle 
Failures(DefaultLifecycleExecutor.java:311)
	at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( 
DefaultLifecycleExecutor.java:278)
	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute 
(DefaultLifecycleExecutor.java:143)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: 
430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)


------------------------------------------------------------------------ 
-------------------------------

there are 8 additional errors with a similar stacktrace.

thanks,
Nate

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org


Re: [Ftpserver] Substitute PASV IP / ftpserver build failed

Posted by Niklas Gustavsson <ni...@protocol7.com>.
Nate Grandner wrote:
> hi,
> 
> I'm not sure where to ask this (since it is a usage question, not a 
> project or dev one), but I have a quick question dealing with the 
> address sent as a response to the PASV command. My FTP Server is behind 
> a router, so the passive IP is set to the local address of the server. 
> Is it possible to send the router's address to the client instead?

As Niclas pointed out, please feel free to ask this over at 
ftpserver-dev@incubator.apache.org and I'll make sure to answer any 
question there.

/niklas


---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org


Re: [Ftpserver] Substitute PASV IP / ftpserver build failed

Posted by Niclas Hedhman <ni...@hedhman.org>.
On Tuesday 03 April 2007 10:44, Nate Grandner wrote:

> I'm not sure where to ask this (since it is a usage question, not a
> project or dev one), but I have a quick question dealing with the
> address sent as a response to the PASV command. 

Since the FtpServer project has decided not to open a user mailing list, I 
assume that they are Ok to receive "usage questions" on the dev list;

ftpserver-dev@incubator.apache.org

Cheer
-- 
Niclas Hedhman, Software Developer

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org