/javaee-legacy-app-example

An example of legacy application that uses JavaEE

Primary LanguageJava

javaee-legacy-app-example

Stack

  • JBoss 4.0.5
  • JSP
  • Struts 1.1
  • EJB 2.1

Glossary

Getting started

We should add a new "Application Policy" into the jboss/server/default/conf/login-config.xml.

<application-policy name = "app-security-domain">
    <authentication>
        <login-module code = "com.example.jaas.MyLoginModule" flag = "required">
        </login-module>
    </authentication>
</application-policy>

Structure

  • /app-ear/META-INF/application.xml - Java EE Deployment Descriptor
  • /app-web/WebRoot/META-INF/MANIFEST.MF
  • /app-web/WebRoot/WEB-INF/web.xml
  • /app-web/WebRoot/index.jsp

Libraries

Struts 1.1

/app-web/WebRoot/WEB-INF/lib/commons-beanutils.jar
/app-web/WebRoot/WEB-INF/lib/commons-collections.jar
/app-web/WebRoot/WEB-INF/lib/commons-digester.jar
/app-web/WebRoot/WEB-INF/lib/commons-fileupload.jar
/app-web/WebRoot/WEB-INF/lib/commons-lang.jar
/app-web/WebRoot/WEB-INF/lib/commons-logging.jar
/app-web/WebRoot/WEB-INF/lib/commons-validator.jar
/app-web/WebRoot/WEB-INF/lib/jakarta-oro.jar
/app-web/WebRoot/WEB-INF/lib/struts.jar
/app-web/WebRoot/WEB-INF/lib/struts-legacy.jar

References