[JBoss Seam] - seam component not found: user
by arnieAustin
I used to have this working but now it doesn't. When I click the Login button on my form, I'm getting an error back on the user name field of "conversion error". My guess is its getting a null pointer exception because seam isn't creating the user object before trying to populate the variables:
anonymous wrote :
| 2006-11-07 10:53:51,031 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
| 2006-11-07 10:53:51,031 DEBUG [org.jboss.seam.Component] seam component not found: user
| 2006-11-07 10:53:51,031 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
| 2006-11-07 10:53:51,125 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: user
| 2006-11-07 10:53:51,125 DEBUG [org.jboss.seam.Component] seam component not found: user
| 2006-11-07 10:53:51,125 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name
|
My project has:
User.class - just a pojo, NOT an entity (the data is loaded from LDAP, just for authentication and authorization)
Userlogin & UserLoginAction - displays the login form and attempts the login, which handled by using the injected User object which just holds the form field values and the resultant LDAP info IF they authenticate.
Apparently, seam cannot find the User class. Its in the EJB.jar file, there is a seam.properties file in the jar. User as a @Name("user") annotation. I've tried User and user (is seam case sensitive?
I don't envision UserLogin sticking around but its currently:
@Stateful
@Name("userLogin")
@Scope(ScopeType.CONVERSATION)
public class UserLoginAction implements UserLogin ...
But I still cannot get it to work. Is every class that I need to be "injected" by Seam going to have to be an EJB3 "stateful" class?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983844#3983844
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983844
19Â years, 6Â months
[JBoss jBPM] - Calling a workflow directly from another webpage link.
by falazar
>From the 3.2 dev version, I am attempting to start a process directly using the link and hidden form provided on the
participant/startnew.jsf
page.
The code looks something like this:
<a href="#" onclick="clear_linkDummyForm();document.forms['linkDummyForm'].elements['linkDummyForm:_link_hidden_'].value='newExe1921';document.forms['linkDummyForm'].elements['processDefinitionId'].value='1921';if(document.forms['linkDummyForm'].onsubmit){if(document.forms['linkDummyForm'].onsubmit()) document.forms['linkDummyForm'].submit();}else{document.forms['linkDummyForm'].submit();}return false;" id="newExe1921">
Start Process!
<!--
function clear_linkDummyForm() {
var f = document.forms['linkDummyForm'];
f.elements['linkDummyForm:_link_hidden_'].value='';
f.elements['processDefinitionId'].value='';
f.target='';
}
clear_linkDummyForm();
//-->
And when I click the form (from another plain HTML page, outside of the JBPM set)
Several things happen.
It requires you to login to get into JBPM... this is fine, and wanted behavior.
But then, it just goes to the startnew.jsf page.
If I do it again, it will go ahead and go to the start process form.
and every other time it will alternate the behaviour.
I know it is setting something somewhere, but Im not sure exactly what.
But basically it has been asked that we be able to spread the start links around, for use directly in the area we are working with, such as HR or Mainteneance, or anything.
James Ratcliff
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983843#3983843
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983843
19Â years, 6Â months
[JBoss Messaging] - Re: Messages delivery stops after a while
by lieth78
Yes, the client is on the same machine as JBoss.
Actually, the web application is accessed as a web service (using Axis1.4), and the client invokes the readMessages service to get the messages from the queue.
I looked back at the code of the web application, and I noticed something poorly coded that could explain the issue: each time the readMessages service is invoked, a JMS consumer is created by calling the queueSession.createReceiver method! As the client perpetually invokes the readMessages service, I think the creation of consumer instances is overloaded and fails.
I changed the code to create only one instance of consumer (when the readMessages service is invoked for the first time by this specific client): it seems that the client can access the 10,000 messages now!
Thanks for your help!
But thinking further about the issue, I would like to know if this behavior is a JBoss Messaging limitation or an environment configuration problem: what if 20 or so clients simultaneously invoke the readMessages service? Will the consumer instance creation be overloaded too?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983842#3983842
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983842
19Â years, 6Â months
Migrate cms RDBMS to FS
by Eros
Can i migrate my content of CMS in JbossPortal of RDBMS to FS?
I need this, because i change my porto for use 100% FS and i cannot lose my content.
Is possible?
[]´s
Eros
19Â years, 6Â months