Blog Moved

I moved the content of this blog to http://eslamfoad.wordpress.com, from now on I’ll be technically blogging there and it’s a matter of time that I’ll delete this blog.

The reason behind this is basically changing the name of the blog.

JDeveloper and Entity Beans

Steps to create an entity bean

  1. Open IDE
  2. Right click -> new -> Entity Bean
  3. Select the table and proceed

Steps to create an entity bean in Jdeveloper 10.1.3

  1. Open Jdeveloper
  2. Right click -> new -> Entity Bean
  3. Nothing happens, wait
  4. Still nothing, go to the task manager to see the processing usage of the jdevw process
  5. It’s 0%, wait again
  6. Check your mail or read some blog post
  7. Try to minimize and maximize the Jdeveloper, now you’ll get the usual grey blank space at the window
  8. Try to close the Jdeveloper window, no reseponse
  9. End the process of jdevw from the task manager
  10. Open the Jdeveloper and try step 2
  11. You’ll go through steps (3-9) again
  12. Restart your machine
  13. Try steps (1-2)
  14. Select the table and proceed

Using JAXB2 with JDeveloper 10g

This post describes how to use JAXB 2 on JDeveloper 10.1.3.3, by using I mean compiling the program and testing it on the embedded OC4J if you want.

The problem is that the embedded OC4J has a default implementation of JAXB 1 which varies big time from JAXB2 as the first version didn’t contain annotations. To use your JAXB2 libraries as a replacement to JAXB1 in OC4j 10 you have to make a shared library and attach it to your application on deployment, for embedded oc4j this process isn’t easy as it doesn’t have an interface to do this so you would have to manually edit some XML files to do this and some of those files may be overridden if the application is deployed automatically  that’s when you click run on a servlet, ejb , …etc. this link (http://buttso.blogspot.com/2007/09/using-jaxb-20-with-oc4j-1013x.html) shows how to add a shared library to your application in embedded oc4j (at the comments section).

JDeveloper comes with it’s own JDK  and the embedded OC4J uses this JDK, according to the application server specification the classes under java.* or javax.* will be looked up in the JDK (or JRE) first, if not found the application server will start looking up in the lib folder of your WEB-INF or in a shared library as OC4J. The JAXB2 implementation classes have the package of javax.* so simply if you want your embedded OC4J to use the JAXB2 implementation instead on JAXB1, put the jars of JAXB2 in the JRE of the JDeveloper you are using, this will be found under the directory:

<YOUR_PATH>\jdevstudio10133\jdk\jre\lib\ext

This solution is better in my opinion than adding a shared library to your embedded oc4j because why would I care to keep the implementation of JAXB1 – by adding a shared library I’m just overriding this implementation for this application – if I’m sure that I won’t be using it any more and If I have a new application that needs JAXB2 I would have to repeat the same steps for it.

Feel free to drop in a comment or e-mail me for any questions/ feedback.

How did Programming Languages get their names

Yesterday I was watching “Al 3elm wal Eman” show of Dr. Mustafa Mahmoud, it is a very interesting show I remember when I was young and it used to be shown on Channel 2 I liked the episodes of the insects so much, I hope that Dr. Mustafa Mahmoud gets well from his illness soon.

The episode was about the snakes their living, habits, species ,… He mentioned that one of the types is called Python, the python programming language popped out at my mind at that moment and I thought that this is why Python got its name, later it turned out to be a wrong assumption,  and I decided to do a little research on how did the programming languages got their names and that’s what I reached, please If anyone knows extra info about those names or info about others share it with the public :D

Java

When SUN engineers first invented Java it was called “OAK” ( a tree), but the lawyers informed them that this name was taken to a company called OAK Technologies, so the held a long meeting ( some say it was about two meetings) to brainstorm for a new name, three major candidate names were Java, Silk and WebRunner, no one can say who exactly came out with the Java name.

References:

http://www.javaworld.com/javaworld/jw-10-1996/jw-10-javaname.html

C

C was called C as a lot of its features came from a predecessor language called B so the engineers at Bell Labs wanted to stick to the sequence (I read a post that says there was a language called A predecessor to B language)

References:

http://www.blurtit.com/q610744.html
http://en.wikipedia.org/wiki/C_(programming_language)

.Net

The name .Net is somehow a conventional name, it seems that Microsoft wanted to beat SUN in the field of programming to the web and networks after SUN released the Java (about 1995) and the big market share it got, so Microsoft decided to beat sun in this by releasing .Net (about 2002).

I read a very nice 2alsha about this ‘Microsoft choose .Net as .Com was already registered :D

References:

http://stackoverflow.com/questions/628145/why-was-net-called-net

http://en.wikipedia.org/wiki/.NET_Framework#Versions

Python

When the inventor of Python was developing it he needed some name to be short and unique for his new language, he was a fan of a British TV show called “Monty Python’s Flying Circus” so he picked Python as a name.

References:

http://www.python.org/doc/faq/general/#why-is-it-called-python

Oracle ( I know that this conflicts with the post title but as it seems that eventually all the technologies we’ll work with will be Oracle’s (Hope not) I decided to mention it)

The name Oracle comes from the code-name of a CIA-funded project Ellison(Oracle co-founder)  had worked on while previously employed by Ampex, I also read that oracle inn ancient greek or something meant the man that has the information and gives it whenever consulted

References:

http://w3schools.invisionzone.com/index.php?showtopic=18715

http://www.oracle.com/timeline/index.html

http://en.wikipedia.org/wiki/Oracle_Database

http://www.python.org/doc/faq/general/#why-is-it-called-python

Oracle Access Manager

I have been working with Oracle Access Manager for 6 months now and I learned a lot in it using the hardest way you can imagine, so I decided to share the information I got with others in order not to repeat the same mistakes I did.

I will start – inshaallah – a series of posts explaining how to install, configure and use Oracle Access Manager till then I will be glad to answer any questions (If I knew the answer :D ) just leave a comment with your question and I will reply.

SOA Installation

I was trying to install Oracle application server 10.1.3.1 (SOA suite) and I got the following error:

Checking swap space: 0 MB found (actual) 512 MB required

when i press (n) the installer exits.

After finally having some time at work to investigate that error, I found the following:

1. Swap space is the space used by the operating system to move pages from memory to, this space is on the hard drive and it’s like an extension for the RAM.

2.For windows XP the recommended setting is to let the windows manage the size of that space

3.When this option is selected Windows XP grows and shrinks the space according to the needs for an extended memory to the RAM

4.When the Oracle Installer starts it checks for the available swap space and unfortunately the machine at this time isn’t loaded with much programs so no swap space is used (that’s the 0 mb found)

To fix this problem set the swap size manually on windows by

1. Control Panel –> System –> Advanced –> Settings (under performance)  –> Advanced –> Change

2. set an initial size (2 mb) for example and a maximum one (1024 mb) for example, be sure that you have free space on your disk for the maximum size

3. press Set button and restart your machine

DNS changes automatically!!

Hello all, I had a trojan on Windows XP for about a week that was really bugging me and I didn’t have time to investigate and remove it so simply when i needed the Internet I’d switch to Fedora, any way after I had some time I  managed to remove the trojan and still continue to getting use to Fedora :D

The symptoms of the trojan:
1. the DNS server keeps changing to 85.112.xxx.xxx, if you try to make it dynamic or static with another server it won’t work and it’ll return to the same server again
2. Kaspersky can’t update it’s Database and after a while you get t Database Corrupted message

In short, this Trojan changes the DNS server and keeps redirecting you to the attacker’s server, this server doesn’t return IP address for Kaspersky downloads so you can’t download nor update it, the attacker’s DNS might send fake responses for some sites like paypal.com, so that you access the attacker’s site and put your billing information on it.

Solution:
1. Download Avast antivirus professional edition from another Machine and burn it on a CD it a 60-day Trial
2. Install it on the infected machine and approve the scan-on-boot option
3. Hopefully the boot scan will remove the trojan and your machine will be normal again

Intro

Hello every one, finally I’m posting to a technical blog, I wanted to do this step long time ago (about a year) but I started with a personal blog. Anyway this blog is mainly for technical stuff related to computers but that’s not all you can find a post about cars, physics, … any knowledge that I gain I’ll try to share it here and I hope that you find it useful.

The blog’s domain is waranaeh (ورانا ايه بالعربي) it’s an arabic expression that means (we don’t have any thing to do) I took it from Dalida’s song “Ahsan nas” and I mean by this title that we are busy all the time with stuff to do but it won’t hurt to take a 5-min break and gain some knowledge that might be useful some other time.