Bugs item #559012, was opened at 2002-05-22 05:30
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=559012&group_id=22866

Category: JBossServer
Group: v3.0 Rabbit Hole
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Scott M Stark (starksm)
>Assigned to: David Jencks (d_jencks)
Summary: Why no deploy error for service CNFE

Initial Comment:
If I deploy a service such as the following for which 
there is no my.company.MyService class available, 
the service successfull deploys. Why?

deploy 821>cat bad-service.xml
<?xml version="1.0" encoding="UTF-8"?>

<server>
  <mbean code="my.company.MyService" 
name="user:service=MyService">
    <attribute 
name="MyAttribute">AttributeValue</attribute>
  </mbean>
</server>

2002-05-21 22:31:18,765 DEBUG 
[org.jboss.deployment.scanner.URLDeploymentSca
nner] Watch URL for: file:/D:/usr/JBoss3.0/jboss-
all/build/output/jboss-3.0.0RC4/server/log4j-
chap2/deploy/jmx-html-adaptor.sar -> 
file:/D:/usr/JBoss3.0/jboss-all/build/output/jboss-
3.0.0RC4/server/log4j-chap2/deploy/jmx-html-
adaptor.sar
2002-05-21 22:31:18,765 INFO  
[org.jboss.deployment.MainDeployer] Starting 
deployment of package: file:/D:/usr/JBoss3.0/jboss-
all/build/output/jboss-3.0.0RC4/server/log4j-
chap2/deploy/bad-service.xml
2002-05-21 22:31:18,781 DEBUG 
[org.jboss.deployment.MainDeployer] Starting 
deployment (init step) of package at: 
file:/D:/usr/JBoss3.0/jboss-all/build/output/jboss-
3.0.0RC4/server/log4j-chap2/deploy/bad-
service.xml
2002-05-21 22:31:18,781 DEBUG 
[org.jboss.deployment.MainDeployer] using 
deployer 
org.jboss.deployment.SARDeployer@78a212
2002-05-21 22:31:18,796 DEBUG 
[org.jboss.deployment.SARDeployer] about to copy 
0 local directories
2002-05-21 22:31:18,796 DEBUG 
[org.jboss.deployment.MainDeployer] found 0 
subpackages of file:/D:/usr/JBoss3.0/jboss-
all/build/output/jboss-3.0.0RC4/server/log4j-
chap2/deploy/bad-service.xml
2002-05-21 22:31:18,796 DEBUG 
[org.jboss.deployment.MainDeployer] Watching 
new file: file:/D:/usr/JBoss3.0/jboss-
all/build/output/jboss-3.0.0RC4/server/log4j-
chap2/deploy/bad-service.xml
2002-05-21 22:31:18,796 DEBUG 
[org.jboss.deployment.MainDeployer] create step 
for deployment file:/D:/usr/JBoss3.0/jboss-
all/build/output/jboss-3.0.0RC4/server/log4j-
chap2/deploy/bad-service.xml
2002-05-21 22:31:18,796 DEBUG 
[org.jboss.deployment.SARDeployer] Deploying 
SAR, create step: url file:/D:/usr/JBoss3.0/jboss-
all/build/output/jboss-3.0.0RC4/server/log4j-
chap2/deploy/bad-service.xml
2002-05-21 22:31:18,796 DEBUG 
[org.jboss.system.ServiceCreator] About to create 
bean: user:service=MyService
2002-05-21 22:31:18,796 DEBUG 
[org.jboss.system.ServiceCreator] code: 
my.company.MyService
2002-05-21 22:31:18,890 DEBUG 
[org.jboss.system.ServiceCreator] Class not found 
for mbean: user:service=MyService
2002-05-21 22:31:18,890 DEBUG 
[org.jboss.deployment.MainDeployer] Done with 
create step of deploying bad-service.xml
2002-05-21 22:31:18,890 DEBUG 
[org.jboss.deployment.MainDeployer] start step for 
deployment file:/D:/usr/JBoss3.0/jboss-
all/build/output/jboss-3.0.0RC4/server/log4j-
chap2/deploy/bad-service.xml
2002-05-21 22:31:18,890 DEBUG 
[org.jboss.deployment.SARDeployer] Deploying 
SAR, start step: url file:/D:/usr/JBoss3.0/jboss-
all/build/output/jboss-3.0.0RC4/server/log4j-
chap2/deploy/bad-service.xml
2002-05-21 22:31:18,890 DEBUG 
[org.jboss.deployment.MainDeployer] Final (start) 
deployment step successfully completed on 
package: bad-service.xml
2002-05-21 22:31:18,890 INFO  
[org.jboss.deployment.MainDeployer] Successfully 
completed deployment of package: 
file:/D:/usr/JBoss3.0/jboss-all/build/output/jboss-
3.0.0RC4/server/log4j-chap2/deploy/bad-
service.xml


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

>Comment By: David Jencks (d_jencks)
Date: 2002-05-22 11:57

Message:
Logged In: YES 
user_id=60525

This is as designed.  If you deploy the class later, the
original service deployment will complete.  If you undeploy
the class later still, the service will undeploy, saving its
attribute values, and redeploy when the class again becomes
available.

You can get a list of mbeans waiting for their classes with
the listWaitingMBeans method on ServiceController.

This is the functionality that I understand Marc wanted from
the MBeanClassLoaders.  It turned out that implementing it
without the MBeanClassLoader was simpler.

Apparently I never filed a change note on this one.

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

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

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to