[jboss-user] [JBoss Seam] - Re: How to prevent startup console log info?
Just increase the log level for javax.servlet.ServletContextListener (Generic Welcome Message), org.jboss.seam.deployment.* and org.jboss.seam.init.* to WARN or higher. Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126041#4126041 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126041 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:formattedText fails with dynamic content being null
Hi Pete, thank you for your response. I've filed an issue (http://jira.jboss.com/jira/browse/JBSEAM-2572). Unfortunately I didn't had the chance to test more recent Seam releases so far. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126016#4126016 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126016 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - s:formattedText fails with dynamic content being null
Hi, we were facing "random" ugly XML Parsing errors in our seam application, which is using with content from backing beans like the following example: | | We've noticed that the error occurs if the user didn't provide an email address, hence the content of the backing bean is null. We confirmed that fails if there is no content between two formatting characters as exemplified by the following: | | is working fine, but | | will lead to anonymous wrote : | XML Parsing Error: mismatched tag. Expected: . | Location: http://localhost:8080/umgmt/richtext.html | Line Number 81, Column 13:Hello, | ^ | So, my questions would be: 1) Is this a known issue or limitation (we are using Seam 2.0.0)? 2) Has this been fixed in a more recent release? 3) How would someone deal with this situation? Any suggestions on how to handle dynamic content, that could be null as well? Best regards and thank you in advance, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124326#4124326 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124326 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: authenticator.authenticate called several times
Hi! I had same "issue" some time ago. Have a look at the following thread in this forum: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=122033 Cheers, K. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122073#4122073 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122073 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Why I got java.lang.NoClassDefFoundError when using some
Hi, you've probably two versions of richfaces-ui*.jar in your ear package. Just put all richfaces.jars into the lib directory of your ear so they are visible to all the packages within the ear. Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113710#4113710 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113710 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Ajax, conversation and multiple requests..
Hi! Pete, thank you very much! I'm really appreciating getting help pretty fast on this forum most of the times. Best regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110481#4110481 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110481 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Ajax, conversation and multiple requests..
Hi, thank you guys for your posts! Actually section "6.9. Concurrent calls to conversational components" in the reference documentation really covers the topic in an excellent way. But I think I don't fully understand, why this behavior can still occur if there is the same eventQueue set on all ajax request generating input fields on the page? Shouldn't then only one ajax request be sent at the time, hence no concurrent calls on the conversational component and no need for Seam to serialize them. Also I wonder if there is a way to simply ignore (not even showing) the "Conversation ended" message. If I'm getting it right, the worst that could happen is, that a validationMessage (coming from one of the many ajax request) is not properly displayed, but not this "Conversation ended" behavior. Am I miss something here and simply ignoring is not a good idea anyway? Cheers, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110219#4110219 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110219 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Ajax, conversation and multiple requests..
Hi! I'm having an entity bean ("personal") with some attributes, which I would like to edit through a view page - nothing special so to say. But I'm getting some random anonymous wrote : | The conversation ended, timed out or was processing another request | JSF Messages while editing the page exhaustively. I've used seam-gen to set up the project and everything is working well. My issue arose after I decorated all the input fields on the edit view with s:decorate and do a re-render on "onblur" to get the field immediately validated and a warning right next to the field, if validation fails. Let me examplify with the following fraction from personal.xhtml: | | | | | | | | | All other input fields (approximately 20 - just to do some stress test) for each attribute of the entity bean is alike (id and reRender attribute adjusted respectively). When the page is displayed by the browser and a regular user is editing each field after another, not causing the onblur event being fired too quickly, everything is fine. But consider a user, selecting the first input element with the mouse and then hitting (and continuously holding down) the "Tab" key on the keyboard, leading to onblur events being fired from each input element very quickly -> The quoted message will pop up and the user is redirected to the home view. This behavior is definitely not what I'd like to see, so I'm asking myself, how to prevent this situation? I've tried to put a anonymous wrote : eventQueue="personalAjaxQueue" on every a4j:support element, improving the situation, but randomly I'm still getting the described behavior. Am I understanding the whole situation right, that the redirect is caused, because an AJAX request is fired and the old one is not completely processed (and it happens in the same conversation)? Has anyone else seen this behavior on forms with many input fields? Any suggestions? Any help is greatly appreciated! Best regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110140#4110140 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110140 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: formattedText with dynamic content - escaping
Hi Pete, thank you for showing interest. I gave the whole situation a brief thought and came to the conclusion that a generic approach that transparently escapes rich text tokens in s:formattedText would be hard to implement, because the method would have to differentiate somehow between formatting rich text tokens and tokens that are simply in the text as characters, so I'm using a pretty simple, but working, approach right now. I'm having a Seam managed Java Bean called "ste" (short for seam text escaper), which offers a method "esc(String s)" that escapes the rich text tokens using a Stringtokenizer. So in the message bundle I can escape certain properties, that could contain rich text tokens which needs to be escaped like that: | newGroupCreated.text=The new group '*#{ste.esc(group.name)} (#{ste.esc(group.nameShort)})*' was created successfully. | Now 'newGroupCreatet.text' can be used in even if 'group.name' contains characters like underscore or slash without breaking the generated HTML. If anyone is interested, I can post the code as well, but it's nothing spectacular. Best regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107009#4107009 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107009 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - formattedText with dynamic content - escaping
Hi! I'm facing the situation, where I do have a page containing a formattedText tag to display some information, I'm getting from the resource bundle as shown below: | | whereas the text in the message bundle is: | newGroupCreated.text=The new group '*#{group.name} (#{group.nameShort})*' was created successfully. | Nothing special - everything is working fine until one of the dynamic contents ("group.name" or group.nameShort") is containing a special character(e.g.: '*', '/', '~',...), which needs to be escaped to be displayed correctly. My question would be, how to deal with the situation? Is there a Seam class available doing the escaping work or do I manually have to look for occurrences of org.jboss.seam.text.SeamTextParserTokenTypes in the dynamic content? Any pointers? Best regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106084#4106084 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106084 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems using Authenticator.authenticate()
Hi! I was giving this whole authentication and undetermined number of calls to authenticator.authenticate() some thoughts and my workaround is that I'm using my own LoginHandler. This one is called from the LoginPage and acts as a regular JSF Bean, hence can determine the next rendered page by returning given outcomes. It uses the Identity component, so the rest of the nice features (like using identity.loggedIn,...) can still be used. Also here the authentication is performed only once, because the method is called only once per request. The actual authenticator.authenticate method just uses the results from the LoginHandler to return true or false. With this, the database is able count the actual login attempts and the authenticator.authenticate method can be called as often as it might get ... I'm still unclear, why and in which circumstances the authenticator.authenticate() method is called from Seam, but I guess it's a useable workaround for me. For example, the authenticator.authenticate() method is called even if the login page is calling some other method than identity.login - haven't had time to dig into this ... Best regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102170#4102170 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102170 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems using Authenticator.authenticate()
Hi! Thank you for your response! I really appreciate it. "[EMAIL PROTECTED]" wrote : There is no garuntee on how many times the authenticate method will be called. | <..snip..> | That's bad :( I'm facing the situation that the database is counting the login attempts and blocks the account, when an invalid password is provided three times. How would I deal with the fact, that I don't know how often the Authenticator.authenticate() method is called? Does this mean, that I can't use the build-in identity component? Could you explain, why the method could be called multiple times within the same request-response-cycle? I thought, if the action method returns "false" then a simple re-rendering of the page is performed. Regarding the exceptions, I do have a try/catch(Exception e) in my dbAccess.authenticate() method - nothing is captured there... Best Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098278#4098278 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098278 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems using Authenticator.authenticate()
Hi! Thank you for your response! As I mentioned only textual to spare the reader some extra code quotations, the dbAccess.athenticate(...) methode is executing a native SQL query through the injected EntityManager (@PersistenceContext private EntityManager em;): | <..snip - just constructing the Strings used in the following ..> | Query q1 = em.createNativeQuery("select * from login ( :username, :password, :clientIP, :zopeId, :userAgent, :host);"); | q1.setParameter("username", username); | q1.setParameter("password", password); | q1.setParameter("clientIP", clientIP); | q1.setParameter("zopeId", zopeId); | q1.setParameter("userAgent", userAgent); | q1.setParameter("host", host); | Object res = q1.getSingleResult(); | log.debug("Got result from login: "+Arrays.toString((Object[])res)); | Long accountId = ((BigInteger) ((Object[])res)[0]).longValue(); | String token = (String) ((Object[])res)[1]); | return (accountId != null && token != null); | Also I've tested that the method - it is returning solely true or false whether the user could be authenticated or not - no exceptions are thrown. Additionally the authenticator.authenticate() method is called twice even if I don't call dbAccess.authenticate() but return "false" every time. Best Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098244#4098244 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098244 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problems using Authenticator.authenticate()
Hi! I'd like to use Seam's simplified security mode with the build in identity and a custom authenticator class. I've initialized the security context in components.xml: anonymous wrote : | | Added the authenticator class: | @Stateless | @Name("authenticator") | public class AuthenticatorImpl implements Authenticator | { | @Logger Log log; | | @In Identity identity; | | @In(create=true, value="JDBCTest_DB_ACCESS_BEAN") | @Out | private DBAccess dbAccess; | | public boolean authenticate() | { |log.info("authenticating #0", identity.getUsername()); |if ( dbAccess.authenticate(identity.getUsername(),identity.getPassword()) ) |{ | log.info("Authentication successful leading to accountId: #0 ", dbAccess.getAccountId()); | return true; |} |else |{ | log.info("Authentication NOT successful!"); | return false; |} | } | } | Coded a login form: | | | | Login | | Please login using any username and password | | | | Username | | Password | | Remember me | | | | | | | | | | | | Most of it is generated by seam-gen, except the authenticate() method, which I've implemented to actually perform some work. If a user is successfully authenticated everything works like a charm: the authenticate() method returns true and the user is logged in. But on the other hand, if a user provides wrong credentials, the authenticate() method is called twice (there are two entries of 'authenticating #0' in the jboss log) and a subsequent valid login crashes the application with an PersistenceException - Session is closed! [1]. First of all, I'm unclear why the authenticate() method is called twice if it is returning false the first time. Second, I don't understand why the injected (into DBAccess) Entitymanager (@PersistenceContext private EntityManager em;) got an closed session after an invalid login. How is a authenticate() method coded correctly, so that it is called only once every attempted login? Any ideas why the session is closed after an invalid login? DBAccess.authenticate() simply performs a NativeQuery to validate the credentials without any exceptions thrown. Any pointers are greatly appreciated! Please let me know, if I've missed to put some information into my post. Best regards, Kurt [1] Here's the stacktrace of the exception after an invalid login: anonymous wrote : | javax.persistence.PersistenceException: org.hibernate.SessionException: Session is closed! | at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629) | at org.hibernate.ejb.QueryImpl.getSingleResult(QueryImpl.java:99) | at at.telbiomed.arc.DBAccessImpl.authenticate(DBAccessImpl.java:118) | 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) | at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) | at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) | at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) | at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) | at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106) | at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.j
[jboss-user] [JBoss Seam] - Why is Authenticator.authenticate() called twice if it retur
Hi! I've just generated an application with seam-gen (seam-2.0.0.CR2) and modified the Authenticator.authenticate() method to return false as well: | public boolean authenticate() | { | log.info("authenticating #0", identity.getUsername()); | if ("Foo".equalsIgnoreCase(identity.getUsername())){ | identity.addRole("admin"); | log.info("Autentication: #0", "TRUE"); | return true; | }else{ | log.info("Autentication: #0", "FALSE"); | return false; | } | } | Now obviously a user "Foo" can log in with an arbitrary password and any other user gets an "invalid login" message. Everything's fine so far, but interestingly I'm getting two anonymous wrote : | authenticating xxx | Autentication: FALSE | entries in the log, if a user "xxx" tries to log in - hence the authenticate() method is called twice. Could anyone explain to me, why this is the case - I thought, if an action method returns false, simple the current page is re-rendered. Thanks a lot for any explanations. Best regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097357#4097357 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097357 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: No subprocessId in Node with subprocess
Hi Jainner, I thought about that as well - and it would make sense, but I'm doing that already. I'm using the ant deploy task: | | | | | | | | | | | Additionally I was using Seam build-in process deployment mechanism, but it lead to the same issues. Is there a better way of deploying process descriptions without using ant? Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990371#3990371 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990371 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: No subprocessId in Node with subprocess
Hi Koen, thank you for your reply and please accept my apologies for mixing up a term. It is indeed not a task node, which cannot hold a sub-process, but a process-state-node as exemplified by the following snippet. | | | | | The child as well as the parent process are persisted to the database, but the column _subprocessdefinition in the table jbpm_node doesn't hold a valid entry for the node "subProcessStateNode". Regards, Kurt Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989993#3989993 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989993 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Order of process definitions for component org.jboss.sea
Thank you! I didn't really see it as a pure convenience mechanism of seam (maybe there should be a hint in the documentation). Unfortunately the issue described in the last paragraph of my initial post weren't resolved by using org.jbpm.ant.DeployProcessTask. Anyway, I'll move on to the JBPM forum. Thanks, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988097#3988097 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988097 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JavaScript Error when using sortable
Thank you all for your replies! Since Gavin suggested to use the Apache Trinidad components, I gave it a shot. I've downloaded the m1 snapshot from http://people.apache.org/maven-snapshot-repository/org/apache/myfaces/trinidad/ and followed teh documentation to get all teh servlets and required filters to work. The essential section of web.xml: | | trinidad | org.apache.myfaces.trinidad.webapp.TrinidadFilter | | | | trinidad | Faces Servlet | | | | resources | org.apache.myfaces.trinidad.webapp.ResourceServlet | | | | resources | /adf/* | | | | org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER | com.sun.facelets.FaceletViewHandler | | | | facelets.VIEW_MAPPINGS | *.xhtml | | The server starts up smoothly and is waiting for requests, BUT when a site is requested (even one without any trinidad components), I'm getting the following exceptions: | 2006-10-19 17:33:55,810 ERROR [STDERR] 19.10.2006 17:33:55 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | SCHWERWIEGEND: Error Loading Library: jar:file:/D:/Internet/Server/jboss-4.0.4.GA/server/default/tmp/deploy/tmp22671PortalOne.ear-contents/PortalOne.jar-contents/WEB-INF/lib/t-impl.jar!/META-INF/trh.taglib.xml | java.io.IOException: Error parsing [jar:file:/D:/Internet/Server/jboss-4.0.4.GA/server/default/tmp/deploy/tmp22671PortalOne.ear-contents/PortalOne.jar-contents/WEB-INF/lib/t-impl.jar!/META-INF/trh.taglib.xml]: | at com.sun.facelets.compiler.TagLibraryConfig.create(TagLibraryConfig.java:397) | at com.sun.facelets.compiler.TagLibraryConfig.loadImplicit(TagLibraryConfig.java:418) | at com.sun.facelets.compiler.Compiler.initialize(Compiler.java:86) | at com.sun.facelets.compiler.Compiler.compile(Compiler.java:103) | at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:192) | at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:141) | at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:93) | at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:503) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:553) | at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:178) | at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59) | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:383) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:327) | at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:291) | at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:214) | at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:90) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at or
[jboss-user] [JBoss Seam] - Re: JavaScript Error when using sortable
I thought about that as well, but couldn't find a second jsf-facelets.jar anywhere. Anyways, I've downloaded the trinidad sources and did a complete build. Everything's ok now. Thank you all for the help! Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979605#3979605 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979605 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Remoting und JMS Topic subscription questions.
Thank you Shane, you've been really helpful! The getter is not an immediate issue for me. I just wanted to point that out, that some other guy later on won't need to worry, why the provider cannot be set in components.xml :) Again, I'd like to thank you for your great help! Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979254#3979254 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979254 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JavaScript Error when using sortable
Hi, thank you for your response. Unfortunately setting "preserveSort" to false didn't solve the problem. So you abandoned tomahawk components - are there any alternatives to implementing your components on your own? I mean a sortable, clickable table should be nothing unusual - standard components should be available, right? Thanks, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978989#3978989 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978989 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Remoting und JMS Topic subscription questions.
Hi, that finally did the trick! Thank you again for your help. By the way, I'm using JBossMessaging instead of JBossMQ and therefore needed to set the connection provider in the subscriptionRegistry. Is there a reason why the property connectionProvider in org.jboss.seam.remoting.messaging.SubscriptionRegistry lacks a getter method and hence cannot be set by a parameter in seam.properties, components.xml or web.xml? I know, it's only the the getter missing, but without that java.beans.PropertyDescriptor won't extract the bean interface properly and the property cannot be set in org.jboss.seam.Component. I needed to set the connection provider since the default one only uses the hardcoded JDNI_Factory_Name "UIL2ConnectionFactory". Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978983#3978983 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978983 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Remoting und JMS Topic subscription questions.
Thanks Shane, overriding the subscriptionCallback definitely did the trick. I never wanted to use the setTimeout() version in a production environment. So finally I got the token in an input field and this is passed along the request until the page is rerenderd. I followed your suggestion, pushed the token manually into the registry and after calling Seam.Remoting.poll() the polling starts with the same token! But ;), the polling stops after the first (polling-)request times out because of an JavaScript Error anonymous wrote : Seam.Remoting.loadingMsgDiv has no properties. It seems uthat there is more going on behind the scenes at subscription. Sorry to bother you again, bt do you have any thoughts on that one? Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978825#3978825 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978825 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - JavaScript Error when using sortable
Hi, I'd like to use the Apache Tomahawk dataTable component to display Seams taskInstanceList using pagination and to be able to sort the table according to the users selection. I followed the recommendations on this forum and I'm able to use tomahawk components (tested with dataTable, inputDate,...). After wrapping the taskInstanceList into another class, responsible for holding the logic for sorting, I'm able to get a perfectly rendered dataTable on my page. Another thing working right out of the box was pagination, but I've a little issue when it comes to be able to sort the table. Whenever a I click on a header field of the table, I get a JavaScript error anonymous wrote : clear__5Fid69 is not defined. | | | | Id | #{task.id} | | | | | | Has anyone managed to get a sortable and paged tomahawk datatable running? Anyonw any ideas on what I could possibly miss? Is there an easier way to get the taskInstanceLIst paged and sortable? Thanks for any pointers, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978586#3978586 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978586 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Remoting und JMS Topic subscription questions.
Hi, thanks for helping me on this topic! But I'm not sure, if your suggestion would realy help me out, because the channelMessageCallback() method is not always called _before_ the page is refreshed. Actually in my scenario it is never called before the first refresh. Imagine this timeline: 1) The page is rendered and the subscription takes place 2) The user hits a button on the page triggering some action method 3) The page is re-rendered because of the action triggered in 2) 4) A JMS message is published on the topic At point 3) a new subscription would have taken place But I've noticed this Monday morning, that the exact same code produced a valid subscription AND token in the script at the bottom of the page [see code of posting Fri Oct 13, 2006 02:33 AM](after subscription). So I thought about a racing condition. After calling Seam.Remoting.subscribe() at the top of the page, your code is generating the token and is putting it into the SubscriptionRegistry. Simultaneously the page is rendered and the script at the bottom of the page is executed. If the token ends up in the registry before that point, everythings fine. But most of the times it won't! I think I've confirmed the issue by delaying the script at the bottom of the page artificially. setTimeout('fillTokenField();', 1000); I'm not sure, if this is the best approach. Assumptions on "how long something usually takes" have a tendency to break code after a while. Is there another way of knowing, if the subscription is completely performed, hence the token is generated? Thank you again for sticking with me, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978454#3978454 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978454 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Remoting und JMS Topic subscription questions.
Hi, thanks for your reply! I've tried to follow your hint, but somehow it seems that I cannot access the token after subscription to be able to write it to an input field. The xhtml page is defined as following: | | // | | | | | | | | | | // | | After the page has been called, Seam log shows the following content: | Fri Oct 13 2006 08:09:54 GMT+0200: Request packet: | | | Fri Oct 13 2006 08:09:54 GMT+0200: Script at the bottom of page... | | Fri Oct 13 2006 08:09:54 GMT+0200: filling input field with token | | Fri Oct 13 2006 08:09:54 GMT+0200: somethg | | Fri Oct 13 2006 08:09:54 GMT+0200: 0: taskListTopic: undefined | | Fri Oct 13 2006 08:09:54 GMT+0200: undefined | | Fri Oct 13 2006 08:09:54 GMT+0200: Response packet: | | | Fri Oct 13 2006 08:09:54 GMT+0200: Request packet: | | The last two lines of the log are the first polling performed. But as seen, at the point where the subscription list is written to the log, the token for the current subscription is 'undefined'. When is the token initialized? Am I missing something obvious? And just to make sure, I got you right, after I've written the token to an input field, I need to make sure this token is pushed into the subscriptionRegistry again after the page has reloaded. After that I start the polling process with Seam.Remoting.poll(), right? Thank you again, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978083#3978083 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978083 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam Remoting und JMS Topic subscription questions.
I'm having a seam page, which should invoke an action, whenever a JMS message is published to a topic as described in the reference manual. I followed the examples and got the page to invoke a javascript callback method, whenever a message is published after the page has subscribed to the topic. Currently the subscribtion is done on page load. This leads to two issues: 1) Whenever the page is re-rendered (e.g. after a button is clicked), the page subscribes to the topic again and more importantly as a new listener (new polling token). So when a message is sent to the topic in an action method of the same page the message is lost (and the callback method is never invoked). 2) The subscribers are piling up on the topic as verifiable by invoking listSubscriptionsAsText() on the topic bean in the JMX console. So finally, I'd like to ask, if anyone has some ideas on how to solve this issues or could give me any pointers. How could a subscription be made page scoped and not request scoped? How could I unsubscribe from a topic whenever the page is closed? Additionally I've realized that the subscriptions are done in a non-durable fashion. Is it possible to subscribe as a durable listener? Thanks for any hints, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977472#3977472 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977472 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - How to set task instance variables with ?
Hi, I wonder if there is a way to set task instance variables directly from the frontend (build upon JSF/Seam)? I've tried to set var1 into the context of the current taskInstance. Using this expression in an tag with an already set instance variable works fine, because taskInstance.getVariables() returns a map, which can be indexed like that, but is there a easy way to set the variable? The API only shows taskInstance.setVariable(name, value) and this can't be used in JSF expression language. Thanks for any pointers, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975800#3975800 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Task assignment via pooled actor
Hi Gavin, thanks again for trying to clearify this issue. I've read in the documentation that a pooled task is assigned to an actorId as well, but I've tried it with the very plain example (my initial post). Also the DVD store example is using a groupId [1] to get the task on the pooledTaskInstanceList. Please don't get me wrong, I don't want to be picky! I just would like to understand, why the code from my initial post wouldn't get the task to the pooledTaskInstanceList (for the currently logged in user=actor="admin"). Have a great weekend! Regards, Kurt [1] snippet in LoginAction.login(): | (actor.getGroupActorIds().add("reviewers"); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971928#3971928 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971928 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Task assignment via pooled actor
Thank you Gavin for your answer. Looking at the process definitions in the DVD store example there are two different ways of assignment: 1) pooled-actors="#{shipperAssignment.pooledActors}" 2) pooled-actors="reviewers" As far as I understood both ways work via groups assigned to the actor (in LoginAction) and not the actorId itself as stated as possible in the documentation. Because I've tried this, this has been the initial question of my post. Ad 1) shipperAssignment.pooledActors returns a comma separated list of Ids, which I do understand as groupId's (because they match the groups assigned to the actor after login) and not the actorIds ("manager") Ad 2) "reviewers" is not an actorId, it's a groupId Maybe I'm missing a point, but I don't see any example of assigning a pooled task through an actorId. Again, thank you for sticking to the topic. Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971477#3971477 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971477 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Task assignment via pooled actor
Here's a follow-up to my previous post I've started the debugger to look into PooledTaskInstanceList.getPooledTaskInstanceList() to see why the task is never assigned if the actorId is used instead of a group of the actor. |public List getPooledTaskInstanceList() |{ | List pooledTaskInstanceList = new ArrayList(); | Set actorIds = Actor.instance().getGroupActorIds(); | for (String actorId: actorIds ) | { | pooledTaskInstanceList.addAll( ManagedJbpmContext.instance().getTaskMgmtSession().findPooledTaskInstances(actorId) ); | } | return pooledTaskInstanceList; |} | Please correct me if I'm wrong, but with this code there seems to be no assignment via the actorId itself. Just the groupIds of the actor are used, despite the userguide documentation (Chapter 16.4.26 assignment) states a different fact. Is the userguide outdated or do I miss something here? I'm using Seam 1.0.1.GA Thanks for any help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970927#3970927 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970927 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Task assignment via pooled actor
Hi, I do have an issue while trying to assign a task to an actor via the pooledTaskInstanceList. I'm facing a short process definition holding only a single task node and the usual start/end nodes. The definition is correctly deployed to the database. The task-node definition is straight forward: | | | | | | | Just for testing, I've implemented a form with a button for generating a processInstance from the definition and a showing all pooledTasks for the logged in user (set as actor). The user "admin" never sees the pooled task in the list, despite the database holds the correct entries: 1) the task in the table jbpm_taskinstance 2) jbpm_pooledactor is correctly set to "admin" 3) jbpm_taskactorpool table links the two entries If the assignment is done without the pool with: the task shows up in the output. Am I missing something here or why is the task never in the list of pooledTasks? Thank you for the help in advance. Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970778#3970778 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970778 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Issue with instance variable not being injected/created in D
Hi, I'm implementing a DecisionHandler for a workflow definition. The class should act just as a demonstrator and is really simple. | @Name("bpm.patientRegisterGoalHandler") | @Interceptors(SeamInterceptor.class) | public class PatientRegisterGoalHandler implements DecisionHandler{ | | @In(value="registryData", create=true) | private RegistryData data; | | public PatientRegisterGoalHandler() { | log.debug("= PatientenRegisterGoalHandler constructor"); | } | | public String decide(ExecutionContext arg0) throws Exception { | log.debug("= PatientRegisterGoalHandler decide called"); | log.debug("RegistryData: "+data); | if (data.getCountPatient()>10) return "true"; | return "false"; | } | } | Whenever the corresponding workflow instance is created, the decide methode is called, but throws an NullPointerException at the point "data" is being accessed. My impression was that seam should instantiate the injected value, if it's null (when invoked with create=true). I added the debug logging and it shows, that the variable data is indeed null [1]. Two questions: 1) What could be the reason for seam not instantiating the variable (class RegistryData: the constructor is never called)? 2) Do I need to have the @Name and @Interceptors annotation for injection to work? Thank you in advance, Kurt [1]: the relevant part of the console output | 14:32:04,808 DEBUG [org.hibernate.loader.hql.QueryLoader] bindNamedParameters() registerPatients -> name [1] | 14:32:04,871 DEBUG [at.arcsmed.jbpm.PatientRegisterGoalHandler] = PatientenRegisterGoalHandler constructor | 14:32:04,871 DEBUG [at.arcsmed.jbpm.PatientRegisterGoalHandler] = PatientRegisterGoalHandler decide called | 14:32:04,871 DEBUG [at.arcsmed.jbpm.PatientRegisterGoalHandler] RegistryData: null | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969730#3969730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969730 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Error messages from application created with seam-gen
Hi, an application created with the seam-gen http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossSEAMGen script throws some errors when invoked after being deployed to the jboss server. I'm just curious if this is the desired behavior? I mean, I wouldn't care too much if these were just INFO or DEBUG messages, but they are thrown with severity ERROR. In detail, I'm interested in the two errors: 1) com.sun.facelets.compiler.TagLibraryConfig loadImplicit and 2) com.sun.facelets.tag.jsf.ComponentRule warnAttr | WARNUNG: /WEB-INF/layout/header.xhtml @5,60 xmlns="http://www.w3.org/1999/xhtml"; Property '' is not on type: javax.faces.component.UINamingContainer Can they be ignored safely? Thanks for explaining! Regards, Kurt The interesting part of server.log: | 11:44:17,242 INFO [org.jboss.deployment.EARDeployer] Started J2EE application: file:/D:/Internet/Server/jboss-4.0.4.GA/server/default/deploy/scaffold.ear | 11:45:02,219 INFO [org.jboss.seam.core.Pages] no pages.xml file found | 11:45:02,686 ERROR [STDERR] 30.08.2006 11:45:02 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/D:/Internet/Server/jboss-4.0.4.GA/server/default/tmp/deploy/tmp56227scaffold.ear-contents/scaffold-exp.war/WEB-INF/lib/jboss | -seam-ui.jar!/META-INF/seam.taglib.xml | 11:45:02,702 ERROR [STDERR] 30.08.2006 11:45:02 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/D:/Internet/Server/jboss-4.0.4.GA/server/default/tmp/deploy/tmp56227scaffold.ear-contents/scaffold-exp.war/WEB-INF/lib/jsf-f | acelets.jar!/META-INF/jstl-core.taglib.xml | 11:45:02,718 ERROR [STDERR] 30.08.2006 11:45:02 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/D:/Internet/Server/jboss-4.0.4.GA/server/default/tmp/deploy/tmp56227scaffold.ear-contents/scaffold-exp.war/WEB-INF/lib/jsf-f | acelets.jar!/META-INF/jstl-fn.taglib.xml | 11:45:02,733 ERROR [STDERR] 30.08.2006 11:45:02 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/D:/Internet/Server/jboss-4.0.4.GA/server/default/tmp/deploy/tmp56227scaffold.ear-contents/scaffold-exp.war/WEB-INF/lib/jsf-f | acelets.jar!/META-INF/jsf-ui.taglib.xml | 11:45:02,749 ERROR [STDERR] 30.08.2006 11:45:02 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/D:/Internet/Server/jboss-4.0.4.GA/server/default/tmp/deploy/tmp56227scaffold.ear-contents/scaffold-exp.war/WEB-INF/lib/jsf-f | acelets.jar!/META-INF/jsf-html.taglib.xml | 11:45:02,764 ERROR [STDERR] 30.08.2006 11:45:02 com.sun.facelets.compiler.TagLibraryConfig loadImplicit | INFO: Added Library from: jar:file:/D:/Internet/Server/jboss-4.0.4.GA/server/default/tmp/deploy/tmp56227scaffold.ear-contents/scaffold-exp.war/WEB-INF/lib/jsf-f | acelets.jar!/META-INF/jsf-core.taglib.xml | 11:45:02,873 ERROR [STDERR] 30.08.2006 11:45:02 com.sun.facelets.tag.jsf.ComponentRule warnAttr | WARNUNG: /WEB-INF/layout/header.xhtml @5,60 xmlns="http://www.w3.org/1999/xhtml"; Property '' is not on type: javax.faces.component.UINamingContainer | 11:45:02,935 ERROR [STDERR] 30.08.2006 11:45:02 com.sun.facelets.tag.jsf.ComponentRule warnAttr | WARNUNG: /WEB-INF/layout/footer.xhtml @5,60 xmlns="http://www.w3.org/1999/xhtml"; Property '' is not on type: javax.faces.component.UINamingContainer | 11:45:02,935 INFO [org.apache.myfaces.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true | 11:45:02,935 INFO [org.apache.myfaces.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true | 11:45:02,935 INFO [org.apache.myfaces.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false | 11:45:02,935 INFO [org.apache.myfaces.config.MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968327#3968327 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968327 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: DVDstore application with persistence allowing server re
If I take the process line out, I'd expect the jbpm component still to be initialized and the jbpm-related tables to be created. Just the actual process definition shouldn't be deployed to the database, right? Instead of getting this behavior, none of the jbpm_* named tables are created at startup anymore. Interestingly, the component org.jboss.seam.core.jbpm shows up in the list of managed components at server startup, but no tables are created, even if auto.ddl is set to create. Is the property "processDefinitions" mandatory? If I put the line back in, everythings fine again. Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968004#3968004 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968004 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: DVDstore application with persistence allowing server re
Thank you Norman to stick to the topic! I've solved the initial issue by updatiung both the persistence.xml AND hibernate.cfg.xml (create-drop to update). So the DVD Store keeps it's orders over server restarts. Albeit I'm still having this behavior that no database tables are created at startup (auto.ddl set to create!), if I drop the line deploying the processdefinition in components.xml. I'm using PostgresSQL 8.1 instead of HSQL DB - may this be an issue? Any pointers? Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967752#3967752 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967752 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: DVDstore application with persistence allowing server re
HI, thank you for your response. I've tried your suggestion and removed the processDefinition from components.xml starting off from a completely functional copy, but then Seam can't create the new process anymore because none of the jbpm related tables are created in the database at server startup. Obviously an exception[1] is thrown when the order is submit. Why is the Jbpm-component not initialized, if I don't define a processDefinition in components.xml? After putting the process definition back into components.xml everythings working - just as before, but I'm still loosing orders between server restarts. Any pointers? Thanks, Kurt [1] | 2006-08-25 08:47:18,113 INFO [STDOUT] Hibernate: select nextval ('hibernate_sequence') | 2006-08-25 08:47:18,113 INFO [org.jbpm.JbpmConfiguration] using jbpm configuration resource 'jbpm.cfg.xml' | 2006-08-25 08:47:21,191 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] schema export unsuccessful | java.sql.SQLException: You cannot set autocommit during a managed transaction! | at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.setJdbcAutoCommit(BaseWrapperManagedConnection.java:482) | and further down the line: | 2006-08-25 08:47:21,410 WARN [org.hibernate.util.JDBCExceptionReporter] SQL Error: 0, SQLState: 42P01 | 2006-08-25 08:47:21,410 ERROR [org.hibernate.util.JDBCExceptionReporter] ERROR: relation "jbpm_processdefinition" does not exist | 2006-08-25 08:47:21,629 ERROR [STDERR] org.hibernate.exception.SQLGrammarException: could not execute query | at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67) | at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967410#3967410 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967410 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - DVDstore application with persistence allowing server restar
Hi, I'm toying with the dvdstore example application and would like to achieve a more real life szenario by getting persistence over jboss server restarts. By default the application is completely reset to its initial state after a server restart. So I changed the property "hbm2ddl.auto" in hibernate.cfg.xml from "create-drop" to "update". The server starts up fine the first time and the scheme is created successfully. But on each subsequent (re)start the deployment of the application fails with a RuntimeException[1] stating that a process definition couldn't be deployed. Why would seam try to put an already defined process again into the database? How do I achieve the requirement to allow persistence ocross server restarts without loosing business data? Any pointers appreciated! Thanks, Kurt [1] The server log showing the exception: anonymous wrote : | 2006-08-24 12:08:17,390 INFO [STDOUT] Hibernate: select processdef0_.ID_ as ID1_18_, processdef0_.NAME_ as NAME2_18_, processdef0_.VERSION_ as VERSION3_18_, processdef0_.ISTERMINATIONIMPLICIT_ as ISTERMIN4_18_, processdef0_.STARTSTATE_ as STARTSTATE5_18_ from JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc limit ? | 2006-08-24 12:08:17,451 INFO [STDOUT] Hibernate: select nextval ('hibernate_sequence') | 2006-08-24 12:08:17,482 ERROR [STDERR] java.lang.RuntimeException: could not deploy a process definition | 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.core.Jbpm.installProcessDefinitions(Jbpm.java:167) | 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.core.Jbpm.startup(Jbpm.java:58) | 2006-08-24 12:08:17,482 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 2006-08-24 12:08:17,482 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 2006-08-24 12:08:17,482 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 2006-08-24 12:08:17,482 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:13) | 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32) | 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.Component.callComponentMethod(Component.java:1334) | 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.Component.callCreateMethod(Component.java:1322) | 2006-08-24 12:08:17,482 ERROR [STDERR] at org.jboss.seam.Component.newInstance(Component.java:1312) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1263) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1253) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:125) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:104) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.seam.init.Initialization.init(Initialization.java:196) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:32) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524) | 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 2006-08-24 12:08:17,497 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | 2006-08-24 12:08:17,497 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | 2006-08-24 12:08:17,497 ERROR [STDERR] at org.apache.catalina
[jboss-user] [JBoss Seam] - Re: validation not performed after submit
Hi, ok I could use required="true" but what do you mean by: anonymous wrote : @NotNull has no effect on validation. I thought Seam simply calls the Hibernate validation framework. What other effect has this annotation? Why are the examples given in the Seam distribution using the @NotNull annotations? The documentation of the validation frameworks ( [url] http://www.hibernate.org/hib_docs/annotations/reference/en/html/validator.html [/url] ) simply explains that it checks if the property is not null obviously. Am I missing something? Thanks, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965974#3965974 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965974 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: When can @Logger be used?
First of all, thank you all for the info! You have been really helpful. Are there any more advantages except the shorter syntax of @Logger over apache.commons.Log? I still feel like using the latter aproach, since calls to the constructor and entity bean can be logged as well. Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965512#3965512 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965512 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - validation not performed after submit
Hi, I do have an entity bean named user, which I do access directly from a xhtml page. On some properties of the bean are validator tags and all input fields in the xhtml page are surrounded by a tag. When the page is rendered and the input fields are left untouched, the action method is called after a submit without getting any validation errors. If some data is entered in the input fileds, but validation still fails (e.g. username too short) validation errors are displayed and the action method won't be called. The latter behaviour is the expected one, but why won't the validation fail, if the input fields are left blank? Each property of the entity bean is tagged with a @NotNull and @Length(min= 2). To examplify the code of the entity bean: | @Name("user") | @Entity | @Scope(ScopeType.SESSION) | public class User1A6 implements Serializable { | | private static final long serialVersionUID = 871185599785223310L; | | private String username; | | private String password; | | private Log log = LogFactory.getLog(User1A6.class); | | public User1A6() { | log.debug("= User1A6 constructor"); | } | | @NotNull | @Length(min = 3, max = 15) | public String getPassword() { | log.info("= User1A6.getPassword called"); | return password; | } | | public void setPassword(String password) { | log.info("= User1A6.setPassword called: " + password); | this.password = password; | } | | @Id | @NotNull | @Length(min = 2, max = 100) | @Pattern(regex = "^\\w*$", message = "not a valid username") | public String getUsername() { | log.info("= User1A6.getUsername called"); | return username; | } | | public void setUsername(String username) { | log.info("= User1A6.setUsername called: " + username); | this.username = username; | } | } | and the interesting part of the xhtml page: | | | | | | | | | | | | | | | | | | | | | Do I miss something here? Thanks for the answers in advance, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965507#3965507 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965507 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: When can @Logger be used?
Ok, I managed to get the @Logger working in the simple bean: | @Name("user1A6") | public class User1A6 { | | private String username; | private String password; | | @Logger private org.jboss.seam.log.Log log_seam; | | public User1A6() { | System.out.println("= User1A6 constructor"); | } | | public String getPassword() { | System.out.println("= User1A6.getPassword called"); | log_seam.info("= User1A6.getPassword called"); | return password; | } | | public void setPassword(String password) { | System.out.println("= User1A6.setPassword called: "+password); | log_seam.info("= User1A6.setPassword called: "+password); | this.password = password; | } | | public String getUsername() { | System.out.println("= User1A6.getUsername called"); | log_seam.info("= User1A6.getUsername called"); | return username; | } | | public void setUsername(String username) { | System.out.println("= User1A6.setUsername2 called: "+username); | log_seam.info("= User1A6.setUsername called: "+username); | this.username = username; | } | | public void frontendLog() | { | log_seam.debug( "User1A6 has been called from the frontend - @Logger" ); | } | The logger is accessible except in the constructor, which makes sense after all ;) BUT if the bean is a entity-bean, I'm getting exceptions when I'm using the logger again! Here's the code from a seam-example: | @Entity | @Name("user") | @Scope(SESSION) | @Table(name = "users") | public class User implements Serializable { | | @Logger private org.jboss.seam.log.Log log; | | private String username; | private String password; | private String name; | | public User(String name, String password, String username) { | this.name = name; | this.password = password; | this.username = username; | } | | public User() { | } | | @Id | @NotNull | @Length(min = 5, max = 15) | public String getUsername() { | log.info("= User.getUsername: "); | return username; | } | | public void setUsername(String username) { | log.debug(" User.setUsername: "); | this.username = username; | } | | @NotNull | @Length(min=5, max=15) | public String getPassword() { | log.info("= User.getPassword: " ); | return password; | } | | public void setPassword(String password) { | log.debug(" User.setPassword: "); | this.password = password; | } | | // ... some more getter/setter and methods | | When the page refering to the user is called, I'll get a NullPointer Exception: | javax.faces.el.EvaluationException: /home.xhtml @19,113 value="#{user.username}": org.jboss.seam.example.registration.User | at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60) | at javax.faces.component.UIOutput.getValue(UIOutput.java:75) | at org.apache.myfaces.renderkit.RendererUtils.getStringValue(RendererUtils.java:225) | at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.renderInput(HtmlTextRendererBase.java:131) | at org.apache.myfaces.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:49) | at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331) | at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242) | at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) | at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:554) | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFil
[jboss-user] [JBoss Seam] - Re: When can @Logger be used?
Thank you for your replies! I've tried several annotations. The "current" one is: | @Name("user1A6") | @Interceptors(SeamInterceptor.class) | public class User1A6 { | But I've tried it w/o the interceptor as well. I'm trying to log the properties which are injected to the bean from an JSF page. Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964535#3964535 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964535 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - When can @Logger be used?
Hi, We've just started to work with Seam by extending the examples provided in the distribution. We understood that Seam is providing a logger build on top apache.commons.logging. As described in the user documentation it can be used by putting @Logger private Log log; into the bean code. We've been trying this with a regular Java bean but the instance variable remains NULL all the time. Our question is, when is it possible to use this logger? Can this one only be used with (stateful/stateless) session beans or only with entity beans? We've even tried to add the Seam interceptor (@Interceptors(SeamInterceptor.class)) to our class, but the logger is still uninitialized. Could anyone explain the issue? Thanks in advance, Kurt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964391#3964391 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964391 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user