Hi,
It looks like a JAXB conflict issue. Are you including a version of
JAXB in the war?
Paul.
On Nov 24, 2010, at 4:23 PM, mid491 wrote:
>
> Hi,
> I am trying to make a sample working within JBoss 5.1.0 and I am
> facing an error :
> 16:04:03,937 INFO [PackagesResourceConfig] Scanning for root
> resource and provider classes in the packages: com.entreprise.foo.rest
> 16:04:04,062 INFO [ScanningResourceConfig] Root resource classes
> found: class com.entreprise.foo.rest.fooResource
> 16:04:04,062 INFO [ScanningResourceConfig] No provider classes found.
> 16:04:04,140 INFO [WebApplicationImpl] Initiating Jersey
> application, version 'Jersey: 1.4 09/11/2010 10:30 PM'
> 16:04:05,156 ERROR [[/testRest]] StandardWrapper.Throwable
> java.lang.LinkageError: loader constraint violation: when resolving
> field "DATETIME" the class loader (instance of org/jboss/classloader/
> spi/base/BaseClassLoader) of the referring class, javax/xml/datatype/
> DatatypeConstants, and the class loader (instance of <bootloader>)
> for the field's resolved type, javax/xml/namespace/QName, have
> different Class objects for that type
> [...]
>
> Any idea ?
> ps : Here a war with sources (Maven2)
> thx!
> Rar!Ïs ˜†tÀ8o<§nZžxx=3 testRest\.classpath°Ä"d
> ™ÌËÕAW¸<'ÙR –£ è¡T*
> ‹AY
> v Ù5[)8TqÂß{!
> FÝvÒ—TàynoùñìÜZ÷7ƒKï¼>ÅœÀÄá)ŸŽ.aV˜çâÃFïrÕ^QYçâá°ì1¤,Ø–Ž
> iBæ—+HkÞ¦•Ôr3Í'ÅD˜²á ‰¡Ø—ÎÞ†I PÒc,å>ØàÉHNÿR ¿„ì´šD_ ?2çs[«.
> 4š0A‘&Ó <NâXÛ¼×Om×ëºÕân
> ´€ÌÄXð`=4wþs)A¶¨“"¥zýÇ2È·]¶ªÖ'蘙éÔÄ–¾¶n3}«µÔc-·ÜËZÇž|•‘
> ´šú‰R†Ð½ƒ
> –ܵ›Øœ¡‘:¬%t
> Kî_zÊ ç̉ÖÙ<誗mÁ¤ÒP&Þ‚mÓ7꽜uÀ5ÿ7Ì0,jŠ¾ÅHŸá1oÞætù†©[žjÏ‹bð
> ´ú •EtÀ6TÈHwx=3 testRest\.projectð
> fÌËÕ°$x=S¸ØŽ•"
> à%Nç»±éI ‰·%=ðJD‚~㌶EUà+Ö
> %3îæ=ÝoÇ=Íü<Õ¯WÙòYžœÉ—â(rLKñŸ©Îqs9ôf|ú©Þ~Yùz
> \Êï'$DpÊ켇äRãoXÕTŠð_Äiö$êv¢£ZkhRÀtÊü&ñ’ŸBÑf\¢œÌ%¨
> £F¡V8H]˜Š›ì²$S`,Ź·èZ¼ÅUIµš¹ùk̶²’Ñ ‹Üs ¼»ÄÞ/R¼
> iep&TìWY¶Ç&ºø^‰½ýsuÕìV^Œ'£¯üUQvYjê•Øˇ!kœ÷Ò¾žû
> ¹x·F~öDmÞÍÞÔ¬ÒÂÉíþÍ<ÆR0h1ÿ¹mí»Æ"þ÷äøúÝÀÕ²møÙáŒ>Aù@ê
> £tÀBóü„ÃÀ_Hwx=3 testRest\.settings\.jsdtscopeð
> f UÌÏÝu¡~‹}JÝwD±–ÒP´¤´ƒ„ÙÓñ#•´’qÛÿt„$ù1ÇJY4[ª|î0éï
> ¢Ã3Ft3š¹ñW¡øžh4ƒ*“ÚN²õJ$©ÍVÇOa!¿ÑÏy
> YÝžÐæý[™ó¸¶MMb›ä»Ñ§=jjB3 d7÷b¾º™˜ $•mÒ×CdÜlQaùíN_<X2øzá‹»Ë
> \VKöb´\MùÞxÑãKÜ|@“Î@m =Í'š‹Bº£Xßv›Ž•~59hÇ¡ßeÕÈ3Ñô°ï
> ýáaKÛ~iwï»Gé÷etÀR ·~†³(yx=3- testRest\.settings
> \org.eclipse.jdt.core.prefs°ú‡( ÙPÍÕÁW½Áè=ðµAÐ*((š""÷KfZb[’“øÔ}í
> uÝ²í²šovÍ|ìæ}™ž=ÎL$Ìç9$ß¼?£à&
> i“§ªIºóËÙžlÒwwû]åš^~`¢±µ€kV†Ì¨MÁ‚¢<Ïå.£pþ¾RÓPðþm,´k¼šé
> €Œ%xH<˜¾ß¶†^‡ÔDÿ¤ÆÐ5˜éZKþÍÜ4hœNÖOš¨Eg‚S50÷ŽKƒíitó¹ÿ“
> ²wá<ÚáHF•¯ßÇ,#”#åá'€òZµB.Ã!ÀÛã¸rhÒ0¿{'ÊãOcWý$6Å0;ëÔŸëˆJ®-
> öþý5ø€#ètÀX/®s\9‚x=33 testRest\.settings
> \org.eclipse.wst.common.component°*u •PÑÕzƒÂ÷Æ.„¸
> 8¥ÐŠ;¦K¢ÛÂ\¨IWŸ{AЗ’$̼–b‚Ž‡d“¼ä¢«È$íIR¥w½£ï¼>œšíY´ƒŸ`³®ŽŽnzPÕc
> +¿yùe?U;9y)k‡@(nÚ¹`óYVÞßp¸3UNk‰™' šZ§V~š jÇaØ›B(–^2ÜäÎ
> \SxÜåcR^¾äzwöŸ7†T)i{à(ë„äýŸ{E©ùíæýù*ÔÒÖÐû§4'J~¬JÛh8¶2¡a²Œâ
> %`ÅÝÇhþ¥n<u&ü[ÿî"DÇxK«Æ¨šT£Q»>ÑöÎ%×ì€otÀe“ühk$8Hwx=3@
> testRest\.settings\org.eclipse.wst.common.project.facet.core.xmlð:Ót
> Õ̽œ7 ð·Ù_çC¢VëxðÉò’È–BÛß]Tº+D¼/3Ù˜g!
> ñ†jða‡îûž{(hTTÁotÜل Éz–î^6ýÛdÖ3ìËüP’‰*Nt½„˜ûHÔ]õ¯,®3
> ®åeÀe¸=j! ¼¬EHÜú±ÆSy´O_ƒvŸ$<¿ü: ¹tÀc11‰€o\Hwx=0> testRest
> \.settings\org.eclipse.wst.jsdt.ui.superType.containerð
> forg
> .eclipse.wst.jsdt.launching.baseBrowserLibraryþtÀ^ëüHŒHwx=09
> testRest\.settings\org.eclipse.wst.jsdt.ui.superType.nameð
> fWindowÌõtÀSÍ‚í#QHwx=3. testRest\.settings
> \org.maven.ide.eclipse.prefs°v° •ŒÐ—ÝC¾C»œ2ôTLOS«©DD3K§É/
> Z²’Úûó£n‚b¾!?œäžCÍ~HsGçßxÕ!a¶C}ã1ñÑ“5Êm»ûùÏ?ÏÅU±i ¨H/;€+J
> °™D‡onYžZžs» jSø×®ÍCR^÷”câeÆb{V-(Þó!÷Kl ccde±ˆ9eÀÊD¸ PæNÂö
> \a7ÆimÓ y{£›
> xQ'»¼¼_ùÐ<•<¶ÃïëÄð{Ó»ÕòtÀ5Žžx{Ÿm8‚x=3 testRest\pom.xmlðro‘
> Ìý»Iø¤+x-Ö”‚Š uyÛDñÑmçF´µ©®êZ‚ZŸ‡þïá"ð
> n¦’r
> –‹Ù€‰8NæÄ×æÉ8´œ>(Œû ÌèAü(£Fbº–4Àxdø`ïJbèà&rÂ"DG{Ê$Føû{:‡Î,;œ
> ѦCX7FàZ9”!¼8Z㫧Y FM:RH].^@
> ´è‘SzPédCükPªÎ~ÎȨiìQ(ñOö,rqÅ_b°ÿ+å‹æó™cè=¼QS"c ™ãŒÓ
> SÉܧÞñanHéÇ-¤!¶½É›@.~ˆý>扢l¶ §ž² „Ó8úþ=¸þ]ŸYÉžÒ˜IlÍ
> ±ÕRy¹rSS™TÀ
> a;œM+9*©Ë¬Œ —2PÉþ¹#UQxóSr¯[fÚ"x¹Åše ¡(&LòÅ
> +“ô®sÖØËà,ÂÂç'y!:õ™: ±ÖcPã“R%K”u”’œ9õqÔp;KWȵ ·jê+Ør¾Gu{}b%¯J
> ðo‡ÃÓ'$¦;Ê”Ô~~»¬=; —PX(5Evý¾yÚ÷ÀÀïbÉ+¶ºòêqܯcºˆ"¤‚ÆÊí<Ïn«mî©
> ±5uÜUJ~CMËd¹’@õ9Úwh^éÝ_tSCo•:÷d^ ~œCµQ¶¯Yzçcx±yàBî÷ídsz÷4°™<:
> 2î‹®·™wbë˜^ÿ:óÊmj%õ®Á^j4Ý"^•|
> J5`È.«ÂÊ«³»Œ9Þ9•¡sð¿ìCšDCý¤{Âz¯Xi|eCMûyœ¹$Fã‘›é
> ¢vý4ôušzI·d/øFµ_Ù/ö€YøtÀdÐ(ÍSøˆbx=3? testRest\src\main
> \java\com\entreprise\foo\rest\fooResource.javað ÌÏÕ@Òé|a©ºJà
> ”èaÛ“€˜QiÊZA%D€A÷wBm5ôdiÙ8Ó¸7s}›È´fìÚóÞ³8"Ì~F‘q˜¨ÌBØ–
> ¼Ksk¡Õëj™–,pq7áª--¾-·îú†Ïû™ÒÿšX1Ð|Sþ2Ö/Ö†²@øòl»®µ$ù£5 ü$hf
> ê»}EäWö2×Øë’3ÁTÊ&ͯ„è{ç4Ó<œNÚ¥a}_‹zg±’p$¨¿)Ë5GìHl¹é'qéè€
> ÇtÀG44¼f"Hwx=0" testRest\src\main\webapp\index.jsp°Âë<html>
> <body>
> <h2>Hello World!</h2>
> </body>
> </html>
> ¾
> tÀR''â˜mÖHwx=0- testRest\src\main\webapp\META-INF\MANIFEST.MF
> °ØÁBManifest-Version: 1.0
> Class-Path:
>
> -tÀM8ûKFýdx=3( testRest\src\main\webapp\WEB-INF
> \web.xmlðÞ9 Ìͽ‘{IáP}(4¤”H?ÜáBð¤¼l´/8/ÜUÇ+i!%“ÞèI[j
> ´
> Ó
> ²
> DéB
>
> À‘››™‹Rñæ÷7unâañ÷‡=“d‘Þ”gDE'ù̾åá’èˆÏ¼ü»ìs#÷^˜÷Dcs;„·}"'zR“cu
> QÈ
> } WH4[Ü»q„ãÙO97À ºÀSÂ7ï৆\Ði‚u]¡"ú—tÃ.RÀ$±ÏI•î‘ü?}|
> 9ñQèr¨•[ÕhƒF-®R ôèOéàÚíg3ËÓ<¹Ë•{ø'ûi•¡5ˆB
> \#ÍL*th—(%YÄJdƒ5›öñ ðm¤Ö·CÅ>0Ž©·÷™ÊǯëõŠå6âgô¦aCSêU« ”Që±
> $jüã¦ñ(Pz” ;0†Ì× ¨o)ÚÅçd^—õ¿áŽµž5¨Jhr>¾€ƒåU*n‹Lù°X“5ÍÚ·
> ¢]‚Ï&Ø¯Ò Ø H2´=k¥§¸üøÿºH¸tàSj|x=0. testRest\src\main\java\com
> \entreprise\foo\rest°¢\~Ñ0tàNbx=0) testRest\src\main\java\com
> \entreprise\foo𾪌§JtàJbx=0% testRest\src\main\java\com
> \entreprise𾪌[XtàIHwx=0$ testRest\src\main\webapp\WEB-INF\lib
> °Êš;Ê<tà?bx=0 testRest\src\main\java\comðro‘ÄàtàFHwx=0!
> testRest\src\main\webapp\META-INF°ØÁBCŽtàEHwx=0 testRest\src
> \main\webapp\WEB-INF°Êš;þtà;ø{x=0 testRest\src\main\java
> °†pa)tà@Hwx=0 testRest\src\main\resources°ÂëÊtà=Hwx=0
> testRest\src\main\webapp°ØÁButà6
> xx=0 testRest\src\main°„×
> Œtà7Hwx=0 testRest\.settingsð
> f`ltà1Hwx=0 testRest\src°Âëªtà-=‚x=0 testRest°8œÄ={@
> View this message in context: jboss 5.10 and Jersey 1.4
> Sent from the Jersey mailing list archive at Nabble.com.