jboss

FAQ What's New

Table of Contents [show]

Keywords

Axis, C3P0, JMX, Java application server

Copyright Information

[JH]

A famous Java application server

1 A Hello World example with Jboss and Eclipse

  1. Install Eclipse and jboss
  2. Install jboss Eclipse IDE
  3. In eclipse create a new project by selecting new->Project->Web project->dynamic web project, say the project name is demo. The project should have a demo\src directory for source files, a demo\WebContent directory for jsp and html files.
  4. Right click project name demo, select properties->packaging configurations. Select Standar-War.war. You need to manually add the items you want in the package. You need to fill out Prefix field: if it's .jsp page, then leave it blank; if it's .class file, use WEB-INF\classes. There is also an include and an exclude field: use **\*.class if you want to include all .class files.
  5. Add a few jsp file and a few servlet
  6. Right click project name demo, then choose Run Packaging. A demo.war file will be generated in the directory you specified when you setup the "Packaging configurations"
  7. Copy the .war file to you jboss server. Put it under $JBOSS_HOME/server/deploy/
  8. The content you created can be accessed by http://www.yourdomainname.com/demo