1 Reply Latest reply on Jun 15, 2009 2:46 AM by allen_lei

    Migration of a Tomcat app to JBoss 4.x

      Hi,

      can anyone tell me a good strategy to migrate an existing struts 1
      application from a tomcat 5.5 to a jboss 4.x release?
      the problem i have, is a specialty i have in my application. the
      war-file is currently deployed somewhere in the filesystem, but i use a
      applicationName.xml file in conf/Catalina/localhost to deploy the
      application.
      the problem is, the file contains some configuration options like the
      datasource, filepath to the log4j config and so on. so simply dropping
      the war file into deploy of JBoss doesn't work.

      is it possible to use such an xml file also in JBoss? you i have to
      configure this (means where i have to drop the war- and the xml-file,
      what things i have to pay attention, ...)?
      or do i have to change the configuration and inject them over some extra
      property-files?

      kind regards,
      michael obster

        • 1. Re: Migration of a Tomcat app to JBoss 4.x
          allen_lei

          Generally speaking,it's very simple to migrate apps from tomcat to jboss because the web container of jboss is tomcat.

          But for the specialty in your app,i just show some sugguests as follows:
          1) Datasource: you can use jboss jndi by defining *-ds.xml under deploy/;
          2) Log: you can use Log4j.xml in your app or jboss-log4j.xml under the directory $JBOSS_HOME/server/default/jboss-log4j.xml.
          3) others: you can define something in jboss-web.xml which places in the app.war/WEB-INF/ derectory.