Bugs item #603788, was opened at 2002-09-03 01:33
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=603788&group_id=22866

Category: JBossServer
Group: CVS HEAD
Status: Open
Resolution: Accepted
Priority: 5
Submitted By: David Jencks (d_jencks)
Assigned to: Christian Riege (lqd)
Summary: Can't verify app twice.

Initial Comment:
The ejb verifier apparently can't verify an application
twice. To reproduce, start jboss (4, cvs head), remove
jbossweb-ejb.jar from server/all/deploy, and replace
it.  The verifier complains on the second deployment.

Linux x86 kernel 2.4.18
sun jdk 1.3.1-03

I haven't tried other jboss versions.  Here's the
verifier complaint:


2002-09-02 21:22:47,729 DEBUG
[org.jboss.ejb.EJBDeployer] Verifying
file:/usr/java/jboss/co15/jboss-all/build/output/jboss-4.0.0alpha/server/all/deploy/jbossweb-ejb.jar
2002-09-02 21:22:47,809 WARN 
[org.jboss.ejb.EJBDeployer.verifier] EJB spec violation: 
Bean   : CMPState
Method : public abstract CMPState create(String,
String, int, int) throws CreateException, RemoteException
Section: 12.2.9
Warning: The return type for a create(...) method must
be the entity bean's local interface type.

2002-09-02 21:22:47,819 WARN 
[org.jboss.ejb.EJBDeployer.verifier] EJB spec violation: 
Bean   : CMPState
Method : public abstract CMPState
findByPrimaryKey(CMPStatePK) throws FinderException,
RemoteException
Section: 10.6.10
Warning: The return type for a find<METHOD> method must
be the entity bean's remote interface type
(single-object finder) or a collection thereof (for a
multi-object finder).

2002-09-02 21:22:47,844 DEBUG
[org.jboss.util.NestedThrowable]
org.jboss.util.NestedThrowable.parentTraceEnabled=true


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

>Comment By: David Jencks (d_jencks)
Date: 2002-09-03 16:58

Message:
Logged In: YES 
user_id=60525

I strongly suspect this problem comes from having the ejb
interface classes in 2 jars: jbossweb-ejb.jar (with the
dd's) and jbossweb.sar/org.mortbay.j2ee.jar (without the
dd's, but with the ejb bean implementations).  I don't think
there is any way to support this kind of packaging with the
unified class loaders.

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

Comment By: Christian Riege (lqd)
Date: 2002-09-03 16:48

Message:
Logged In: YES 
user_id=176671

This is actually a ClassLoader issue. It seems that on this
particular .jar file upon redeploy the home interface is
still being loaded from the old jar while the remote
interface and bean class are taken from the newly created
ClassLoader. Using some other .jar file the classes and
interfaces are always loaded from the newly deployed JAR.
Very odd. Need to dig deeper.

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

Comment By: Christian Riege (lqd)
Date: 2002-09-03 16:07

Message:
Logged In: YES 
user_id=176671

I can reproduce this behaviour on 3.2 and HEAD; however up
until now this only occurs on the jbossweb-ejb.jar that you
mentioned. I can deploy several of my own jar files multiple
times just fine. Will investigate this further; it seems to
be closely related to that specific jar file.

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

Comment By: Christian Riege (lqd)
Date: 2002-09-03 09:29

Message:
Logged In: YES 
user_id=176671

hm, nasty. i'll take a look at it today.

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

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


-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to