The Source for Java Technology Collaboration
User: Password:



Vivek Pandey

Vivek Pandey's Blog

Running JAXWS 2.1 wsimport on JDK 1.6

Posted by vivekp on January 18, 2007 at 10:11 AM | Comments (7)

Running JAXWS 2.1 wsimport on JDK 1.6

In my previous post I wrote about developing a web service  endpoint on JDK 1.6 and at the end of the blog I wrote how to run wsimport command line tool from the  standalone JAXWS 2.1 RI on top of jdk 1.6.

You do not want to put all the jars from @JAXWS_HOME/lib into endorsed directory. This may work for wsimport command line tool as mentioned in my previous blog, but will cause error when you try to run Wsimport ant task.  the reason is that Wsimport ant task class will be loaded by the boot classloader and when it tries to load ant's classes it fails as they are not loaded by the boot classloader. So in this case it would fail with this error:

taskdef A class needed by class com.sun.tools.ws.ant.WsImport cannot
be found: org/apache/tools/ant/taskdefs/MatchingTask

See the issue reported for details.

Basically you need to put only two jars in the endorsed directory, jaxws-api.jar and jaxb-api.jar, see Endorsed Directory Mechanism for more details.

You would pretty much do the following to run wsimport, both ant task and command line tool from JAXWS 2.1 RI on JDK 1.6:

  • cp $JAXWS_HOME/lib/jaxws-api.jar c:/jdk6/jre/lib/endorsed
  • cp $JAXWS_HOME/lib/jaxb-api.jar c:/jdk6/jre/lib/endorsed

$JAXWS_HOME points to the directory where you installed JAXWS 2.1 RI.

Continue providing feedback to users@jax-ws.dev.java.net and if you find an issue report them at IssueTracker.

 


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • I assume the same workaround is needed for JDK 5?
    Without using endorsed mechanism I get the following JCM crash:

    An exception has occurred in the compiler (1.5.0_07). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
    com.sun.tools.javac.code.Symbol$CompletionFailure: file javax/xml/bind/annotation/XmlSeeAlso.class not found

    If I use the endorsed mechanism I get a different problem:

    java.lang.LinkageError: loader constraints violated when linking javax/xml/stream/XMLStreamReader class

    Details are in this forum thread:


    I would be grateful for any help on this. Thanks.

    Posted by: najmi on January 23, 2007 at 10:03 AM

  • For some reason the forum thread URL was dropped in my previous post:


    http://forums.java.net/jive/thread.jspa?threadID=22096&tstart=0

    Posted by: najmi on January 23, 2007 at 10:05 AM

  • To najmi: You need endorsed mechanism only for the classes that are bundled with JDK. JDK 5 does not integrate any jaxws/jaxb classes so I don't see why you would need to use endorsed mechanism. I will post my replies to the form thread mentioned above.

    Posted by: vivekp on January 25, 2007 at 06:35 AM

  • I'm using netbeans and copied the jaxws-api.jar and jaxb-api.jar (2.1EA3) into /usr/lib/jvm/java-6-sun/jre/lib/endorsed/ directory. This should be enough to make the wsimport ant task in netbean's build-impl.xml use JAXWS 2.1, right? (I updated jaxws in javaee5sdk using the ant install task from the jaxws 2.1EA3 distribution.)
    However, in the generated classes, it says JAX-WS RI 2.0_03-b24-fcs. (I just realized that netbeans comes with a jaxws2.0 module installed, which however doesn't appear on the ant task's classpath...)
    Thanks.

    Posted by: clemenso on January 31, 2007 at 10:01 AM

  • Try NB 5.5.1 which has JAXWS 2.1 RI bundled from: http://www.netbeans.info/downloads/dev.php.

    Posted by: vivekp on January 31, 2007 at 11:40 AM

  • Yes ant runs fine if only these files are in the endorsed dir. But my standalone jdk6 web services (using Endpoint.publish) only works if all jax-ws jars are in the endorsed directory?!?

    Posted by: wierob on April 25, 2007 at 08:02 AM

  • I'm using netbeans and copied the jaxws-api.jar and jaxb-api.jar (2.1EA3) into /usr/lib/jvm/java-6-sun/jre/lib/endorsed/ directory. This should be enough to make the wsimport ant task in netbean's build-impl.xml use JAXWS 2.1, right? (I updated jaxws in javaee5sdk using the ant install task from the jaxws 2.1EA3 distribution.) However, in the generated classes, it says JAX-WS RI 2.0_03-b24-fcs. (I just realized that netbeans comes with a jaxws2.0 module installed, which however doesn't appear on the ant task's classpath...) Thanks.


    5455-pied
    5454-photo
    5453-photo
    5451-photo
    5447-photo
    5446-petite
    5445-penis
    5444-partitions
    5443-partition
    5441-paroles-gratuit
    5439-parole-gratuit
    5438-pantie
    5437-outdoor
    5434-oriental
    5424-orgy
    5422-orgie
    5420-orgasme
    5419-oral
    5417-nudiste
    5416-nudist
    5415-nude
    5413-nu
    5412-noire
    5411-nero-gratuit
    5409-nero
    5407-naughty
    5406-nature
    5404-natural
    5402-naked
    5401-musiques-gratuites
    5400-musique-gratuite
    5399-music-gratuite
    5398-mure
    5396-msn-gratuit
    5395-msn
    5394-msn
    5392-mp3-gratuit
    5391-movie
    5390-morpheus
    5389-mom
    5388-models
    5386-model
    5385-mmf
    0881-sexy
    0870-sexuelle
    0861-sex-gratuit
    0852-sexe-gratuit
    0843-sexe-gratuit
    0834-sexe
    0826-sexe
    0817-sexe
    0807-sex
    0797-sex
    0792-schoolgirl
    0787-salope
    0779-safari
    0770-sado
    0763-rousse
    0756-rimjob
    0749-redhead
    0741-recettes
    0733-recettes
    0724-recette
    0715-recette
    0706-real-player
    0699-rasee
    0693-pussy
    0687-puffy
    0656-programme
    0647-private
    0640-pregnant
    0633-pps-ppt
    0624-pornstar
    0617-porno-gratuit
    0610-porno-gratuit
    0605-pornographie
    0598-porno
    0587-porno
    0576-porno
    0569-porn-gratuit
    0562-porn
    0553-poitrine
    0546-plumper
    0539-pissing
    0532-pipe
    0525-pink
    1504-telechargement-messenger
    1493-telechargement-logiciels
    1484-telechargement-logiciel
    1477-telechargement-kazaa
    1470-telechargement-gratuit
    1461-telechargement-film
    1453-telechargement-emule
    1439-telechargement-divx
    1430-telechargement-chansons
    1420-telechargement-chanson
    1411-telechargement-antivirus
    1404-telechargement
    1393-telechargement
    1386-tele
    1377-teen
    1369-tease
    1360-tatouages
    1351-tatouage
    1343-tarot
    1334-swinger
    1327-suceuse
    1318-suce
    1310-student
    1302-strip
    1295-strapon
    1286-stories
    1279-squirting
    1270-spybot
    1262-sportive
    1253-sport
    1243-spectacle
    1235-spanking
    1228-solution-jeu
    1220-soluce
    1211-softcore
    1203-sodomie
    1195-smoking
    1187-skype
    1180-shower-bath
    1172-shemale
    1163-shaving
    1156-shareaza
    1148-sexy
    2105-television
    2096-telecharger-xxx
    2088-telecharger-x
    2079-telecharger-sexe
    2070-telecharger-sex
    2061-telecharger-porno
    2050-telecharger-porn
    2043-telecharger-paroles
    2036-telecharger-parole
    2028-telecharger-nero
    2020-telecharger-musique
    2011-telecharger-music
    2004-telecharger-msn
    1994-telecharger-mp3
    1987-telecharger-movie
    1979-telecharger-messenger
    1972-telecharger-logiciels
    1965-telecharger-logiciel
    1957-telecharger-kazaa
    1949-telecharger-gratuit
    1938-telecharger-film
    1930-telecharger-emule
    1922-telecharger-divx
    1914-telecharger-chansons
    1906-telecharger-chanson
    1898-telecharger-antivirus
    1890-telecharger2
    1880-telecharger2
    1871-telecharger
    1861-telechargement-xxx
    1854-telechargement-x
    1847-telechargement-sexe
    1839-telechargement-sex
    1832-telechargement-porno
    1824-telechargement-porn
    1814-telechargement-paroles
    1806-telechargement-parole
    1798-telechargement-nero
    1790-telechargement-musique
    1780-telechargement-music
    1773-telechargement-msn
    1765-telechargement-mp3
    1755-telechargement-movie
    2836-yoga
    2834-xxx-gratuit
    2826-xxx
    2818-x-gratuit
    2810-x
    2800-x
    2794-winzip
    2789-winrar
    2782-winmx
    2777-winamp
    2768-wet-shirt
    2760-weird
    2753-webcam
    2743-webcam
    2735-wallpaper
    2727-voyeur
    2720-voyager
    2714-voyage
    2702-voiture
    2694-voiture
    2685-vlc
    2678-virgin
    2671-videos-comiques
    2662-videos
    2654-videos
    2646-videos
    2638-videos
    2631-video-comique
    2624-video
    2613-video
    2602-video
    2593-video
    2585-vacances
    2576-ugly
    2567-tv
    2559-tuning
    2546-truc
    2536-transsexuelle
    2529-tranny
    2519-toy
    2512-touristique
    2503-tourisme
    2496-toon
    2490-toes
    2482-tits
    2474-tit
    2467-threesome
    2460-thong
    2452-tennis


    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe
    sexe

    sexe porno telecharger363750
    sexe porno telecharger363751
    sexe porno telecharger363752
    sexe porno telecharger363753
    sexe porno telecharger363754
    sexe porno telecharger363755
    sexe porno telecharger363756
    sexe porno telecharger363757
    sexe porno telecharger363758
    sexe porno telecharger363759
    sexe porno telecharger363760
    sexe porno telecharger363761
    sexe porno telecharger363762
    sexe porno telecharger363763
    sexe porno telecharger363764
    sexe porno telecharger363765
    sexe porno telecharger363766
    sexe porno telecharger363767
    sexe porno telecharger363768
    sexe porno telecharger363769
    sexe porno telecharger363770
    sexe porno telecharger363771
    sexe porno telecharger363772
    sexe porno telecharger363773
    sexe porno telecharger363774
    sexe porno telecharger363775
    sexe porno telecharger363776
    sexe porno telecharger363777
    sexe porno telecharger363778
    sexe porno telecharger363779
    sexe porno telecharger363780
    sexe porno telecharger363781
    sexe porno telecharger363782
    sexe porno telecharger363783
    sexe porno telecharger363784
    sexe porno telecharger363785
    sexe porno telecharger3814
    sexe porno telecharger3815
    sexe porno telecharger3816
    sexe porno telecharger3817
    sexe porno telecharger3818
    sexe porno telecharger3819
    sexe porno telecharger3820
    sexe porno telecharger3821
    sexe porno telecharger3822
    sexe porno telecharger3823
    sexe porno telecharger3824
    sexe porno telecharger3825
    sexe porno telecharger3826
    sexe porno telecharger3827
    sexe porno telecharger3828
    sexe porno telecharger3820
    sexe porno telecharger3821
    sexe porno telecharger3822
    sexe porno telecharger3823
    sexe porno telecharger3824
    sexe porno telecharger3825
    sexe porno telecharger3826
    sexe porno telecharger3827
    sexe porno telecharger3828
    sexe porno telecharger3829
    sexe porno telecharger3830
    sexe porno telecharger3831
    sexe porno telecharger3832
    sexe porno telecharger3833
    sexe porno telecharger3834
    sexe porno telecharger3835
    sexe porno telecharger3836
    sexe porno telecharger3837
    sexe porno telecharger3838
    sexe porno telecharger3839
    sexe porno telecharger3840
    sexe porno telecharger3841
    sexe porno telecharger3842
    sexe porno telecharger3843
    sexe porno telecharger3844
    sexe porno telecharger3845
    sexe porno telecharger3846
    sexe porno telecharger3847
    sexe porno telecharger3848
    sexe porno telecharger3849
    sexe porno telecharger3850
    sexe porno telecharger3851


    sexe porno xxx34
    sexe porno xxx38
    sexe porno xxx33
    sexe porno xxx37
    sexe porno xxx36
    sexe porno xxx35
    sexe porno xxx41
    sexe porno xxx40
    sexe porno xxx39
    sexe porno xxx19
    sexe porno xxx26
    sexe porno xxx18
    sexe porno xxx32
    sexe porno xxx25
    sexe porno xxx31
    sexe porno xxx24
    sexe porno xxx17
    sexe porno xxx30
    sexe porno xxx23
    sexe porno xxx16
    sexe porno xxx29
    sexe porno xxx22
    sexe porno xxx43
    sexe porno xxx28
    sexe porno xxx21
    sexe porno xxx27
    sexe porno xxx15
    sexe porno xxx20
    sexe porno xxx14
    sexe porno xxx77
    sexe porno xxx81
    sexe porno xxx80
    sexe porno xxx79
    sexe porno xxx56
    sexe porno xxx78
    sexe porno xxx55
    sexe porno xxx73
    sexe porno xxx66
    sexe porno xxx72
    sexe porno xxx65
    sexe porno xxx71
    sexe porno xxx64
    sexe porno xxx76
    sexe porno xxx63
    sexe porno xxx70
    sexe porno xxx69
    sexe porno xxx75
    sexe porno xxx68
    sexe porno xxx74
    sexe porno xxx67
    sexe porno xxx53
    sexe porno xxx59
    sexe porno xxx58
    sexe porno xxx52
    sexe porno xxx57
    sexe porno xxx51
    sexe porno xxx49
    sexe porno xxx83
    sexe porno xxx60
    sexe porno xxx54
    sexe porno xxx61
    sexe porno xxx
    sexe porno xxx
    sexe porno xxx


    sexe porno xxx27
    sexe porno xxx28
    sexe porno xxx29
    sexe porno xxx30
    sexe porno xxx30
    sexe porno xxx31
    sexe porno xxx32
    sexe porno xxx33
    sexe porno xxx34
    sexe porno xxx35
    sexe porno xxx36
    sexe porno xxx37
    sexe porno xxx38
    sexe porno xxx39
    sexe porno xxx40
    sexe porno xxx41
    sexe porno xxx42
    sexe porno xxx43
    sexe porno xxx44
    sexe porno xxx45
    sexe porno xxx46
    sexe porno xxx47
    sexe porno xxx48
    sexe porno xxx49
    sexe porno xxx50
    sexe porno xxx51
    sexe porno xxx52
    sexe porno xxx53
    sexe porno xxx54
    sexe porno xxx55
    sexe porno xxx56
    sexe porno xxx57
    sexe porno xxx67
    sexe porno xxx68
    sexe porno xxx69
    sexe porno xxx70
    sexe porno xxx71
    sexe porno xxx72
    sexe porno xxx73
    sexe porno xxx74
    sexe porno xxx75
    sexe porno xxx76
    sexe porno xxx77
    sexe porno xxx78
    sexe porno xxx79
    sexe porno xxx80
    sexe porno xxx81
    sexe porno xxx82
    sexe porno xxx83
    sexe porno xxx84
    sexe porno xxx85
    sexe porno xxx86
    sexe porno xxx87
    sexe porno xxx88
    sexe porno xxx89
    sexe porno xxx90
    sexe porno xxx91
    sexe porno xxx92
    sexe porno xxx93
    sexe porno xxx94
    sexe porno xxx95
    sexe porno xxx96
    sexe porno xxx97
    sexe porno xxx17
    sexe porno xxx18
    sexe porno xxx19
    sexe porno xxx20
    sexe porno xxx21
    sexe porno xxx22
    sexe porno xxx23
    sexe porno xxx24
    sexe porno xxx25
    sexe porno xxx26
    sexe porno xxx27
    sexe porno xxx28
    sexe porno xxx29
    sexe porno xxx30
    sexe porno xxx31
    sexe porno xxx32
    sexe porno xxx33
    sexe porno xxx34
    sexe porno xxx35
    sexe porno xxx36
    sexe porno xxx37
    sexe porno xxx38
    sexe porno xxx39
    sexe porno xxx40
    sexe porno xxx41
    sexe porno xxx42
    sexe porno xxx43
    sexe porno xxx44
    sexe porno xxx49
    sexe porno xxx50
    <a href="http://deminm77.blog.mongenie.com/index/p/20

    Posted by: davidlagato on May 25, 2007 at 12:31 AM



Only logged in users may post comments. Login Here.


Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds