log4j error in loopback tests

39 views
Skip to first unread message

des

unread,
Sep 25, 2008, 5:42:21 PM9/25/08
to Hermes 2.0 Discussion List
Hi guys i'm getting this warning when i run the as2 and ebms sample -
partnership scripts:

./config/ebms-partnership.xml ./config/ebms-partnership/ebms-
request.xml ./logs/ebms-partnership.log
/usr/lib/jvm/java/bin/java -cp ./lib/activation.jar:./lib/commons-
codec-1.3.jar:./lib/commons-fileupload-1.2.jar:./lib/commons-
httpclient-3.1.jar:./lib/commons-logging-1.1.jar:./lib/corvus-ws-
util.jar:./lib/dom4j-1.4.jar:./lib/junit-4.4.jar:./lib/
log4j-1.2.8.jar:./lib/mail.jar:./lib/piazza-commons-ext.jar:./lib/
piazza-commons.jar:./lib/saaj-api.jar:./lib/saaj-impl.jar:./lib/slf4j-
api-1.4.3.jar:./lib/slf4j-log4j12-1.4.3.jar:./lib/Tidy.jar:
hk.hku.cecid.corvus.http.EBMSPartnershipSender ./config/ebms-
partnership.xml ./config/ebms-partnership/ebms-request.xml ./logs/ebms-
partnership.log
----------------------------------------------------
EBMS Partnership Maintainance Tool
----------------------------------------------------
Initialize logger ..
Importing EBMS partnership parameters ...
Importing EBMS administrative sending parameters ...
Initialize EBMS HTTP data service client...
log4j:WARN No appenders could be found for logger
(org.apache.commons.httpclient.HttpClient).
log4j:WARN Please initialize the log4j system properly.
Sending EBMS HTTP partnership maintenance request ...
org.apache.commons.httpclient.HttpException: HTTP/1.1 401 Unauthorized
at hk.hku.cecid.corvus.http.HttpSender.run(HttpSender.java:343)
at
hk.hku.cecid.corvus.http.EBMSPartnershipSender.run(EBMSPartnershipSender.java:
153)
at
hk.hku.cecid.corvus.http.EBMSPartnershipSender.main(EBMSPartnershipSender.java:
195)

Sending Done:
----------------------------------------------------
The result status : Not yet run.
Please view log for details ..


The log files in the <hermes_home>/sample/logs/ directory looks like
this:

Partnership HTTP Client init at Thu Sep 25 22:24:59 SAST 2008

Sending Partnership HTTP Request with following configuration
------------------------------------------------------------------
Partnership Operation : add
Key: encryptAlgorithm Value:
Key: retryInterval Value: 30000
Key: action Value: action
Key: dupElimination Value: never
Key: signRequested Value: false
Key: disabled Value: false
Key: ackSignRequested Value: never
Key: syncReplyMode Value: none
Key: messageOrder Value: NotGuaranteed
Key: transportEndpoint Value: http://localhost:8080/corvus/httpd/ebms/inbound
Key: isHostnameVerified Value:
Key: ackRequested Value: never
Key: id Value: ebms-loopback
Key: service Value: http://localhost:8080/corvus/httpd/ebms/inbound
Key: dsAlgorithm Value:
Key: encryptRequested Value:
Key: encryptCert Value: [B@1908ca1
Key: signCert Value: [B@100ab23
Key: transportProtocol Value: http
Key: retries Value: 1
Key: cpaId Value: cpaid
Key: mdAlgorithm Value:
Key: actor Value:

------------------------------------------------------------------

[Stack Trace] hk.hku.cecid.corvus.http.HttpSender.run(HttpSender.java:
343)
[Stack Trace]
hk.hku.cecid.corvus.http.EBMSPartnershipSender.run(EBMSPartnershipSender.java:
153)
[Stack Trace]
hk.hku.cecid.corvus.http.EBMSPartnershipSender.main(EBMSPartnershipSender.java:
195)


I'm a newbie and i don't know what to make of this error. Does anyone
have any suggestions?

des

unread,
Sep 25, 2008, 8:02:21 PM9/25/08
to Hermes 2.0 Discussion List

Philip Wong

unread,
Sep 25, 2008, 10:38:32 PM9/25/08
to Hermes 2.0 Discussion List
Hi,

The web service usage sample assuming your application server using
basic authentication.
So it would try to login with the following username and password (see
sample/config/ebms-partnership/ebms-request.xml)
<username>corvus</username>
<password>corvus</password>

If you're using tomcat, please add this user to tomcat-users.xml

<user username="corvus" password="corvus" roles="admin,manager,user"/
>

Hope this can help!
Philip
Reply all
Reply to author
Forward
0 new messages