• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

MIgrated from EJB2 to ejb3 now build is getting failed,

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I recenlty migrated to EJB 2 to EJB3 , but now I am not able to build the project (application), Please anyone tell me what are the modification we have to make in build.xml? Or what are the points I need to take care to make a successful buld?? Using ANT for build.
 
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Again, post the full error message that you are getting.
 
sagar shiraguppi
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Detected Java version: 1.6 in: C:\Java\JDK16~1.0_2\jre
Detected OS: Windows XP
parsing buildfile D:\CO6D8C~1\projects\ABC\bin\build.xml with URI = file:/D:/CO6D8C~1/projects/ABC/bin/build.xml
Project base dir set to: D:\CO6D8C~1\projects\ABC\bin
Build sequence for target(s) `product' is [init, clean_classes, clean_for_product, ejbdoclet, prepare-classes, ABC-request-jar, make_ear, product]
Complete build sequence is [init, clean_classes, clean_for_product, ejbdoclet, prepare-classes, ABC-request-jar, make_ear, product, RulesForBlocks, RulesForSize, RulesForNaming, DeletePrevious, MustRunWithNoErrors, RulesForCodingSet1, RulesForCodingSet2, RulesForDesign, RulesForDuplication, RulesForJavadoc, RulesForMetrics, RulesForModifiers, RulesForUsage, FormatCheck, stagelib, stagedata, stagebin, ABCmigrate, install_jar, ABCproduct, stagedbscripts, stageABC, ABC, ]

init:
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
Property "CLIPPER_WIP_NUM" has not been set
Property "DSTAMP" has not been set
Property "TSTAMP" has not been set
Property "checkstyle.classpath" has not been set
dropping D:\CO6D8C~1\projects\ABC\bin\${checkstyle.classpath} from path as it doesn't exist
dropping D:\CO6D8C~1\projects\ABC\bin\${checkstyle.classpath} from path as it doesn't exist
[echo]
[echo] ###############################################################
[echo] ABC Product Build
[echo] Year - 2004-2005
[echo] Root Directory - D:\CO6D8C~1\projects\ABC
[echo] Java classpath - C:\Java\JDK16~1.0_2\lib\dt.jar;C:\Java\JDK16~1.0_2\lib\tools.jar;C:\Java\JDK16~1.0_2\jre\lib\rt.jar;
[echo] Build classpath - D:\CO6D8C~1\projects\ABC/classes;D:\CO6D8C~1\projects\ABC\lib/j2ee.jar;C:\Java\JDK16~1.0_2\lib\dt.jar;C:\Java\JDK16~1.0_2\lib\tools.jar;C:\Java\JDK16~1.0_2\jre\lib\rt.jar;;D:\CO6D8C~1\projects\ABC/tools/ant/lib/ant.jar;D:\CO6D8C~1\projects\ABC\lib/xdoclet.jar;${checkstyle.classpath};D:\CO6D8C~1\projects\ABC\lib/IAClasses.zip;
[echo]
[echo] ###############################################################
[echo]

clean_classes:
[echo]
[echo] ####### Started cleaning ABC D:\CO6D8C~1\projects\ABC\classes directory.
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\classes
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\classes
[mkdir] Created dir: D:\CO6D8C~1\projects\ABC\classes
[echo] ####### End cleaning ABC D:\CO6D8C~1\projects\ABC\classes directory.

clean_for_product:
[echo]
[echo] ####### Started cleaning D:\CO6D8C~1\projects\ABC\build folder.
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\ejb
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\ejb\classes
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\ejb\generic-ejb
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\ejb\META-INF
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\ejb
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\web
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\web\WEB-INF
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\web
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\j2ee
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\j2ee\META-INF
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\j2ee
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\gen-src
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\gen-src
[mkdir] Skipping D:\CO6D8C~1\projects\ABC\build because it already exists.
[mkdir] Created dir: D:\CO6D8C~1\projects\ABC\build\ejb
[mkdir] Created dir: D:\CO6D8C~1\projects\ABC\build\ejb\META-INF
[mkdir] Created dir: D:\CO6D8C~1\projects\ABC\build\web
[mkdir] Created dir: D:\CO6D8C~1\projects\ABC\build\web\WEB-INF
[mkdir] Created dir: D:\CO6D8C~1\projects\ABC\build\j2ee
[mkdir] Created dir: D:\CO6D8C~1\projects\ABC\build\j2ee\META-INF
[mkdir] Created dir: D:\CO6D8C~1\projects\ABC\build\gen-src
[mkdir] Skipping D:\CO6D8C~1\projects\ABC\build\ejb\META-INF because it already exists.
[mkdir] Created dir: D:\CO6D8C~1\projects\ABC\build\ejb\classes
[mkdir] Created dir: D:\CO6D8C~1\projects\ABC\build\ejb\generic-ejb
[echo] ####### Cleaned ABC for product.

ejbdoclet:
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\ejb\META-INF
[delete] Deleting directory D:\CO6D8C~1\projects\ABC\build\ejb\META-INF
[mkdir] Created dir: D:\CO6D8C~1\projects\ABC\build\ejb\META-INF
[ejbdoclet] Generating Javadoc
dropping D:\CO6D8C~1\projects\ABC\bin\${checkstyle.classpath} from path as it doesn't exist
dropping D:\CO6D8C~1\projects\ABC\bin\${checkstyle.classpath} from path as it doesn't exist
[ejbdoclet] Executing 'C:\Java\JDK16~1.0_2\bin\javadoc.exe' with arguments:
[ejbdoclet] '@C:\DOCUME~1\IB1306\LOCALS~1\Temp\javadocOptions7205193082683413111'
[ejbdoclet] '@C:\DOCUME~1\IB1306\LOCALS~1\Temp\javadoc233399154365520396'
[ejbdoclet]
[ejbdoclet] The ' characters around the executable and arguments are
[ejbdoclet] not part of the command.
[ejbdoclet] Javadoc execution
[ejbdoclet] Loading source file D:\CO6D8C~1\projects\ABC\src\com\xyz\ABC\sb_ABCHelperMgr\ABCHelperBean.java...
[ejbdoclet] Loading source file D:\CO6D8C~1\projects\ABC\src\com\xyz\ABC\sb_ABCMgr\ABCMgrBean.java...
[ejbdoclet] Loading source file D:\CO6D8C~1\projects\ABC\src\com\xyz\ABC\sb_ABCRequestReceiver\ABCRequestReceiverBean.java...
[ejbdoclet] Loading source file D:\CO6D8C~1\projects\ABC\src\com\xyz\ABC\sb_grouper\GrouperBean.java...
[ejbdoclet] Loading source file D:\CO6D8C~1\projects\ABC\src\com\xyz\ABC\scheduler\sb_schedulermgr\ABCSchedulerMgrBean.java...
[ejbdoclet] Loading source file D:\CO6D8C~1\projects\ABC\src\com\xyz\ABC\task\sb_taskHelper\TaskHelperBean.java...
[ejbdoclet] Loading source files for package com.xyz.ABC...
[ejbdoclet] Loading source files for package com.xyz.ABC.common...
[ejbdoclet] Loading source files for package com.xyz.ABC.config...
[ejbdoclet] Loading source files for package com.xyz.ABC.controlclasses...
[ejbdoclet] Loading source files for package com.xyz.ABC.install.common...
[ejbdoclet] Loading source files for package com.xyz.ABC.install.custom...
[ejbdoclet] Loading source files for package com.xyz.ABC.mdb_processRequest...
[ejbdoclet] Loading source files for package com.xyz.ABC.mdb_taskNotificationReceiver...
[ejbdoclet] Loading source files for package com.xyz.ABC.mdb_taskReceiver...
[ejbdoclet] Loading source files for package com.xyz.ABC.sb_ABCHelperMgr...
[ejbdoclet] Loading source files for package com.xyz.ABC.sb_ABCMgr...
[ejbdoclet] Loading source files for package com.xyz.ABC.sb_ABCRequestReceiver...
[ejbdoclet] Loading source files for package com.xyz.ABC.sb_grouper...
[ejbdoclet] Loading source files for package com.xyz.ABC.scheduler...
[ejbdoclet] Loading source files for package com.xyz.ABC.scheduler.sb_schedulermgr...
[ejbdoclet] Loading source files for package com.xyz.ABC.shutdown...
[ejbdoclet] Loading source files for package com.xyz.ABC.task...
[ejbdoclet] Loading source files for package com.xyz.ABC.task.sb_taskHelper...
[ejbdoclet] Loading source files for package com.xyz.ABC.task.test...
[ejbdoclet] Loading source files for package com.xyz.ABC.utilities...
[ejbdoclet] Loading source files for package com.xyz.ABC.web...
[ejbdoclet] Constructing Javadoc information...
[ejbdoclet] D:\CO6D8C~1\projects\ABC\src\com\xyz\ABC\sb_ABCMgr\ABCMgrBean.java:37: cannot find symbol
[ejbdoclet] symbol : class ABCHelperMgr
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The part that says

[ejbdoclet] D:\CO6D8C~1\projects\ABC\src\com\xyz\ABC\sb_ABCMgr\ABCMgrBean.java:37: cannot find symbol
[ejbdoclet] symbol : class ABCHelperMgr


suggests that your classpath doesn't contain all the required classes.
 
sagar shiraguppi
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@E Armitage Thank you for your reply,

its saying cannot find symbol. basically it is searching a class file which should be generated by ejb3 on the fly.. please let me know what to be done, thank you
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sagar shiraguppi wrote:@E Armitage Thank you for your reply,

its saying cannot find symbol. basically it is searching a class file which should be generated by ejb3 on the fly.. please let me know what to be done, thank you


What kind of class is that which ejb3 should generate on the fly? Is it metamodel for your JPA2 annotations? Otherwise I don't know of any classes that ejb3 will generate automatically for you which you need to reference in your code.
 
If you two don't stop this rough-housing somebody is going to end up crying. Sit down and read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic