2008-08-12

Blazeds in tomcat

When using blazeds with tomcat. Do the following to make authentication/authorization work:
Copy the files flex-tomcat-common.jar and flex-tomcat-server.jar to the directory ${catalina.home}/lib/blazeds.
Edit the file and add the following to the property common.loader ${catalina.home}/lib/blazeds/*.jar
Edit the META-INF/contex.xml file (or if running from inside netbeans c:\Documents and Settings\you\.netbeans\6.1\apache-tomcat-6.0.16_base\conf\Catalina\localhost\ROOT.xml ) and add the following:
<Context path="">
<!-- Enable the TomcatValve for custom login support from this webapp.
-->
<Valve className="flex.messaging.security.TomcatValve" />
</Context>