1 2 Previous Next 20 Replies Latest reply on Mar 21, 2006 2:23 PM by sisepago Go to original post
      • 15. Re: Help me please!! Mapping Problems with JBoss 4.0.3
        jbosschecker

        Hi Aaron,
        you can't get rid of me :o)
        Sorry! I just would like to show you what I have ment.

        See it yourself please:

        [img]http://www.kourosh-bagheri.de/buildpath_1.gif[/img]
        [img]http://www.kourosh-bagheri.de/buildpath_2.gif[/img]
        [img]http://www.kourosh-bagheri.de/buildpath_3.gif[/img]

        thanks.

        • 17. Re: Help me please!! Mapping Problems with JBoss 4.0.3
          neelixx

          There is a problem with those jars. If you look at your build path, you'll see some of your jars have warnings in them. Each of those jars with warnings are not pulling over to your build path. (you can see the yellow " ! " by the jars).

          Those jars are:

          hibernate3.jar
          ejb3.jar
          ejb3x.jar
          jboss-remoting.jar

          You do not need the jboss-remoting at this point, but those other three are critical to developing EJB3 projects.

          Expand those jars, and see if they are available. Could it be because ehy are conflicting with the jars in your lib?

          Find out why you have warnings on those jars. Each jar that has a warning is not brought over into your project.


          --Aaron

          • 18. Re: Help me please!! Mapping Problems with JBoss 4.0.3
            jbosschecker



            Thanx again.
            Aufwiederschreiben!

            • 19. Re: Help me please!! Mapping Problems with JBoss 4.0.3
              nidhi1976

              Hi

              I am having the same bound problem. I followed the steps as described in the above emails. But does not help

              The error is :
              2006-03-21 10:41:59,951 DEBUG [org.jboss.ejb3.stateless.StatelessManager] Starting failed jboss.j2ee:service=EJB3,name=com.trial.dao.StudentDAO
              java.lang.RuntimeException: unable to find: java:/managedEntityFactories/Student
              at org.jboss.ejb3.injection.PersistenceContextHandler.getManagedEntityManagerFactory(PersistenceContextHandler.java:85)
              .
              .
              .
              Caused by: javax.naming.NameNotFoundException: Student not bound
              at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)


              There is no exception related to DB tables. But it looks like that can be the root cause. My persisitence.xml looks like
              <entity-manager>
              Student
              <jta-data-source>java:/DefaultDS</jta-data-source>



              </entity-manager>

              Even if I set the hibernate.hbm2ddl.auto to create-drop. I get the same error.

              Funny thing is, this used to work very well for me on JBoss RC1 but now on SP1 version , it fails. I have set the loggin to be DEBUG level as well. But I don't get any more detailed message.

              Please help.

              Nidhi

              • 20. Re: Help me please!! Mapping Problems with JBoss 4.0.3

                Hi all,
                I try to run the the tutorial
                embedded-tutorials/simple-deployment of
                jboss-EJB-3.0_Embeddable_ALPHA_5 since 3 hours without
                result and i do not where is the problem, because the
                error looks like this:

                DEBUG 21-03 20:11:10,997
                (KernelFactory.java:assembleNewKernel:86) -Starting
                JBoss Kernel construction...
                DEBUG 21-03 20:11:11,059
                (KernelFactory.java:assembleNewKernel:112) -Completed
                JBoss Kernel construction. Duration: 62 milliseconds
                DEBUG 21-03 20:11:11,622
                (BeanXMLDeployer.java:deploy:91) -Parsing
                file:/C:/dev/workspace/j.k.ejb3/bin/embedded-jboss-beans.xml
                took 532 milliseconds
                DEBUG 21-03 20:11:11,747
                (UserTransactionImpl.java:start:61) -new UserTx:
                org.jboss.ejb3.embedded.UserTransactionImpl@1a42792
                Exception in thread "main" java.lang.RuntimeException:
                Problems scanning classpath
                at
                org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:245)
                at de.mathema.tutorial.simple.Main.main(Main.java:56)
                INFO 21-03 20:11:11,872
                (LocalTxDataSource.java:bindConnectionFactory:117)
                -Bound datasource to JNDI name 'java:/DefaultDS'
                DEBUG 21-03 20:11:11,872
                (BeanXMLDeployer.java:deploy:98) -Deploying
                file:/C:/dev/workspace/j.k.ejb3/bin/embedded-jboss-beans.xml
                took 782 milliseconds
                DEBUG 21-03 20:11:12,122
                (EJB3StandaloneBootstrap.java:createDeployer:266) -No
                MBeanServer
                DEBUG 21-03 20:11:12,137
                (JaccHelper.java:initialiseJacc:61) -Initialising
                JACC Context for deployment: jboss-xml-binding
                INFO 21-03 20:11:12,528
                (Ejb3Deployment.java:create:444) -EJB3 deployment
                time took: 391
                DEBUG 21-03 20:11:12,528
                (JaccHelper.java:initialiseJacc:61) -Initialising
                JACC Context for deployment: bin
                INFO 21-03 20:11:12,590
                (Ejb3AnnotationHandler.java:getContainers:156) -found
                EJB3: ejbName=CustomerDAOBean,
                class=de.mathema.tutorial.simple.CustomerDAOBean,
                type=STATELESS
                DEBUG 21-03 20:11:12,606
                (ProxyDeployer.java:initializeRemoteBindingMetadata:133)
                -no declared remote bindings for : CustomerDAOBean
                DEBUG 21-03 20:11:12,622
                (ProxyDeployer.java:initializeRemoteBindingMetadata:136)
                -there is remote interfaces for CustomerDAOBean
                DEBUG 21-03 20:11:12,622
                (ProxyDeployer.java:initializeRemoteBindingMetadata:138)
                -default remote binding has jndiName of
                CustomerDAOBean/remote
                INFO 21-03 20:11:12,622
                (Ejb3Deployment.java:create:444) -EJB3 deployment
                time took: 94
                DEBUG 21-03 20:11:12,622
                (JaccHelper.java:initialiseJacc:61) -Initialising
                JACC Context for deployment: ehcache
                INFO 21-03 20:11:12,653
                (Ejb3Deployment.java:create:444) -EJB3 deployment
                time took: 31
                DEBUG 21-03 20:11:12,653
                (JaccHelper.java:initialiseJacc:61) -Initialising
                JACC Context for deployment: jboss-serialization
                INFO 21-03 20:11:12,700
                (Ejb3Deployment.java:create:444) -EJB3 deployment
                time took: 47
                DEBUG 21-03 20:11:12,731
                (EJBContainer.java:initialiseInterceptors:708)
                -Initialising interceptors for CustomerDAOBean...
                DEBUG 21-03 20:11:12,731
                (EJBContainer.java:initialiseInterceptors:710)
                -Default interceptors: null
                DEBUG 21-03 20:11:12,731
                (EJBContainer.java:initialiseInterceptors:713) -Class
                interceptors: []
                DEBUG 21-03 20:11:12,731
                (EJBContainer.java:initialiseInterceptors:729) -All
                applicable interceptor classes: []
                INFO 21-03 20:11:12,731
                (MCKernelAbstraction.java:install:79) -installing
                bean:
                jboss.j2ee:service=EJB3,jar=bin,name=CustomerDAOBean
                with dependencies:
                INFO 21-03 20:11:12,731
                (MCKernelAbstraction.java:install:82) -
                AbstractDependencyMetaData@2f8b5a{dependency=persistence.units:unitName=custdb}
                DEBUG 21-03 20:11:12,747
                (Ejb3Deployment.java:registerEJBContainer:415) -Bound
                ejb3 container
                jboss.j2ee:service=EJB3,jar=bin,name=CustomerDAOBean
                ERROR 21-03 20:11:12,762
                (KernelErrors.java:validate:107) -
                *** DEPLOYMENTS MISSING DEPENDENCIES:
                jboss.j2ee:service=EJB3,jar=bin,name=CustomerDAOBean
                depends on:

                persistence.units:unitName=custdb'{Create:NOT FOUND}

                persistence.units:unitName=custdb'{Start:NOT FOUND}

                If you have some suggestions please sends email.

                Thanks.

                1 2 Previous Next