[Installation, Configuration & DEPLOYMENT] - Re: IllegalStateException(s) on logout
by kj_newbie
Hello Wolfgang -
Been trying to debug this issue for a week now without success. So, here is some more info. for you on the logout.
Setup: Testing the Java EE JBoss agent with opensso server and a sample app that ships with the agent bits.
using JBOSS 5.0.0.GA (jdk6 build)
On a high level, the logout involves the following steps:
-> Detects the need for logout by intercepting the request
-> Calls the container specific logout handler
-> Even if the logout handler fails, destroy the local session
-> Reset the cookies
PS: The same process works fine for Tomcat container (no exception thrown)
But, everytime we try to logout (when app deployed in JBoss), we get this java.lang.IllegalStateException: Security context is null (thrown from CoyoteAdapter.service() method. Complete stack trace available in previous post)
I am going to try the same thing with JBoss5 (not the kdk 6 build) and see if that makes any difference.
Any help/lead will be greatly appreciated.
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221663#4221663
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221663
17 years
[JBossWS] - Re: Specify WS-Security Handler using JEE standards
by alessio.soldano@jboss.com
"vdurbha" wrote : But the server side endpoint still does not work if I use @HandlerChain annotation instead of @EndpointConfig to set the security handler. After digging into the source code of JBossWS and the log files for a few hours, I understood that for the WS-Security handler to work correctly, it has to be configured as a POST Handler type. When I used @HandlerChain annotation, it is configured as ENDPOINT Handler type. I was not able to find anyway to specify the type of handler in a standard way.
You're right, you can't configure POST handlers using the standard descriptor.
This is a limitation of the native stack; in the case of ws-addresing configuration you can use the standard @Addressing annotation, but there's no similar standard annotation for ws-security. Do you have multiple handlers? Never tried, but I though ws-addresing native impl could work even with ENDPOINT handlers if they're in the right position in the chain and there aren't other handlers in POST (decryption needs to happen first, encryption needs to happen last)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221662#4221662
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221662
17 years
[Installation, Configuration & DEPLOYMENT] - Virtual directory or another solution for my problem
by shakalus
Hello.
I'll describe my problem:
I have few web applications:
app1.war
app2.war
app3.war
...
and now I have jsp pages inside those wars. I'm using apache-tiles, so in fact these jpss are templates and tiles, so they are the same in every application and I wan't to put them in one-global directory.
Assume that I have following files in jsp directory:
/jsp/page1.jsp
/jsp/page2.jsp
and I want to have them accessible in that way:
localhost:8080/app1/page1.jsp
localhost:8080/app2/page1.jsp
localhost:8080/app3/page1.jsp
I can't use virtual-static directories defined in server.xml because I need the same context as applications' context:
<Context path="/app1" appBase="" docBase="/mnt/jsp" reloadable="true"/>
| <Context path="/app2" appBase="" docBase="/mnt/jsp" reloadable="true"/>
| <Context path="/app3" appBase="" docBase="/mnt/jsp" reloadable="true"/>
so of course it doesn't work.
In weblogic application server it is possible by defining virtual directories in weblogic.xml (which is placed in every application) and it works correctly.
<virtual-directory-mapping>
| <local-path>/mnt/jsp</local-path>
| <url-pattern>*.jsp</url-pattern>
| </virtual-directory-mapping>
How can I solve this problem? Mayby there are another technics and solutions instead of virtual directories. What terms should I use searching solution in google or documentation.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221659#4221659
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221659
17 years