[Security & JAAS/JBoss] - Re: NPE in ExtendedFormAuthenticator
by leegreiner
This was our solution:
| package edu.duke.dcri.web.tomcat.security;
|
| import java.io.IOException;
| import org.apache.catalina.connector.Request;
| import org.apache.catalina.connector.Response;
| import org.apache.catalina.deploy.LoginConfig;
|
| public class ExtendedFormAuthenticator extends org.jboss.web.tomcat.security.ExtendedFormAuthenticator
| {
|
| public ExtendedFormAuthenticator()
| {
| }
|
| public boolean authenticate(Request request, Response response, LoginConfig config)
| throws IOException
| {
| boolean alreadyAuthenticated = false;
| try
| {
| alreadyAuthenticated = super.authenticate(request, response, config);
| }
| catch(NullPointerException npe) { }
| return alreadyAuthenticated;
| }
| }
|
When the NullPointerException is raised there is no session and the authenticator returns false, the desired effect.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163364#4163364
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163364
17 years, 9 months
[JBoss jBPM] - Variable
by jorjao
Hi. I'm new developer in JBPM.
I have a question.
I have a process-state and would like to send n parameters. How is that I can indicate the value of these parameters?
<process-state name="controlo_documentos">
| <sub-process name="controlo_documentos"></sub-process>
| <variable access="read,write,required" name="form"></variable>
| <variable access="read,write,required" name="grupo_elaborantes"></variable>
| <variable access="read,write,required" name="grupo_verificacao"></variable>
| <variable access="read,write,required" name="grupo_aprovacao"></variable>
| <variable access="read,write,required" name="grupo_publicacao"></variable>
| <variable access="read,write,required" name="grupo_detentores"></variable>
|
| <transition to="join1"></transition>
| </process-state>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163356#4163356
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163356
17 years, 9 months
[Installation, Configuration & DEPLOYMENT] - JBoss SEAM configuration
by ndhenry
I have integrated SEAM into my JBoss AS environment. I followed all the steps from the official site on how to integrate SEAM with JBoss AS.
My environment is SUSE Linux v10_64-bit/JBoss AS 4.2.2GA/JBoss SEAM v1.2.1 GA.
On starting JBoss AS I see JBoss start successfully and the war file deployment failing for all of the SEAM components.
I checked the JBoss logs for some indication of what might be wrong. There isn't anything there to point me in a specific direction.
Here is some of what I see when I deploy JBoss AS:
loyment failed
state: FAILED
watch: file:/opt/jboss-4.2.2.GA/server/default/deploy/jboss-seam-booking.ear
altDD: null
lastDeployed: 1215622345311
lastModified: 1215622344000
mbeans:
persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase state: Started
jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=AuthenticatorAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=BookingListAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=ChangePasswordAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelBookingAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelSearchingAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=RegisterAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam.jar,name=Dispatcher,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam.jar,name=TransactionListener,service=EJB3 state: Started
org.jboss.deployment.DeploymentInfo@7dfa926c { url=file:/opt/jboss-4.2.2.GA/server/default/deploy/jboss-seam-dvd.ear }
deployer: org.jboss.deployment.EARDeployer@6f03fcaa
status: Deployment FAILED reason: URL file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp237jboss-seam-dvd.ear-contents/jboss-seam-dvd-exp.war/ deployment failed
state: FAILED
watch: file:/opt/jboss-4.2.2.GA/server/default/deploy/jboss-seam-dvd.ear
altDD: null
lastDeployed: 1215622348904
lastModified: 1215622348000
mbeans:
persistence.units:ear=jboss-seam-dvd.ear,jar=jboss-seam-dvd.jar,unitName=dvdDatabase state: Started
jboss.j2ee:ear=jboss-seam-dvd.ear,jar=jboss-seam-dvd.jar,name=AcceptAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-dvd.ear,jar=jboss-seam-dvd.jar,name=AuthenticatorAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-dvd.ear,jar=jboss-seam-dvd.jar,name=CheckoutAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-dvd.ear,jar=jboss-seam-dvd.jar,name=EditCustomerAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-dvd.ear,jar=jboss-seam-dvd.jar,name=SearchAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-dvd.ear,jar=jboss-seam-dvd.jar,name=ShipAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-dvd.ear,jar=jboss-seam-dvd.jar,name=ShoppingCartBean,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-dvd.ear,jar=jboss-seam-dvd.jar,name=ShowOrdersAction,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-dvd.ear,jar=jboss-seam-dvd.jar,name=StoreManagerBean,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-dvd.ear,jar=jboss-seam.jar,name=Dispatcher,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-dvd.ear,jar=jboss-seam.jar,name=TransactionListener,service=EJB3 state: Started
org.jboss.deployment.DeploymentInfo@490ba4c6 { url=file:/opt/jboss-4.2.2.GA/server/default/deploy/jboss-seam-issues.ear }
deployer: org.jboss.deployment.EARDeployer@6f03fcaa
status: Deployment FAILED reason: URL file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp238jboss-seam-issues.ear-contents/jboss-seam-issues-exp.war/ deployment failed
state: FAILED
watch: file:/opt/jboss-4.2.2.GA/server/default/deploy/jboss-seam-issues.ear
altDD: null
lastDeployed: 1215622351980
lastModified: 1215622351000
mbeans:
persistence.units:ear=jboss-seam-issues.ear,jar=jboss-seam-issues.jar,unitName=entityManager state: Started
jboss.j2ee:ear=jboss-seam-issues.ear,jar=jboss-seam-issues.jar,name=CommentEditorBean,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-issues.ear,jar=jboss-seam-issues.jar,name=IssueEditorBean,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-issues.ear,jar=jboss-seam-issues.jar,name=IssueFinderBean,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-issues.ear,jar=jboss-seam-issues.jar,name=IssueProjectSelectorBean,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-issues.ear,jar=jboss-seam-issues.jar,name=ProjectEditorBean,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-issues.ear,jar=jboss-seam-issues.jar,name=ProjectFinderBean,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-issues.ear,jar=jboss-seam-issues.jar,name=ProjectSelectorBean,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-issues.ear,jar=jboss-seam-issues.jar,name=UserEditorBean,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-issues.ear,jar=jboss-seam.jar,name=Dispatcher,service=EJB3 state: Started
jboss.j2ee:ear=jboss-seam-issues.ear,jar=jboss-seam.jar,name=TransactionListener,service=EJB3 state: Started
--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:war=jboss-seam-booking.war,id=1975855963
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp236jboss-seam-booking.ear-contents/jboss-seam-booking-exp.war/ deployment failed
ObjectName: jboss.web.deployment:war=jboss-seam-dvd.war,id=-874018418
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp237jboss-seam-dvd.ear-contents/jboss-seam-dvd-exp.war/ deployment failed
ObjectName: jboss.web.deployment:war=jboss-seam-issues.war,id=-2138990691
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp238jboss-seam-issues.ear-contents/jboss-seam-issues-exp.war/ deployment failed
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=jboss-seam-dvd.war,id=-874018418
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp237jboss-seam-dvd.ear-contents/jboss-seam-dvd-exp.war/ deployment failed
ObjectName: jboss.web.deployment:war=jboss-seam-booking.war,id=1975855963
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp236jboss-seam-booking.ear-contents/jboss-seam-booking-exp.war/ deployment failed
ObjectName: jboss.web.deployment:war=jboss-seam-issues.war,id=-2138990691
State: FAILED
Reason: org.jboss.deployment.DeploymentException: URL file:/opt/jboss-4.2.2.GA/server/default/tmp/deploy/tmp238jboss-seam-issues.ear-contents/jboss-seam-issues-exp.war/ deployment failed
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163350#4163350
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163350
17 years, 9 months