Posts

Showing posts from September, 2012

Create a domain in glassfish server

While installing Glassfish, sometimes it does not create domain due to java path error. Edit asenv and point to your JDK installation for set AS_JAVA=C:\Java\jdk. you can create a domain with the asadmin tool Asenv.bat is present at the directory C:\glassfish3\glassfish\config glassfish-install-dir\bin\ asadmin create-domain your-domain-name

Deploying a web module in glassfish server

To Start Glass Fish Server Open command Prompt and type any of below commands asadmin  start-domain asadmin start-domain [domain name] [--verbose] To Stop Glass Fish server asadmin stop-domain [domain name] To view the deployed applications asadmin list-applications To build, deploy, clean, undeploy  a web module using Ant 1.       open command prompt 2.        Go to the application context directory 3.        Type ant 4.        ant deploy for deploy a web module to domain 5.        ant clean to clean all build artifacts (deletes the built and dest folder) 6.        ant undeploy un deploys web module from domain

Java EE 6 Software Development Kit installation

Java EE 6 Software Development Kit installation setup requires JRE at the default installation path. Otherwise it will pop up warning message like "This application needs version 1.6 or higher of the java(TM) Runtime Environment." 1. Double click the java-ee-sdk-windows.exe to start installtion process 2.If the application does note found jre, installation can be done from command prompt. 3.In command prompt , Go to the path where setup is present 4.Type setup name - j followed by jre path in double quotes. ( java_ee_sdk-6u4-windows-ml -j "C:\Program Files\Java\jre7") 5.During the installation of the SDK, do the following. Configure the GlassFish Server administration user name as admin, and specify no password. This is the default setting.  Accept the default port values for the Admin Port (4848) and the HTTP Port (8080).  Allow the installer to download and configure the Update Tool. If you access the Internet through a firewall, provide the proxy ...