Configure WURFL on Resin application server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paks
    New Member
    • Dec 2006
    • 13

    Configure WURFL on Resin application server

    Hi there,
    I am using WURFL to avoid the trouble of choosing between WML/XHTML.
    The problem is that the existing download only supports Apache Tomcat Server and I need it to work on Resin application server.

    To do this just unzipped it in webapps and fool around with the configurations :P

    Below is a sort of "installati on guide" for WURFL on Resin Server.

    Code:
    WURFL installation on Resin Server 3.1.5
    ------------------------------------------
    1. Unzip the wurfl-file in {resin.home}/webapps
    2. Add the web-app in the {resin.home}/conf/resin.conf inside 
       the tags <host><cluster> ... </host></cluster>
    
          <web-app id="/wurfl" root-directory="${resin.home}/webapps/wurfl">
            <!--
               - WURFL
              -->
            <prologue>
            </prologue>
          </web-app>
    
    3. Switch the order of <servlet-name> and the <description> tags 
       in {resin.home}/webapps/wurfl/WEB-INF/web.xml in between the <servlet> tags.
    
       So the order becomes:
    	<servlet>
    		<description></description>
    		<servlet-name></servlet-name>
    			etc.
    	</servlet>
    
    4. If you want the bat-files wurfl/WEB-INF/classes 
       (c.bat & d.bat - which sets the classpath to different jar-files) to work.
       You'll have to change the directories and of course add the mentioned jar-files, 
       if your wurfl/lib or {resin.home}/lib doesn't contain them already.
  • RedSon
    Recognized Expert Expert
    • Jan 2007
    • 4980

    #2
    Hi, I moved your post and added it to our articles section. Thanks for the good tutorial.

    -Red

    Comment

    Working...