Hi Colm, I discovered one reason for my errors. It was a missing library (cxf-rt-ws-policy-2.4.1.jar) in my war file.
Unfortunately my service is still not running... INFO: Deploying web application archive mathservice-service-1.0.war 22.07.2011 13:42:01 org.apache.catalina.loader.WebappClassLoader validateJarFile INFO: validateJarFile(/var/lib/tomcat6/webapps/mathservice-service-1.0/WEB-INF/lib/geronimo-servlet_3.0_spec-1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class 22.07.2011 13:42:02 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Error listenerStart 22.07.2011 13:42:02 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Context [/mathservice-service-1.0] startup failed due to previous errors I assume that my dependencies are not complete in my pom.xml file. I attached my sample-project to this mail. I would like to get a pom.xml with only the minimal dependencies included, which are needed to use SAML Token. Kind regards, Jan Am 22.07.2011 10:47, schrieb coheigea [via CXF]: > Hi Jan, > > Could you supply a test-case that shows the problem? > > Colm. > > On Thu, Jul 21, 2011 at 8:42 PM, janb <[hidden email] > </user/SendEmail.jtp?type=node&node=4622275&i=0>> wrote: > > > Hi, > > > > I was able to run all WS-Security Tests provided in Colm O > hEigeartaigh's > > Blog > > http://coheigea.blogspot.com/2011/04/saml-support-in-cxf-240.html > > > > After that I tried to add SAML Authentication Support to my CXF > (Version > > 2.4.1) Demo-WebService. > > I'm trieing to get this running now for a couple of days, but I end up > > getting an Error Message from Tomcat (Version 7.0.19) telling me: > > > > INFO: Deploying web application archive mathservice-service-1.0.war > > 21.07.2011 21:10:15 org.apache.catalina.core.StandardContext > startInternal > > SCHWERWIEGEND: Error listenerStart > > 21.07.2011 21:10:15 org.apache.catalina.core.StandardContext > startInternal > > SCHWERWIEGEND: Context [/mathservice-service-1.0] startup failed due to > > previous errors > > 21.07.2011 21:10:15 org.apache.catalina.startup.HostConfig > deployDirectory > > > > > > My service is running just fine when I remove "wsdlLocation" > parameter in > > "jaxws:endpoint". > > I made shure that my wsdl file can be found (according to catalina LOG > > file). > > If I enable <p:policies/> feature I also end up with the same error > message > > in tomcat. > > The catalina LOG file does not provide any other Error Messages... > > > > This is my spring conf: > > > > <beans xmlns="http://www.springframework.org/schema/beans" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xmlns:jaxws="http://cxf.apache.org/jaxws" > > xmlns:cxf="http://cxf.apache.org/core" > > xmlns:p="http://cxf.apache.org/policy" > > xsi:schemaLocation=" > > http://www.springframework.org/schema/beans > > http://www.springframework.org/schema/beans/spring-beans.xsd > > http://www.springframework.org/schema/context > > http://www.springframework.org/schema/context/spring-context.xsd > > http://cxf.apache.org/core > http://cxf.apache.org/schemas/core.xsd > > http://cxf.apache.org/policy > http://cxf.apache.org/schemas/policy.xsd > > http://cxf.apache.org/jaxws > http://cxf.apache.org/schemas/jaxws.xsd"> > > > > <import resource="classpath:META-INF/cxf/cxf.xml" /> > > > > <bean id="MathServiceBean" > > class="org.talend.services.mathservice.service.MathServiceImpl" /> > > > > <cxf:bus> > > <cxf:features> > > > > <cxf:logging/> > > </cxf:features> > > </cxf:bus> > > > > > > <jaxws:endpoint id="MathService" > > > xmlns:serviceNamespace="http://services.talend.org/MathService" > > serviceName="serviceNamespace:MathServiceProvider" > > endpointName="serviceNamespace:MathServiceProvider" > > implementor="#MathServiceBean" > > address="/MathServiceProvider" > > wsdlLocation="MathService.wsdl"> > > > > > > <jaxws:properties> > > <entry key="ws-security.username" value="bob"/> > > <entry key="ws-security.callback-handler" > > > > > value="org.apache.cxf.systest.ws.wssec10.client.KeystorePasswordCallback"/> > > <entry key="ws-security.signature.properties" > > > > value="org/apache/cxf/systest/ws/wssec10/client/bob.properties"/> > > <entry key="ws-security.encryption.properties" > > > > value="org/apache/cxf/systest/ws/wssec10/client/alice.properties"/> > > <entry key="ws-security.encryption.username" value="alice"/> > > </jaxws:properties> > > </jaxws:endpoint> > > </beans> > > > > > > I don't know how to continue... > > > > Any help would be very much appreciated! > > > > Kind Regards > > Jan > > > > -- > > View this message in context: > http://cxf.547215.n5.nabble.com/SAML-Support-in-CXF-tp4620749p4620749.html > > Sent from the cxf-user mailing list archive at Nabble.com. > > > > > > -- > Colm O hEigeartaigh > > http://coheigea.blogspot.com/ > Talend - http://www.talend.com > > > ------------------------------------------------------------------------ > If you reply to this email, your message will be added to the > discussion below: > http://cxf.547215.n5.nabble.com/SAML-Support-in-CXF-tp4620749p4622275.html > > To unsubscribe from SAML Support in CXF, click here > <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4620749&code=amFuLmJlcm5oYXJkdEBzb3BlcmEuY29tfDQ2MjA3NDl8MTg2OTU2MzI2MA==>. > -- View this message in context: http://cxf.547215.n5.nabble.com/SAML-Support-in-CXF-tp4620749p4622790.html Sent from the cxf-user mailing list archive at Nabble.com.
