[JBoss-user] [EJB/JBoss] - Re: After redeployment jndi lookup gets ClassCastException

2004-08-15 Thread leathurman
Hi,

I too am experiencing this very same problem on 3.0.6 but I do need to make a remote 
call so its not an option for me to comment out the jndi url line.

Does anyone know why this is occurring and whether or not there is a workaround?

Regards
Lea.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3845134#3845134

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3845134


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: After redeployment jndi lookup gets ClassCastException

2004-04-22 Thread ithehorrible
Yes the scheduler.sar  ejb.jar are in the same ear.   Also I tried to separate 
scheduler into single deployed file -- but same result...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3831863#3831863

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3831863


---
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=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: After redeployment jndi lookup gets ClassCastException

2004-04-22 Thread ithehorrible
It looks that my enemy is class-loader so I've added into jboss-app.xml following: 

loader-repositorydummy:loader=dummy.ear/loader-repository 

However it does not solving the redeployment issue at all...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3831921#3831921

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3831921


---
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=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: After redeployment jndi lookup gets ClassCastException

2004-04-22 Thread jae77
hrm - i'm not really sure. you shouldn't be getting casting exceptions if both 
archives are being deployed as one unit. the classloader that deploys the ear should 
be the same one that is being used to look up class references. 

i haven't experienced this problem when deploying everything in one ear. 

adding the loader repository isn't going to do you much good in this instance b/c 
you're not trying to prevent the classes inside the ear from being accessed outside of 
the ear. 

assuming you have a mbean in the sar, is it being shutdown and destroyed properly on 
the hot-deployment? the only other thing that comes to mind is that somehow it's not 
being completely destoryed and somehow as an incorrect reference.

at this point, i'd recommend turing on classloader debugging and posting back the 
relevant portions here. 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3831938#3831938

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3831938


---
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=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: After redeployment jndi lookup gets ClassCastException

2004-04-22 Thread ithehorrible
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 

[JBoss-user] [EJB/JBoss] - Re: After redeployment jndi lookup gets ClassCastException

2004-04-22 Thread jae77
turn on classloader debugging (insert the following into your log4j.xml file)


  | appender name=UCL class=org.apache.log4j.FileAppender
  | param name=File value=${jboss.server.home.dir}/log/ucl.log/
  | param name=Append value=false/
  | layout class=org.apache.log4j.PatternLayout
  | param name=ConversionPattern value=[%r,%c{1},%t] %m%n/
  | /layout
  | /appender
  | category name=org.jboss.mx.loading additivity=false
  | priority value=TRACE class=org.jboss.logging.XLevel/
  | appender-ref ref=UCL/
  | /category
  | 

if you have the jboss admin book, this is talked about in chapter 2 and it explains 
how to use the jmx console to provide some additional information (not sure if any of 
this is on a wiki page or not). 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3831959#3831959

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3831959


---
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=1470alloc_id=3638op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user