Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 80714 invoked by uid 500); 5 Sep 2001 16:58:00 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 80685 invoked from network); 5 Sep 2001 16:57:59 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 content-class: urn:content-classes:message Subject: RE: Ant 1.4, RMIC, and weblogic.... MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1362A.E550DB7E" Date: Wed, 5 Sep 2001 12:50:40 -0400 Message-ID: <9093431B64301C47986EF078512912AD09F84B@xchange.stargus.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Ant 1.4, RMIC, and weblogic.... Thread-Index: AcE1kuXxDzC+cnLnSAyLriVEJskJjAAlceeg From: "Matt Lyon" To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C1362A.E550DB7E Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Daniel, =20 This post may be veering dangerously close to containing material that would be better sent to a weblogic discussion group listserver, but just to close the loop on this thread, I saw Conor's follow-up about adding your patch to handle passing arguments to the compiler. FYI, I had tried adding weblogic.jar to ant\lib prior to my initial post on this thread and the problem of Ant not being able to invoke weblogic.rmic still persisted.=20 =20 In any case, as you alluded to, this workaround (e.g. placing weblogic.jar in ant\lib) is not an ideal solution anyway. In my case, I have several packages with a compile-time dependency on jdom.jar, and I have found that I therefore have to be careful to make sure that weblogic.jar comes after jdom.jar on my CLASSPATH parameter, as weblogic.jar contains an old SAXParser.=20 =20 For the time being, I've decided to revert to using to execute weblogic.rmic as follows: =20 =20 I have a huge back-end/front-end integration deadline I'm trying to nail and I don't really have the cycles to try and debug the issue with Ant at the moment. At some point I'll revisit the issue. I probably need to tweak some CLASSPATH settings and my build.xml code to locate the magic "make-it-go" button. =20 Cheers, =20 Matt -----Original Message----- From: Daniel Hoppe [mailto:hoppe@sitewaerts.de] Sent: Tuesday, September 04, 2001 4:45 PM To: 'ant-user@jakarta.apache.org' Subject: RE: Ant 1.4, RMIC, and weblogic.... Hi, =20 I posted this as a problem on ant-dev a week ago. For me it won't run if I don't put the weblogic stuff into the ant lib directory. I looked at the code and it seems that the actual compiler will not use the nested classpath (I might be wrong here, not too sure). The problem is that the weblogic 6.1 libs break other functionality. The task from the CVS had another problem, I think it was broken. I sent what I think is a correction, but I guess that due to the 1.4 release stress noone looked at it until now. =20 You can try to put weblogic.jar into the ant lib directory, again, other tasks - especially xml related things - might fail if you do... =20 Daniel =20 -----Original Message----- From: Phil Beiler [mailto:phil_beiler@fanniemae.com] Sent: Tuesday, September 04, 2001 8:25 PM To: ant-user@jakarta.apache.org Subject: RE: Ant 1.4, RMIC, and weblogic.... I must have been seeing things this morning, because as soon as I mailed my earlier question (about clustering options) I am now getting the same error as Matt... I have not been able to make it work again today... =20 So any information on this problem would also be helpful... =20 Phil =20 =20 [rmic] com\fanniemae\customersolutions\ce\webapp\service\PropertiesServiceImpl. class added as c:\opt\Deploy\.build\webapp\com\fanniemae\customersolutions\ce\webapp\se rvice\PropertiesServiceImpl_WLStub.class doesn't exist. [rmic] RMI Compiling 1 class to \opt\Deploy\.build\webapp [rmic] Using WebLogic rmic [rmic] Compilation args: -noexit -d c:\opt\Deploy\.build\webapp -classpath c:\opt\Deploy\.build\webapp;C:\opt\jakarta-log4j1.0.4\dist\lib\log4j.jar ;C:\opt\jakarta-struts-1.0\lib\struts.jar;C:\opt\xerces-1_3_\xerces.jar; C:\opt\weblogic\classes;C:\opt\weblogic\lib\weblogicaux.jar;C:\opt\Deplo y\.build\webapp;C:\Packages\jdk1.3\lib\tools.jar;C:\opt\jakarta-ant-1.4\ lib\jaxp.jar;C:\opt\jakarta-ant-1.4\lib\jakarta-ant-1.4-optional.jar;C:\ opt\jakarta-ant-1.4\lib\crimson.jar;C:\opt\jakarta-ant-1.4\lib\ant.jar [rmic] File to be compiled: com.fanniemae.customersolutions.ce.webapp.service.PropertiesServiceImpl =20 BUILD FAILED =20 C:\home\sxupjb\Source\CE\src\webapp\local.build.xml:41: Cannot use WebLogic rmic, as it is not available A common solution is to set the environment variable CLASSPATH. =20 =20 =20 =20 -----Original Message----- From: Matt Lyon [mailto:matt@stargus.com] Sent: Tuesday, September 04, 2001 1:26 PM To: ant-user@jakarta.apache.org Subject: RE: Ant 1.4, RMIC, and weblogic.... Fellow Ant Users, =20 The rmic task seems to work for me only when I do not try to use the weblogic rmic compiler. If I set the magic property = build.rmic=3Dweblogic in an external user.properties file, I see the following error output: =20 ------------------------------------------------------------------------ -------------------------------------------------------------------- [rmic] RMI Compiling 1 class to C:\latest\starman\Build\startup [rmic] Class not found : com.stargus.platform.framework.topology.RemoteTopologyMgrImpl =20 BUILD FAILED =20 C:\latest\starman\projects\Master\front_end.xml:396: Error starting WebLogic rmic: ------------------------------------------------------------------------ -------------------------------------------------------------------- =20 For whatever reason, the task ceases to be able to locate the class, although it is there, and cannot invoke the weblogic rmic class for an unspecified reason. C:\bea\wlserver6.0\lib\weblogic.jar is appended to my system CLASSPATH. I have also tried placing weblogic.jar in C:\ant\lib (a.k.a. ANT_HOME) and setting includeJavaRuntime=3D"yes" in = the task to no avail. The relevant build.xml snippet is as follows: =20 =20 I am quite sure the issues I am having are due to operator error(s) and that I am overlooking some fundamental configuration or code error, but I am baffled. Does anyone have any insight? =20 Cheers, =20 Matt -----Original Message----- From: Phil Beiler [mailto:phil_beiler@fanniemae.com] Sent: Tuesday, September 04, 2001 8:55 AM To: ANT User Group Subject: Ant 1.4, RMIC, and weblogic.... The new rmic task worked like a champ, but I see no way to provide options to the weblogic.rmic command? Specifically, I need to specify the -clusterable option... =20 What am I missing? =20 Thanks. Phil <<<<<<<<<<<<<<<<<<<<<<<<<<< sitewaerts GmbH Hebelstra=DFe 15 D-76133 Karlsruhe Tel: +49 (721) 920 918 0 Fax: +49 (721) 920 918 29 http://www.sitewaerts.de >>>>>>>>>>>>>>>>>>>>>>>>>>> ------_=_NextPart_001_01C1362A.E550DB7E Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Daniel,
 
This=20 post may be veering dangerously close to containing material that would = be=20 better sent to a weblogic discussion group listserver, but just to close = the=20 loop on this thread, I saw Conor's follow-up about adding your patch to = handle=20 passing arguments to the compiler. FYI, I had tried adding = weblogic.jar to=20 ant\lib prior to my initial post on this thread and the problem of = Ant not=20 being able to invoke weblogic.rmic still persisted.
 
In any=20 case, as you alluded to, this workaround (e.g. placing weblogic.jar in = ant\lib)=20 is not an ideal solution anyway. In my case, I have several = packages with a=20 compile-time dependency on jdom.jar, and I have found that I = therefore=20 have to be careful to make sure that weblogic.jar comes after jdom.jar = on my=20 <javac/> CLASSPATH parameter, as weblogic.jar contains an old = SAXParser.=20
 
For=20 the time being, I've decided to revert to using <java/> to=20 execute weblogic.rmic as follows:
 
  <java classname=3D"weblogic.rmic"=20
       =20 fork=3D"true"
       =20 classpath=3D"${startup};${lib}\xerces.jar;${lib}\jdom.jar;${lib}\junit37.= jar;${lib}\jcchart450K.jar;${lib}\xalan.jar;..\..\..\..\bea\wlserver6.0\l= ib\weblogic.jar">
   =20 <arg line=3D"-d ${startup}=20 com.stargus.platform.framework.topology.RemoteTopologyMgrImpl"/>
&n= bsp; </java>
 
I have=20 a huge back-end/front-end integration deadline I'm trying to nail and I = don't=20 really have the cycles to try and debug the issue with Ant at the = moment. At=20 some point I'll revisit the issue. I probably need to tweak some = CLASSPATH=20 settings and my build.xml code to locate the magic "make-it-go"=20 button.
 
Cheers,
 
Matt
-----Original Message-----
From: Daniel Hoppe=20 [mailto:hoppe@sitewaerts.de]
Sent: Tuesday, September 04, = 2001 4:45=20 PM
To: 'ant-user@jakarta.apache.org'
Subject: RE: = Ant 1.4,=20 RMIC, and weblogic....

Hi,
 
I=20 posted this as a problem on ant-dev a week ago. For me it won't run if = I don't=20 put the weblogic stuff into the ant lib directory. I looked at = the code=20 and it seems that the actual compiler will not use the nested = classpath (I=20 might be wrong here, not too sure). The problem is that the weblogic = 6.1 libs=20 break other functionality. The task from the CVS had another problem, = I think=20 it was broken. I sent what I think is a correction, but I guess that = due to=20 the 1.4 release stress noone looked at it until = now.
 
You=20 can try to put weblogic.jar into the ant lib directory, again, other = tasks -=20 especially xml related things - might fail if you = do...
 
Daniel
 
-----Original Message-----
From: Phil Beiler=20 [mailto:phil_beiler@fanniemae.com]
Sent: Tuesday, = September 04,=20 2001 8:25 PM
To: = ant-user@jakarta.apache.org
Subject:=20 RE: Ant 1.4, RMIC, and weblogic....

I must=20 have been seeing things this morning, because as soon as I mailed my = earlier=20 question (about clustering options) I am now getting the same error = as=20 Matt... I have not been able to make it work again=20 today...
 
So any=20 information on this problem would also be = helpful...
 
Phil
 
 
     [rmic]=20 = com\fanniemae\customersolutions\ce\webapp\service\PropertiesServiceImpl.c= lass=20 added as=20 = c:\opt\Deploy\.build\webapp\com\fanniemae\customersolutions\ce\webapp\ser= vice\PropertiesServiceImpl_WLStub.class=20 doesn't exist.
     [rmic] RMI Compiling 1 = class to=20 \opt\Deploy\.build\webapp
     [rmic] Using = WebLogic=20 rmic
     [rmic] Compilation args: -noexit -d = c:\opt\Deploy\.build\webapp -classpath=20 = c:\opt\Deploy\.build\webapp;C:\opt\jakarta-log4j1.0.4\dist\lib\log4j.jar;= C:\opt\jakarta-struts-1.0\lib\struts.jar;C:\opt\xerces-1_3_\xerces.jar;C:\opt\weblogic\classes;C:\opt\weblogic\lib\weblogicaux.j= ar
;C:\opt\Deploy\.build\webapp;C:\Packages\jdk1.3\lib\tools.jar;C:= \opt\jakarta-ant-1.4\lib\jaxp.jar;C:\opt\jakarta-ant-1.4\lib\jakarta-ant-= 1.4-optional.jar;C:\opt\jakarta-ant-1.4\lib\crimson.jar;C:\opt\jakarta-an= t-1.4\lib\ant.jar
    =20 [rmic] File to be compiled:   =20 = com.fanniemae.customersolutions.ce.webapp.service.PropertiesServiceImpl
 
BUILD=20 FAILED
 
C:\home\sxupjb\Source\CE\src\webapp\local.buil= d.xml:41:=20 Cannot use WebLogic rmic, as it is not available A common solution = is to set=20 the environment variable CLASSPATH.
 
 
 
 
-----Original Message-----
From: Matt Lyon=20 [mailto:matt@stargus.com]
Sent: Tuesday, September 04, = 2001 1:26=20 PM
To: ant-user@jakarta.apache.org
Subject: = RE: Ant=20 1.4, RMIC, and weblogic....

Fellow Ant Users,
 
The rmic task seems to work for me only when = I do not try=20 to use the weblogic rmic compiler. If I set the magic property=20 build.rmic=3Dweblogic in an external user.properties file, I = see the=20 following error output:
 
----------------------------------------------------------------= -------------------------------------------------------------------------= ---
     [rmic] RMI Compiling 1 class to=20 C:\latest\starman\Build\startup
     [rmic] = Class=20 not found :=20 = com.stargus.platform.framework.topology.RemoteTopologyMgrImpl
 
BUILD FAILED
 
C:\latest\starman\projects\Master\front_end.xml:396: = Error starting=20 WebLogic rmic:
----------------------------------------------------------------= -------------------------------------------------------------------------= ---
 
For whatever reason, the task ceases to = be able=20 to locate the class, although it is there, and cannot invoke the = weblogic=20 rmic class for an unspecified reason.=20 C:\bea\wlserver6.0\lib\weblogic.jar is appended to my = system=20 CLASSPATH. I have also tried = placing=20 weblogic.jar in C:\ant\lib (a.k.a. ANT_HOME) and setting=20 includeJavaRuntime=3D"yes" in the task to no avail. The = relevant=20 build.xml snippet is as follows:
 
  <rmic=20 base=3D"${startup}"
       =20 = classname=3D"com.stargus.platform.framework.topology.RemoteTopologyMgrImp= l">
   =20 <classpath=20 = refid=3D"startupcp"/>
  </rmic>
 
I am quite sure the issues I am having=20 are due to operator error(s) and that I am = overlooking some=20 fundamental configuration or code error, but I am baffled. = Does=20 anyone have any insight?
 
Cheers,
 
Matt
-----Original Message-----
From: Phil Beiler=20 [mailto:phil_beiler@fanniemae.com]
Sent: Tuesday, = September=20 04, 2001 8:55 AM
To: ANT User Group
Subject: = Ant=20 1.4, RMIC, and weblogic....

The new = rmic task=20 worked like a champ, but I see no way to provide options to the=20 weblogic.rmic command?  Specifically, I need to specify the = -clusterable option...
 
What am = I=20 missing?
 
Thanks. = = Phil

<<<<<<<<<<<<<<<<= <<<<<<<<<<<

sitewaerts GmbH

Hebelstra=DFe 15

D-76133 Karlsruhe


Tel: +49 (721) 920 918 = 0

Fax: +49 (721) 920 918 = 29

http://www.sitewaerts.de

>>>>>>>>>>>>>>>>= >>>>>>>>>>>



------_=_NextPart_001_01C1362A.E550DB7E--