Hi Dan,
You don't have to do that much
work to get Flex running under Tomcat. Here is the simplest
way:
- install Tomcat under
c:\tomcat (just an example, put it anywhere you want)
- create a folder called
"samples" under c:\tomcat\webapps
- extract the contents of the
samples.war to the c:\tomcat\webapps\samples folder
- start up
tomcat
- navigate to http://loclahost:8080/samples and
voila!
Repeat the same instructions
for the flex.war and then create your first ever helloworld.mxml file and put it
under c:\tomcat\webapps\flex and start-up tomcat. Then navigate to http://loclahost:8080/flex/helloworld.mxml
to look at your creation.
That's it, you don't need to
put any jar files in any special places.
Hope that
helps!
Dimitrios "Jimmy" Gianninas
RIA Developer
Optimal Payments Inc.
From: Dan Glauser [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 24, 2005 12:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Minimal Tomcat Deployment
I'm sorry if this topic has already been covered but when searching
the list I was unable to find what I am looking for.
I'd like to put together a *minimal* set of tasks for deploying a Flex
app in Tomcat. Specifically I'm looking for what jars need to be
where and what deployment descriptors need to be changed. Now I've
looked at the samples that come with Flex and here is what I have so
far:
I'm aware that you can put flex-tomcat-common.jar in
$TOMCAT_HOME/common/lib and put flex-tomcat-server.jar in
$TOMCAT_HOME/server/lib. From the samples webapp I see a bunch of
other jars in WEB-INF/flex/jars but the ones that seem to stand out
are flex-tags.jar and flex.jar.
There are a bunch of entries in the web.xml for the samples
application. Not sure which are necessary for a basic application.
I know that I can just get going by deploying the flex.war webapp in
Tomcat but I'm looking for a minimal project that contains all the
necessary flex libraries. I'm also looking for the minimal
configuration file changes to get "hello world" working and to have
Tomcat properly handle mxml files.
I've found lots of good examples just to get me going with Flex but I
haven't yet found a minimalist approach.
Thanks in advance,
--
Dan Glauser
J2EE Developer
[EMAIL PROTECTED]
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.