7 Replies Latest reply on Jan 11, 2002 2:39 PM by Kerry Shih

    Unable to run Tomcat test url

    glm Newbie

      Hi,
      I have installed JBoss-2.4.4_Tomcat-4.0.1 and after double clicking on run_with_catalina.bat I get the following error when I set the browser to http://localhost:8080/ :

      [INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING configuration error for request URI
      [ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
      java.lang.NullPointerException
      at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:280)
      at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:180)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
      at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
      at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
      at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
      at java.lang.Thread.run(Thread.java:484)

      Can anyone tell me what's wrong?

      Thanks,

      Gary

        • 1. Re: Unable to run Tomcat test url
          Adrian Brock Master

          For the 4,758th time http://localhost:8080/jboss :-)

          I don't know why we don't configure this as the
          url you requested?

          Regards,
          Adrian

          • 2. Re: Unable to run Tomcat test url
            Ted Graham Newbie

            I was having the same problem, now solved. Thanks!

            However, I still can't get Tomcat to serve up any other pages. I'm trying to get to the standard Tomcat examples that are under the WEBAPPS directory. Accessing http://localhost:8080/examples/jsp gives me, "HTTP Status 500 - No Context configured to process this request"

            Ideas?

            Ted

            • 3. Re: Unable to run Tomcat test url
              Adrian Brock Master

              Try for embedded tomcat within jboss,

              cd $CATALINA_HOME/webapps/examples
              jar -cf examples.war *
              cp examples.war $JBOSS_HOME/deploy

              or for tomcat by itself

              cd $CATALINE_HOME/bin
              ./startup.sh

              Then one url is

              http://localhost:8080/examples/jsp/index.html

              If you get a JVM_BIND exception it means you forgot
              to stop jboss before starting tomcat or vice-versa.

              It's possible to run both together, but you have
              to configure one of them on a different port.
              This post is already too long to explain that.

              Please translate unix commands to dos
              if required.

              Regards,
              Adrian

              • 4. Re: Unable to run Tomcat test url
                Victor Sturgeon Newbie

                When I run the sendmail example I get the following error. I think Im missing SendMailServlet. Can someone confirm this and if so let me know were to find the stuff I need.

                Thanks.

                Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error

                type Exception report

                message Internal Server Error

                description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

                exception

                javax.servlet.ServletException: Wrapper cannot find servlet class SendMailServlet or a class it depends on
                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:807)
                at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
                at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
                at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
                at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
                at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
                at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
                at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
                at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
                at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
                at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
                at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
                at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
                at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
                at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
                at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
                at java.lang.Thread.run(Thread.java:484)

                • 5. Re: Unable to run Tomcat test url
                  Ted Graham Newbie

                  Thanks Adrian.

                  I'm using tomcat within jboss (JBoss-2.4.4_Tomcat-4.0.1 package). Your directions for embedded tomcat worked great.

                  But now I'm confused. I thought JBoss was just a J2EE application server, not also a web server. When I put a web page in the Jboss\deploy directory, is it being served by JBoss or Tomcat? I thought Tomcat was doing it. If not and I'm not concerned about performance or fancy Tomcat features, couldn't I just use JBoss alone?

                  Thanks,
                  Ted

                  • 6. Re: Unable to run Tomcat test url
                    Adrian Brock Master

                    No, the source code starts with.

                    /*
                    * JBoss, the OpenSource J2EE webOS
                    *
                    * Distributable under LGPL license.
                    * See terms of license at gnu.org.
                    */

                    There's a 3.0 contribution called JBoss.net to run .net
                    on JBoss's container architecture. I haven't used it
                    so I cannot tell you how stable it is.

                    Of cource if you are only interested in J2ee, it's all
                    modularised. So as in your example, don't embed
                    tomcat.

                    Just use run.sh instead of run_with_catalina.sh

                    or more technically the config comes from
                    JBOSS_HOME/conf/default instead of
                    JBOSS_HOME/conf/catalina

                    To answer your other question, Tomcat serves the
                    webpages but it is running "embedded" within JBoss
                    for performance. I think you'd worked this part out :-)

                    Regards,
                    Adrian

                    • 7. Re: Unable to run Tomcat test url
                      Kerry Shih Newbie

                      Thanks, that worked for me. FYI if you open the tomcat-test.ear file then open the META-INF/application.xml file you can change the <context-root> element value from /jboss to "/" if you want to access as http:localhost8080/ (please note that you have to re-ear the file and put it in the deploy folder). This is also for deployment issues in case you want to have a natural root page ie http://www.yourco.com/.