1 2 3 Previous Next 39 Replies Latest reply on May 30, 2007 4:18 PM by dsmith1 Go to original post
      • 15. Re: Seam CVS now on JBoss AS 4.2 CR1

        Two things that are broken moving to JBoss AS 4.2 CR1 (This is not due to JBoss or Seam, but from switching from MyFaces the Sun JSF implementation)

        - TinyMCE: the content of the textarea is not saved. I have to investigate was going on there.

        - form submission: when posting a form like:

        <h:form onsubmit="doSomething();">


        The javascript method doSomething is never called.




        • 16. Re: Seam CVS now on JBoss AS 4.2 CR1

          The progressbar (remoting) is broken in JBoss AS 4.2 CR1.

          This is due to what I mentioned earlier.

          <h:form onsubmit="queryProgress();return true;">
          
           <h:commandButton style="width:80px" value="Go!" action="#{progressBarAction.doSomething}" class="button"/>
          
          </h:form>
          


          With JSF 1.2 RI, the onsubmit method is called only if submission occurs through the click on a submit button

          <input type="submit" value="Go!" />
          


          • 17. Re: Seam CVS now on JBoss AS 4.2 CR1

            Actually the progressbar works fine (it uses a commandButton and not a link).

            So just in case, some have this broken too, the fix is fairly easy for a commandLink.

            Just remove the form.onclick method and write an onclick method for the commandLink tag (See spec).

            • 18. Re: Seam CVS now on JBoss AS 4.2 CR1
              pmuir

              Note that JBoss AS 4.2.0.CR2 is now out - CVS is running well on it :)

              • 19. Re: Seam CVS now on JBoss AS 4.2 CR1

                 

                "petemuir" wrote:
                Note that JBoss AS 4.2.0.CR2 is now out - CVS is running well on it :)

                Actually, build.properties 1.13 in CVS suggests that 4.2.0.GA is already running on ebernard's computer right now... ;-)

                • 20. Re: Seam CVS now on JBoss AS 4.2 CR1
                  gus888

                   

                  "petemuir" wrote:
                  Note that JBoss AS 4.2.0.CR2 is now out - CVS is running well on it :)

                  Hi Peter, however, when I run Seam-CVS20070417 mail example on JBoss AS 4.2.0.CR2, I still got exceptions. I don't know whether I my server settings are wrong (I use all default values). Thank you.

                  • 21. Re: Seam CVS now on JBoss AS 4.2 CR1
                    pmuir

                    It's working fine for me (both normal and async) - there is a deployment error for meldware's calendar.ear (JBSEAM-1182) but it doesn't affect functionality of the mail example

                    • 22. Re: Seam CVS now on JBoss AS 4.2 CR1
                      gus888

                      Thanks, Peter. Since I also got the deployment error for calendar.ear, I thought the whole mail deployment failed. Thanks again for your very kind help!

                      • 23. Re: Seam CVS now on JBoss AS 4.2 CR1
                        gus888

                        Hi Peter,

                        After I deployed Seam mail example to JBosss 4.2 server, I immediately got the following exceptions. Do I need to modify some server setting files? Thank you so much for your guidance.

                        2007-04-19 20:01:54,593 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException in method: public abstract void javax.jms.MessageListener.onMessage(javax.jms.Message), causedBy:
                        javax.management.RuntimeMBeanException
                         at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:176)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                         at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                         at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
                         at $Proxy145.processMail(Unknown Source)
                         at org.buni.meldware.mail.delivery.DeliveryMDB.onMessage(DeliveryMDB.java:103)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
                         at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
                         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
                         at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
                         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
                         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
                         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
                         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
                         at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
                         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
                         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
                         at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
                         at org.jboss.ejb.Container.invoke(Container.java:960)
                         at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:987)
                         at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1287)
                         at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)
                         at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:891)
                         at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
                         at org.jboss.mq.SpySession.run(SpySession.java:323)
                         at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
                         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
                         at java.lang.Thread.run(Thread.java:595)
                        Caused by: javax.management.RuntimeMBeanException
                         at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:176)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                         at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
                         at $Proxy111.send(Unknown Source)
                         at org.buni.meldware.mail.MailListenerChainService.processMail(MailListenerChainService.java:194)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                         ... 36 more
                        Caused by: java.lang.RuntimeException: Could not resolve DNS lookup
                         at org.buni.meldware.mail.smtp.sender.SMTPSender.queryDNS(SMTPSender.java:332)
                         at org.buni.meldware.mail.smtp.sender.SMTPSender.performMXLookup(SMTPSender.java:259)
                         at org.buni.meldware.mail.smtp.sender.SMTPSender.mxLookup(SMTPSender.java:192)
                         at org.buni.meldware.mail.smtp.sender.SMTPSender.sendForDomain(SMTPSender.java:427)
                         at org.buni.meldware.mail.smtp.sender.SMTPSender.send(SMTPSender.java:381)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                         at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                         at $Proxy117.send(Unknown Source)
                         at org.buni.meldware.mail.mailhandler.remote.RemoteDelivery.deliver(RemoteDelivery.java:141)
                         at org.buni.meldware.mail.mailhandler.remote.RemoteDelivery.send(RemoteDelivery.java:85)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:585)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                         ... 48 more
                        Caused by: java.net.SocketTimeoutException: Receive timed out
                         at java.net.PlainDatagramSocketImpl.receive0(Native Method)
                         at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
                         at java.net.DatagramSocket.receive(DatagramSocket.java:712)
                         at org.xbill.DNS.SimpleResolver.readUDP(SimpleResolver.java:126)
                         at org.xbill.DNS.SimpleResolver.send(SimpleResolver.java:261)
                         at org.xbill.DNS.ExtendedResolver$Resolution.start(ExtendedResolver.java:83)
                         at org.xbill.DNS.ExtendedResolver.send(ExtendedResolver.java:345)
                         at org.buni.meldware.mail.smtp.sender.SMTPSender.queryDNS(SMTPSender.java:322)
                         ... 70 more
                        2007-04-19 20:01:54,609 ERROR [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Exception in JMSCI message listener
                        javax.ejb.TransactionRolledbackLocalException
                         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:262)
                         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
                         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
                         at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
                         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
                         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
                         at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
                         at org.jboss.ejb.Container.invoke(Container.java:960)
                         at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:987)
                         at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1287)
                         at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)
                         at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:891)
                         at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
                         at org.jboss.mq.SpySession.run(SpySession.java:323)
                         at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
                         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
                         at java.lang.Thread.run(Thread.java:595)
                        


                        • 24. Re: Seam CVS now on JBoss AS 4.2 CR1
                          cwash

                           

                          "petemuir" wrote:
                          Note that JBoss AS 4.2.0.CR2 is now out - CVS is running well on it :)


                          FYI

                          http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=16942&release_id=491475

                          • 25. Re: Seam CVS now on JBoss AS 4.2 CR1
                            christian.bauer

                            This might be useful for people migration from MyFaces to the JSF RI:

                            The default content type for a page is "application/xhtml+xml" with the JSF RI and Facelets, not "text/html" as with MyFaces. If you have existing content that is not strict XHTML (and it seems quite complicated to get this with all the JavaScript and stuff), or you have a browser that doesn't like this content type at all (IE), you can switch back to "text/html" with this in your Facelet page:

                            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                            <html xmlns="http://www.w3.org/1999/xhtml"
                             xmlns:ui="http://java.sun.com/jsf/facelets"
                             xmlns:h="http://java.sun.com/jsf/html"
                             xmlns:f="http://java.sun.com/jsf/core"
                             xmlns:s="http://jboss.com/products/seam/taglib">
                            
                            <f:view contentType="text/html"/>
                            <head>
                            


                            The typical sign of this issue is that you get Firefox complaining about invalid XHTML.


                            • 26. Re: Seam CVS now on JBoss AS 4.2 CR1
                              pmuir

                               

                              Caused by: java.lang.RuntimeException: Could not resolve DNS lookup


                              Meldware is having problems looking up the server to send to. Follow the instructions in the example for configuring an SMTP gateway (SMTP relay is quite tricky, the example should work, but doesn't always, for example my home DSL router has a dodgy DNS client in it which doesn't work with certain programs like wget and java...)

                              • 27. Re: Seam CVS now on JBoss AS 4.2 CR1
                                stu2

                                 

                                "christian.bauer@jboss.com" wrote:
                                This might be useful for people migration from MyFaces to the JSF RI:

                                The default content type for a page is "application/xhtml+xml" with the JSF RI and Facelets, not "text/html" as with MyFaces. If you have existing content that is not strict XHTML (and it seems quite complicated to get this with all the JavaScript and stuff), or you have a browser that doesn't like this content type at all (IE), you can switch back to "text/html" with this in your Facelet page:

                                
                                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                                <html xmlns="http://www.w3.org/1999/xhtml"
                                 xmlns:ui="http://java.sun.com/jsf/facelets"
                                 xmlns:h="http://java.sun.com/jsf/html"
                                 xmlns:f="http://java.sun.com/jsf/core"
                                 xmlns:s="http://jboss.com/products/seam/taglib">
                                
                                <f:view contentType="text/html"/>
                                <head>
                                


                                The typical sign of this issue is that you get Firefox complaining about invalid XHTML.


                                Thanks for this Christian. Very useful. I've been bitten by this, and it was on my list of things to investigate. Looks like some of the Richfaces stuff (DnD in particular) causes Firefox to complain. This would be worth bubbling up to the wiki and even the documentation.

                                • 28. Re: Seam CVS now on JBoss AS 4.2 CR1
                                  tcavaleiro

                                  Hi there,

                                  can anybody send me the booking example (latest version)?

                                  I'm getting the JBoss Seam through CVSGRAB 2.3 but the program throws a bunch of errors and after CVSGRAB finished, the booking example don't compile... (I currently behind a firewall that blocks my access to CVS pserver)

                                  I don't wan't to use JBoss 4.0.5 because I'm using JBoss WS (and when I tried to install JBoss WS 2.0 on JBoss 4.0.5 it gived me more errors.)



                                  Complain: Is there any updated documentation? I'm sorry if I'm a bit rush, but all the examples I saw where not updated.


                                  Thanks!

                                  • 29. Re: Seam CVS now on JBoss AS 4.2 CR1
                                    christian.bauer

                                    Get some real internet access and use a real CVS client, then you can build all the documentation you need.