5 Replies Latest reply on May 22, 2009 4:28 PM by yasudevil

    jee5 booking for Glassfish with library problems

    yasudevil

      Hi,


      I'm trying to deploy the application for glassfish as described on the docs of Glassfish.


      However I'm having problems because I don't have all the required jars on my Application generated by the ant.


      There is no mention on the document that describes that I need to do that work.


      Besides being really troublesome to do it I'm copying the files to my Glassfish lib.


      What I want to know is if this process is a mandatory one, and if it is. Why there isn't any mention about it on the documentation?


      Is it okay to put the missing libraries on my glassfish lib directory?

        • 1. Re: jee5 booking for Glassfish with library problems
          arshadm
          Hi,

          You shouldn't be putting your jars into $GLASSFISH/lib, the only library that could go in there is log4j (there are instructions on this page for setting up log4j http://weblogs.java.net/blog/schaefa/archive/2007/08/to_the_hell_wit_1.html).

          Any common jars should go in $GLASSSFISH/domains/domain1/lib. On my installation I have the following jars in this folder, I can now get most of my apps to work without major problems (I have problems with Seam+EJB's with Glassfish, but I am told that is because of the crummy way JEE5 managed resources which will be fixed in JEE6). In theory I could have most of these in my EAR lib folder, but since I have several applications deployed this is more efficient.

          The only JAR that HAS to be here is the database driver.

          antlr-2.7.7.jar   
          asm-3.0.jar  
          cglib-2.1.3.jar 
          commons-beanutils-1.8.0.jar
          commons-collections-3.2.jar
          commons-digester-1.8.jar
          commons-logging-1.1.1.jar
          concurrent-1.3.4.jar
          dom4j-1.6.1.jar
          hibernate-annotations-3.4.0.GA.jar
          hibernate-commons-annotations-3.1.0.GA.jar
          hibernate-core-3.3.1.GA.jar
          hibernate-entitymanager-3.3.2.GA.jar
          hibernate-validator-3.1.0.GA.jar
          javassist-3.10.0.GA.jar jboss-common-core-2.2.0.GA.jar
          jboss-common-logging-spi-2.0.4.GA.jar
          postgresql-8.3-604.jdbc4.jar
          slf4j-api-1.5.2.jar
          slf4j-log4j12-1.5.0.jar

          If you have any further problems with glassfish don't hesitate to post another message.

          Regards.
          • 2. Re: jee5 booking for Glassfish with library problems
            yasudevil

            I still don't managed to make the booking example to run on glassfish.


            Now I don't have any problems concerning libraries but. When I deploy the EAR the WAR file doesn't deploy.


            On my log file it has all the information about the Binding of the Beans but the web-application doesn't appear on the admin interface of glassfish, only the enterprise application.


            I managed to deploy the JPA example without any problems. Is it possible that I need to make any extra configuration on the xml of the EAR project?

            • 3. Re: jee5 booking for Glassfish with library problems
              arshadm

              Hi,


              As I remember you also have to do a asadmin start-database because it requires the default derby database to be started.


              If you are having problems look at the log in domains/domain1/logs/server.log, that should give you a idea as to why the application is not being deployed.


              Regards.

              • 4. Re: jee5 booking for Glassfish with library problems
                arshadm

                Hi,


                Sorry, I didn't read your post properly. You won't see a separate WAR application in the admin console, because you have deployed an EAR only the EAR will show.


                You should be able to access your application under it's context root (/seam-jee5-booking).


                Regards.

                • 5. Re: jee5 booking for Glassfish with library problems
                  yasudevil

                  Thanks! It's up and running.


                  I thought it would appear in the web-application session of the Glassfish administration tool.


                  Thanks again, now I'm going to try build something.