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?
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 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.