lhnyc / anniversary

This area will be used to help design and build "Lighthouse NYC" church website and Mobile App
https://www.lighthouseny.org
0 stars 0 forks source link

Now that you can connect ..... (server setup ... ) #4

Open boborugged opened 6 years ago

boborugged commented 6 years ago

Congrats! So now that you can connect to the server, the next thing is to build out the server.

If I remember correctly, you were interested in some Java based development.

Is that correct ? @wale1958

wale1958 commented 6 years ago

Yeah

boborugged commented 6 years ago

@wale1958 , Read the following two articles..... They are installation steps for Tomcat.

PLEASE, do not do the install yet. I need to take a snapshot of the virtual image so that we can roll-back if a mistake is made, instead of having to do a re-install from scratch. Let me know when you think you are comfortable enough with these instructions. I will take the snapshot then, and the we can proceed.

(Both of them a pretty similar.... you can also go ahead and Google "Ubuntu tomcat installation configuration").

wale1958 commented 6 years ago

I'm sorry I was at work yesterday...I'm familiar with them now

wale1958 commented 6 years ago

lighthouseny.org isn't going through, is the server down?

boborugged commented 6 years ago

@wale1958 , It should be back up now. I move the VM under a different account to that it would be up all the time, but I forgot do setup the port for SSH, thus the router was trying to send the ssh communication, but Virtual box did not intercept and send that communication to the virtual image.

It should be ok now.

boborugged commented 6 years ago

@wale1958 : I have take a snapshot.

You can go ahead and start the installation of tomcat using the following instructions ...

https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-ubuntu-16-04

Do steps 1 to 5 We will do step 6 together (over webex / skype) The you can continue with the rest of the steps.

So, let me know when you finish the first 5.

wale1958 commented 6 years ago

I have completed step 5. The church website is still offline.

boborugged commented 6 years ago

@wale1958 Interesting ... and you are going to this location ?

https://www.lighthouseny.org/index.php

boborugged commented 6 years ago

@wale1958 When would you be available tonight so we can do a webex ? Either btw (7 & 8 or after 8:30 )

wale1958 commented 6 years ago

After 8:30

boborugged commented 6 years ago

@wale1958 Congrants !!!! 🥇 TOmcat up and running.

wale1958 commented 6 years ago

Thank you. I've completed the setup.

boborugged commented 6 years ago

@wale1958 : Watch this video on how to build a WAR file....

https://www.youtube.com/watch?v=Uj6EypG9zZo

then watch this one for additional information on WAR files.

https://www.youtube.com/watch?v=dNF78-gNSKI

wale1958 commented 6 years ago

i'm getting a jar error "'jar' is not recognized as an internal or external command, operable program or batch file"

boborugged commented 6 years ago

@wale1958 : Sorry... i have been tied up with work the past few days.

Are you on windows or desktop ? basically, you need to install the Java JDK (Java Developer Kit) . The Java JRE (Java Runtime Environment) will not have the jar command with it.

wale1958 commented 6 years ago

windows, I do have the jdk installed but not the JRE

wale1958 commented 6 years ago

I downloaded it again and it still doesn't work

wale1958 commented 6 years ago

I fixed the issue and deployed the war file, but clicking on it gives a 404 error. http://lighthouse1st.us:8808/anniversary/

boborugged commented 6 years ago

@wale1958 , I will take a look at it later this evening.

boborugged commented 6 years ago

It is working. Go here http://lighthouse1st.us:8808/anniversary/landingpage.html @wale1958 For http://lighthouse1st.us:8808/anniversary/ to work, you will need to have an index.html page as part of the website. Now if you really just want to use "landingpage.html", then read about the "web.xml" file and it's "welcome-file-list" section in that file. (you can google it)

boborugged commented 6 years ago

@wale1958 Next thing to do is to build a dynamic WAR package... either with just a jsp , or a jsp/servelet combination.

boborugged commented 6 years ago

@wale1958 Finally had some time to look at this.

The application is at this location ...

http://lighthouse1st.us:8808/Java_Web_Anniversary/Java_Web/web/index.jsp

It looks like you might need to adjust the configuration so that the paths do not show up. (Typically in the Web.xml file)

wale1958 commented 6 years ago

Ok, I want to undeploy the one already there and re-upload the recent one but it's says permission denied.

On Sun, Apr 22, 2018 at 3:00 PM, Kay notifications@github.com wrote:

Finally had some time to look at this.

The application is at this location ...

http://lighthouse1st.us:8808/Java_Web_Anniversary/Java_Web/web/index.jsp

It looks like you might need to adjust the configuration so that the paths do not show up.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lhnyc/anniversary/issues/4#issuecomment-383404313, or mute the thread https://github.com/notifications/unsubscribe-auth/AYUPlDOW5eAtiwY11eIu31Jm4-RYqUKFks5trNNXgaJpZM4SvWVd .

-- Adebowale Ojetola waleojetola@gmail.com

boborugged commented 6 years ago

@wale1958 Ok, there might be a permission issue going on then.

Push the code into git up and I will help deploy it, or you can manually replace the WAR file in the /opt/tomcat/webapps directory.

boborugged commented 6 years ago

@wale1958

Deployed ....

http://lighthouse1st.us:8808/Java_Web_Anniversary/Java_Web/web/index.jsp

boborugged commented 6 years ago

@wale1958 , Took a quick look at the styles.... you are going to need to have a separate CSS class for the list that holds the countdown clock , vs other list for things like the menu. It seems there is a margin-left:70px intended for the menus, but it seems to also be affecting the countdown clock.