I am not sure where should I start from as I have to deploy a web application on JBoss via custom installer.
I have created the Dynamic Web Apllication which comunicates with BES (BlackBerry Enterprise Server) to perform some operations on devices.
Now I want to create a installer file (.exe) file which will take care of following things:
Installation of JBoss server on client machine
Deploy my application on JBoss server
so that I just have to give that installer file to client and on single click the installer will do all the things for me.
Package the normal (unmodified) JBoss distribution into your installer
The installer unpacks the JBoss distribution, and uses jboss-cli.sh to configure it.
The installer copies your application into the deployment directory
Configure and deploy your application on your development system (including data sources etc.)
Package that JBoss installation into your installer (you probably don't need the content in .../standalone/data/)
The installer just unpacks that JBoss installation on the client's system
The 2nd options possibly seems to be easier, but in the long run, the 1st option is superior, because you automatically get a script of all configuration changes.
Note: The 1st option requires JBoss 7
Related
I want to debug a JavaEE Webapp on my local machine with VSCode.
The application installation comes with a JRE 7 (integrated in the application folder) and is startet by an .exe file for the application.
This in turn starts a tiny webserver and the JavaEE webapp / Servlet and a portable browser to access that webapp. The installation does not contain java source file classes, only jars with contained class files and resources. There is no docker container involved.
Is it possible to attach VSCode to debug such a scenario?
Beginner here! I have two questions.
Background:
I have installed a program (following their installation instructions) by downloading a .zip file and then unzipping it, and then deploying it by executing ant deploy. According to the installation instructions, this deploys my program as a JBOSS AS Service.
Now I want to run the service. According to the user manual of the deployed program, starting the JBoss Application Server will run the service. But the user manual instructs to run a script named run.sh in <jboss-install-directory>/bin folder. But there is no script named run.sh in my <jboss-install-directory>/bin folder. So I started the JBoss AS using the usual ./standalone.sh.
Question 1:
What is meant by a JBoss AS SERVICE?
Question 2:
How can I find a list of all services started/run when JBoss AS is started?
So that I can confirm that my service has been started.
When you say "JBoss AS" service, I guess that we are talking about JBoss in version 7.x, because later versions are either named Wildfly (community edition) or JBoss EAP (enterprise edition).
The JBoss documentation explains the two different deployment modes: automatic or manual. If you did not change anything in the configuration file standalone.xml (as your are starting this configuration), then the automatic mode may be active. In this case JBoss AS deploys your application (which you name "service") automatically and indicates the status by a marker file (for more details see here).
How can I do to deploy the web service automatically,I have the webService.war file ?I'm working with glassfish 4.1.1 and use a external library postgresql-9.4-1203.jdbc4.jar and I dont know how deploy the .war file thanks.
Not sure what you mean by deploy automatically, however, DeshanR's suggestion is still workable even for 4.1.1. You also have two other options:
You can deploy the war file from the browser by pointing your browser to yourdomain:4848. This will bring you to the glassfish admin console (provided glassfish is up and running and your glassfish is set to use port 4848, which by default it should be). You can then deploy your war file under the applications menu.
If this is a dev environment you can also deploy to your local glassfish from your IDE. This is an example for Eclipse. Connecting your IDE to your local glassfish has the advantage of allowing you to publish changes as you make them.
If you're using the postgres jar file for the JDBC driver and Glassfish's Connection Pool, you will need to restart the server to deploy that file after copying it in to your domain/ext/lib directory.
For the WAR, there is the asadmin command line client, your IDE may have direct support to deploy it from there, you can use the GF administration console, or you can copy the WAR in to the domain/autodeploy directory (assuming you have autodeploy enabled, which is it by default).
There are also HTTP and JMX interfaces, but those are probably not what you're looking for.
I'm working on my first Java EE project with NetBeans IDE. My application server is the integrated GlassFish.
At this moment my project run locally on my Mac with MySQL database. How can I deploy it on my web server?
You need to just create the war file and copy it to your web server. When you start your web-server it will automatically deploy the war file.
You need to use the remote application server functionalities of deploy.
If it's also Glassfish you can use the Administration Console to do it - e.g. example.com:4848 (defaut port for Glassfish admin portal).
Also you may use Cargo Maven Plugin in order to automate the deploy.
You have different possibilities:
Netbeans can deploy your application on the integrated Glassfish server. This should happen automatically if you Run you project and the Glassfish server is selected for this project. You can change the selected server for every project under Project Properties -> Run
You can deploy .war files via the Glassfish admin console if the Glassfish server is already started. Navigate to http://localhost:4848, go to Applications and click on Deploy
You can manually deploy you applications. You have to copy either the .war file or a folder containing the contents of the .war file to the folder /GLASSFISH_HOME/glassfish/domains/domain1/autodeploy
I have been using IntelliJ IDE (version 5.1) with Tomcat server (version 5.5) to build my Java web applications. I'm now trying to migrate my project to Eclipse IDE.
When I run my web application from IntelliJ IDE, it creates a exploded directory inside my web application project folder and then starts the server and runs the web app. (i.e. no WAR files and no copy to tomcat\webapps folder).
But in Eclipse IDE, it usually deploys the web app inside Tomcat's webapps folder.
Is there any way to deploy web applications to a exploded directory outside the Tomcat server, from Eclipse IDE?
There is pretty neat Eclipse plug-ins you can install that will allow you to do that.
Have a look at Plug-in, tutorial and from Sysdeo.
Sysdeo is the one that both Apache and IBM suggests.
There are actually quite a bunch of these plug-ins from different vendors.
The trick is to find the one that best suits your needs.
Hope this helps.