[JBoss jBPM] - Re: Decision node always taking first option
by Arutha
Razieh,
I don't see the connection with my question.
It seems you're talking about buttons or such on JSP/JSF by the looks of the names on your Java-code, I'm not using any JSP/JSF. In fact, I'd like to solve this without any Java-code at all.. or SQL, for that matter. Purely in the process definition file, using the decision nodes....
I can get it to work writing a class extending DecisionHandler, but it's not practical to code a new class or even part of the same for each decision node.
My problem is simply this: the decision node always takes the first transition, no matter the condition. I want to be able to make choices based on a Pojo in working memory. The Pojo is accesible (read first post) and getters work fine. It must be a problem with the condition of the condition node.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083488#4083488
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083488
18 years, 8 months
[Installation, Configuration & DEPLOYMENT] - Setting UseJBossWebLoader=true gives error in JSF Web app
by jainsau
I changed the UseJBossWebLoader property to true in jboss-4.2.0.GA\server\default\deploy\jboss-web.deployer\META-INF\jboss-service.xml. After this change, I am unable to run my JSF web app. I get the following error when I access my app from IE:
java.lang.UnsupportedOperationException
javax.faces.context.FacesContext.getELContext(FacesContext.java:137)
javax.faces.component.UIViewRoot.setLocale(UIViewRoot.java:888)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.createView(JspViewHandlerImpl.java:130)
com.sun.facelets.FaceletViewHandler.createView(FaceletViewHandler.java:639)
org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:144)
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
When I change it back to false, it works fine. What could be the problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083477#4083477
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083477
18 years, 8 months
[JBoss Portal] - Re: No principals found in domain error
by kpalania
public boolean implies(ProtectionDomain domain, Permission permission)
| {
| // Check the
| boolean isJaccPermission = permission instanceof EJBMethodPermission
| || permission instanceof EJBRoleRefPermission
| || permission instanceof WebResourcePermission
| || permission instanceof WebRoleRefPermission
| || permission instanceof WebUserDataPermission;
| boolean implied = false;
| // If there are external permission types check them
| if( isJaccPermission == false && externalPermissionTypes.length > 0 )
| {
| Class pc = permission.getClass();
| for(int n = 0; n < externalPermissionTypes.length; n ++)
| {
| Class epc = externalPermissionTypes[n];
| if( epc.isAssignableFrom(pc) )
| {
| isJaccPermission = true;
| break;
| }
| }
| }
|
| if (isJaccPermission == false)
| {
| // Let the delegate policy handle the check
| implied = delegate.implies(domain, permission);
| }
| else
| {
| if (trace)
| {
| log.trace("implies, domain=" + domain + ", permission=" + permission);
| try
| {
| Subject caller = (Subject) PolicyContext.getContext("javax.security.auth.Subject.container");
| log.trace("implies javax.security.auth.Subject.container: "+caller);
| }
| catch(Throwable e)
| {
| log.trace("Failed to access Subject context", e);
| }
| }
| String contextID = PolicyContext.getContextID();
| ContextPolicy contextPolicy = (ContextPolicy) activePolicies.get(contextID);
| if (contextPolicy != null)
| implied = contextPolicy.implies(domain, permission);
| else if (trace)
| log.trace("No PolicyContext found for contextID=" + contextID);
| }
| if (trace)
| {
| log.trace("implied=" + implied);
| }
| return implied;
| }
It is this piece of code in DelegatingPolicy.java that is relevant to my case (I'm pretty sure). In the case where it fails, isJaccPermission is FALSE. Now, how do I fix this :(
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083476#4083476
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083476
18 years, 8 months