3 Replies Latest reply on Nov 21, 2011 8:39 AM by Prasad Deshpande

    Exception on CLI jndi-view

    Prasad Deshpande Expert

      Hi Guys,

       

      I'm getting following exception on accessing "/subsystem=naming:jndi-view" from CLI & from web based management console both. It seems to me as a classloading problem. The class com.banctec.caseware.server.apc.APC it's complaining about is a remote interface & is packaged in a jar file that is placed in library directory of EAR.

       

      1. When accessed using web-console (http://localhost:9990/console/App.html#server/naming), I get following exception :

       

      11:19:35,846 ERROR [org.jboss.as.controller] (HttpManagementService-threads - 1) JBAS014612: Operation ("jndi-view") failed - address: ([("subsystem" => "naming")]): java.lang.RuntimeException: JBAS014487: Could not load view class for ejb APC

          at org.jboss.as.ejb3.remote.RemoteViewManagedReferenceFactory.getReference(RemoteViewManagedReferenceFactory.java:68)

          at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:115) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.ServiceBasedNamingStore.list(ServiceBasedNamingStore.java:146) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.NamingContext.list(NamingContext.java:260) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.NamingContext.list(NamingContext.java:276) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.management.JndiViewOperation.addEntries(JndiViewOperation.java:113) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.management.JndiViewOperation.addEntries(JndiViewOperation.java:122) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.management.JndiViewOperation.addEntries(JndiViewOperation.java:122) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.management.JndiViewOperation.access$000(JndiViewOperation.java:45) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.management.JndiViewOperation$1.execute(JndiViewOperation.java:78) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:327) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:221) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:157) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.management.JndiViewOperation.execute(JndiViewOperation.java:109) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:327) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:221) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:157) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:426) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:327) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:221) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:157) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:115) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:296) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:286) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.domain.http.server.DomainApiHandler.processRequest(DomainApiHandler.java:272)

          at org.jboss.as.domain.http.server.DomainApiHandler.handle(DomainApiHandler.java:191)

          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:689)

          at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)

          at org.jboss.sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:661)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

          at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]

      Caused by: java.lang.ClassNotFoundException: com.banctec.caseware.server.apc.APC from [Module "org.jboss.as.naming:main" from local module loader @635aed57 (roots: D:\jboss-as-7.1.0.SNAPSHOT\modules)]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.0.CR3]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:485) [jboss-modules.jar:1.1.0.CR3]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.1.0.CR3]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:421) [jboss-modules.jar:1.1.0.CR3]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:143) [jboss-modules.jar:1.1.0.CR3]

          at java.lang.Class.forName0(Native Method) [:1.6.0_26]

          at java.lang.Class.forName(Class.java:247) [:1.6.0_26]

          at org.jboss.as.ejb3.remote.RemoteViewManagedReferenceFactory.getReference(RemoteViewManagedReferenceFactory.java:66)

          ... 35 more

       

      2. When accessed from CLI, I get :

       

      11:21:52,248 ERROR [org.jboss.as.controller] (Remoting "xp003800:MANAGEMENT" task-5) JBAS014612: Operation ("jndi-view") failed - address: ([("subsystem" => "naming")]): java.lang.RuntimeException: JBAS014487: Could not load view class for ejb APC

          at org.jboss.as.ejb3.remote.RemoteViewManagedReferenceFactory.getReference(RemoteViewManagedReferenceFactory.java:68)

          at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:115) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.ServiceBasedNamingStore.list(ServiceBasedNamingStore.java:146) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.NamingContext.list(NamingContext.java:260) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.NamingContext.list(NamingContext.java:276) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.management.JndiViewOperation.addEntries(JndiViewOperation.java:113) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.management.JndiViewOperation.addEntries(JndiViewOperation.java:122) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.management.JndiViewOperation.addEntries(JndiViewOperation.java:122) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.management.JndiViewOperation.access$000(JndiViewOperation.java:45) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.management.JndiViewOperation$1.execute(JndiViewOperation.java:78) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:327) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:221) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:157) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.naming.management.JndiViewOperation.execute(JndiViewOperation.java:109) [jboss-as-naming-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:327) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:221) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:157) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:426) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:327) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:221) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:157) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:115) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doProcessRequest(ModelControllerClientOperationHandler.java:158) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.processRequest(ModelControllerClientOperationHandler.java:111) [jboss-as-controller-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]

          at org.jboss.as.protocol.mgmt.ManagementChannel$RequestReceiver.processRequest(ManagementChannel.java:283)

          at org.jboss.as.protocol.mgmt.ManagementChannel$RequestReceiver.access$500(ManagementChannel.java:257)

          at org.jboss.as.protocol.mgmt.ManagementChannel.doHandle(ManagementChannel.java:158)

          at org.jboss.as.protocol.ProtocolChannel.handleMessage(ProtocolChannel.java:159)

          at org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:409)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

      Caused by: java.lang.ClassNotFoundException: com.banctec.caseware.server.apc.APC from [Module "org.jboss.as.naming:main" from local module loader @635aed57 (roots: D:\jboss-as-7.1.0.SNAPSHOT\modules)]

          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.0.CR3]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:485) [jboss-modules.jar:1.1.0.CR3]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:444) [jboss-modules.jar:1.1.0.CR3]

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:421) [jboss-modules.jar:1.1.0.CR3]

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:143) [jboss-modules.jar:1.1.0.CR3]

          at java.lang.Class.forName0(Native Method) [:1.6.0_26]

          at java.lang.Class.forName(Class.java:247) [:1.6.0_26]

          at org.jboss.as.ejb3.remote.RemoteViewManagedReferenceFactory.getReference(RemoteViewManagedReferenceFactory.java:66)

          ... 31 more

       

       

      Just wanted to report it.

       

      Thanks,

      Prasad