You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Aron Benett <ab...@revenuetech.com> on 2002/11/22 18:56:50 UTC

Turbine and JBoss-3.0.3

Hi all,

Recently I posted a request to anyone running Turbine with the new JBoss and
the only replies were from people wanting to know how to do it or that it is
not working.

I am happy to let everyone know that this is not true and to get it working
is actually rather trivial. Here are the steps to make it work.

1) Deploy your Turbine application as a .war directory under one of the
JBoss deployment directories or create your own.
    ex. JBoss-3.0.3/server/myDeployment/deploy/myTurbineApp.war
    I took my tdk-2.2b3/webapps/myTubineApp directory and just copied it to
the .war directory above.

2) Copy any .jar files that you want deployed globally to
    JBoss-3.0.3/server/myDeployment/lib
    I have some class files that are shared by multiple apps under
myDeployment so I put the .jar file here.

3) Add all the .jar files in your myTurbineApp.war/WEB-INF/lib directory to
the Class-Path attribute of your myTurbineApp.war/META-INF/Manifest.mf file

    ex. some lines from my Manifest.mf file
Manifest-Version: 1.0
Created-By: Ant 1.4
Class-Path: myTurbineApp.war/WEB-INF/classes
 myTurbineApp.war/WEB-INF/lib/bcel.jar
 myTurbineApp.war/WEB-INF/lib/breezetk.jar
 myTurbineApp.war/WEB-INF/lib/cactus-1.2.jar
 myTurbineApp.war/WEB-INF/lib/cactus-ant-1.2.jar
 myTurbineApp.war/WEB-INF/lib/commons-beanutils-1.4-dev.jar
 myTurbineApp.war/WEB-INF/lib/commons-collections-2.0.jar
 myTurbineApp.war/WEB-INF/lib/commons-configuration-1.0-dev.jar
 myTurbineApp.war/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar
 myTurbineApp.war/WEB-INF/lib/commons-email-0.1-dev.jar
 myTurbineApp.war/WEB-INF/lib/commons-lang-1.0-b1.jar
 myTurbineApp.war/WEB-INF/lib/commons-logging-1.0.1.jar
 myTurbineApp.war/WEB-INF/lib/commons-pool-1.0.jar
 myTurbineApp.war/WEB-INF/lib/commons-util-1.0-rc2-dev.jar
.....

4)Add the following line to a jboss-web.xml file in the
myTurbineApp.war/WEB-INF directory

    <context-root>/myTurbineApp</context-root>

5) Your web.xml file in the myTurbineApp.war/WEB-INF directory should have
the following:

  <servlet>
    <servlet-name>myTurbineApp</servlet-name>
    <servlet-class>org.apache.turbine.Turbine</servlet-class>
    <init-param>
      <param-name>properties</param-name>
      <param-value>/WEB-INF/conf/TurbineResources.properties</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>myTurbineApp</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>myTurbineApp</servlet-name>
    <url-pattern>/servlet/templates/*</url-pattern>
  </servlet-mapping>

6)Now if you go to JBoss-3.0.3/bin and type
    run -c myDeployment
    it will start up your Turbine application

    Since I run JBoss/Jetty at port 8090 I can now access my Turbine
application with the following:

    http://myHost:8090/myTurbineApp/servlet/myTurbineApp


Aron Benett
Lead Engineer
Revenue Technologies
abenett@revenuetech.com
www.revenuetech.com




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Turbine and JBoss-3.0.3

Posted by Panu Hällfors <pa...@hallfors.com>.
On Fri, Nov 22, 2002 at 12:56:50PM -0500, Aron Benett wrote:
> I am happy to let everyone know that this is not true and to get it working
> is actually rather trivial. Here are the steps to make it work.

Thank you!

> 4)Add the following line to a jboss-web.xml file in the
> myTurbineApp.war/WEB-INF directory
> 
>     <context-root>/myTurbineApp</context-root>

This was pretty much what I was missing.
Thanks!

    Panu

-- 
Panu Hällfors, panu@hallfors.com|CS Student, Helsinki University of Technology
   http://panu.hallfors.com     |    Chief Software Architect, Viloke Oy

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>