Create a webapp:
mvn archetype:generate -DgroupId=com.exoplatform.app -DartifactId=hello-strut -DarchetypeArtifactId=maven-archetype-webapp
Create a portlet app:
mvn archetype:create -DgroupId=com.exoplatform.app -DartifactId=hello-portlet -DarchetypeArtifactId=maven-archetype-portlet
.
|-- src
| `-- main
| `-- java
| |-- [your project's package]
| | `-- MyPortal.java
| |-- jetspeed
| | `-- web.xml
| |-- resources
| |-- webapp
| | |-- WEB-INF
| | | |-- tld
| | | | `-- portlet.tld
| | | |-- portlet.xml
| | | `-- web.xml
| | |-- help.jsp
| | |-- maximized.jsp
| | `-- normal.jsp
| `-- index.jsp
`-- pom.xml
Wednesday, October 26, 2011
Monday, October 17, 2011
Servlet Specification Notes
1. requestURI = contextPath + servletPath + pathInfo
Ex1:/catalog/garden/implements/
- ContextPath(webapp): /catalog
- ServletPath(servlet mapping): /garden
- PathInfo(extra path): /implements/
Ex2: /catalog/help/feedback.jsp and
servlet mapping: Pattern: *.jsp
- ContextPath: /catalog
- ServletPath: /help/feedback.jsp
- PathInfo: null
Ex1:/catalog/garden/implements/
- ContextPath(webapp): /catalog
- ServletPath(servlet mapping): /garden
- PathInfo(extra path): /implements/
Ex2: /catalog/help/feedback.jsp and
servlet mapping: Pattern: *.jsp
- ContextPath: /catalog
- ServletPath: /help/feedback.jsp
- PathInfo: null
Sunday, October 16, 2011
Installing Jira server standalone in Ubuntu
1. Download .bin file (ex: atlassian-jira-4.4.1-x32.bin) http://www.atlassian.com/software/jira/JIRADownloadCenter.jspa
2. Run this .bin file and get some screens to setup port, address,... ex: 9090
3. Run Jira server from installed folder: kiennguyen/atlassian/jira/bin/start-jira.sh
2. Run this .bin file and get some screens to setup port, address,... ex: 9090
3. Run Jira server from installed folder: kiennguyen/atlassian/jira/bin/start-jira.sh
Thursday, October 13, 2011
Openssl commands
- Create X509 certificate:
openssl req -newkey rsa:1024 -days 365 -nodes -x509 -keyout testkey.pem -out testkey.pem -subj '/CN=mytestkey'
- Create a private key from Cert:
openssl pkcs8 -in testkey.pem -out oauthkey.pem -topk8 -nocrypt -outform PEM
- Create public key from Cert:
openssl rsa -in exokey.pem -pubout
- To just output the public part of a private key:
openssl rsa -in key.pem -pubout -out pubkey.pem
openssl req -newkey rsa:1024 -days 365 -nodes -x509 -keyout testkey.pem -out testkey.pem -subj '/CN=mytestkey'
- Create a private key from Cert:
openssl pkcs8 -in testkey.pem -out oauthkey.pem -topk8 -nocrypt -outform PEM
- Create public key from Cert:
openssl rsa -in exokey.pem -pubout
- To just output the public part of a private key:
openssl rsa -in key.pem -pubout -out pubkey.pem
Subscribe to:
Posts (Atom)