I have tried to swap the library commons-fileupload-1.0.jar from “Application_server/lib” with the last version (commons-fileupload-1.2.1.jar).
But I have been surprised to see that without the old library the Admin page wasn’t working! (just that)
when I have both, the old and the new library, the new one is not used and my program crashes. And unfortunately I need to put this library in the “Application_server/lib” directory because it’s a webapplication using servlets.
Was the development team using deprecated methods?!
How can I fix it?
You can look for the differences and add the (possibly) removed or changed methods to the new libraries.
This is the best way to avoid the issue until Servoy upgraded to the new libs.
I just noticed something.
In wrapper.conf there is the line “wrapper.java.classpath.9=lib\commons-fileupload-1.0.jar”
Maybe the error is just raised because it can’t find the lib? And I just need to change it to “wrapper.java.classpath.9=lib\commons-fileupload-1.2.1.jar” and it will pick up the new version?
I’ve tried to make a jar including the old version classes, which are not into the new version, plus the new version classes.
I’ve called the jar commons-fileupload-1.2.1.jar, put it alone into “Application_server/lib”, modified the name into startup.bat and wrapper.conf.
But it’s not working as well
The commons-fileupload jar was updated from version 1.0 to 1.2.1 in the Servoy release. So, starting with the next release of Servoy, everything should work fine for you.
gerzse:
The commons-fileupload jar was updated from version 1.0 to 1.2.1 in the Servoy release. So, starting with the next release of Servoy, everything should work fine for you.
Many thx!
When will the next version be released? Will it be in the next beta version? I’m a bit worried as v4.1.1 has just been released.
It turned out that the new version of commons-fileupload is not a drop-in replacement for its previous version. Other jars are needed for the new version to work. So we’ve rolled back to commons-fileupload-1.0 in Servoy 4.1. Only in Servoy 4.2 commons-fileupload-1.2.1 will be used.
gerzse:
It turned out that the new version of commons-fileupload is not a drop-in replacement for its previous version. Other jars are needed for the new version to work. So we’ve rolled back to commons-fileupload-1.0 in Servoy 4.1. Only in Servoy 4.2 commons-fileupload-1.2.1 will be used.
Bad news this time. When do you plan to release the 4.2?