Launch Java Application on Server using Eclipse - java

I have to maintain and made some changes to an old java application.
It is a web application but the developers made it as simple java application not dynamic java web project.
Now, i am able to launch the application if i make a zipped file and deploy it in Tomcat Server.
But i want to launch appliocation from eclipse as I want to debug the application.
I am able to launch server from eclipse but when i open the aplication URL it shows:
localhost refused to connect.
ERR_CONNECTION_REFUSED
I am making following changes in my Run Configurations>Arguments:
Program Arguments:
start
VM Arguments:
Dcatalina.base="C:\Users\Sneezy\c\apache-tomcat-8.0.32"
Dcatalina.home="C:\Users\Sneezy\c\apache-tomcat-8.0.32"
Dwtp.deploy="C:\Users\Sneezy\c\apache-tomcat-8.0.32\wtpwebapps"
Djava.endorsed.dirs="C:\Users\Sneezy\c\apache-tomcat-8.0.32\endorsed"
I cannot the project faucets to dynamic web application as it introduces lots of errors in my application.
Are there are more changes i have to make?

Related

Eclipse HTTP Listener to run Internal Plugin in Headless Mode

I have an Eclipse plugin that my company uses to analyze some data files. I've been tasked with writing a REST application that will take uploaded data files and use this plugin to generate some output and return it to the client.
Currently, my application listens for incoming requests and launches Eclipse in Headless Mode to startup this plugin (e.g. ./eclipse -application "xyz" ...) .
The trouble is, Eclipse is fairly slow to start and each request received launches a new instance of Eclipse.
Ideally, I want only one instance of Eclipse running all the time and an HTTP listener that can request this plugin to run.
I looked into something like Jetty, but my understanding is that Jetty needs to be embedded in the plugin code to setup a listener. Unfortunately, I don't have access to the plugin's source code.
Is this possible? Which tools would you use?

Run polymer js application on localhost using any Java server (not python or any other related )

I have watched some videos regarding set up of polymer js application. In some, they say start SimpleHTTPServer and deploy your app, but this server is a module of python, I don't want to install it.
So I want to run this application using some Java related server.
I have used Apache Tomcat (although any Java web server would work). Create a simple static web application (Eclipse creates a template for a new web project) and add your polymer files to it. Deploy to Tomcat and point your browser to http://localhost:8080 (or whichever ip:port you have configured)
While in active development use Eclipse to deploy and sync web application to Tomcat. Refer to Eclipse documentation for that.
For production deployment, first use polymer-cli to create a bundled package and then deploy the contents of the bundled (or unbundled) package as a web application.

run Swing Applications (jar) from host server to remote machine

I would like to ask how to run Swing Applications from host server to a remote machine.. for example..
I have a server which has a jar file build as swing application in linux and a web page that will run the jar file..
and remote machines will just type the URL for them to load the webpage and emulate/run the jar and display the swing application to the remote machine from the server.. How can I do this?
Webswing runs java swing applications on server machine and show GUI to user in browser and it is free. I tested it with our application and it is quite good and done its job.
From webswing site :
What is Webswing ?
Webswing is a web server that allows to run any
swing application inside your web browser using only pure HTML5.
You can download from here.

Deploying Java Web Application in Eclipse

I've created a Java application in Eclipse that displays an ArcGIS map and needs to execute Python and some other external software like PowerWorld on my computer. I have purchased a domain name and intend to run it on my own server connected to the internet 24/7.
How do I embed and run my application on a website?
I've looked at Apache Tomcat tutorials but most of them involve creating simple text based webpages. Also, how do I move from localhost:8080 to my domain URL?

Unable to run an Eclipse project in a local web browser, access the database, and run the project

I am currently doing a web application project in Eclipse. I understand that the project done in eclipse runs on a local web browser (i.e. in my eclipse web browser). What I don't understand, if how we can execute or run that project in my local browser, such as Google Chrome, or Firefox etc.,
In order to do this, I tried to copy the web url address from eclipse and pasting it into Chrome. The user interface is working fine. That said, it was not supporting the database when i tried to login. Logging in gave me the message "login failed".
Can some please help explain where to store my database and how to run my project in a web browser that is built in eclipse.
There is no difference accessing the application from the MyEclipse web browser or from an external web browser. The web application is simply serving pages to the browser in response to input from the user. If you are using the built-in Derby database, for testing, make sure the Derby database server is started in MyEclipse (right-click on MyEclipse Derby in the Servers view and select Run Server), before starting the server containing the web application.

Categories

Resources