8 Replies Latest reply on Jul 10, 2009 11:47 AM by maxandersen

    jboss-web-2.1.2.GA

    micuentadecasa

      hi, i want to know the differences between jboss-web-2.1.2.GA and jboss as 5 to be used with jboss tools. i suppose the web its faster.

      another thing, when i try to install it in eclipse i need to select a type of server, but none sounds like this, how i can install it?

        • 1. Re: jboss-web-2.1.2.GA
          maxandersen

          jboss-web ? you mean the jboss customized tomcat server ?

          I would need to ask the jboss-web guys about what the technical differences are - maybe ask in their forum ?

          But as far as i'm concerned its just to be used as a Tomcat; so try use Tomcat 6 adapter with it. If that doesn't work - put a feature request in.

          • 2. Re: jboss-web-2.1.2.GA
            peterj

            JBoss Web Server is a servlet container (it is based on Tomcat). Thus if all you want to write are web apps using, for example, servlets and JSPs, you can use it. If you want to do, for example, messaging, EJBs or web services(?) then you need JBoss AS.

            To create a JBoss Web-based server in Eclipse, try using the Apache | Tomcat 6 selection. That worked for me. And the start times are much more reasonable (475ms on my dual-core laptop) as opposed to JBoss AS 5.1 (well over 30 seconds).

            • 3. Re: jboss-web-2.1.2.GA
              micuentadecasa

              thanks peter, please max can be interesting an article about this, for example i will know if we can use web services with web server....

              start time matters, for example with sts spring ide the start time are of one second...

              peter im sorry, installation goes how you say but running its not posible, i post the debug :

              10-jul-2009 8:13:29 org.apache.tomcat.util.digester.SetPropertiesRule begin
              ADVERTENCIA: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:testWEb' did not find a matching property.
              10-jul-2009 8:13:29 org.apache.catalina.core.AprLifecycleListener init
              INFO: La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path: C:\Archivos de programa\Java\jre6\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Archivos de programa/Java/jre6/bin/client;C:/Archivos de programa/Java/jre6/bin;C:\Archivos de programa\PHP\;C:\Archivos de programa\CollabNet Subversion;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\CollabNet Subversion;C:\Archivos de programa\Subversion\bin;C:\Archivos de programa\Archivos comunes\GTK\2.0\bin;"C:\Archivos de programa\Symantec\Norton Ghost 2003\";"C:\Archivos de programa\IZArc";C:\Archivos de programa\Microsoft SQL Server\80\Tools\Binn\;C:\Archivos de programa\QuickTime\QTSystem\;C:\Archivos de programa\PHP;C:\Archivos de programa\MySQL\MySQL Server 5.1\bin;C:\Archivos de programa\Java\jdk1.6.0_04/bin;
              10-jul-2009 8:13:29 org.apache.coyote.http11.Http11Protocol init
              INFO: Inicializando Coyote HTTP/1.1 en puerto http-8080
              10-jul-2009 8:13:29 org.apache.coyote.ajp.AjpProtocol init
              INFO: Inicializando Coyote AJP/1.3 en ajp-8009
              10-jul-2009 8:13:29 org.apache.catalina.startup.Catalina load
              INFO: Initialization processed in 322 ms
              10-jul-2009 8:13:29 org.apache.catalina.core.StandardService start
              INFO: Arrancando servicio Catalina
              10-jul-2009 8:13:29 org.apache.catalina.core.StandardEngine start
              INFO: Starting Servlet Engine: JBoss Web/2.1.2.GA
              10-jul-2009 8:13:29 org.apache.catalina.core.StandardContext addApplicationListener
              INFO: El escuchador "com.sun.faces.config.ConfigureListener" ya está configurado para este contexto. La definición duplicada ha sido ignorada.
              10-jul-2009 8:13:29 org.apache.catalina.core.StandardContext listenerStart
              GRAVE: Error configurando escuchador de aplicación de clase com.sun.faces.config.ConfigureListener
              java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1365)
              at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
              at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:406)
              at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:388)
              at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:117)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1056)
              at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1056)
              at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
              at org.apache.catalina.core.StandardService.start(StandardService.java:523)
              at org.apache.catalina.core.StandardServer.start(StandardServer.java:736)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:575)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
              10-jul-2009 8:13:29 org.apache.catalina.core.StandardContext listenerStart
              GRAVE: Se ha saltado la instalación de escuchadores de aplicación debido a error(es) previo(s)
              10-jul-2009 8:13:29 org.apache.catalina.core.StandardContext start
              GRAVE: Error listenerStart
              10-jul-2009 8:13:29 org.apache.catalina.core.StandardContext start
              GRAVE: Falló en arranque del Contexto [/testWEb] debido a errores previos
              10-jul-2009 8:13:29 org.apache.coyote.http11.Http11Protocol start
              INFO: Arrancando Coyote HTTP/1.1 en puerto http-8080
              10-jul-2009 8:13:29 org.apache.coyote.ajp.AjpProtocol start
              INFO: Arrancando Coyote AJP/1.3 en ajp-8009
              10-jul-2009 8:13:29 org.apache.catalina.startup.Catalina start
              INFO: Server startup in 313 ms

              • 4. Re: jboss-web-2.1.2.GA
                maxandersen

                 

                "micuentadecasa" wrote:
                thanks peter, please max can be interesting an article about this, for example i will know if we can use web services with web server....


                webservices is not something that runs outofthebox on a Servlet container so you would need to install and configure it then you might just as well use a real application server.


                start time matters, for example with sts spring ide the start time are of one second...


                The IDE doesn't have anything to do with the startup of the runtime - I assume you are using some specific scaled down container (i.e. their dmserver or ) ?

                But yes - startup time is important, I won't argue with that (just not something an IDE can do much about ;)


                peter im sorry, installation goes how you say but running its not posible, i post the debug :


                Without any info about what you are actually trying to deploy then its hard to help, but my guess is you took a JSF project without deploying the JSF libs (another reason why things are simpler with AS compared to a "plain" tomcat :)


                • 5. Re: jboss-web-2.1.2.GA
                  micuentadecasa

                  i dont understand very well why its needed an application server to serve web services, but i come from .net so i suppose its diferent...

                  im with you in all, when i say start time i refer to time of server not ide, and the spring dm server starts in one second.

                  well forget it, i will use jboss AS. thanks.

                  • 6. Re: jboss-web-2.1.2.GA
                    maxandersen

                    I didnt say you need AS for it, just said that tomcat a servlet container does not come default with a webservice implementation.

                    Just that for an appserver it is already configured

                    • 7. Re: jboss-web-2.1.2.GA
                      peterj

                       

                      GRAVE: Error configurando escuchador de aplicación de clase com.sun.faces.config.ConfigureListener
                      java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener


                      Looks like you are using JSF in your web app. JBoss Web does not come with the JSF libraries so you need to package them within your web app. I am not sure, offhand, how to convince Eclipse to do that (I usually use Maven or Ant to package and deploy).

                      • 8. Re: jboss-web-2.1.2.GA
                        maxandersen

                        Add them into the folder where you other libraries are (or use some of the predefined examples which includes libs)