Access to Tomcat server has not been authorized

For the first time, when I try to deploy a project using Netbeans, i got this message,

 

Deployment error:
Access to Tomcat server has not been authorized. Set the correct username and password with the “manager” role in the Tomcat customizer in the Server Manager.
See the server log for details.
After I googling, the solution,
– edit the content of C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\conf\tomcat-users.xml file.
-make sure you have role = manager and user that have manager role, like this
<tomcat-users>
<role rolename=”manager”/>
<role rolename=”standard”/>
<user username=”admin” password=”pwd” roles=”standard,manager”/>
</tomcat-users>
-save the file and restart Tomcat server

 

Advertisements

Disable Automatic Hidden Shares

I don’t know the reason, why Windows always automatically create hidden shares to the local disk drives and some user’s folders. The shares are normally accessed via \\\c$ and \\\d$ depending on the drive letter.

To disable this condition,
1. open registry editor, Start | Run, type regedit and press Enter.
2. find key [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\
Parameters]
3. Create a new DWORD value for ‘AutoShareWks’ and ‘AutoShareServer’. Set the value to equal ‘0’. If the values already exist then modify them to equal ‘0’.
4. restart the computer.
^_^

Netbeans – No Compatible JDK Found

When I install Netbeans 6.7.1, i got message “No Compatible JDK Found”. So I cancel, and try to download JDK.

I have a little confuse, why I choose Java-Netbeans IDE Download Bundles, the bundle have no JDK. So whatever, i googling “download jdk”, then I found Java SE Downloads and I choose Java SE Development Kit (JDK).

Now, after I install JDK, there is no message when I install Netbeans.

VBSmart Menu XP in Windows Vista

I use VBSmart Menu XP (SmartMenuXP.dll and SmartMenuXP.ocx) in Windows 98 and XP for a long time. Now, I switched to Windows Vista Business Edition. It comes the problem, every time I click menu VBSmart Menu XP, the program hangs.

After trying to find many solution, at last, I try to change themes from “Windows Vista” to “Windows Classic”,then VBSmart was no problem anymore.

In fact, this solution is sufficient, but it was jammed, when to use my program, i have to change the theme again.

Then I tried to restore the theme to “Windows Vista”, then I try to change the visual effects settings in

Control Panel \ System and Maintenance \ System

then select “Advanced system settings”
in the frame “Performance” , click the button “Settings”,
then disable the option “Enable desktop composition”.

^_^

 

Oracle XE Client Connect to Other Server

After I install Oracle XE Client, i try to connect to another server, but I cannot. I look for tnsnames.ora, but i cannot find any on XEClient folder. I look for network/admin folder,but i not find too.

So I try to create a new one on $ORACLE_HOME/network/admin/
then create/copy SQLNET.ORA and TNSNAMES.ORA

After that i try using sqlplus and succesful, now, i can connect to other server using Oracle XE Client.

Here my SQLNET.ORA,
##########################
SQLNET.AUTHENTICATION_SERVICES= (NTS)

NAMES.DIRECTORY_PATH= (LDAP, TNSNAMES, ONAMES, HOSTNAME)

DEFAULT_SDU_SIZE = 8761
##########################

my TNSNAMES.ORA,
##########################
TESTSVR=
(DESCRIPTION=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=192.168.0.1)
(PORT=1521)
)
(CONNECT_DATA=
(SERVER=dedicated)
(SERVICE_NAME=apps)
)
)
##########################

or if you are using sqlplus, in oracle 10g, you can use direct command
SQL> conn USERNAME/PASSWORD@HOSTNAME:PORT/SID

In that case you don’t need a tnsnames.ora. Only your sqlnet.ora need the following entry:
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT, HOSTNAME)

 

^_^

How to Faster Windows Vista Copy File Without Long Calculating Time

I experience poor slow copy file performance over the network in Windows Vista. After i googling, i found that “Remote Differential Compression” may cause of that.

Remote Differential Compression is a Windows feature introduced in Windows Server 2003 and is available on all later versions of Windows. This Windows feature is enabled by default in Windows Vista.

Remote Differential Compression (RDC) allows data to be synchronized with a remote source using compression techniques to minimize the amount of data sent across the network. RDC is different from patching-oriented differencing mechanisms, such as Binary Delta Compression (BDC), that are designed to operate only on known versions of a single file. BDC requires the server to have copies of all versions of the file, and differences between each pair of versions are precomputed so that they can be distributed efficiently from a server to multiple clients.

So to fasten, try follow this steps,

First, turn off “Remote Differential Compression”, go to Control Panel | Turn Windows features on or off, then find and uncheck “Remote Differential Compression”.

Next step, open a command prompt and type,

netsh interface tcp set global rss=disabled
netsh interface tcp set global autotuninglevel=disabled

Final step, restart computer

One vote can make a difference, One million votes could change the world

Usually we know Facebook as only social networking sites. As a place to show photos, reported status, exchange information, make friends and meet old friends, or place ads.

Now, Facebook function are growing one more, namely as a tool to garner support and can also be a means to make pressure on the parties in opposition to the will of the people.

This has been evidenced by the emergence of groups to support the two leaders of the Indonesia’s Corruption Eradication Commission (KPK) arrested by Police of the Republic of Indonesia on October 29, 2009. This group called the Movement of 1 Million Facebookers to Support Chandra Hamzah – Bibit Samad Riyanto (Gerakan 1.000.000 Facebookers Dukung Chandra Hamzah & Bibit Samad Riyanto). The day after Bibit-Chandra was arrested, this group was launched on Friday, October 30, 2009, ie 6 days ago from this post published. Since then, up to this day a total facebookers that join in this group had reached 790,884 members. As the name implies this group is targeting 1 million facebookers to support for Bibit-Chandra.

In the description of this group explains.
“Regardless of whether guilty or not, we who are outside the system may be disturbed by the incident for what happened to Chandra and Bibit. It is not possible in such cases is like an iceberg, as a child of nation loves the Commission. For that, lets us support the Chandra and Bibit in this group. We call Movement Supports One Million Facebookers Chandra and Bibit,Let’s tell all our friends, chasing a target of 1 million Facebooker.”

This movement was initiated by the Chairman of the Foundation Lembak Bengkulu, Usman Yasin. He also is one lecturer at the Muhammadiyah University Faculty of Agriculture, Bengkulu.

So? If you still think facebook functions only for friendship and fun? Or in your country ever used facebook to garner support? Hopefully this becomes a valuable lesson,

one vote can make a difference, one million votes could change the world.

At 9 p.m. on Tuesday, November 03, 2009, two deputy chairmen of the Corruption Eradication Commission (KPK) who were released from detention, Bibit Samad Rianto and Chandra M Hamzah. They left the National Police Headquarters at midnight.

Chandra and Bibit thanked the public who supported them and the KPK.

“Thank you to everyone who supports corruption eradication. We are very happy that Indonesian people still want the KPK to fight against corruption,” Chandra said.

Bibit and Chandra said their release was not a matter of winning or losing.

“Let’s take it as strong momentum to improve the fight against corruption, because in this situation, the loser is the country and the winner is the corruptor,” Chandra said.

Bibit added that they knew their friends were fighting to get them out of detention but that they did not know the public support would be so strong.

“The public support was amazing, we are overwhelmed. Justice has started to show its face,” Bibit said.

The men said they also hoped the fact finding team will be objective so that justice is served.

One of their unforgettable moments while in detention was when they met four corruptors they helped put in jail.

“We shook hands with them. They were friendly to us, no hard feelings at all,” Bibit said.