This one time, at band camp, [EMAIL PROTECTED] said:

 >HI all,
 >
 >I'm sorry for asking this question....
 >but I really can't find out what is the solution for this...
 >I realised that Thomas had said that dependent object cannot be loaded
 >implicitly....what do this mean? and what is the workaround for this?
 >
 >[test] org.exolab.castor.jdo.QueryException: Could not find mapping for
 >class myapp.Product

Tihoe,

Obviously you've built the examples because the Test is running.
However, what Castor is telling you is that it cannot find a mapping
for the class myapp.Product. In src/examples/jdo/mapping.xml there
should be a mapping for myapp.Product. Remove the directory
build/examples and build the examples again using the build script
like so:

    build.sh examples

The output from the build process will show you the following output:

    [mkdir] Created dir: /home/bws/castor/build/examples
    [javac] Compiling 16 source files to /home/bws/castor/build/examples
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
     [copy] Copying 21 files to /home/bws/castor/build/examples
    [mkdir] Created dir: /home/bws/castor/build/examples/webapp
     [copy] Copying 12 files to /home/bws/castor/build/examples/webapp/WEB-INF/classes
     [copy] Copying 11 files to /home/bws/castor/build/examples/webapp/WEB-INF/lib
      [jar] Building jar: /home/bws/castor/build/examples/webapp-example-castor.war

Now check to see that the mapping file is actually in the proper
location. You should find it here:

    build/examples/jdo/

Let's see what results you get from following the steps above.

Also, where did you get the Castor source from? CVS? FTP?

Bruce
--

perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to