9 Replies Latest reply on Aug 14, 2008 5:46 PM by rockym

    Frequently Asked Questions[Tomcat/Http/Apache/Servlets/JSF/J

    anil.saldhana

      Question: Should I front Tomcat with Apache or IIS?

      Read Mladen Turk's article:
      http://www.apache.org/~mturk/docs/article/ftwai.html

      Tomcat can serve static as well as dynamic pages.

        • 1. 3750975
          anil.saldhana

          > > Sometime ago I went on the idea to drop value
          > > objects
          > > (mostly because I don't like them, maybe I am
          > wrong
          > > I am open to discuss that) and use directly locals
          > > in web tiers.
          >
          > Why don't you like them?

          1. basically you have to keep un sync each value object
          with its ejb master. Well I have used xdoclet generation
          facilities but these value objects are not complete enough
          and there are some gaps. Plus it add some redundancy.

          2. when I request a collection of objects, let's
          say a bunch of thread, I have to iterate over it
          and create a value object for each of them repackage
          a new collection and drop the first one.

          3. 1+2 make the code less readable and less maintanable.

          4. why add another layer between servlet and ejb if
          entity beans are fast enough ? in functionnalities
          value object == entities, thus your code
          needs only few changes to use them :
          change ThreadEJBValue to ThreadEJBLocal, collections instead of arrays etc...

          >
          > > Another flaw was the lack of something in web
          > tiers,
          > > and
          > > that's a big hindrance if we want to show that
          > > forums
          > > are on the ways.
          >
          > As I've just written in another thread, I've finally
          > made it build, so I should be able to commit my web
          > tier ASAP.
          >

          I have dropped use of value objects and remove
          remoting in session beans. would it be possible
          to change struts stuff to use that ? thus commiting
          after my next commit with that stuff ?

          > But...
          >
          > > During the last days I spent most of my time
          > > developping
          > > a small web tiers demo.
          > >
          > > I don't like struts very much, therefore I gave a
          > > chance
          > > to tapestry and I have been able to build
          > something
          > > that
          > > use my ideas (no value-objects).
          >
          > ... should I? My web tier demo is based on struts and
          > uses value objects (since I don't undestand why not
          > to use them :-)

          As I say we can use both struts and tapestry and keep
          only one. But what I wanted to do with tapestry dev
          was to figure out :

          1.what is lacking now in infrastructure
          2.is that possible to get rid of value object ?

          julien

          • 2. Frequently Asked Questions[Tomcat/Http/Apache/Servlets/JSF/J
            anil.saldhana
            • 3. Re: Frequently Asked Questions[Tomcat/Http/Apache/Servlets/J
              fundoo2

              i have successfully connected apache and jboss using mod_jk connector(using tha above links and wiki) and it's running well on local machine.
              but when i tried to implement it on a remote host running apache 2.0.46(let ip be 100.10.56.98)
              .it failed to respond.
              in the worker file i have configured
              ..
              .
              .
              host=100.10.56.98
              .
              .


              and in th server.xml i did
              .
              .

              <engine...... defaulthost=<name of virtual host>....>


              .....

              but when i'm trying to access it there is port conflict and accessing the web-console with:
              http://100.10.56.98/web-console/

              goes to indefinite waiting.

              please help me.

              thanks

              • 4. Re: Frequently Asked Questions[Tomcat/Http/Apache/Servlets/J
                andresram1

                Hello

                I can´t deploy my images build under jsf applications

                I have installed apache + tomcat and everything is fine with the configurations (I think so) because php, jsp and servlets application work well.

                My jsf applications work, but all images aren't deployed

                Thanks for your collaboration

                • 5. Re: Frequently Asked Questions[Tomcat/Http/Apache/Servlets/J
                  andresram1

                  :::JSF in apache + tomcat:::

                  Well

                  I found a solution...

                  I have added to the web.xml of my jsf application the welcome-files tag... and it works

                  But maybe there's another solution

                  Bye

                  • 6. Re: Frequently Asked Questions[Tomcat/Http/Apache/Servlets/J
                    konikoni

                    How can i set up virtual hosting on 4.2.0.CR2?

                    • 7. Re: Frequently Asked Questions[Tomcat/Http/Apache/Servlets/J
                      billmaster

                      Why do I need to install Tomcat if jboss already comes with Tomcat?

                      • 8. Re: Frequently Asked Questions[Tomcat/Http/Apache/Servlets/J
                        lkafle

                        Jboss still has some basic problems not making it well suited for most of technocrats. may be they will overcome these in coming days.

                        • 9. Re: Frequently Asked Questions[Tomcat/Http/Apache/Servlets/J
                          rockym

                          Which connector is used for a Jboss Server version 4.0.4??, because those mod_jk are for the Tomcat and Apache server, and during the methods u mention files that Jboss doesn´t have, Im new with this server but I don´t know how it works

                          Thanks