You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Scott Sutherland <su...@ncs.com> on 2000/07/17 20:37:08 UTC

Re: Ejbc.java, WLRun.java, WLStop.java

>>>>> "c" == conor  <co...@locus.apache.org> writes:

c> conor 00/07/05 08:36:29 Modified: .  build.xml

c> Tasks for EJB development under Weblogic Server 4.51
  
c> This consists of four tasks - (documentation is coming) ddcreator -
c> converts deployment descriptors form text description to .ser files
c> ejbc - wrapper around weblogic ejbc compiler wlrun - a task to run
c> a weblogic server wlstop - a task to stop a weblogic server
  
c> The last two tasks are most useful when they can be run
c> asynchronously (also coming).

This commit appears to cause problems when attempting to build ant.
The build environment includes: Weblogic 5.1.0 and JDK1.3.  The
optional packages are attempting to build (as they should) and the
workaround is trivial, however, the problems appear to be ant related.

Here is the output of bootstrap.bat:

--- begin paste ---
D:\usr\src\jakarta-ant>bootstrap

... Bootstrapping Ant Distribution
JAVA_HOME=d:\win32app\jdk1.3
JAVA=d:\win32app\jdk1.3\bin\java
JAVAC=d:\win32app\jdk1.3\bin\javac
CLASSPATH=d:\win32app\weblogic-5.1.0\classes;d:\win32app\jdbc\classes12.zip;d:\usr\Java\jaxp1.0.1\jaxp.jar;d:\usr\Java\jaxp1.0.1\parser.jar;D:\win32app\weblogic-5.1.0\lib\weblogicaux.jar;;d:\win32app\jdk1.3\lib\tools.jar;classes;src\main

... Compiling Ant Classes

... Copying Required Files
src\main\org\apache\tools\ant\taskdefs\defaults.properties
        1 file(s) copied.

... Building Ant Distribution
Buildfile: build.xml

clean:
  [deltree] Deleting: D:\usr\src\build\ant
  [deltree] Deleting: D:\usr\src\dist\ant

prepare:
    [mkdir] Created dir: D:\usr\src\build\ant

check_for_optional_packages:

compile:
    [mkdir] Created dir: D:\usr\src\build\ant\classes
    [javac] Compiling 76 source files to D:\usr\src\build\ant\classes
    [javac]
D:\usr\src\jakarta-ant\src\main\org\apache\tools\ant\taskdefs\optional\ejb\Ejbc.java:146:
Incompatible type for method. Can't convert java.lang.String to
org.apache.tools.ant.Path.
    [javac]         helperTask.setClasspath(execClassPath);
    [javac]                                 ^
    [javac]
D:\usr\src\jakarta-ant\src\main\org\apache\tools\ant\taskdefs\optional\ejb\WLRun.java:159:
Incompatible type for method. Can't convert java.lang.String to
org.apache.tools.ant.Path.
    [javac]         weblogicServer.setClasspath(execClassPath);
    [javac]                                     ^
    [javac]
D:\usr\src\jakarta-ant\src\main\org\apache\tools\ant\taskdefs\optional\ejb\WLStop.java:119:
Incompatible type for method. Can't convert java.lang.String to
org.apache.tools.ant.Path.
    [javac]         weblogicAdmin.setClasspath(execClassPath);
    [javac]                                    ^
    [javac] 3 errors

BUILD FAILED

build.xml:71: Compile failed

Total time: 42 seconds

... Cleaning Up Build Directories

... Done Bootstrapping Ant Distribution

---  end paste  ---

Scott

-- 
Scott Sutherland                          National Computer Systems
(319) 354-9200                        Measurement Services Division
suthsc@ncs.com                                        Iowa City, Ia
import my.standard.disclaimer.*;                        GO HAWKS!!!

  "Coding in windows is sort of like writing a biography about a
  person who won't tell you anything about themselves." - jheart8


Re: Ejbc.java, WLRun.java, WLStop.java

Posted by Scott Sutherland <su...@ncs.com>.
>>>>> "S" == Stefan Bodewig <bo...@bost.de> writes:

S> Could somebody with J2EE and Weblogic please check that I didn't
S> break anything - I cannot compile EjbcHelper and DDCreatorHelper
S> due to missing classes.

Updated at about 10:15 CST and bootstraped successfully with the
weblogic optional packages, however, DDCreatorHelper didn't get
compiled that I can tell...

Is DDCreatorHelper optional for the j2ee sdk or Weblogic 4.5.1?
Looking at the build.xml file it's dependent on something that I can't
seem to find...

Scott

-- 
Scott Sutherland                          National Computer Systems
(319) 354-9200                        Measurement Services Division
suthsc@ncs.com                                        Iowa City, Ia
import my.standard.disclaimer.*;                        GO HAWKS!!!

  "Coding in windows is sort of like writing a biography about a
  person who won't tell you anything about themselves." - jheart8


Re: Ejbc.java, WLRun.java, WLStop.java

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "SS" == Scott Sutherland <su...@ncs.com> writes:

 SS> This commit appears to cause problems when attempting to build
 SS> ant.  

This happens when you cannot build all optional tasks in your own
environment - I don't have Weblogic installed and didn't realize these
classes depended on org.apache.tools.ant.taskdefs.Java when I change
the setClasspath method.

I've just committed a quick hack so we don't need to delay the
release, a better solution can and should be found.

Could somebody with J2EE and Weblogic please check that I didn't break
anything - I cannot compile EjbcHelper and DDCreatorHelper due to
missing classes.

Stefan

RE: Ejbc.java, WLRun.java, WLStop.java

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Scott,

Thanks for pointing that out. I will change the EJB tasks to use the new
Path object.

Conor

--
Conor MacNeill
conor@cortexebusiness.com.au
Cortex eBusiness
http://www.cortexebusiness.com.au

> -----Original Message-----
> From: suthsc@pain.ic.ncs.com [mailto:suthsc@pain.ic.ncs.com]On Behalf Of
> Scott Sutherland
> Sent: Tuesday, 18 July 2000 4:37
> To: ant-dev@jakarta.apache.org
> Subject: Re: Ejbc.java, WLRun.java, WLStop.java
>
>
> >>>>> "c" == conor  <co...@locus.apache.org> writes:
>
> c> conor 00/07/05 08:36:29 Modified: .  build.xml
>
> c> Tasks for EJB development under Weblogic Server 4.51
>
> c> This consists of four tasks - (documentation is coming) ddcreator -
> c> converts deployment descriptors form text description to .ser files
> c> ejbc - wrapper around weblogic ejbc compiler wlrun - a task to run
> c> a weblogic server wlstop - a task to stop a weblogic server
>
> c> The last two tasks are most useful when they can be run
> c> asynchronously (also coming).
>
> This commit appears to cause problems when attempting to build ant.
> The build environment includes: Weblogic 5.1.0 and JDK1.3.  The
> optional packages are attempting to build (as they should) and the
> workaround is trivial, however, the problems appear to be ant related.
>
> Here is the output of bootstrap.bat:
>
> --- begin paste ---
> D:\usr\src\jakarta-ant>bootstrap
>
> ... Bootstrapping Ant Distribution
> JAVA_HOME=d:\win32app\jdk1.3
> JAVA=d:\win32app\jdk1.3\bin\java
> JAVAC=d:\win32app\jdk1.3\bin\javac
> CLASSPATH=d:\win32app\weblogic-5.1.0\classes;d:\win32app\jdbc\clas
> ses12.zip;d:\usr\Java\jaxp1.0.1\jaxp.jar;d:\usr\Java\jaxp1.0.1\par
> ser.jar;D:\win32app\weblogic-5.1.0\lib\weblogicaux.jar;;d:\win32ap
> p\jdk1.3\lib\tools.jar;classes;src\main
>
> ... Compiling Ant Classes
>
> ... Copying Required Files
> src\main\org\apache\tools\ant\taskdefs\defaults.properties
>         1 file(s) copied.
>
> ... Building Ant Distribution
> Buildfile: build.xml
>
> clean:
>   [deltree] Deleting: D:\usr\src\build\ant
>   [deltree] Deleting: D:\usr\src\dist\ant
>
> prepare:
>     [mkdir] Created dir: D:\usr\src\build\ant
>
> check_for_optional_packages:
>
> compile:
>     [mkdir] Created dir: D:\usr\src\build\ant\classes
>     [javac] Compiling 76 source files to D:\usr\src\build\ant\classes
>     [javac]
> D:\usr\src\jakarta-ant\src\main\org\apache\tools\ant\taskdefs\opti
> onal\ejb\Ejbc.java:146:
> Incompatible type for method. Can't convert java.lang.String to
> org.apache.tools.ant.Path.
>     [javac]         helperTask.setClasspath(execClassPath);
>     [javac]                                 ^
>     [javac]
> D:\usr\src\jakarta-ant\src\main\org\apache\tools\ant\taskdefs\opti
> onal\ejb\WLRun.java:159:
> Incompatible type for method. Can't convert java.lang.String to
> org.apache.tools.ant.Path.
>     [javac]         weblogicServer.setClasspath(execClassPath);
>     [javac]                                     ^
>     [javac]
> D:\usr\src\jakarta-ant\src\main\org\apache\tools\ant\taskdefs\opti
> onal\ejb\WLStop.java:119:
> Incompatible type for method. Can't convert java.lang.String to
> org.apache.tools.ant.Path.
>     [javac]         weblogicAdmin.setClasspath(execClassPath);
>     [javac]                                    ^
>     [javac] 3 errors
>
> BUILD FAILED
>
> build.xml:71: Compile failed
>
> Total time: 42 seconds
>
> ... Cleaning Up Build Directories
>
> ... Done Bootstrapping Ant Distribution
>
> ---  end paste  ---
>
> Scott
>
> --
> Scott Sutherland                          National Computer Systems
> (319) 354-9200                        Measurement Services Division
> suthsc@ncs.com                                        Iowa City, Ia
> import my.standard.disclaimer.*;                        GO HAWKS!!!
>
>   "Coding in windows is sort of like writing a biography about a
>   person who won't tell you anything about themselves." - jheart8
>
>