hello gnodet,
Now I've changed the logs of the servicemix to debug. I get the following
output (with the same xbean files)
This is the output before deploying the httpconnector configuration sa.
INFO - jetty - Logging to
[EMAIL PROTECTED] via org.apache.ser
vicemix.http.jetty.JCLLogger
INFO - JBIContainer - Activating component for:
[container=ServiceMix,name=servicemix-http] with serv
ice: null component: [EMAIL PROTECTED]
DEBUG - InstallerMBeanImpl - Component class loader:
[org.apache.xbean.classloader.JarFileClassLoader: name=
Component ClassLoader
urls=[file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/components/tcp-bc/version_2/lib/tcp-bc-1.
0-SNAPSHOT.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/components/tcp-bc/version_2/lib/log4j-1.2.12.jar,
fil
e:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/components/tcp-bc/version_2/lib/commons-logging-1.1.jar,
file:/C:/Progra
mme/Apache/ServiceMix3.2.1/data/smx/components/tcp-bc/version_2/lib/xml-apis-1.0.b2.jar,
file:/C:/Programme/Apache/Servi
ceMix3.2.1/data/smx/components/tcp-bc/version_2/lib/xercesImpl-2.8.1.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data
/smx/components/tcp-bc/version_2/lib/stax-api-1.0.1.jar]
[EMAIL PROTECTED]
DEBUG - InstallerMBeanImpl - Component class loader:
[org.apache.xbean.classloader.JarFileClassLoader: name=
Component ClassLoader
urls=[file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/components/tcp-bc/version_2/lib/tcp-bc-1.
0-SNAPSHOT.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/components/tcp-bc/version_2/lib/log4j-1.2.12.jar,
fil
e:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/components/tcp-bc/version_2/lib/commons-logging-1.1.jar,
file:/C:/Progra
mme/Apache/ServiceMix3.2.1/data/smx/components/tcp-bc/version_2/lib/xml-apis-1.0.b2.jar,
file:/C:/Programme/Apache/Servi
ceMix3.2.1/data/smx/components/tcp-bc/version_2/lib/xercesImpl-2.8.1.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data
/smx/components/tcp-bc/version_2/lib/stax-api-1.0.1.jar]
parents=[[org.apache.xbean.classloader.JarFileClassLoader: name
=servicemix-shared
urls=[file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/s
ervicemix-shared-3.2.1.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/li
b/commons-logging-1.1.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib
/xercesImpl-2.8.1.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/ser
vicemix-common-3.2.1.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/
XmlSchema-1.1.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/xml-api
s-1.3.04.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/servicemix-s
oap-3.2.1.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/wss4j-1.5.1
.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/stax-api-1.0.1.jar,
file:/C:/Programme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/woden-1.0.0M6.jar,
file:/C
:/Programme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/servicemix-soap2-3.2.1.jar,
file:
/C:/Programme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/opensaml-1.1.jar,
file:/C:/Prog
ramme/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/bcprov-jdk14-136.jar,
file:/C:/Programm
e/Apache/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/xmlsec-1.3.0.jar,
file:/C:/Programme/Apache
/ServiceMix3.2.1/data/smx/sharedlibs/servicemix-shared/version_1/lib/XmlSchema-1.2.jar]
parents=[org.codehaus.classworld
[EMAIL PROTECTED]
INFO - JBIContainer - Activating component for:
[container=ServiceMix,name=tcp-bc] with service: null
component: [EMAIL PROTECTED]
DEBUG - ManagementContext - Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type
=SystemService,Name=DeploymentService
INFO - DeploymentService - Restoring service assemblies
DEBUG - ManagementContext - Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type
=SystemService,Name=AutoDeploymentService
DEBUG - ManagementContext - Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type
=SystemService,Name=AdminCommandsService
DEBUG - JBIContainer - Adding listener: class
org.apache.servicemix.jbi.monitoring.StatisticsService$3
DEBUG - JMSFlow - ServiceMix: Starting jms flow
INFO - ComponentMBeanImpl - Setting running state for
Component: servicemix-http to Started
INFO - ComponentMBeanImpl - Initializing component:
servicemix-http
DEBUG - HttpComponent - Initializing component
DEBUG - HttpComponent - Component initialized
DEBUG - HttpComponent - Starting component
DEBUG - HttpComponent - Component started
INFO - ComponentMBeanImpl - Setting running state for
Component: tcp-bc to Started
INFO - ComponentMBeanImpl - Initializing component: tcp-bc
INFO - JBIContainer - ServiceMix JBI Container
(ServiceMix) started
INFO - JDBCAdapterFactory - Database driver recognized:
[apache_derby_embedded_jdbc_driver]
DEBUG - ManagementContext - Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type
=SystemService,Name=JdbcAuditor
DEBUG - JBIContainer - Removing listener: class
org.apache.servicemix.jbi.audit.jdbc.JdbcAuditor
DEBUG - ManagementContext - Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type
=SystemService,Name=DotViewService
DEBUG - JBIContainer - Adding listener: class
org.apache.servicemix.jbi.view.DotViewEndpointListener
DEBUG - JBIContainer - Adding listener: class
org.apache.servicemix.jbi.view.DotViewFlowListener
DEBUG - ManagementContext - Registering system service:
org.apache.servicemix:ContainerName=ServiceMix,Type
=SystemService,Name=LogService
DEBUG - LogService - Located logging configuration:
file:/C:/Programme/Apache/ServiceMix3.2.1/conf/l
og4j.xml
log4j: System property is :null
log4j: Standard DocumentBuilderFactory search succeded.
log4j: DocumentBuilderFactory is:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
log4j: debug attribute= "true".
log4j: Threshold ="null".
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [org.apache] additivity to [true].
log4j: Level value for org.apache is [WARN].
log4j: org.apache level set to WARN
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [org.springframework] additivity to [true].
log4j: Level value for org.springframework is [WARN].
log4j: org.springframework level set to WARN
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [org.jencks] additivity to [true].
log4j: Level value for org.jencks is [WARN].
log4j: org.jencks level set to WARN
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [org.apache.activemq] additivity to [true].
log4j: Level value for org.apache.activemq is [WARN].
log4j: org.apache.activemq level set to WARN
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [org.apache.activemq.transport.discovery] additivity to
[true].
log4j: Level value for org.apache.activemq.transport.discovery is [ERROR].
log4j: org.apache.activemq.transport.discovery level set to ERROR
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [org.apache.servicemix] additivity to [true].
log4j: Level value for org.apache.servicemix is [DEBUG].
log4j: org.apache.servicemix level set to DEBUG
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [org.apache.servicemix.jbi.config] additivity to [true].
log4j: Level value for org.apache.servicemix.jbi.config is [WARN].
log4j: org.apache.servicemix.jbi.config level set to WARN
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [org.apache.servicemix.jbi.deployment] additivity to [true].
log4j: Level value for org.apache.servicemix.jbi.deployment is [WARN].
log4j: org.apache.servicemix.jbi.deployment level set to WARN
log4j: Level value for root is [INFO].
log4j: root level set to INFO
log4j: Class name: [org.apache.log4j.ConsoleAppender]
log4j: Setting property [threshold] to [DEBUG].
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%-5p - %-30c{1} - %m%n].
log4j: Adding appender named [CONSOLE] to category [root].
log4j: Class name: [org.apache.log4j.FileAppender]
log4j: Setting property [threshold] to [DEBUG].
log4j: Setting property [file] to [data/log/servicemix.log].
log4j: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4j: Setting property [conversionPattern] to [%d{ABSOLUTE} | %-5p | %-10t
| %-24.24c{1} | %-30.30C %4L | %m%n].
log4j: setFile called: data/log/servicemix.log, true
log4j: setFile ended
log4j: Adding appender named [FILE] to category [root].
INFO - LogTask - Logging system reconfigured using
file: file:/C:/Programme/Apache/ServiceMix3.2
.1/conf/log4j.xml
This is the output after the deploy
DEBUG - JAASAuthenticationService - Authenticating 'smx' with 'smx'
DEBUG - JAASAuthenticationService - Authenticating 'smx' with 'smx'
DEBUG - JAASAuthenticationService - Authenticating 'smx' with 'smx'
DEBUG - JAASAuthenticationService - Authenticating 'smx' with 'smx'
DEBUG - AutoDeploymentService - Unpacked archive
D:\mavenrepository\org\apache\servicemix\httpconnector\htpp_co
nnector-sa\1.0-SNAPSHOT\htpp_connector-sa-1.0-SNAPSHOT.zip to
C:\Programme\Apache\ServiceMix3.2.1\data\smx\tmp\htpp_conn
ector-sa-1.0-SNAPSHOT.0.tmp
DEBUG - SedaFlow - Called Flow suspend
DEBUG - JMSFlow - Called Flow suspend
DEBUG - JCAFlow - Called Flow suspend
DEBUG - AutoDeploymentService - SA dependencies: [servicemix-http]
DEBUG - DeploymentService - Moving
C:\Programme\Apache\ServiceMix3.2.1\data\smx\tmp\htpp_connector-sa-1.0-S
NAPSHOT.0.tmp to
C:\Programme\Apache\ServiceMix3.2.1\data\smx\service-assemblies\htpp_connector-sa\version_1\install
DEBUG - DeploymentService - Unpack service unit archive
C:\Programme\Apache\ServiceMix3.2.1\data\smx\servic
e-assemblies\htpp_connector-sa\version_1\install\http_connector-consumer.su-1.0-SNAPSHOT.zip
to C:\Programme\Apache\Serv
iceMix3.2.1\data\smx\service-assemblies\htpp_connector-sa\version_1\sus\servicemix-http\http_connector-consumer.su
DEBUG - HttpComponent - Deploying service unit
DEBUG - HttpComponent - Looking for
C:\Programme\Apache\ServiceMix3.2.1\data\smx\service-assemblies\htp
p_connector-sa\version_1\sus\servicemix-http\http_connector-consumer.su\xbean.xml:
true
DEBUG - HttpComponent - Service unit deployed
DEBUG - DeploymentService - Unpack service unit archive
C:\Programme\Apache\ServiceMix3.2.1\data\smx\servic
e-assemblies\htpp_connector-sa\version_1\install\http_connector-provider.su-1.0-SNAPSHOT.zip
to C:\Programme\Apache\Serv
iceMix3.2.1\data\smx\service-assemblies\htpp_connector-sa\version_1\sus\servicemix-http\http_connector-provider.su
DEBUG - HttpComponent - Deploying service unit
DEBUG - HttpComponent - Looking for
C:\Programme\Apache\ServiceMix3.2.1\data\smx\service-assemblies\htp
p_connector-sa\version_1\sus\servicemix-http\http_connector-provider.su\xbean.xml:
true
DEBUG - HttpComponent - Service unit deployed
INFO - ServiceAssemblyLifeCycle - Starting service assembly:
htpp_connector-sa
INFO - ServiceUnitLifeCycle - Initializing service unit:
http_connector-consumer.su
DEBUG - HttpComponent - Initializing service unit
DEBUG - HttpComponent - Service unit initialized
INFO - ServiceUnitLifeCycle - Initializing service unit:
http_connector-provider.su
DEBUG - HttpComponent - Initializing service unit
DEBUG - HttpComponent - Service unit initialized
INFO - ServiceUnitLifeCycle - Starting service unit:
http_connector-consumer.su
DEBUG - HttpComponent - Starting service unit
INFO - jetty - jetty-6.1.5
DEBUG - JettyContextManager - Dispatching job:
[EMAIL PROTECTED]
INFO - jetty - Started
[EMAIL PROTECTED]:4444
DEBUG - HttpComponent - Service unit started
INFO - ServiceUnitLifeCycle - Starting service unit:
http_connector-provider.su
DEBUG - HttpComponent - Starting service unit
DEBUG - ComponentContextImpl - Component: servicemix-http
activated endpoint: {http://servicemix.apache.org/http/1.0}provider :
httpprovider
DEBUG - HttpComponent - Querying service description for
ServiceEndpoint[service={http://servicemix.apache.org/http/1.0}provider,endpoint=httpprovider]
DEBUG - HttpComponent - No description found for
{http://servicemix.apache.org/http/1.0}provider:httpprovider
DEBUG - WSDL1Processor - Endpoint
ServiceEndpoint[service={http://servicemix.apache.org/http/1.0}provider,endpoint=httpprovider]
has no service description
DEBUG - HttpComponent - Querying service description for
ServiceEndpoint[service={http://servicemix.apache.org/http/1.0}provider,endpoint=httpprovider]
DEBUG - HttpComponent - No description found for
{http://servicemix.apache.org/http/1.0}provider:httpprovider
DEBUG - WSDL2Processor - Endpoint
ServiceEndpoint[service={http://servicemix.apache.org/http/1.0}provider,endpoint=httpprovider]
has no service description
DEBUG - JCAFlow - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent
[source=ServiceEndpoint[service={http://servicemix.apache.org/http/1.0}provider,endpoint=httpprovider]]
DEBUG - JMSFlow - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent
[source=ServiceEndpoint[service={http://servicemix.apache.org/http/1.0}provider,endpoint=httpprovider]]
DEBUG - HttpComponent - Service unit started
DEBUG - SedaFlow - Called Flow resume
DEBUG - JMSFlow - Called Flow resume
DEBUG - JCAFlow - Called Flow resume
My http Server is running on http://0.0.0.0:8888
The Servicemix http connector: provider and connecting to it via
http://localhost:8888
The Servicemix http connector: consumer is listening on http://0.0.0.0:4444
My http Client is (on an other machine) connecting to Servicemix via
http://10.22.20.113:4444
So when i send a http post to servicemix i get the following debug output on
the servicemix console:
DEBUG - JettyContextManager - Dispatching job:
[EMAIL PROTECTED],io=0,w=true,b=false|false]
DEBUG - HttpComponent - Receiving HTTP request: POST /
HTTP/1.1
Content-Type: text/xml
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.22.20.113:4444
Content-Length: 36
DEBUG - HttpComponent - Created correlation id:
ID:10.22.20.113-11b6d7c9187-2:0
DEBUG - DeliveryChannelImpl - Send
ID:10.22.20.113-11b6d7c9187-2:0 in DeliveryChannel{servicemix-http}
DEBUG - SedaFlow - Called Flow send
DEBUG - HttpComponent - Suspending continuation for
exchange: ID:10.22.20.113-11b6d7c9187-2:0
DEBUG - SedaQueue -
[EMAIL PROTECTED] dequeued
exchange:
InOut[
id: ID:10.22.20.113-11b6d7c9187-2:0
status: Active
role: provider
service: {http://servicemix.apache.org/http/1.0}provider
endpoint: httpprovider
in: <?xml version="1.0" encoding="UTF-8"?><message>this is a
message</message>
]
DEBUG - HttpComponent - Received exchange: status: Active,
role: provider
DEBUG - HttpComponent - Retrieved correlation id:
ID:10.22.20.113-11b6d7c9187-2:0
Exception in thread "HttpClient-1" java.lang.IllegalStateException
at
org.mortbay.jetty.client.HttpConnection$Handler.startRequest(HttpConnection.java:375)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:370)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at
org.mortbay.jetty.client.HttpConnection.handle(HttpConnection.java:236)
at
org.mortbay.jetty.client.HttpClient$SocketConnector$1.run(HttpClient.java:320)
at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
And if I wait a few seconds i get:
DEBUG - JettyContextManager - Dispatching job:
[EMAIL PROTECTED],pending,expired
DEBUG - HttpComponent - Receiving HTTP request: POST /
HTTP/1.1
Content-Type: text/xml
User-Agent: Jakarta Commons-HttpClient/3.1
Host: 10.22.20.113:4444
Content-Length: 36
gnodet wrote:
>
> So the first thing is to use the <http:consumer/> and <http:provider/>
> endpoints and make them work. Then you could look into using your own
> marshalers.
> Does the stack trace you posted refers to these endpoints ? What kind
> of response is received by the provider ? if you put the logs to
> DEBUG, you should have some informations about the response displayed
> in the logs / console.
>
> On Mon, Jul 28, 2008 at 4:26 PM, gigeril <[EMAIL PROTECTED]> wrote:
>>
>> Hello everyone!
>>
>> I have a client-server application which deals messages via http. Now I
>> want
>> to use ServiceMix with the httpConnector to handle the message exchange.
>> Because I need to send plaintext I decided to create my own marshaler to
>> append the messages as CData.
>>
>> Now I have a problem with the xbean.xml files in my provider and consumer
>> su's. In order to work with my own marshaler, I changed the tag
>> <http:endpoint to <http:consumer and <http:provider.
>>
>> But it doesn't work after this changes any more.
>>
>> WARN - jetty - handle failed
>> java.lang.IllegalStateException
>> at
>> org.mortbay.jetty.client.HttpConnection$Handler.startRequest(HttpConnection.java:398)
>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:369)
>> at
>> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
>> at
>> org.mortbay.jetty.client.HttpConnection.handle(HttpConnection.java:240)
>> at
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>> at
>> org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
>>
>>
>> So I tried to exclude the marshaler so that the xbean.xml for the
>> Consumer
>> looks like:
>>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0">
>> <http:consumer service="http:consumer"
>> endpoint="httpconsumer"
>> targetService="http:provider"
>> targetEndpoint="httpprovider"
>> locationURI="http://0.0.0.0:4444/" />
>> </beans>
>>
>> and the xbean.xml of the Provider :
>>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0">
>> <http:provider service="http:provider"
>> endpoint="httpprovider"
>> locationURI="http://localhost:8888/" />
>> </beans>
>>
>>
>> If I specify in the xbean.xml's a <http:endpoint, it works.
>> So i think there could be an error in my configuration but i can't figure
>> out what it is!
>>
>> Please help me…
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Using-own-marshaler-doesn%27t-work-tp18689229p18689229.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
>
>
--
View this message in context:
http://www.nabble.com/Using-own-marshaler-doesn%27t-work-tp18689229p18706538.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.