Strange problems

2 views
Skip to first unread message

Nathan Britton

unread,
Mar 13, 2008, 4:08:36 AM3/13/08
to informative-workspace-discuss
I thought I figured out how to get the datepicker working, but then
when I tried it I got this:

java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant

edu.hawaii.informativeworkspace.projectoverviewer.DatePanel.<init>(DatePanel.java:
36)

All the pages but the ambient device page (where I'm testing it out)
work fine, so the chances of it being my tomcat are slim to nil - but
if you could confirm that you have the same problem, I'd appreciate
it. I'm having a hell of a time figuring out what it is.

Jianfei Liao

unread,
Mar 13, 2008, 7:13:06 AM3/13/08
to informative-wo...@googlegroups.com
I can't really tell much without any code. Try commit your code for the ambient device page to SVN, then I can try it on my own computer.
 
BTW, what is line 36 in DatePanel.java? That's where the problem is, try look into that.

 

Nathan Britton

unread,
Mar 13, 2008, 1:24:37 PM3/13/08
to informative-wo...@googlegroups.com
Yeah, sorry about that - the google code repository was giving me problems last night.  I was hoping to get it in before you tried a checkout, but it's in now.

Anyway, it's pointing to the DateTextField object, but it's importing "org.apache.wicket.datetime.markup.html.form.DateTextField" just fine both in eclipse and when I build it in Ant, so I'm not really sure what the issue with that could be.  I triple checked the wicket API and it's in there.  I spent about 45 minutes, so I just want to have you try to run it and make sure it's not just another weird problem with my machine before I spend any more time on it.

BTW, did you add a jaxb jar to our library?  I was having problems with RepositoryTree and PageInfoWork work files.  It isn't loading the "...projectoverviewer.jaxb.RepositoryFile;" import and doesn't recognize objects like ModelBean and RepositoryFile.  I'm using Java 6, which supposedly doesn't require a separate jaxb install; but even so, this import is pointing to our project library, and I don't see anything having to do with jaxb there.
--
Nathan Britton

The only impossible task is to find an impossible task.

Jianfei Liao

unread,
Mar 13, 2008, 8:04:48 PM3/13/08
to informative-wo...@googlegroups.com
I google the problem "java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant", and I think it turns out that the wicket-datetime.jar is somewhat depended on another jar file joda-time.jar, that's why it's saying the class definition not found. Also, it seems like you are missing the line "form.add(dateTextField)" in the DatePanel.java, other than that, the page right now should work fine.
 
For the jaxb stuff, I added it earlier, but since we are switching to the DevEvent data, I think it needs some major change, that's why I didn't commit them, but I think I forgot the build path has changed. I'am not sure how Java 6 include the jaxb, but I still think you need the JAXB_HOME variable defined. But anyways, for right now, just ignore those stuff.

 
Reply all
Reply to author
Forward
0 new messages