You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mirae-user@ws.apache.org by "ray.wang" <ra...@passportcorp.com> on 2007/04/02 18:27:42 UTC

failed to build mirae

Hi,

    I am a Mirae newbie. I tried to build Mirae both on Windows and 
Linux platforms but I could not pass "ant test".   I sent an email to 
mirae-dev mailing list but have so far received no response. 

    Is it possible for some one out there who has successfully built the 
binary version of Mirae to send me the binary distribution of Mirae?

Thanks a lot.

-Ray


PS>    For any one who wants to lend me a helping hand in building 
Mirae, here is the previous email that I sent to mirae-dev mailing list:


   I am new to Mirae. I downloaded Mirae project trunk, followed the 
build instructions to get all the dependent jars in place.  However, 
"ant build" failed because javac saw duplicate class name.  I could not 
believe I am the only person who is seeing this error.

D:\java\apache\jsr172_me_web_service>ant build
Buildfile: build.xml

build:

prepare:

compile-mirae:
   [javac] Compiling 78 source files to 
D:\java\apache\jsr172_me_web_service\build\class
es\mirae
   [javac] 
D:\java\apache\jsr172_me_web_service\src\mirae\stax\javax\xml\namespace\QName 

.java:42: duplicate class: javax.xml.namespace.QName
   [javac] public class QName {
   [javac]        ^
   [javac] 
D:\java\apache\jsr172_me_web_service\src\mirae\ws\javax\xml\namespace\QName.j 

ava:31: duplicate class: javax.xml.namespace.QName
   [javac] public class QName {
   [javac]        ^
   [javac] 
D:\java\apache\jsr172_me_web_service\src\mirae\ws\javax\xml\rpc\NamespaceCons 

tants.java:24: duplicate class: javax.xml.rpc.NamespaceConstants
   [javac] public class NamespaceConstants {
   [javac]        ^


I see that in MIRAE_HOME/lib, jaxrpc.jar contains 
javax.xml.rpc.QName.class , looks like this is the reason for the very 
first compilation error for mirae\stax\javax\sml\namespace\QName.java. 
I can build the following targets: dist, jar-mirae-jaxp, jar-mirae-stax, 
jar-mirae-ws, but I can not build jar-mirae.  This is really bugging 
me.  Am I missing something simple?  Does the version Wireless Toolkit 
matter? I am using WTK2.5.   Anyway,  I need help.


My system.properties file looks like:

version=mirae-1.0
java.me.home=D:/java/j2me/WTK25
tomcat.home=D:/ProgramFiles/Apache/apache-tomcat-5.5.17
mirae.home=D:/java/apache/jsr172_me_web_service
ant.home=D:/java/apache/apache-ant-1.6.5
antenna.jar.path=D:/java/j2me/antenna/dist/antenna-bin-0.9.14.jar
build.debug=true
wtk.home=${java.me.home}
wtk.cldc.version=1.1
wtk.midp.version=2.0
wtk.midpapi=${wtk.home}/lib/midpapi20.jar:${wtk.home}/lib/cldcapi11.jar
tomcat.start=startup.bat
tomcat.stop=shutdown.bat


I am using java full version "1.4.2_04-b05".
I am using Microsoft Windows XP [Version 5.1.2600] Professional SP2 but 
I don't think this matters because I tried the same thing on
a Linux box running Ubuntu, I still got the same error.
The $MIRAE_HOME$\lib contains the following jar files

03/16/2007  12:39 PM         1,632,995 axis.jar
03/16/2007  12:39 PM            71,442 commons-discovery-0.2.jar
03/16/2007  12:39 PM            38,015 commons-logging-1.0.4.jar
03/16/2007  12:39 PM            32,062 jaxrpc.jar
03/16/2007  12:39 PM           352,668 log4j-1.2.8.jar
03/18/2007  11:51 AM            42,086 mail4me.jar
03/16/2007  12:39 PM            19,419 saaj.jar
03/16/2007  12:39 PM           126,771 wsdl4j-1.5.1.jar







---------------------------------------------------------------------
To unsubscribe, e-mail: mirae-user-unsubscribe@ws.apache.org
For additional commands, e-mail: mirae-user-help@ws.apache.org