2012年12月16日 星期日

Eclipse 啟動時卡住問題

Eclipse在啟動時卡住 停在loading org.eclipse.debug.core

解決方法

刪除
.metadata\.plugins\org.eclipse.core.resources\.root\.markers.snap

不行在刪除

.metadata\.plugins\org.eclipse.core.resources\.projects\<project>\.markers.snap
如果還不行刪除 
.metadata\.plugins\org.eclipse.core.resources\.snap

2012年8月5日 星期日

Deploy Error : A composition unit with name already exists. Select a different application name


from: http://turanunes.wordpress.com/2011/09/21/deploy-error-a-composition-unit-with-name-already-exists-select-a-different-application-name/

When installing an application or performing other administrative actions in WebSphere Application Server version 7.x, the following error is received:
”A composition unit with name already exists. Select a different application name”
Resolving the Problem :
There are some temp file s on the Websphere server , you can delete them…
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/config/cells/(CellName)/blas/(AppName)
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/config/cells/(CellName)/cus/(AppName)
and also you can delete
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/wstemp/*.*
/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/config/cells/isprodwas61Cell01/blas/(AppName)


window==>
C:\Program Files (x86)\IBM\SDP75\runtimes\base_v7\profiles\was70profile1\config\cells\lunayccleo-VAIONode01Cell\blas
C:\Program Files (x86)\IBM\SDP75\runtimes\base_v7\profiles\was70profile1\config\cells\lunayccleo-VAIONode01Cell\cus


C:\Program Files (x86)\IBM\SDP75\runtimes\base_v7\profiles\was70profile1\wstemp

2012年4月30日 星期一

Open multiple eclipse workspace in Mac

1. use command line to go to your eclipse folder
cd /Documents/eclipse

2. open eclipse as follow
./eclipse &

2012年4月29日 星期日

Eclipse configure reference project

when your web project in eclipse need to use classes from java project

then you need to set up your java project as  your reference project










1 configure project dependency















2.add require project

2012年4月14日 星期六

setting up apache-solr in eclipse with tomcat

1.download apache solr
http://lucene.apache.org/solr/index.html

2.import apache-solr-xx.war into your eclipse

3.copy solr config (apache-solr-3.5.0\client\ruby\solr-ruby\solr\conf) into your dynamic web project
  your project should look something like this

4. define solr home in your web.xml
    add the following in your web.xml
    the marked text is the location of your solr config in your web project

    <env-entry>
       <env-entry-name>solr/home</env-entry-name>
       <env-entry-value>C:/LeoProject/apache-solr-3.5.0/solr</env-entry-value>
       <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>

5. now you can run your solr in eclipse with tomcat