-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
6.1.0
JNDI View button in web console doesn't work
To reproduce:
add
<subsystem xmlns="urn:jboss:domain:naming:1.3"> <bindings> <lookup name="java:/ejb/Example" lookup="core/core-ejb/Example!com.example.IauthRemote"/> </bindings> </subsystem>
click on jndi view and you'll got the following error:
15:21:31,128 ERROR [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 2) JBAS014612: Operation ("jndi-view") failed - address: ([("subsystem" => "naming")]): java.lang.RuntimeException: javax.naming.NamingExc eption: EJBCLIENT000037: Could not load ejb proxy class com.example.IauthRemote [Root exception is java.lang.ClassNotFoundException: com.example.IauthRemote from [Module "org.jboss.as.naming:main" from local module loader @70764922 (finder: local module finder @65bb90dc (roots: C:\Users\test\jboss-eap-6.1\modules,C:\Users\test\jboss-eap-6 .1\modules\system\layers\base))]] at org.jboss.as.naming.subsystem.NamingBindingAdd$2.getReference(NamingBindingAdd.java:252) at org.jboss.as.naming.subsystem.NamingBindingAdd$2.getInstanceClassName(NamingBindingAdd.java:258) at org.jboss.as.naming.ServiceBasedNamingStore.list(ServiceBasedNamingStore.java:175) at org.jboss.as.naming.NamingContext.list(NamingContext.java:322) at org.jboss.as.naming.NamingContext.list(NamingContext.java:338) at org.jboss.as.naming.management.JndiViewOperation.addEntries(JndiViewOperation.java:125) at org.jboss.as.naming.management.JndiViewOperation.addEntries(JndiViewOperation.java:139) at org.jboss.as.naming.management.JndiViewOperation.access$000(JndiViewOperation.java:49) at org.jboss.as.naming.management.JndiViewOperation$1.execute(JndiViewOperation.java:66) at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:440) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:322) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:229) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:224) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:194) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:115) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.as.controller.ModelControllerImpl$3.execute(ModelControllerImpl.java:398) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.as.controller.ModelControllerImpl$3.execute(ModelControllerImpl.java:388) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.as.domain.http.server.DomainApiHandler.processRequest(DomainApiHandler.java:320) [jboss-as-domain-http-interface-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.as.domain.http.server.DomainApiHandler.doHandle(DomainApiHandler.java:226) [jboss-as-domain-http-interface-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.as.domain.http.server.DomainApiHandler.handle(DomainApiHandler.java:233) [jboss-as-domain-http-interface-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.as.domain.http.server.security.SubjectAssociationHandler.handle(SubjectAssociationHandler.java:51) [jboss-as-domain-http-interface-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78) at org.jboss.sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:69) at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81) at org.jboss.sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:710) at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78) at org.jboss.as.domain.http.server.RealmReadinessFilter.doFilter(RealmReadinessFilter.java:47) [jboss-as-domain-http-interface-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.as.domain.http.server.DmrFailureReadinessFilter.doFilter(DmrFailureReadinessFilter.java:45) [jboss-as-domain-http-interface-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8] at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81) at org.jboss.sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:682) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25] at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25] at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final-redhat-1.jar:2.1.0.Final-redhat-1] Caused by: javax.naming.NamingException: EJBCLIENT000037: Could not load ejb proxy class com.example.IauthRemote [Root exception is java.lang.ClassNotFoundException: com.example.IauthRemote from [Module "org.jboss.as.naming:main" from local module loader @70764922 (finder: local module finder @65bb90dc (roots: C:\Users\test\jboss-eap-6.1\modu les,C:\Users\test\jboss-eap-6.1\modules\system\layers\base))]] at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:188) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:176) at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:147) at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:101) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:183) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179) at javax.naming.InitialContext.lookup(InitialContext.java:411) [rt.jar:1.7.0_25] at org.jboss.as.naming.subsystem.NamingBindingAdd$2.getReference(NamingBindingAdd.java:249) ... 33 more Caused by: java.lang.ClassNotFoundException: com.example.IauthRemote from [Module "org.jboss.as.naming:main" from local module loader @70764922 (finder: local module finder @ 65bb90dc (roots: C:\Users\test\jboss-eap-6.1\modules,C:\Users\mbazzani\jboss-eap-6.1\modules\system\layers\base))] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:196) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:432) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:374) [jboss-modules.jar:1.2.0.Final-redhat-1] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:119) [jboss-modules.jar:1.2.0.Final-redhat-1] at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_25] at java.lang.Class.forName(Class.java:270) [rt.jar:1.7.0_25] at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:186) ... 40 more
The problem occurs in any case if the core.ear is deployed or not.