My code works in the development but not in the app server. I am new to creating a plugin so any input is highly appreciated.
Here are the step-by-step details of what I did in creating a client-server plugin:
- Checkout ServerPlugin from Servoy site.
- Added j2db.jar, j2dbdev.jar, js.jar, wicket.jar in the build path.
- In RemotePlugin:IRemotePlugin class, I created methodA.
- In ServerPlugin:IServerPlugin, I created an instance of RemotePlugin and parametarized it in registerRMIService during initialize.
- In RemoteClient:IClientPlugin,IScriptObject, I access methodA using instance of RemotePlugin taken from getServerService.
- Compiled and exported the project as jar.
- Generated keystore file through keytool
- Signed file through jarsigner.
- Used signtester.jar to sign jar file.
- Deployed in plugins folder of application server.
The jar file works in the development server. However when I drop it in the app server I notice that it messes with our database and the RemotePlugin instance is not created, it returns null. Did I miss a step?