[bytebrain.org]
Monday, October 21, 2013
Create web project using maven plugin and set the facets...
<!-- Allows to create an eclipse project with mvn eclipse:clean eclipse:eclipse -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<wtpversion>2.0</wtpversion>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
<additionalProjectFacets>
<jst.jaxrs>1.1</jst.jaxrs>
<jst.jstl>1.2</jst.jstl>
<jst.web>3.0</jst.web>
</additionalProjectFacets>
<!-- Set Eclipse project to UTF-8 (if you use eclipse) -->
<additionalConfig>
<file>
<name>.settings/org.eclipse.core.resources.prefs</name>
<content>
<![CDATA[eclipse.preferences.version=1${line.separator}encoding/<project>=${project.build.sourceEncoding}${line.separator}]]>
</content>
</file>
</additionalConfig>
</configuration>
</plugin>
Friday, May 3, 2013
Align maven with eclipse to create a web application project
In RAD Window à Preferences à J2EE à Project, update web project default folders to support Maven folder structure as shown below.
Note: move all java source files to src/main/java folder & all content inside WebContent folder to src/main/webapp folder.
Install Maven Integration for Eclipse using Help à Install New Software
wizard.
M2E plugin url - http://download.eclipse.org/technology/m2e/releases
Thursday, February 17, 2011
Build Failure while running "ConfigEngine.sh/bat wp-modify-ldap-security" task for LDAP configuration on websphere portal server 6.1.5
Error:
00000055 exception E com.ibm.ws.wim.config.LDAPRepositoryConfigHelper getEntityType CWWIM5014E LDAP entity type PersonAccount is not found.
00000055 exception E com.ibm.ws.wim.config.LDAPRepositoryConfigHelper getEntityType
com.ibm.websphere.wim.exception.WIMConfigurationException: CWWIM5014E LDAP entity type PersonAccount is not found.
at com.ibm.ws.wim.config.LDAPRepositoryConfigHelper.getEntityType(LDAPRepositoryConfigHelper.java:1251)
at com.ibm.ws.wim.config.LDAPRepositoryConfigHelper.deleteIdMgrLDAPEntityType(LDAPRepositoryConfigHelper.java:355)
at com.ibm.ws.wim.config.commands.LDAPRepositoryConfig.deleteIdMgrLDAPEntityType(LDAPRepositoryConfig.java:145)
at com.ibm.ws.wim.config.commands.IdMgrRepositoryConfigCommandsProvider.deleteIdMgrLDAPEntityType(IdMgrRepositoryConfigCommandsProvider.java:227)
Solution:
Goto the path ../wp_profile\config\cells\chnsp\wim\config\wimconfig.xml
modify the file with adding the below code, it should be added after the tag
</config:ldapServerConfiguration>
<config:ldapEntityTypes name="PersonAccount" searchFilter="">
<config:objectClasses>inetorgperson</config:objectClasses>
</config:ldapEntityTypes>
<config:ldapEntityTypes name="Group" searchFilter="">
<config:objectClasses>groupOfNames</config:objectClasses>
</config:ldapEntityTypes>
<config:groupConfiguration>
<config:memberAttributes dummyMember="uid=dummy" name="member" objectClass="groupOfNames"
scope="direct"/>
</config:groupConfiguration>
00000055 exception E com.ibm.ws.wim.config.LDAPRepositoryConfigHelper getEntityType CWWIM5014E LDAP entity type PersonAccount is not found.
00000055 exception E com.ibm.ws.wim.config.LDAPRepositoryConfigHelper getEntityType
com.ibm.websphere.wim.exception.WIMConfigurationException: CWWIM5014E LDAP entity type PersonAccount is not found.
at com.ibm.ws.wim.config.LDAPRepositoryConfigHelper.getEntityType(LDAPRepositoryConfigHelper.java:1251)
at com.ibm.ws.wim.config.LDAPRepositoryConfigHelper.deleteIdMgrLDAPEntityType(LDAPRepositoryConfigHelper.java:355)
at com.ibm.ws.wim.config.commands.LDAPRepositoryConfig.deleteIdMgrLDAPEntityType(LDAPRepositoryConfig.java:145)
at com.ibm.ws.wim.config.commands.IdMgrRepositoryConfigCommandsProvider.deleteIdMgrLDAPEntityType(IdMgrRepositoryConfigCommandsProvider.java:227)
Solution:
Goto the path ../wp_profile\config\cells\chnsp\wim\config\wimconfig.xml
modify the file with adding the below code, it should be added after the tag
</config:ldapServerConfiguration>
<config:ldapEntityTypes name="PersonAccount" searchFilter="">
<config:objectClasses>inetorgperson</config:objectClasses>
</config:ldapEntityTypes>
<config:ldapEntityTypes name="Group" searchFilter="">
<config:objectClasses>groupOfNames</config:objectClasses>
</config:ldapEntityTypes>
<config:groupConfiguration>
<config:memberAttributes dummyMember="uid=dummy" name="member" objectClass="groupOfNames"
scope="direct"/>
</config:groupConfiguration>
How to checkout projects from SVN using command prompt
Prerequisite:
Download CollabNet Subversion Command-Line Client from http://www.collab.net/downloads/subversion/
Checkout:
mvn scm:checkout -DconnectionUrl=scm:svn:http://example.com/svn/trunk/ -DcheckoutDirectory=/home/jp -Dusername=user@example.com -Dpassword=example
Update:
mvn scm:update
Download CollabNet Subversion Command-Line Client from http://www.collab.net/downloads/subversion/
Checkout:
mvn scm:checkout -DconnectionUrl=scm:svn:http://example.com/svn/trunk/ -DcheckoutDirectory=/home/jp -Dusername=user@example.com -Dpassword=example
Update:
mvn scm:update
Wednesday, February 16, 2011
Useful linux commands
1. List the JAVA processes running on linux:
ps -ef | grep java | awk '{print $2 " " $8}'
Result:
2070 /opt/Portal61/WebSphere/AppServer/java/bin/java
7440 /opt/IBM/WebSphere/AppServer61/java/bin/java
8952 /usr/java/jdk1.5.0_11/bin/java
ps -ef | grep java | awk '{print $2 " " $8}'
Result:
2070 /opt/Portal61/WebSphere/AppServer/java/bin/java
7440 /opt/IBM/WebSphere/AppServer61/java/bin/java
8952 /usr/java/jdk1.5.0_11/bin/java
Subscribe to:
Posts (Atom)