My server is an old box (5 years), definately under-powered.

Naw, that's cool, but thanks for the quick down low.  My Java mentor at work 
has explained servlets to me 2 times... I still don't get it.  I understand 
my webserver, but don't really see why I need Tomcat to be a liason for 
Apache.  If some homeskillet wants a webpage, why can't Apache go, "Yo, 
Flex, compile that MXML, we need to shoot some HTML & SWF's to [referrer]."

Now, if only I could get my webserver accessible outside my firewall...

----- Original Message ----- 
From: "Spike" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, March 20, 2005 11:31 PM
Subject: Re: [flexcoders] Re: Flex on Tomcat




JesterXL wrote:
> F'n rock, got it!  I installed (for the 5th time) Apache 1.3.33 and it
> works.  It's slow as nuts, but it works!

Are you saying it's a lot slower to access across the network than it is
to use locally, or that Flex is just slow on that machine?

If it's slow on that machine, is it just under-powered, or could it be a
config issue?

> So, at least explain (and none of this RTFM mess) what is the difference
> between Apache and Apache Tomcat?  Apache is my webserver (vs. JRun) and
> Tomcat is my ...????

Apache http server is your webserver.

Apache Tomcat is your servlet container. JRun is also a servlet container.

Both JRun and Tomcat have the ability to serve web pages, so if you are
doing simple development and aren't too concerned about using port
numbers other than 80, or if you're only developing one site at a time,
you can work just fine without a separate web server.

I tend to run JRun or Tomcat with Apache webserver because it's closer
to the configuration that will be used in a deployed environment, so I'm
less likely to run into issues when I move from development to deployment.

Do you want a more detailed explanation of what the difference is
between a web server and a servlet container?

Spike

>
>
> ----- Original Message ----- 
> From: "JesterXL" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Sunday, March 20, 2005 10:58 PM
> Subject: Re: [flexcoders] Re: Flex on Tomcat
>
>
>
> Ok, got my router setup; currently forwarding 80/8080 traffic to my 
> server.
> However, my server can't hit localhost, it says connection was refused 
> from
> localhost.  I get the same from my Alienware trying to hit to from
> 192.168.1.100.  If I turn my Windows XP built in Firewall on my server, I
> can't hit it at all from my Alienware.
>
> ...so, why in the heck am I not even hitting localhost?  Apache Tomcat is
> running in services, I can see my Flex apps work, and I even have a custom
> index.htm file in the ROOT of webapps.  When I had Apache 2 or 1.3.x
> installed, I could see Apache's default localhost page.
>
> Any ideas?  I'm still playing with settings.
>
> ----- Original Message ----- 
> From: "Andrew Spaulding" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Sunday, March 20, 2005 8:04 PM
> Subject: [flexcoders] Re: Flex on Tomcat
>
>
>
>
> If you just wish to access tomcat on your server via an ip address you
> should forward all traffic on port 80 directed at your server to 8080
> on your server. This would be done on your router.
>
> You should still be able to access http://ipaddress:8080/flex etc
> without a port forward unless you're blocking traffic on 8080?
>
> Andrew
>
>
> --- In [email protected], "JesterXL" <[EMAIL PROTECTED]> wrote:
>
>>I tried port forwarding 8080 traffic to my server box via my Linksys
>
> Router.
>
>>It worked for 27000+ for HalfLife2 to my Alienware, so I figured I
>
> could
>
>>just do the same.
>>
>>Should I instead port forward port 80 as well or instead?  Or should
>
> I do
>
>>this using Tomcat instead of my router... or both?
>>
>>----- Original Message ----- 
>>From: "Andrew Spaulding" <[EMAIL PROTECTED]>
>>To: <[email protected]>
>>Sent: Sunday, March 20, 2005 7:36 PM
>>Subject: [flexcoders] Re: Flex on Tomcat
>>
>>
>>
>>
>>You tried forwarding 8080?
>>
>>Or did you mean to say you portforwarded 80 to 8080? web to tomcat?
>>
>>Andrew
>>
>>--- In [email protected], "JesterXL" <[EMAIL PROTECTED]> wrote:
>>
>>>Super-r0x0r... Flex works (just tested some samples, but JSP's still
>>>fubarred), but accessing it from another box doesn't.  Tried
>>
>>forwarding port
>>
>>>8080, no dice.
>>>
>>>:: tries again ::
>>>
>>>Damn, times out, no dice...
>>>
>>>:: tries some more ::
>>>
>>>BWAHAHA!  This works... except, it returns the text, not the SWF:
>>>
>>>file://///Pandemonium/flex/diceroller/DiceRoller.mxml
>>>
>>>...darn it, shoot, lasjdfkjasdf...
>>>
>>>I guess I can just toggle to my other machine to compile and view,
>>
>>but...
>>
>>>lame.  She's slow as heck, too, compared to compiling on my Alienware.
>>>
>>>I'll just repeat the whole process tomorrow morning on here, I reckon.
>>>Cool, now it's in the archives!
>>>
>>>Thanks for the help!!!
>>>
>>>----- Original Message ----- 
>>>From: "Andrew Spaulding" <[EMAIL PROTECTED]>
>>>To: <[email protected]>
>>>Sent: Sunday, March 20, 2005 7:21 PM
>>>Subject: [flexcoders] Re: Flex on Tomcat
>>>
>>>
>>>
>>>
>>>You should be able to just put the computers IP address into your
>>>browser but with the port number attached.
>>>
>>>http://192.168.1.100:8080 (or whatver the ip is of the machine running
>>>tomcat)
>>>
>>>if you're viewing it on the machine running tomcat just go to
>>>http://localhost:8080
>>>
>>>in both these cases you will see the tomcat admin screen. If you wish
>>>to go straight to the apps (i.e. samples.war would have been exploded
>>>into a samples directory) then go to
>
> http://192.168.1.100:8080/samples/
>
>>>That should work fine ;)
>>>
>>>andrew
>>>
>>>
>>>
>>>--- In [email protected], "JesterXL" <[EMAIL PROTECTED]> wrote:
>>>
>>>>I had a bunch of Java, Ant, Cygwin, and other assorted server-side
>>>
>>>products
>>>
>>>>that I have no clue what they do still installed on my server box;
>>>
>>>admin at
>>>
>>>>work had me install them to work from home.  Therefore, Java was
>>>
>>>already an
>>>
>>>>evironment variable, and Tomcat 4.1.30 started up just fine
>>>
>>>(pointing there
>>>
>>>>failed to compile index.jsp, but I just want Flex, not JSP so
>
> I'm not
>
>>>>crying).
>>>>
>>>>I'll go add the Catalina path you mention below, but before I do,
>>
>>I saw
>>
>>>>Tomcat move my wars into folders... but how do I access that box
>
> on my
>
>>>>network?
>>>>
>>>>Like, I've got my router that's plugged into my DSL.  I have 4 boxes
>>>
>>>(me and
>>>
>>>>my server are 2) plugged into my router.  I tried hitting my
>>>
>>>server's local
>>>
>>>>IP in a browser, but no go.  Do I have to forward port 8080 traffic
>>>
>>>to that
>>>
>>>>box so if my box hits it via 192.168.1.100 (my server), then it'll
>>>
>>>know to
>>>
>>>>forward that request there, and thus Flex?
>>>>
>>>>----- Original Message ----- 
>>>>From: "Andrew Spaulding" <[EMAIL PROTECTED]>
>>>>To: <[email protected]>
>>>>Sent: Sunday, March 20, 2005 7:11 PM
>>>>Subject: [flexcoders] Re: Flex on Tomcat
>>>>
>>>>
>>>>
>>>>
>>>>Go to
>
> http://jakarta.apache.org/site/downloads/downloads_tomcat-4.cgi
>
>>>>and download the 4.1.31 zip binary.
>>>>
>>>>I would recommend putting all Java related files in c:\Java\. In
>
> here
>
>>>>you would have your Java sdk, tomcat etc. So just extract the tomcat
>>>>zip into this directory and then add an evironment variable
>>>>'CATALINA_HOME' and then add %CATALINA_HOME%\bin to your path. From
>>>>here you can then run c:\Java\jakarta-tomcat-4.1.31\bin\startup.bat
>>>>
>>>>
>>>>
>>>>That should get you started!
>>>>
>>>>Any other troubles just keep posting ;)
>>>>
>>>>Andrew.
>>>>
>>>>
>>>>--- In [email protected], "JesterXL" <[EMAIL PROTECTED]> wrote:
>>>>
>>>>>Bleh, ok, Tomcat won't start, not sure it's deal.  Either via the
>>>>
>>>>GUI in my
>>>>
>>>>>tray, or in the services panel, it just won't start.
>>>>>
>>>>>BTW, am I supposed to have Apache AND Apache Tomcat installed,
>>
>>or just
>>
>>>>>Apache Tomcat?  I've tried 5.5 and 5.0.18 both with, and without
>>>>
>>>>Apache 1.33
>>>>
>>>>>installed; why not try 4.1.30!
>>>>>
>>>>>:: goes to download 4.x.x ::
>>>>>
>>>>>----- Original Message ----- 
>>>>>From: "Andrew Spaulding" <[EMAIL PROTECTED]>
>>>>>To: <[email protected]>
>>>>>Sent: Sunday, March 20, 2005 6:52 PM
>>>>>Subject: [flexcoders] Re: Flex on Tomcat
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>Hey Jester,
>>>>>
>>>>>I have flex 1.5 running on tomcat on my local windows xp sp2
>>
>>machine.
>>
>>>>>I'm running tomcat 4.1.30 and don't have any problems.
>>>>>
>>>>>The default port for a tomcat install is '8080'. Is there a
>
> webapps
>
>>>>>directory in the tomcat root? That's where you should deploy
>>
>>your war
>>
>>>>>files.
>>>>>
>>>>>Also I'm assuming you have JAVA_HOME as a windows environment
>>>>>variable? You should also add CATALINA_HOME (tomcat) and then
>
> add it
>
>>>>>to your path as %CATALINA_HOME%\bin; (same for JAVA_HOME)
>>>>>
>>>>>If this doesnt help please post back with your problems.
>>>>>
>>>>>Best,
>>>>>
>>>>>Andrew.
>>>>>
>>>>>
>>>>>
>>>>>--- In [email protected], "JesterXL" <[EMAIL PROTECTED]>
>
> wrote:
>
>>>>>>- Installed Flex 1.5, entered in serial
>>>>>>- Installed Apache Tomcat 5.5.+ on WinXP SP2
>>>>>>- dropped flex.war + samples.war in htdocs (Apache's root I
>>
>>reckon)
>>
>>>>>>- restarted Apache Tomcat
>>>>>>- typed in various localhost addresses, but no go.
>>>>>>
>>>>>>When I extracted the wars, same issue; it treats MXML as text
>>
>>which
>>
>>>>>tells me
>>>>>
>>>>>>Flex isn't running.  I've tried variations of localhost:8700,
>>>>>>localhost:8700/flex, etc... all to no avail.
>>>>>>
>>>>>>Quick search on Google brought up various attempts on other
>
> OS's,
>
>>>>>but since
>>>>>
>>>>>>the Flexcoders archive isn't all the way archived on Manish
>>
>>server,
>>
>>>>>anyone
>>>>>
>>>>>>help me out?
>>>>>>
>>>>>>Thanks if you can help!
>>>>>>
>>>>>>--JesterXL
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>Yahoo! Groups Links
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>>
>>>Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>Yahoo! Groups Links
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>

-- 
--
--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org



Yahoo! Groups Links








 
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:
    http://docs.yahoo.com/info/terms/
 



Reply via email to