1 2 3 Previous Next 31 Replies Latest reply on Sep 19, 2002 12:28 PM by mkithany Go to original post
      • 15. Re: JBoss/Tomcat HTTP 500

        Doh!

        That should be classes.jar

        I must learn to type. :-)

        Regards,
        Adrian

        • 16. Re: JBoss/Tomcat HTTP 500
          lya91

          I followed the intruction, Then I got: HTTP 404 - File not found.

          Please give me tips

          Thanks

          Liying

          • 17. Re: JBoss/Tomcat HTTP 500
            dplante

            I think the article I wrote yeserday: "HOWTO: root.ear - tomcat 4.0.1 root application to deploy in jboss"
            presents a much more elegant solution to the problem then renaming a war as you have done (just my opinion). Go ahead and check it out :)

            Dom

            > ->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

            • 18. Re: JBoss/Tomcat HTTP 500
              mark_lebaron

              WombatICE rocks! Thanks.

              • 19. Re: JBoss/Tomcat HTTP 500
                bartman

                Guys,


                Thanks for the info so far. I'm using JBoss 2.4.4 - Tomcat 4.0.1 with J2SE 1.4 running on Win2000 Professional. I've created and copied examples.war and root.war to $JBOSS_HOME/deploy, and renamed root.war to .war. All the examples work fine now apart from the naming servlet, and I get this output when I start JBoss:

                [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.parseWebAppDescriptors(AbstractWeb
                Container.java:339)
                at org.jboss.web.AbstractWebContainer$DescriptorParser.parseWebAppDescri
                ptors(AbstractWebContainer.java:471)
                at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.contextInit(Embedded
                CatalinaServiceSX.java:484)
                at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.access$100(EmbeddedC
                atalinaServiceSX.java:74)
                at org.jboss.web.catalina.EmbeddedCatalinaServiceSX$1.lifecycleEvent(Emb
                eddedCatalinaServiceSX.java:420)
                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
                eSupport.java:155)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
                334)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:78
                5)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)

                at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(Emb
                eddedCatalinaServiceSX.java:428)
                at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(Embedd
                edCatalinaServiceSX.java:282)
                at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:1
                91)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
                28)
                at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
                23)
                at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:505)

                at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
                459)
                at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:190)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
                28)
                at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
                23)
                at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:395)
                at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:233)
                at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:371)

                at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103
                )
                at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
                28)
                at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
                23)
                at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf
                igurationService.java:967)
                at $Proxy0.start(Unknown Source)
                at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
                28)
                at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
                23)
                at org.jboss.Main.(Main.java:208)
                at org.jboss.Main$1.run(Main.java:110)
                at java.security.AccessController.doPrivileged(Native Method)
                at org.jboss.Main.main(Main.java:106)

                When I try to use the naming servlet I get the following output in the browser window:

                JNDI lookup failed : javax.naming.NameNotFoundException: maxExemptions not bound
                list() on /comp/env Context :
                JNDI lookup failed : javax.naming.NameNotFoundException: not bound

                I'm assuming these two problems are related. Any help / pointers would be much appreciated.


                Cheers,
                Bart


                • 20. Re: JBoss/Tomcat HTTP 500
                  bartman

                  Forgot to mention. Also tried this with .war renamed back to ROOT.war and still get same exceptions thrown during startup.

                  Also, when I shut down JBoss I've noticed the following output:

                  [INFO,J2eeDeployer] Destroying application .war
                  [INFO,J2eeDeployer] Stopping module examples.war
                  [ERROR,J2eeDeployer] Unable to stop module examples.war: URL file:/C:/JBoss/JBos
                  s-2.4.4_Tomcat-4.0.1/jboss/tmp/deploy/Default/examples.war/web1002/ is not deplo
                  yed
                  [INFO,J2eeDeployer] Stopping module examples.war
                  [INFO,ContainerFactory] Undeploying:file:/C:/JBoss/JBoss-2.4.4_Tomcat-4.0.1/jbos
                  s/tmp/deploy/Default/examples.war
                  [INFO,ContainerFactory] Undeployed application: file:/C:/JBoss/JBoss-2.4.4_Tomca
                  t-4.0.1/jboss/tmp/deploy/Default/examples.war
                  [ERROR,J2eeDeployer] stopApplication
                  org.jboss.deployment.J2eeDeploymentException: Error(s) on stopping application e
                  xamples.war:
                  Unable to stop module examples.war: URL file:/C:/JBoss/JBoss-2.4.4_Tomcat-4.0.1/
                  jboss/tmp/deploy/Default/examples.war/web1002/ is not deployed/n
                  at org.jboss.deployment.J2eeDeployer.stopApplication(J2eeDeployer.java:5
                  82)
                  at org.jboss.deployment.J2eeDeployer.stopService(J2eeDeployer.java:375)
                  at org.jboss.util.ServiceMBeanSupport.stop(ServiceMBeanSupport.java:138)

                  at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                  sorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:324)
                  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
                  28)
                  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
                  23)
                  at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(Conf
                  igurationService.java:967)
                  at $Proxy0.stop(Unknown Source)
                  at org.jboss.util.ServiceControl.stop(ServiceControl.java:104)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
                  java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
                  sorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:324)
                  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
                  28)
                  at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
                  23)
                  at org.jboss.util.Shutdown.shutdownServices(Shutdown.java:87)
                  at org.jboss.util.Shutdown$1.run(Shutdown.java:56)
                  [INFO,J2eeDeployer] Destroying application examples.war

                  Thanks,
                  Bart

                  • 21. Re: JBoss/Tomcat HTTP 500
                    martha_elva

                    Hi, You know I have the same problem that you, exactly the same messages that appear to you, appear to me, have you found some kind of solution about it?.

                    • 22. Re: JBoss/Tomcat HTTP 500

                      This is from Tomcat examples correct?

                      Look at the Tomcat docs. Apache only do the web part.
                      You have to code the ejbs yourself.

                      Regards,
                      Adrian

                      • 23. Re: JBoss/Tomcat HTTP 500
                        bclyon

                        > Hi, You know I have the same problem that you,
                        > exactly the same messages that appear to you, appear
                        > to me, have you found some kind of solution about
                        > it?.

                        Yes, these exact same problems (error loading the example.war on startup, JndiServlet is the only Tomcat example that doesn't work) confused me for a long time today. I think I finally figured out what was wrong.

                        To fix the problem with the ENV error on jboss startup, you need to add a line to the <ejb-ref> section of the examples web.xml file where the Account bean is referenced (unzip the examples.war to get at it). It needs to have an <ejb-link>, and since there isn't actually any program in the examples that defines or uses such a bean, it doesn't matter what you call it. I inserted <ejb-link>theAccount</ejb-link>.

                        To fix the problem with the example JndiServlet, change the servlet. The problem is with two lines -
                        change where it says ctx.list("java:comp/env") to be envCtx.list("") and similarly change ctx.listBindings("java:comp/env") to envCtx.listBindings("")

                        The servlet will still fail to find a value for maxExemptions but at least it will list the stuff that IS there.

                        • 24. Re: JBoss/Tomcat HTTP 500
                          jimskit

                          I have Jboss 2.4.4 Tomcat 4.0.1 and Java 1.4 and I get the error:

                          [INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING configuration error for request URI
                          [ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[80][4] process.invoke
                          java.lang.NullPointerException
                          at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:280)

                          But, when I try and carry out the patches described here, I cant find any WAR files at all. ? . I am generally confused here. Please help.

                          JimSkit.

                          • 25. Re: JBoss/Tomcat HTTP 500
                            sindbad

                            You'll have to create the .war files yourself. Read the messages posted earlier, the comand is 'jar cvf .war *'
                            (given you are in the correct directory)

                            /s

                            • 26. Re: JBoss/Tomcat HTTP 500
                              antojavauser

                              awesome this is truly great help
                              May I ask how did you find this solution?

                              the answers here fixed this problem for me on a linux box

                              thanks
                              -anthony

                              • 27. Re: JBoss/Tomcat HTTP 500
                                troffgopher

                                I've been running Tomcat 4 as my only web service for quite a while but want to move to JBoss/Tomcat for integration and learning EJB. How do I handle static web pages and JSPs/Servlets that don't need EJB? Do I have to bundle/deploy everything before I can access them through Tomcat? If this is the case it seems an extremely clunky procedure for learning and development. Any advice for a JBoss newbie would be appreciated.

                                • 28. Re: JBoss/Tomcat HTTP 500
                                  chika

                                  I'm using JBOSS2.4.3 that comes with catalina.I'm trying to deploy a war file but nothing seems to work.I have put the deploy file in deploy directory.Ig I try to access it using the browser, nothing happens
                                  I give :http://localhost:8080/root/

                                  where root is the name of my war file.Even if I rename the root.war file to .war ,then also nothing happens.Where ami I going wrong.


                                  Rgds,
                                  Chika

                                  • 29. Re: JBoss/Tomcat HTTP 500
                                    markuspr

                                    I've tried to rename ROOT.war to .war ,but now it doesn't deploy the war-file. If I rename it into any *.war it deploys the file. Is it a windows or a general problem?