geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josef.Eis...@bgs-ag.de
Subject Antwort: Re: Re: Re: Re: Antwort: Re: Change Version of Apache CXF for Geronimo
Date Wed, 13 Aug 2008 08:48:29 GMT
Hi Jarek,

concerning the hot-deployment-stuff, I simpy copy my EAR-File into the 
hot-deployment-directory. Same Procedure as in G 2.1.1, but in G 2.1.2 I 
get the NullPointerException. With the console the following procedure 
helps:

1) Deploy with Redeploy-Flag:
Deployment failed:
null
2) Deploy without Redeploy-Flag:
The application was successfully deployed.
The application was successfully started


Thank you very much for your SLF4J-advice. My openejb-Installation 
included these JAR's. After deleting, the error disappeared. :-))
Now I feel we solved almost all problems, WS-Call without Security works, 
but with Security I get the error:

 An error was discovered processing the <wsse:Security> header
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}InvalidSecurity

Stacktrace:
javax.xml.ws.soap.SOAPFaultException: An error was discovered processing 
the <wsse:Security> header
        at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:175)
        at $Proxy21.empfangeDatenbestandDelta(Unknown Source)
        at 
de.mypath.ws.OrigReadWSClientImpl.callWebservice(OrigReadWSClientImpl.java:157)
        at 
de.mypath.ws.OrigReadWSClientImpl.leseDatenbestand(OrigReadWSClientImpl.java:61)
        at 
de.mypath.ws.OrigReadWSClientImplTest.testLeseDatenbestand(OrigReadWSClientImplTest.java:33)
        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.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
        at 
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
        at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
        at 
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
        at 
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
        at 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
        at 
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
        at 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
        at 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
        at 
org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
        at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
        at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
        at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.apache.cxf.binding.soap.SoapFault: An error was discovered 
processing the <wsse:Security> header
        at 
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:70)
        at 
org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:35)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
        at 
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:96)
        at 
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:183)
        at 
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:56)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
        at 
org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:429)
        at 
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1955)
        at 
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1791)
        at 
org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
        at 
org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:575)
        at 
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
        at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
        at 
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
        at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
        ... 24 more

Security-Header:
<wsse:Security xmlns:wsse="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
" soap:mustUnderstand="1">
<wsse:UsernameToken xmlns:wsu="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
" wsu:Id="UsernameToken-25089808">
<wsse:Username>myuser</wsse:Username>
<wsse:Password Type="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest
">7/KJXygtxKrfJlI2zv2EFZtND/I=</wsse:Password>
<wsse:Nonce>C0hrjAbVG5snU9PKIM86OA==</wsse:Nonce>
<wsu:Created>2008-08-13T08:34:25.841Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>

-Josef




"Jarek Gawor" <jgawor@gmail.com> 
12.08.2008 19:47
Bitte antworten an
user@geronimo.apache.org


An
user@geronimo.apache.org
Kopie

Thema
Re: Re: Re: Re: Antwort: Re: Change Version of Apache CXF for Geronimo






On Tue, Aug 12, 2008 at 6:12 AM,  <Josef.Eisele@bgs-ag.de> wrote:
>
> Hi Jarek,
>
> this was  very useful, thank you very much. Now I have 2 other problems:
>
> 1) HotDeployment doesn't work any more:
> 11:59:50,155 ERROR [DirectoryHotDeployer] Unable to undeploy
> java.lang.NullPointerException
>         at
> 
org.apache.geronimo.deployment.plugin.ConfigIDExtractor.identifyTargetModuleIDs(ConfigIDExtractor.java:174)
>         at
> 
org.apache.geronimo.deployment.hot.DirectoryHotDeployer.fileUpdated(DirectoryHotDeployer.java:410)
>         at
> 
org.apache.geronimo.deployment.hot.DirectoryMonitor.scanDirectory(DirectoryMonitor.java:382)
>         at
> 
org.apache.geronimo.deployment.hot.DirectoryMonitor.run(DirectoryMonitor.java:216)
>         at java.lang.Thread.run(Thread.java:595)
> -> Using Server Console -  Install New Application I have to try several
> times with Flag 'Redeploy application' set and unset.

I think I've seen something similar... What files to you drop in the
hot deploy directory?

> 2) Trying to access my Webservice using Java Client leads to:
> 12.08.2008 12:02:02 org.apache.cxf.phase.PhaseInterceptorChain 
doIntercept
> INFO: Interceptor has thrown exception, unwinding now
> java.lang.IllegalStateException: Level number 40 is not recognized.
>         at
> org.slf4j.impl.JDK14LoggerAdapter.log(JDK14LoggerAdapter.java:529)
>         at
> 
org.apache.commons.logging.impl.SLF4JLocationAwareLog.fatal(SLF4JLocationAwareLog.java:196)
>         at org.apache.xml.security.Init.init(Unknown Source)
>         at 
org.apache.ws.security.WSSConfig.staticInit(WSSConfig.java:233)
>         at org.apache.ws.security.WSSConfig.<init>(WSSConfig.java:256)
>         at
> org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:265)
>         at
> 
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:89)
>         at
> 
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
>         at
> 
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
>         at
> 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
>         at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
>         at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
>         at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>         at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
>         at $Proxy20.receiveDataDelta(Unknown Source)
>         at
> 
de.mypath.quelle.ws.OrigReadWSClientImpl.callWebservice(OrigReadWSClientImpl.java:157)
>         at
> 
de.mypath.quelle.ws.OrigReadWSClientImpl.leseDatenbestand(OrigReadWSClientImpl.java:61)
>         at
> 
de.mypath.quelle.ws.OrigReadWSClientImplTest.testLeseDatenbestand(OrigReadWSClientImplTest.java:33)
>         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.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
>         at
> 
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
>         at
> 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
>         at
> 
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
>         at
> 
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
>         at
> 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
>         at
> 
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
>         at
> 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
>         at
> 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
>         at
> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
>         at
> 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
>         at
> 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>         at
> 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>         at
> 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>         at
> 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>         at
> 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> javax.xml.ws.soap.SOAPFaultException: Level number 40 is not recognized.
>         at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:175)
>         at $Proxy20.receiveDataDelta(Unknown Source)
>         at
> 
de.mypath.quelle.ws.OrigReadWSClientImpl.callWebservice(OrigReadWSClientImpl.java:157)
>         at
> 
de.mypath.quelle.ws.OrigReadWSClientImpl.leseDatenbestand(OrigReadWSClientImpl.java:61)
>         at
> 
de.mypath.quelle.ws.OrigReadWSClientImplTest.testLeseDatenbestand(OrigReadWSClientImplTest.java:33)
>         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.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
>         at
> 
org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
>         at
> 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
>         at
> 
org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
>         at
> 
org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
>         at
> 
org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
>         at
> 
org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
>         at
> 
org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
>         at
> 
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
>         at
> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
>         at
> 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
>         at
> 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>         at
> 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>         at
> 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>         at
> 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>         at
> 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: java.lang.IllegalStateException: Level number 40 is not
> recognized.
>         at
> org.slf4j.impl.JDK14LoggerAdapter.log(JDK14LoggerAdapter.java:529)
>         at
> 
org.apache.commons.logging.impl.SLF4JLocationAwareLog.fatal(SLF4JLocationAwareLog.java:196)
>         at org.apache.xml.security.Init.init(Unknown Source)
>         at 
org.apache.ws.security.WSSConfig.staticInit(WSSConfig.java:233)
>         at org.apache.ws.security.WSSConfig.<init>(WSSConfig.java:256)
>         at
> org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:265)
>         at
> 
org.apache.ws.security.handler.WSHandler.doSenderAction(WSHandler.java:89)
>         at
> 
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:169)
>         at
> 
org.apache.cxf.ws.security.wss4j.WSS4JOutInterceptor.handleMessage(WSS4JOutInterceptor.java:43)
>         at
> 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208)
>         at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276)
>         at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222)
>         at
> org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
>         at
> org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
>         ... 24 more
>

I've found this:
http://www.mail-archive.com/user@slf4j.org/msg00364.html so you're
might be running into a similar problem. Does your application include
any of the slf4j libraries? If so, try removing them from your
application or try adding a filter for org.slf4j.impl or org.slf4j.

Jarek


BGS Beratungsgesellschaft 
Software Systemplanung AG 
  
  
  
  
Niederlassung Rhein/Main 
Robert-Koch-Straße 41 
55129 Mainz 
Fon: +49 (0) 6131 / 914-0 
Fax: +49 (0) 6131 / 914-400 
www.bgs-ag.de 
Geschäftssitz Mainz 
Registergericht 
Amtsgericht Mainz 
HRB 62 50 
  
Aufsichtsratsvorsitzender 
Klaus Hellwig 
Vorstand 
Hanspeter Gau 
Hermann Kiefer 
Nils Manegold 

  
Mime
View raw message