-
1. Re: jbpm webapp login
cocampo Dec 12, 2006 9:48 AM (in response to fuligj)Look at the web console that comes with starter's kit.
Regards. -
2. Re: jbpm webapp login
fuligj Dec 13, 2006 7:22 AM (in response to fuligj)Thank You for reply, cocampo!
I Use jBPM Starter's Kit 3.1.3, but the web-console (I think) dosen't exist in that package. At http://localhost:8080/web-console/ cannot find applet.jsp and ServerInfo.jsp .
What is wrong?
Thank you! -
3. Re: jbpm webapp login
cocampo Dec 13, 2006 11:48 AM (in response to fuligj)Mmmm, I think you're accessing JBoss console with that URL, try this:
http://localhost:8080/jbpm
That should bring the jBPM console to your browser.
Regards. -
4. Re: jbpm webapp login
fuligj Dec 14, 2006 8:31 AM (in response to fuligj)Thank You again for reply!
Yes, that's right! I know this site. I have deployed here many workflows and changed the HSQL DB to MySQL DB to change users who can login this site and all of them works fine.
But I would like to change the user-login method to this site. For example: audit the users with their passwords, that comes same from DB.
In jbpm-server\server\jbpm\deploy\jbpm.war there are a login.jsp, that relate to userBean. So i tought, the login method handled by userBean. But not really, because I rewrote it in jbpm-starters-kit-3.1.3\jbpm\src\java.webapp\org\jbpm\webapp\bean, rebuild the jbpm-starters-kit-3.1.3\jbpm\build directory, but nothing become.
So, by wich method handled the login in jbpm webapp? I have read about filters and tomcat valves, but its not clear.
Regards. -
5. Re: jbpm webapp login
cocampo Dec 14, 2006 10:47 AM (in response to fuligj)Well, I haven't seen jBPM 3.1.3 source code, but in 3.1.2 the login bean (action controller) is handled by the same file you're seeing (jbpm-starters-kit-3.1.3\jbpm\src\java.webapp\org\jbpm\webapp\bean\UserBean.java).
However, remeber this is NOT a regular web application, because it uses JavaServer Faces. You can take a look at the faces-config.xml (located in the jbpm.war directory) to see it for yourself how the UserBean is declared as controller for login.jsp.
Hope that helps.
Regards. -
6. Re: jbpm webapp login
kukeltje Dec 14, 2006 8:22 PM (in response to fuligj)hmmm what is it that makes it a non regular webapp by just using jsf? It is the standard ;-)
-
7. Re: jbpm webapp login
fuligj Dec 15, 2006 5:20 AM (in response to fuligj)For example: In userBean.java I have rewrote the return value of function named getUserName() from variable userName to string "test" and rebuild it. The header1.jsp in jbpm.war use this Bean and this function "You are logged in as <%= userBean.getUserName() %>". But this function print the username instead of "test".
So, I don't understand, how can I get the UserBean.
Thank You for reply!
Regards. -
8. Re: jbpm webapp login
cocampo Dec 15, 2006 10:21 AM (in response to fuligj)I don't know all the internals of JSF, but I'll try something like
{userBean.username}
wherever you have <%= userBean.getUserName() %> at this moment.
Regards. -
9. Re: jbpm webapp login
fuligj Dec 18, 2006 8:26 AM (in response to fuligj)But when I deleted all of the jbpm/class files, among others the UserBean.class, in the web console nothing became, works same as before. That is why I dosen't understand, from where get the web console the data.
Regards. -
10. Re: jbpm webapp login
fuligj Jan 3, 2007 6:40 AM (in response to fuligj)So, i have found the jar file, what the web console uses. I would like to manage users and processes through the web-console, so I have begun to develop the admin face, but I have read, that the web console will be improved by the Jboss Team too. Have anybody info thereof, when comes the new web-console in jBPM?
-
11. Re: jbpm webapp login
fuligj Jan 3, 2007 6:40 AM (in response to fuligj)So, i have found the jar file, what the web console uses. I would like to manage users and processes through the web-console, so I have begun to develop the admin face, but I have read, that the web console will be improved by the Jboss Team too. Have anybody info thereof, when comes the new web-console in jBPM?
-
12. Re: jbpm webapp login
kukeltje Jan 3, 2007 12:52 PM (in response to fuligj)there IS a (albeit minimal) webconsole in jbpm. So I have no idea what 'jar' file you found. The 3.2 release of jbpm (currently in beta 1) will contain a highly enhanced webconsole