How to run/make open the Glassfish Server outside of IDE's - intellij-idea

I have download Glassfish 5.0 zip file(there was only zip file) for windows. I was able to install glassfish on intellij but i wanna start/run glassfish server outside of the ides. Glassfish becomes only running when i click "run" in ide
How can i do that?
Thanks

To start GlassFish in Windows, you will need to open a cmd prompt at the directory where you unzipped GlassFish.
Once there, you should see a directory structure which includes bin, glassfish, javadb and mq.
Run the following command:
bin\asadmin.bat start-domain
GlassFish will start in the background. To stop GlassFish, run the following command from the same directory:
bin\asadmin.bat stop-domain
Pay attention to the output when GlassFish starts because it will tell you the location of the server.log file and other details.

Related

Tomcat starting only through cmd

I have installed tomcat 8 and set its environment variable CATALINA_HOME and added it to PATH. I could start tomcat but only through cmd. When I directly go inside bin directory of tomcat and click on startup windows batch file tomcat is not starting. Can anyone tell me why this is happening? I should be able to start tomcat either way

Unable to start service of Tomcat 7 on Windows 7

I have downloaded Apache tomcat 7 on my laptop.
I run the start up.bat file. Then I check on localhost:8080 and I get that Apache tomcat is successfully running.
Now, I want to start its service, but when I go to services.msc and run Tomcat, it does not run. Moreover, On the command prompt when I do " service.bat install", the result fails.
I actually want to start the service of tomcat.
What should I do ?? Can anyone please guide me, I checked many websites, but the steps are not much clear.
First, I tried with: http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html
But unable to do it.
Download the installer .exe file for Tomcat7 in-order to install and run the Tomcat7(32-bit/64-bit Windows Service Installer (pgp, md5, sha1)).
Do not download the Zip file of Tomcat7

Glassfish will not start

I am installing Glassfish 3.1.2 on a vps server running Ubuntu 12.04 LTS and a I am not being able to start glassfish.
As X are not installed and I am connecting via ssh I am using the manual unzip method to install Glassfish.
Inside Glassfish bin directory with the glassfish user I do ./asadmin start-domain and nothing happens. It seems to hang. I cannot even stop it with ctrl+c. I need to kill the java process from another console.
The server.log file in the domain does not show any error. Last two lines are:
mar 23, 2013 1:12:03 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: Se ha iniciado correctamente en 7 mseg.
Thank you very much for your help.
I had the same problem when I was installing glassfish. I fixed this problem by running Glassfish on an old version of jre. I was trying to install with version 1.8 and ended up using an old installation of jre6. Server started fine after I installed Glassfish using version 1.6.
It looks like a bug with the log levels. GFFileHandler logging level might be set to "OFF".
Try this:
asadmin start-domain
asadmin set-log-levels com.sun.enterprise.server.logging.GFFileHandler=ALL
asadmin restart-domain

can not deploy war to jboss 7 from eclipse juno

I have a question about deploying my app.war to jboss7.
My testing environment:
OS: Ubuntu 12.10
Eclipse: Eclipse Juno (Eclipse 4.2)
JBoss: JBoss AS 7.1.1 Final
JBoss Tool: JBoss Tool 4
JDK version: JDK 7
If use the default server configuration, when I start server, it will start successfully, and my app.war can be deployed normal.
refer to this screenshot
I change "Default Settings" in Deployment tab of server configuration,
choose "Use workspace metadata (does not modify JBoss deploy folder).
refer to this screenshot
when I start server, it still start successfully, but my app.war does not be deployed.
the console has no error log and the log's content can't find any message about my app.war
I can't understand why this happens. Could someone tell me how to solve it?
Thanks for anyone's help.
Just download jboss and configure server and right click on project properties and deployement assembly then click on add and locate the target project folder

Can't launch JBoss7 from Eclipse Indigo

I can't figure out where I am going wrong. I have Eclipse Indigo, JBoss 7.1, JBoss Tools installed. I have this configuration working on my Windows7 64-bit system. I am attempting to set up a co-worker's Windows XP 32-bit machine with the same configuration but am not able to get the server to launch. I have configured the server but when I attempt to start the server, I get an error indicating that it was unable to start the server but there is no specific error listed.
I am able to start JBoss from the command prompt using the standalone.bat file.
I am able to configure the standalone.xml file from within Eclipse. I have confirmed this by checking the file in the standalone/configuration directory.
When I attempt to publish the project from within Eclipse, it does not publish.
Nothing gets written to server.log
The startup parameters match what I have on my computer.
I can't figure out what I am missing. Any suggestions would be appreciated!
Edit:
I have done some more checking. I am able to publish to the server and I am able to start the server (with the published application) fine from the command prompt. That part works. When I attempt to start the server from within Eclipse it gives me "Server JBoss 7.1 Runtime Server failed to start." It never writes anything to the console tab in Eclipse either so I can't tell why it is failing to start.
Also in the Servers tab, there is an entry called "Server Details". When I expand that entry, it says "Not Connected".
The answer to my problem is that Eclipse had be configured to use the java JDK, not the JRE. As soon as I switched over to use the JDK it started working fine. For some reason JBoss will start under 64-bit windows with the JRE but under 32-bit you need to use the JDK. I found the answer here: https://community.jboss.org/thread/169097