1 2 Previous Next 15 Replies Latest reply on Jul 15, 2002 11:03 AM by spazmosity

    JBoss 3.0 and Tomcat 4 Problem

    mklose

      just downloaded and installed the new integrated JBoss 3.0 Beta and Tomcat 4.0.2. When I try to access the root context of tomcat ( / ) i get a 500 server error say that no context configured to process this request.

      I also get this error when I try to access any of the default apps that come with Tomcat. In Jboss 2.x, tomcat was configured in the jboss.jcml file, where do i configure tomcat in JBoss 3.0?

      James Hicks

        • 1. Re: JBoss 3.0 and Tomcat 4 Problem
          kschmidt

          as far as i can tell all apps must be deployed as jar/war/ear files under jboss/deploy not under catalina. try http://localhost:8080/jboss to view the test app deployed under jboss

          • 2. Re: JBoss 3.0 and Tomcat 4 Problem
            mischulze

            Hi!

            Unfortunately I also have the same problems...
            I tried to deploy a WAR-File that worked fine unter JBoss 2.4.4 (just a simple App, so no version-trouble might be the reason). And I also can´t use the examples...

            Do you have a solution already?

            Thanks,
            Michael

            • 3. Re: JBoss 3.0 and Tomcat 4 Problem
              mulicheng

              I've compiled the lated CVS on Branch_3_0. When I deploy the tomcat-test.ear that is built in the catalina directory, I can access the index page ok. Tomcat seems to be working fine but the executing servlet can't talk to an ejb. I get:

              java.lang.NullPointerException
              at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96)
              at $Proxy23.create(Unknown Source)
              at org.jboss.test.tomcat.servlet.HelloEJB.testBean(HelloEJB.java:71)
              at org.jboss.test.tomcat.servlet.HelloEJB.doGet(HelloEJB.java:40)
              (followd by the rest of tomcat's stack trace...)


              This is the exact same problem I had with beta 2 before RC1 came out. Is the test app configured wrong?? Has anyone got it to work?

              Thanks Dennis

              • 4. Re: JBoss 3.0 and Tomcat 4 Problem
                mischulze

                I´ve got a solution! Remove the cluster-service.xml-File from your deploy-dir. That should work.
                Please give me am message, if it really works!

                Michael

                • 5. Re: JBoss 3.0 and Tomcat 4 Problem
                  lenua

                  It did not help jboss.
                  I had the same problem with tomcat-test.
                  I have removed a file.
                  But exception has remained.

                  • 6. Re: JBoss 3.0 and Tomcat 4 Problem
                    mischulze

                    You still have the problem?
                    I don´t have that problem with self-deployed Archives now...
                    When you start your server, what is said in it´s window when it´s ready?
                    Does it "connect to a channel" or did is "start"?

                    You wrote you "had" this problem too, do you still have it?

                    • 7. Re: JBoss 3.0 and Tomcat 4 Problem
                      kenwjennings

                      Did anyone ever solve this? I'm having the same problem with tomcat-test.ear.

                      Ken

                      • 8. Re: JBoss 3.0 and Tomcat 4 Problem
                        svevor

                        I am using jboos-3RC1 bundle with tomcat-4.0.3
                        It works but to configure context i
                        went to /opt/jboss/server/default/deploy( new place for deploy directory in this version),
                        and find file tomcat4-service.xml
                        Then created context (in my case)as



                        Created interest.ear file which contain interest.war and
                        interest.jar pluss application.xml as descriptor.
                        Then deploy it to jboss.
                        look http://localhost:8080/interest to see the result.
                        interest example I took from free jboss documentation.
                        but rewrite client to servlet to use it in tomcat.
                        interest.ear attached.

                        • 9. Re: JBoss 3.0 and Tomcat 4 Problem
                          dsnyckers

                          Where exactly did you put the context lines in the tomcat4-service.xml file? I can't seem to get it working.

                          TIA

                          • 10. Re: JBoss 3.0 and Tomcat 4 Problem
                            dsnyckers

                            Where exactly did you put the context lines in the tomcat4-service.xml file? I can't seem to get it working.

                            TIA

                            • 11. Re: JBoss 3.0 and Tomcat 4 Problem
                              benyao

                              I've made it work as the default web root, my ear directory structure is as following:

                              root.ear\
                              root.ear\META-INF
                              root.ear\META-INF\application.xml
                              root.ear\root.war
                              root.ear\root.war\WEB-INF
                              root.ear\root.war\WEB-INF\web.xml
                              root.ear\root.war\test.jsp

                              And the content of application.xml is:

                              <?xml version="1.0" encoding="UTF-8"?>
                              <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>

                              <display-name>ROOT</display-name
                              RootContext


                              <web-uri>root.war</web-uri>
                              <context-root> / </context-root>



                              After copy the whole directory "root.ear" to "deploy",
                              I can access the test.jsp with the url:
                              http://localhost:8080/test.jsp

                              For your reference.

                              benyao@so-net.net.tw


                              • 12. Re: JBoss 3.0 and Tomcat 4 Problem
                                benyao

                                I've made it work as the default web root, my ear directory structure is as following:

                                root.ear\
                                root.ear\META-INF
                                root.ear\META-INF\application.xml
                                root.ear\root.war
                                root.ear\root.war\WEB-INF
                                root.ear\root.war\WEB-INF\web.xml
                                root.ear\root.war\test.jsp

                                And the content of application.xml is:

                                <?xml version="1.0" encoding="UTF-8"?>
                                <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>

                                <display-name>ROOT</display-name
                                RootContext


                                <web-uri>root.war</web-uri>
                                <context-root> / </context-root>



                                After copy the whole directory "root.ear" to "deploy",
                                I can access the test.jsp with the url:
                                http://localhost:8080/test.jsp

                                For your reference.

                                benyao@so-net.net.tw


                                • 13. Re: JBoss 3.0 and Tomcat 4 Problem
                                  benyao

                                  I've made it work as the default web root, my ear directory structure is as following:

                                  root.ear\
                                  root.ear\META-INF
                                  root.ear\META-INF\application.xml
                                  root.ear\root.war
                                  root.ear\root.war\WEB-INF
                                  root.ear\root.war\WEB-INF\web.xml
                                  root.ear\root.war\test.jsp

                                  And the content of application.xml is:

                                  <?xml version="1.0" encoding="UTF-8"?>
                                  <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>

                                  <display-name>ROOT</display-name
                                  RootContext


                                  <web-uri>root.war</web-uri>
                                  <context-root> / </context-root>



                                  After copy the whole directory "root.ear" to "deploy",
                                  I can access the test.jsp with the url:
                                  http://localhost:8080/test.jsp

                                  For your reference.

                                  benyao@so-net.net.tw


                                  • 14. Re: JBoss 3.0 and Tomcat 4 Problem
                                    benyao

                                    Sorry for the multi-post:p

                                    1 2 Previous Next