4 Replies Latest reply on Sep 20, 2010 6:14 AM by StevePamp

    Null MessageBroker in lcds samples?

    StevePamp

      Forgive me but I'm having issues getting the LCDS samples to run under Tomcat 6.0.  I've deployed all 3 war files included in the download (ds-console.war, lcds.war, and lcds-samples.war) and none of the sample apps seem to work.  It looks like the result of the call to MessageBroker.getMessageBroker(null); is always null, causing null pointer exceptions.  I've been able to install and run the BlazeDS samples without error.  Is there something special I need to do to get the LCDS ones running?

        • 1. Re: Null MessageBroker in lcds samples?
          chandra100100 Level 1

          Hi !

           

          If you could send the server log,i can help you what's happening .

          • 2. Re: Null MessageBroker in lcds samples?
            StevePamp Level 1

            Hi Chandra - I appreciate your help.  The BlazeDS samples worked without any problems for me, but for some reason their LCDS equivalents aren't working.   Basically what I've done is download and extract lcds, then:

            1.  Start the sampledb in the lcds/sampledb directory

            2.  Start Tomcat

            3.  Deploy the 3 war files included in the LCDS distro

            4.  Navigate to http://localhost:8082/lcds-samples/testdrive.htm and attempt to run the "startfeed.jsp" in the data push example.  This results in an immediate NullPointerException on line 56 of Feed.java because msgBroker is null:

                 msgBroker.routeMessageToService(msg, null);

             

            I looked in the server logs and didn't see anything that gave me any clues.  There are a bunch of Hibernate exceptions that are being thrown when I deploy the wars, but I didn't think that would have anything to do with it...

             

            I appreciate any help you can give

            • 3. Re: Null MessageBroker in lcds samples?
              Rohit . Kumar Adobe Employee

              Hi Steve,

               

              Looking at some of the errors it seems you are missing jta.jar. Can you put the logs in a ftp location I can access?

               

              I suggest you first try using the Tomcat turnkey installation that is delivered with the LCDS installation and see if it gets you working. If yes, then I suggest you copy the missing jars into your tomcat distro. The jars are part of your webapp as well as those that are part of tomcat lib directory.

               

              Hope that helps.

               

              Rohit

               

              Hi Rohit -- I never got that problem resolved.  Mostly I was wanting to run the samples so I could have a working example for the tests I was setting up with our WebLogic portal.  Since you kindly helped me resolve that, I had basically given up on the samples.

              I am using a previously installed instance of Tomcat v6.  I downloaded the samples and deployed the lcds.war, lcds-samples.war, and ds-console.war archives into my existing installation.  I did the same with the BlazeDS samples and they worked fine, but the LCDS ones do not work.  If it is an easy fix, I'd still like to get the samples working since we are also hoping to be able to use the LCDS Data Management services, and I need to understand how those work.

              I've got a zip of the logs from my last attempt, but I don't see any way to attach that to this message.  Your data source idea is a good one, since many of the exceptions seem to be Hibernate related.

               

              Sep 8, 2010 2:10:25 PM org.hibernate.cfg.SettingsFactory buildSettings
              WARNING: Could not obtain connection metadata
              java.sql.SQLException: socket creation error

                  at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
                  at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)

               

              I also see this one:

              SEVERE: Servlet /lcds-samples threw load() exception
              java.lang.ClassNotFoundException: javax.transaction.Synchronization
                  at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa der.java:1645)

               

              If you can tell me how to attach files to this message through the web client, I'll send you the complete set of logs.

               

              Hi Steve,

               

              Were you able to resolve the following problem (see below)? If yes, what was the problem.

               

              If not, it might be because:

              a) the data source was not configured properly. If you can send the complete Tomcat console trace, I could be able to help you.

               

              b) Also, I observed you are using a different port from what we configure in shipped Tomcat (8400). Are you using your own Tomcat or the one shipped with LCDS?

               

              Rohit

              • 4. Re: Null MessageBroker in lcds samples?
                StevePamp Level 1

                Rohit, thanks again for all of your help.  That did the trick.  The turnkey installation actually performed the same way as my local Tomcat install - didn't work.  So I downloaded jta.jar and copied it into the web-inf/lib directory of the samples webapp in Tomcat and magically everything worked.

                 

                Thanks for your help on this, and also on my other issues!