Netbeans Java web app deployment to web host - java

I have created a java web application in netbeans using a glassfish server and mySql database.
The web application is working correctly in my local environment and now i want to deploy to my host name which ive purchase from 1and1. Ive transfer my Web folder to my host name via FTP but im literally stuck now.
I know i have to somehow add the glassfish server to that host name but i dont how to do this.
can anyone help me please.
thanks in advance

Basically if you a remote control it is not a big deal.
basic steps would be
- install mysql
- install jdk
- install glassfish
Assuming you have a *nix based server.
Here you can find steps related to GF3 installation. However I do not like the way GF installation described there. Moreover I do not think you are going to have X environment on your server. So if you need to install GF3 you can follow installation for JDK and install GF3 from a zip file. The process is described in the the installation tutorial for GF4. It would be the same for GF3. There also you may find instructions how to install JDK7. At least one important step is missing in that tutorial however. If you do all the steps from that tutorial, your GF instance would not start when OS is restarted. You can find how to fix this in the official documentation. There you can find how you can configure your GF to start as a service. The steps are the same for v3 and v4.
Basically I provided the first two links because of additional information like how to enable WEB console for remote access. You cannot access it right after installation. You have to enable it by changing admin's password and.. but you find the description there.
You can find many blogs tutorials even videos if you google a bit. Tutorial for ubuntu more informative from my point. Many steps are not specific for ubuntu and could be reused for other distributions.
More thoughts about where and how to install GF here on stackoverflow
Just in case couple of links for mysql 5 installation
official documentation
tutorial for different distributions
Just in case. You can use putty for remote access. If your server is configured to allow this, you would be able to connect. You may want to ask support team to clarify it.
For windows it is even simpler
you can download an installer from here for GF4 of from here for GF3. You also can download a zip file and install GF as a service. See official documentation and step-bystep simplified tutorial with pictures here.
I think jdk and mysql would not be a problem on windows based server

Related

Advice on how to handle logs with Azure App Service Linux

So I've got a few applications run in Azure App Service. Most importantly I've got an executable jar running the majority of the application code. It is currently running as an app service with the Java 11 stack - I have deployed the jar file using Azure Devops and Azure will run this jar within its java 11 container.
The problem I have at the moment is with the application logs. I used to able to ssh onto the vm running the code and check the tomcat logs (before moving to azure app service). I also had ELK installed on the vm although a lot of the time I would just prefer to ssh on and grep and view the logs straight from the vm.
Now all I can do is access the log stream. This will stream the logs as they come out but if I want to search for an error from yesterday I am unable to do so. I've contacted microsoft support who haven't been very helpful so far. I've tried using application insights but I'm not sure how this allows me to better view my logs.
Clicking he application logging tab doesn't allow me to do much - I think it has more features for windows app.s
What I'm ideally looking for is maybe a way to mount a storage account and write the logs there? Or some simple log analytics would do which would enable me to view the logs from the day before or search them. Anyone able to recommend what they do in this situation?
Thanks
Yes, it is as simple as the doc mentioned. Just deploy this jar as well and then point to this agent in the jvm args.
Please let me know if you have any issues.

Moving/Porting Production Android Apps from Windows 7 to Linux Based Systems Correctly

Sorry in advance, there are a lot of questions in this post. I was not able to find much good information on this online so far (maybe I missed the correct search term).
The idea of this post is to migrate Android applications (that can potentially be production level on the Play Store) from Windows 7 to Linux based machines and document it correctly (like I said above I haven't found any good articles about it yet). If I find the solution myself I will post the answer.
Short background: Currently Windows 7 support ends in 2020, looking to move/port production level Android Studio applications to a Linux based system moving the following.
Code for each project.
Moving keystores and other important Android Studio production level files not inside of the project folder.
My main question is what is the best way to do this:
Copy all of the files on an external drive and move them that way?
Use Git to upload the app and redownload on the Linux PC?*
*I understand that Keystores and other non application settings for Android Studio will need to be moved manually with a copy to the external drive since Git generally only loads on the project level.
So far I am looking to see if anyone has experience already with this process and if they have run into any roadblocks or difficulties doing this?
Also what keystore files are necessary to copy? I understand they are in the directory below.
Is the debug.keystore the correct keystore to use for production level keystore applications?
Directory: C:\Users\username\.android
File 1: debug.keystore
File 2: default.keyset
No. The debug.keystore and debug.keyset keystore files shouldn't be used in production, and only in development. If they are missing, they will be generated on your next build, so you won't have to worry about moving them - building the project in Android Studio on your Linux will create these for you.
To generate release keys used in production, please see this.

How to make an offline java application available online?

I have developed an offline java application and i would like to host it online in internet. I am not sure how to adapt my code as an webapplication. How to adapt html css to my code? (as i already have GUI). thanks.
Not able to find the right example or how tos on internet
You can use some cloud services to run your application, for example you can use AWS (aws.amazon.com/cloud‎).
Steps you need to perform:
register your account there;
add credit card (it's gonna take like a few dollars from that);
install application container (like tomcat);
deploy your application to tomcat server (for example);
run tomcat (for example).
That's all, enjoy your application online.

Migrating from Cloudbees to other service for #Run

As many of us here have probably had, I've received a message from CloudBees stating that the #Run service will soon be discontinued.
I have to migrate elsewhere and need a Dummy's Guide on how to set up a new platform where I can run my service. Are there any guides out there? All I get from Google is CloudBees' own guide which is too vague for me.
I'm running a java app, uploaded as a War connected to a MySQL DB.
Could any of you point me in the right direction?
1) Give a look at official migration documentation (point 2 has a link to google doc containing some info)
2) Check the section called "Migration CloudBees Applications" and select the provider you would like to migrate to
3) Type in google (or your prefered search engine): "CloudBees to <selected provider> migration"
(you should end-up with something like this or this.. I'm not advertising, those are just random examples)
4) Start following the steps, and if you will have an problem don't hesitate to ask more specific questions

Check for updates in eclipse

I am trying to update ADT plugin from 20.0.3 to 22.6.2, I am using Eclipse juno, My eclipse takes almost 8 hours from the morning, Still it trying to Contacting Software Sites , I don't know what have to do now, Any help will be highly appreciable.
Note: Already I have unchecked all other software sites expect https://dl-ssl.google.com/android/eclipse/
Try connecting to the site using your web browser.
If the browser succeeds and Eclipse fails, then the problem is most likely the Eclipse proxy settings.
If the browser also fails to access the site, then it is time to talk to your local network people ...
FWIW, I can connect to that site using a browser.

Categories

Resources