Friday, May 18, 2012

Google Earth Plug-in and the ATL 10.00


While playing with the Google Earth Plug-in to integrate in a WebBrowser control of a WPF application I'm currently developing, I started getting this strange background text instead of the map/earth: ATL 10.00.
ATL 10.00
I needed to do two things to get my page working. one simple thing.

Monday, May 14, 2012

Aligning contents of PrimeFaces' PanelGrid

If you are trying to align the contents of a panelGrid and nothing seems to work (styles that you define eventually don't appear in the rendered page) then this might help you.

Saturday, May 5, 2012

EJB is null inside RESTful web service

While developing my enterprise application and learning Java EE at the same time, I came to a situation where injecting an EJB inside a RESTful web service class would be the same as nothing. The EJB variable was always null.

So, what did I change to fix this?

Error creating managed object for class

Well, while developing my enterprise application in NetBeans 7.1.2 with GlassFish 3.1.2 as the application server, the following most notable error appeared and made the project unable to deploy:

Error creating managed object for class: class org.jboss.weld.servlet.WeldListener

and a bunch of other errors and exceptions.

Tuesday, April 17, 2012

Generated Facelets templates not applying / can't find CSS stylesheets

Using NetBeans, I created a Facelets template and a Facelets template client through the wizards provided. No changes were made to the source code.

However, when navigating in the generated template client with my browser, I noticed that the sections "inserted" (e.g, header, footer, content) were not being stylized in any way.

After a great deal of head banging onto the wall, I finally found a solution for this.

Wednesday, April 4, 2012

Fixing remote GlassFish server errors on NetBeans

If you are having errors when adding a remote GlassFish server to your NetBeans installation and you are sure there's connectivity between you and the remote server and all the required ports are open, a possible cause might be not having the remote secure administration enabled (which is required if you want to deploy remotely).

Monday, April 2, 2012

No Program Associated with Emptying the Recycle Bin Error

When trying to empty the recycle bin in Microsoft Windows Vista/7/2008/2008 R2 (and probably XP, though it was not tested) via the "Empty the Recycle Bin" option, the following error appears:


Thursday, March 22, 2012

Adding comments in GNS3 IOS baseconfig files

If you want to write some comments in your GNS3 baseconfig files for the Cisco IOS, you can use the exclamation mark. It is mainly used for separating commands for easier reading. Everything that is written after the exclamation mark is ignored.

Here's an example:

Sunday, March 18, 2012

Unable to write inside TEMP environment variable path

I stumbled upon this beautiful error when trying to re-install my PostgreSQL 9.1.3 server: Unable to write inside TEMP environment variable path.

After some research and trial-and-terror [sic], I came to the conclusion that the essence of the problem had been a tiny change I made to my system's file associations (via Notepad++).

Here's how I solved it and how you can do it too:

Friday, March 16, 2012

Running GlassFish as a service on Windows (Error 1067)

I've been trying to run GlassFish as a service on Windows:

asadmin.bat create-service

Unfortunately, that task didn't show up easy due to one little detail: GlassFish was installed on the famous Program Files folder. Other causes may just need a restart of Windows.

When starting the service, it says: Error 1067: The process terminated unexpectedly. And it really terminates.