[jboss-user] [JBossWS] - Re: Strange - Entry Point not receive WS Message data
| http://schemas.xmlsoap.org/soap/envelope/";> | | | | | http://model.login.ep.ws.asbl.zoomix.com/";> | | | 123456 | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080271#4080271 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080271 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - What is the scope of JSF's UI component tree in Seam
In pure JSF app JSF's UI component tree would be in session. However in Seam there is a concept of conversation and (I believe) in different conversations UI tree could be different. Does it mean Seam would store UI tree in conversation context? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080269#4080269 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080269 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Authorization and authentication in Jboss Portal
Hello everybody! I am rather new to JBoss Portal but I've met my first problem that I can't solve for a long time... On the forum authorization/authentication theme is one of the most popular and I've got common goal also. In couples of words I want to do following: 1) Authenticate user and find possibility to get authenticated user id in each portlet. 2) Define bindings of roles and permissions for each portlet. (AFAIK this can be done easily) 3) Resolve permissions for current user in each portlet . 4) Do not render portlet for the defined permissions. Here are my questions according to the goals: 1) First of all, why there are no examples where login functionality is located in the separate portlet? Are there any limitations for implemention such functionality? Can I use JAAS for this goal? 2) Is there possibility to manage this via admin interface? 3,4) Are there any technics or recommendation for manager that will automatically resolve permissions for logged in user? How this information can be read from portlet? If you know smth that can help me and this is already have been written somewhere then I'll appreciate any links and documents. I think this theme is interesting and usefull and I want to solve this problem and to create good wiki document for the future usage. What have I read: I have read reference guide and I have found that JBoss has identity modules implementation. But I haven't found out how can I implement this modules for working with my business objects. Is it possible? Also, I have read wiki where I found such a information (may be can be usefull for smb) 1) Here is how logged in user can be determined. http://wiki.jboss.org/wiki/Wiki.jsp?page=DeterminePortalLoggedInUser 2) Here is described how to force login or in other words "How to remove any non-authorized portal usage http://wiki.jboss.org/wiki/Wiki.jsp?page=ForceLoginPage (instructions for Jboss Portal Server 2.0, they can be not usefull now) 3) Here is rather big document called LoginPortlet. http://wiki.jboss.org/wiki/Wiki.jsp?page=PortletLogin For a pity I could't find any information about PORTLET there. Only jsp/servelt. 4) Here you can find how to secure resources via url-pattern in Jboss AS. http://wiki.jboss.org/wiki/Wiki.jsp?page=SecureAWebApplicationUsingACustomForm 5) By the way here is small example how to configure JAAS login module on the "server" side. http://labs.jboss.com/wiki/JAASSetup 6) Here is something conceptual - authorization manager diagram and permission matrix. http://wiki.jboss.org/wiki/Wiki.jsp?page=PortalSecurity This was created for 2.2 version so I don't know the state of this functionality. 7) One more interesting thing - Acegi portlet support. http://wiki.jboss.org/wiki/Wiki.jsp?page=AcegiPortletSupport. Sounds very encouranging but I had only quick look on this extension. 8) Jboss Portal Identity API documentation. http://wiki.jboss.org/wiki/Wiki.jsp?page=Identity_API_in_JBoss_Portal_2_6 Thank you for any help!!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080268#4080268 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080268 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - TransactionSuccessEvent and TransactionCompletionEvent
What is the difference between the two? Based on the source code javadoc: TransactionSuccessEvent: An event that is processed when a transaction completes succesfully TransactionCompletionEvent: An event that is processed when a transaction ends But I am not sure what the real difference is. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080266#4080266 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080266 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: about Jbpm scheduler
Make sure you have created a JbpmContext, and haven't closed it before starting your process. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080265#4080265 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080265 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: how list all tasks?
I realize I've asked questions like these before, but the threads wandered off the topic. I'd have to think there are enumerators for all processinstances, taskinstances, etc., but I haven't found them. One answer was to write your own query against the hibernate db, but that bypasses the API and is dangerous from an upgrade standpoint. Are there global enumerators or list methods for all these objects? If not, doesn't that seem like an omission? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080259#4080259 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080259 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Stateless or Statefull
thanks for reply i just wanna tell u that im using DataModel and DataModelSelection and some Out Variable, is that mean i must use statfull SB does that statfull SB expires when the session ends unders session scope View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080258#4080258 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080258 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: attach javascript to jpdl generated task form save butto
I don't use JSF, I use plain JSP. So I simply create my JSP pages as I want them, with javascript and everything, and deploy them with my process definition. I use a similair mechanism that the jbpm-console uses to retrieve the form from the database. ie. look at the forms.xml file, determine the JSP page to use with my current task name, and I then simply read that jsp page from the jbpm database and "include" the jsp code in my "framework" task form. I don't know how you would do it with JSF though, I've never used it. Sorry. Buy maybe the above can give you ideas. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080254#4080254 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080254 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Help on Best Practice
Ronald, Do you mean the Business Process Management with JBoss jBPM book by Matt Cumberlidge? I've just finished reading it and it gives a very good overview on both BPM and jBPM with a good starter application. I would have liked to seen more developer oriented topics discussed in greater depth but given the stated audience of the book I guess that wasn't possible. In my scenario, I need to pass business-level exceptions back immediately after some validation (from the process to the UI layer) within the context of a conversation with a user; I'm using the process as a kind of orchestration mechanism. There are wait states later in the process but the validation step is the first. My initial thoughts were to create a generic exception similar to SQLException where I could set a code for each business level error and then wrap a collection of these in another exception which would be thrown by my stateless session bean wrapping the jBPM engine. Regards, Paul. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080253#4080253 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080253 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - how list all tasks?
JbpmContext.getTaskList() fetches the TaskInstance list for the current authenticated actor. Is there a way to get a list of TaskInstances for all actors in the process? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080252#4080252 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080252 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Can not seem to name foreign keys in relationships
did you try to specify the name with referencedColumnName: @JoinColumn(name="catalogueFk",referencedColumnName="catalogue") View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080251#4080251 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080251 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Authenticator problem in Seam 2 beta
I had the same problem and DID have older drools jars somewhere. Was solved when I removed those. So look in other projects etc... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080250#4080250 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080250 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Mails status
Hi; Questions : 1- How to verify the status of a mail send by a J2ee application : mail correctly send (OK), error case the mail does not send to messaging server ( unavailable server, acces denied, ...) ? 2- How to check that the user he definitely read his mail with a answer denied ? 3- Its needed to store into a database the data of a mail, if the function re-send is implemented ? Regards; Yanis View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080249#4080249 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080249 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - No Principal propagation to SessionBean
Hi everybody, I've developed a EJB3.0 Application; now I want to add security using JAAS. The client is a rich Delphi application that comunicates with server via HTTP througth a servelt. This servlet has this login JAAS code: loginContext = new LoginContext("GTSPDB", new MyCallbackHandler(user, password)); | loginContext.login(); | where user and password come in the HTTP request. The user authentication works fine but when I call the sessioncontext getCallerPrincipal into the sessionbean and error raises: 12:31:11,304 TRACE [SecurityAssociation] getCallerPrincipal, principal=null | 12:31:11,320 ERROR [STDERR] java.lang.IllegalStateException: | No valid security context for the caller identity | I've declared the security context in login-config.xml | | | java:/MySqlHibernate | SELECT password FROM user WHERE name=? | SELECT rolename,'Roles' FROM userrole WHERE userrole.username=? | | | and tables in database are populated with these user and roles data. I've read the "JAAS Howto: README FIRST" but I haven't found solution. Why Principal is not propagated to sessionbean if login works¿? what am I doing wrong¿? am I missing something¿? thanks in advance for your help. pedro. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080248#4080248 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080248 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: New AOP users forum
Hi I am new using jboss aop... I understand about AOP.. I can use that "jboss aop" standalone, but I can not run a simple interceptor that say hello in my jboss server 4.05 GA, please , is there any manual about a simple interceptor (HelloWorld) in jboss server, please helpe Kabir.. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080241#4080241 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080241 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to use @Roles?
ok, I know about it. Assume that we defined those roles, now, in our session beans how we can use it? for example, I have an Authenticator Session bean in which a User instance variable is defined as follows: | | @Stateless | @Name("authenticator") | class Authenticator { | | @Out("currentUser", scope=ScopeType.SESSION) | private User user; | | // rest of the codes | } | | and in another bean in which I provide a facility to manage other users for administrators as follows: | @Name("userManager") | @Stateful | class UsreManagerAction implements UserManager { | | private User user; | | //rest of the codes | } | I want to know how do I use those roles in such these beans? thanks again how can I use View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080238#4080238 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080238 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam email problem
Is this secure SMTP? This is a highly unsual setting. I think before TLS could be initialized during the session the port was used for secure SMTP. Anyway since you are transfering to localhost port 25 should be fine. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080237#4080237 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080237 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Authenticator problem in Seam 2 beta
As far as jars in /lib directory are considered I deleted all jars from my project and then copied the ones which were generated in a new template project. And that new project was generated using Seam 2 beta. So I don't think this is stale jars problem :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080236#4080236 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080236 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Authenticator problem in Seam 2 beta
You should upgrade drools + dependencies. I suspect you have stale jars lying around. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080235#4080235 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080235 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Authenticator problem in Seam 2 beta
Thank You for the reply but as I migrated I also copied drools-core-4.0.0.MR2.jar and drools-compiler-4.0.0.MR2.jar into my project. So the problem exists with these new libraries :( Is it something else about drools to upgrade? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080234#4080234 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080234 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem using JBPM in Seam 2
read the seam2migration guide View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080233#4080233 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080233 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Authenticator problem in Seam 2 beta
You need to upgrade drools to the version shipped in Seam2 beta View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080232#4080232 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080232 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Authenticator problem in Seam 2 beta
Hi, I had a working Authenticator class something as below: | @Name("authenticator") | public class Authenticator { | @Logger | Log log; | | @In | Identity identity; | | @In(create=true) | EntityManager entityManager; | | public boolean authenticate() { | log.info("authenticating #0", identity.getUsername()); | | try{ | | Person person = (Person) entityManager.createQuery( | "select p from Person p where login = :login and password = :password") | .setParameter("login", Identity.instance().getUsername() ) | .setParameter("password", Identity.instance().getPassword()) | .getSingleResult(); | | | if(person.getRole() != null){ | Identity.instance().addRole( (new Long(person.getRole().getId())).toString() ); | } | return true; | | }catch(NoResultException ex){ | FacesMessages.instance().add(ResourceBundle.instance().getString("invalidLoginOrPassword")); | return false; | | } | | public String login(){ | | Identity.instance().login(); | | if(Identity.instance().hasRole("...") | return "somepage.xhtml"; | else if(Identity.instance().hasRole("...") | return "somepage.xhtml"; | else if(Identity.instance().hasRole("...") | return "somepage.xhtml"; | else | return "somepage.xhtml"; | | } | } | | When I migrated to JBoss Seam 2 beta and now return true from authenticate() method I get the error listed below and the 'if' conditions in login() method are not considered! | 16:02:36,421 INFO [Authenticator] authenticating user | 16:03:21,734 FATAL [application] java.lang.reflect.InvocationTargetException | javax.faces.el.EvaluationException: java.lang.reflect.InvocationTargetException | at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91) | at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91) | at javax.faces.component.UICommand.broadcast(UICommand.java:383) | at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180) | at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158) | at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:346) | at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127) | at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277) | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
[jboss-user] [JBoss Seam] - Re: how to use @Roles?
With @Name and @Role you can define only two components, with the same scope or not: | @Name("user") | @Scope(SESSION) | @Role(name="user2", scope=SESSION) | There is no such limitations with @Roles | @Name("user") | @Scope(SESSION) | @Roles({ | @Role(name="user2", scope=SESSION), | @Role(name="user3", scope=SESSION), | @Role(name="user4", scope=SESSION), | @Role(name="user5", scope=SESSION), | }) | | The scopes can be differents. Then all the "Role" names can be used as the "Name" one. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080229#4080229 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080229 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Conversation troubles - don't understand the principle
Hi, I've problems using (and understanding) the conversation scope (using Seam 2 CVS) What I want to achieve is to have a menu with the following behavior: Behind a menu entry is a component instance (and a view) When I activate a menu entry an own "workspace" should be created (when no exists) When another activation of the same menu entry took place the existing conversation should be joined. This "conversation" should last until an explicit end of the coversation or timeout. Of course it should be allowed to change from one workspace to another. I tried to achieve this with a start method like this (with and without the id parameter): @Begin(join = true, id = "#{navigation.selectedItemId}") | public void start() { | log.debug("start" + getClass().getName()); | } But in debugging I see only one conversation context. The behaviour of changing views with the menu is strange (as I described in my post http://www.jboss.com/index.html?module=bb&op=viewtopic&t=117430) Could anybody of you explain the correct way to achieve the desired behavior? When I use the session scope the behavior is (of course) correct. TIA Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080228#4080228 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080228 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: End the existing and create new conversation
You can use before-redirect="true" View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080227#4080227 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080227 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - how to use @Roles?
Hello I've read something in Seam reference about @Roles which you can define many roles for an entity, a User stated as an example as follows: | @Roles({ | @Role(name="user", scope=ScopeType.CONVERSATION), | @Role(name="currentUser", scope=ScopeType.SESSION) | }) | it seems to me very useful but I can't comprehend its concepts and the benefits and also I don't know how to use? unfortunately I couldn't find any sample in which this feature is utilized. can anyone explain this annotation and tell me how to use it? thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080226#4080226 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080226 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: please help me out of this problem
my User's scope is SESSION is this the issue which cause this problem? because I just read somewhere in seam reference about @Role that we can define many roles for an entity but I don't know how to use them? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080224#4080224 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080224 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: End the existing and create new conversation
Hum it seems you can't end a conversation and begin a new one at the same time. You may specify propagation="end" on the link, and add a in the matching page.xml for your destination. Anyway, even if you don't end the previous conversation, it will eventually timeout. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080223#4080223 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080223 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Themes question
I installed a custom filter (@Filter(within = "org.jboss.seam.web.contextFilter")) and the filter is called as expected. I can also get and access the ThemeSelector via Context ctx = new SessionContext(new ServletRequestSessionMap(sreq)); ThemeSelector ts = (ThemeSelector) ctx.get(ThemeSelector.class); Problem is that I get a NPE when setting a theme. selectTheme throws | java.lang.NullPointerException | at org.jboss.seam.theme.ThemeSelector.select(ThemeSelector.java:87) | The annotations in my custom filter class are: @Startup @Scope(ScopeType.APPLICATION) @Name("de.dvdb.generic.seam.ThemeFilter") @Intercept(InterceptionType.NEVER) @Filter(within = "org.jboss.seam.web.contextFilter") Is this ok? - Chris View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080220#4080220 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080220 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - End the existing and create new conversation
Hi all! I'm in a conversation but want to quit it and create a new conversation. I'm using but in the debug page i see that the old conversation stays, it's not destroyed. Idea how to to this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080219#4080219 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080219 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Help on Best Practice
well, there are differences between engine exceptions and businessservice exceptions. The latter in our case were stored in specific processvariables called error__ they were used to direct the process (e.g. decisionnodes) to nodes where appropriate action could betaken. So that is kind of what I think Jim means by making it part of the process. It would be nice to get this in a full example though but I'm still waiting for the jBPM book to arrive, might be something in there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080218#4080218 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080218 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: attach javascript to jpdl generated task form save butto
ending a task will also save the data, so no need for this. Regaring the attaching of the javascript in general, I have no idea and unfortunately currently no time to investigate. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080217#4080217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080217 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBoss + JBPM + Mysql - Deployment is not going through
well, you *should* have *two*, but with different jndi names. one for DefaultDS and one for jBPMDS as martin stated. Besides that, I strongly advise you to learn the basics of JEE and appservers since I get the impression (no offence) you lack a great deal of knowledge in this area. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080216#4080216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080216 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam email problem
Hi all, I'm trying to send an email using seam, but with exception. Seam version: 1.2.1GA Jboss AS version: 4.2.1.GA JSF version 1.2 SUN RI I have: 1) created mail-service.xml | java:/CechieMailService | martin.krajci | mypwd | | | | | | | | | | | | | | | jboss:service=Naming | 2) edited components.xml or + namespaces in tag are the same as in seam mail example 3) included jboss-seam-mail.jar in ear/war/WEB-INF/lib 4) used seam mail example in my project But I got exception when sending email: 13:17:33,448 INFO [MailSession] Creating JavaMail Session (localhost:null) 13:17:33,458 INFO [MailSession] connected to mail server 13:17:34,510 ERROR [ReservationComponent] Error sending mail javax.faces.FacesException: Exception reading response at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:142) at org.jboss.seam.ui.JSF.renderChild(JSF.java:180) at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162) at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRend erer.java:150) at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.ja va:112) at cz.krajci.cechie.business.logic.ReservationComponent.finishBooking(Re servationComponent.java:154) The strange thing is the (localhost:null) host and port. What else I'm missing? Thanx for any reply. Martin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080215#4080215 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080215 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Help on Best Practice
Hi Jim, So what approach would you advocate in passing business-level exceptions back to the UI Layer? Regards, Paul. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080214#4080214 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080214 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - attach javascript to jpdl generated task form save button
Hi, does anyone know a good way to attach a javascript function to a save button on a jpdl generated task form, so for example I can set a hidden input value with a value taken from a richfaces calendar input? On a similar note, is there a way I can do the same thing with a transition link on the same page, so the user can not click on end, to end the task until the form save button has been pressed ? Thanks for your help in advance, Ross View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080211#4080211 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080211 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: ClassCastException in JDBCMySQLCreateCommand
Same stuff here. JBossAS 4.2.1 JBM 1.4.0.CR2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080210#4080210 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080210 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: newbie question about Seam
"jiangliu" wrote : but my JBoss AS is installed at /Application/jboss-4.2.1.GA, how can i configure this build script to generate files and put them into the right place? Edit build.properties anonymous wrote : Also anther question, it seems like we have problem with the lastest version of Seam, so could anyone points me how can i get the nightly build version of Seam? See sticky at top of forum View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080209#4080209 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080209 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems using ajax validation in seam-gen
In ConversationEntry : I tried to replace return lock.tryLock( Manager.instance().getConcurrentRequestTimeout(), TimeUnit.MILLISECONDS ); with | lock.lock(); | return true; | Which replacing the failing lock with a waiting lock. With the example from above with the loop, the flooding seems to work also it makes the page a little dizzy (because all calls to getTotal get executed serially). But in normal operation it works perfectly. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080207#4080207 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080207 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - newbie question about Seam
Hi everyone, I have generated a new problem by using Seam-gen, when i run the build script (for deploy) in Eclipse, the generated ear file always goes to: /Application/jboss-4.2.0.GA/blah, but my JBoss AS is installed at /Application/jboss-4.2.1.GA, how can i configure this build script to generate files and put them into the right place? BTW, my OS is Mac. Also anther question, it seems like we have problem with the lastest version of Seam, so could anyone points me how can i get the nightly build version of Seam? cheers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080206#4080206 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080206 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems using ajax validation in seam-gen
The problem seems to lie in org.jboss.seam.core.Manager, method restoreAndLockConversation. The first call locks the conversation, the next ones can't lock it and are redirected to an error. Conversation should allow concurrent access, or at least wait for unlock instead of going to error handling View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080205#4080205 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080205 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: naive seam developer tries eclipse
Also ask this in the JBoss Tools / RHDS forums View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080204#4080204 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080204 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: tags not being rendered
No nothing to do with the filter. You've probably forgotten to declare the s: namespace at the top of your facelet (and make sure the jboss-seam-ui.jar is in WEB-INF/lib in your deployed project). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080203#4080203 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080203 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problems using ajax validation in seam-gen
I get the same result as Damian. There must be something wrong inside the handling of conversation View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080202#4080202 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080202 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with Seam mail
Thank you very much! Now maybe I will be ready for the release on monday =) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080196#4080196 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080196 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: tags not being rendered
To clarify the problem: when I access the page that I am working on, the links that are designated with the s:link Facelets tag have not been rendered. An inspection of the received HTML shows that the s:link tags have not been translated into real HTML tags, and remain as the s:link tag, which the browser ignores obviously. This is what I meant when I referred to "filter", because I'm guessing that it's the Seam filter's job to take the Facelets tags and translate them into HTML tags; for some reason, this isn't happening with my setup. Thanks for your help, Jake View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080194#4080194 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080194 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user