Netbeans and Glassfish Error: CLI130 Could not create domain
Ozzie
Having Netbeans 6.8 installed, with Glassfish V3 on a laptop running Windows 7, I had the following error upon starting the IDE:
CLI130 Could not create domain
Apparently, the J2EE development server domain could not be created. I opened a command prompt, navigated to the Glassfish installation folder and executed the "asaadmin create-domain" to create a new domain. Still no luck! A lack of privileges prevented the new domain folder creation.
Next, I repeated the same step, but opened the prompt with the "Run as administrator" option. The domain creation went smoothly and after starting the IDE, the same error appeared because it would always try to start the default domain.
I carried on, manually starting my domain with the "asadmin start-domain" command and connecting to the server as if it was a remote server. But I was not pleased with the solution.
So, I tried to start the IDE with "Run as Administrator" option. And it worked. After all, it had a really simple work around.
CLI130 Could not create domain
Apparently, the J2EE development server domain could not be created. I opened a command prompt, navigated to the Glassfish installation folder and executed the "asaadmin create-domain" to create a new domain. Still no luck! A lack of privileges prevented the new domain folder creation.
Next, I repeated the same step, but opened the prompt with the "Run as administrator" option. The domain creation went smoothly and after starting the IDE, the same error appeared because it would always try to start the default domain.
I carried on, manually starting my domain with the "asadmin start-domain" command and connecting to the server as if it was a remote server. But I was not pleased with the solution.
So, I tried to start the IDE with "Run as Administrator" option. And it worked. After all, it had a really simple work around.
2:50 PM
Programming
,
Tools
Migrating from Wordpress to Blogger
Ozzie
As you might know, if you were following my blog on the previous address, I've migrated it from Wordpress to Blogger. The reason for doing so is just that Blogger let's you control the page's content with a finer grain, even write raw HTML it you want to.
I managed to get all my posts from Wordpress and import them to blogger. The problem at hand with that is Blogger only supports file exported from another Blogger hosted blog.
The solution I found was as follows:
- Export all the posts from the previous site, hosted on Wordpress, to a file in the WordPress eXtended RSS (WXR) format. You can do this going to "Tools > Export" on your Wordpress dashboard.
- Next I found this tool, called Wordpress2Blogger, uploaded my WXR file and downloaded a new file, this one on the Blogger RSS format.
- Finally, I imported the given file into Blogger, using the available import option,
With three simple steps, not counting the new blog account registration, the migration is successful.
5:33 PM
Security on ASP.NET applications
Ozzie
The evolution of information systems places more and more applications on web-based architectures. The concern with security on this type of systems has to evolve also. Any programmer familiar with Web development is a potential script kiddie. The task of corrupting, destroying or getting illicit access to data cannot be facilitated.
There is a series of guides on Microsoft Developer's Network, on how to protect an ASP.NET application against injection attacks. The guides are pretty straightforward, giving a brief notion of the attacks and also the counter measures one can adopt to prevent them:
Even if you have already deployed applications, it's very well worth it to spend some time analyzing them and integrating the security enhancements explained. Better safe than sorry.
There is a series of guides on Microsoft Developer's Network, on how to protect an ASP.NET application against injection attacks. The guides are pretty straightforward, giving a brief notion of the attacks and also the counter measures one can adopt to prevent them:
- How To: Protect From Injection Attacks in ASP.NET
- How To: Protect From SQL Injection in ASP.NET
- How To: Prevent Cross-Site Scripting in ASP.NET
- How To: Use Regular Expressions to Constrain Input in ASP.NET
Even if you have already deployed applications, it's very well worth it to spend some time analyzing them and integrating the security enhancements explained. Better safe than sorry.
11:49 AM
Programming
Connecting VPN on Ubuntu
Ozzie
Sometimes, to insure a service's quality stated on a Service Level Agreement, one has to do interventions on the systems at any given hour of the day. Even late at night, or on holidays.
Given the possibility of connecting to my Workplace´s network through VPN, I faced the challenge of configuring a VPN network client on Ubuntu Linux (9.10). Our communications staff had a ready to use setup for Windows, but that didn't help much. So I took the exported Cisco PCF file and got engaged on this task.
Overall, it wasn't as tricky as I would expect. I performed the following steps:

Having finished the installation:

I tried to import the pcf file directly, without using the wizard and it didn't work. Anyway, when your VPN connection is active, open a terminal window and run the command "ifconfig". Your VPN tunnel should be listed on the active connections.
Given the possibility of connecting to my Workplace´s network through VPN, I faced the challenge of configuring a VPN network client on Ubuntu Linux (9.10). Our communications staff had a ready to use setup for Windows, but that didn't help much. So I took the exported Cisco PCF file and got engaged on this task.
Overall, it wasn't as tricky as I would expect. I performed the following steps:
- Open the Synaptic Package Manager
- Selected the following packages: vpnc, network-manager-vpnc, KVpnc
- Apply the changes
Having finished the installation:
- Go to the Application menu, select Internet/KVpnc
- Start the new connection wizard and import the pcf file
- Save your new profile
- Connect and ... that's it!
I tried to import the pcf file directly, without using the wizard and it didn't work. Anyway, when your VPN connection is active, open a terminal window and run the command "ifconfig". Your VPN tunnel should be listed on the active connections.
11:07 PM
General
Network adapter disappears on Windows 7
Ozzie
I had a most unusual problem after updating my laptop to Windows 7. The purpose of a laptop is really to move around so I usually take it from my workplace and use it at home, carrying it back on the next day.
I found out that, whenever I booted up the machine before plugging the network cable in, my network adapter vanished from the notification area as well as the Network and Sharing Center. A reboot, with the cable already plugged in, solved this little annoyance.
But, sometimes, the problem has it source between the computer and the chair. I was not aware of a nice feature on Power Management that allows the computer to turn off a device to save power.

So I just had to take the check off the turning off option and the situation ceased to occur. Maybe someday I'll put it back on ;)
I found out that, whenever I booted up the machine before plugging the network cable in, my network adapter vanished from the notification area as well as the Network and Sharing Center. A reboot, with the cable already plugged in, solved this little annoyance.
But, sometimes, the problem has it source between the computer and the chair. I was not aware of a nice feature on Power Management that allows the computer to turn off a device to save power.
So I just had to take the check off the turning off option and the situation ceased to occur. Maybe someday I'll put it back on ;)
2:46 PM
General
Posting a SOAP command from the command line on Linux
Ozzie
Having to work with servers, which connect to external systems via private networks, one must face the difficulty of having to test Web services without having direct access to the endpoint of them. Given that, and adding the Linux operating system, one could find himself in a jam.
There is a command I use often to perform simple connectivity tests, like getting the WSDL. It's called "wget". You just type "wget http://someurl/endpoint" and an HTTP request to that URL is sent and the response is captured ans saved to file.
Nevertheless, one might be able to connect to the remote server, but what id you want to check if the service is really working? Otherwise you'll never know if an error is caused by your end of the stick.
To post a SOAP request to a remote Web server, the recipe is simple:
There is a command I use often to perform simple connectivity tests, like getting the WSDL. It's called "wget". You just type "wget http://someurl/endpoint" and an HTTP request to that URL is sent and the response is captured ans saved to file.
Nevertheless, one might be able to connect to the remote server, but what id you want to check if the service is really working? Otherwise you'll never know if an error is caused by your end of the stick.
To post a SOAP request to a remote Web server, the recipe is simple:
- Build a sample SOAP request and save it on a text file, maybe called "soap.txt"
- To send the request to the remote server type the following command:
curl -H "Content-Type: text/xml; charset=utf-8" \
-H "SOAPAction:" \
-d @soap.txt -X POST http://someurl
That's it!
curl -H "Content-Type: text/xml; charset=utf-8" \
-H "SOAPAction:" \
-d @pedidoSOAP.txt \
-X POST
11:58 AM
General
,
Programming
,
Tools
IE8 crashes on Windows Update
Ozzie
Trying to automatically update my Windows XP, I got a crash from my browser, every single time, while trying to install the automatic updates ActiveX control.
The solution is to go to: Tools / Internet Options / Advanced / Security. Take the check off the "Enable memory protection to help mitigate online attacks" option.
The solution is to go to: Tools / Internet Options / Advanced / Security. Take the check off the "Enable memory protection to help mitigate online attacks" option.
3:46 PM
General
Subscribe to:
Posts
(
Atom
)