Hi Sandeep,

The exception looks for me is that your SA package isn't correct.

If unzip your changepassword-sa-3.2.1.zip, I get a folder named changepassword-sa-3.2.1, and in changepassword-sa-3.2.1 we get
bean-su-3.2.1
http-consumer-su-3.2.1
http-provider-su-3.2.1
META-INF
routing-su-3.2.1
validate-su-3.2.1

It's not correct, unzip SA.zip we should get META-INFO folder directly and some other SU package file, you can see the SA in cxf-wsdl-first example as we shipped in the kit. Did you use use jbi-maven-plugin to package your SA?

Freeman


sandeep reddy wrote:
Hi Freeman,

   Thanks for the response.Since i can't upload total zip file, just deleted
lib folder's from respective su's may be that's giving the problem.

So, I am breaking into 2 parts.
changepassword-sa-3.2.1 contains all su's except validate-su which is there
is in changepassword-sa-3.2.1-sa-part2-zip.

You need to take validate-su.zip file from changepassword-part2 folder and
paste in changepassword-sa-3.2.1.And deploy that zip file.

http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1.zip
changepassword-sa-3.2.1.zip http://www.nabble.com/file/p18706673/changepassword-sa-3.2.1-part2.zip changepassword-sa-3.2.1-part2.zip
Thanks,
Sandeep.


Freeman Fang wrote:
Hi Sandeep,
I can't deploy the sa you append here, get error
javax.jbi.management.DeploymentException: <?xml version="1.0" encoding="UTF-8"?> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"; version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to find jbi descriptor: /local/apache-servicemix-3.2.2/hotdeploy/changepassword-sa-3.2.1.zip</loc-message>
</msg-loc-info>
</task-status-msg>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
</jbi-task-result>
</jbi-task>

at org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:387) at org.apache.servicemix.jbi.framework.AutoDeploymentService.failure(AutoDeploymentService.java:373) at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:237) at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664) at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62) at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)

Seems the package isn't correct, it's the one you used ?

Regards
Freeman

sandeep reddy wrote:
You mean your sa can work with logger org.apache.servicemix" at DEBUG level but not work at WARN level?
Yes and even at INFO level also.

And here I am attaching SA which you can reproduce the problem with above
level's in log4j.xml file.

http://www.nabble.com/file/p18705999/changepassword-sa-3.2.1.zip
changepassword-sa-3.2.1.zip
Thanks,
Sandeep.


Freeman Fang wrote:
Hi,


You mean your sa can work with logger org.apache.servicemix" at DEBUG level but not work at WARN level?
Is it possible that you append your sa (simplify to reproduce the problem and don't include your business code) which would be very helpful for us to investigate this problem.

Regards
Freeman
sandeep reddy wrote:
Hi servicemix-guys,

       I am facing problem with log4j.xml settings.Deployed
changepassword-sa.3.2.1.jar file in hotdeploy with this log4j.xml
settings.

<logger name="org.apache">
        <level value="WARN"/>
    </logger>
    <logger name="org.apache.camel">
        <level value="WARN"/>
    </logger>
    <logger name="org.springframework">
        <level value="WARN"/>
    </logger>
    <logger name="org.jencks">
        <level value="WARN"/>
    </logger>
    <logger name="org.apache.activemq">
        <level value="WARN"/>
    </logger>
    <logger name="org.apache.activemq.transport.discovery">
        <level value="ERROR"/>
    </logger>
    <logger name="org.apache.servicemix">
        <!-- To enable debug logging, replace the INFO by DEBUG -->
        <level value="WARN"/>
    </logger>
    <logger name="org.apache.servicemix.jbi.config">
        <level value="WARN"/>
    </logger>
    <logger name="org.apache.servicemix.jbi.deployment">
        <level value="WARN"/>
    </logger>

After hitting request it fails with below Errors.

ERROR - HttpComponent                  - Error processing exchange
InOut[
  id: ID:127.0.0.2-11b6964777a-13:1
  status: Active
  role: provider
  service:
{http://servicemix.in2m.com/operations/changepassword}PortalService
  endpoint: portalEndpoint
  in: Unable to display: java.io.IOException: Stream closed
]
com.ctc.wstx.exc.WstxIOException: Stream closed
        at
com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
        at
com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
        at
com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:660)
        at
com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:331)
        at
org.apache.servicemix.jbi.jaxp.StAXSourceTransformer.toXMLStreamReader(StAXSourceTransformer.java:86)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:218)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:127)
        at
org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:92)
        at
org.apache.servicemix.http.processors.ProviderProcessor.writeMessage(ProviderProcessor.java:326)
        at
org.apache.servicemix.http.processors.ProviderProcessor.process(ProviderProcessor.java:130)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
        at
org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: Stream closed
        at
java.io.BufferedInputStream.getBufIfOpen(BufferedInputStream.java:145)
        at
java.io.BufferedInputStream.read(BufferedInputStream.java:304)
        at
sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411)
        at
sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183)
        at java.io.InputStreamReader.read(InputStreamReader.java:167)
        at
com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
        at
com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
        at
com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
        ... 19 more

Since in production i can't have debug mode i need to have the above
settings in log4j.xml file.
Please help me.....

Thanks,
Sandeep.



Reply via email to