users@glassfish.java.net

CAN NOT DEPLOY nd RUN a Custom STS under GF Glassfish 3.1.x

From: <forums_at_java.net>
Date: Mon, 24 Oct 2011 11:54:17 -0500 (CDT)

Hello,

I have a problem which is known ;) issue in the newest GF 3.1 :

http://www.java.net/forum/topic/glassfish/glassfish/unable-deploy-simple-sts-under-gf-31x-sts-deploy-ok-under-gf-301

http://javakenai-dev.cognisync.net/forum/topic/glassfish/glassfish/glassfish-v31-cannot-deploy-war-sts-you-can-deploy-v211

I wanted to create a simply STS service, but is not an easy, such have been
wrote on :
http://metro.java.net/guide/Configuring_A_Secure_Token_Service__STS_.html#gfrig

Yeah i may create /build STS , but i can not use and invoke/test him :O :O:

I had change web.xml file , but it not help and it is no the cause:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <servlet>
        <servlet-name>xx.com.pwb.sts.XXSTS</servlet-name>
        *<!-- <servlet-class>*xx.com*.pwb.sts.XXSTS</servlet-class> 
-->*
       
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
        <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet>
       
<servlet-name>com.sun.xml.ws.mex.server.MEXEndpoint</servlet-name>
        *<!--
<servlet-class>com.sun.xml.ws.mex.server.MEXEndpoint</servlet-class>   -->*
       
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
        <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>xx.com.pwb.sts.XXSTS</servlet-name>
        <url-pattern>/XXSTSService</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
       
<servlet-name>com.sun.xml.ws.mex.server.MEXEndpoint</servlet-name>
        <url-pattern>/XXSTSService/mex</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
</web-app>
 

I do not know , what is the ... ?  I had lost 8 hours googling, thinking,
debug, but I do not find out what is the matter.

I do not understand this: i use java /java ee (gf, ejb, jms, metro) 4-5
years , and i can not create a simply STS ;/ ;/ .

My colisc lost 2 days on this problem.   we can not solve that.

If no answers appears I start think that we should use other java ws stacks
(not from Oracle/sun) like an Axis2 wso stacka or .net wcf. 

If secure web services not work properly with gf 3.1.x or later , please tell
me . that wil be an answer too.

I am very , very dissapointed.

I wait for help <-> any advice from You . Regards ;). tomek.

 


--
[Message sent by forum member 'tomekxx11']
View Post: http://forums.java.net/node/856641