Skip to content

Commit

Permalink
Merge pull request #6 from vharseko/master
Browse files Browse the repository at this point in the history
FIX agentadmin class path exceptions
  • Loading branch information
spetix authored Mar 11, 2019
2 parents abf6e1b + 19862cc commit 366dd2b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion OpenAM
Submodule OpenAM updated 156 files
12 changes: 3 additions & 9 deletions jee-agents-distribution/src/main/assembly/scripts/agentadmin
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,11 @@

# Portions Copyrighted 2010-2013 ForgeRock AS.

if [[ $# -ge 1 ]] && [[ $1 == "debug" ]] ; then
echo "Enabled debug mode"
shift
JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005:${JAVA_OPTS}
fi

if [ -z "$AGENT_HOME" ]; then
AGENT_HOME=`dirname $0`/..
fi

if [ -z "$JAVA_HOME" ]; then
if [ -z "$JAVA_HOME/bin/java" ]; then
JAVA_VM=java
else
JAVA_VM=\${JAVA_HOME}/bin/java
Expand All @@ -55,6 +49,6 @@ else
AGENT_OPTS=
fi

AGENT_CLASSPATH=${AGENT_HOME}/lib/openam-installtools-${openam.version}.jar:${AGENT_HOME}/lib/commons-io-1.4.jar:${AGENT_HOME}/locale:${AGENT_HOME}/lib/openssoclientsdk.jar:${AGENT_HOME}/lib/agent.jar
AGENT_CLASSPATH=\${AGENT_HOME}/lib/openam-installtools-launcher-${openam.version}.jar:\${AGENT_HOME}/lib/commons-io-1.4.jar

$JAVA_VM ${JAVA_OPTS} -cp $AGENT_CLASSPATH $AGENT_OPTS com.sun.identity.install.tools.launch.AdminToolLauncher $*
$JAVA_VM -classpath "$AGENT_CLASSPATH" $AGENT_OPTS com.sun.identity.install.tools.launch.AdminToolLauncher $*
4 changes: 4 additions & 0 deletions jee-agents-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,9 @@
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-installtools</artifactId>
</dependency>
<dependency>
<groupId>org.forgerock.openam</groupId>
<artifactId>openam-installtools-launcher</artifactId>
</dependency>
</dependencies>
</project>
12 changes: 8 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<version>4.0.6-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<openam.version>14.1.17-SNAPSHOT</openam.version>
<openam.version>14.2.2-SNAPSHOT</openam.version>
<!-- <websphere.libraries.v61.system.path>/var/tmp/extlib/websphere/v61</websphere.libraries.v61.system.path> -->
<!-- <com.ibm.ws.runtime.v61.version>6.1.0</com.ibm.ws.runtime.v61.version> -->
<!-- <weblogic.libraries.v10.system.path>/var/tmp/extlib/weblogic/v10</weblogic.libraries.v10.system.path> -->
Expand Down Expand Up @@ -87,10 +87,14 @@
<version>2.3</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.1</version>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit 366dd2b

Please sign in to comment.