Why does ant keep all generated classes in ejbcgen folder which is created by ant. Can 
I make it put somewhere else.

-----Original Message-----
From: Sundaranathan S [mailto:[EMAIL PROTECTED]]
Sent: 16 October 2002 10:20
To: Ant Users List
Subject: Re: Help ... ITs urgent


Hi,

    Make sure that directory under which the class files are generated is in 
classpath. Then check whether EControlPS is in correct package structure and also 
check whether it is imported.

-Sundar.

"Chekutty, Kiran" wrote:

> Hi all,
>
> This is the following error which I get. Its mourning about  The class file it 
>generated. EControlPS is the class generated while Deploying EJB. I am forwarding the 
>mail which explains the probem.
>
>  [ejbc] 
>D:\dev\projects\skyobma\ejbcgen\com\petrotechnics\skyobma\service\admin\entity\control\EControlPSWebLogic_CMP_RDBMS.java:12:
> cannot resolve symbol
>  [ejbc] symbol  : class EControlPS
>  [ejbc] location: class 
>com.petrotechnics.skyobma.service.admin.entity.control.EControlPSWebLogic_CMP_RDBMS
>  [ejbc]     implements EControlPS
>  [ejbc]                ^
>  [ejbc] 1 error
>  [ejbc] Exec failed .. exiting
>
> =====================================================================================
> Previous history of this bug
>
> Hi Eddie,
>
> It's me again. I have implemented what you said y'day i.e 
>d:\dev\projects\skyobma\source\service\admin\entity\control\jartemp in classpath.
>
> I will explain my directory structure.
>
> By directory structure is
>
>  d:dev\projects\skyobma  -- my project is called skyobma
> d:dev\projects\skyobma\source is the directory of source code.
>
> Ant has generated ejbcgen folder in skyobma (project directory) & it has generated 
>few classes during deployment process.They are
>
> EControl.class
> EControlBean.class
> EControlBeanEOImpl.class
> EControlBeanHomeImpl.class
> EControlHome.class
> EControlPS.class
> EControlPSWebLogic_CMP_RDBMS.java
>
> &
>
>  
>D:\dev\projects\skyobma\ejbcgen\com\petrotechnics\skyobma\service\admin\entity\control\EControlPSWebLogic_CMP_RDBMS.java:12:
> c
>  symbol  : class EControlPS
>  location: class 
>com.petrotechnics.skyobma.service.admin.entity.control.EControlPSWebLogic_CMP_RDBMS
>      implements EControlPS
>                 ^
>  1 error
>  Exec failed .. exiting
>
> How should I make ant to refer to the class EControlPS? Please Help me..
>
> Regards
> kiran
>
> -----Original Message-----
> From: Eddie Bernard [mailto:[EMAIL PROTECTED]]
> Sent: 15 October 2002 17:22
> To: Chekutty, Kiran
> Subject: RE: Help please.. ant 1.5b with weblogic 5.1
>
> What do you have your classpath defined as?  In other words, is
> "d:\dev\projects\skyobma\source\service\admin\entity\control\jartemp" in
> this defined classpath?  If it isn't, this may be the source of the "Class
> Not Found" error you previously mentioned.
>
> I also suggest that you add the <include> and <exclude> directives I
> mentioned in my previous response.
>
> -----Original Message-----
> From: Chekutty, Kiran [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 15, 2002 9:16 AM
> To: Eddie Bernard
> Subject: RE: Help please.. ant 1.5b with weblogic 5.1
>
> Ant is putting the generated classes in the my source directory within
> ejbcgen directory. How should I make it recognise the classes generated?
> This is my code:
>
> <ejbjar naming="directory"
> descriptordir="d:\dev\projects\skyobma\source\service\admin\entity\control\j
> artemp\META-INF"
>
> srcdir="d:\dev\projects\skyobma\source\service\admin\entity\control\jartemp"
> >
>             <weblogic destdir="D:\dev\projects\skyobma\new">
>
>                 <classpath refid="classpath"/>
>             </weblogic>
>
>             <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise
> JavaBeans 1.1//EN"
>                 location="http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd"/>
>             <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
>
> location="http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd"/>
>
>         </ejbjar>
>
> -----Original Message-----
> From: Eddie Bernard [mailto:[EMAIL PROTECTED]]
> Sent: 15 October 2002 17:09
> To: Chekutty, Kiran
> Subject: RE: Help please.. ant 1.5b with weblogic 5.1
>
> It looks like you need to make sure that your classpath also has the srcdir
> in it so it knows where to find the generated classes.
>
> -----Original Message-----
> From: Chekutty, Kiran [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 15, 2002 9:06 AM
> To: Eddie Bernard
> Subject: RE: Help please.. ant 1.5b with weblogic 5.1
>
> Hi
>
> Thanks for your reply. The error which I had before is a bit solved but not
> fully. It is giving me application specific error.The foll is the error
> message which I get
>
> [ejbjar] building META-INF.jar with 6 files
>   [ejbc]
> D:\dev\projects\skyobma\ejbcgen\com\petrotechnics\skyobma\service\admin\enti
> ty\control\EControlPSWebLogic_CMP_RDBMS.java:12: cannot resolve symbol
>   [ejbc] symbol  : class EControlPS
>   [ejbc] location: class
> com.petrotechnics.skyobma.service.admin.entity.control.EControlPSWebLogic_CM
> P_RDBMS
>   [ejbc]     implements EControlPS
>   [ejbc]                ^
>   [ejbc] 1 error
>
> where EControlPS is the class generated during the process of deployment.
> How should I over come this?.
>
> Thanks in advance
> kiran
>
> -----Original Message-----
> From: Eddie Bernard [mailto:[EMAIL PROTECTED]]
> Sent: 15 October 2002 16:58
> To: Chekutty, Kiran; '[EMAIL PROTECTED]'
> Subject: RE: Help please.. ant 1.5b with weblogic 5.1
>
> Kiran-
>
> I believe the problem is you are not specifying what deployment descriptors
> to pick up.  IIRC, Conor sent out a similar reply to such a question very
> recently.
>
> Nevertheless, try this instead:
>
> <ejbjar
> descriptordir="d:\dev\projects\skyobma\source\service\admin\entity\control\j
> artemp\META-INF"
> srcdir="d:\dev\projects\skyobma\source\service\admin\entity\control\jartemp"
> destdir="D:\dev\projects\skyobma\new">
> <weblogic destdir="D:\dev\projects\skyobma\new"> </weblogic>
> <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
> location="http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd"/>
> <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
> location="http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd"/>
>     <include name="**/ejb-jar.xml"/>
>     <exclude name="**/*weblogic*.xml"/>
> </ejbjar>
>
> Cheers!
> Eddie
>
> -----Original Message-----
> From: Chekutty, Kiran [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 15, 2002 5:05 AM
> To: [EMAIL PROTECTED]
> Subject: Help please.. ant 1.5b with weblogic 5.1
>
> Hi,
>
> Hope you will help me.... I have read your reply
> http://www.mail-archive.com/ant-user@jakarta.apache.org/msg19321.html
>
> I was getting a message....  Unable to load dependency analyzer:
> org.apache.tools.ant.util.depend.bcel.AncestorAnalyzer
> But after downloading bcel.jar & placing it in ant/lib directory  that
> message is gone. But i still have this error message
>
> Unable to locate weblogic deployment descriptor. It was expected to be in
> D:\dev\project
> kyobma\source\service\admin\entity\control\jartemp\META-INF\ejb-weblogic-ejb
> -jar.xml [ejbjar] building ejb.jar with 4 files [ejbc]
> java.lang.NoClassDefFoundError: weblogic/ejbc [ejbc] Exception in thread
> "main"
> The below is the post i have posted in jguru forums.
> ===========
>
> I am new to Ant build scripts. I am trying to build script for the project
> already there. Can anybody please tell me step by step procedure to deploy
> ejb's. I want to use weblogic to deploy my EJB's. I am using weblogic 5.1.
> This is the part which I am using to deploy ejb.
>
> <ejbjar
> descriptordir="d:\dev\projects\skyobma\source\service\admin\entity\control\j
> artemp\META-INF"
> srcdir="d:\dev\projects\skyobma\source\service\admin\entity\control\jartemp"
> destdir="D:\dev\projects\skyobma\new">
> <weblogic destdir="D:\dev\projects\skyobma\new"> </weblogic>
> <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
> location="http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd"/>
> <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
> location="http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd"/>
> </ejbjar>
>
> This is the message it give me:
>
> [ejbjar] Unable to load dependency analyzer:
> org.apache.tools.ant.util.depend.bcel.AncestorAnalyz [ejbjar] Unable to
> locate weblogic deployment descriptor. It was expected to be in
> D:\dev\project
> kyobma\source\service\admin\entity\control\jartemp\META-INF\ejb-weblogic-ejb
> -jar.xml [ejbjar] building ejb.jar with 4 files [ejbc]
> java.lang.NoClassDefFoundError: weblogic/ejbc [ejbc] Exception in thread
> "main"
> Please guide me... Thanks in advance
>
> Kiran Chekutty
> Petrotechnics Ltd.
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to