2 Replies Latest reply on Jul 4, 2003 12:51 AM by madooreddy

    [INFO,JAWSPersistenceManager] Table 'TBL_NOTICE' already exi

    madooreddy Newbie

      Hi All !!
      When I am deploying bean getting message in log file below ... I have only one table with name of TBL_NOTICE under SMSDB(Database -DB2)
      If i mention SMSDB.TBL_NOTICE in deployment descriptor
      jaws.xml file its didn't give msg that table already exists..

      while testing
      i am getting error like this in jboss & tomact log files..Don't understnd what is the problem . ?
      pls help me if any dody have soultion

      Jboss log file while testing bean
      ERROR,NoticeControlBean] TRANSACTION ROLLBACK EXCEPTION:
      javax.transaction.TransactionRolledbackException: com/wizit/util/EJBUtility (Extra bytes at the end of the class file); nested exception is:
      java.lang.ClassFormatError: com/wizit/util/EJBUtility (Extra bytes at the end of the class file)
      java.lang.ClassFormatError: com/wizit/util/EJBUtility (Extra bytes at the end of the class file)
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at javax.management.loading.MLet.findClass(MLet.java:775)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
      at com.wizit.notice.ejb.NoticeRetrieveHelper.findByList(NoticeRetrieveHelper.java:376)
      at com.wizit.notice.ejb.NoticeControlBean.findByList(NoticeControlBean.java:275)
      at java.lang.reflect.Method.invoke(Native Method)

      Here is the Deploy time log file
      INFO,ContainerFactory] Deploying NoticeBean
      [INFO,ContainerFactory] Deploying NoticegroupBean
      [INFO,ContainerFactory] Deploying NoticeControlBean
      [INFO,ContainerFactory] Deploying NoticeGroupControlBean
      [INFO,JAWSPersistenceManager] Table 'TBL_NOTICE' already exists
      [INFO,JAWSPersistenceManager] Table 'TBL_NOTICE_GRP' already exists

      [INFO,NoticeBean] Initializing
      [INFO,NoticeBean] Initialized
      [INFO,NoticeBean] Starting
      [INFO,NoticeBean] Started
      [INFO,NoticegroupBean] Initializing
      [INFO,NoticegroupBean] Initialized
      [INFO,NoticegroupBean] Starting
      [INFO,NoticegroupBean] Started
      [INFO,NoticeControlBean] Initializing
      [INFO,NoticeControlBean] Initialized
      [INFO,NoticeControlBean] Starting
      [INFO,NoticeControlBean] Started
      [INFO,NoticeGroupControlBean] Initializing
      [INFO,NoticeGroupControlBean] Initialized
      [INFO,NoticeGroupControlBean] Starting
      [INFO,NoticeGroupControlBean] Started
      [INFO,ContainerFactory] Deployed application: file:/usr/local/jboss-2.4.4/tmp/deploy/Default/FirstNotice.jar
      [INFO,J2eeDeployer] J2EE application: file:/usr/local/jboss-2.4.4/deploy/FirstNotice.jar is deployed.

      Thanks
      Madhu Reddy

        • 1. Re: [INFO,JAWSPersistenceManager] Table 'TBL_NOTICE' already
          Raja Master

          do you by any chance do a FTP of your class files to the JBoss machine? If you do so, make the transfer in binary mode.
          As far as tables are already created message, make ur jbosscmp-jdbc.xml use the create-table and remove-table values to be "true" if you need them to be created everytime and dropped when jboss is stopped.

          -Raj

          • 2. Re: [INFO,JAWSPersistenceManager] Table 'TBL_NOTICE' already
            madooreddy Newbie

            I did n't any FTP, I Just took .java files form visul age (these are working perfectly on websphere) to my windows pc from there i copy and paste to linux server. then compiled, deployed..

            And one more thing we have 2 datasource
            1-->DefaultDS
            2-->SmsdbDS
            which r using DefaultDS working perfectly in jboss and which are usign SmsDBDS not at all working
            giving exception


            javax.servlet.ServletException: Name SmsDBDS is not bound in this Context
            at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
            at org.apache.jsp.retrieveNoticeUserList$jsp._jspService(retrieveNoticeUserList$jsp.java:429)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431
            ------------------------------------------------
            -----------------------------------------------


            same time n log files both JBoss & Tomcat showing

            [ERROR,NoticeControlBean] TRANSACTION ROLLBACK EXCEPTION:
            javax.transaction.TransactionRolledbackException: com/wizit/acs/util/DBUtility; nested exception is:
            java.lang.NoClassDefFoundError: com/wizit/acs/util/DBUtility
            java.lang.NoClassDefFoundError: com/wizit/acs/util/DBUtility
            at com.wizit.notice.ejb.NoticeRetrieveHelper.findByList(NoticeRetrieveHelper.java:376)
            at com.wizit.notice.ejb.NoticeControlBean.findByList(NoticeControlBean.java:275)
            at java.lang.reflect.Method.invoke(Native Method)
            at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
            at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)
            at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:138)
            at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:347)
            at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:100)
            at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
            at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
            at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
            at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:410)
            at java.lang.reflect.Method.invoke(Native Method)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
            at sun.rmi.transport.Transport$1.run(Transport.java:152)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
            at java.lang.Thread.run(Thread.java:484)