5 Replies Latest reply on May 11, 2010 11:53 AM by theute

    Clean install GateIn-3.0.0.GA throws exception

    blaverman

      I downloaded the 3.0.0.GA binary distribution and unpacked it. Per instructions I started by running "startup.bat" (also tried "gatein.bat" and "catalina.bat"). Tomcat starts fine, but when I go to the "portal" webapp as indicated in the documentation I get an empty page. Tomcat command box shows huge exception trail mentioning it failed to start all sorts of components, finally poting at:


      Caused by: java.lang.ClassCastException: org.apache.naming.NamingContext cannot be cast to javax.sql.DataSource
              at org.exoplatform.services.database.impl.HibernateServiceImpl.<init>(HibernateServiceImpl.java:134)
              ... 62 more


       

      Given this I checked but found no datasource definitions in any of the Tomcat config files. I also found "SEVERE: No Store configured, persistence disabled" in the log.

       

      Documentation just said unzip and run, so what did I miss here?

       

      Cheers,

      Bert Laverman

        • 1. Re: Clean install GateIn-3.0.0.GA throws exception
          theute

          You have to use gatein.bat.

           

          Can you please point me on where it says to use startup.bat as we need to fix this documentation. Using startup.bat will not work.

           

          Try deleting gatein/data and start again with gatein.bat

          1 of 1 people found this helpful
          • 2. Re: Clean install GateIn-3.0.0.GA throws exception
            blaverman

            Thomas,

            I unzipped the file and looked in the root of the resulting directory GateIn-3.0.0-GA. In there is a file called "RUNNING.txt" I think I may be forgiven for opening that. It talked about running GateIn on TomCat and said to start tomcat using startup.bat. I know the TomCat instance was provided with GateIn, but seeing the startup.bat I tried that first.

             

            There was no gatein\data directory (there were a conf and logs subdir).

             

            I Removed the entire distribution and re-unzipped it, now carefully starting it through gatein.bat.

             

            The startup logs were considerably different and it now works as advertised. I would suggest to add a RUNNING-GATEIN.txt to draw away the attention from the other one or rename the text files to correctly reflect their intent/traget audience.

             

            Cheers,

            Bert Laverman

            • 3. Re: Clean install GateIn-3.0.0.GA throws exception
              theute

              Ok, RUNNING.txt comes from plain Tomcat, we should remove that file, I also wanted to remove startup.* all along.

               

              There should be a GATEIN-README.txt file in your distribution though. (noticed that command for production and development is stated as the same it should be gatein-dev.sh for dev)

               

              Created a JIRA:  https://jira.jboss.org/jira/browse/GTNPORTAL-1181

               

              Thanks for the feedback

              • 4. Re: Clean install GateIn-3.0.0.GA throws exception
                mwringe

                Do we still need the startup.bat to be included? Or can it be merged into gatein.bat or renamed to something else.

                 

                Its confusing having multiple start scripts, especially since people used to Tomcat will instinctively try and run the server with the wrong one.

                • 5. Re: Clean install GateIn-3.0.0.GA throws exception
                  theute

                  Nope we can remove the startup.* files from my POV.

                  Fully agreed