12 Replies Latest reply on Mar 25, 2003 8:05 AM by Dennis Meffert

    Jboss 3.0.x / Tomcat example page?

    Marty Urbanek Newbie

      In Jboss 2.4.4 + Tomcat 3.2.3 when you connnected to port 8080, there was a nice example page with a Tomcat graphic and some sample JSPs and servlets that you could run to confirm and demonstrate that it was working.

      Does something similar similar exist for the newer 3.0.x bundles, or is /jmx-console the only thing? I have only found contexts /jmx-console and /invoker. How do I get the examples?

      Thanks.

        • 1. Re: Jboss 3.0.x / Tomcat example page?
          Raja Master

          Jar the examples webapp from Tomcat and drop it in JBoss deploy directory

          (OR)

          Copy the examples webapp directory and put it under the jboss deploy directory and change the directory name from examples to examples.war

          You shud be able to access the examples webapps
          http://localhost:8080/examples

          -Raj

          • 2. Re: Jboss 3.0.x / Tomcat example page?
            Marty Urbanek Newbie

            Thank you for the reply.

            Using the first technique yields:

            07:16:21,441 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
            -3.0.4_tomcat-4.1.12/server/default/deploy/examples.war
            07:16:21,541 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/examples, warUrl
            =file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/tmp/deploy/server/default/dep
            loy/examples.war/90.examples.war
            07:16:21,551 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
            .scanner.URLDeploymentScanner$DeployedURL@677adfdd{ url=file:/C:/jboss-3.0.4_tom
            cat-4.1.12/server/default/deploy/examples.war, deployedLastModified=0 }
            org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
            e: (javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use j
            ndi-name in jboss-web.xml)
            at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
            9)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
            ...

            Using the second technique yields similar error:

            07:09:22,419 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
            -3.0.4_tomcat-4.1.12/server/default/deploy/examples.war/
            07:09:22,469 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/examples, warUrl
            =file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/examples.war/
            07:09:22,489 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
            .scanner.URLDeploymentScanner$DeployedURL@82425788{ url=file:/C:/jboss-3.0.4_tom
            cat-4.1.12/server/default/deploy/examples.war/, deployedLastModified=0 }
            org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
            e: (javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use j
            ndi-name in jboss-web.xml)
            at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
            9)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
            ...

            There does not appear to be a jboss-web.xml file. Is it telling me to create one? What should it contain?

            Thanks again.
            -Marty

            • 3. Re: Jboss 3.0.x / Tomcat example page?
              Marty Urbanek Newbie

              Thank you for the reply.

              Using the first technique yields:

              07:16:21,441 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
              -3.0.4_tomcat-4.1.12/server/default/deploy/examples.war
              07:16:21,541 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/examples, warUrl
              =file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/tmp/deploy/server/default/dep
              loy/examples.war/90.examples.war
              07:16:21,551 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
              .scanner.URLDeploymentScanner$DeployedURL@677adfdd{ url=file:/C:/jboss-3.0.4_tom
              cat-4.1.12/server/default/deploy/examples.war, deployedLastModified=0 }
              org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
              e: (javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use j
              ndi-name in jboss-web.xml)
              at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
              9)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
              ...

              Using the second technique yields similar error:

              07:09:22,419 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
              -3.0.4_tomcat-4.1.12/server/default/deploy/examples.war/
              07:09:22,469 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/examples, warUrl
              =file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/examples.war/
              07:09:22,489 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
              .scanner.URLDeploymentScanner$DeployedURL@82425788{ url=file:/C:/jboss-3.0.4_tom
              cat-4.1.12/server/default/deploy/examples.war/, deployedLastModified=0 }
              org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
              e: (javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use j
              ndi-name in jboss-web.xml)
              at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
              9)
              at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
              ...

              There does not appear to be a jboss-web.xml file. Is it telling me to create one? What should it contain?

              Thanks again.
              -Marty

              • 4. Re: Jboss 3.0.x / Tomcat example page?
                Marty Urbanek Newbie

                Thank you for the reply.

                Using the first technique yields:

                07:16:21,441 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
                -3.0.4_tomcat-4.1.12/server/default/deploy/examples.war
                07:16:21,541 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/examples, warUrl
                =file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/tmp/deploy/server/default/dep
                loy/examples.war/90.examples.war
                07:16:21,551 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
                .scanner.URLDeploymentScanner$DeployedURL@677adfdd{ url=file:/C:/jboss-3.0.4_tom
                cat-4.1.12/server/default/deploy/examples.war, deployedLastModified=0 }
                org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
                e: (javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use j
                ndi-name in jboss-web.xml)
                at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
                9)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
                ...

                Using the second technique yields similar error:

                07:09:22,419 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
                -3.0.4_tomcat-4.1.12/server/default/deploy/examples.war/
                07:09:22,469 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/examples, warUrl
                =file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/examples.war/
                07:09:22,489 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
                .scanner.URLDeploymentScanner$DeployedURL@82425788{ url=file:/C:/jboss-3.0.4_tom
                cat-4.1.12/server/default/deploy/examples.war/, deployedLastModified=0 }
                org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
                e: (javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use j
                ndi-name in jboss-web.xml)
                at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
                9)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
                ...

                There does not appear to be a jboss-web.xml file. Is it telling me to create one? What should it contain?

                Thanks again.
                -Marty

                • 5. Re: Jboss 3.0.x / Tomcat example page?
                  Marty Urbanek Newbie

                  Thank you for the reply.

                  Using the first technique yields:

                  07:16:21,441 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
                  -3.0.4_tomcat-4.1.12/server/default/deploy/examples.war
                  07:16:21,541 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/examples, warUrl
                  =file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/tmp/deploy/server/default/dep
                  loy/examples.war/90.examples.war
                  07:16:21,551 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
                  .scanner.URLDeploymentScanner$DeployedURL@677adfdd{ url=file:/C:/jboss-3.0.4_tom
                  cat-4.1.12/server/default/deploy/examples.war, deployedLastModified=0 }
                  org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
                  e: (javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use j
                  ndi-name in jboss-web.xml)
                  at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
                  9)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
                  ...

                  Using the second technique yields similar error:

                  07:09:22,419 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
                  -3.0.4_tomcat-4.1.12/server/default/deploy/examples.war/
                  07:09:22,469 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/examples, warUrl
                  =file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/examples.war/
                  07:09:22,489 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
                  .scanner.URLDeploymentScanner$DeployedURL@82425788{ url=file:/C:/jboss-3.0.4_tom
                  cat-4.1.12/server/default/deploy/examples.war/, deployedLastModified=0 }
                  org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
                  e: (javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use j
                  ndi-name in jboss-web.xml)
                  at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
                  9)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
                  ...

                  There does not appear to be a jboss-web.xml file. Is it telling me to create one? What should it contain?

                  Thanks again.
                  -Marty

                  • 6. Re: Jboss 3.0.x / Tomcat example page?
                    Marty Urbanek Newbie

                    Thank you for the reply.

                    Using the first technique yields:

                    07:16:21,441 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
                    -3.0.4_tomcat-4.1.12/server/default/deploy/examples.war
                    07:16:21,541 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/examples, warUrl
                    =file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/tmp/deploy/server/default/dep
                    loy/examples.war/90.examples.war
                    07:16:21,551 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
                    .scanner.URLDeploymentScanner$DeployedURL@677adfdd{ url=file:/C:/jboss-3.0.4_tom
                    cat-4.1.12/server/default/deploy/examples.war, deployedLastModified=0 }
                    org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
                    e: (javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use j
                    ndi-name in jboss-web.xml)
                    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
                    9)
                    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
                    ...

                    Using the second technique yields similar error:

                    07:09:22,419 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
                    -3.0.4_tomcat-4.1.12/server/default/deploy/examples.war/
                    07:09:22,469 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/examples, warUrl
                    =file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/examples.war/
                    07:09:22,489 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
                    .scanner.URLDeploymentScanner$DeployedURL@82425788{ url=file:/C:/jboss-3.0.4_tom
                    cat-4.1.12/server/default/deploy/examples.war/, deployedLastModified=0 }
                    org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
                    e: (javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use j
                    ndi-name in jboss-web.xml)
                    at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
                    9)
                    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
                    ...

                    There does not appear to be a jboss-web.xml file. Is it telling me to create one? What should it contain?

                    Thanks again.
                    -Marty

                    • 7. Re: Jboss 3.0.x / Tomcat example page?
                      Marty Urbanek Newbie

                      Test. For some reason my replies are being lost.

                      • 8. Re: Jboss 3.0.x / Tomcat example page?
                        Marty Urbanek Newbie

                        Thank you for the reply.

                        Using the first technique yields:

                        07:16:21,441 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
                        -3.0.4_tomcat-4.1.12/server/default/deploy/examples.war
                        07:16:21,541 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/examples, warUrl
                        =file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/tmp/deploy/server/default/dep
                        loy/examples.war/90.examples.war
                        07:16:21,551 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
                        .scanner.URLDeploymentScanner$DeployedURL@677adfdd{ url=file:/C:/jboss-3.0.4_tom
                        cat-4.1.12/server/default/deploy/examples.war, deployedLastModified=0 }
                        org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
                        e: (javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use j
                        ndi-name in jboss-web.xml)
                        at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
                        9)
                        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
                        ...

                        Using the second technique yields similar error:

                        07:09:22,419 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
                        -3.0.4_tomcat-4.1.12/server/default/deploy/examples.war/
                        07:09:22,469 INFO [EmbeddedCatalinaService41] deploy, ctxPath=/examples, warUrl
                        =file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/examples.war/
                        07:09:22,489 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
                        .scanner.URLDeploymentScanner$DeployedURL@82425788{ url=file:/C:/jboss-3.0.4_tom
                        cat-4.1.12/server/default/deploy/examples.war/, deployedLastModified=0 }
                        org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
                        e: (javax.naming.NamingException: ejb-ref: ejb/Account, no ejb-link match, use j
                        ndi-name in jboss-web.xml)
                        at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:30
                        9)
                        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:807)
                        ...

                        There does not appear to be a jboss-web.xml file. Is it telling me to create one? What should it contain?

                        Thanks again.
                        -Marty

                        • 9. Re: Jboss 3.0.x / Tomcat example page?
                          Marty Urbanek Newbie

                          If anybody didn't get that, I could post it again!

                          • 10. Re: Jboss 3.0.x / Tomcat example page?
                            Adrian Brock Master

                            Remove the ejb-ref from the web.xml,
                            the ejb does not exist.

                            If I remember correctly, there are some other
                            errors that Tomcat standalone ignores but jboss doesn't.

                            Regards,
                            Adrian

                            • 11. Re: Jboss 3.0.x / Tomcat example page?
                              Zia Partovi Newbie

                              I just tried it on JBoss 3.0.4 and Tomcat 4.1.12 integrated. Just remove ejf-ref tags from web.xml before creating examples.war file. Then drop the war file in the deploy directory of the selected server type running.

                              Good Luck
                              Zia

                              • 12. Re: Jboss 3.0.x / Tomcat example page?
                                Dennis Meffert Newbie

                                Doesn't seem like you have a problem posting?

                                :')