jerryc (9) [Avatar] Offline
#1
Hi,

In Chapter 3, during the compile step I get the following errors:

compile:
[mkdir] Created dir: Csmiliedocletsourcechapter3uild
[javac] Compiling 27 source files to Csmiliedocletsourcechapter3uild
[javac] Csmiliedocletsourcechapter3gensrccomxdocletbooklogejbBlogCMP.j
ava:59: cannot resolve symbol
[javac] symbol : method makeDirty ()
[javac] location: class com.xdocletbook.blog.ejb.BlogCMP
[javac] makeDirty();
[javac] ^
[javac] Csmiliedocletsourcechapter3gensrccomxdocletbooklogejbBlogCMP.j
ava:80: cannot resolve symbol
[javac] symbol : method makeDirty ()
[javac] location: class com.xdocletbook.blog.ejb.BlogCMP
[javac] makeDirty();
[javac] ^
[javac] Csmiliedocletsourcechapter3gensrccomxdocletbooklogejbBlogCMP.j
ava:101: cannot resolve symbol
[javac] symbol : method makeDirty ()
[javac] location: class com.xdocletbook.blog.ejb.BlogCMP
[javac] makeDirty();
[javac] ^
[javac] Csmiliedocletsourcechapter3gensrccomxdocletbooklogejbBlogCMP.j
ava:122: cannot resolve symbol
[javac] symbol : method makeDirty ()
[javac] location: class com.xdocletbook.blog.ejb.BlogCMP
[javac] makeDirty();
[javac] ^
[javac] Csmiliedocletsourcechapter3gensrccomxdocletbooklogejbTopicCMP.
java:58: cannot resolve symbol
[javac] symbol : method makeDirty ()
[javac] location: class com.xdocletbook.blog.ejb.TopicCMP
[javac] makeDirty();
[javac] ^
[javac] Csmiliedocletsourcechapter3gensrccomxdocletbooklogejbTopicCMP.
java:79: cannot resolve symbol
[javac] symbol : method makeDirty ()
[javac] location: class com.xdocletbook.blog.ejb.TopicCMP
[javac] makeDirty();
[javac] ^
[javac] 6 errors

I cannot resolve the reference to makeDirty(). I have repeated with various .jar files from xdocletlib but nothing seems to help.

Thanking you in advance.

Jerry
jerryc (9) [Avatar] Offline
#2
Re: Problem with generated code in Chapter 3
OK I got things working -- kind of.

Apparently the book code for Chapter 3 is not compatible with xdoclet 1.2.2. When I replaced xdoclet-ejb-module-1.2.2-SNAPSHOT.jar in xdocletlib with xdoclet-ejb-module-1.2.1.jar, the code for Chapter 3 compiled and ran successfully.

On the other hand, when I replaced the 1.2.2 libraries in Chapter 2 with the 1.2.1 libraries, the code generation failed!

Are the authors planning on posting a version of the book code that is compatible with 1.2.2 in the near future?

Jerry