1 2 3 Previous Next 31 Replies Latest reply on Sep 19, 2002 12:28 PM by mkithany

    JBoss/Tomcat HTTP 500

    aweissman

      Hi

      I downloaded the JBoss/Tomcat bundle yesterday, and haven't been able to get Tomcat to process requests when I try to start the servers with 'run_with_catalina' (I Get 'HTTP Status 500 - No Context configured to process this request'). When I just run Catalina with 'catalina' everything runs AOK, but of course without JBoss. Any ideas? I'm trying to get this up and running for a corporate project, and if I can't get this going they're going to go ahead with Weblogic.

      Thanks in advance!
      Al

        • 1. Re: JBoss/Tomcat HTTP 500
          aweissman

          Forgot to include this...


          [INFO,Default] JBoss-2.4.4 Started in 0m:4s.957
          [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(ErrorDispatche
          rValve.java:280)
          at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
          rValve.java:180)
          at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
          .java:564)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
          ava:170)
          at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
          .java:564)
          at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
          a:472)
          at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
          ve.java:163)
          at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
          .java:566)
          at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
          a:472)
          at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

          at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
          r.java:1011)
          at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
          va:1106)
          at java.lang.Thread.run(Unknown Source)

          • 2. Re: JBoss/Tomcat HTTP 500
            matthicksj

            I haven't been able to get the root "/" context working yet, but the additional .war applications that I deployed in jBoss worked. It just seems that something may be wrong with the root context. I'm not sure if this applies to your situation, but maybe it will.

            • 3. Re: JBoss/Tomcat HTTP 500
              brillpappin

              On Tomcat, the root context is called ROOT.war and if you deploy it it sets itself up as the root context... this doesn't seem to work in jboss though...

              • 4. Re: JBoss/Tomcat HTTP 500
                aweissman

                well my .jar's in JBOSS run fine from a java Application, but I can't get any servlets up in Tomcat when I do a run_with_catalina.

                I've been trying to run the two separately and still can't get anywhere (can't get past a NamingException)

                I have no idea why Tomcat will only respond with HTTP500's after run_with_catalina.

                • 5. Re: JBoss/Tomcat HTTP 500
                  tessai

                  What you can do is go to sourceforge and get version 2.4.3. dont know why 2.4.4 bundle doesnt work but the 2.4.3 bundle works just fine. try it out.

                  • 6. Re: JBoss/Tomcat HTTP 500
                    wombatice

                    Heh, it's not a trouble...
                    cd $CATALINA_HOME/webapp/ROOT
                    jar cvf ROOT.war *
                    mv ROOT.war $JBOSS_DIST/deploy/.war

                    cd $CATALINA_HOME/webapp/examples
                    jar cvf examples.war *
                    mv examples.war $JBOSS_DIST/deploy/

                    etc...

                    good luck :)

                    • 7. Re: JBoss/Tomcat HTTP 500
                      chewie124

                      Hi - finally figured out how to get the JBoss 2.4.4 + Tomcat 4.0.1 working; in addition to creating the ROOT.war and examples.war files above and putting them in the $JBOSS_HOME/deploy directory, you also need to copy the tools.jar file from your $JAVA_HOME/lib directory into the $JBOSS_HOME/lib/ext directory so JBoss/Catalina will be able to compile JSP's.

                      Also, you have to access these web applications in their URL context's: ie:

                      http:///ROOT
                      http:///examples

                      and then (from what I've seen) everything seems to be working okay.

                      I haven't figured out yet how to specify a default web-app so if you just go to http:// a web-app will automatically load up.

                      Hope this helps whoever hasn't figured this out yet.

                      Cheers,
                      Rich

                      • 8. Re: JBoss/Tomcat HTTP 500
                        wombatice

                        ->I haven't figured out yet how to specify a default web-app so if you just go to http:// a web-app will automatically load up.

                        mv ROOT.war $JBOSS_DIST/deploy/.war
                        (rename "ROOT.war" to ".war" and move it to your deploy dir).
                        When see http://:8080

                        Serg

                        • 9. Re: JBoss/Tomcat HTTP 500
                          lvyuawen

                          Thanks very much ,
                          And more thanks to chewie124 and WombatICE

                          • 10. Re: JBoss/Tomcat HTTP 500
                            huangyufu

                            On windows, I can't change ROOT.war to .war. There was not problem when I deployed ROOT.war. But when I deployed examples.war, I got the following messages:

                            [ERROR,EmbeddedCatalinaServiceSX] Failed to setup web application ENC
                            javax.naming.NamingException: ejb-ref: ejb/Account, expected jndi-name in jboss-
                            web.xml
                            at org.jboss.web.AbstractWebContainer.linkEjbRefs(AbstractWebContainer.j
                            ava:428)
                            at org.jboss.web.AbstractWebContainer.
                            .........
                            .........
                            .........
                            at java.lang.Thread.run(Unknown Source)

                            But the examples are working well. What is this error message about?

                            • 11. Re: JBoss/Tomcat HTTP 500
                              johnsonn

                              To change the ROOT.war to .war in windows you have to use the command prompt:

                              c:>rename ROOT.war .war

                              :)

                              • 12. Re: JBoss/Tomcat HTTP 500
                                fmorton

                                This was a life saver! Worked great.

                                • 13. Re: JBoss/Tomcat HTTP 500
                                  thompmar

                                  Hi,

                                  I am trying to use this on Mac OSX and have a small problem, their is no tools.jar file. Can I use any other distributions tools.jar file ???

                                  • 14. Re: JBoss/Tomcat HTTP 500

                                    From a post on the dev-list

                                    >On OS X the javac
                                    > compiler is in the
                                    >/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes/clas es.jar

                                    Regards,
                                    Adrian

                                    1 2 3 Previous Next