permaculture playing cards*
The moose likes JBoss/WildFly and the fly likes MIgrated from EJB2 to ejb3 now build is getting failed, Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "MIgrated from EJB2 to ejb3 now build is getting failed," Watch "MIgrated from EJB2 to ejb3 now build is getting failed," New topic
Author

MIgrated from EJB2 to ejb3 now build is getting failed,

sagar shiraguppi
Ranch Hand

Joined: Jul 16, 2007
Posts: 74
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.
E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
Again, post the full error message that you are getting.
sagar shiraguppi
Ranch Hand

Joined: Jul 16, 2007
Posts: 74
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:
[antlibrg.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

Joined: Mar 17, 2012
Posts: 892
    
    9
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

Joined: Jul 16, 2007
Posts: 74
@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

Joined: Mar 17, 2012
Posts: 892
    
    9
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MIgrated from EJB2 to ejb3 now build is getting failed,
 
Similar Threads
why JBoss?
Not able to build EJB 3 beans
JBuilder to Netbeans problem
What are the steps to Migrate a Web Service from Tomcat to JBoss
Learning Hibernate Annotations