Bugs item #967939, was opened at 2004-06-07 14:57
Message generated for change (Comment added) made by ehillman
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=967939&group_id=22866

Category: JBossServer
Group: v4.0
Status: Closed
Resolution: Postponed
Priority: 5
Submitted By: Ed Hillmann (ehillman)
Assigned to: Scott M Stark (starksm)
Summary: EJB Deployment failure 

Initial Comment:
Adding this bug from my JBoss forum post: can be found 
here  

http://www.jboss.org/index.html?
module=bb&op=viewtopic&t=49862

I have an EAR file (bpserver.ear) which contains two jar 
files: 

bpserver.jar, containing the server code 
bpserver-test.jar, containing JUnit test cases and a 
single EJB which is used to execute the test cases 
within the JBoss server 

The application.xml looks like 

Code: 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, 
Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd";>
<application>
        <display-name>BPlan Server</display-name>
        <description>Server for the BPlan 
system.</description>
        <module>
                <ejb>bpserver.jar</ejb>
        </module>
        <module>
                <ejb>bpserver-test.jar</ejb>
        </module>
</application>  
 


I can include the deployment descriptors for the two JAR 
files, but one is fairly lengthy. So I'll provide those if 
asked. 

When I attempt to deploy my EAR file in 4.0.0 DR3, I get 
the following exception: 

Code: 
16:08:10,462 INFO  [MainDeployer] Starting deployment 
of package: 
file:/D:/jboss/server/bpserver/deploy/bpserver.ear
16:08:10,472 INFO  [EARDeployer] Init J2EE application: 
file:/D:/jboss/server/bpserver/deploy/bpserver.ear
16:08:11,013 INFO  [EjbModule] Deploying TaskBean
16:08:11,183 INFO  [EjbModule] Deploying 
SubtaskAssignBean
16:08:11,203 INFO  [EjbModule] Deploying UserBean
16:08:11,273 INFO  [EjbModule] Deploying DataBean
16:08:11,293 INFO  [EjbModule] Deploying 
SequenceGeneratorBean
16:08:11,313 INFO  [EjbModule] Deploying 
AdministrationBean
16:08:11,654 WARN  [EJBDeployer] Verify failed; 
continuing
java.lang.NoClassDefFoundError: 
com/bh/bplan/ejbtest/EJBTestCase
        at java.lang.Class.getDeclaredMethods0(Native 
Method)
        at java.lang.Class.privateGetDeclaredMethods
(Class.java:1647)
        at java.lang.Class.getDeclaredMethod
(Class.java:1254)
        at 
org.jboss.verifier.strategy.AbstractVerifier.hasFinalizer
(AbstractVerifier.java:589)
        at 
org.jboss.verifier.strategy.EJBVerifier20.verifySessionBean
(EJBVerifier20.java:1100)
        at 
org.jboss.verifier.strategy.EJBVerifier20.checkSession
(EJBVerifier20.java:92)
        at org.jboss.verifier.BeanVerifier.verify
(BeanVerifier.java:162)
        at org.jboss.ejb.EJBDeployer.create
(EJBDeployer.java:483)
        at org.jboss.deployment.MainDeployer.create
(MainDeployer.java:818)
        at org.jboss.deployment.MainDeployer.create
(MainDeployer.java:810)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:672)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:636)
        at sun.reflect.GeneratedMethodAccessor18.invoke
(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:324)
        at 
org.jboss.mx.server.ReflectedDispatcher.dispatch
(ReflectedDispatcher.java:74)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:45)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:70)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:168)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:469)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:174)
        at $Proxy7.deploy(Unknown Source)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.de
ploy(URLDeploymentScanner.java:303)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.sc
an(URLDeploymentScanner.java:477)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er$ScannerThread.doScan
(AbstractDeploymentScanner.java:201)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er$ScannerThread.loop
(AbstractDeploymentScanner.java:212)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er$ScannerThread.run
(AbstractDeploymentScanner.java:191)
16:08:11,744 ERROR [MainDeployer] could not create 
deployment: 
file:/D:/jboss/server/bpserver/tmp/deploy/tmp6446bpserv
er.ear-contents/bpserver-test.jar
org.jboss.deployment.DeploymentException: Verification 
of Enterprise Beans failed, see above for error messages.
        at org.jboss.ejb.EJBDeployer.create
(EJBDeployer.java:499)
        at org.jboss.deployment.MainDeployer.create
(MainDeployer.java:818)
        at org.jboss.deployment.MainDeployer.create
(MainDeployer.java:810)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:672)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:636)
        at sun.reflect.GeneratedMethodAccessor18.invoke
(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:324)
        at 
org.jboss.mx.server.ReflectedDispatcher.dispatch
(ReflectedDispatcher.java:74)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:45)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:70)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:168)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:469)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:174)
        at $Proxy7.deploy(Unknown Source)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.de
ploy(URLDeploymentScanner.java:303)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.sc
an(URLDeploymentScanner.java:477)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er$ScannerThread.doScan
(AbstractDeploymentScanner.java:201)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er$ScannerThread.loop
(AbstractDeploymentScanner.java:212)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er$ScannerThread.run
(AbstractDeploymentScanner.java:191)
16:08:11,834 ERROR [MainDeployer] could not create 
deployment: 
file:/D:/jboss/server/bpserver/deploy/bpserver.ear
org.jboss.deployment.DeploymentException: Verification 
of Enterprise Beans failed, see above for error messages.
        at org.jboss.ejb.EJBDeployer.create
(EJBDeployer.java:499)
        at org.jboss.deployment.MainDeployer.create
(MainDeployer.java:818)
        at org.jboss.deployment.MainDeployer.create
(MainDeployer.java:810)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:672)
        at org.jboss.deployment.MainDeployer.deploy
(MainDeployer.java:636)
        at sun.reflect.GeneratedMethodAccessor18.invoke
(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke
(Method.java:324)
        at 
org.jboss.mx.server.ReflectedDispatcher.dispatch
(ReflectedDispatcher.java:74)
        at org.jboss.mx.server.Invocation.dispatch
(Invocation.java:45)
        at org.jboss.mx.server.Invocation.invoke
(Invocation.java:70)
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke
(AbstractMBeanInvoker.java:168)
        at org.jboss.mx.server.MBeanServerImpl.invoke
(MBeanServerImpl.java:469)
        at org.jboss.mx.util.MBeanProxyExt.invoke
(MBeanProxyExt.java:174)
        at $Proxy7.deploy(Unknown Source)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.de
ploy(URLDeploymentScanner.java:303)
        at 
org.jboss.deployment.scanner.URLDeploymentScanner.sc
an(URLDeploymentScanner.java:477)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er$ScannerThread.doScan
(AbstractDeploymentScanner.java:201)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er$ScannerThread.loop
(AbstractDeploymentScanner.java:212)
        at 
org.jboss.deployment.scanner.AbstractDeploymentScann
er$ScannerThread.run
(AbstractDeploymentScanner.java:191)    
 


The class it's complaining about, EJBTestCase, is in 
bpserver-test.jar. I get this exception regardless of the 
sequence of the ejb modules in the application 
descriptor. 

This worked fine in 4.0.0 DR2 (if I use that, I can 
execute my JUnit test cases without a problem). Is 
there something in DR3 that I need to do in addition to 
what I've done? 

I'm using JDK 1.4.2. This occurs when I run JBoss on a 
Windows 2000 Professional Box or a Linux box. 


Please let me know if I can provide any test apps....

----------------------------------------------------------------------

>Comment By: Ed Hillmann (ehillman)
Date: 2004-09-01 09:18

Message:
Logged In: YES 
user_id=197687

Using tracing for UCL, I've been able to sort this issue
out.  The missing class was junit.framework.TestCase.

My EAR file had three JAR files: JAR with EJBs and
production code, JAR with JUnit Test Cases and JUnit.jar. 
However, the Manifest for the second jar did not include the
junit.jar in the Classpath entry.  Once I updated the
manifest to include the JUnit.jar, everything deployed fine.
 So pilot error.....

----------------------------------------------------------------------

Comment By: Scott M Stark (starksm)
Date: 2004-08-08 05:26

Message:
Logged In: YES 
user_id=175228

See the following page on enabling the class loader logging
and rerun:
http://www.jboss.org/wiki/Wiki.jsp?page=EnableClassloaderLogging

A NoClassDefFoundError means that there is a static type
reference to the given class that could not be resolved at
runtime. However, the actual missing class may be another
class in the transitive closure of the class indicated by
the error. The class loader logging will show the actual
missing class.

----------------------------------------------------------------------

Comment By: Venu Narla (venunarla)
Date: 2004-08-05 02:50

Message:
Logged In: YES 
user_id=703574

Scott,

How do i add attachments....to an already existing issue?

----------------------------------------------------------------------

Comment By: Scott M Stark (starksm)
Date: 2004-08-04 23:10

Message:
Logged In: YES 
user_id=175228

Add the example jar to the bug report for testing.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=967939&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to