Are IpLookupPage.html and BasePage.html both in the same location as
IpLookupPage.class and BasePage.class respectively and on the testing
classpath?

-----Original Message-----
From: AlexTM [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 09, 2008 2:41 AM
To: [email protected]
Subject: MarkupNotFoundException


Hi.

I have a class IpLookupPage that uses markupinheritence and inherits a
class
called BasePage. I is working fine when i test it manually but when i am
using testng to do unit testing on the page i get an exception.

The code looks like:
ApplicationContext context = getStubApplicationContextForPage();
BossoWicketTester app = createWicketTester(context);

app.openPage(IpLookupPage.class);

And i get this error message:

org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html'
for
component 'com.ongame.bo.bofraud.markup.pages.IpLookupPage' not found.
Enable debug messages for org.apache.wicket.util.resource to get a list
of
all filenames tried:
 [Page class = com.ongame.bo.bofraud.markup.pages.IpLookupPage, id = 0,
version = 0]
     at
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContai
ner.java:354)
     at org.apache.wicket.Page.onRender(Page.java:1435)
     at org.apache.wicket.Component.render(Component.java:2266)
     at org.apache.wicket.Page.renderPage(Page.java:891)
     at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget
.respond(BookmarkablePageRequestTarget.java:231)
     at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(Abstract
RequestCycleProcessor.java:103)
     at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
:1100)
     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1169)
     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
     at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
     at
org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(M
ockWebApplication.java:382)
     at
com.ongame.bo.bofraud.WicketApplicationTest$BossoWicketTester.openPage(W
icketApplicationTest.java:101)
     at
com.ongame.bo.bofraud.markup.pages.IpLookupPageTest.testInvalidIpAddress
(IpLookupPageTest.java:68)
 Caused by: org.apache.wicket.markup.MarkupNotFoundException: Markup not
found. Component class: com.ongame.bo.bofraud.markup.pages.IpLookupPage
Enable debug messages for org.apache.wicket.util.resource to get a list
of
all filenames tried
     at
org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:21
5)
     at
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContai
ner.java:342)
     ... 33 more
 ... Removed 21 stack frames


Anyone that knows what the problem is?

Regards 
Alex
-- 
View this message in context:
http://www.nabble.com/MarkupNotFoundException-tp17142219p17142219.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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

______________

The information contained in this message is proprietary and/or confidential. 
If you are not the 
intended recipient, please: (i) delete the message and all copies; (ii) do not 
disclose, 
distribute or use the message in any manner; and (iii) notify the sender 
immediately. In addition, 
please be aware that any message addressed to our domain is subject to 
archiving and review by 
persons other than the intended recipient. Thank you.
_____________

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

Reply via email to