Hi,
The "HR" error also occurs when the server app didn't startup
successfully for some reason, like if one capability class failed to
initialize properly.  This leaves the entire app in an unstable state.

In addition to checking the Tomcat logs, also check the runtime muse.log
file.  The latter usually gives a better idea of which
resource/capability failed to initialize.
-Vinh


-----Original Message-----
From: Lenni Madsen [mailto:[EMAIL PROTECTED] 
Sent: Sunday, April 27, 2008 11:09 PM
To: [email protected]
Subject: SV: trouble with WsnTestClient after new wsn-producer.war file

Hi there

Could you attach your wsdl file? It might be something fairly simple and
therefore easy to overlook in the wsdl, I know I've missed small
important stuff time and time again.

[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>".

This error comes when you're trying to use a wrong or incomplete
EndpointReference. The error message is very generic.

/Lenni


-----Oprindelig meddelelse-----
Fra: dulbirakan [mailto:[EMAIL PROTECTED]
Sendt: 27. april 2008 23:19
Til: [email protected]
Emne: Re: trouble with WsnTestClient after new wsn-producer.war file


I had the same problem, infact I still have it.

I used muse 2.2.0's wsdl2java in ubuntu linux (7.10 and 8.04) both to no
avail but it worked under windows XP in my advisors computer. 

First I change the binding in sample-wsn-producer.wsdl to point to my
producer (wsn-srv) then I change the source of wsn-consumers test class
to
point to my producer. Then I issue wsdl2java command and deploy
services. I
get the same error message you are getting (the one with HR). I also
deployed one with default settings, it was a no go also.

I issue:

$ sudo sh /opt/muse-2.2.0-bin/bin/wsdl2java.sh -j2ee axis2 -wsdl
sample-wsn-producer.wsdl -output wsn-srv/ -overwrite

I get a :
[: 38: cygwin: unexpected operator

but everything seems to be in place and I run ant and copy the resulting
war
files to my tomcat webapps folder. These war files however, once
deployed do
not act as axis2 services. When I click on one in tomcat manager I see
the
following message instead of the usual axis2 web interface:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented
it
from fulfilling this request.

exception

org.apache.jasper.JasperException: java.lang.NullPointerException

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWra
pper.java:522)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:3
56)
        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
        
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja
va:9
68)
        
org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:78)
        
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:3
74)
        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
        
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

java.lang.NullPointerException

org.apache.jsp.axis2_002dweb.include.httpbase_jsp.jspInit(httpbase_jsp.j
ava:
22)
        org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:51)

org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper
.jav
a:159)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:3
29)
        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
        
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja
va:9
68)
        
org.apache.jsp.axis2_002dweb.index_jsp._jspService(index_jsp.java:78)
        
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:3
74)
        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
        
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.16 logs.
Apache Tomcat/6.0.16


I really would appreciate if it would just run under ubuntu.

I guess the problem might be related to the cygwin problem I stated
earlier.
Does any one have any clue?


dchou wrote:
> 
> 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 a
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/ws
n-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
-462
0-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
dres
s>
>         </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/ws
n-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.ja
va:298)
>         at
>
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
t.ja
va:254)
>         at
>
org.apache.muse.ws.notification.remote.NotificationProducerClient.subscr
ibe(
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-with-WsnTestClient-after-new-wsn-producer.
war-
file-tp10191599p16928534.html
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to