Thursday, October 4, 2007

File Agent service access from portlet: compile

STEP 0: Shut down tomcat

STEP 1: add 3rd party jar for axis2,
axis2-adb-1.3.jar
axis2-kernel-1.3.jar
axiom-api-1.2.5.jar
annogen-0.1.0.jar
axiom-api-1.2.5.jar
axiom-dom-1.2.5.jar
axiom-impl-1.2.5.jar
commons-codec-1.3.jar
commons-httpclient-3.0.1.jar
stax-api-1.0.1.jar
wsdl4j-1.6.2.jar
wstx-asl-3.2.1.jar
XmlSchema-1.3.2.jar
FileAgentService-0.5.aar
command:
ogce-portal-only/maven-2.0.7/bin/mvn install:install-file -DgroupId=axis2 -DartifactId=axis2-adb -Dversion=1.3 -Dfile="axis2-adb-1.3.jar" -Dpackaging=jar
ogce-portal-only/maven-2.0.7/bin/mvn install:install-file -DgroupId=axis2 -DartifactId=axis2-kernel -Dversion=1.3 -Dfile="axis2-kernel-1.3.jar" -Dpackaging=jar
ogce-portal-only/maven-2.0.7/bin/mvn install:install-file -DgroupId=FileAgentService -DartifactId=FileAgentService -Dversion=0.5 -Dfile="FileAgentService-0.5.aar" -Dpackaging=jar
ogce-portal-only/maven-2.0.7/bin/mvn install:install-file -DgroupId=axis2 -DartifactId=axiom-api -Dversion=1.2.5 -Dfile="axiom-api-1.2.5.jar" -Dpackaging=jar

Step 2. Add s to the project.pom file


axis2
axiom-api
1.2.5
compile


axis2
axiom-dom
1.2.5
compile


axis2
axiom-impl
1.2.5
compile



axis2
axis2-adb
1.3
compile



axis2
annogen
0.1.0
compile



axis2
axis2-kernel
1.3
compile



axis2
commons-codec
1.3
compile



axis2
commons-httpclient
3.0.1
compile


axis2
stax-api
1.0.1
compile


axis2
wsdl4j
1.6.2
compile


axis2
wstx-asl
3.2.1
compile


axis2
XmlSchema
1.3.2
compile



FileAgentService
FileAgentService
0.5
compile



STEP 3: compile and install
On the directory of ogce-portal-only,
maven-2.0.7/bin/mvn clean install -f portlets/comp-file-management/pom.xml

STEP 4: try it.
./tomcat-startup.sh

No comments: