27 Şubat 2011 Pazar

Warning: {W130} Base URI is "", relative URIs left as relative.

The warning {W130} Base URI is "", relative URIs left as relative. is given when i try to import an owl file using jena api.
Specifically, adding the following lines to .owl file solved my problem:

xmlns="http://Mpeg7-2001.owl#"
xml:base="http:///Mpeg7-2001.owl#"

change namespace of an xml file in java code

I have to change a specific namespace of xml files to a predefined one automatically in java code.
here is working sample code:

7 Şubat 2011 Pazartesi

a C# starter..

I am given a component written in C#, and i need to re-model it as a set of web services in order to integrate it with some other java components..
This is my first contact with .net world, so i need to be encouraged :)

http://www.csharpnedir.com/articles/read/?filter=&author=&cat=&id=49&title=C
http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=35
http://www.java2s.com/Tutorial/CSharp/CatalogCSharp.htm
http://www.csharp-station.com/Tutorial.aspx

1 Şubat 2011 Salı

recursively removing .svn folders in a project

execute this command from the project location in order to recursively remove .svn folders in a linux environment:
find . -name ".svn" -type d -exec rm -rf {} \;

10 Ocak 2011 Pazartesi

changing netbeans locale

i am trying to reengineer my master thesis work in order to prsesent it as a set of web services instead of a web application.. well, it is not as easy as it seems, since i am also migrating the development environment from eclipse + tomcat + mysql to netbeans 6.8 + glassfish v3 + derby coming with netbeans ide.. while glassfish v3 is started, it comes up with this error:
Server cannot operate in current Locale. Locale is switched to en_US for the process.

actually, after clicking on the dialog box with the error, the server starts and the web service is deployed successfully, i can see the wsdl.. however, when i try to generate client stubs for a java client, stubs seems problematic.. Its the - big i - issue, if you see: (it says illegal character \65533)
private final static URL ONTOLOGYMNGWSSERV�CE_WSDL_LOCATION;
private final static WebServiceException ONTOLOGYMNGWSSERV�CE_EXCEPTION;
private final static QName ONTOLOGYMNGWSSERV�CE_QNAME = new QName("http://ws.moass.com/", "OntologyMngWSService");
therefore, i want to change my Netbeans Locale to en_US in order to generate client stubs currectly..

unfortunately, changing the Locale by adding -locale en_US to netbeans_default_options= in NETBEANS_HOME/etc/netbeans.conf file did not help my cause..

i still get the error :(

Edit on 11/1/2011, 13:23:
i tried the same thing on my office computer which is an OpenSuse environment.. i checked the locale with env command, it is set to en_US.. luckily, the above error did not show up this time.. however, it tries to generate constructors such as
public CalculatorWSService(WebServiceFeature... features) {
super(__getWsdlLocation(), CALCULATORWSSERVICE_QNAME, features);
}
and the super method results in error this time..
by the way, i made the test with Netbeans 6.9.1 and glassfish v3.1..

on the contrary, my home computer is windows vista and here is how to change windows locale: http://windows.microsoft.com/en-US/windows7/Change-the-system-locale