spring boot 2 on VPS can't be accessed - amazon-web-services

I have an App that made using Spring Boot 2.
I use Undertow as my embedded web server.
My VPS OS is Ubuntu 14.04 lts, and Java 8 has already installed off course along side with Maven.
After my App.jar has successfully generated by mvn clean install then i move fat jar to my VPS.
when i run java -jar App.jar it perfectly works.
but when i access using IP there is nothing to show from browser.

This issue has been solved already, it was just missing some configuration on server side :)

Related

How to add a second web app with jetty alongside with geoserver?

I deployed the Platform Independent Binary of GeoServer on ubuntu. To launch geoserver, I would just run this script /usr/share/geoserver/bin/startup.sh
So no jetty is actually installed. Geoserver web app can be accessbile via http://localhost:8080/geoserver/web
I wonder how I can configure a second web app which takes this path http://localhost:8080/upload/index.html
Ideally, I would like python and perhaps PHP are supported.
Any tips is appreciated. Thanks.
You can add any other war files to geoserver_dir/webaps/ and Jetty will unpack and run them like any other servlet.
I have no idea how you would add python and PHP to that set up. Maybe you would be better off looking at running tomcat and apache and using the GeoServer war file there.

Can we install a FAB(Fuse Application Bundle) on the WSO2 application server

As the title says, I would like to know if I can deploy fab bundles on the WSO2 application server. One way I guess this is possible is to install the fab-bundle feature and then deploy the fab jar but would like a confirmation of the same.
No this is not possible. FAB requires Karaf/Fuse as the OSGi application server.
Notice that FAB is deprecated and to be removed in the next Fuse 6.2 release.

Using Web Application created with Netbeans in Tomcat?

Sorry I newbie.
How to use Web Application ( with Web Services) created with Netbeans in my Tomcat that was manually installed?
I want to use my WA in my Tomcat (this tomcat wasn't installed with Netbeans).
My Tomcat is 8.0.3 version...
My Netbeans is:
Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: Updates available to version NetBeans 8.0 Patch 2
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
I was following http://docs.huihoo.com/netbeans/6.0/kb/60/websvc/jax-ws.html.
I decided to use this old version because this link (newer version) https://netbeans.org/kb/docs/websvc/jax-ws.html is oriented to Glassfish.
Now I want to test my Web Services in Tomcat, I was thinking that I need to copy my folder named: CalculatorWSApplication to webapps\ROOT tomcat's folder, trying to do smothing like:
IPofMyHost:8080/CalculatorWSApplication/
or
IPofMyHost:8080/CalculatorWSApplication/CalculatorWS
I'm very lost
you can tell netebans you have tomcat (menu->tools->server->add server...)
and then configure you project to run with tomcat (project->properties->run->server...)
Or, after building you app in netbeans, just copy the .war file to the tomcat "webapps" folder.
Tomcat will do the deploy for you.

How to deploy the Web service in to tomcat 7 from out side of eclipse juno?

i am very new to web services and i have one problem please suggest me .. i.e i have a WSDL(SOAP) file and with that i created the Web Service-server and web service-Client using Top-Down approach with JAX-WS in eclipse Juno Java EE. i integrated the Tomcat 7 with that Eclipse and from eclipse its working fine.
But my problem is i need to run the Tomcat from out side of the eclipse and i need to deploy the web service in to the tomcat. i don't want to run the Tomcat using eclipse? i just need to run the client from eclipse but i dont want to run the tomcat from eclipse. Please Help me.
File -> Export -> Web -> War (configure where to create it)
Deploying a tomcat application consist of building a war file then deploying it. We call this servlet.
Building the WAR
As you already have your server code, you should now complet the WEB-INF/web.xml file. This file describe the path of your servlet(your server code), on the tomcat server. Depending of your framework you can have some configuration to add in your META-INF/context.xml file.
In an eclipse project, thoses file are generaly under a directory name 'webapp' in your project. (src/main/webapp for a maven project).
First you must use the javaee & javaweb tools of eclipse to build a war file that contains all yours libs, files, class and web.xml
Alternativly you can use a maven build process to get a war, if you use maven.
Deploying the war
After installing tomcat, the deployement is as simple as drop the .war file is deploy directory of the home-directory of tomcat. Then your application is usable on default port 8080.
If you have install also the manager webapp of tomcat, you can see all yours currently deployed application in the manager http://myurl:8080/manager/html.
When you install tomcat, let be sure that your eclipse pseudo server is shutdown, or your tomcat server will have problem to get it's port and startup.

Windows 7 and Redhat machine communicating via secure Glassfish webservices

I have inherited a web-service that was written in Netbeans and runs on Glassfish (version 3) and used to talk between a Redhat server and a Windows7 machine.
These can be started manually, by using Netbeans (6.9) to start the Glassfish Server and deploy the Java script, and they communicate securely quite happily
Of course, manually deploying the system like this is far from ideal, so I have arranged for Glassfish to be deployed via the command line interface of Redhat;
Create a user
groupadd glassfish
useradd -s /bin/bash -d /home/glassfish -m -g glassfish glassfish
Copy from CD to glassfish directory
mkdir cdrom
chmod 777 /cdrom
mount /dev/cd0 /cdrom
cp glassfish-v3.zip /home/glassfish/glassfish-v3.zip
Login as the new user in a terminal window
sudo -i -u glassfish
Install GlassFish V3 using user glassfish
cd ~
unzip glassfish-v3.zip
rm glassfish-v3.zip
Exit the shell from step 2
Then the .war file (as in the Java script) is put into
glassfish/glassfishv3/glassfish/domains/domain1/autodeploy/CommandAndControlService.war
(As described in; http://download.oracle.com/docs/cd/E19798-01/821-1757/geyvr/index.html)
Then to run Glassfish I just log in as glassfish user, and launch glassfish
sudo -i -u glassfish
sudo glassfishv2/glassfish/bin/asadmin start-domain
(Which automatically deploys the .war file from earlier, as it’s in the “auto-deploy” directory)
Then for the Windows 7 machine…
Glassfishv3 is unpacked to
C:\glassfishv3
Then to start it I type;
C:\glassfishv3\glassfish\bin\asadmin.bat start-domain
All of the above works without any problems at all, the two machines chatter away happily over a non-secure connection.
The problem is that a secure connection is required, and this has been put in the script, and it works perfectly fine when glassfish is started through Netbeans on both machines.
However, when using the above procedure to start Glassfish, the secure link doesn’t work due to the certificates being “self signed” (the code uses “Mutual Certificates Security”).
I would say that this must be something in the code, but as it works fine when started through Netbeans I’d say that it was something to do with how I’m starting Glassfish, and deploying the .war file.
(I have tried started just one service automatically, and the other through Netbeans, but I get the same issue; the communication link started via the command line cannot connect due to self-signed certificates)
Any ideas?
Many Thanks