[JBossWS] - BASIC-AUTH LOGOUT
by florian79
my environment:
jboss4.2.2GA
EJB3
JAX-WS
I deploy my stateless session beans as @WebService and configure it as:
| @WebContext(contextRoot="bla", urlPattern = "bla", authMethod ="BASIC", transportGuarantee ="NONE", secureWSDLAccess = true)
|
For the authMethod=BASIC i use a class which implements javax.security.auth.spi.LoginModule as described by JAAS
everything works very fine including the login!
BUT:
how can I call the LoginModule.logout() using a webservice method? I can see by debuging, that the method is called sometimes - but from which event?
I have acess to the following ressources in my SessionBean:
| @Resource() private WebServiceContext wsContext;
| @Resource private SessionContext sessionContext;
|
How to control the call to LoginModule.logout() ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165343#4165343
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165343
17 years, 9 months
[Installation, Configuration & DEPLOYMENT] - Error in shutdown using jboss_init_redhat.sh
by thalupula
Hi,
I'm getting below error when i run shutdown command to shutdown my remote server(redhat). Starting of server is working fine. I want restart my server because i found a oom error in log ( 2008-07-17 23:38:18,134 ERROR [STDERR] java.lang.OutOfMemoryError: PermGen space).
/opt/jboss-4.2.2.GA/bin/jboss_init_redhat.sh stop
Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 [Root exception is javax.naming.CommunicationException: Failed to retrieve stub from server localhost:1099 [Root exception is java.io.EOFException]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.Shutdown.main(Shutdown.java:214)
Caused by: javax.naming.CommunicationException: Failed to retrieve stub from server localhost:1099 [Root exception is java.io.EOFException]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:268)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
... 4 more
Caused by: java.io.EOFException
at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2498)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1273)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:256)
... 5 more
Any help greatly appreciated.
Regards,
Ravi Thalupula
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165333#4165333
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165333
17 years, 9 months
[JBoss jBPM] - Re: How to deploy a BPEL process using the APIs?
by dhanushgopinath
Alex,
I moved this entire deployment to a Webservice Impl that is deployed on a JBOSS AS. So no I presume I can use the default DataSource and not the Hibernate Server Mode over TCP.(Am I right??)
I am using the default Data Source, but still the same issue is coming.
The issue is18:40:58,385 INFO [TomcatDeployer] deploy, ctxPath=/Workflow3, warUrl=.../tmp/deploy/tmp55362Workflow3-exp.war/
| 18:40:59,103 ERROR [[/Workflow3]] Exception sending context initialized event to listener instance of class org.jbpm.bpel.integration.server.IntegrationConfigurator
| org.jbpm.bpel.BpelException: process not found: name=Workflow3, targetNamespace=http://www.altair.com/Workflow3, version=null
| at org.jbpm.bpel.deploy.DeploymentDescriptor.findProcessDefinition(DeploymentDescriptor.java:89)
| at org.jbpm.bpel.integration.server.IntegrationConfigurator.contextInitialized(IntegrationConfigurator.java:56)
if you look at it you can see that when I am trying to deploy the web module it is not able to find the process that was deployed.
In this case graphSession.findLatestProcessDefinition is returning null
Why is it not able to find?
After deploying the process definition i tried to use the same API to find the process definition using the following code: In this case I was able to get it
| if (processDefinition instanceof BpelProcessDefinition)
| {
| BpelGraphSession graphSession = BpelGraphSession.getContextInstance(jbpmContext);
| graphSession.deployProcessDefinition((BpelProcessDefinition) processDefinition);
|
| ProcessDefinition processDefinition2 = graphSession.findLatestProcessDefinition(processDefinition.getName(),"http://www.altair.com/Workflow3");
| }
|
in this case processDefinition2 was identical as processDefinition.
But when I go ahead and deploy web module, it tries to find the deployed process definition it is returned null. Why is this happening.
Is there anything else I need to do ?
Please let me know. I am following the same code base as given earlier.
Thanks
Dhanush
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165325#4165325
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165325
17 years, 9 months