6 Replies Latest reply: Sep 18, 2010 11:17 AM by Aslak Knutsen RSS

Debugging embedded server interaction

Trung Hoang Newbie

I am using Arquillian 1.0.0.Alpha4 with Tomcat embedded 6 and JSFUnit 1.3.0.Final.

 

 

Arquillian deploys my application to the embedded container, my application starts up and it gets to the test case where a JSFSession is created.

 

At this stage, for some reason tomcat returns a 404 from htmlunit's interactions. How can i turn on some logging to find out why this is happening? The IDE console does not show anything besides the snip below.

 

2010-09-17 18:19:37 INFO  [WebClient.printContentIfNecessary] statusCode=[404] contentType=[text/html]
2010-09-17 18:19:37 INFO  [WebClient.printContentIfNecessary] <html><head><title>Apache Tomcat/6.0.29 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The requested resource () is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.29</h3></body></html>

 

2010-09-17 18:19:37 INFO  [WebClient.printContentIfNecessary] statusCode=[404] contentType=[text/html]
2010-09-17 18:19:37 INFO  [WebClient.printContentIfNecessary] <html><head><title>Apache Tomcat/6.0.29 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The requested resource () is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.29</h3></body></html>