[JBoss jBPM] - Not able to login as a different user
by danya
hi all,
I was doing the example given in the ebook "business process management with jboss jbpm" .I added new users to the hsql database but i am not able to login as those newly added users.
I am getting the following error:
HTTP Status 403 - Access to the requested resource has been denied
--------------------------------------------------------------------------------
type Status report
message Access to the requested resource has been denied
description Access to the specified resource (Access to the requested resource has been denied) has been forbidden.
--------------------------------------------------------------------------------
JBossWeb/2.0.1.GA
My process definition is <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2"
| name="simple">
| <swimlane name="hr">
| <assignment actor-id="hr" />
| </swimlane>
| <swimlane name="manager">
| <assignment actor-id="manager" />
| </swimlane>
| <swimlane name="Jobseeker">
| <assignment actor-id="Jobseeker" />
| </swimlane>
|
| <swimlane name="user">
| <assignment actor-id="user"></assignment>
| </swimlane>
|
| <start-state name="Apply for the Job">
| <task name="Applyforjob" swimlane="user">
| <controller>
| <variable access="read,write,required" name="Name" mapped-name="Name"></variable>
| <variable access="read,write,required" name="Marks" mapped-name="Marks"></variable>
| </controller>
| </task>
| <transition to="Resume evaluation" name="sendforEvaluation"></transition>
| <event type="node-enter"></event>
| </start-state>
| <task-node name="Resume evaluation">
| <task name="Resume Evaluation" swimlane="manager">
| <controller>
| <variable access="read,write,required" name="Name" mapped-name="Name"></variable>
| <variable access="read,write" name="Marks" mapped-name="Marks"></variable>
| </controller>
| </task>
| <transition to="Test Evaluation" name="Approved"></transition>
| <transition to="end" name="Rejected"></transition>
| <transition to="validate resume" name="to evaluate"></transition>
| </task-node>
|
| <task-node name="Test Evaluation">
| <task name="valuation" swimlane="manager">
| <controller></controller>
| </task>
| <transition to="end" name="Failed"></transition>
| <transition to="Interview" name="Pass"></transition>
| </task-node>
|
| <task-node name="Interview">
| <task name="interview result" swimlane="manager">
| <controller></controller>
| </task>
| <transition to="Selected " name="interview-cleared"></transition>
| <transition to="end" name="InterviewFailed"></transition>
| </task-node>
|
| <node name="Selected ">
| <transition to="end" name="to end"></transition>
| </node>
|
| <process-state name="validate resume">
| <sub-process name="Validate Mark"/>
| <transition to="end" name="to end"></transition>
| </process-state>
| <end-state name="end"></end-state>
| </process-definition>
I dont know where i have to edit to login as the new user...
Please help me
Thanks,
danya
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179509#4179509
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179509
16 years, 4 months
execute the jpdl whole process
by Denis Bessmertnyj
Hello,
In JPDL examples I see that I need to invoke instance.signal();all time when
I want to visit other step, but what I need to do to execute process once
(execute only one method) and all steps will be executed?
Thanks,
-
Denis
16 years, 4 months
[JBoss jBPM] - java.lang.ClassCastException: $Proxy60 cannot be cast to org
by magnumff
hi
My code is:
Properties props = new Properties();
| props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
| props.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
| props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
|
| InitialContext ctx = new InitialContext();
| LocalCommandServiceHome commandServiceHome = LocalCommandServiceHome) ctx.lookup("ejb/CommandServiceBean");
|
|
I'have librey jbossall-client.jar
I' have this error :
java.lang.ClassCastException: $Proxy60 cannot be cast to org.jbpm.ejb.LocalCommandServiceHome
13:51:39,386 ERROR [STDERR] at com.linksmt.fpap.workflow.workflowUtils.test(workflowUtils.java:32)
13:51:39,386 ERROR [STDERR] at com.linksmt.fpap.controllers.findMeController.handle(findMeController.java:36)
13:51:39,386 ERROR [STDERR] at org.springframework.web.servlet.mvc.AbstractCommandController.handleRequestInternal(AbstractCommandController.java:84)
13:51:39,387 ERROR [STDERR] at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
13:51:39,387 ERROR [STDERR] at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
13:51:39,388 ERROR [STDERR] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:874)
13:51:39,388 ERROR [STDERR] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
13:51:39,388 ERROR [STDERR] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)
13:51:39,389 ERROR [STDERR] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:453)
13:51:39,389 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
13:51:39,390 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
13:51:39,390 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
13:51:39,390 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
13:51:39,391 ERROR [STDERR] at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
13:51:39,391 ERROR [STDERR] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
13:51:39,391 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
13:51:39,392 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
13:51:39,392 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
13:51:39,392 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
13:51:39,393 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
13:51:39,393 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
13:51:39,393 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
13:51:39,394 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
13:51:39,394 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
13:51:39,395 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
13:51:39,395 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
13:51:39,395 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
13:51:39,396 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
13:51:39,396 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
13:51:39,396 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
13:51:39,397 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
13:51:39,397 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
13:51:39,397 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)org.jbpm.ejb.LocalCommandServiceHome
thank you ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179050#4179050
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179050
16 years, 4 months
[JBoss jBPM] - IdentityLoginModule.java, impossibile to avoid IllegalArgume
by sunbeststar
Hi all.
I develop the web-console for jbpm server and I tried to use IdentityManagement component for it. When I access IdenityLoginModule, and call a login() method, I get an IllegalArgumentException, which I cannot avoid in anyhow.
Here is the listing of login method:
public boolean login() throws LoginException {
// get userName and password
NameCallback nameCallback = new NameCallback(null);
PasswordCallback passwordCallback = new PasswordCallback("pass",false);
try {
callbackHandler.handle(new Callback[]{nameCallback, passwordCallback});
} catch (Exception e) {
e.printStackTrace();
throw new LoginException("callback failed");
}
.... .... ....
}
In the first string there is a constructor of NameCallback, which is:
public NameCallback(String prompt) {
if (prompt == null || prompt.length() == 0)
throw new IllegalArgumentException();
this.prompt = prompt;
}
As soon as NameCallback constructor is invoked with a null argument, the code throw IllegalArgumentException immediately, and I cannot do nothing..
Can you explain how is it possible, if this class was tested or if I do something wrong?..
I use JBPM 3.2.2, jbpm-identity.jar-3.2.2 e JDK 1.6.0.
Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179008#4179008
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179008
16 years, 4 months