Servoy 6 broke the code worked in servoy 5

We have a customized java bean in the application_server/beans/ directory. In a java script file we declared java object, which is in that java bean, using:

var javaObj = new Packages.com.obj.Test();

This call worked fine in servoy 5. But after we upgraded to servoy 6 it’s broken. The error is:

TypeError: [JavaPackage com.obj.Test] is not a function, it is org.mozilla.javascript.NativeJavaPackage.

There is no code change at all.
We have spent a lot time on figuring out how to make it working. Can some one tell us what the problem is?

Edit: Retracted statement.

somehow it can’t find the class of that bean now.
Is this in developer? In a real smart client it should just work fine.

This is web client solution. It worked fine in Developer but stopped working in Application server. Can you please tell me how to check if Servoy picked it up or not and how to force it to pick it up? We have a tight time frame but now we have no idea hot to fix it.

i quickly looked at the code between 5 and 6 and there is some change in setting the right classloader.
I will fix that for 6.0.2

Then can you tell us where we need to put the bean to make it working in Servoy6.0.1 before Servoy releases v6.0.2?

i think if you edit the servoy_server.bat file for now
and include the bean jar (and everything it wants) into the classpath it should work for the webclient.

We also put the jar file which includes the java classes we need into application_server/plugins but it still didn’t get picked up. Looks like the problem didn’t just happen to beans.

no that doesn’t matter that the same thing.