Monday, July 29, 2013

Connect with RestTemplate via Proxy Server

If you try to connect to Rest Url, and if you are using a Proxy Server and try to connect with RestTemplate Client you will have an error like this:

"407 Proxy Authentication required"

You will have to configure your RestTemplate by the following steps:

After of that, you should be put httpclient jar in your classpath, download it from http://hc.apache.org/httpclient-3.x/

If you try to connect again with a UnitTest that will fix your problem.

Best Regards,

Monday, July 22, 2013

Quartz executes twice on Weblogic (Spring 3.2 + Quartz 1.8.6 + Weblogic 10.3g)

If you are developing some jobs with quartz probably you will figure out if your application will be well received by Weblogic, after a few hours some unittest I have the problem that quartz execute twice the method cointained in the job, If you try to debug the application on Weblogic you will be thinking alot of theories my solution was the following steps:

1. Create Quartz Database for clustering, this is at: 

../quartz-1.8.6/docs/dbTables

After executing the script in the database you will have to configure the quartz.properties:


This property file should be included in classpath, to charge this file you will have to add the following lines in applicationContext.xml:



Having this configuration will be loaded the ClusterManager, and you job executes only one time.

Best Regards,

Sunday, July 21, 2013

Bug: JDeveloper, File Delete Files

JDeveloper is good tool for development perhaps if it is only being unified with ADF development and more JSF standard it should be a perfect IDE. This error happens with the following scenario:

1. Oracle Linux 5
2. Subversion 1.8
3. Jdeveloper 11.1.2.3 & Jdeveloper 11.1.2.4

In my Check Out workspace I create a new project without include in the subversion repository, After some hours of development a try to DELETE  a file using [Supr] key so the following error appears:


Unable to delete files. "The following files and/or directories cannot be deleted (likely sources include permission violations, use v}by another program and source control state violations). You will need to delete these items directly from the file system" 


This is not a common error dialog, suddenly other thing happen, If you go to workspace in you file system every code file was deleted, JDeveloper delete all the files of your projects including the file it should be deleted. After spending some minutes trying to find my code the only backup I find is in deploment folder.

Wrote Enterprise Application Module: /root/jdeveloper/system11.1.2.3.39.62.76.1/o.j2ee/drs/Project

I remember this happen with a old version Visual Studio Express Edition before.

Best Regards,