How can I configure the embedded Jetty that comes with GWT so that when I click the run button in Eclipse, my server application can access a postgresql database?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Turned out that what I needed to do was to run the app on a Tomcat server on a different host (because the database I needed was too hard to bring over to the development machine for testing). I ended up using “ant war && scp Navaid.war foo:/www/tomcat/webapps/” to deploy the server side, and I modified the Eclipse run configuration for the project to
add the following options to “Program Arguments” on the “Arguments” tab
-noserver -whitelist “^http[:][/][/]foo[.]bar[.]com[:]8080”
I also managed to modify build.xml so that “ant hosted” will run the hosted mode with the remote server. I found the “hosted” target, and the <arg> line that looks like:
and added the following line before it:
and changed the line after it from
to