Eclipse and java
steven1978oz opened this issue · 17 comments
Thank you for making this great project available.
I am just trying the compile orkweb orktrack orkbasej following the BUILD_JAVA.txt for the updates you made in December 2019. Using Eclipse 2019 and Java 8. Is there a repository available for the web components or a cheat sheet for us that's just learning how to compile? Many Thanks Steven
BUILD_JAVA.txt is now obsolete since it belonged to the original unmaintained project. I have switched the earlier format to maven based projects.
If you want to now compile in eclipse, just import the project as a maven project, and it should just compile as it would configure eclipse automatically.
Let me know if you still face any issues.
Thank you. worked great fro the orkweb but seem to be missing classes for orktrack.
Shouldn't be like that, what is the error that you are getting?
I think eclipse 2019 is the issue. I cannot not see classes in the orkweb target WEB-INF tree.
Can the classes be used from orkbasej? Eclipse wont export only jar type. I added this to the pom.xml file orkbasej now I can see the classes.
war
Sorry very green at this
As part of #17 few of the pojos were migrated to use lomok for auto generation boilerplate code. Try looking for eclipse plugin of lomok, that should fix your compilation issue.
Thanks for your help @kingster. That fixed a lot of errors but I'm having the same error as @steven1978oz
I ended up using mvn on Ubuntu 16.04 to compile. I had no luck with Eclipse. I had a few other errors which was resolved by having the missing plugins. Onto another issue with OrkAudio not sending updates to orktrack. tcpdump is show no requests for connections but the wav files are created in the audio folder. Its like Orkaudio does not have permission to access the NIC.
@steven1978oz I guess eclipse has some compatibility issues with AspectJ.
Regarding the issue " OrkAudio not sending updates to orktrack." This shouldn't happen, It works as expected for me. How are you building orkaudio? Can you try out the binary releases or follow the building step of orkaudio?
I used the Bintray package just the other night. Seems to capture and log ok in the var/log/orkaudio/audio folders but does not send the data to orktrack. I have a version 1.7 collector that can send to orktrack from a different machine so I know orktrack seems to be working ok.
Can you please install the above version, and also share your config file, please? (The bintray version is little old, and I am struggling with pushing next version as it shows some conflict with duplicate filename, something I haven't been able to figure out yet). We are using the above version in our production and we don't see any issue. Also, how are you running the service?
Happy days :) you are a legend! The above orkaudio package worked a treat. Its now connecting to orktrack and ortrack is writing to the database. I am just running "orkaudio debug" currently for testing and live debuging.
Sorry one more question. I have noticed that the current orktrack does not seem to build the database if one is dropped. I made a lot of test calls today so I dropped the database to clean it up. On version 1.7 it seems to recreate it.
The database needs to exist. The tables are created automatically on application start. If you have dropped the tables, then just restart the tomcat server and the application would auto-create the tables on startup.
I have recreated the database "create database oreka" but still no go. I have noticed no files from the orkbasej target folder are in the ortrack folder. Are these required? Looking at the orktrack folder HibernateManager is missing and did not copy across from the orkbasej build so I guess I still have minor issues with the compiling
@steven1978oz you might have an issue with compilation. I would suggest you to use mvn for compilation and then deploy the war into tomcat folder. Alternatively, use the prebuild binary packages to install.