You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by btbluesky <bt...@gmail.com> on 2010/08/16 21:42:05 UTC
AjaxPagingNavigator give out strange error
I tried to use AjaxPagingNavigator in a simple page in Eclipse Helio with WTP
(configured tomcat6). When debug, it just gives out a raw API page of
ExceptionErrorPage with mismatched close tag error that reference the API
page.
Couple of other pages in the same app are working fine.
I then tried to just copy pasted the original Wicket Example PageablesPage
into my WebApplication, same thing. I commented out the AjaxPagingNavigator
object, everything works fine.
I step through the entire page, all components on PageablesPage are fine.
The first Exception thrown is at Component class render :
[code]
org.apache.wicket.markup.MarkupException: Tag '<DT>' (line 103, column 1)
has a mismatched close tag at '</DL>' (line 104, column 1)
[markup =
jar:file:/H:/DOCUMENTS/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/hfweb/WEB-INF/lib/wicket-1.4.10-javadoc.jar!/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigator.ht
[/code]
Which is already referring to the AjaxPagingNavigator API page (I have the
wicket Javadoc package from Maven in the env.)
I cannot even see the error even when I'm stepping through the whole thing
line by line. The only error comes out is from API page markup error when
its trying to render.
Would really appreciate it if anyone can help.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigator-give-out-strange-error-tp2327360p2327360.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxPagingNavigator give out strange error
Posted by jcgarciam <jc...@gmail.com>.
Why do you add the *<classifier>javadoc</classifier> *
in your pom to have the JavaDocs, why not adding the the
-DdownloadSources=true -DdownloadJavadocs=true in your maven command, full
example:
mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=true
On Tue, Oct 12, 2010 at 4:13 PM, btbluesky [via Apache Wicket] <
ml-node+2992535-582055769-65838@n4.nabble.com<ml...@n4.nabble.com>
> wrote:
> I finally found out what exactly the problem is.
> I used the quickstart to generate a new project from scratch.
> In my maven, I have wicket javadoc to be dependency. whenever that
> dependency is there. All the ajax calls failed in both jetty and tomcat (I
> setup both servers to test them), and spurring out bunch of javadoc html
> failed code.
>
> The second I take that dependency out of my eclipse WTP project, redeploy,
> it's perfectly fine.
>
> Is it just me, what am I doing wrong. Again the only thing I used is,
> enable "maven manage" in eclipse, and then add the javadoc in the
> dependency.
>
> *<dependency>
> <groupId>org.apache.wicket</groupId>
> <artifactId>wicket</artifactId>
> <version>${wicket.version}</version>
> <classifier>javadoc</classifier>
> </dependency>*
>
>
> The error:
>
>
> *Unexpected RuntimeException
>
> WicketMessage: Tag '<DT>' (line 103, column 1) has a mismatched close tag
> at '</DL>' (line 104, column 1)
> [markup =
> jar:file:/D:/mavenRepo/org/apache/wicket/wicket/1.4.12/wicket-1.4.12-javadoc.jar!/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigator.html
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
> http://www.w3.org/TR/html4/loose.dtd">
> ........
> ....
> Markup
>
> The problem is in
> "jar:file:/D:/mavenRepo/org/apache/wicket/wicket/1.4.12/wicket-1.4.12-javadoc.jar!/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigator.html":
>
> *
>
> ------------------------------
> View message @
> http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigator-give-out-strange-error-tp2327360p2992535.html
> To start a new topic under Apache Wicket, email
> ml-node+1842946-398011874-65838@n4.nabble.com<ml...@n4.nabble.com>
> To unsubscribe from Apache Wicket, click here<http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=1842946&code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDEyNTYxMzc3ODY=>.
>
>
>
--
Sincerely,
JC (http://www.linkedin.com/in/jcgarciam)
Work smarter, not harder!.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigator-give-out-strange-error-tp2327360p2992593.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxPagingNavigator give out strange error
Posted by btbluesky <bt...@gmail.com>.
The problem is I was using Eclipse's maven plug (m2eclipse?!) to manage the
POM (I think it comes with WTP already). Its got the nice GUI, with the
checkbox options of "include javadocs" and "include Sources". I didn't add
it manually in the POM.
Well, very good to know that it doesn't work properly. Maybe I should submit
something in Eclipse bugtrack.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigator-give-out-strange-error-tp2327360p2993927.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxPagingNavigator give out strange error
Posted by Igor Vaynberg <ig...@gmail.com>.
the problem is most likely the fact that wicket tries to load markup
out of the javadoc jar instead of the wicket jar. the javadoc has html
files named the same as wicket jar.
it doesnt make sense to have the javadoc jar on your classpath. but,
if you must, just make sure it is on the classpath *after* the wicket
jar.
-igor
On Tue, Oct 12, 2010 at 12:13 PM, btbluesky <bt...@gmail.com> wrote:
>
> I finally found out what exactly the problem is.
> I used the quickstart to generate a new project from scratch.
> In my maven, I have wicket javadoc to be dependency. whenever that
> dependency is there. All the ajax calls failed in both jetty and tomcat (I
> setup both servers to test them), and spurring out bunch of javadoc html
> failed code.
>
> The second I take that dependency out of my eclipse WTP project, redeploy,
> it's perfectly fine.
>
> Is it just me, what am I doing wrong. Again the only thing I used is, enable
> "maven manage" in eclipse, and then add the javadoc in the dependency.
>
> <dependency>
> <groupId>org.apache.wicket</groupId>
> <artifactId>wicket</artifactId>
> <version>${wicket.version}</version>
> <classifier>javadoc</classifier>
> </dependency>
>
>
> The error:
>
>
> Unexpected RuntimeException
>
> WicketMessage: Tag '<DT>' (line 103, column 1) has a mismatched close tag at
> '</DL>' (line 104, column 1)
> [markup =
> jar:file:/D:/mavenRepo/org/apache/wicket/wicket/1.4.12/wicket-1.4.12-javadoc.jar!/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigator.html
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> ........
> ....
> Markup
>
> The problem is in
> "jar:file:/D:/mavenRepo/org/apache/wicket/wicket/1.4.12/wicket-1.4.12-javadoc.jar!/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigator.html":
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigator-give-out-strange-error-tp2327360p2992535.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxPagingNavigator give out strange error
Posted by btbluesky <bt...@gmail.com>.
I finally found out what exactly the problem is.
I used the quickstart to generate a new project from scratch.
In my maven, I have wicket javadoc to be dependency. whenever that
dependency is there. All the ajax calls failed in both jetty and tomcat (I
setup both servers to test them), and spurring out bunch of javadoc html
failed code.
The second I take that dependency out of my eclipse WTP project, redeploy,
it's perfectly fine.
Is it just me, what am I doing wrong. Again the only thing I used is, enable
"maven manage" in eclipse, and then add the javadoc in the dependency.
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket</artifactId>
<version>${wicket.version}</version>
<classifier>javadoc</classifier>
</dependency>
The error:
Unexpected RuntimeException
WicketMessage: Tag '<DT>' (line 103, column 1) has a mismatched close tag at
'</DL>' (line 104, column 1)
[markup =
jar:file:/D:/mavenRepo/org/apache/wicket/wicket/1.4.12/wicket-1.4.12-javadoc.jar!/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigator.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
........
....
Markup
The problem is in
"jar:file:/D:/mavenRepo/org/apache/wicket/wicket/1.4.12/wicket-1.4.12-javadoc.jar!/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigator.html":
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigator-give-out-strange-error-tp2327360p2992535.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: AjaxPagingNavigator give out strange error
Posted by Igor Vaynberg <ig...@gmail.com>.
and yet it works just fine here: http://wicketstuff.org/wicket14/ajax/pageables
create a quickstart and attach it somewhere. that way we dont have to
grasp at straws.
-igor
On Mon, Aug 16, 2010 at 12:42 PM, btbluesky <bt...@gmail.com> wrote:
>
> I tried to use AjaxPagingNavigator in a simple page in Eclipse Helio with WTP
> (configured tomcat6). When debug, it just gives out a raw API page of
> ExceptionErrorPage with mismatched close tag error that reference the API
> page.
>
> Couple of other pages in the same app are working fine.
>
> I then tried to just copy pasted the original Wicket Example PageablesPage
> into my WebApplication, same thing. I commented out the AjaxPagingNavigator
> object, everything works fine.
>
> I step through the entire page, all components on PageablesPage are fine.
> The first Exception thrown is at Component class render :
>
> [code]
> org.apache.wicket.markup.MarkupException: Tag '<DT>' (line 103, column 1)
> has a mismatched close tag at '</DL>' (line 104, column 1)
> [markup =
> jar:file:/H:/DOCUMENTS/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/hfweb/WEB-INF/lib/wicket-1.4.10-javadoc.jar!/org/apache/wicket/ajax/markup/html/navigation/paging/AjaxPagingNavigator.ht
>
> [/code]
>
> Which is already referring to the AjaxPagingNavigator API page (I have the
> wicket Javadoc package from Maven in the env.)
>
> I cannot even see the error even when I'm stepping through the whole thing
> line by line. The only error comes out is from API page markup error when
> its trying to render.
>
> Would really appreciate it if anyone can help.
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxPagingNavigator-give-out-strange-error-tp2327360p2327360.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org