- sudo apt-get install python-software-properties
- sudo add-apt-repository ppa:ubuntu-389-directory-server/ppa
- sudo apt-get update
- sudo apt-get install 389-admin 389-ds-base 389-ds-console
then
- sudo /usr/sbin/setup-ds-admin
add properties
Name: characterEncoding
Value: UTF-8
Name: useUnicode
Value: true
"export JAVA_HOME=/usr/lib/jvm/jdk1.7.0
export PATH=$JAVA_HOME/bin:$PATH"
Lessons learned:
I am not a Java App server guru, but worked more than 2 years with glassfish(3 then 4) and 3 years with jboss EAP(5, then 6)
a lot of applications downloaded from the internet(roller, nexus, and others) will work with glassfish without modification
for jboss, the apps need spend some time painfully sniffing through the source code and a lot of time I have to give up and go back to use glassfish.
This is my first time use glassfish 4, and I did not notice a lot of change between 3 and 4, the speed is decent.
between jboss EAP 5 and EAP6, the change is radical and as a developer, a lot of things I did in EAP 5 are completely different in EAP6.
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
<version>3.0</version>
</dependency>
<dependency>
<groupId>net.oauth.core</groupId>
<artifactId>oauth</artifactId>
<version>20100527</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.oauth.core</groupId>
<artifactId>oauth-provider</artifactId>
<version>20100527</version>
<scope>compile</scope>
</dependency>
#Replace xxx with your IP Address
bind-address = xxx.xxx.xxx.xxx
bind-address = 0.0.0.0 if you don't want to specify the IPlsof -i -P | grep :3306
mysqld 1046 mysql 10u IPv4 5203 0t0 TCP xxx.xxx.xxx.xxx:3306 (LISTEN)
CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypass';
CREATE USER 'myuser'@'%' IDENTIFIED BY 'mypass';
GRANT ALL ON *.* TO 'myuser'@'localhost';
GRANT ALL ON *.* TO 'myuser'@'%';
<--c:forEach items='${sessionScope}' var='p'>
<--ul>
<--li>Parameter Name: <--h:outputtext value="'${p.key}'/"><--/li>
<--li>Parameter Value: <--h:outputtext value="'${p.value}'/"><--/li>
<--/ul>
<--/c:forEach>
You logged in as <--h:outputtext value="${sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal.username}">
-->
I delete my glassfish by accident from netbeans, so,I tried to put it back by using add server in netbeans, but the add server wizard won’t show up.
It turns out to be there is a bug with jdk6 update12 and netbeans, so I have to download and install jdk6 update11. And start netbeans from command line with jdk6u11.
Here is the command \dir\NetBeans 6.5\bin>netbeans.exe --jdkhome "\dir\jdk1.6.0_11"
now I can add my glassfish server back to netbeans
Java | Python |
Statically typed | Dynamically typed |
Not compact, (through class) | Compact (scripting like) |
GUI, swing, has a lot of nice widgets | Tkinter by default, |
Bracket and semicolon | Colon and space |
Javac compile into byte code | Command line interpreter |
Parameter pass by value ( a value of reference to an object) | Parameter pass by value( a value of reference to an object) |
Reference: