seintitus Posted November 9, 2020 Posted November 9, 2020 Hello. I am trying to setup my java app but I have no idea how to go about it. I have just uploaded all the files on public_html but I can't figure out how to set it up. Kindly assist. My username is: tchesoen, server: tommy, main domain is: cyclos.za.org
wolstech Posted November 9, 2020 Posted November 9, 2020 First things first, you need to remove cloudflare and set your domain's name servers to ns1.heliohost.org and ns2.heliohost.org. We can't provide proper support for accounts that use it because they're impossible to troubleshoot DNS issues on. Second, you need to request Java access if you haven't already. There's a button in cPanel under "Software" to do that. Then you need to wait in line for it to be installed (estimate is 3 days right now on Tommy, but it may take more or less time depending on load, the number of people in line in front of you, and the number of people who lose it for things like nonuse or getting suspended). Once it's installed, you either upload JSP files into your account, or if you have a .war file, the page where you initially requested Java will have an option to deploy a war file instead.
seintitus Posted November 9, 2020 Author Posted November 9, 2020 I already requested for java and it's currently enabled. Now my question is that the application I am trying to install is Cyclos4 app. I have already downloaded the necessary files from their website: cyclos.org and have uploaded to my public_html. And I am stuck there not sure how to configure
Krydos Posted November 9, 2020 Posted November 9, 2020 Check out the installation instructions at https://documentation.cyclos.org/4.3/cyclos-reference/ch01.html Step 1.1.5 is probably what you need to do next. Unzip the archive on your home pc and navigate to the cyclos/WEB-INF/classes directory. There you should see a file called cyclos-release.properties. Make a copy and name the copy cyclos.properties. Edit this file and put in your database information. You can get this information from when you create the database and the database user in the cpanel postgresql button. I recommend using 127.0.0.1 as the host and port 5432 since it will be running on the server. Then once you have this file edited you need to create a .war file out of it. War files are just .zip files that have been renamed so in most cases you should be fine to use a normal zip program and then rename the output to tchesoen_cyclos.war. Then deploy that .war file in the cpanel java button, and pray. If you're lucky it will work. You can monitor the install process by seeing if it creates any tables in your database. Most likely it will fail to deploy though for one reason or another. Just post back here if that happens and I'll check the log files for you. Worst case scenario you have to get a VPS to run this software where you will have root access to Tomcat and all the logs to install this the way they recommend. One concern I have is it suggests increasing the default Tomcat memory setting. That doesn't really work with shared hosting because Tomcat already uses massive amounts of memory and if we increased that setting only 2 or 3 people would be able to have java access at once without crashing the server. If you get a VPS you would be the only user on the whole server so you could use as much memory as you need.
seintitus Posted November 9, 2020 Author Posted November 9, 2020 Hello. I have followed the instructions and when I finally click on deploy button it loaded then it's now showing deployment pending.
wolstech Posted November 9, 2020 Posted November 9, 2020 It can take a little while for the deployment to work once you run it (there's a bunch of things that have to happen in the background, one of which I think is an Apache restart if it's the first time deploying a file with that specific name). If it doesn't deploy and start working within a few hours, let us know.
seintitus Posted November 10, 2020 Author Posted November 10, 2020 It's now showing deployed as http://www.cyclos.za.org/cyclos/. But when I visit the link I get a 404 not found error. Could it be perhaps because https is active on my site? Again when I check on my database there are no tables created
Krydos Posted November 10, 2020 Posted November 10, 2020 It looks like you may have created your zip file wrong. You have an extra cyclos directory in there https://www.cyclos.za.org/cyclos/cyclos/
seintitus Posted November 10, 2020 Author Posted November 10, 2020 Hello. I have repeated the all process and it now tells me deployment failed with errors.. check the log
Krydos Posted November 10, 2020 Posted November 10, 2020 Here's your error 10-Nov-2020 16:55:16.140 INFO [localhost-startStop-9] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/opt/tomcat/apache-tomcat-8.5.24/webapps/tchesoen_cyclos.war] 10-Nov-2020 17:01:30.684 INFO [Finalizer] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [org.apache.http.impl.conn.PoolingHttpClientConnectionManager$2]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org.apache.http.impl.conn.PoolingHttpClientConnectionManager$2]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1311) at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1299) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1158) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.shutdown(PoolingHttpClientConnectionManager.java:413) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.finalize(PoolingHttpClientConnectionManager.java:207) at java.lang.System$2.invokeFinalize(System.java:1273) at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:102) at java.lang.ref.Finalizer.access$100(Finalizer.java:34) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:217)
seintitus Posted November 10, 2020 Author Posted November 10, 2020 How do I go about solving the above error?
seintitus Posted November 11, 2020 Author Posted November 11, 2020 Yes I have googled and here is the suggested solution from stack overflow: "Problem solved after restarting the tomcat and apache, the tomcat was caching older version of the app".
Krydos Posted November 11, 2020 Posted November 11, 2020 Tomcat last restarted itself about 7 hours ago. Did it start working after the restart?
seintitus Posted November 12, 2020 Author Posted November 12, 2020 No. It's still showing the same error
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now