1 2 3 Previous Next 34 Replies Latest reply on Mar 12, 2009 1:06 PM by Max Rydahl Andersen

    Seam components view problem with JBDS 1.1.0.GA

    Arbi Sookazian Master

      Not sure what version of JBoss Tools is bundled with JBDS 1.1.0.GA but I have enabled Seam support for my project and filled in all the requisite fields in the setup window, refreshed my project, etc (ping successful).

      I never see anything in my Seam components view except the root (my project name/folder). The conversation-scoped SFSB of JavaBean components don't display when I click the expand link to the left of the project folder in the view.

      Where are the seam support properties saved?

        • 1. Re: Seam components view problem with JBDS 1.1.0.GA
          Arbi Sookazian Master

          saved here:

          C:\java\projects\BETS\.settings\org.jboss.tools.seam.core.prefs

          #Mon Mar 09 16:40:23 PDT 2009
          action.package=com.cox.bets.session
          action.sources=/BETS/src/action
          eclipse.preferences.version=1
          model.package=com.cox.bets.entity
          model.sources=/BETS/src/model
          seam.ejb.project=BETS
          seam.project.connection.profile=boBETS
          seam.project.deployment.type=ear
          seam.project.settings.version=1.1
          seam.project.web.root.folder=/BETS/view
          seam.runtime.name=jboss-seam-2.0.2.SP1
          seam.test.creating=false
          seam.test.project=BETS
          test.package=org.domain.BETS.test
          test.sources=/BETS/src/model

          what am i doing wrong?

          • 2. Re: Seam components view problem with JBDS 1.1.0.GA
            Alexey Kazakov Master

            Where is seam.jar in the project?
            Is it included to classpath?

            • 3. Re: Seam components view problem with JBDS 1.1.0.GA
              Arbi Sookazian Master

               

              "akazakov" wrote:
              Where is seam.jar in the project?
              Is it included to classpath?


              Yes, source jar is here: C:\java\projects\BETS\lib\src. Everything looks ok to me....

              <?xml version="1.0" encoding="UTF-8"?>
              <classpath>
               <classpathentry kind="src" output="classes/model" path="src/model"/>
               <classpathentry kind="src" output="classes/action" path="src/action"/>
               <classpathentry kind="src" output="classes/test" path="src/test"/>
               <classpathentry kind="src" output="classes/dao" path="src/dao"/>
               <classpathentry kind="src" output="classes/util" path="src/util"/>
               <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
               <classpathentry kind="lib" path="bootstrap"/>
               <classpathentry kind="lib" path="lib/hibernate-validator.jar"/>
               <classpathentry kind="lib" path="lib/hibernate3.jar"/>
               <classpathentry kind="lib" path="lib/hibernate-annotations.jar"/>
               <classpathentry kind="lib" path="lib/hibernate-commons-annotations.jar"/>
               <classpathentry kind="lib" path="lib/hibernate-entitymanager.jar"/>
               <classpathentry kind="lib" path="lib/jboss-seam.jar" sourcepath="lib/src/jboss-seam-sources.jar"/>
               <classpathentry kind="lib" path="lib/jboss-seam-debug.jar"/>
               <classpathentry kind="lib" path="lib/jboss-cache.jar"/>
               <classpathentry kind="lib" path="lib/jbpm-jpdl.jar"/>
               <classpathentry kind="lib" path="lib/antlr.jar"/>
               <classpathentry kind="lib" path="lib/jgroups.jar"/>
               <classpathentry kind="lib" path="lib/jsf-facelets.jar"/>
               <classpathentry kind="lib" path="lib/jstl.jar"/>
               <classpathentry kind="lib" path="lib/jsf-api.jar"/>
               <classpathentry kind="lib" path="lib/servlet-api.jar"/>
               <classpathentry kind="lib" path="lib/testng.jar"/>
               <classpathentry kind="lib" path="lib/jboss-el.jar"/>
               <classpathentry kind="lib" path="lib/el-api.jar"/>
               <classpathentry kind="lib" path="lib/mvel14.jar"/>
               <classpathentry kind="lib" path="lib/drools-core.jar"/>
               <classpathentry kind="lib" path="lib/drools-compiler.jar"/>
               <classpathentry kind="lib" path="lib/janino.jar"/>
               <classpathentry kind="lib" path="lib/antlr-runtime.jar"/>
               <classpathentry kind="lib" path="lib/mail.jar"/>
               <classpathentry kind="lib" path="lib/persistence-api.jar"/>
               <classpathentry kind="lib" path="lib/ejb-api.jar"/>
               <classpathentry kind="lib" path="lib/jsr250-api.jar"/>
               <classpathentry kind="lib" path="lib/jta.jar"/>
               <classpathentry kind="lib" path="lib/core.jar"/>
               <classpathentry kind="lib" path="lib/jboss-embedded-api.jar"/>
               <classpathentry kind="lib" path="lib/hibernate-search.jar"/>
               <classpathentry kind="lib" path="lib/sqljdbc.jar"/>
               <classpathentry kind="lib" path="lib/lucene-core.jar"/>
               <classpathentry kind="lib" path="lib/jcifs-1.2.17.jar"/>
               <classpathentry kind="lib" path="lib/v20070621-common.jar"/>
               <classpathentry kind="lib" path="lib/v20080929-cadils.jar"/>
               <classpathentry kind="lib" path="lib/richfaces-api-3.2.1.GA.jar"/>
               <classpathentry kind="output" path="test-build"/>
              </classpath>


              • 4. Re: Seam components view problem with JBDS 1.1.0.GA
                Alexey Kazakov Master

                Are there any execptions in Eclipse log?

                • 5. Re: Seam components view problem with JBDS 1.1.0.GA
                  Arbi Sookazian Master

                   

                  "akazakov" wrote:
                  Are there any execptions in Eclipse log?


                  Severity:
                  
                  error
                  
                  msg:
                  
                  org.hibernate.console.HibernateConsoleRuntimeException: Could not load JPA Configuration
                  
                  exception stack trace:
                  
                  An exception stack trace is not available.
                  
                  session data:
                  
                  eclipse.buildId=1.1.0.GA
                  java.version=1.5.0_17
                  java.vendor=Sun Microsystems Inc.
                  BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
                  Command-line arguments: -os win32 -ws win32 -arch x86


                  • 6. Re: Seam components view problem with JBDS 1.1.0.GA
                    Arbi Sookazian Master

                    contents of persistence.xml:

                    <?xml version="1.0" encoding="UTF-8"?>
                    <!-- Persistence deployment descriptor for dev profile -->
                    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
                     version="1.0">
                    
                     <persistence-unit name="boBETS">
                     <provider>org.hibernate.ejb.HibernatePersistence</provider>
                     <jta-data-source>java:/boBETSDatasource</jta-data-source>
                     <properties>
                     <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
                     <!-- <property name="hibernate.hbm2ddl.auto" value="validate"/> -->
                     <property name="hibernate.show_sql" value="true"/>
                     <property name="hibernate.format_sql" value="true"/>
                     <property name="jboss.entity.manager.factory.jndi.name" value="java:/boBETSEntityManagerFactory"/>
                     <property name="hibernate.default_catalog" value="boBETS"/>
                     <property name="hibernate.default_schema" value="dbo"/>
                     </properties>
                     </persistence-unit>
                    
                     <persistence-unit name="coxDSS">
                     <provider>org.hibernate.ejb.HibernatePersistence</provider>
                     <jta-data-source>java:/coxDSSDatasource</jta-data-source>
                     <properties>
                     <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
                     <property name="hibernate.show_sql" value="true"/>
                     <property name="hibernate.format_sql" value="true"/>
                     <property name="jboss.entity.manager.factory.jndi.name" value="java:/coxDSSEntityManagerFactory"/>
                     <property name="hibernate.default_catalog" value="coxDSS"/>
                     <property name="hibernate.default_schema" value="dbo"/>
                     </properties>
                     </persistence-unit>
                    
                     <persistence-unit name="coxIM">
                     <provider>org.hibernate.ejb.HibernatePersistence</provider>
                     <jta-data-source>java:/coxIMDatasource</jta-data-source>
                     <properties>
                     <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
                     <property name="hibernate.show_sql" value="true"/>
                     <property name="hibernate.format_sql" value="true"/>
                     <property name="jboss.entity.manager.factory.jndi.name" value="java:/coxIMEntityManagerFactory"/>
                     <property name="hibernate.default_catalog" value="coxIM"/>
                     <property name="hibernate.default_schema" value="dbo"/>
                     </properties>
                     </persistence-unit>
                    
                    </persistence>
                    


                    • 7. Re: Seam components view problem with JBDS 1.1.0.GA
                      Arbi Sookazian Master

                      ignore my previous post, that was for different problem, sorry...

                      • 8. Re: Seam components view problem with JBDS 1.1.0.GA
                        Alexey Kazakov Master

                        JBDS 1.1.0.GA is quite old version. We've fixed a lot of things since that. Could you try it in JBDS 2.0 (CR2 or nightly build)? Or if it's imoprtant for you to continue working with Eclipse 3.3 and JBDS 1.1.0 then we can try to help you with it.

                        • 9. Re: Seam components view problem with JBDS 1.1.0.GA
                          Arbi Sookazian Master

                          I have contacted CSP for hotfix.

                          Where can I find out what versions of what libraries, etc. are bundled with JBDS 2.0 (i.e. what version of JBoss Tools, what version of EAP, what version of Seam?) Perhaps a release notes should be available for download??

                          This is all it shows on the download page (horrible!):

                           Download Details
                          Product/Version: JBoss Developer Studio 2.0 CR2
                          Type: DISTRIBUTION
                          File Name: jbdevstudio-eap-win32-2.0.0.CR2-R200901291303.jar
                          File Size (bytes): 636699606
                          MD5: cdc0280bb3b6df130e0391f4afd969a0
                          SHA-256: 8caaf128f7f2f91d4f2d49ca40ca4cf29e0a3f759188d957c713bdc8036fa1cd
                          Release Date: 02/02/2009 12:19 PM EDT
                          Last Updated: 02/02/2009 12:19 PM EDT
                          Software Description
                          
                          JBoss Developer Studio 2.0 CR2 Win32 with EAP distribution
                          Manual Instructions
                          
                          To install JBoss Developer Studio, download the appropriate installer, and run it by executing
                          
                          java -jar [jbdevstudio installer file


                          • 10. Re: Seam components view problem with JBDS 1.1.0.GA
                            Arbi Sookazian Master

                            I just upgraded to JBDS 2.0CR2 and retried with same project from same workspace and reproduced the error/behavior...

                            • 11. Re: Seam components view problem with JBDS 1.1.0.GA
                              Arbi Sookazian Master

                              I re-did the Seam settings and here are the results (still doesn't work):

                              #Tue Mar 10 11:18:58 PDT 2009
                              action.package=com.cox.bets.session
                              action.sources=/BETS/src/action
                              eclipse.preferences.version=1
                              model.package=com.cox.bets.entity
                              model.sources=/BETS/src/model
                              seam.ejb.project=BETS
                              seam.project.connection.profile=boBETS
                              seam.project.deployment.type=ear
                              seam.project.settings.version=1.1
                              seam.project.web.root.folder=/BETS/view
                              seam.runtime.name=seamfp
                              seam.test.creating=false
                              seam.test.project=BETS
                              test.package=org.domain.BETS.test
                              test.sources=/BETS/src/model


                              • 12. Re: Seam components view problem with JBDS 1.1.0.GA
                                Max Rydahl Andersen Master

                                im sorry but I have hard time following what you are trying to do.

                                If I install any GA version of JBDS and do File > New > Seam Web Project and uses the bundled AS and Seam (either 1.2 or 2.0) then should work out of the box.

                                What steps are you doing ?

                                • 13. Re: Seam components view problem with JBDS 1.1.0.GA
                                  Max Rydahl Andersen Master

                                  JBoss Developer Studio 2 comes with JBoss EAP 4.3 CP3 FP01

                                  • 14. Re: Seam components view problem with JBDS 1.1.0.GA
                                    Arbi Sookazian Master

                                     

                                    "max.andersen@jboss.com" wrote:
                                    im sorry but I have hard time following what you are trying to do.

                                    If I install any GA version of JBDS and do File > New > Seam Web Project and uses the bundled AS and Seam (either 1.2 or 2.0) then should work out of the box.

                                    What steps are you doing ?


                                    I have a pre-existing seam-gen'd project. This is the same project as the other thread I'm writing to in this forum regarding the Hibernate Configurations setup problem.

                                    Using Seam 2.0.2.FP I performed the following steps for this project a while back:

                                    1) from cmd line, 'seam setup'
                                    2) 'seam create-project'
                                    3) 'seam generate-entities'

                                    NOTE: difference here is that my project in Eclipse has one high level (root) folder, not four like the WTP projects. So perhaps that's the key here as to why I'm having problems with the Seam components view as well as the Hibernate Configurations

                                    Max, I faintly recall going thru this entire process back and forth with you a long time back. And I think the bottom line was that in order to use the JBoss Tool functionalities, I had to re-gen my project and use the 4 project folder WTP style.

                                    Is this still true? Is this the reason it's not working for me??

                                    1 2 3 Previous Next