You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-user@ws.apache.org by dchou <da...@lmco.com> on 2007/04/26 01:21:50 UTC
trouble building new wsn-producer.war file
Hello,
I am able to drop the sample wsn-producer.war and wsn-consumer.war files
into my Tomcat and they run fine when I run the WsnTestClient. However, when
I do a wsdl2java build in the wsn-producer directory then build an new war
using Ant. I get an error message with this newly created wsn-producer.war.
I have changed no code. Only performed wsdl2java and ant. The steps and
error I get when I run the WsnTestClient is as follows:
$wsdl2java -j2ee axis2 -overwrite -wsdl wsdl/WsResource.wsdl
$ ant-1.6.5/bin/ant
$ I then run the test client, WsnTestClient and get the following output:
[CLIENT TRACE] SOAP envelope contents (outgoing):
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Header>
<wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://166.21.9.161:8080/wsn-producer/services/WsResource</wsa:To>
<wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
<wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:f6255f7a-9b73-1057-4620-a4ec2be5ff0a</wsa:MessageID>
<wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
</wsa:From>
</soap:Header>
<soap:Body>
<wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
<wsnt:ConsumerReference>
<wsa:Address
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://166.21.9.175:8060/wsn-consumer/services/consumer</wsa:Address>
</wsnt:ConsumerReference>
</wsnt:Subscribe>
</soap:Body>
</soap:Envelope>
[Fatal Error] :1:1040: The element type "HR" must be terminated by the
matching end-tag "</HR>".
org.apache.muse.ws.addressing.soap.SoapFault: The element type "HR" must be
terminated by the matching end-tag "</HR>".
at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:298)
at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
at
org.apache.muse.ws.notification.remote.NotificationProducerClient.subscribe(NotificationProducerClient.java:97)
at org.apache.muse.test.wsn.WsnTestClient.main(Unknown Source)
Does anyone have any idea what I am doing wrong? I have changed no code. I
just wanted to try and build a new war with the method outlined in the
tutorial. Any help would be appreciated.
Thanks,
Dave
--
View this message in context: http://www.nabble.com/trouble-building-new-wsn-producer.war-file-tf3648690.html#a10191594
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
Re: trouble building new wsn-producer.war file
Posted by dchou <da...@lmco.com>.
Dan,
Thanks for the response. You are correct about the wsn-producer name needs
to match the war file name. In the WsnTestClient it specifies a
"/wsn-producer/services" and since my WAR was named test-wsn-producer I
changed the WsnTestClient to reference "/test-wsn-producer/services" and
that fixed the error. Thanks again for help a noob get his feet wet with
this.
Thanks,
Dave
Daniel Jemiolo wrote:
>
> Since you're getting HTML (<hr>) back in your SOAP response, I'm guessing
> that you're getting some kind of error page back from the server. I'd go
> further to guess that you have another process (valid server or zombie)
> running that's using port 8080, and your client is not talking to the
> server you think it's talking to. Also, make sure that your URI is right -
> you're still using /wsn-producer/ but if your WAR has a different name, it
> should change.
>
> Dan
>
>
> dchou <da...@lmco.com> wrote on 04/25/2007 07:21:50 PM:
>
>>
>> Hello,
>>
>> I am able to drop the sample wsn-producer.war and wsn-consumer.war files
>> into my Tomcat and they run fine when I run the WsnTestClient. However,
> when
>> I do a wsdl2java build in the wsn-producer directory then build an new
> war
>> using Ant. I get an error message with this newly created
> wsn-producer.war.
>> I have changed no code. Only performed wsdl2java and ant. The steps and
>> error I get when I run the WsnTestClient is as follows:
>>
>> $wsdl2java -j2ee axis2 -overwrite -wsdl wsdl/WsResource.wsdl
>>
>> $ ant-1.6.5/bin/ant
>>
>> $ I then run the test client, WsnTestClient and get the following
> output:
>> [CLIENT TRACE] SOAP envelope contents (outgoing):
>>
>> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>> <soap:Header>
>> <wsa:To
>>
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://166.21.9.161:8080/wsn-
>> producer/services/WsResource</wsa:To>
>> <wsa:Action
>> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.
>> org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>> <wsa:MessageID
>>
> xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:f6255f7a-9b73-1057-4620-
>> a4ec2be5ff0a</wsa:MessageID>
>> <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>>
>>
> <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>> </wsa:From>
>> </soap:Header>
>> <soap:Body>
>> <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>> <wsnt:ConsumerReference>
>> <wsa:Address
>>
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://166.21.9.175:8060/wsn-
>> consumer/services/consumer</wsa:Address>
>> </wsnt:ConsumerReference>
>> </wsnt:Subscribe>
>> </soap:Body>
>> </soap:Envelope>
>>
>> [Fatal Error] :1:1040: The element type "HR" must be terminated by the
>> matching end-tag "</HR>".
>> org.apache.muse.ws.addressing.soap.SoapFault: The element type "HR" must
> be
>> terminated by the matching end-tag "</HR>".
>> at
>>
> org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:298)
>> at
>>
> org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
>> at
>> org.apache.muse.ws.notification.remote.NotificationProducerClient.
>> subscribe(NotificationProducerClient.java:97)
>> at org.apache.muse.test.wsn.WsnTestClient.main(Unknown Source)
>>
>> Does anyone have any idea what I am doing wrong? I have changed no code.
> I
>> just wanted to try and build a new war with the method outlined in the
>> tutorial. Any help would be appreciated.
>>
>> Thanks,
>> Dave
>> --
>> View this message in context:
> http://www.nabble.com/trouble-building-new-wsn-
>> producer.war-file-tf3648690.html#a10191594
>> Sent from the Muse User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: muse-user-help@ws.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Re%3A-trouble-building-new-wsn-producer.war-file-tf3652762.html#a10208077
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
RE: trouble building new wsn-producer.war file
Posted by "Vinh Nguyen (vinguye2)" <vi...@cisco.com>.
I've ran across the <HR> issue before, too, and it usually meant that
the server app was not started properly. Sometimes this happenned with
a hot deploy (some servers aren't reliable with hot deploys), or the
server had some other error starting up, so my server app was not
initialized properly.
-----Original Message-----
From: Daniel Jemiolo [mailto:danjemiolo@us.ibm.com]
Sent: Thursday, April 26, 2007 9:37 AM
To: muse-user@ws.apache.org
Subject: Re: trouble building new wsn-producer.war file
Since you're getting HTML (<hr>) back in your SOAP response, I'm
guessing that you're getting some kind of error page back from the
server. I'd go further to guess that you have another process (valid
server or zombie) running that's using port 8080, and your client is not
talking to the server you think it's talking to. Also, make sure that
your URI is right - you're still using /wsn-producer/ but if your WAR
has a different name, it should change.
Dan
dchou <da...@lmco.com> wrote on 04/25/2007 07:21:50 PM:
>
> Hello,
>
> I am able to drop the sample wsn-producer.war and wsn-consumer.war
> files into my Tomcat and they run fine when I run the WsnTestClient.
> However,
when
> I do a wsdl2java build in the wsn-producer directory then build an new
war
> using Ant. I get an error message with this newly created
wsn-producer.war.
> I have changed no code. Only performed wsdl2java and ant. The steps
> and error I get when I run the WsnTestClient is as follows:
>
> $wsdl2java -j2ee axis2 -overwrite -wsdl wsdl/WsResource.wsdl
>
> $ ant-1.6.5/bin/ant
>
> $ I then run the test client, WsnTestClient and get the following
output:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
>
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
> <soap:Header>
> <wsa:To
>
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://166.21.9.161:808
0/wsn-
> producer/services/WsResource</wsa:To>
> <wsa:Action
>
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.
> org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
> <wsa:MessageID
>
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:f6255f7a-9b73-1057
-4620-
> a4ec2be5ff0a</wsa:MessageID>
> <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>
>
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Ad
dress>
> </wsa:From>
> </soap:Header>
> <soap:Body>
> <wsnt:Subscribe
xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
> <wsnt:ConsumerReference>
> <wsa:Address
>
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://166.21.9.175:806
0/wsn-
> consumer/services/consumer</wsa:Address>
> </wsnt:ConsumerReference>
> </wsnt:Subscribe>
> </soap:Body>
> </soap:Envelope>
>
> [Fatal Error] :1:1040: The element type "HR" must be terminated by the
> matching end-tag "</HR>".
> org.apache.muse.ws.addressing.soap.SoapFault: The element type "HR"
> must
be
> terminated by the matching end-tag "</HR>".
> at
>
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.java:298)
> at
>
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.java:254)
> at
> org.apache.muse.ws.notification.remote.NotificationProducerClient.
> subscribe(NotificationProducerClient.java:97)
> at org.apache.muse.test.wsn.WsnTestClient.main(Unknown Source)
>
> Does anyone have any idea what I am doing wrong? I have changed no
code.
I
> just wanted to try and build a new war with the method outlined in the
> tutorial. Any help would be appreciated.
>
> Thanks,
> Dave
> --
> View this message in context:
http://www.nabble.com/trouble-building-new-wsn-
> producer.war-file-tf3648690.html#a10191594
> Sent from the Muse User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org
Re: trouble building new wsn-producer.war file
Posted by Daniel Jemiolo <da...@us.ibm.com>.
Since you're getting HTML (<hr>) back in your SOAP response, I'm guessing
that you're getting some kind of error page back from the server. I'd go
further to guess that you have another process (valid server or zombie)
running that's using port 8080, and your client is not talking to the
server you think it's talking to. Also, make sure that your URI is right -
you're still using /wsn-producer/ but if your WAR has a different name, it
should change.
Dan
dchou <da...@lmco.com> wrote on 04/25/2007 07:21:50 PM:
>
> Hello,
>
> I am able to drop the sample wsn-producer.war and wsn-consumer.war files
> into my Tomcat and they run fine when I run the WsnTestClient. However,
when
> I do a wsdl2java build in the wsn-producer directory then build an new
war
> using Ant. I get an error message with this newly created
wsn-producer.war.
> I have changed no code. Only performed wsdl2java and ant. The steps and
> error I get when I run the WsnTestClient is as follows:
>
> $wsdl2java -j2ee axis2 -overwrite -wsdl wsdl/WsResource.wsdl
>
> $ ant-1.6.5/bin/ant
>
> $ I then run the test client, WsnTestClient and get the following
output:
> [CLIENT TRACE] SOAP envelope contents (outgoing):
>
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
> <soap:Header>
> <wsa:To
>
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://166.21.9.161:8080/wsn-
> producer/services/WsResource</wsa:To>
> <wsa:Action
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.
> org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
> <wsa:MessageID
>
xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:f6255f7a-9b73-1057-4620-
> a4ec2be5ff0a</wsa:MessageID>
> <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
>
>
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
> </wsa:From>
> </soap:Header>
> <soap:Body>
> <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
> <wsnt:ConsumerReference>
> <wsa:Address
>
xmlns:wsa="http://www.w3.org/2005/08/addressing">http://166.21.9.175:8060/wsn-
> consumer/services/consumer</wsa:Address>
> </wsnt:ConsumerReference>
> </wsnt:Subscribe>
> </soap:Body>
> </soap:Envelope>
>
> [Fatal Error] :1:1040: The element type "HR" must be terminated by the
> matching end-tag "</HR>".
> org.apache.muse.ws.addressing.soap.SoapFault: The element type "HR" must
be
> terminated by the matching end-tag "</HR>".
> at
>
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:298)
> at
>
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
> at
> org.apache.muse.ws.notification.remote.NotificationProducerClient.
> subscribe(NotificationProducerClient.java:97)
> at org.apache.muse.test.wsn.WsnTestClient.main(Unknown Source)
>
> Does anyone have any idea what I am doing wrong? I have changed no code.
I
> just wanted to try and build a new war with the method outlined in the
> tutorial. Any help would be appreciated.
>
> Thanks,
> Dave
> --
> View this message in context:
http://www.nabble.com/trouble-building-new-wsn-
> producer.war-file-tf3648690.html#a10191594
> Sent from the Muse User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-user-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-user-help@ws.apache.org