2 Replies Latest reply on Jul 15, 2007 3:08 PM by Vijay Shanmugam

    EJB3 - tutorial

    Bill Burke Master

      DId you follow all the installation steps? Looks like you didn't.

      http://docs.jboss.org/ejb3/tutorial/installing.html

      Bill

        • 1. Re: EJB3 - tutorial
          geetha sasivarnan Newbie

          I have the calculator.war file with me ...which is working perfectly in jboss-4.0.4RC1 .If anyone still struggle to workout the calculator sample from trailblazer you can send a mail to me..

          • 2. Re: EJB3 - tutorial
            Vijay Shanmugam Newbie

            I have been trying this calculator example given in trail blazer its not working .Am getting the following error

            Im new to EJB ...and JMX am using Netbeans and inbuilt jboss-4.0.4.GA


            00:25:52,250 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 9s:719ms
            00:32:42,203 ERROR [STDERR] java.lang.RuntimeException: Error creating MBeanProxy: trail:service=calculator
            00:32:42,203 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:415)
            00:32:42,203 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.(MBeanProxyExt.java:99)
            00:32:42,203 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:394)
            00:32:42,203 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:349)
            00:32:42,203 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:324)
            00:32:42,390 ERROR [STDERR] at org.apache.jsp.calculator_jsp.jspInit(calculator_jsp.java:23)
            00:32:42,390 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:78)
            00:32:42,390 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:155)
            00:32:42,390 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
            00:32:42,390 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
            00:32:42,390 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
            00:32:42,390 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            00:32:42,390 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            00:32:42,890 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            00:32:42,890 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            00:32:42,890 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            00:32:42,890 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            00:32:42,890 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

            00:32:42,890 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            00:32:42,890 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
            00:32:42,890 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
            00:32:42,890 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            00:32:42,890 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            00:32:42,890 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            00:32:42,890 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            00:32:42,890 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
            00:32:42,890 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
            00:32:42,890 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            00:32:42,890 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
            00:32:42,890 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
            00:32:42,890 ERROR [STDERR] Caused by: javax.management.InstanceNotFoundException: trail:service=calculator is not registered.
            00:32:42,890 ERROR [STDERR] at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
            00:32:42,890 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:666)
            00:32:42,890 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.init(MBeanProxyExt.java:407)
            00:32:42,890 ERROR [STDERR] ... 29 more
            00:32:42,921 ERROR [STDERR] java.lang.NumberFormatException: null
            00:32:42,921 ERROR [STDERR] at java.lang.Integer.parseInt(Integer.java:415)
            00:32:42,921 ERROR [STDERR] at java.lang.Integer.parseInt(Integer.java:497)
            00:32:42,921 ERROR [STDERR] at org.apache.jsp.calculator_jsp._jspService(calculator_jsp.java:78)
            00:32:42,921 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
            00:32:42,921 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            00:32:43,406 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
            00:32:43,406 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
            00:32:43,406 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
            00:32:43,406 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            00:32:43,406 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
            00:32:43,406 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            00:32:43,406 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            00:32:43,406 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
            00:32:43,406 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
            00:32:43,406 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            00:32:43,406 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
            00:32:43,406 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
            00:32:43,406 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
            00:32:43,406 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
            00:32:43,406 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
            00:32:43,406 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
            00:32:43,406 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
            00:32:43,906 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
            00:32:43,906 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
            00:32:43,906 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
            00:32:43,906 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
            00:32:43,906 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
            00:32:43,906 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
            java.lang.NullPointerException
            at org.apache.jsp.calculator_jsp._jspService(calculator_jsp.java:104)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

            Thanx in advance