Hocine_Mecherouki | 12 Jul 2006 12:53
Picon

XmlTask




Hello,

I have a problem when I try to use xmlTask like this:

        <taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask"/>            
               
        <xmltask source="web.xml" dest="dest/web.xml"
        public="-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN "
        system="http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" >


test:
  [xmltask] java.net.UnknownHostException: java.sun.com
  [xmltask]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:176)
  [xmltask]     at java.net.Socket.connect(Socket.java:459)
  [xmltask]     at java.net.Socket.connect(Socket.java:409)
  [xmltask]     at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
  [xmltask]     at sun.net.www.http.HttpClient.openServer(HttpClient.java:414)
  [xmltask]     at sun.net.www.http.HttpClient.openServer(HttpClient.java:628)
  [xmltask]     at sun.net.www.http.HttpClient.<init>(HttpClient.java:331)
  [xmltask]     at sun.net.www.http.HttpClient.<init>(HttpClient.java:292)
  [xmltask]     at sun.net.www.http.HttpClient.New(HttpClient.java:364)
  [xmltask]     at sun.net.www.http.HttpClient.New(HttpClient.java:345)
  [xmltask]     at sun.net.www.http.HttpClient.New(HttpClient.java:340)
  [xmltask]     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Http
URLConnection.java:506)
  [xmltask]     at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLCo
nnection.java:497)
  [xmltask]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht
tpURLConnection.java:599)
  [xmltask]     at java.net.URL.openStream(URL.java:985)
  [xmltask]     at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Un
known Source)
  [xmltask]     at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown S
ource)
  [xmltask]     at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknow
n Source)
  [xmltask]     at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unkno
wn Source)
  [xmltask]     at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.d
ispatch(Unknown Source)
  [xmltask]     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
ument(Unknown Source)
  [xmltask]     at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
urce)
  [xmltask]     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Sour
ce)
  [xmltask]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  [xmltask]     at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
  [xmltask]     at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Sour
ce)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.documentFromStream(Xm
lTask.java:359)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.documentFromFile(XmlT
ask.java:376)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.access$000(XmlTask.ja
va:27)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask$InputFile.getDocument
(XmlTask.java:220)
  [xmltask]     at com.oopsconsultancy.xmltask.ant.XmlTask.execute(XmlTask.java:
625)
  [xmltask]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
  [xmltask]     at org.apache.tools.ant.Task.perform(Task.java:364)
  [xmltask]     at org.apache.tools.ant.Target.execute(Target.java:341)
  [xmltask]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
  [xmltask]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1216)
  [xmltask]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

  [xmltask]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:40)
  [xmltask]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
  [xmltask]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
  [xmltask]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
  [xmltask]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
  [xmltask]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

BUILD FAILED
D:\prj\java\Sireass_BuildAndDeployment\build.xml:211: java.sun.com



Thank you

------------------------------------------------------------------------------------------------------------------------------------
Le présent message et ses pièces jointes sont confidentiels et destinés à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu ce message par erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de votre système sans faire un quelconque usage de son contenu, ni le communiquer ou le diffuser, ni en prendre aucune copie, électronique ou non..
La sécurité des envois de messages électroniques ne peut être assurée. Ces messages peuvent notamment être interceptés, modifiés, altérés, détruits, perdus, arriver tardivement ou partiellement, ou contenir des virus. L'expéditeur ne saurait être tenu pour responsable des erreurs ou omissions qui résulteraient d'un envoi par message électronique. Si vous souhaitez vérifier l'authenticité du message et des fichiers joints, merci d'en solliciter une copie sur papier.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system without copying it. Any use, dissemination, or reproduction of this message is strictly prohibited.
E.mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission. If verification is required please request a hard copy version.
------------------------------------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Xmltask-users mailing list
Xmltask-users@...
https://lists.sourceforge.net/lists/listinfo/xmltask-users
Brian Agnew | 12 Jul 2006 13:22
Favicon
Gravatar

Re: XmlTask

You need to specify an xmlcatalog to define a local copy of your DTD (or a
blank copy) to prevent Ant trying to resolve this DTD remotely.

Brian

On Wed, July 12, 2006 11:53, Hocine_Mecherouki@... wrote:
> Hello,
>
> I have a problem when I try to use xmlTask like this:
>
>         <taskdef name="xmltask"
> classname="com.oopsconsultancy.xmltask.ant.XmlTask"/>
>
>         <xmltask source="web.xml" dest="dest/web.xml"
>         public="-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN "
>         system="http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" >
>
>
> test:
>   [xmltask] java.net.UnknownHostException: java.sun.com
>   [xmltask]     at
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:176)
>   [xmltask]     at java.net.Socket.connect(Socket.java:459)
>   [xmltask]     at java.net.Socket.connect(Socket.java:409)
>   [xmltask]     at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
>   [xmltask]     at
> sun.net.www.http.HttpClient.openServer(HttpClient.java:414)
>   [xmltask]     at
> sun.net.www.http.HttpClient.openServer(HttpClient.java:628)
>   [xmltask]     at sun.net.www.http.HttpClient.<init>(HttpClient.java:331)
>   [xmltask]     at sun.net.www.http.HttpClient.<init>(HttpClient.java:292)
>   [xmltask]     at sun.net.www.http.HttpClient.New(HttpClient.java:364)
>   [xmltask]     at sun.net.www.http.HttpClient.New(HttpClient.java:345)
>   [xmltask]     at sun.net.www.http.HttpClient.New(HttpClient.java:340)
>   [xmltask]     at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(Http
> URLConnection.java:506)
>   [xmltask]     at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLCo
> nnection.java:497)
>   [xmltask]     at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht
> tpURLConnection.java:599)
>   [xmltask]     at java.net.URL.openStream(URL.java:985)
>   [xmltask]     at
> org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Un
> known Source)
>   [xmltask]     at
> org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown S
> ource)
>   [xmltask]     at
> org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknow
> n Source)
>   [xmltask]     at
> org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unkno
> wn Source)
>   [xmltask]     at
> org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.d
> ispatch(Unknown Source)
>   [xmltask]     at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc
> ument(Unknown Source)
>   [xmltask]     at
> org.apache.xerces.parsers.XML11Configuration.parse(Unknown So
> urce)
>   [xmltask]     at
> org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Sour
> ce)
>   [xmltask]     at org.apache.xerces.parsers.XMLParser.parse(Unknown
> Source)
>   [xmltask]     at org.apache.xerces.parsers.DOMParser.parse(Unknown
> Source)
>   [xmltask]     at
> org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Sour
> ce)
>   [xmltask]     at
> com.oopsconsultancy.xmltask.ant.XmlTask.documentFromStream(Xm
> lTask.java:359)
>   [xmltask]     at
> com.oopsconsultancy.xmltask.ant.XmlTask.documentFromFile(XmlT
> ask.java:376)
>   [xmltask]     at
> com.oopsconsultancy.xmltask.ant.XmlTask.access$000(XmlTask.ja
> va:27)
>   [xmltask]     at
> com.oopsconsultancy.xmltask.ant.XmlTask$InputFile.getDocument
> (XmlTask.java:220)
>   [xmltask]     at
> com.oopsconsultancy.xmltask.ant.XmlTask.execute(XmlTask.java:
> 625)
>   [xmltask]     at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
> va:275)
>   [xmltask]     at org.apache.tools.ant.Task.perform(Task.java:364)
>   [xmltask]     at org.apache.tools.ant.Target.execute(Target.java:341)
>   [xmltask]     at
> org.apache.tools.ant.Target.performTasks(Target.java:369)
>   [xmltask]     at
> org.apache.tools.ant.Project.executeSortedTargets(Project.jav
> a:1216)
>   [xmltask]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>
>   [xmltask]     at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
> faultExecutor.java:40)
>   [xmltask]     at
> org.apache.tools.ant.Project.executeTargets(Project.java:1068
> )
>   [xmltask]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
>   [xmltask]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
>   [xmltask]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>   [xmltask]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
>
> BUILD FAILED
> D:\prj\java\Sireass_BuildAndDeployment\build.xml:211: java.sun.com
>
>
>
> Thank you
>
>
> ------------------------------------------------------------------------------------------------------------------------------------
> Le présent message et ses pièces jointes sont confidentiels et destinés
> à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu ce
> message par erreur, veuillez contacter immédiatement l'expéditeur et
> effacer le message de votre système sans faire un quelconque usage de son
> contenu, ni le communiquer ou le diffuser, ni en prendre aucune copie,
> électronique ou non..
> La sécurité des envois de messages électroniques ne peut être
> assurée. Ces messages peuvent notamment être interceptés, modifiés,
> altérés, détruits, perdus, arriver tardivement ou partiellement, ou
> contenir des virus. L'expéditeur ne saurait être tenu pour responsable
> des erreurs ou omissions qui résulteraient d'un envoi par message
> électronique. Si vous souhaitez vérifier l'authenticité du message et
> des fichiers joints, merci d'en solliciter une copie sur papier.
>
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error, please contact the sender and
> delete the email from your system without copying it. Any use,
> dissemination, or reproduction of this message is strictly prohibited.
> E.mail transmission cannot be guaranteed to be secure or error free as
> information could be intercepted, corrupted, lost, destroyed, arrive late
> or incomplete, or contain viruses. The sender therefore does not accept
> liability for any errors or omissions in the contents of this message
> which arise as a result of email transmission. If verification is required
> please request a hard copy version.
> ------------------------------------------------------------------------------------------------------------------------------------
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Xmltask-users mailing list
> Xmltask-users@...
> https://lists.sourceforge.net/lists/listinfo/xmltask-users
>

--

-- 
Brian Agnew                  http://www.oopsconsultancy.com
OOPS Consultancy Ltd
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Hocine_Mecherouki | 24 Jul 2006 17:08
Picon

The results of your email commands



Hello,

I don't succeed o download the patch :
http://sourceforge.net/tracker/index.php?func=detail&aid=1192359&group_id=27398&atid=390338


for using ant's property in xmltask.


       <xmltask source="${sireass.webapp}/web.xml" dest="${sireass.build.temp}/WEB-INF/web.xml" report="true">
                <xmlcatalog refid="dtds"/>
               <replace path="web-app/servlet/init-param[1]/param-value/text()" withText="${strutsconfig}" />
       </xmltask>


Thanks



------------------------------------------------------------------------------------------------------------------------------------
Le présent message et ses pièces jointes sont confidentiels et destinés à la personne ou aux personnes visée(s) ci-dessus. Si vous avez reçu ce message par erreur, veuillez contacter immédiatement l'expéditeur et effacer le message de votre système sans faire un quelconque usage de son contenu, ni le communiquer ou le diffuser, ni en prendre aucune copie, électronique ou non..
La sécurité des envois de messages électroniques ne peut être assurée. Ces messages peuvent notamment être interceptés, modifiés, altérés, détruits, perdus, arriver tardivement ou partiellement, ou contenir des virus. L'expéditeur ne saurait être tenu pour responsable des erreurs ou omissions qui résulteraient d'un envoi par message électronique. Si vous souhaitez vérifier l'authenticité du message et des fichiers joints, merci d'en solliciter une copie sur papier.

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system without copying it. Any use, dissemination, or reproduction of this message is strictly prohibited.
E.mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of email transmission. If verification is required please request a hard copy version.
------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xmltask-users mailing list
Xmltask-users@...
https://lists.sourceforge.net/lists/listinfo/xmltask-users
emi | 25 Jul 2006 07:00
Picon
Favicon

Re: (no subject)

:―― INFORMATION  ―――――――――――――――――――――――――:
 不正・悪質なサイトを一切排除しておりますので
 安心してご利用ください。   http://love-match.bz/pc/?010
:――――――――――――――――――――――――――――――――――:

*・゜゜・*:.。. .。.:*・゜゜・*:.。..。:*・゜゜・*:.。..。:**・゜゜・*

お金と時間を持て余している人妻の間で、噂になってるあのサイト
  [登録・利用料全て無料] http://love-match.bz/pc/?010
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 □■ 不倫・ワリキリ専門の無料出会いサイト『Love☆Match』
 -----------------------------------------------------------------
  登録料・利用料 ・・・・・・・・・【無料】
  メールの送受信 ・・・・・・・・・【無料】
  ユーザーの検索 ・・・・・・・・・【無料】
  掲示板の閲覧・書込み ・・・・・・【無料】
  画像交換・アップロード ・・・・・【無料】
  アドレス交換・電話番号交換 ・・・【無料】
 -----------------------------------------------------------------
  どれだけ使っても全て無料! http://love-match.bz/pc/?010

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 □■ いつでも女性ユーザーがいっぱい。その理由は?

 -----------------------------------------------------------------
 PC&モバイルに対応!いつでもどこでも気軽に楽しめる!
 -----------------------------------------------------------------
 仕事中は携帯電話から、プライベートは自宅からのんびりと。
 気になる相手といつでも繋がっているから、新密度も急速にUP。
 http://love-match.bz/pc/?010

 -----------------------------------------------------------------
 PCから簡単プロフィール作成。ネット初心者でもラクラク参加OK
 -----------------------------------------------------------------
 面倒な登録は一切不要。パソコンから簡単なプロフィールを作成して
 初心者の方や女性でもすぐに参加できます。
 http://love-match.bz/pc/?010
 -----------------------------------------------------------------
 自由恋愛対応!直電・直メ交換支援ツール
 -----------------------------------------------------------------
 基本的にメールアドレスや電話番号は非公開ですが
 仲良くなった人だけにメールアドレスや電話番号を教える事ができます。
 http://love-match.bz/pc/?010

 -----------------------------------------------------------------
 写真アップロードに対応!好みの相手を素早くCHECK!
 -----------------------------------------------------------------
 待ち合わせ場所にイメージとまったく違う人が来たら…。
 ピュアックスなら会う前に写真交換ができるから、そんな不安も解消。
 http://love-match.bz/pc/?010

 -----------------------------------------------------------------
 スレッド掲示板で秘密のパートナー検索も効率UP!
 -----------------------------------------------------------------
 メインの掲示板のほかにスレッド型の掲示板を設置。
 メル友から秘密のパートナーまで目的別のユーザーが集う掲示板です。
 http://love-match.bz/pc/?010

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 □■ 毎日500人近くのユーザーが続々参加中!!

□-----------------------------------------------------------------

 リエ(21歳/会社員)
 いつも1人でエッチなことを考えてます。
 メールだといろいろ話せるんだけど、実際に会うとあまりしゃべれなく
 なっちゃうので、盛り上げてくれるような楽しい男の人いないかな?
 引っ込み思案のせいか、男性経験はあまり無いんです。
 優しく&楽しくリードしてくれる男性からのメール待ってます。
 [写真有り] http://love-match.bz/pc/?010

□-----------------------------------------------------------------

 真菜(24歳/フリーター)
 彼氏が浮気してて超アタマきたっ!まなだって遊びたい盛りだし、ずっと
 ガマンしてたのにさ!かっこいい人見つけて思いっきりふってやるつもりで
 登録してみた(笑)
 [写真有り] http://love-match.bz/pc/?010

□-----------------------------------------------------------------

 みさ(34歳/専業主婦)
 殆ど家に帰ってこない仕事人間のだんなさまと二人きりの毎日で、ほんと
 寂しい思いをしています。年下の男の子がいれば仲良くなりたいな。
 年下の人とは付き合ったことがないので興味津々です(^^)
 [写真無し] http://love-match.bz/pc/?010

□-----------------------------------------------------------------

 恭子(28歳/会社員)
 彼氏とはいつも同じようなセックスばかりでかなり冷め気味です。
 誰かあたしと熱いセックスを楽しみませんか?めんどくさい事は
 言いません。ただ、いつもと違うドキドキするような事がしたい
 だけなんです。
 [写真無し] http://love-match.bz/pc/?010

□-----------------------------------------------------------------

 ななこ(28歳/主婦)
 半年前にだんなと別れて今は×1です。
 夜のお仕事なので、昼間まったりと過ごしませんか?
 心身ともに疲れ気味で、今、激しく癒されたいです。
 [写真有り] http://love-match.bz/pc/?010

□-----------------------------------------------------------------

 祥子(31歳/クリエイター)
 平日は18時くらいまでは大体仕事してるので、その後に食事したり
 楽しく飲んだりできるパートナー希望です。年上でも年下でも
 かまいませんので気軽にメールを送って頂けると嬉しいです。
 [写真有り] http://love-match.bz/pc/?010

□-----------------------------------------------------------------

 ゅヵ`(20歳/学生)
 まずゎ会ってみないとはじまらなぃょね?!
 横浜近辺の人で、いろんな意味でオトナな人は
 プロフ付きでめぇる送って☆
 [写真有り] http://love-match.bz/pc/?010

□-----------------------------------------------------------------

   出会いサイトのサクラに騙されないように↓
 ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
  【裏】無料の出会い情報
  -------------------------------------------------------------
  お金と時間を持て余している人妻の間で、噂になってるあのサイト
  [登録・利用料全て無料] http://love-match.bz/pc/?010
  -------------------------------------------------------------
  彼女達が求めているのはこんな男性です。
  ?年上女性にリードしてもらいたい、経験少なめの男性
  ?体力・テクニックに自信が有る男性
  男性会員が不足しています。我こそは、と思う方は今すぐ参加!
  [登録・利用料全て無料] http://love-match.bz/pc/?010
 ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

広東省茂名市人民大街3-6-4-533
友誼網絡公司
139-3668-7892

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Gmane