So ive made a client-server application with java and Netbeans , the server is a glassfish server and they communicate with SOAP .
Everything is working perfectly , but the problem is that its a uni project and they dont look at the source code , they need binaries or jars .
Now when you build a web app , the IDE generates a .war file that would be deployed in your glassfish server (thats how i know it works , correct me if im wrong) .So in order for it to work on another PC that PC would need to have glassfish installed ?
Usually the teacher would click some "client.exe" and a "server.exe" and test things out , but im afraid this wouldnt work this time .
Is there a way like an .exe that opens a window and one would select what .war to deploy or the teacher has to install glassfish and go to admin page and deploy the war just like i would do on my PC ? if its the only way i can include a glassfish installation with some tutorial in a power point to explain how to deploy the app ... but i wonder if theres a fool-proof way since i dont know if my teacher is smart enough to do it the right way .
Actually he would need to deploy the application on a local application server as well. Unfortunately the only solution I can think of is to make it accessible via public URL. Maybe your university does provide some kind of a free VPS.
If (!) Java SDK 7 is installed you could try Payara Micro, which is derived from GlassFish 4 and enables you to run war files from the command line without any application server installation.
Related
for those who are familiar with the web application iteraplan, I really need help. I've been having trouble getting iteraplan to work on my Mac because some factors or requirements can't be fulfilled.
For this reason I needed to install Tomcat since it's a web application but I'm a newbie to it. Tomcat doesn't work even though I installed it properly, moved it to the right folder and made sure that Eclipse recognizes it as a server. When I'm trying to open anything on Tomcat on my localhost I can't open further pages of Tomcat because I always receive the same error:"The requested resource is not available" When I'm trying to run the web application iteraplan through my terminal, the localhost doesn't open either and I get the same error.
I already changed most of the server file (which seems necessary for getting the web application to work) but that doesn't help either. Is there anything I might gave forgotten? Maybe something I would have to launch or something?
I would be glad for any advice because I desperately need this to work for my thesis.
Thanks in advance.
Yash, have you made sure that your Tomcat installation is working properly? You should be able to access the manager app (usually under localhost:8080/manager/html) and see all running applications, regardless of whether you have iteraplan deployed on the server or not. Also, to run iteraplan, you need a database (details can be found in the iteraplan installation guide: http://www.iteraplan.de/wiki/display/iteraplan34/Installation+Guide). Finally, if you just want to run the application, without modifying the code, it would be simpler to download one of the bundles available in sourceforge (http://sourceforge.net/projects/iteraplan/files/iteraplan Community Edition/). They have a Tomcat server and a database included.
I have created a Web Application with the latest version of the play framework and am ready to deploy it. Since this is the first time I will deploy a web application onto a server I am not 100% sure how to to that.
I need to run a lot of cronjobs on the databases, which is why I have ordered a Vserver which came with Debian 7.8 LAMP installed.
What I am asking now is what is the simplest way to deploy my App onto my server?
What I would try if I wouldn't ask this question now, is to install play on my debian server (well actually I probably would have to install the activator thing nowadays instead right?) than upload my app to the server, change the deployment port of the app to 80, put the application in production mode and than start the app on the server or use the stage task command.
Is this the right way to do it? I do not want to make mistakes.
There is no right way to do it.
You have 4 choices (more if you include Maven distributions, etc.) but for the case 'I want to run my app on my server' there you go:
use start but it needs human intervention (interaction) so you might not want to do this in an actual production settings.
use stage to prepare your app for deployment. stage prepares some scripts which you can then call from /etc/init
The above methods NEED Play to be present on the server machine. So if you do not want to have Play! on your server... here you go:
use dist to create a zip file with everything in it... then just unzip the file somewhere in the server and run the scripts in the bin directory
Create a native package that will install your app as a (in your case) a Debian package.
Check this out (official docs):
https://www.playframework.com/documentation/2.3.x/Production
I have referred to the question Here and have been unable to resolve my issue at all.
I'm making a dynamic web project that uses jsp / css as well as jquery. Right now I need to stop the server, clean, and republish.
I have build automatically checked, I have selected automatically publish on the server... I'm not really sure if I'm missing something but I'd love to get this working as frontend development without realtime editing is horrid.
I'm not using maven or any other form of source control (yet)(I can add in ivy, if need be?)
Thanks.!
Image of server setup
If your are using the JBoss Server Manager that came with the Jboss Tools Suite you have to mark the "Automatically publish when resources change" option of the "Publishing" section of your Jboss Server Configuration.
You can find the Jboss Tools for Juno here, or you can use the Jboss Developer Studio IDE, that is an Eclipse Indigo + Jboss Tools like explained here (I'm using it, and it runs way better than eclipse, don't know why, but that's just my experience)
I've created a standalone java application using Netbeans. The application works in ubuntu 10.04 environment. Now I want to create a setup for my application so that I can distribute it to others. Also the path variables need to be changed depending upon the system on which i is installed. Can anyone suggest me how do I do so?
Hello you can make an installer for your application.
In the link below you will find a nice help about izpack installer.
http://www.imrantariq.com/blog/?p=89
Link below contains a detailed pdf to make installer with izpack.
http://www.imrantariq.com/blog/?attachment_id=112
cheers
Imran tariq
Try Flexera's Install Anywhere. It will suite your requirement. It offers lots of stuff customizing the installation process, customizing the UI, etc; Install Anywhere
I suggest you to use izpack which multiplatform and is free (at least as beer).
You can package your app as a JAR if it's a Java app that runs from main, a WAR if it's a web app deployed on a servlet/JSP engine, or an EAR if it's an EJB app that runs on a Java EE app server.
All these presume that your client has a JRE, servlet/JSP engine, or Java EE app server to run the app.
You may use the osxappbundle-maven-plugin for Mac support. You don't need a mac to use it.
http://mojo.codehaus.org/osxappbundle-maven-plugin/
Nobody mentioned NSIS.
I've been stumped for a while trying to figure out why my GWT demo app isn't working in hosted mode so I went back and downloaded the Google Web Toolkit again, unzipped it and simply went to the samples directory and ran "ant hosted". The hosted browser launches and only shows the static html content but none of the dynamically generated js widgets, etc. However when I click "Compile/Browse" the examples launch correctly in Firefox. What could be wrong with my setup/environment?
I followed the link you provided to download gwt. Extracted and ran "ant hosted" under samples/Hello, samples/DynaTable, and samples/Showcase and they all worked successfully. I'm also running Windows XP and java 1.6.0_11.
I think that running "ant hosted" starts an embedded Jetty server that listens on port 8888. Hosted Mode Browser makes requests to that embedded server, for example: http://localhost:8888/Showcase.html.
Also, when you click "Compile/Browse", it opens your default Browser (in my case it's firefox) and it tries to make a request to the same embedded jetty server that the hosted mode browser uses.
So, if it works in your browser, then the browser is connecting to the embedded jetty server. It's very strange that hosted mode doesn't work properly but you're able to view in a browser.
I believe the difference here is that hosted mode runs pure java (some sort of javascript emulator, I'm not sure I understand 100%), while the browser is running javascript.
So, I suggest troubleshooting the jvm that is started when "ant hosted" is run. Maybe the jvm is running out of memory or something when you load it up in hosted mode browser? Maybe you can pass some jvm args to the ant script to fix the problem?
Sorry I can't be more specific, that's a strange one!
#Chris: I suspect this question may have something to do with your earlier question if it is on the same computer that you were using. The solution may be to clear your IE cache because it tends to cache the 'script' tag contents and when it got messed up earlier while you were importing other stuff, it may still be sitting around in IE. Found the potential answer at this link.
I created a new workspace, re-imported everything and used GWT 1.6.x instead (because Ext GWT 2.X, which I need for this project requires GWT 1.6.x). This did the trick... everything works ok now.
The main difference I can think of is that in the Compile/Browser you are opening the html host page like a regular file, while in the hosted mode (even in a client sample) it has to be provided by the http server via localhost:8080. Check if the server is beeing started.