• Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to build application using xdoclet and ant  RSS feed

 
sanjeev kumar mandal
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am working with an application which using ejbGen to generate the ejb interfaces and ant as a build tool.Now we need to migrate the application from Weblogic to Jboss 7. I am new to xdoclet so i have gone through the net and found xdoclet annotations to replace the ejbGen annotations.


The class had below annotations that i have blocked :




// @FileGeneration(remoteClass = Constants.Bool.TRUE,
// remoteHome = Constants.Bool.TRUE,
// remoteClassName = "ConsolidatedClaim",
// remoteHomeName = "ConsolidatedClaimHome")
// @JndiName(remote = "com/hp/tiscon/eclaims/financial/service/persistence/api/claim/ConsolidatedClaim")
// @Session(type = Session.SessionType.STATELESS,
// maxBeansInFreePool = "100",
// defaultTransaction = Constants.TransactionAttribute.REQUIRED,
// ejbName = "ConsolidatedClaim",
// transactionType = Session.SessionTransactionType.CONTAINER,
// enableCallByReference = Constants.Bool.TRUE)


public class ConsolidatedClaimBean extends ClaimBean implements SessionBean {

}

The above annotations is replaced by the following code:

/**
* @ejb.bean type="Stateless"
* name="ConsolidatedClaim"
* jndi-name="com/hp/tiscon/eclaims/financial/service/persistence/api/claim/ConsolidatedClaim"
* view-type="remote"
*
* @ejb.transaction type="Required"
*/
public class ConsolidatedClaimBean extends ClaimBean implements SessionBean {

}



Where ClaimBean.java is an abstract class.

I am able to generate remote and home interface for some classes, but remote interface does not showing any business method. Example of one generated remote interface showing below:

/*
* Generated by XDoclet - Do not edit!
*/
package com.eclaims.financial.businesslogic.claim;

/**
* Remote interface for IppClaimForker.
*/
public interface IppClaimForker
extends javax.ejb.EJBObject
{

}


I am also getting an exception while building the application using ant . I am copying the exception below.

#####################

Buildfile: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\batch\build.xml
clean:
clean:
create.dir:
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\generated
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\generated-test
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\classes\compile
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\classes\test
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\paa_jar
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\partner_jar
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\ejb
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\ejb\META-INF
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\pme_jar
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\pme_zip
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\pme_zip\lib
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\pme_jar\META-INF
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\swe_jar
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\swe_zip
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\swe_zip\lib
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\swe_jar\META-INF
generate_gsmodel:
[java] -- Suppressing non fatal warnings.
generate_wsmodel:
[copy] Copying 1 file to C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives
[copy] Copying 1 file to C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\compiledWsdl
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\compiledWsdl\recatService
[mkdir] Created dir: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\compiledWsdl\sntNotifyService
[copydir] DEPRECATED - The copydir task is deprecated. Use copy instead.
[copydir] Copying 2 files to C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\generated\financialeclaims
[copy] Copying 1 file to C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\generated\com\hp\tiscon\eclaims\financial\service\integration\sntNotification\webservice
[copy] Copying 1 file to C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\generated\com\hp\tiscon\eclaims\financial\service\integration\recat\webservice
[jar] Building jar: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\compiledWsdl\recatService\FinancialEClaims_wsdl.jar
[jar] Building jar: C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\archives\compiledWsdl\sntNotifyService\SntNotificationService_wsdl.jar
generateejbfile:
[ejbdoclet] (XDocletMain.start 47 ) Running <remoteinterface/>
[ejbdoclet] Error parsing File C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\src\com\hp\tiscon\eclaims\financial\businesslogic\invoicechk\RlbClaimValidatorBean.java:Encountered "<" at line 154, column 21.
[ejbdoclet] Was expecting one of:
[ejbdoclet] ";" ...
[ejbdoclet] "=" ...
[ejbdoclet] "++" ...
[ejbdoclet] "--" ...
[ejbdoclet] "+=" ...
[ejbdoclet] "-=" ...
[ejbdoclet] "*=" ...
[ejbdoclet] "/=" ...
[ejbdoclet] "&=" ...
[ejbdoclet] "|=" ...
[ejbdoclet] "^=" ...
[ejbdoclet] "%=" ...
[ejbdoclet] "<<=" ...
[ejbdoclet] ">>=" ...
[ejbdoclet] ">>>=" ...
[ejbdoclet] "." ...
[ejbdoclet] "[" ...
[ejbdoclet] "(" ...
[ejbdoclet] ":" ...
[ejbdoclet] <IDENTIFIER> ...
[ejbdoclet]
[ejbdoclet] Error parsing File C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\code\src\com\hp\tiscon\eclaims\financial\service\integration\creditadapter\CreditAdapterBean.java:Encountered "<" at line 342, column 12.
[ejbdoclet] Was expecting one of:
[ejbdoclet] ";" ...
[ejbdoclet] "=" ...
[ejbdoclet] "++" ...
[ejbdoclet] "--" ...
[ejbdoclet] "+=" ...
[ejbdoclet] "-=" ...
[ejbdoclet] "*=" ...
[ejbdoclet] "/=" ...
[ejbdoclet] "&=" ...
[ejbdoclet] "|=" ...
[ejbdoclet] "^=" ...
[ejbdoclet] "%=" ...
[ejbdoclet] "<<=" ...
[ejbdoclet] ">>=" ...
[ejbdoclet] ">>>=" ...
[ejbdoclet] "." ...
[ejbdoclet] "[" ...
[ejbdoclet] "(" ...
[ejbdoclet] ":" ...
[ejbdoclet] <IDENTIFIER> ...
[ejbdoclet]
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.RecatSingleArchiveJoinerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.RecatSinglePendingJoinerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.RecatSinglePreclaimJoinerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.SntJokerSNServiceBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.flash.FlashForkerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.profile.SearchJoinerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.flash.DiffReportBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.SntNotifyClaimServiceBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.profile.SearchForkerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.flash.FixDateSchedulerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.SearchArchiveJoinerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.flash.FlashJoinerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.SearchJoinerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.RecatPreclaimJoinerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.flash.persistence.DiffReportPersistenceBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.IppClaimForkerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.service.persistence.api.profile.SearchBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.SntBuExclusionServiceBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.profile.ProfileJoinerBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.service.integration.processmanager.workflowabstraction.processmanager.PMBridgeFacadeBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.businesslogic.claim.flash.FlashConsolidationServiceBean'.
[ejbdoclet] Generating Remote interface for 'com.hp.tiscon.eclaims.financial.service.integration.creditadapter.CreditAdapterBean'.
[ejbdoclet] (TemplateEngine.invokeMethod 509 ) Invoking method failed: xdoclet.modules.ejb.intf.InterfaceTagsHandler.extendsFrom, line=10 of template file: jar:file:/C:/Projects/FeC/FeC-Code/Weblogic-migration-code-actual/FEC-src/Code/GUI%20And%20Services/financial/code/classes/lib/xdoclet/xdoclet-ejb-module-1.2b4.jar!/xdoclet/modules/ejb/intf/resources/remote.xdt
[ejbdoclet] java.lang.reflect.InvocationTargetException
[ejbdoclet] at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
[ejbdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:585)
[ejbdoclet] at xdoclet.template.TemplateEngine.invoke(TemplateEngine.java:603)
[ejbdoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:502)
[ejbdoclet] at xdoclet.template.TemplateEngine.invokeContentMethod(TemplateEngine.java:582)
[ejbdoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:437)
[ejbdoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:333)
[ejbdoclet] at xdoclet.template.TemplateEngine.start(TemplateEngine.java:382)
[ejbdoclet] at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:559)
[ejbdoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:765)
[ejbdoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:665)
[ejbdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:592)
[ejbdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:485)
[ejbdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)
[ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:458)
[ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:95)
[ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[ejbdoclet] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[ejbdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:585)
[ejbdoclet] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:348)
[ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:392)
[ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[ejbdoclet] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[ejbdoclet] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[ejbdoclet] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[ejbdoclet] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
[ejbdoclet] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
[ejbdoclet] Caused by: java.lang.NullPointerException
[ejbdoclet] at xdoclet.modules.ejb.EjbTagsHandler.extendsFromFor(EjbTagsHandler.java:772)
[ejbdoclet] at xdoclet.modules.ejb.intf.InterfaceTagsHandler.extendsFrom(InterfaceTagsHandler.java:577)
[ejbdoclet] ... 32 more
[ejbdoclet] xdoclet.template.TemplateException: Invoking method in class xdoclet.modules.ejb.intf.InterfaceTagsHandler failed: extendsFrom, line=10 of template file: jar:file:/C:/Projects/FeC/FeC-Code/Weblogic-migration-code-actual/FEC-src/Code/GUI%20And%20Services/financial/code/classes/lib/xdoclet/xdoclet-ejb-module-1.2b4.jar!/xdoclet/modules/ejb/intf/resources/remote.xdt, exception: null
[ejbdoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:510)
[ejbdoclet] at xdoclet.template.TemplateEngine.invokeContentMethod(TemplateEngine.java:582)
[ejbdoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:437)
[ejbdoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:333)
[ejbdoclet] at xdoclet.template.TemplateEngine.start(TemplateEngine.java:382)
[ejbdoclet] at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:559)
[ejbdoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:765)
[ejbdoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:665)
[ejbdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:592)
[ejbdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:485)
[ejbdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)
[ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:458)
[ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:95)
[ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[ejbdoclet] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[ejbdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:585)
[ejbdoclet] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:348)
[ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:392)
[ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[ejbdoclet] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[ejbdoclet] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[ejbdoclet] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[ejbdoclet] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
[ejbdoclet] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
[ejbdoclet] (XDocletMain.start 53 ) Running XDoclet failed.
[ejbdoclet] (XDocletMain.start 54 ) <<Running XDoclet failed.>>
[ejbdoclet] xdoclet.template.TemplateException: Invoking method in class xdoclet.modules.ejb.intf.InterfaceTagsHandler failed: extendsFrom, line=10 of template file: jar:file:/C:/Projects/FeC/FeC-Code/Weblogic-migration-code-actual/FEC-src/Code/GUI%20And%20Services/financial/code/classes/lib/xdoclet/xdoclet-ejb-module-1.2b4.jar!/xdoclet/modules/ejb/intf/resources/remote.xdt, exception: null
[ejbdoclet] at xdoclet.template.TemplateEngine.invokeMethod(TemplateEngine.java:510)
[ejbdoclet] at xdoclet.template.TemplateEngine.invokeContentMethod(TemplateEngine.java:582)
[ejbdoclet] at xdoclet.template.TemplateEngine.handleTag(TemplateEngine.java:437)
[ejbdoclet] at xdoclet.template.TemplateEngine.generate(TemplateEngine.java:333)
[ejbdoclet] at xdoclet.template.TemplateEngine.start(TemplateEngine.java:382)
[ejbdoclet] at xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:559)
[ejbdoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:765)
[ejbdoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:665)
[ejbdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:592)
[ejbdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:485)
[ejbdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)
[ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:458)
[ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:95)
[ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[ejbdoclet] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[ejbdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:585)
[ejbdoclet] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:348)
[ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:392)
[ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[ejbdoclet] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[ejbdoclet] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[ejbdoclet] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[ejbdoclet] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
[ejbdoclet] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
[ejbdoclet] C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\batch\build.xml:477: XDoclet failed.
[ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:461)
[ejbdoclet] at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:95)
[ejbdoclet] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
[ejbdoclet] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[ejbdoclet] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ejbdoclet] at java.lang.reflect.Method.invoke(Method.java:585)
[ejbdoclet] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[ejbdoclet] at org.apache.tools.ant.Task.perform(Task.java:348)
[ejbdoclet] at org.apache.tools.ant.Target.execute(Target.java:392)
[ejbdoclet] at org.apache.tools.ant.Target.performTasks(Target.java:413)
[ejbdoclet] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
[ejbdoclet] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
[ejbdoclet] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[ejbdoclet] at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[ejbdoclet] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
[ejbdoclet] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
[ejbdoclet] at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
[ejbdoclet] Caused by: xdoclet.XDocletException: Running XDoclet failed.
[ejbdoclet] at xdoclet.TemplateSubTask.generateForClass(TemplateSubTask.java:774)
[ejbdoclet] at xdoclet.TemplateSubTask.startProcessPerClass(TemplateSubTask.java:665)
[ejbdoclet] at xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:592)
[ejbdoclet] at xdoclet.TemplateSubTask.execute(TemplateSubTask.java:485)
[ejbdoclet] at xdoclet.XDocletMain.start(XDocletMain.java:48)
[ejbdoclet] at xdoclet.DocletTask.start(DocletTask.java:458)
[ejbdoclet] ... 16 more

BUILD FAILED
C:\Projects\FeC\FeC-Code\Weblogic-migration-code-actual\FEC-src\Code\GUI And Services\financial\batch\build.xml:477: Unexpected error

########################################

I am copying the xdoclet portion of build.xml below:::::


<target name="generateejbfile" description="generate deployment descriptors"
depends="create.dir,generate_gsmodel, generate_wsmodel">
<taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask" classpathref="xdoclet.classpath" />

<ejbdoclet destdir="${dir.source.generated}" excludedtags="@version,@author,<>" ejbspec="2.0" verbose="${debug}" mergedir="${dir.conf.xdoclet}" force="true">
<fileset dir="${dir.source}">


<include name="com/hp/tiscon/eclaims/financial/service/persistence/api/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/persistence/api/profile/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/persistence/api/user/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/util/FinancialConfigurationWrapperBean.java" />
<include name="com/hp/tiscon/eclaims/financial/businesslogic/claim/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/businesslogic/invoicechk/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/businesslogic/profile/*Bean.java" />

<include name="com/hp/tiscon/eclaims/financial/businesslogic/worker/WorkerBean.java" />
<include name="com/hp/tiscon/eclaims/financial/businesslogic/maintenance/MaintenanceBean.java" />
<include name="com/hp/tiscon/eclaims/financial/businesslogic/claim/flash/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/businesslogic/claim/flash/persistence/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/mail/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/integration/creditadapter/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/integration/eoi/api/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/integration/creditadapter/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/integration/gpsy/api/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/integration/processmanager/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/integration/processmanager/workflowabstraction/processmanager/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/integration/recat/api/*Bean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/integration/snt/SntServiceFacadeBean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/integration/snt/*ejb.java" />


</fileset>
<remoteinterface />
<homeinterface />


<!--
<deploymentdescriptor destdir="${dir.source.generated}" validatexml="false"/>
<jboss destDir="${dir.source.generated}" version="4.0"/>
-->
</ejbdoclet>

</target>





<target name="xdoclet" description="generate deployment descriptors"
depends="create.dir, generate_gsmodel, generate_wsmodel">
<taskdef name="ejbdoclet" classname="xdoclet.modules.ejb.EjbDocletTask">
<classpath refid="xdoclet.classpath"/>
</taskdef>

<ejbdoclet destdir="${dir.source.generated}" excludedtags="@version,@author"
ejbspec="2.0" mergedir="${dir.conf.xdoclet}" force="true">
<fileset dir="${dir.source}">
<include name="com/hp/tiscon/eclaims/financial/service/persistence/api/claim/ConsolidatedClaimBean.java"/>
<include name="**/RecatClaimServiceBean.java"/>
<include name="**/SntNotifyClaimServiceBean.java"/>
<include name="**/AsychronousUploadBean.java"/>
<include name="**/ShortCutterBean.java"/>
<include name="**/FinancialConfigurationWrapperBean.java"/>
<include name="**/MultipleClaimsHandlerBean.java"/>
<include name="**/ClaimLockBean.java"/>
<include name="**/RecatStagingBean.java"/>
<include name="**/ClaimsourceBean.java"/>
<include name="**/DiffReportBean.java"/>
<include name="**/MailerBean.java"/>
<include name="**/AsyncMailerMBean.java"/>
<include name="**/FlashConsolidationServiceBean.java"/>
<include name="**/SchedulerBean.java"/>
<include name="**/FixDateSchedulerBean.java"/>
<include name="**/FlashPersistenceBean.java" />
<include name="**/MessagePersistenceBean.java" />
<include name="**/DiffReportPersistenceBean.java" />
<include name="**/CreditAdapterBean.java" />
<include name="**/PMBridgeFacadeBean.java"/>
<include name="**/PartnerUserSessionBean.java" />
<include name="**/EclaimUserSessionBean.java" />
<include name="**/SntServiceFacadeBean.java" />
<include name="**/SntBuExclusionServiceBean.java" />
<include name="**/SntJokerSNServiceBean.java" />
<include name="**/JmsStatisticsFacadeEJB.java" />
<include name="**/DeadLetterQueueEJB.java" />
<include name="**/SntClientQueueEJB.java" />
<include name="**/Log4JServiceFacadeEJB.java" />
<include name="**/FlashJoinerBean.java" />
<include name="**/FlashForkerBean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/integration/processmanager/ProcessManagerExecutorDBHelperBean.java"/>
<include name="com/hp/tiscon/eclaims/financial/service/persistence/api/claim/RecatSinglePendingBean.java" />
<include name="com/hp/tiscon/eclaims/financial/service/persistence/api/claim/ClaimsourcePendingBean.java" />
<include name="com/hp/tiscon/eclaims/financial/businesslogic/claim/flash/persistence/MessagePersistencePendingBean.java" />
<include name="com/hp/tiscon/eclaims/financial/businesslogic/claim/flash/persistence/MessagePersistencePreclaimBean.java" />
<include name="com/hp/tiscon/eclaims/financial/businesslogic/claim/RecatSinglePendingJoinerBean.java" />
<include name="com/hp/tiscon/eclaims/financial/businesslogic/maintenance/MaintenanceBean.java" />
</fileset>
<remoteinterface/>
<homeinterface/>
<localinterface pattern="{0}Local" />
<localhomeinterface/>
<deploymentdescriptor destdir="${dir.source.generated}" validatexml="false"/>
<jboss destDir="${dir.source.generated}" version="4.0"/>
</ejbdoclet>


<!-- The RemoteInterface of the ProcessManagerPMBridge is already in the bpm-client.jar -->
<delete failonerror="false">
<fileset dir="${dir.source.generated}">
<include name="**/BPMConnectionFacade.java"/>
</fileset>
</delete>



<ejbdoclet destdir="${dir.source.generated.test}" excludedtags="@version,@author"
ejbspec="2.0" mergedir="${dir.conf.xdoclet}" force="true">
<fileset dir="${dir.source.test}">
<include name="junit/**/*Bean.java"/>
</fileset>
<fileset dir="${dir.source}">
<include name="**/AsychronousUploadBean.java"/>
<include name="**/ConsolidatedClaimBean.java"/>
<include name="**/FinancialConfigurationWrapperBean.java"/>
</fileset>
<remoteinterface/>
<homeinterface/>
<deploymentdescriptor destdir="${dir.source.generated.test}" validatexml="false"/>
<jboss destDir="${dir.source.generated.test}" version="3.0"/>
</ejbdoclet>

<taskdef name="jmxdoclet" classname="xdoclet.modules.jmx.JMXDocletTask">
<classpath refid="xdoclet.classpath"/>
</taskdef>
<jmxdoclet destdir="${dir.source.generated}" excludedtags="@version,@author"
addedtags="@xdoclet-generated at ${TODAY}" mergedir="${dir.conf.xdoclet}">
<fileset dir="${dir.source}">
<include name="com/hp/tiscon/eclaims/financial/service/integration/snt/JmsStatistics.java" />
</fileset>
<mbeaninterface destdir="${dir.source.generated}" mergedir="${dir.conf.xdoclet}" />
<jbossxmlservicetemplate destdir="${dir.source.generated}" servicefile="jboss" />
</jmxdoclet>

</target>


Please help me to find the root cause.

Regards
Sanjeev Kumar




 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error messages point to two specific locations in two specific files, where the annotations are apparently not to the tool's liking. You didn't post the code for those files -so we can't speculate what's going on there-, but start with those, and with a bit of luck the rest *may* just be follow-on errors.
 
sanjeev kumar mandal
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf Dittmer,

Thanks for your response. I have found the issue and the issue was xdoclet jars were old ,so not able to parse the generics for java.util.list class. I have changed all xdoclet jars with latest version and its working fine.

Regards
Sanjeev Kumar
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!