[jboss-user] [Beginners Corner] - How to solve EJB Spec violation ?

Kentzhou do-not-reply at jboss.com
Tue Aug 29 11:36:50 EDT 2006


I use JDK 1_4_03, JBOSS 4_0_4_GA to run JBOSS IDE tutorial.

The EJB spec is 2.0.  When I deploy this FiboApp.ear, got violation error.

Where to find out the proper EJB spec and correct it? How can I know which spec should be used?



11:16:22,394 INFO  [Server] Starting JBoss (MX MicroKernel)...
11:16:22,394 INFO  [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
11:16:22,410 INFO  [Server] Home Dir: C:\jboss-4.0.4.GA
11:16:22,410 INFO  [Server] Home URL: file:/C:/jboss-4.0.4.GA/
11:16:22,410 INFO  [Server] Patch URL: null
11:16:22,410 INFO  [Server] Server Name: default
11:16:22,410 INFO  [Server] Server Home Dir: C:\jboss-4.0.4.GA\server\default
11:16:22,410 INFO  [Server] Server Home URL: file:/C:/jboss-4.0.4.GA/server/default/
11:16:22,410 INFO  [Server] Server Log Dir: C:\jboss-4.0.4.GA\server\default\log
11:16:22,410 INFO  [Server] Server Temp Dir: C:\jboss-4.0.4.GA\server\default\tmp
11:16:22,410 INFO  [Server] Root Deployment Filename: jboss-service.xml
11:16:23,128 INFO  [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
11:16:23,128 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_06-b05,Sun Microsystems Inc.
11:16:23,128 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
11:16:23,707 INFO  [Server] Core system initialized
11:16:26,207 INFO  [WebService] Using RMI server codebase: http://AN-KZHOU:8083/
11:16:26,253 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
11:16:27,066 INFO  [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
11:16:33,003 INFO  [Embedded] Catalina naming disabled
11:16:33,113 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
11:16:33,113 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
11:16:33,785 INFO  [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
11:16:33,785 INFO  [Catalina] Initialization processed in 672 ms
11:16:33,785 INFO  [StandardService] Starting service jboss.web
11:16:33,800 INFO  [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.17
11:16:33,878 INFO  [StandardHost] XML validation disabled
11:16:33,941 INFO  [Catalina] Server startup in 156 ms
11:16:34,238 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
11:16:34,925 INFO  [WebappLoader] Dual registration of jndi stream handler: factory already defined
11:16:36,300 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
11:16:37,363 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp1670jbossws-exp.war/
11:16:37,753 INFO  [SubscriptionManager] Bound event dispatcher to java:/EventDispatcher
11:16:38,082 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
11:16:41,957 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
11:16:44,503 INFO  [MailService] Mail Service bound to java:/Mail
11:16:45,035 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
11:16:45,144 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
11:16:45,207 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
11:16:45,269 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
11:16:45,347 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
11:16:45,441 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
11:16:46,628 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
11:16:47,394 INFO  [A] Bound to JNDI name: queue/A
11:16:47,457 INFO  [B] Bound to JNDI name: queue/B
11:16:47,457 INFO  [C] Bound to JNDI name: queue/C
11:16:47,457 INFO  [D] Bound to JNDI name: queue/D
11:16:47,457 INFO  [ex] Bound to JNDI name: queue/ex
11:16:47,535 INFO  [testTopic] Bound to JNDI name: topic/testTopic
11:16:47,550 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
11:16:47,550 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
11:16:47,550 INFO  [testQueue] Bound to JNDI name: queue/testQueue
11:16:47,816 INFO  [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
11:16:47,925 INFO  [DLQ] Bound to JNDI name: queue/DLQ
11:16:48,285 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
11:16:48,410 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
11:16:49,035 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
11:16:49,332 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
11:16:49,347 INFO  [JkMain] Jk running ID=0 time=0/78  config=null
11:16:49,347 INFO  [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 26s:937ms
11:18:39,566 INFO  [EARDeployer] Init J2EE application: file:/C:/jboss-4.0.4.GA/server/default/deploy/FiboApp.ear
11:18:40,097 WARN  [verifier] EJB spec violation: 
Bean   : Fibo
Section: 22.2
Warning: The bean provider must specify the fully-qualified name of the enterprise bean's remote home interface, if any, in the  element.
Info   : Class not found on 'myweb.interfaces.FiboHome': No ClassLoaders found for: myweb.interfaces.FiboHome

11:18:40,097 WARN  [verifier] EJB spec violation: 
Bean   : Fibo
Section: 22.2
Warning: The bean provider must specify the fully-qualified name of the enterprise bean's remote interface, if any, in the  element.
Info   : Class not found on 'myweb.interfaces.Fibo': No ClassLoaders found for: myweb.interfaces.Fibo

11:18:40,097 WARN  [verifier] EJB spec violation: 
Bean   : Fibo
Section: 7.10.1
Warning: The session bean must implement either a remote home and remote, or a local home and a local interface.

11:18:40,097 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp1700FiboApp.ear-contents/FiboEJB.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
	at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	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:155)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
	at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
	at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
	at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:99)
	at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
	at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
	at $Proxy26.create(Unknown Source)
	at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
	at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
	at sun.reflect.GeneratedMethodAccessor63.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:155)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
	at $Proxy8.deploy(Unknown Source)
	at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
	at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
11:20:15,488 INFO  [EJBDeployer] Undeploying: file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp1700FiboApp.ear-contents/FiboEJB.jar
11:20:15,488 INFO  [EARDeployer] Undeploying J2EE application, destroy step: file:/C:/jboss-4.0.4.GA/server/default/deploy/FiboApp.ear
11:20:15,503 INFO  [EARDeployer] Undeployed J2EE application: file:/C:/jboss-4.0.4.GA/server/default/deploy/FiboApp.ear
11:28:02,628 INFO  [EARDeployer] Init J2EE application: file:/C:/jboss-4.0.4.GA/server/default/deploy/FiboApp.ear
11:28:02,910 WARN  [verifier] EJB spec violation: 
Bean   : Fibo
Section: 22.2
Warning: The bean provider must specify the fully-qualified name of the enterprise bean's remote home interface, if any, in the  element.
Info   : Class not found on 'myweb.interfaces.FiboHome': No ClassLoaders found for: myweb.interfaces.FiboHome

11:28:02,910 WARN  [verifier] EJB spec violation: 
Bean   : Fibo
Section: 22.2
Warning: The bean provider must specify the fully-qualified name of the enterprise bean's remote interface, if any, in the  element.
Info   : Class not found on 'myweb.interfaces.Fibo': No ClassLoaders found for: myweb.interfaces.Fibo

11:28:02,910 WARN  [verifier] EJB spec violation: 
Bean   : Fibo
Section: 7.10.1
Warning: The session bean must implement either a remote home and remote, or a local home and a local interface.

11:28:02,910 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp1701FiboApp.ear-contents/FiboEJB.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
	at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	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:155)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
	at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
	at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
	at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:99)
	at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
	at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
	at $Proxy26.create(Unknown Source)
	at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
	at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
	at sun.reflect.GeneratedMethodAccessor63.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:155)
	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
	at $Proxy8.deploy(Unknown Source)
	at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
	at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968118#3968118

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968118



More information about the jboss-user mailing list