[Security & JAAS/JBoss] - login page redirect
by jdsignature
I got a issues returning the login page content<html script> instead of the login page from GWT application, here is the jboss server log file, anybody has a clue, thanks so lot.
19:22:22,297 DEBUG [org.apache.catalina.connector.CoyoteAdapter] Requested cookie session id is AA908D5F99F2D9F0F5F4B2E0353A0FB9
2007-12-05 19:22:22,297 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Security checking request POST /Shields-UI/ExecuteSearchService
2007-12-05 19:22:22,297 DEBUG [org.apache.catalina.realm.RealmBase] Checking constraint 'SecurityConstraint[SecurePages]' against POST /ExecuteSearchService --> true
2007-12-05 19:22:22,297 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Calling hasUserDataPermission()
2007-12-05 19:22:22,297 DEBUG [org.apache.catalina.realm.RealmBase] User data constraint has no restrictions
2007-12-05 19:22:22,297 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Calling authenticate()
2007-12-05 19:22:22,297 INFO [STDOUT] I am in the start of authenticate() of ShieldFormAuthenticator.
2007-12-05 19:22:22,297 DEBUG [org.apache.catalina.authenticator.FormAuthenticator] Save request in session 'AA908D5F99F2D9F0F5F4B2E0353A0FB9'
2007-12-05 19:22:22,297 INFO [STDOUT] I am in the place before call the redirect of ShieldFormAuthenticator.
2007-12-05 19:22:22,297 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Failed authenticate() test
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110700#4110700
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110700
18 years, 4 months
[JBoss jBPM] - BpelProcessDefinition(HelloWorld) has no start activities -
by garyaiki
Following bpel userguide, my jbpm-bpel console has a good database connection and the Hello World and TripReservation processes appear in the Process Definitions tab. I'm simply running ant deploy.process from the examples directory.
JBoss 4.2.2GA
jbpm-bpel-1.1GA
MySQL 5.0.37
OS X 10.5.1
15:05:40,550 INFO [DeploymentServlet] deployed process definition: HelloWorld
15:05:46,650 INFO [WebModuleBuilder] packaged web module: hello.war
15:05:46,651 INFO [DeploymentServlet] deployed web module: hello.war
15:05:47,171 INFO [DefaultEndpointRegistry] register: jboss.ws:context=hello,endpoint=GreeterServlet
15:05:47,491 INFO [TomcatDeployer] deploy, ctxPath=/hello, warUrl=.../tmp/deploy/tmp17522hello-exp.war/
15:05:48,095 WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.bpel.graph.def.CompositeActivity - this operation breaks ==
15:05:48,192 ERROR [[/hello]] Exception sending context initialized event to listener instance of class org.jbpm.bpel.integration.server.IntegrationConfigurator
org.jbpm.bpel.BpelException: BpelProcessDefinition(HelloWorld) has no start activities
at org.jbpm.bpel.integration.jms.IntegrationControl.enableInboundMessageActivities(IntegrationControl.java:336)
at org.jbpm.bpel.integration.server.IntegrationConfigurator.contextInitialized(IntegrationConfigurator.java:63)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy44.start(Unknown Source)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy45.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
15:05:48,202 ERROR [StandardContext] Error listenerStart
15:05:48,203 ERROR [StandardContext] Context [/hello] startup failed due to previous errors
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110698#4110698
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110698
18 years, 4 months
[JBoss Seam] - Quartz Asynchronous events at startup
by Hypher
I have been running into problems with Quartz Asynchronous events which are scheduled to fire when the server is shut down. When the server is started again, the events get fired before seam is fully initialized. This occurs because the QuartzDispatcher is marked @Startup and it will cause all post-dated events to be fired as soon as it is created. The component that is handing the asynchronous event relies on other components which are marked @Startup. Since startup order is arbitrary, some of those components won't have been created when the event is fired, causing errors.
The solution I have found to this issue is to override the QuartzDispatcher and wait until seam is initialized to initialize the scheduler:
| @Startup
| @Scope(ScopeType.APPLICATION)
| @Name("org.jboss.seam.async.dispatcher")
| @Install(value=false, precedence=APPLICATION)
| @BypassInterceptors
| public class CustomQuartzDispatcher extends QuartzDispatcher
| {
| @Override
| public void initScheduler()
| {
| /*
| * We don't actually want anything to happen on startup,
| * this will be handled by the post-init startScheduler method
| */
| }
|
| @Observer("org.jboss.seam.postInitialization")
| public void startScheduler()
| {
| super.initScheduler();
| }
| }
|
This approach works perfectly for events which were scheduled before the server went down, and for events scheduled after seam is initialized. However, if a seam component tries to schedule an event during startup, it will fail because the scheduler has not been initialized.
This could be fixed by keeping a queue of events to-be-scheduled in the QuartzDispatcher, and scheduling them with the scheduler once it is initialized.
Does anyone have any ideas about this? I'll create JIRA issue about the startup issue soon.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110688#4110688
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4110688
18 years, 4 months