I have this program I’ve been asked to manage. It’s a Java + Apache Camel program which is running via a windows service. The program sends and receives XML messages and saves them to SQL server. For the most part I have some Java experience but I’m still new and I don’t know too much about camel (other then that it looks to be the Interface between the Java core and any sort of network traffic)
It currently runs fine on its own deployed on a specific machine, but I want to run it on a different windows machine to play around with. So I copied over the entire root folder that contains all the jar files/configuration files etc, edited the configuration (so all pathnames are correct for the new location, and points to a different SQL database), and I created the new windows service (using prunsrv and prunmgr) and edited the service to have similar parameters to the existing windows service.
It all looks like I am 99% done, but when I run the service, the program generates some error, where there was an error creating a bean for some class and at the bottom mentioning a Java lang class not found exception for org.apache.camel.component.sql.swlcomponent
I don’t quite see what the issue is if I copied everything over. I went one step ahead and copied over all the Java and apache maven folders from the original machine to the new one and set up the environment variables to pick up from these folders instead but the issue still remains
If I build a jar file from the original codebase, then surely it should hold this sqlcomponent class in it already?
Any advice would be appreciated
My suspicion is there may be something I need to change during the build, and then copy over this new jar into the deploy location
My other approach is that given I know this has successfully been deployed on two different machines (one for testing and one as a QA copy), I’m also considering praying through every file to see the difference between both machines (perhaps there is some parameter relating to the machine itself). While I know how to build the project’s jar file from the core base, i don’t actually know much about how to deploy this program as a windows service on a new machine (the original person who manages it has long left), despite that I’m feeling optimistic