Strange classpath error

22 views
Skip to first unread message

Meredith Gregory

unread,
Nov 27, 2012, 3:12:16 PM11/27/12
to scal...@googlegroups.com
Dear Scalagwt'rs,

Below is part of a trace of a failed build. Experience has shown me that the warning is the likely culprit for the later error. However, i don't quite understand how i'm getting that warning. i've supplied my reasoning below. i would be very grateful for any help.

Best wishes,

--greg

[INFO] Compiling com.biosimilarity.iacontainer.client.content.i18n.CwDictionaryExample$
[INFO]    Resolving com.biosimilarity.iacontainer.client.ShowcaseConstants
[INFO]       Found type 'com.biosimilarity.iacontainer.client.ShowcaseConstants'
[INFO]          [WARN] Unable to resolve interface com/biosimilarity/iacontainer/client/content/chat/CwChatInputText$CwConstants
[INFO]    Finding entry point classes
[INFO]       [ERROR] Unable to find type 'com.biosimilarity.iacontainer.client.Showcase'
[INFO]          [ERROR] Hint: Check that the type name 'com.biosimilarity.iacontainer.client.Showcase' is really what you meant
[INFO]          [ERROR] Hint: Check that your classpath includes all required source roots
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

Yet, looking in the file system we see

/Users/lgm/work/src/projex/stellar/mdp4tw/twoten/biosim-emeris.current/scalagwt/target/classes/com/biosimilarity/iacontainer/client/content/chat:
  total used in directory 1832 available 715656732
  drwxr-xr-x  34 lgm  staff    1156 Nov 27 09:01 .
  drwxr-xr-x  11 lgm  staff     374 Nov 27 09:01 ..
  ...
  -rw-r--r--   1 lgm  staff    1500 Nov 27 09:01 CwChatInputText$CwConstants.class
  -rw-r--r--   1 lgm  staff    5567 Nov 27 09:01 CwChatInputText$CwConstants.jribble

and checking the classpath on the line of the compiler we see

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Xmx512m -classpath /Users/lgm/work/src/projex/stellar/mdp4tw/twoten/biosim-emeris.current/scalagwt/src/main/scala:/Users/lgm/work/src/projex/stellar/mdp4tw/twoten/biosim-emeris.current/scalagwt/target:/Users/lgm/work/src/projex/stellar/mdp4tw/twoten/biosim-emeris.current/scalagwt/src/main/resources:/Users/lgm/work/src/projex/stellar/mdp4tw/twoten/biosim-emeris.current/scalagwt/target/classes:...

Lining them up we have a source root of 

/Users/lgm/work/src/projex/stellar/mdp4tw/twoten/biosim-emeris.current/scalagwt/target/classes 

and from there we have a directory of 

com/biosimilarity/iacontainer/client/content/chat

containing a file of 

CwChatInputText$CwConstants

So, the interface is definitely visible to the compiler.

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
7329 39th Ave SW
Reply all
Reply to author
Forward
0 new messages