9 Replies Latest reply on May 17, 2009 7:06 PM by vphagura

    distributed application

      I am deploying an EAR on JBoss 5 on one (Windows) machine 172.12.4.100 and a WAR on another machine(Linux) with Jboss 4.2.3. The EAR and the WAR names are:

      - reservation.ear
      - reservation.war

      Also, I have a jndi.properties in the WEB-INF/classes and looks like:

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      java.naming.provider.url=192.168.5.105:1099


      And, on the Jboss 4.2.3 ../server/default/conf the jndi.properties looks like this:

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      java.naming.provider.url=localhost\:1099

      Also, I have added the Jboss 5.0 machine IP in the hosts file of the Jboss 4.2.3.

      I have started both JBoss with -b 0.0.0.0 and also tried with binding specific addresses.

      In my WAR java files I try to access Remote EJB3 beans by the following names:

      reservation//remote

      But I get an Exception:

      javax.naming.NameNotFoundException: reservation not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)

      at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:267)


      Any ideas? PLease help!

        • 1. Re: distributed application

          I got passed this problem. But now I get this error:

          java.lang.ClassCastException: javax.naming.Reference cannot be cast to com.vsp.reservation.ejb.accessor.FlightReservationAccessorRemote

          The problem is that my WAR is deployed on jboss 4.2.3 and my EJBs are on JBoss 5. I'm wondering if this exception is because of this difference. If it is, is there a way around this.

          Please help!!!

          • 2. Re: distributed application
            peterj

            Are you still using the name reservation/remote? My first guess is that you are looking up "reservation" and not "reservation/remote".

            Have you used JNDIView to look at the JNDI tree on the server hosting the EJB? See http://www.jboss.org/community/wiki/DisplayTheJNDITreeWithTheJMXConsole

            • 3. Re: distributed application

              Thx for your response. Yes I'm using 'reservation/FlightReservationAccessorBean/remote'. Also, I did a little test.

              I made a standalone client which tries to access my EJBs, on the jboss 5.0.1, from a remote machine. I packaged the exact jars from Jboss 4.2.3 client dir and put it in the classpath of the standalone client. I get the exact error as before:

              java.lang.ClassCastException: javax.naming.Reference cannot be cast to com.vsp.reservation.ejb.accessor.FlightReservationAccessorRemote

              Then, I remove these jars and now package the jars from Jboss 5.0.1 client dir and put it in the classpath of the client. It works great!!

              So, I think that there is some incompatibilty in terms of different versions of JBoss, as my WAR is on jboss 4.2.3 and my EAR is on jboss 5.0.1.

              Can someone please let me know a way to go around this incompatibilty??

              • 4. Re: distributed application
                peterj

                Try packaging the 5.0.1 client JARs into your WAR file, and adding a scoping repository to your jboss-web.xml file. Something like this (replace xxx and yyy with anything you want:

                <jboss-web>
                 <class-loading java2ClassLoadingCompliance="false">
                 <loader-repository>xxx:loader=yyy</loader-repository>
                 </class-loading>
                </jboss-web>


                You can search for "class scoping" in the wiki for more info.

                • 5. Re: distributed application

                  Thx for the suggestion. But unfortunately it did not work. So here is what I did, as suggested:

                  1. jar'ed up client jars from Jboss 5.0.1 into a file called 'client.jar'
                  2. Put the client.jar from above into reservation.war under WEB-INF/lib
                  3.put the following jboss-web.xml in reservation.war under WEB-INF

                  <jboss-web>
                   <class-loading java2ClassLoadingCompliance="false">
                   <loader-repository>com.vsp:loader=reservation.war</loader-repository>
                   </class-loading>
                  </jboss-web>


                  4. deployed the WAR on jboss-4.2.3

                  I still get the error:

                  java.lang.ClassCastException: javax.naming.Reference cannot be cast to com.vsp.reservation.ejb.accessor.FlightReservationAccessorRemote

                  Any thing I'm missing?



                  • 6. Re: distributed application
                    peterj

                    Post the code that is getting the exception. Include the code doing the lookup. If the name is passed as a variable, also post the code that sets the variable.

                    Post the result from calling the list method on the JNDIView mbean.

                    • 7. Re: distributed application

                      Code where the exception happens is on the 'return line where the cast is:

                      public FlightReservationAccessorRemote getFlightReservationAccessorRemote() throws NamingException
                      {
                       return (FlightReservationAccessorRemote)fetchRemoteObject( "flightReservationAccessorRemote", "FlightReservationAccessorBean" );
                      }


                      Lookup is done here:

                      private Object fetchRemoteObject(String key, String clsName ) throws NamingException
                       {
                       Object ret = null;
                       if( cache.containsKey( key ))
                       {
                       ret = cache.get( key );
                       log.info( "Got it from CACHE..." );
                       }
                       else
                       {
                       if( ctx != null )
                       {
                       log.info(clsName );
                       ret = ctx.lookup( "reservation/" + clsName + "/remote");
                       if( ret != null )
                       {
                       cache.put( key, ret );
                       }
                       }
                       }
                       return ret;
                       }



                      Here is the full JNDIView listing from 'Global JNDI Namespace'

                      +- UserTransactionSessionFactory (proxy: $Proxy103 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
                      +- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
                      +- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
                      +- XAConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
                      +- topic (class: org.jnp.interfaces.NamingContext)
                      +- reservation (class: org.jnp.interfaces.NamingContext)
                      | +- FlightReservationAccessorBean (class: org.jnp.interfaces.NamingContext)
                      | | +- local (class: Proxy for: com.vsp.reservation.ejb.accessor.FlightReservationAccessor)
                      | | +- local-com.vsp.reservation.ejb.accessor.FlightReservationAccessor (class: Proxy for: com.vsp.reservation.ejb.accessor.FlightReservationAccessor)
                      | | +- remote (class: Proxy for: com.vsp.reservation.ejb.accessor.FlightReservationAccessorRemote)
                      | | +- remote-com.vsp.reservation.ejb.accessor.FlightReservationAccessorRemote (class: Proxy for: com.vsp.reservation.ejb.accessor.FlightReservationAccessorRemote)
                      | +- ReservationAccessorBean (class: org.jnp.interfaces.NamingContext)
                      | | +- local (class: Proxy for: com.vsp.reservation.ejb.accessor.ReservationAccessor)
                      | | +- remote-com.vsp.reservation.ejb.accessor.ReservationAccessorRemote (class: Proxy for: com.vsp.reservation.ejb.accessor.ReservationAccessorRemote)
                      | | +- remote (class: Proxy for: com.vsp.reservation.ejb.accessor.ReservationAccessorRemote)
                      | | +- local-com.vsp.reservation.ejb.accessor.ReservationAccessor (class: Proxy for: com.vsp.reservation.ejb.accessor.ReservationAccessor)
                      | +- CarReservationAccessorBean (class: org.jnp.interfaces.NamingContext)
                      | | +- local (class: Proxy for: com.vsp.reservation.ejb.accessor.CarReservationAccessor)
                      | | +- local-com.vsp.reservation.ejb.accessor.CarReservationAccessor (class: Proxy for: com.vsp.reservation.ejb.accessor.CarReservationAccessor)
                      | | +- remote-com.vsp.reservation.ejb.accessor.CarReservationAccessorRemote (class: Proxy for: com.vsp.reservation.ejb.accessor.CarReservationAccessorRemote)
                      | | +- remote (class: Proxy for: com.vsp.reservation.ejb.accessor.CarReservationAccessorRemote)
                      | +- HotelReservationAccessorBean (class: org.jnp.interfaces.NamingContext)
                      | | +- remote (class: Proxy for: com.vsp.reservation.ejb.accessor.HotelReservationAccessorRemote)
                      | | +- remote-com.vsp.reservation.ejb.accessor.HotelReservationAccessorRemote (class: Proxy for: com.vsp.reservation.ejb.accessor.HotelReservationAccessorRemote)
                      | +- CustomerAccessorBean (class: org.jnp.interfaces.NamingContext)
                      | | +- local (class: Proxy for: com.vsp.reservation.ejb.accessor.CustomerAccessor)
                      | | +- local-com.vsp.reservation.ejb.accessor.CustomerAccessor (class: Proxy for: com.vsp.reservation.ejb.accessor.CustomerAccessor)
                      | | +- remote-com.vsp.reservation.ejb.accessor.CustomerAccessorRemote (class: Proxy for: com.vsp.reservation.ejb.accessor.CustomerAccessorRemote)
                      | | +- remote (class: Proxy for: com.vsp.reservation.ejb.accessor.CustomerAccessorRemote)
                      +- persistence.unit:unitName=reservation.ear (class: org.jnp.interfaces.NamingContext)
                      | +- reservation.jar#reservation(class: org.hibernate.impl.SessionFactoryImpl)
                      +- ClusteredConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
                      +- ProfileService (class: AOPProxy$0)
                      +- queue (class: org.jnp.interfaces.NamingContext)
                      | +- DLQ (class: org.jboss.jms.destination.JBossQueue)
                      | +- ExpiryQueue (class: org.jboss.jms.destination.JBossQueue)
                      +- ClusteredXAConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
                      +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
                      +- ConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory)
                      +- jmx (class: org.jnp.interfaces.NamingContext)
                      | +- invoker (class: org.jnp.interfaces.NamingContext)
                      | | +- RMIAdaptor (proxy: $Proxy98 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
                      | +- rmi (class: org.jnp.interfaces.NamingContext)
                      | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
                      +- TomcatAuthenticators (class: java.util.Properties)
                      +- console (class: org.jnp.interfaces.NamingContext)
                      | +- PluginManager (proxy: $Proxy100 implements org.jboss.console.manager.PluginManagerMBean (no security manager: RMI class loader disabled))


                      Here is the Bean and the Remote interface, in case:


                      @Stateless
                      public class FlightReservationAccessorBean implements FlightReservationAccessor, FlightReservationAccessorRemote
                      {
                       @PersistenceContext( unitName="reservation" )
                       EntityManager eMgr;
                      
                       public Integer createFlightResevation( Flight flight ) throws Exception
                       {
                       eMgr.persist( flight );
                       return flight.getFlightId();
                       }
                      
                       public void deleteFlightResevation( Flight flight ) throws Exception
                       {
                       eMgr.remove( flight );
                       }
                      
                       @TransactionAttribute(TransactionAttributeType.NEVER)
                       public Flight findFlightById( Integer id ) throws Exception
                       {
                       return eMgr.find( Flight.class, id );
                       }
                      
                       public void updateFlightResevation( Flight flight ) throws Exception
                       {
                       eMgr.merge( flight );
                       }
                      
                      }


                      @Remote
                      public interface FlightReservationAccessorRemote extends FlightReservation
                      {
                      }


                      • 8. Re: distributed application
                        peterj

                        I cannot see anything obviously wrong, especially since the code works in a standalone client.

                        In fetchRemoteObject, after the lookup, cast the object to javax.naming.Reference (should work because the exception said that the object is of that type), and then use a for loop to examine the results from calling Reference.getAll(), and also log the value of Reference.getClassName(). Maybe that will give a clue as to what is going on.

                        Another thing to try is add -vebose:class to the JAVA_OPTS in the run script. This will print out each class loaded and its JAR file. It would be interesting so see from where the FlightReservationAccessorRemote interface gets loaded.

                        • 9. Re: distributed application

                          Please note that I changed my packaqe name to 'reservator' instaed of 'reservation', as I wanted to try this clean in a new project.

                          Here is the changed code for 'fetchRemoteObject'

                          private Reference fetchRemoteObject(String key, String clsName ) throws NamingException
                           {
                           Reference ret = null;
                           if( cache.containsKey( key ))
                           {
                           ret = (Reference) cache.get( key );
                           log.info( "Got it from CACHE..." );
                           }
                           else
                           {
                           if( ctx != null )
                           {
                           log.info(clsName );
                           ret = (Reference) ctx.lookup( "reservator/" + clsName + "/remote");
                           if( ret != null )
                           {
                           cache.put( key, ret );
                           log.info("CLASSNAME: " + ret.getClassName());
                           Enumeration<RefAddr> en = ret.getAll();
                           while( en.hasMoreElements() )
                           {
                           RefAddr addr = (RefAddr) en.nextElement();
                           Object obj = addr.getContent();
                           log.info("CONTENT: " + obj.toString() );
                           }
                           }
                           }
                           }
                           return ret;
                           }


                          I also put the -verbose:class as suggested and here is the output:

                          [Loaded sun.reflect.GeneratedConstructorAccessor84 from __JVM_DefineClass__]
                          [Loaded java.util.HashMap$1 from /usr/share/jdk1.6.0_10/jre/lib/rt.jar]
                          [Loaded org.apache.coyote.http11.Http11Processor from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.InputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.InputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.OutputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.OutputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.MessageBytes$MessageBytesFactory from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.http.MimeHeaders from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.http.MimeHeaderField from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.UDecoder from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.http.Cookies from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.http.ServerCookie from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.collections.MultiMap from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.http.Parameters from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.collections.MultiMap$Field from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.InternalInputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.Response from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.ByteChunk$ByteOutputChannel from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.InternalOutputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.filters.IdentityInputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.filters.IdentityOutputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.filters.ChunkedInputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.filters.ChunkedOutputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.filters.VoidInputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.filters.VoidOutputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.filters.BufferedInputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.filters.GzipOutputFilter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.filters.GzipOutputFilter$FakeOutputStream from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.HexUtils from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.ActionCode from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.Ascii from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.http11.Constants from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.StringCache$ByteEntry from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.StringCache$CharEntry from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.ByteChunk$ByteInputChannel from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.CharChunk$CharInputChannel from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.CharChunk$CharOutputChannel from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.catalina.connector.InputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.catalina.util.ParameterMap from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.catalina.util.StringParser from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.net.URL from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.UEncoder from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.catalina.connector.OutputBuffer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.jboss.resource.connectionmanager.CachedConnectionManager$KeyConnectionAssociation from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jboss-jca.jar]
                          [Loaded org.apache.catalina.connector.RequestFacade from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.catalina.CometProcessor from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.catalina.core.ApplicationFilterFactory from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.catalina.CometFilterChain from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.catalina.core.ApplicationFilterChain from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.catalina.connector.ResponseFacade from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.servlet.JspServletWrapper from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.JspCompilationContext from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.servlet.JasperLoader from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Compiler from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.JDTCompiler from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.eclipse.jdt.internal.compiler.env.INameEnvironment from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62613jasper-jdt.jar]
                          [Loaded org.eclipse.jdt.internal.compiler.ICompilerRequestor from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62613jasper-jdt.jar]
                          [Loaded org.eclipse.jdt.internal.compiler.IProblemFactory from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62613jasper-jdt.jar]
                          [Loaded org.apache.jasper.compiler.JspUtil from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded javax.servlet.jsp.el.ExpressionEvaluator from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
                          [Loaded org.apache.jasper.el.ExpressionEvaluatorImpl from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded javax.el.FunctionMapper from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/el-api.jar]
                          [Loaded org.apache.jasper.el.FunctionMapperImpl from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded javax.servlet.jsp.el.Expression from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
                          [Loaded org.apache.jasper.el.ExpressionImpl from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded javax.servlet.jsp.el.ELException from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
                          [Loaded javax.servlet.jsp.el.ELParseException from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
                          [Loaded org.apache.jasper.runtime.JspSourceDependent from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded javax.servlet.jsp.JspPage from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
                          [Loaded javax.servlet.jsp.HttpJspPage from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
                          [Loaded org.apache.jasper.runtime.HttpJspBase from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jsp.jsp.index2_jsp from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/work/jboss.web/localhost/reservator/]
                          [Loaded com.vsp.reservator.web.delegate.FlightResServiceInvoker from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/classes/]
                          [Loaded org.apache.jasper.runtime.JspFactoryImpl$PageContextPool from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded javax.servlet.jsp.el.FunctionMapper from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
                          [Loaded javax.servlet.jsp.JspWriter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
                          [Loaded org.apache.jasper.runtime.JspWriterImpl from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded javax.servlet.jsp.tagext.BodyContent from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
                          [Loaded org.apache.jasper.runtime.BodyContentImpl from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded javax.servlet.jsp.el.VariableResolver from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
                          [Loaded javax.servlet.jsp.JspException from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
                          [Loaded javax.servlet.http.HttpSession from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/servlet-api.jar]
                          [Loaded org.apache.catalina.session.StandardSession from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded javax.servlet.http.HttpSessionContext from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/servlet-api.jar]
                          [Loaded org.apache.catalina.session.StandardSessionFacade from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.DateTool from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.security.SecurityUtil from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded com.vsp.reservator.ejb.dmo.Customer from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/lib/common.jar]
                          [Loaded com.vsp.reservator.ejb.dmo.Reservation from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/lib/common.jar]
                          [Loaded com.vsp.reservator.ejb.dmo.Flight from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/lib/common.jar]
                          [Loaded com.vsp.reservator.util.ServiceLocator from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/lib/common.jar]
                          15:49:40,096 INFO [STDOUT] PROPS: {java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.provider.url=192.168.5.105:1099, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                          15:49:40,097 INFO [ServiceLocator] FlightReservationAccessorBean
                          15:49:40,372 INFO [ServiceLocator] CLASSNAME: Proxy for: com.vsp.reservator.ejb.accessor.FlightReservationAccessorRemote
                          15:49:40,372 INFO [ServiceLocator] CONTENT: ProxyFactory/FlightReservationAccessorBean/reservator/FlightReservationAccessorBean/remote
                          15:49:40,374 INFO [ServiceLocator] CONTENT: jboss.j2ee:ear=reservator.ear,jar=reservator.jar,name=FlightReservationAccessorBean,service=EJB3
                          15:49:40,374 INFO [ServiceLocator] CONTENT: false
                          15:49:40,374 INFO [ServiceLocator] CONTENT: com.vsp.reservator.ejb.accessor.FlightReservationAccessorRemote
                          15:49:40,374 INFO [ServiceLocator] CONTENT: socket://MTVL04L3M4149:3873/?
                          [Loaded com.vsp.reservator.ejb.accessor.FlightReservation from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/lib/common.jar]

                          [Loaded com.vsp.reservator.ejb.accessor.FlightReservationAccessorRemote from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62717reservator-exp.war/WEB-INF/lib/common.jar]
                          [Loaded javax.servlet.jsp.SkipPageException from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/lib/jsp-api.jar]
                          [Loaded org.apache.jasper.compiler.ErrorDispatcher from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.ErrorDispatcher$ErrorVisitor from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.ErrorHandler from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.TagConstants from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$AttributeGenerator from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$JspOutput from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$TemplateText from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$DoBodyAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$InvokeAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$JspBody from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$NamedAttribute from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$JspText from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$JspElement from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$UninterpretedTag from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$CustomTag from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$PlugIn from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$UseBean from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$FallBackAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$ParamsAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$ParamAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$SetProperty from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$GetProperty from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$ForwardAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$IncludeAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$ELExpression from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$ScriptingElement from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$Scriptlet from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$Expression from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$Declaration from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$Comment from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$VariableDirective from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$AttributeDirective from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$TaglibDirective from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$IncludeDirective from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$TagDirective from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$PageDirective from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$JspRoot from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$Root from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.jasper.compiler.Node$Nodes from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          15:49:40,532 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
                          java.lang.ClassCastException: javax.naming.Reference cannot be cast to com.vsp.reservator.ejb.accessor.FlightReservationAccessorRemote
                          at com.vsp.reservator.util.ServiceLocator.getFlightReservationAccessorRemote(ServiceLocator.java:116)
                          at com.vsp.reservator.web.delegate.FlightResServiceInvoker.processReservation(FlightResServiceInvoker.java:64)
                          at org.apache.jsp.jsp.index2_jsp._jspService(index2_jsp.java:70)
                          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
                          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
                          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
                          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
                          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.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(Thread.java:619)
                          [Loaded org.jboss.web.tomcat.security.SecurityAssociationActions$ClearAction from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62615jbossweb-service.jar]
                          [Loaded org.apache.tomcat.util.buf.C2BConverter from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.IntermediateOutputStream from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.buf.WriteConvertor from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.coyote.Constants from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.http.FastHttpDateFormat from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]
                          [Loaded org.apache.tomcat.util.http.HttpMessages from file:/home/vphagura/jboss-4.2.3.GA/server/reservator/tmp/deploy/tmp62616jbossweb.jar]