English 中文(简体)
Does anyone have a beginners guide to installing and using glassfish?
原标题:

I am after a all round installation and introduction to Glassfish.

(ie Your boss has told you need to develop your web applications for glassfish instead of tomcat)

最佳回答

Installing

Installing Glassfish onto your own PC for testing.

  • Download the installer file off the glassfish website
  • Move the installer jar to the location you wish the files to be installed. Once installed, the install folder can not be moved. If you are not sure where to place it on OS/X or Linux, drop the installer jar into /usr/local/, this will result in your appserver being installed as /usr/local/glassfish
  • Run the installer with extra memory java -Xmx256m -jar glassfish-installer-xxx.jar
  • Run the configuration script: cd glassfish; lib/ant/bin/ant -f setup.xml

Starting the app server

To start glassfish with the default configuration type bin/asadmin start-domain domain1. This will result in the following URL s becoming available:

The default administrator username and password are:

  • Username: admin
  • Password: adminadmin

IDE support

Eclipse support

The easiest way to get Glassfish working under Eclipse 3.5 is to use this software Update url (https://ajax.dev.java.net/eclipse) inside Eclipse.

Caveats and warnings

  • For those used to storing application settings and configuration in a context.xml file, glassfish does not support this.

Moving on from here

The following links are also very useful:

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签