You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Jay Goodman <ja...@hotmail.com> on 2000/10/11 18:06:17 UTC
Macromedia Generator(soltion and question)
To those unfamiliar with the product, MM Generator is a group of servlets
that takes templates(.swt) and generates flash Movies(etc..)
on the fly. MM only officially supports JRun.
(The end of the post poses a tomcat/apache question so those
unfamiliar with the product may still be able to help.
As soon I figure out the answer, I'll make sure that
it gets added to an appropriate FAQ. )
To those familiar with MM generator:
Here's the deal to get it to work with tomcat:
copy your flashgen.jar to $TOMCAT_HOME/lib
copy libflash.so to a suitable place (i.e. /usr/java/jre/lib/i386)
$GENERATOR_HOME = /usr/local/generator
in web.xml I added:
<servlet>
<servlet-name> flash </servlet-name>
<servlet-class> com.macromedia.generator.servlets.FlashGenerator
</servlet-class>
<load-on-startup> -2147483646 </load-on-startup>
<init-param>
<param-name> InstallPath </param-name>
<param-value> /usr/local/generator/ </param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>
flash
</servlet-name>
<url-pattern>
*.swt
</url-pattern>
</servlet-mapping>
point to a .swt using tomcat's HttpConnectionHandler (8080)
and all works well.
Now the question/problem lies in Apache/Tomcat.
In httpd.conf, I added the lines
AddType */* .swt
AddHandler jser-servlet .swt
(FlashGen sets the mime type because it can produce many types)
At this point, I point to a swt, and the browser shows 404.
Apache's access log claims a 200 and control does make it
to the flash Servlet because the following message is
reported in the generator's log.
Wed Oct 11 10:22:56 CDT 2000: Invalid URL reference to Flash Generator
template: /Templates/e_Cards/e_Corporate/Templates/e_geometric.swt
Why does tomcat's web server work,
but the apache/tomcat connector fail.
I'd assume some sort of rewriting is/needs to be involved.
Can anyone shed some light on this situation?
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.