• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"The import org.jboss.cache.TreeCache cannnot be resolved." how to solve this problem?

 
ron sun
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to debug JForum, but got errors like "The import org.jboss.cache.TreeCache cannnot be resolved."

i cannot find which jar file contain org.jboss.cache.TreeCache etc,

file net.jforum.cache.JBossCacheEngine.java & net.jforum.cache.JBossCacheListener.java



i try to find the jar,but only find docs http://docs.jboss.org/jbossas/javadoc/3.2.7/cache/index.html

thanks.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That sounds like code in the JBoss server. Do you really need to debug at such a low level? Instead, try setting a breakpoint at the last net.jforum class.

It seems likely that JBoss isn't broken and whatever error you have is in JForum.
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe not the source (which you shouldn't debug),

but jars can be found here: http://findjar.com/index.x?query=org.jboss.cache.TreeCache

WP
 
ron sun
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.

I just begin to debug JForum.

i use Eclipse Java EE IDE for Web Developers Version: Juno Release & Tomcat 6.

i first new a dynamic web project , then put jforum into directory "WebContent" except src to project's "src".

then i get errors showing in attachment.

i don't understand -- how did i miss those jar file? it cannot be jforum's bug. what's wrong in my debug envirement? mybe if i add the 'lost' jar file, it would be ok . so i ask help here.

but atfer adding, new error comes.

so when i don't use tomcat but jboss, these errors would be disappear. am i right?

if i still use tomcat , those errors need't be fixed. am i right?

thanks for picking out errors in what i said.

2012-07-13 05-54-27.png
[Thumbnail for 2012-07-13 05-54-27.png]
error pic
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh! So you are compiling, not debugging. The solution is different since it fails to compile.

We deleted that class (and the other JBoss one below it) from our copy of JForum. As this person suggests as well.
 
ron sun
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes, i am compiling. and i learned by your words that IDE always automatically does this and compiling is not a part of debuging.


thanks.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34974
379
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right. Compiling is making the code compile (circular I know.) It can happen automatically or on demand. Debugging is figuring out why your code doesn't work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic