Kayıtlar

setting java plugin on ubuntu 10.10

you can call these commands respectively to enable java plugin on ubuntu 10.10 both firefox and especially chrome sudo apt-get remove --purge icedtea6-plugin openjdk-6-jre gcj sudo apt-get remove --purge openjdk-6-* sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner" sudo apt-get update sudo apt-get install --reinstall sun-java6-jre sun-java6-fonts sun-java6-plugin

Unable to set the activation state to true for the application

A strange exception that occurs sometime while restarting servers that working perfectly since longtime. I spend my hours for resolving this exception last night until reading this post ( post link ) It works for me too, but I haven't an answer why it appears and how it is resolved. weblogic.application.ModuleException: at weblogic.jdbc.module.JDBCModule.activate(JDBCModule.java:349) at weblogic.application.internal.flow.ModuleListenerInvoker.activate(ModuleListenerInvoker.java:107) at weblogic.application.internal.flow.DeploymentCallbackFlow$2.next(DeploymentCallbackFlow.java:411) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.DeploymentCallbackFlow.activate(DeploymentCallbackFlow.java:74) Truncated. see log file for complete stacktrace weblogic.common.ResourceException: is already bound at weblogic.jdbc.common.internal.RmiDataSource.start(RmiDataSource.java:387) at weblogic.jdbc.common.interna...

local beans in ejb3.0 with weblogic

don't waste your time while looking for public jndi that belong to your sessinbean while calling it locally in weblogic environment. weblogic don't support jndi with local beans even if you type mappped name in that class like package tr.gov.ibb.core.model.session; import java.util.List; import javax.ejb.Remove; import javax.ejb.Stateful; import javax.ejb.TransactionAttribute; import javax.ejb.TransactionAttributeType; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.PersistenceContextType; import javax.persistence.Query; import tr.gov.ibb.core.model.entity.Musteri; @Stateful(name = "TestBean", mappedName = "ejb/TestBean") @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) public class TestBean implements TestRemote,TestLocal { @PersistenceContext(unitName = "CoreContextWithoutEUS", type = PersistenceContextType.EXTENDED) private EntityManager em; public List getMusteriList...

ws-adressing schema import in bpel deployment

While deploying bpel process to bpel server, you could get the error below even if xmllib folder contains ws-adressing.xsd file. to pass the error, you can set the xsd location in wsdl location. simply,project folder contains asd.bpel asd.wsdl files, in asd.wsdl file you can type or then you could pass the error. if you are developing behind a proxy server , some times (I faced to this problem ) you can't reach directly, this time you can set you production servers xmllib, like that Error while loading process. The process domain encountered the following errors while loading the process "Gsmrd_04_DosyaHavale" (revision "1.1"): BPEL validation failed. BPEL source validation failed, the errors are: [Error ORABPEL-10902]: compilation failed [Description]: in "bpel.xml", XML parsing failed because "undefined part element. In WSDL at "file:/oracle/products/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_Gsmrd_04_DosyaHavale_1.1_f90805a5b72...

jdeveloper 10.1.3.5 bpel deploy error

if you compile bpel proccess with jdeveloper environment , you could get the following error. To pass this error , you can decrease your jdeveloper version, or you can compile your source with ant build file. Process "SimpleTest" (revision "1.0") successfully compiled. java.lang.NumberFormatException: null at java.lang.Long.parseLong(Long.java:372) at java.lang.Long.parseLong(Long.java:461) at com.collaxa.cube.rm.suitcase.SuitcaseDescriptor.getTimestamp(SuitcaseDescriptor.java:117) at com.collaxa.cube.engine.deployment.CubeProcessFactory.loadProcess(CubeProcessFactory.java:154) at com.collaxa.cube.engine.deployment.CubeProcessFactory.create(CubeProcessFactory.java:67) at com.collaxa.cube.engine.deployment.CubeProcessLoader.create(CubeProcessLoader.java:174) at com.collaxa.cube.engine.deployment.DeploymentManager.deployProcess(DeploymentManager.java:943) at com.collaxa.cube.engine.deployment.Deploymen...

maven işleyişi hakkında

Maven ile ilk tanışılınca anlaşılmakta güçlük çekilen bir nokta olan lifecycle, phase, goal, plug-in kavramlarının birbirleri ile ilişkilerini kısaca anlatalım, Maven, bilindigi gibi plug-in ler üzerine kurulu bir sistem. Bu plug-in yapısının kesinlikle en güzel yanlarından biri, plug-inin ihtiyaç duyuldugu anda repositorylerden o anda indirilmesi. Bir digeri de tabiki plug-inler yazmak sureti ile ucu açık sonsuz geliştirme ortamı sunması. Osgi kavramında oldugu gibi merkezde duran bir engine diyebilecegimiz core uygulama en temel bileşenleri bile ihtiyaç duydugu zaman localine alıyor, veya kendi yazmış oldugumuz uygulamaları sisteme dahil ediyor. Plug-in ler içlerinde sınırsız sayıda Goal adı verilen uygulama parçacıklarından oluşur.Bu uygulama parçacıklarını örnegin konsoldan mvn dependency:copy-dependencies komut satırı ile çagırılabilir. Yukarıda ki örnekte, maven bizim için dependencies (maven-dependency-plugin, maven'in default plug-inlerinden biridir) plug-in inden copy-dep...

jni ve shell beraber

efenim jni in yararları ve zararları hakkında birçok kayıt makale var bunlara girmeye gerek yok, hatta ve hatta çok fazla da örnek var ancak bir küçük ornekte ben vermek istiyorum. gayet anlaması kolay basit bir örnek indir sadece run.sh içerisinde jvm için uygun path belirtmek yeterli olacaktır.Dosyalar listelenecektir

Generics && wildcards

Genericsler java 5 ile gelen özellikler. Basit şeklini hemen hemen her yerde kullanıyoruz. ancak collection arayüzü ile beraber kullanımında bazen sıkıntı yaşandıgını görüyorum. şöyle bir incelemek gerekirse; class{ Collection myNUmbers = new ArrayList (); public void main() { printCollection(myNUmbers); } void printCollection(Collection c) { for (Serializable e : c) { System.out.println(e); } } } printCollection(Collection c) methodunda parametre olarak "Collection c" almış olsaydı yukarıda ki kod parçası hata alacaktı. çünkü eger extend kullanmazsak, collection ile beraberinde kullanılan generics betimi beraber bir class oluştruyorlar ancak bu inheritance özelliklerini desteklemiyor diye dusunebiliriz yukarıda extend olmazsa ve biz printCollection(myNUmbers); methodunu aynen çagırırsak hata alırız. hatta ve hatta; Collection myNUmbers = new ArrayList (); şekilde tanım yapıp void printCollection(Collectio...

reverse-ajax

Reverse-Ajax bana garip ve cazibeli gelen bir olay ama bunun zor olduguda bir gerçek http://directwebremoting.org/dwr/index.html linkinde framework ve güzel anlatımlar var. incelenmeli