softlab Posted January 13, 2018 Posted January 13, 2018 Hi. I'm bfpsw on Johnny. I deployed some jsp and java class files under my home directory (folder JAW under public_html folder). If I try to point my index.jsp page, I get a 404 error saying that "/bfpsw_JAW/index.jsp is not available". Where am I wrong? Thank you
Krydos Posted January 13, 2018 Posted January 13, 2018 Is java enabled on your account? https://johnny.heliohost.org:2083/frontend/paper_lantern/java/index.live.php
softlab Posted January 13, 2018 Author Posted January 13, 2018 Yes, it is. If you remember, several days ago I asked you to undeploy my war file in order to verify if deploying my jsps and java classes one by one would have been working. I have created a folder named JAW under my public_html folder and copied the structure I have under my local Tomcat. But if I try to point index.jsp I get the error given in my first message. In addiction, why does it try to get "/bfpsw_JAW/index.jsp" file? Why the "_" and not the "/"?
Krydos Posted January 13, 2018 Posted January 13, 2018 Oh yeah, sorry, I remember that now. I just undeployed the .war file as requested. I didn't delete the apache .conf file that proxies the apache web requests to tomcat though. It's deleted now and the change should go into effect within 12 hours.
softlab Posted January 18, 2018 Author Posted January 18, 2018 Hi. Sorry for the delay in response, but I couldn't before. Now I can reach the application, but when I try to invoke a servlet it says it does not exist. I have my web.xml file in the WEB-INF folder of the web app (public_html/JAW/WEB-INF) and all the servlets are described there, but none of them can be reached. What's the problem? Thank you
Krydos Posted January 18, 2018 Posted January 18, 2018 Putting files in public_html does not deploy them.
softlab Posted January 18, 2018 Author Posted January 18, 2018 So the only way to have servlets is to deploy a war file? Also, if I put in the war file an empty folder, can the web app create files into it?
softlab Posted January 20, 2018 Author Posted January 20, 2018 I got no response, so I post my questions again: - the only way to have servlets is to deploy a war file?- if I put in the war file an empty folder, can the web app create files into it? Thanks
Krydos Posted January 20, 2018 Posted January 20, 2018 - the only way to have servlets is to deploy a war file?Yes. - if I put in the war file an empty folder, can the web app create files into it?No. You can try extracting the .war file on your home pc, and uploading all the files individually, but I don't think it will work.
softlab Posted January 20, 2018 Author Posted January 20, 2018 Thanks for the response. My web app needs to create some files. Where could it have rights to create them? Would it be able to put them in /home/bfpsw folder? Or where else?
Krydos Posted January 20, 2018 Posted January 20, 2018 I think a few people have tried that, but I'm not sure what the results were. Let us know what happens.
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