[JBoss jBPM] - Assign problem
by Turanyi
I generate new project. The only thing I create is assign activity.
First deploy done but process don't work. I look to example hello and throw off generated tags and write new example like.
Next problem I solve is add query to because generated WSDL schema use complexType ulike hello example where only part is used.
When I assign straight from one variable to another everything is fine but when I try to assign expression concat('text', getVariableData('input', 'payload', '/tns:input')) process stop working.
| <types>
| <schema targetNamespace="http://eclipse.org/bpel/text" xmlns="http://www.w3.org/2001/XMLSchema">
| <element name="textRequest">
| <compexType>
| <sequence>
| <element name="input" type="string"/>
| </sequence>
| </compexType>
| </element>
| ...
|
| <message name="textRequestMessage">
| <part name="payload" element="tns:textRequest"/>
| </message>
|
| BPEL
| <bpws:assign name="textAssign">
| <bpws:copy keepSrcElementName="yes">
| <bpws:from>
| <expression>concat('text ', concat('text', getVariableData('input', 'payload', '/tns:payload/input'))</expression>
| </bpws:from>
| <bpws:to part="payload" variable="output" query="/tns:payload/result"/>
| </bpws:copy>
| </bpws:assign>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179726#4179726
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179726
17 years, 7 months
[JBoss Portal] - UTF8 in login page
by DanielK
If i am using umlauts as login name or in my password, FormAuthentication fails because of wrong input. I have just tried to set encoding for my form:
<form action="j_security_check" method="post" enctype="UTF-8">
Not working anyway. I tried to login with name "testü" but all i can see in server.log was:
[org.jboss.portal.identity.ldap.LDAPExtUserModuleImpl] No user found with name: testÃÂÃ
Like you can see i am using LDAPModule and FORM authentication. I have googled to set right encoding type for FORM authentication but all i have found was this:
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=7&...
Description that you could set encoding type for tomcat:
<Valve className="org.apache.catalina.authenticator.FormAuthenticator" characterEncoding="UTF-8"/>
does not work (or i do not know how), because all i have found in JBoss was (jboss-service.xml):
<java:property>
| <java:key>FORM</java:key>
| <java:value>org.apache.catalina.authenticator.FormAuthenticator</java:value>
| </java:property>
I see no possibility to set encoding type there? Please help me, how can i use special characters like "ü" (german umlauts like "ue" are not really possible in this forum ?) in my login credentials?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179720#4179720
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179720
17 years, 7 months
[JBoss Portal] - Re: creating our own login page
by DanielK
In your login.jsp just put in that code:
<form action="j_security_check" method="post" enctype="UTF-8">
| <input id="j_username" type="text" value="" name="j_username"/>
| <input id="j_password" type="password" value="" name="j_password"/>
| <input type="submit" value="Login" />
| </form>
It is important to use "j_security_check in your action, because of container managed security. If you have not configured LoginModules in JBoss, please look first how to do that. Also important are right IDs for input fields. Take care that there are no typos.
If your credentials are right you will be authorized and logged in. To check whether or not logged in, you can check if renderRequest.getUserPrincipal() is not null. In Portlets i mean it was (PortletRequest) request instead of renderRequest - parameter from method you must implement in your portlet. Another possibility is to use roles and security constraints.
Which pages are called for wrong credentials or general errors, you can configure here:
[JBOSS_HOME]/server/default/deploy/jboss-portal.sar/portal-server.war/WEB-INF/web.xml
Just search for login.jsp or error.jsp.
Why you get an exception i can not tell you because of lack of informations. You did not say where this exception occours (Portlet, JSP another palace ?) or under which circumstances it occours.
I hope it helped a little bit,
DanielK
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179717#4179717
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179717
17 years, 7 months