Thanks for your time to help on this issue.

"DummyService" MBEAN implements schedulable interface and calls the "Worker" session 
bean.  As I said in my original post, this works fine if you restart the jboss 
appserver.

Here is the jboss log and you can see that "dummyService" MBEAN actually gets unloaded 
when redeployment occurs -- very strange indeed...


16:08:41,812 INFO  [EjbModule] Stopping jboss.j2ee:module=ejb_test.jar,service=E
jbModule
16:08:41,843 INFO  [StatelessSessionContainer] Stopping jboss.j2ee:jndiName=dumm
y/fileFetcherHome,service=EJB
16:08:41,843 INFO  [StatelessSessionInstancePool] Stopping jboss.j2ee:jndiName=d
ummy/fileFetcherHome,plugin=pool,service=EJB
16:08:41,859 INFO  [Scheduler] Stopping dummy:service=dummyService
16:08:41,859 INFO  [StatelessSessionContainer] Stopping jboss.j2ee:jndiName=work
erHome,service=EJB
16:08:41,859 INFO  [StatelessSessionInstancePool] Stopping jboss.j2ee:jndiName=w
orkerHome,plugin=pool,service=EJB
16:08:41,859 INFO  [StatelessSessionContainer] Stopping jboss.j2ee:jndiName=dumm
yManager,service=EJB
16:08:41,859 INFO  [StatelessSessionInstancePool] Stopping jboss.j2ee:jndiName=d
ummyManager,plugin=pool,service=EJB
16:08:41,859 INFO  [EntityContainer] Stopping jboss.j2ee:jndiName=dummyLocalHome
,service=EJB
16:08:41,875 INFO  [EntityInstancePool] Stopping jboss.j2ee:jndiName=dummyLocalH
ome,plugin=pool,service=EJB
16:08:41,875 INFO  [TxConnectionManager] Stopping jboss.jca:service=LocalTxCM,na
me=datasource/dummy
16:08:41,875 INFO  [JBossManagedConnectionPool] Stopping jboss.jca:service=Manag
edConnectionPool,name=datasource/dummy
16:08:41,875 INFO  [RARDeployment] Stopping jboss.jca:service=ManagedConnectionF
actory,name=datasource/dummy
16:08:41,875 INFO  [EARDeployer] Undeploying J2EE application, destroy step: fil
e:/C:/temp/local/jboss-3.2.2/server/default/deploy/dummy.ear
16:08:41,906 INFO  [EJBModule] destroy(), remove EJB-Module: jboss.management.lo
cal:J2EEApplication=dummy.ear,J2EEServer=Local,j2eeType=EJBModule,name=ejb_test.
jar
16:08:41,953 WARN  [DeploymentInfo] Could not delete file:/C:/temp/local/jboss-3
.2.2/server/default/tmp/deploy/tmp42655dummy.ear restart will delete it
16:08:42,000 INFO  [MainDeployer] Starting deployment of package: file:/C:/temp/
local/jboss-3.2.2/server/default/deploy/dummy.ear
16:08:42,015 INFO  [EARDeployer] Init J2EE application: file:/C:/temp/local/jbos
s-3.2.2/server/default/deploy/dummy.ear
16:08:42,671 INFO  [EJBDeployer] nested deployment: file:/C:/temp/local/jboss-3.
2.2/server/default/tmp/deploy/tmp42656dummy.ear-contents/ejb_test.jar-contents/M
ETA-INF/mysql-ds.xml
16:08:46,453 INFO  [EjbModule] Deploying DummyEJB
16:08:46,484 INFO  [EjbModule] Deploying DummyManager
16:08:46,500 INFO  [EjbModule] Deploying Worker
16:08:46,531 INFO  [EjbModule] Deploying FileFetcher
16:08:46,765 INFO  [RARDeployment] Started jboss.jca:service=ManagedConnectionFa
ctory,name=datasource/dummy
16:08:46,765 INFO  [JBossManagedConnectionPool] Started jboss.jca:service=Manage
dConnectionPool,name=datasource/dummy
16:08:46,765 INFO  [datasource/dummy] Bound connection factory for resource adap
ter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=datasource/dummy to
JNDI name 'java:/datasource/dummy'
16:08:46,765 INFO  [TxConnectionManager] Started jboss.jca:service=LocalTxCM,nam
e=datasource/dummy
16:08:47,281 INFO  [DummyEJB] Table 'Test' already exists
16:08:47,281 INFO  [EntityInstancePool] Started jboss.j2ee:jndiName=dummyLocalHo
me,plugin=pool,service=EJB
16:08:47,296 INFO  [EntityContainer] Started jboss.j2ee:jndiName=dummyLocalHome,
service=EJB
16:08:47,359 INFO  [StatelessSessionInstancePool] Started jboss.j2ee:jndiName=du
mmyManager,plugin=pool,service=EJB
16:08:47,359 INFO  [StatelessSessionContainer] Started jboss.j2ee:jndiName=dummy
Manager,service=EJB
16:08:47,406 INFO  [StatelessSessionInstancePool] Started jboss.j2ee:jndiName=wo
rkerHome,plugin=pool,service=EJB
16:08:47,406 INFO  [StatelessSessionContainer] Started jboss.j2ee:jndiName=worke
rHome,service=EJB
16:08:47,406 INFO  [STDOUT] DummyService has been initialized()
16:08:47,421 INFO  [Scheduler] Started dummy:service=dummyService
16:08:47,421 INFO  [StatelessSessionInstancePool] Started jboss.j2ee:jndiName=du
mmy/fileFetcherHome,plugin=pool,service=EJB
16:08:47,421 INFO  [StatelessSessionContainer] Started jboss.j2ee:jndiName=dummy
/fileFetcherHome,service=EJB
16:08:47,421 INFO  [EjbModule] Started jboss.j2ee:module=ejb_test.jar,service=Ej
bModule
16:08:47,421 INFO  [EJBDeployer] Deployed: file:/C:/temp/local/jboss-3.2.2/serve
r/default/tmp/deploy/tmp42656dummy.ear-contents/ejb_test.jar
16:08:47,531 INFO  [EARDeployer] Started J2EE application: file:/C:/temp/local/j
boss-3.2.2/server/default/deploy/dummy.ear
16:08:47,531 INFO  [MainDeployer] Deployed package: file:/C:/temp/local/jboss-3.
2.2/server/default/deploy/dummy.ear
16:08:48,453 INFO  [STDOUT] DummyService dummyTest() invoked...
16:08:48,484 INFO  [STDOUT] $Proxy30
16:08:48,484 ERROR [STDERR] NPE
16:08:48,484 ERROR [STDERR] java.lang.ClassCastException
16:08:48,484 ERROR [STDERR]     at com.sun.corba.se.internal.javax.rmi.PortableR
emoteObject.narrow(PortableRemoteObject.java:293)
16:08:48,500 ERROR [STDERR]     at javax.rmi.PortableRemoteObject.narrow(Portabl
eRemoteObject.java:134)
16:08:48,500 ERROR [STDERR]     at mbean.DummyService.dummyTest(DummyService.jav
a:54)
16:08:48,500 ERROR [STDERR]     at mbean.DummyService.perform(DummyService.java:
40)
16:08:48,500 ERROR [STDERR]     at org.jboss.varia.scheduler.Scheduler$Listener.
handleNotification(Scheduler.java:1263)
16:08:48,500 ERROR [STDERR]     at org.jboss.mx.server.NotificationListenerProxy
.handleNotification(NotificationListenerProxy.java:69)
16:08:48,500 ERROR [STDERR]     at javax.management.NotificationBroadcasterSuppo
rt.sendNotification(NotificationBroadcasterSupport.java:95)
16:08:48,500 ERROR [STDERR]     at javax.management.timer.Timer.sendNotification
s(Timer.java:441)
16:08:48,500 ERROR [STDERR]     at javax.management.timer.Timer.access$000(Timer
.java:31)
16:08:48,500 ERROR [STDERR]     at javax.management.timer.Timer$RegisteredNotifi
cation.doRun(Timer.java:612)
16:08:48,500 ERROR [STDERR]     at org.jboss.mx.util.SchedulableRunnable.run(Sch
edulableRunnable.java:164)
16:08:48,500 ERROR [STDERR]     at org.jboss.mx.util.ThreadPool$Worker.run(Threa
dPool.java:225)


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

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


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to