1 2 Previous Next 17 Replies Latest reply on Jun 24, 2009 7:54 PM by fredysierra

    java.lang.ClassCastException: org.jnp.interfaces.NamingConte

    sony3002

      hello all

      i am getting tis error when i connect to remote Jboss 4.0.4RC1
      from my stand alone tomcat
      java.lang.ClassCastException: org.jnp.interfaces.NamingContext

      i am using Jboss 4.0.4RC1 with EJB3
      Java 1.5 update 6
      Netbeans 5.5 preview

      i list all the bind variable in port 1099 and found that my bean is there

      Bind Objects :XAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
      Bind Objects :TopicConnectionFactory: org.jboss.naming.LinkRefPair
      Bind Objects :UIL2ConnectionFactory: javax.naming.LinkRef
      Bind Objects :UserTransactionSessionFactory:$Proxy27
      Bind Objects :UIL2XAConnectionFactory: javax.naming.LinkRef
      Bind Objects :QueueConnectionFactory: org.jboss.naming.LinkRefPair
      Bind Objects :topic: org.jnp.interfaces.NamingContext
      Bind Objects :UserLoginBean: org.jnp.interfaces.NamingContext
      Bind Objects :queue: org.jnp.interfaces.NamingContext
      Bind Objects :ConnectionFactory: org.jboss.mq.SpyConnectionFactory
      Bind Objects :UserTransaction: org.jboss.tm.usertx.client.ClientUserTransaction
      Bind Objects :jmx: org.jnp.interfaces.NamingContext
      Bind Objects :UILXAConnectionFactory: javax.naming.LinkRef
      Bind Objects :UILConnectionFactory: javax.naming.LinkRef


      what is the problem with me ??? my code ???
      here is my remote beans
      package test.ejb.user;
      
      import java.util.Vector;
      import javax.ejb.*;
      
      /**
       * This is the bean class for the UserLoginBean enterprise bean.
       * Created Mar 26, 2006 8:56:08 PM
       * @author Administrator
       */
      @Stateless()
      public class UserLoginBean implements com.amlaki.cbmega.ejb.user.UserLoginRemote
      {
       public boolean doLogin(String userId,String memberId,String password)throws Exception
       {
       System.out.println("User Id Received from Remot Server is :"+userId);
       System.out.println("Member Id Received from Remot Server is :"+memberId);
       System.out.println("Password Received from Remot Server is :"+password);
       System.out.println("Returning true to the called programme.....");
       return true;
       }
      
       public Vector getUserRights(String userId)throws Exception
       {
       System.out.println("Called getUserRights() method of Jboss");
       return new Vector();
       }
      
      }


      package test.ejb.user;
      
      import java.util.Vector;
      import javax.ejb.Remote;
      
      
      /**
       * This is the business interface for UserLogin enterprise bean.
       */
      @Remote()// this line was added by me
      
      public interface UserLoginRemote
      {
       public boolean doLogin(String userId,String memberId,String password)throws Exception;
      
       public Vector getUserRights(String userId)throws Exception;
      }
      

       UserLoginRemote obj = (UserLoginRemote)Remote.getRemoteObject("UserLoginBean");
      
      

      please help

      Sony George


        • 1. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
          asack

          Check JNDI space via the JMX-Console but you probably want something like UserLoginBean/remote...usually a NamingContext cast exception is a wrong lookup.

          • 2. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
            sony3002

            hello
            i checked my JMX-Console and found this

            MBean Name: Domain Name: jboss.j2ee
            service: EJB3
            name: UserLoginBean
            jar: EJBModule.jar
            MBean Java Class: org.jboss.ejb3.ServiceDelegateWrapper


            is this ok ???

            i am new to Jboss and EJB3

            please help

            • 3. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
              asack

               

              "sony3002" wrote:
              hello
              i checked my JMX-Console and found this

              MBean Name: Domain Name: jboss.j2ee
              service: EJB3
              name: UserLoginBean
              jar: EJBModule.jar
              MBean Java Class: org.jboss.ejb3.ServiceDelegateWrapper


              is this ok ???

              i am new to Jboss and EJB3

              please help



              You need to the read the manual online under Documentation and look at the EJB3 specs. To get you rolling on your immediate problem, after you start JBoss, go here:

              http://localhost:8080/jmx-console/HtmlAdaptor

              Then click "service=JNDIView" and invoke the list() functionality (i.e. output JNDI view as text). You should now be able to find your EJB3s under the Global Name space. My bet is you are grabbing the NameBinding object instead of the Proxy interface, i.e. you have beans that are
              */local and/or */remote.

              On a final note, please look at the Wiki and EJB3 tutorial documentation that cover most of the common questions.

              Good luck!

              • 4. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
                sony3002

                hello,

                thank you for the reply
                i done as you said and found this....

                +- UserLoginBean (class: org.jnp.interfaces.NamingContext)
                 | +- remote (proxy: $Proxy49 implements interface com.amlaki.cbmega.ejb.user.UserLoginRemote,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)


                when i invoked the list() functionality
                i got the following error in Jboss

                2006-03-27 20:41:47,890 ERROR [org.jboss.naming.JNDIView] JNDIView.getHAJndiAttributes() failed
                java.lang.NullPointerException: name cannot be null
                 at javax.management.ObjectName.construct(ObjectName.java:342)
                 at javax.management.ObjectName.<init>(ObjectName.java:1304)
                 at org.jboss.naming.JNDIView.getHAJndiAttributes(JNDIView.java:836)
                 at org.jboss.naming.JNDIView.getHAUrl(JNDIView.java:811)
                 at org.jboss.naming.JNDIView.list(JNDIView.java:193)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                 at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
                 at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
                 at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
                 at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
                 at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                 at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
                 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
                 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                 at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                 at java.lang.Thread.run(Thread.java:595)
                



                actually i am new to EJB and Jboss
                so please tell what should i do next ..... :(

                thanks
                Sony


                • 5. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
                  asack

                   

                  "sony3002" wrote:
                  hello,

                  thank you for the reply
                  i done as you said and found this....

                  +- UserLoginBean (class: org.jnp.interfaces.NamingContext)
                   | +- remote (proxy: $Proxy49 implements interface com.amlaki.cbmega.ejb.user.UserLoginRemote,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)


                  when i invoked the list() functionality
                  i got the following error in Jboss

                  2006-03-27 20:41:47,890 ERROR [org.jboss.naming.JNDIView] JNDIView.getHAJndiAttributes() failed
                  java.lang.NullPointerException: name cannot be null
                   at javax.management.ObjectName.construct(ObjectName.java:342)
                   at javax.management.ObjectName.<init>(ObjectName.java:1304)
                   at org.jboss.naming.JNDIView.getHAJndiAttributes(JNDIView.java:836)
                   at org.jboss.naming.JNDIView.getHAUrl(JNDIView.java:811)
                   at org.jboss.naming.JNDIView.list(JNDIView.java:193)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:585)
                   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                   at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
                   at org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
                   at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
                   at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
                   at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                   at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
                   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
                   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
                   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
                   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                   at java.lang.Thread.run(Thread.java:595)
                  



                  actually i am new to EJB and Jboss
                  so please tell what should i do next ..... :(

                  thanks
                  Sony


                  The null pointer is a known issue with 404RC1 (happened when you did the JNDI view).

                  For EJB3, RTFM. Your problem is you need to lookup "YourBeanName/remote" instead of "YourBeanName" as clearly indicated byyour JNDI dump.

                  • 6. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
                    sony3002

                    hello

                    now i am getting a new Error

                    javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)]
                    


                    this is how i called the remote server

                    UserLoginRemote obj = (UserLoginRemote)Remote.getRemoteObject("UserLoginBean/remote"); //<--- this line is line 160 of User.java
                    


                    where Remote.getRemoteObject() is
                     public static synchronized Object getRemoteObject(String remoteObjectName)throws Exception
                     {
                     Properties prop = new Properties();
                    
                     prop.setProperty(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
                     prop.setProperty(Context.PROVIDER_URL,"jnp://192.168.0.21:1099");
                     prop.setProperty(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
                    
                     javax.naming.Context context = new javax.naming.InitialContext(prop);
                     NamingEnumeration ne = context.list("");
                     while(ne.hasMore())
                     {
                     log.info("Bind Objects :"+ne.next());
                     }
                     log.info("the name of the remote object to look up is :"+remoteObjectName);
                     Object remoteObj = context.lookup(remoteObjectName);//<--- this line is 58 of Remote.java
                    
                     return remoteObj;
                     }
                    


                    and here is the full stack trace of the error

                    javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)]
                     org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
                     org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
                     javax.naming.InitialContext.lookup(InitialContext.java:351)
                     com.amlaki.cbmega.web.settings.Remote.getRemoteObject(Remote.java:58)
                     com.amlaki.cbmega.web.user.User.validate(User.java:160)
                     com.amlaki.cbmega.web.user.LoginAction.execute(LoginAction.java:60)
                     org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
                     org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
                     org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
                     org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
                     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
                     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
                     com.amlaki.cbmega.web.filter.compressionFilters.CompressionFilter.doFilter(CompressionFilter.java:223)
                     com.amlaki.cbmega.web.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:116)
                    
                    


                    and this is the log in
                    Remote.java
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :XAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :TopicConnectionFactory: org.jboss.naming.LinkRefPair
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :UIL2ConnectionFactory: javax.naming.LinkRef
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :UserTransactionSessionFactory: $Proxy27
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :UIL2XAConnectionFactory: javax.naming.LinkRef
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :QueueConnectionFactory: org.jboss.naming.LinkRefPair
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :topic: org.jnp.interfaces.NamingContext
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :UserLoginBean: org.jnp.interfaces.NamingContext
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :queue: org.jnp.interfaces.NamingContext
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :ConnectionFactory: org.jboss.mq.SpyConnectionFactory
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :UserTransaction: org.jboss.tm.usertx.client.ClientUserTransaction
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :jmx: org.jnp.interfaces.NamingContext
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :UILXAConnectionFactory: javax.naming.LinkRef
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:55) - Bind Objects :UILConnectionFactory: javax.naming.LinkRef
                    27/Mar/2006 22:15:52 INFO [http-9090-Processor25] (com.amlaki.cbmega.web.settings.Remote:57) - the name of the remote object to look up is :UserLoginBean/remote
                    


                    what is the problem ???

                    sony :(






                    • 7. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
                      sony3002

                      hello

                      do i miss any jar file in my client web application ???

                      i have added all the jar files that are in Jboss\client

                      to my web applications WEB-INF\lib folder....

                      is any more i need ???

                      these are the jar files which are in my WEB-INF\lib folder

                      activation.jar
                      antlr.jar
                      avalon-framework.jar
                      axis-ws4ee.jar
                      commons-beanutils.jar
                      commons-digester.jar
                      commons-discovery.jar
                      commons-fileupload.jar
                      commons-httpclient.jar
                      commons-validator.jar
                      concurrent.jar
                      EJBModule.jar
                      getopt.jar
                      jacorb.jar
                      jakarta-oro.jar
                      jboss-aop-jdk50-client.jar
                      jboss-client.jar
                      jboss-common-client.jar
                      jboss-deployment.jar
                      jboss-iiop-client.jar
                      jboss-j2ee.jar
                      jboss-jaxrpc.jar
                      jboss-jsr77-client.jar
                      jboss-remoting.jar
                      jboss-saaj.jar
                      jboss-serialization.jar
                      jboss-srp-client.jar
                      jboss-system-client.jar
                      jboss-transaction-client.jar
                      jboss-ws4ee-client.jar
                      jboss-xml-binding.jar
                      jbossall-client.jar
                      jbosscx-client.jar
                      jbossha-client.jar
                      jbossjmx-ant.jar
                      jbossmq-client.jar
                      jbosssx-client.jar
                      jmx-client.jar
                      jmx-invoker-adaptor-client.jar
                      jnp-client.jar
                      juddisaaj.jar
                      log4j-1.2.13.jar
                      logkit.jar
                      mail.jar
                      namespace.jar
                      ojdbc14.jar
                      orai18n.jar
                      scout.jar
                      struts.jar
                      wsdl4j.jar
                      


                      is any more needed ???


                      • 8. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
                        sony3002

                        hello asack,

                        after adding "/remote" to my look up,
                        i got several class not found Exception, and i did manage all it
                        by bringing all that jar files visible to my web application

                        and then i successfully connected from stand alone tomcat to Jboss :) :) :)

                        now i have a question

                        i thought that, all the jar files in the D:\jboss-4.0.4RC1\client
                        was enough for the client application to connect to remote server

                        but i had to import
                        D:\jboss-4.0.4RC1\server\default\deploy\ejb3.deployer\jboss-ejb3.jar
                        and
                        D:\jboss-4.0.4RC1\server\default\deploy\jboss-aop-jdk50.deployer\jboss-aspect-library-jdk50.jar
                        for my web app that is running in standalone tomcat 5.5.9
                        to connect to remote Jboss EJB server

                        and also i saw javax.servlet.jar in D:\jboss-4.0.4RC1\client
                        and i think it is the implementation of servlet api.
                        so that must not not imported in to my web apps WEB-INF\lib folder
                        am i correct ???

                        if yes i am eager to know what all are the jar files that are needed for
                        a stand alone tomcat HTTP WEB server to connect to Jboss Application server



                        My Env. are

                        Java 1.5 Update 6
                        Jboss 4.0.4 RC1
                        Tomcat 5.5.9
                        Struts 1.2.7
                        Netbeans 5.5 Preview

                        than you so much for your help

                        Sony George

                        • 9. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC

                          Hope following snippet from my build.xml is helpful. I have an application written using EJB3 & I am using a client to connect to it remotely. Following snippet is how I run the client from ant. All the jars I need are listed there.


                          <target name="run-client" depends="jar">
                           <path id="client.classpath">
                           <fileset dir="${classes.dir}">
                           <include name="${ant.project.name}.jar" />
                           </fileset>
                           <fileset dir="${jboss.dir}/server/all/lib">
                           <include name="jnpserver.jar" />
                           <include name="jboss-j2ee.jar" />
                           <include name="jboss-remoting.jar" />
                           <include name="jbosssx.jar" />
                           <include name="jboss-transaction.jar" />
                           <include name="hibernate3.jar" />
                           <include name="antlr-2.7.6.jar" />
                          
                           </fileset>
                           <fileset dir="${jboss.dir}/lib">
                           <include name="jboss-common.jar" />
                           <include name="concurrent.jar" />
                           </fileset>
                           <fileset dir="${jboss.dir}/server/all/deploy/ejb3.deployer">
                           <include name="jboss-ejb3.jar" />
                           </fileset>
                           <fileset dir="${jboss.dir}/server/all/deploy/jboss-aop-jdk50.deployer">
                           <include name="jboss-aop-jdk50.jar" />
                           <include name="jboss-aspect-library-jdk50.jar" />
                           </fileset>
                          
                           </path>
                           <java classname="test.de.laliluna.library.FirstEJB3TutorialClient">
                           <classpath refid="client.classpath"/>
                           </java>
                           </target>
                          


                          • 10. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC

                            Hope following snippet from my build.xml is helpful. I have an application written using EJB3 & I am using a client to connect to it remotely. Following snippet is how I run the client from ant. All the jars I need are listed there.


                            <target name="run-client" depends="jar">
                             <path id="client.classpath">
                             <fileset dir="${classes.dir}">
                             <include name="${ant.project.name}.jar" />
                             </fileset>
                             <fileset dir="${jboss.dir}/server/all/lib">
                             <include name="jnpserver.jar" />
                             <include name="jboss-j2ee.jar" />
                             <include name="jboss-remoting.jar" />
                             <include name="jbosssx.jar" />
                             <include name="jboss-transaction.jar" />
                             <include name="hibernate3.jar" />
                             <include name="antlr-2.7.6.jar" />
                            
                             </fileset>
                             <fileset dir="${jboss.dir}/lib">
                             <include name="jboss-common.jar" />
                             <include name="concurrent.jar" />
                             </fileset>
                             <fileset dir="${jboss.dir}/server/all/deploy/ejb3.deployer">
                             <include name="jboss-ejb3.jar" />
                             </fileset>
                             <fileset dir="${jboss.dir}/server/all/deploy/jboss-aop-jdk50.deployer">
                             <include name="jboss-aop-jdk50.jar" />
                             <include name="jboss-aspect-library-jdk50.jar" />
                             </fileset>
                            
                             </path>
                             <java classname="test.de.laliluna.library.FirstEJB3TutorialClient">
                             <classpath refid="client.classpath"/>
                             </java>
                             </target>
                            


                            • 11. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC

                              Hope following snippet from my build.xml is helpful. I have an application written using EJB3 & I am using a client to connect to it remotely. Following snippet is how I run the client from ant. All the jars I need are listed there.


                              <target name="run-client" depends="jar">
                               <path id="client.classpath">
                               <fileset dir="${classes.dir}">
                               <include name="${ant.project.name}.jar" />
                               </fileset>
                               <fileset dir="${jboss.dir}/server/all/lib">
                               <include name="jnpserver.jar" />
                               <include name="jboss-j2ee.jar" />
                               <include name="jboss-remoting.jar" />
                               <include name="jbosssx.jar" />
                               <include name="jboss-transaction.jar" />
                               <include name="hibernate3.jar" />
                               <include name="antlr-2.7.6.jar" />
                              
                               </fileset>
                               <fileset dir="${jboss.dir}/lib">
                               <include name="jboss-common.jar" />
                               <include name="concurrent.jar" />
                               </fileset>
                               <fileset dir="${jboss.dir}/server/all/deploy/ejb3.deployer">
                               <include name="jboss-ejb3.jar" />
                               </fileset>
                               <fileset dir="${jboss.dir}/server/all/deploy/jboss-aop-jdk50.deployer">
                               <include name="jboss-aop-jdk50.jar" />
                               <include name="jboss-aspect-library-jdk50.jar" />
                               </fileset>
                              
                               </path>
                               <java classname="xxx.xxxx.xxx.EJB3Client">
                               <classpath refid="client.classpath"/>
                               </java>
                               </target>
                              


                              • 12. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
                                putzeudel

                                I have a similar problem and can't find a solution either. I looked through the ejb3.0 tutorials and the documentation but did not find a hint. I try to access a bean from a war but get the classcastexception no matter what i do (i put everything into alles.ear but get the same result).

                                Does this listing look correct?


                                RaumklimaWorkflow
                                org.jnp.interfaces.NamingContext
                                
                                local
                                $Proxy288
                                
                                
                                remote
                                $Proxy286


                                This code fails:
                                ctx = new InitialContext();
                                 Object obj = ctx.lookup("alles/RaumklimaWorkflow/remote");
                                 raumklima = (RaumklimaWorkflow)obj;


                                I'd really like to fix this error on my own but i simply don't no where else to search ...

                                • 13. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
                                  jaikiran

                                  Please post more details including the exception stacktrace, the version of JBoss and Java you are using and also where are you doing this lookup from? Is it a standalone client or is it some servlet/jsp?

                                  • 14. Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
                                    putzeudel

                                    I use the 2.7 Portal Bundle (4.2.3.GA) with java 1.5.0_17.
                                    I got the listing via the method suggested in this thread ("service=JNDIView").
                                    What i did is creating a stateless ejb via the eclipse wizard and trying to use it in a portlet (i am trying to get a feeling for jboss, never used it before). I aggregated my WAR and JAR in an EAR ("alles.ear") but that didn't change the situation. I do get something via the lookup, but it doesn't seem correct, hence the ClassCastException.


                                    Here is the stacktrace:

                                    Cause: java.lang.ClassCastException: $Proxy288
                                    Message: $Proxy288
                                    StackTrace:
                                    
                                    java.lang.ClassCastException: $Proxy288
                                     at org.hohenstein.homeapp.portlets.Raumklima.doView(Raumklima.java:31)
                                     at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
                                     at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
                                     at org.hohenstein.homeapp.portlets.Raumklima.render(Raumklima.java:63)
                                     at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:568)
                                     at org.jboss.portal.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159)
                                     at org.jboss.portal.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80)
                                     at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:505)
                                     at org.jboss.portal.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:97)
                                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext(TransactionInterceptor$invokeNotSupported_N6922078035659651697.java)
                                     at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
                                     at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:112)
                                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext(TransactionInterceptor$invokeNotSupported_N6922078035659651697.java)
                                     at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
                                     at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:102)
                                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_N6922078035659651697.invokeNext(TransactionInterceptor$invokeNotSupported_N6922078035659651697.java)
                                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
                                     at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:58)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:49)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.aspects.portlet.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:196)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.aspects.portlet.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.core.aspects.portlet.SignOutInterceptor.invoke(SignOutInterceptor.java:43)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.core.aspects.portlet.AjaxInterceptor.invoke(AjaxInterceptor.java:49)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.core.aspects.portlet.BackwardCompatibilityInterceptor.invoke(BackwardCompatibilityInterceptor.java:46)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:82)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:48)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49)
                                     at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123)
                                     at org.jboss.portal.web.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:74)
                                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                                     at java.lang.reflect.Method.invoke(Unknown Source)
                                     at org.jboss.portal.web.command.CommandServlet.doGet(CommandServlet.java:130)
                                     at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
                                     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
                                     at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
                                     at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
                                     at org.jboss.portal.web.command.CommandServlet.include(CommandServlet.java:79)
                                     at org.jboss.portal.web.command.CommandDispatcher.include(CommandDispatcher.java:50)
                                     at org.jboss.portal.web.jboss.JBossWebContext.include(JBossWebContext.java:66)
                                     at org.jboss.portal.web.impl.DefaultServletContainer.include(DefaultServletContainer.java:190)
                                     at org.jboss.portal.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69)
                                     at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:75)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:116)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:219)
                                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker.org$jboss$portal$core$impl$portlet$state$ProducerPortletInvoker$invoke$aop(ProducerPortletInvoker.java:53)
                                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
                                     at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
                                     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
                                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
                                     at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
                                     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
                                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker$invoke_N8654503705355129869.invokeNext(ProducerPortletInvoker$invoke_N8654503705355129869.java)
                                     at org.jboss.portal.core.impl.portlet.state.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java)
                                     at org.jboss.portal.portlet.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:145)
                                     at org.jboss.portal.portlet.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:149)
                                     at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$1.invoke(InstanceContainerImpl.java:93)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.management.PortletContainerManagementInterceptorImpl.invoke(PortletContainerManagementInterceptorImpl.java:59)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:93)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:93)
                                     at org.jboss.portal.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:82)
                                     at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:162)
                                     at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl.org$jboss$portal$core$impl$model$instance$InstanceContainerImpl$invoke$aop(InstanceContainerImpl.java:418)
                                     at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$invoke_N8654503705355129869.invokeNext(InstanceContainerImpl$invoke_N8654503705355129869.java)
                                     at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
                                     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
                                     at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$invoke_N8654503705355129869.invokeNext(InstanceContainerImpl$invoke_N8654503705355129869.java)
                                     at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
                                     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
                                     at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl$invoke_N8654503705355129869.invokeNext(InstanceContainerImpl$invoke_N8654503705355129869.java)
                                     at org.jboss.portal.core.impl.model.instance.InstanceContainerImpl.invoke(InstanceContainerImpl.java)
                                     at org.jboss.portal.core.impl.model.instance.AbstractInstance.invoke(AbstractInstance.java:231)
                                     at org.jboss.portal.core.impl.model.content.InternalContentProvider.renderWindow(InternalContentProvider.java:345)
                                     at org.jboss.portal.core.model.portal.command.render.RenderWindowCommand.execute(RenderWindowCommand.java:100)
                                     at org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand.java:68)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                                     at org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:124)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:134)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:78)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.BackwardCompatibilityInterceptor.invoke(BackwardCompatibilityInterceptor.java:48)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.ControlInterceptor.invoke(ControlInterceptor.java:56)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.NavigationalStateInterceptor.invoke(NavigationalStateInterceptor.java:42)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:55)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.ResourceAcquisitionInterceptor.invoke(ResourceAcquisitionInterceptor.java:50)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                                     at org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:134)
                                     at org.jboss.portal.core.model.portal.command.render.RenderWindowCommand.render(RenderWindowCommand.java:80)
                                     at org.jboss.portal.core.model.portal.command.render.RenderPageCommand.execute(RenderPageCommand.java:222)
                                     at org.jboss.portal.core.controller.ControllerCommand$1.invoke(ControllerCommand.java:68)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                                     at org.jboss.portal.core.aspects.controller.node.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:124)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:134)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:78)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.BackwardCompatibilityInterceptor.invoke(BackwardCompatibilityInterceptor.java:48)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.ControlInterceptor.invoke(ControlInterceptor.java:56)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.NavigationalStateInterceptor.invoke(NavigationalStateInterceptor.java:42)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.controller.ajax.AjaxInterceptor.invoke(AjaxInterceptor.java:55)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.controller.ResourceAcquisitionInterceptor.invoke(ResourceAcquisitionInterceptor.java:50)
                                     at org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                                     at org.jboss.portal.core.controller.ControllerContext.execute(ControllerContext.java:134)
                                     at org.jboss.portal.core.model.portal.PortalObjectResponseHandler.processCommandResponse(PortalObjectResponseHandler.java:81)
                                     at org.jboss.portal.core.controller.classic.ClassicResponseHandler.processHandlers(ClassicResponseHandler.java:79)
                                     at org.jboss.portal.core.controller.classic.ClassicResponseHandler.processCommandResponse(ClassicResponseHandler.java:53)
                                     at org.jboss.portal.core.controller.handler.ResponseHandlerSelector.processCommandResponse(ResponseHandlerSelector.java:70)
                                     at org.jboss.portal.core.controller.Controller.processCommandResponse(Controller.java:315)
                                     at org.jboss.portal.core.controller.Controller.processCommand(Controller.java:303)
                                     at org.jboss.portal.core.controller.Controller.handle(Controller.java:261)
                                     at org.jboss.portal.server.RequestControllerDispatcher.invoke(RequestControllerDispatcher.java:51)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
                                     at org.jboss.portal.core.cms.aspect.IdentityBindingInterceptor.invoke(IdentityBindingInterceptor.java:47)
                                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:68)
                                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.server.PortalContextPathInterceptor.invoke(PortalContextPathInterceptor.java:45)
                                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:96)
                                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:193)
                                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.server.aspects.server.SignOutInterceptor.invoke(SignOutInterceptor.java:98)
                                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.impl.api.user.UserEventBridgeTriggerInterceptor.invoke(UserEventBridgeTriggerInterceptor.java:65)
                                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.server.IdentityCacheInterceptor.invoke(IdentityCacheInterceptor.java:68)
                                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
                                     at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
                                     at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                                     at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:253)
                                     at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
                                     at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                                     at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262)
                                     at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
                                     at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
                                     at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.server.aspects.LockInterceptor$InternalLock.invoke(LockInterceptor.java:69)
                                     at org.jboss.portal.server.aspects.LockInterceptor.invoke(LockInterceptor.java:130)
                                     at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
                                     at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:157)
                                     at org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:252)
                                     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                                     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                                     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                                     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
                                     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                                     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                                     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                                     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                                     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                                     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                                     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                                     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                                     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                                     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                                     at java.lang.Thread.run(Unknown Source)
                                    


                                    1 2 Previous Next