Is there any particular rule for discover the real problem when i receive a jboss console error?
The problem is that the report is to big and ununderstandalbe for a beginner as me. For example now i had an error that i can' t understand. In this report i cannot find refer to my code an so i do not know how to debug. Somebody could help me? CMP 2.0 using MyEclipse and JBoss 4.0 and XDoc 15:16:33,706 INFO [Server] JBoss (MX MicroKernel) [4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)] Started in 1m:6s:716ms | 15:16:42,689 INFO [EjbModule] Deploying Cabin | 15:16:44,691 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=ejb/Cabin,service=EJB | java.lang.ClassCastException: org.jnp.interfaces.NamingContext | at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:135) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:420) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:353) | at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:157) | at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) | at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:416) | at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) | at $Proxy45.start(Unknown Source) | at org.jboss.ejb.EjbModule.startService(EjbModule.java:394) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) | at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:416) | at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) | at $Proxy19.start(Unknown Source) | at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:605) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709) | at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) | at $Proxy8.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194) | 15:16:44,702 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=ejb/Cabin,service=EJB | java.lang.ClassCastException: org.jnp.interfaces.NamingContext | at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:135) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:420) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:353) | at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:157) | at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) | at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:416) | at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) | at $Proxy45.start(Unknown Source) | at org.jboss.ejb.EjbModule.startService(EjbModule.java:394) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221) | at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:416) | at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) | at $Proxy19.start(Unknown Source) | at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:605) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709) | at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176) | at $Proxy8.deploy(Unknown Source) | at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194) | 15:16:44,702 INFO [EJBDeployer] Deployed: file:/E:/jboss-4.0.0/server/vanoserver/deploy/EJB_CMP_Cabin.jar | 15:16:44,982 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | MBeans waiting for other MBeans: | ObjectName: jboss.j2ee:jndiName=ejb/Cabin,service=EJB | state: FAILED | I Depend On: | Depends On Me: java.lang.ClassCastException: org.jnp.interfaces.NamingContext | ObjectName: jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb/Cabin | state: CREATED | I Depend On: | Depends On Me: | | MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM: | ObjectName: jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb/Cabin | state: CREATED | I Depend On: | Depends On Me: | ObjectName: jboss.j2ee:jndiName=ejb/Cabin,service=EJB | state: FAILED | I Depend On: | Depends On Me: java.lang.ClassCastException: org.jnp.interfaces.NamingContext | | and now my file descriptors ( i putted all 3 in one here) | <?xml version="1.0" encoding="UTF-8"?> | | <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> | | <ejb-jar > | | <description>[CDATA[No Description.]]</description> | <display-name>Generated by XDoclet</display-name> | | <enterprise-beans> | | <!-- Session Beans --> | <!-- | To add session beans that you have deployment descriptor info for, add | a file to your XDoclet merge directory called session-beans.xml that contains | the <session></session> markup for those beans. | --> | | <!-- Entity Beans --> | <entity > | <description>[CDATA[Description for Cabin]]</description> | <display-name>Name for Cabin</display-name> | | <ejb-name>Cabin</ejb-name> | | <home>com.titan.cabin.interfaces.CabinHome</home> | <remote>com.titan.cabin.interfaces.Cabin</remote> | | <ejb-class>com.titan.cabin.ejb.CabinCMP</ejb-class> | <persistence-type>Container</persistence-type> | <prim-key-class>java.lang.Integer</prim-key-class> | <reentrant>False</reentrant> | <cmp-version>2.x</cmp-version> | <abstract-schema-name>Cabin</abstract-schema-name> | <cmp-field > | <description>[CDATA[]]</description> | <field-name>id</field-name> | </cmp-field> | <cmp-field > | <description>[CDATA[]]</description> | <field-name>shipId</field-name> | </cmp-field> | <cmp-field > | <description>[CDATA[]]</description> | <field-name>name</field-name> | </cmp-field> | <cmp-field > | <description>[CDATA[]]</description> | <field-name>bedCount</field-name> | </cmp-field> | <cmp-field > | <description>[CDATA[]]</description> | <field-name>deckLevel</field-name> | </cmp-field> | <primkey-field>id</primkey-field> | | <!-- Write a file named ejb-finders-CabinBean.xml if you want to define extra finders. --> | </entity> | | <!-- | To add entity beans that you have deployment descriptor info for, add | a file to your XDoclet merge directory called entity-beans.xml that contains | the <entity></entity> markup for those beans. | --> | | <!-- Message Driven Beans --> | <!-- | To add message driven beans that you have deployment descriptor info for, add | a file to your XDoclet merge directory called message-driven-beans.xml that contains | the <message-driven></message-driven> markup for those beans. | --> | | </enterprise-beans> | | <!-- Relationships --> | | <!-- Assembly Descriptor --> | <!-- | To specify your own assembly descriptor info here, add a file to your | XDoclet merge directory called assembly-descriptor.xml that contains | the <assembly-descriptor></assembly-descriptor> markup. | --> | | <assembly-descriptor > | <!-- | To specify additional security-role elements, add a file in the merge | directory called ejb-security-roles.xml that contains them. | --> | | <!-- method permissions --> | <!-- | To specify additional method-permission elements, add a file in the merge | directory called ejb-method-permissions.ent that contains them. | --> | | <!-- finder permissions --> | | <!-- transactions --> | <!-- | To specify additional container-transaction elements, add a file in the merge | directory called ejb-container-transaction.ent that contains them. | --> | | <!-- finder transactions --> | | <!-- | To specify an exclude-list element, add a file in the merge directory | called ejb-exclude-list.xml that contains it. | --> | </assembly-descriptor> | | </ejb-jar> | <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd"> | | <jboss> | | <enterprise-beans> | | <!-- | To add beans that you have deployment descriptor info for, add | a file to your XDoclet merge directory called jboss-beans.xml that contains | the <session></session>, <entity></entity> and <message-driven></message-driven> | markup for those beans. | --> | | <entity> | <ejb-name>Cabin</ejb-name> | <jndi-name>ejb/Cabin</jndi-name> | | <method-attributes> | </method-attributes> | | </entity> | | </enterprise-beans> | | <resource-managers> | </resource-managers> | | <!-- | | for container settings, you can merge in jboss-container.xml | | this can contain <invoker-proxy-bindings/> and <container-configurations/> | --> | | </jboss> | | <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE jbosscmp-jdbc PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 4.0//EN" "http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_4_0.dtd"> | | <jbosscmp-jdbc> | <defaults> | <datasource>java://MySqlDS</datasource> | <datasource-mapping>mySQL</datasource-mapping> | </defaults> | | <enterprise-beans> | | <!-- | To add beans that you have deployment descriptor info for, add | a file to your XDoclet merge directory called jbosscmp-jdbc-beans.xml | that contains the <entity></entity> markup for those beans. | --> | | <entity> | <ejb-name>Cabin</ejb-name> | | <table-name>cabin</table-name> | | <cmp-field> | <field-name>id</field-name> | <column-name>ID</column-name> | | </cmp-field> | <cmp-field> | <field-name>shipId</field-name> | <column-name>SHIP_ID</column-name> | | </cmp-field> | <cmp-field> | <field-name>name</field-name> | <column-name>NAME</column-name> | | </cmp-field> | <cmp-field> | <field-name>bedCount</field-name> | <column-name>BED_COUNT</column-name> | | </cmp-field> | <cmp-field> | <field-name>deckLevel</field-name> | <column-name>DECK_LEVEL</column-name> | | </cmp-field> | | <!-- jboss 3.2 features --> | <!-- optimistic locking does not express the exclusions needed --> | </entity> | | </enterprise-beans> | | </jbosscmp-jdbc> | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3861767#3861767 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3861767 ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
