Deploying multiple Java web apps to Glassfish in one go - java

I have multiple (8) WAR files and 1 EAR file that I want to deploy to Glassfish without having to redeploy each application through the Admin Console.
Previously in Tomcat the WAR files could just be dropped into the webapps directory, is there something similar for Glassfish? Using the asadmin command to grab a bunch of apps to dpeloy? Preferably for WAR and EAR files?

Yep - take a look at /domains/domain1/autodeply - you can drop things straight in there.
(substitute domain1 with your domain if you're working in a custom environment)
(sorry if the folder is off - it's coming from memory at this point)

Related

Deployment Options Play Framework v1.4

I am trying to deploy a web application to Tomcat v.6.0. I know I need to be able to deploy a single file--the WAR file. The problem is, the command that the Play documentation instructs to run, produces a directory, and not a single file.
The command:
play war myapp -o myapp.war
produces a directory called myapp.war with another directory WEB-INF which contains the directories of application, classes, framework, lib, etc.,
I am trying to deploy this to my private JVM instance of my web server. I have tried compressing the myapp.war directory, uploading that, unpacking it, etc,. but that does not do anything. I get a blank screen when I check my site.
I've heard I can run Play as a stand alone server like I do locally but I have Java and Play installed. My remote host may likely not have this installed on whatever instance is serving up pages from the public_html directory. If I were to put my application directly into the public_html directory, how can I terminal into and issue the "Play run" command to get it started?
This is the first time I've deployed a web application to a web server.
With this command Play produces an exploded .war file, so you don't have to zip/unzip it.
Check what Tomcat documentation says here about the deployment of an exploded .war files.
Also, a blank screen may be the sign of some problems with your application startup, so you have to check Tomcat logfiles like catalina.out or localhost.log to see if there are some exceptions.

How to start tomcat server outside netbeans IDE

I have created an application in Java EE, I have learned how to deploy it in the tomcat server using the manager app or by copying the war file to the webapps folder. Now I can start the tomcat server only from the Netbeans IDE.
I want to know how to start the apache tomcat server without using the IDE and run my web application from the war file deployed. If I'm headed in the wrong direction please correct me. I'm asking this to gain knowledge of how to deploy the .war file in another server system without using the IDE only the tomcat server.
The shell scripts located in "CATALINA_HOME/bin" are the most bare-bones way of getting Tomcat up and running. The two scripts capable of starting Tomcat in this directory are named "catalina" and "startup", with extensions that vary by platform.
In your tomcat installation directory, there would be a startup.bat/sh file which will start the server for you. Moreover you can see the conf folder as well if you want to change any configurations. Whatever war you copy to the webapps folder will be automatically deployed

Running website on Tomcat 7.0: Windows 2008 R2

My team and I originally had a server running through Eclipse (Java EE), but wanted to switch it to running on the Tomcat 7.0 service found in Windows 2008 R2. We are completely clueless on what files to put where in the Tomcat folders found in program files. The entire server has gone down and we can't go back to the original setup. Any help is appreciated. All we're asking is where do we put our JSP/ROOT ect folders in the Tomcat program files.
Copying JSP files are not good idea rather you can package your jsp file into an archive file called WAR file. You can export your project from Eclipse IDE as a WAR file.
After creating the WAR file (.war), you need to find out tomcat installation directory and its called tomcat HOME. Now you just need to copy the WAR file into the following folder:
{TOMCAT HOME}/webapps/<project>.war
I'll add to the answer.
If you have folders of running applications from before you can put 'em under
{TOMCAT HOME}/webapps/
war file will un-zip after you start the service.
once the war is un-zipped, you can delete it, but only after you stop the service for the first time after war deployment.

Incorrect Java application deployment in tomcat6 on linux

In Linux environment, when I keep my Java web-application's war file into webapps directory and start the server, it strangely gets extracted to 2 different applications (with 2nd one unwanted application with first letter removed).
More specifically, I have application war file as configurator.war, I'm copying it to webapps directory of tomcat and starting server with ./startup.sh in Linux environment. But this extracts 2 folders configurator & onfigurator (don't know how).
Can anybody please suggest what wrong I might have done?

Glassfish v2.1.1 and java-web-start

I've started a job that uses Glassfish 2.1.1 app server and noticed there's a java-web-start directory under the domain1 folder. In That folder there are empty directories which correspond 1:1 with ear (and other files) files deployed under ....\domain1\applications\j2ee-apps.
What is the purpose of the java-web-start folder and why does it have those empty directories in it?
New to Glassfish.
TIA
Glassfish allows the user to launch a local client which can access the application inside Glassfish directly. The launching happens with Java WebStart.
See http://java.sun.com/developer/technicalArticles/J2EE/jws-glassfish/ for an introduction.

Categories