14 Replies Latest reply on Jul 29, 2007 6:41 AM by Alexandru Enache

    examples didn't work

    Andy Shiue Newbie

      Hi, I am new to Jboss seam and I followed the instructions in getting started section, and whenever I redirect my web browser to "http://localhost:8080/seam-bookings/" link I always got 404 error.

      I am using windows XP sp2, I installed jdk 6u2, ant1.7, jboss AS 4.2 and seam1.3.

      The build process is successful. I have also tried registration example and it come out the same.

      Is there any suggestions on what might be the problem ?

      Regards,
      Andy

        • 1. Re: examples didn't work
          Ning Zhao Apprentice

          have you tried http://localhost:8080/seam-booking/?

          Have you seen the ear file(or directory) in your jboss deploy directory?

          • 2. Re: examples didn't work
            Andy Shiue Newbie

            Yes I have tried http://localhost:8080/seam-booking
            and I got:

            HTTP Status 404 - /seam-booking

            type Status report

            message /seam-booking

            description The requested resource (/seam-booking) is not available.

            ------------------

            and within this directory:

            C:\jboss-seam\examples\booking\jboss-4.2.0.GA\server\default\deploy

            I can see my jboss-seam-booking.ear file as well

            -----------------

            this happens with other examples as well. have no idea what's going on.

            Regards,
            Andy

            • 3. Re: examples didn't work
              Joshua Jackson Master

              Please post us the stacktrace here. You can view it from the log.

              Thanks

              • 4. Re: examples didn't work
                Andy Shiue Newbie

                I am totally new to Jboss so I am not sure which one is the stacktrace, the one called server.log or boot.log ? under the log directory within jboss AS right?

                and how much should I paste? (dumb question)

                Regards,
                Andy

                • 5. Re: examples didn't work
                  Pete Muir Master

                  The stack trace will be in server.log and on the console.

                  • 6. Re: examples didn't work
                    Andy Shiue Newbie

                    ok, here's the stack trace from server.log

                    I don't really understand most of it, so don't know how much I should post.

                    2007-07-12 14:41:07,078 DEBUG [org.jboss.system.ServiceController] stopping service: jboss.mq:service=Invoker
                    2007-07-12 14:41:07,078 DEBUG [org.jboss.system.ServiceController] stopping dependent services for: jboss.mq:service=Invoker dependent services are: [ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
                     State: RUNNING
                     I Depend On:
                     jboss.mq:service=Invoker
                     jboss.web:service=WebServer
                    , ObjectName: jboss.mq:service=InvocationLayer,type=JVM
                     State: RUNNING
                     I Depend On:
                     jboss.mq:service=Invoker
                    , ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
                     State: RUNNING
                     I Depend On:
                     jboss.mq:service=Invoker
                    ]
                    2007-07-12 14:41:07,078 DEBUG [org.jboss.system.ServiceController] stopping service: jboss.mq:service=InvocationLayer,type=HTTP
                    2007-07-12 14:41:07,078 DEBUG [org.jboss.system.ServiceController] stopping dependent services for: jboss.mq:service=InvocationLayer,type=HTTP dependent services are: []
                    2007-07-12 14:41:07,078 DEBUG [org.jboss.mq.il.http.HTTPServerILService] Stopping jboss.mq:service=InvocationLayer,type=HTTP
                    2007-07-12 14:41:07,078 DEBUG [org.jboss.mq.il.http.HTTPServerILService] Stopped jboss.mq:service=InvocationLayer,type=HTTP
                    2007-07-12 14:41:07,078 DEBUG [org.jboss.system.ServiceController] stopping service: jboss.mq:service=InvocationLayer,type=JVM
                    2007-07-12 14:41:07,078 DEBUG [org.jboss.system.ServiceController] stopping dependent services for: jboss.mq:service=InvocationLayer,type=JVM dependent services are: []
                    2007-07-12 14:41:07,078 DEBUG [org.jboss.mq.il.jvm.JVMServerILService] Stopping jboss.mq:service=InvocationLayer,type=JVM
                    2007-07-12 14:41:07,078 DEBUG [org.jboss.mq.il.jvm.JVMServerILService] Stopped jboss.mq:service=InvocationLayer,type=JVM
                    2007-07-12 14:41:07,078 DEBUG [org.jboss.system.ServiceController] stopping service: jboss.mq:service=InvocationLayer,type=UIL2
                    2007-07-12 14:41:07,078 DEBUG [org.jboss.system.ServiceController] stopping dependent services for: jboss.mq:service=InvocationLayer,type=UIL2 dependent services are: []
                    2007-07-12 14:41:07,078 DEBUG [org.jboss.mq.il.uil2.UILServerILService] Stopping jboss.mq:service=InvocationLayer,type=UIL2
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.il.uil2.UILServerILService] Stopped jboss.mq:service=InvocationLayer,type=UIL2
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.server.jmx.Invoker] Stopping jboss.mq:service=Invoker
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.server.jmx.Invoker] Stopped jboss.mq:service=Invoker
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.server.jmx.InterceptorLoader] Stopping jboss.mq:service=TracingInterceptor
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.server.jmx.InterceptorLoader] Stopped jboss.mq:service=TracingInterceptor
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.system.ServiceController] stopping service: jboss.mq.destination:service=Queue,name=DLQ
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.system.ServiceController] stopping dependent services for: jboss.mq.destination:service=Queue,name=DLQ dependent services are: []
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.server.jmx.Queue.DLQ] Stopping jboss.mq.destination:service=Queue,name=DLQ
                    2007-07-12 14:41:07,093 INFO [org.jboss.mq.server.jmx.Queue.DLQ] Unbinding JNDI name: queue/DLQ
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.server.JMSDestinationManager] Closing destination QUEUE.DLQ
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.server.jmx.Queue.DLQ] Stopped jboss.mq.destination:service=Queue,name=DLQ
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.security.SecurityManager] Stopping jboss.mq:service=SecurityManager
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.security.SecurityManager] Stopped jboss.mq:service=SecurityManager
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.system.ServiceController] stopping service: jboss.mq.destination:service=Queue,name=DLQ
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.server.jmx.DestinationManager] Stopping jboss.mq:service=DestinationManager
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.server.jmx.DestinationManager] Stopped jboss.mq:service=DestinationManager
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.sm.jdbc.JDBCStateManager] Stopping jboss.mq:service=StateManager
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.sm.jdbc.JDBCStateManager] Stopped jboss.mq:service=StateManager
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.system.ServiceController] stopping service: jboss.mq:service=PersistenceManager
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.system.ServiceController] stopping dependent services for: jboss.mq:service=PersistenceManager dependent services are: [ObjectName: jboss.mq:service=DestinationManager
                     State: STOPPED
                     I Depend On:
                     jboss.mq:service=MessageCache
                     jboss.mq:service=PersistenceManager
                     jboss.mq:service=StateManager
                     jboss.mq:service=ThreadPool
                     jboss:service=Naming
                     Depends On Me:
                     jboss.mq.destination:service=Topic,name=testTopic
                     jboss.mq.destination:service=Topic,name=securedTopic
                     jboss.mq.destination:service=Topic,name=testDurableTopic
                     jboss.mq.destination:service=Queue,name=testQueue
                     jboss.mq.destination:service=Queue,name=A
                     jboss.mq.destination:service=Queue,name=B
                     jboss.mq.destination:service=Queue,name=C
                     jboss.mq.destination:service=Queue,name=D
                     jboss.mq.destination:service=Queue,name=ex
                     jboss.mq:service=SecurityManager
                     jboss.mq.destination:service=Queue,name=DLQ
                    ]
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.system.ServiceController] stopping service: jboss.mq:service=DestinationManager
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Stopping jboss.mq:service=PersistenceManager
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Stopped jboss.mq:service=PersistenceManager
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService] Stopping jboss.jca:service=DataSourceBinding,name=DefaultDS
                    2007-07-12 14:41:07,093 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' from JNDI name 'java:DefaultDS'
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService] Stopped jboss.jca:service=DataSourceBinding,name=DefaultDS
                    2007-07-12 14:41:07,093 DEBUG [org.jboss.resource.connectionmanager.TxConnectionManager] Stopping jboss.jca:service=LocalTxCM,name=DefaultDS
                    2007-07-12 14:41:07,109 DEBUG [org.jboss.resource.connectionmanager.TxConnectionManager] Stopped jboss.jca:service=LocalTxCM,name=DefaultDS
                    2007-07-12 14:41:07,109 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Stopping jboss.jca:service=ManagedConnectionPool,name=DefaultDS
                    2007-07-12 14:41:07,109 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalUnregisterPool: setting interval to Long.MAX_VALUE
                    2007-07-12 14:41:07,109 DEBUG [org.jboss.resource.connectionmanager.ConnectionValidator] internalUnregisterPool: setting interval to Long.MAX_VALUE
                    2007-07-12 14:41:07,125 DEBUG [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Stopped jboss.jca:service=ManagedConnectionPool,name=DefaultDS
                    2007-07-12 14:41:07,125 DEBUG [org.jboss.resource.connectionmanager.RARDeployment] Stopping jboss.jca:service=ManagedConnectionFactory,name=DefaultDS
                    2007-07-12 14:41:07,125 DEBUG [org.jboss.resource.connectionmanager.RARDeployment] Stopped jboss.jca:service=ManagedConnectionFactory,name=DefaultDS
                    2007-07-12 14:41:07,125 DEBUG [org.jboss.jdbc.HypersonicDatabase] Stopping jboss:service=Hypersonic,database=localDB
                    


                    Hope it's enough to solve my problem. Really want to get those examples going and start learning.

                    Regards,
                    Andy

                    • 7. Re: examples didn't work
                      Nikolay Tsankov Newbie

                      Hi Andy,

                      This log does not contain a stacktrace at all. This is logging of the server stopping services (shutdown I guess). You have to post the part with the exception(s) - I think you have a problem on deploy/startup...

                      • 8. Re: examples didn't work
                        Andy Shiue Newbie

                        Really??

                        Hmm...ok here is what happens when I type 'ant deploy' within the booking example directory

                        [img]http://farm2.static.flickr.com/1311/806595456_82608f8623.jpg?v=0[/img]

                        Is there any problem there? because it says Build successful so I thought there's no problem on deployment part.

                        • 9. Re: examples didn't work
                          Pete Muir Master

                          Post the server log from where it Says Welcome to Seam

                          • 10. Re: examples didn't work
                            Andy Shiue Newbie

                            oh man....I cannot find Welcome to Seam inside the server.log

                            does this mean I did something wrong during installation?

                            this seems bad

                            Regards,
                            Andy

                            • 11. Re: examples didn't work
                              Andy Shiue Newbie

                              I have a question.

                              when I type ant deploy under seam's example directory, it creates two new directory called 'build' and 'jboss-4.2.0.GA'. I am wondering about this 'jboss-4.2.0.GA' directory, is it in the correct place? like under seam's example directory or is it not?

                              • 12. Re: examples didn't work
                                Nikolay Tsankov Newbie

                                ok, look at build.properties I guess
                                there you should have the property to point to your jboss installation

                                • 13. Re: examples didn't work
                                  Robert Berger Newbie

                                  After wrestling with a similar problem for hours, I found a simple but annoying anomoly in the application.xml in the booking example.

                                  In the following line

                                  <context-root>/seam-booking</context-root>

                                  the / character means the URL will need two /'s in a row after the port number, as in

                                  http://localhost:8080//seam-booking/

                                  The best fix is to remove the / character from the context name in application.xml

                                  • 14. Re: examples didn't work
                                    Alexandru Enache Newbie

                                     

                                    "guiltyxsin" wrote:
                                    Really??

                                    Hmm...ok here is what happens when I type 'ant deploy' within the booking example directory

                                    [img]http://farm2.static.flickr.com/1311/806595456_82608f8623.jpg?v=0[/img]

                                    Is there any problem there? because it says Build successful so I thought there's no problem on deployment part.


                                    In this picture, you can see that the deployment is done in the directory:
                                    C:\jboss-seam\examples\booking\jboss-4.0.2.GA\server\default\deploy
                                    This means that either you have installed JBoss AS there, or maybe there is a mistake of some sort. I suggest installing JBoss AS under C:\

                                    "ntsankov" wrote:
                                    ok, look at build.properties I guess
                                    there you should have the property to point to your jboss installation


                                    As ntsankov sais, after installing JBoss, you need to configure seam to refer to it. So you need to look the build.properties file in the jboss-seam directory and edit it. For example, I have:
                                    C:\jboss (the AS)
                                    C:\jboss-seam (the Seam)
                                    In this case, I first installed the JBoss AS to C:\jboss, then Seam to C:\jboss-seam. And them, I edited the file C:\jboss-seam\build.properties to have:
                                    tomcat.home = C:\\Tomcat-5.5
                                    jboss.home = C:\\jboss
                                    (the tomcat.home part doesn't matter in your case).

                                    Hope this helps. In any case, you can visit this link for any additional infos,links.
                                    http://labs.jboss.com/jbossseam/gettingstarted