1 2 Previous Next 25 Replies Latest reply on May 22, 2006 4:47 AM by serfig Go to original post
      • 15. Re: JBOSS IDE tutorial
        cyseto

         

        "nskarthik_k" wrote:
        Same Dittoo with my Eclipse 3.02 + jdk1.4.2 + jboss4.2 + Eclipse plugin for
        Jboss


        Can some body help us out of this Problem


        I ran into the same problem with a slighly different configuration: Eclipse 3.02 + jdk1.50_05 + JBoss 4.0.3 (w/ ejb3 packages).

        It turns out that the JNDI namespace for the Fibo is directly under Global JNDI namespace, instead of "java:com/env". I speculate it was caused by my EJB3 configuration (incompatible with J2EE 1.4). I fixed the problem by changing the JNDI lookup code in "ComputeServlet.java" to
        Object ref = context.lookup("ejb/Fibo");


        You can find out all the registered JNDI entries by looking into the JNDIView service in JMX Console http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss%3Aservice%3DJNDIView.
        Invoke the list() method to see all the registered JNDI entries.

        Hope this helps.

        Calvin

        • 16. Re: JBOSS IDE tutorial
          guitoon

          My configuration is:
          - Eclipse Version: 3.1.0
          - jdk1.5.0_02
          - jboss-4.0.3
          - jboss-EJB-3.0_RC3
          - Eclipse plugins for jboss

          I tried to run the tutorial and i got the same problem as lusabo:

          javax.servlet.ServletException: Lookup of java:/comp/env/ failed
          PSDB_Plugin.web.ComputeServlet.init(ComputeServlet.java:56)
          org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
          org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
          org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
          org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
          org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
          org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
          org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
          org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
          org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
          java.lang.Thread.run(Thread.java:595)

          My code is:
          Context context = new InitialContext();
          Object ref = context.lookup("java:comp/env/ejb/Fibo");

          Can anyone help me ?
          thx

          • 17. Re: JBOSS IDE tutorial
            darranl

            Can you post your web.xml and your jboss-web.xml you are calling to do the lookup.

            Wrap each of these with [ code ][ /code ] boxes without the spaces and use the preview button to make sure it displays correctly.

            • 18. Re: JBOSS IDE tutorial
              darranl

              Also execute the command 'jar -tf warname.war' against the war and post the output here.

              • 19. Re: JBOSS IDE tutorial
                dougxiao

                Thanks darranl!
                I was having the same problem.
                I remove the -client.jar file from packing as suggested, and the tutorial runs fine.

                My configuration is:
                JBossIDE-1.5M3-Bundle-win32

                • 20. Re: JBOSS IDE tutorial
                  oshima

                  hi folks
                  Can anyone help with the following error, I followed the JBossIDE tutorial exactly as it is, and I get the same error as some of the developers stated.Am using Eclipse3.1 &JBossIDE1.5RC1.

                  here is the error that i got

                  javax.servlet.ServletException: Lookup of java:comp/env/ejb/Fibo failed
                  tutorial.web.ComputeServlet.init(ComputeServlet.java:50)
                  org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
                  org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
                  org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
                  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
                  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
                  org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                  org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                  java.lang.Thread.run(Thread.java:595)

                  • 21. Re: JBOSS IDE tutorial
                    oshima

                    hey folks
                    am using eclipse3.1 and JBossIDE1.5RC1
                    can anyone pliz help with the following error.
                    javax.servlet.ServletException: Lookup of java:comp/env/ejb/Fibo failed
                    tutorial.web.ComputeServlet.init(ComputeServlet.java:50)
                    org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
                    org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
                    org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
                    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
                    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
                    org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                    org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                    java.lang.Thread.run(Thread.java:595)

                    • 22. Re: JBOSS IDE tutorial
                      oshima

                      already submitted

                      • 23. Re: JBOSS IDE tutorial

                        Hey darranl, it did the trick for me too, removing the creation of the FiboEJB-client.jar and packaging it into FiboWeb.war !!!
                        Strange thing is that up to some point the tutorial worked fine, but after playing with the code suddenly this ClassCastingException occurred...
                        JBoss should pick this up and adapt the tutorial, shouldn't they? :-)

                        Cheers, Roel Plieger.

                        • 24. Re: JBOSS IDE tutorial
                          iamdanial

                          Boys and gals, experts and dummies, I have been working with the tutorial of JBOss ide and have finally able to get it run, I would like to say thanks when i put my errors into the google and got clues to solve the troubles that made me feel down. Anyways, the trouble in deployment for my case was that of not defining the web and ejb names into the application.xml as, I used to run the xdoclet several times which made the applicaiton.xml not having the right attributes. One of the other major troubles was not defining the display-name tag into the ejb-jar.xml, infact my innocent xdoclet didn generate it automatically, so make sure that you have the tag in your ejb-jar.xml. One of the other major problems was letting the ide know to run jboss, which it was unable to do that, due to the reason of having jre instead of jdk. One of the early problems of matching the version of xdoclet with that of jboss, which in my case was xdoclet = 1.2.3. and jboss 4.0.3. Another common mistake is not having the right xdoclet properties, so make sure that should n't be happen, like while defining the standard template I did classes instead of *.class. These are some of the many bugs that were my companions during the course of running the tutorial accrately.

                          • 25. Re: JBOSS IDE tutorial
                            serfig

                            I have a problem with the tutorial example.
                            I get these errors:

                            INFO [org.jboss.web.tomcat.tc5.session.JBossCacheManager] init(): replicationGranularity_ is 0 and invaldateSessionPolicy is 2
                            ERROR [org.jboss.web.tomcat.tc5.session.JBossCacheManager] JBossCacheService to Tomcat clustering not found
                            ERROR [org.jboss.web.tomcat.tc5.TomcatDeployer] Failed to setup clustering, clustering disabled

                            I tried to log the classes but though the servlet can lookup the session bean, this last one isn't created. In fact I cannot see any log messages.
                            I'm using JBoss AS 4.0.4GA

                            I hope you can help me.

                            1 2 Previous Next