[
http://jira.jboss.com/jira/browse/JBAS-4082?page=all ]
Dimitris Andreadis reassigned JBAS-4082:
----------------------------------------
Assignee: Scott M Stark (was: Dimitris Andreadis)
Scott, can you look into this? I've fixed all tests except for
ExternalContextUnitTestCase
Some change in the packaging causes a ClassCastException here:
static Context createProxyContext(Context ctx)
{
ClassLoader loader = Thread.currentThread().getContextClassLoader();
Class[] interfaces = ctx.getClass().getInterfaces();
InvocationHandler handler = new CachedContext(ctx);
Context proxyCtx = (Context) Proxy.newProxyInstance(loader, interfaces, handler);
<=== here
return proxyCtx;
}
20:37:09,907 WARN [ServiceController] Problem starting service jboss.test:servi
ce=ExternalContext,jndiName=external/SubMockNamingContext
java.lang.ClassCastException: $Proxy67
at org.jboss.naming.ExternalContext$CachedContext.createProxyContext(Ext
ernalContext.java:527)
at org.jboss.naming.ExternalContext.rebind(ExternalContext.java:307)
at org.jboss.naming.ExternalContext.startService(ExternalContext.java:23
0)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
upport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
eanSupport.java:245)
If you run the test a second time against the same server it passes.
failing org.jboss.test.naming.test.* tests
------------------------------------------
Key: JBAS-4082
URL:
http://jira.jboss.com/jira/browse/JBAS-4082
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: Test Suite
Environment: Java Version 1.5.0_10
Java Vendor Sun Microsystems Inc.
Java VM Name Java HotSpot(TM) Client VM
Java VM Version 1.5.0_10-b03
Java VM Info mixed mode
OS Name Linux
OS Version 2.6.9-42.0.2.EL
OS Arch i386
Reporter: Dimitris Andreadis
Assigned To: Scott M Stark
Fix For: JBossAS-4.2.0.CR1
ExternalContextUnitTestCase
ImplUnitTestCase
PooledInvokerUnitTestCase
SecurityUnitTestCase
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira