sepiqon Posted July 24, 2020 Posted July 24, 2020 Welcome! I'm having problem with deploying my file .war.Username: sepiqonDomain: sepiqon.heliohost.orgMy war file: sepiqon_server.warServer: johnny.heliohost.orgI did read this post: https://www.helionet.org/index/topic/28053-solved-deploy-war-app-request/page-3?hl=maven&do=findComment&comment=128900But it doesn't working for me... I get error "Java deployment failed with errors. For further information please contact support.", previously the code 404 on sepiqon.heliohost.org/sepiqon_serviceThis app works on local tomcat.
wolstech Posted July 24, 2020 Posted July 24, 2020 Krydos should be able to get you the Tomcat log for the deployment failure.
sepiqon Posted July 24, 2020 Author Posted July 24, 2020 Deployed. http://sepiqon.heliohost.org/sepiqon_server2/error 404 - not found
wolstech Posted July 24, 2020 Posted July 24, 2020 Give it a little while for Apache to restart. Also, I removed your HTTPS redirect. HTTPS is incompatible with Tomcat by default. Krydos can make a special change to force it to respond to HTTPS if you really want to, but it comes at the expense of performance and the ability to accept plain HTTP connections (you can only pick one or the other, both would double the amount of load your site causes). For now, lets just get it working first...
sepiqon Posted July 24, 2020 Author Posted July 24, 2020 i would like https, but i also want to be able to connect to MySql
wolstech Posted July 24, 2020 Posted July 24, 2020 That app is now working on plain HTTP: http://sepiqon.heliohost.org/sepiqon_server2/ HTTPS doesn't affect mysql at all. It's just that your Java app won't be able to accept a plain HTTP connection (not terribly important unless you have a need for programs that can't handle HTTPS to connect, or perhaps you have users on older PCs that are still running XP). HTTPS can be much slower when server load is up though, which isn't uncommon on Johnny. Krydos would need to configure the HTTPS for you. 1
Krydos Posted July 24, 2020 Posted July 24, 2020 Your java deployment has been moved to ssl https://sepiqon.heliohost.org/sepiqon_server2/ Keep in mind if you change the filename the ssl will no longer work.
sepiqon Posted July 24, 2020 Author Posted July 24, 2020 I understand, thank you for your help. The 404 error is still there. I have to wait?
sepiqon Posted July 24, 2020 Author Posted July 24, 2020 Sorry, but everything works thank you, I have another question, Can I update my war file, I'm worried about HTTPS
Krydos Posted July 25, 2020 Posted July 25, 2020 You can update the .war file, and deploy a new one as long as it has the same filename as the previous deployment. 1
sepiqon Posted July 26, 2020 Author Posted July 26, 2020 (edited) Hello, I often have "Java deployment failed with errors.".Can I see what this error is?...without error : max_user_connectionsI'm sorry for frequent deploy Name war: sepiqon_server2.war Edited July 26, 2020 by sepiqon
Krydos Posted July 27, 2020 Posted July 27, 2020 Your .war failed to deploy because tomcat had crashed. I restarted tomcat and your .war deployed without errors. Thanks for letting us know that tomcat on Johnny was having issues. 1
sepiqon Posted July 28, 2020 Author Posted July 28, 2020 (edited) I changed it: registry.addEndpoint("/onlineusers").setAllowedOrigins("*") .withSockJS();to:registry.addEndpoint("/onlineusers").setAllowedOrigins("*");and Java deployment failed When using SockJS, I have the error: WebSocket connection to "ws://sepiqon.heliohost.org/sepiqon_server2SockJS/onlineusers/.../.../websocket" failed: Error during WebSocket handshake: Unexpected response code: 400, (and adres: "wss://sepiqon.heliohost.org/sepiqon_server2/onlineusers/.../.../websocket") without SockJS, I tried to connect to the url: wss://sepiqon.heliohost.org/sepiqon_server2/onlineusersbut I don't know if the url works: wss://sepiqon.heliohost.org/onlineusers(https://www.helionet.org/index/topic/37604-java-websocket-connection-failure/?p=168706)Please help with SockJS I cannot connect to the last two addresses,Please help file .war deployed: sepiqon_server2SockJS.warfile without SockJS: sepiqon_server2.war Please help! Edited July 28, 2020 by sepiqon
Recommended Posts