1 2 3 4 5 Previous Next 64 Replies Latest reply on Jul 19, 2006 8:37 PM by tushardesai22 Go to original post
      • 45. Re: Seam reverse engineering tool
        gavin.king

        Right at the moment, my highest priority for this stuff is to simplify the generated code.... maybe get rid of conversations and go pure-REST...

        • 46. Re: Seam reverse engineering tool
          ampieb

          Sounds promising. With REST, do you mean you would like the user to freely traverse the associations amongst objects, and the client having enough state to know exactly "where" in the network of domain objects it is?

          • 47. Re: Seam reverse engineering tool
            gavin.king

            yes

            • 48. Re: Seam reverse engineering tool
              gcowsar

              I'm having trouble getting a sample seam-hibernate reverse eng to build. I followed the directions in the movie and everything works up to the point of compiling.

              I get "Begin cannot be resolved to a type" and so on for every annotation.

              What am I doing wrong?

              I'm using Eclipse 3.2RC7 and the latest plug-ins from the nightly build as recommended. The plugin has a couple of UI differences, choices regarding EJB3 and Java5 syntax generation, which I have tried but it makes no difference.

              I have built other Seam examples with no problems.

              • 49. Re: Seam reverse engineering tool
                maxandersen

                did you add the seam jars to the project ?

                • 50. Re: Seam reverse engineering tool
                  gcowsar

                  Yes, but you have to be on the right track.

                  • 51. Re: Seam reverse engineering tool
                    gcowsar

                    OK, it turns out the the "Import:From File System" step as illustrated in the movie doesn't work. I had to use:

                    "Properties:Java Build Path:Libraries:Add External Jar"

                    for all of the libraries and the build errors (related to libraries) disappeared.

                    I have a new problem now, that has an easy workaround. The code generator is generating com.example.mydatabase as the package name but it is putting the files in src.com.example.mydatabase. So I can edit the package line in each file.

                    • 52. Re: Seam reverse engineering tool
                      maxandersen

                      you should allow it to generate into the root directory since it genereates more than just src.

                      in a future version we will allow you to generate these things in more managble steps.

                      • 53. Re: Seam reverse engineering tool
                        gcowsar

                        Maybe I missed the solution, but I saw where other people are having a similar problem and I didn't see the solution:


                        17:44:58,661 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                        javax.faces.FacesException: Cannot get value for expression '#{rolleruserSelector.pageTitle}'


                        It Builds, it deploys, but doesn't run.

                        • 54. Re: Seam reverse engineering tool
                          gcowsar

                           

                          "jason_rency" wrote:
                          "fkaufmes" wrote:
                          My problem with the Seam tool is just told, I get the error message:

                          ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
                          javax.faces.el.EvaluationException: Cannot get value for expression '#{catererEditor.new}'


                          I have no many-to-many mappings. The database structure is very simple for testing. Is there a possible solution for this problem?


                          try to use the latest version of jboss ejb3 jars (jobss-ejb3 latest download) instead of the jars in ejb3.deploy in the server is still the old version.


                          OK I got the latest (I built jboss-4.0.5.CR1 from CVS) and used the libraries from there. Got the search page showing up now.

                          But, it fails when I hit the Find button with:


                          javax.faces.FacesException: Error calling action method of component with id _id2:_id18
                          org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
                          javax.faces.component.UICommand.broadcast(UICommand.java:106)
                          javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
                          javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
                          org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
                          org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
                          javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
                          org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
                          org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


                          • 55. Re: Seam reverse engineering tool
                            gcowsar

                            More info: it doesn't always cause an exception, but it never returns any query results. If I put % in all the fields or a * in all the fields then it doesn't cause an exception.

                            This is probably closer to the root cause (SQL Error: -227):

                            20:58:00,121 INFO [STDOUT] Hibernate: select top ? rolleruser0_.id as id58_, rolleruser0_.locale as locale58_, rolleruser0_.username as username58_, rolleruser0_.passphrase as passphrase58_, rolleruser0_.fullname as fullname58_, rolleruser0_.emailaddress as emailadd6_58_, rolleruser0_.datecreated as datecrea7_58_, rolleruser0_.timezone as timezone58_, rolleruser0_.isenabled as isenabled58_ from roller.rolleruser rolleruser0_ where (rolleruser0_.username like ?) and (rolleruser0_.fullname like ?) and (rolleruser0_.locale like ?) and (rolleruser0_.timezone like ?) and rolleruser0_.isenabled=?
                            20:58:00,124 WARN [JDBCExceptionReporter] SQL Error: -227, SQLState: 3F000
                            20:58:00,124 ERROR [JDBCExceptionReporter] invalid schema name: ROLLER in statement [select top ? rolleruser0_.id as id58_, rolleruser0_.locale as locale58_, rolleruser0_.username as username58_, rolleruser0_.passphrase as passphrase58_, rolleruser0_.fullname as fullname58_, rolleruser0_.emailaddress as emailadd6_58_, rolleruser0_.datecreated as datecrea7_58_, rolleruser0_.timezone as timezone58_, rolleruser0_.isenabled as isenabled58_ from roller.rolleruser rolleruser0_ where (rolle ...

                            • 56. Re: Seam reverse engineering tool
                              gcowsar

                              I'm still at it. I'm still stuck. I don't want to be a pain in the butt, but...

                              This is one of those situations where I'm learning several things at once and I appreciate that fact. It means I'm too ignorant (not informed/knowledgable) yet to even be able to ask the right questions.

                              I've learned a lot... I've learned that:

                              - this is cool stuff and I know its early in development so I'm not expecting too much
                              - there are several different versions of Eclipse, JBoss, Seam, Hibernate, JFC and that's a complex matrix if this stuff is version sensitive
                              - there are differences between the Seam samples and the code generated by the SeamReverseEng tool and I have not sorted that out completely
                              - I have a natural (and very strong) tendency to not want to go backwards, since I'd like to start contributing to these projects
                              - a lot about how JBoss and Seam are put together in the process, still have a long way to go here, but it is very interesting
                              - Eclipse and ant are not well integrated -- this is frustrating

                              Also, various others have had most of the same problems that I have and I've tried to gather that all up and apply it (but it is scattered all over the place) -- so far I'm still failing.

                              It sure would be nice if somebody had a perscription for getting this to work with the (more or less) latest versions of everything -- even bleeding edge is OK. I did go build 4.0.5CR1 of JBoss so just tell me which versions of the other stuff I should get/build and I'll go for it.



                              • 57. Re: Seam reverse engineering tool
                                markfoerstein

                                 

                                "gcowsar" wrote:
                                Maybe I missed the solution, but I saw where other people are having a similar problem and I didn't see the solution:

                                <pre>
                                17:44:58,661 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                                javax.faces.FacesException: Cannot get value for expression '#{rolleruserSelector.pageTitle}'
                                </pre>

                                It Builds, it deploys, but doesn't run.


                                "gcowsar" wrote:

                                OK I got the latest (I built jboss-4.0.5.CR1 from CVS) and used the libraries from there. Got the search page showing up now.

                                But, it fails when I hit the Find button with:

                                javax.faces.FacesException: Error calling action method of component with id _id2:_id18
                                org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
                                javax.faces.component.UICommand.broadcast(UICommand.java:106)
                                javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
                                javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
                                org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
                                org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
                                javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
                                org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
                                org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


                                These exceptions are usually not the cause of the problem itself. Try looking at the JBoss/Tomcat console window. At the end of the stack you will find the exception that caused everything.

                                Post'em here.

                                • 58. Re: Seam reverse engineering tool
                                  gcowsar

                                   

                                  "markfoerstein" wrote:

                                  These exceptions are usually not the cause of the problem itself. Try looking at the JBoss/Tomcat console window. At the end of the stack you will find the exception that caused everything.
                                  Post'em here.


                                  Thanks Mark I'll do that. First I'm going to do a clean restart and see what happens.


                                  • 59. Re: Seam reverse engineering tool
                                    gcowsar

                                    I made some progress.

                                    After re-installing JBoss using the JEMS installer and Seam using a build from CVS I was able to run the tool and get the find and create pages served up.

                                    My table has just 2 cols:

                                    +----------+--------------+------+-----+---------+-------+
                                    | Field | Type | Null | Key | Default | Extra |
                                    +----------+--------------+------+-----+---------+-------+
                                    | lastname | varchar(50) | NO | PRI | | |
                                    | email | varchar(255) | YES | | NULL | |
                                    +----------+--------------+------+-----+---------+-------+
                                    


                                    When I try to do a find I get no results and JBoss says:

                                    09:02:30,122 INFO [Pages] no pages.xml file found
                                    09:02:30,906 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
                                    09:02:30,906 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
                                    09:02:30,906 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
                                    09:02:30,907 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
                                    09:02:30,910 WARN [HtmlLabelRenderer] Unable to find component 'lastname' (calling findComponent on component '_id2:_id9')
                                    09:02:30,914 WARN [HtmlLabelRenderer] Unable to find component 'email' (calling findComponent on component '_id2:_id10')
                                    09:02:30,915 WARN [HtmlLabelRenderer] Unable to find component 'pageSize' (calling findComponent on component '_id2:_id11')

                                    No exceptions but no results.