-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The PKIApplication class and the services in it are supposed to be deployed under /pki webapp only, but currently these classes are included in pki-server.jar so they are also distributed in all other webapps although they are not actually used there. In Servlet 3.0 framework all application classes in the webapp will be initialized automatically, so the current packaging could become a problem. To avoid the problem the files for /pki webapp need to be moved into a new server-webapp module, and the PKIApplication with the services in it need to be moved into pki-server-webapp.jar which will only be deployed under /pki webapp.
- Loading branch information
Showing
76 changed files
with
405 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
project(server-webapp) | ||
|
||
# build server-webapp classes | ||
javac(pki-server-webapp-classes | ||
DEPENDS | ||
pki-server-jar | ||
SOURCES | ||
src/main/java/*.java | ||
CLASSPATH | ||
${SERVLET_JAR} | ||
${JAXRS_API_JAR} | ||
${SLF4J_API_JAR} | ||
${JACKSON2_CORE_JAR} | ||
${PKI_COMMON_JAR} | ||
${PKI_SERVER_JAR} | ||
OUTPUT_DIR | ||
${CMAKE_CURRENT_BINARY_DIR}/classes | ||
) | ||
|
||
configure_file( | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/main/resources/META-INF/MANIFEST.MF | ||
${CMAKE_CURRENT_BINARY_DIR}/MANIFEST.MF | ||
) | ||
|
||
# build pki-server-webapp.jar | ||
jar(pki-server-webapp-jar | ||
DEPENDS | ||
pki-server-webapp-classes | ||
CREATE | ||
${CMAKE_BINARY_DIR}/dist/pki-server-webapp.jar | ||
OPTIONS | ||
m | ||
PARAMS | ||
${CMAKE_CURRENT_BINARY_DIR}/MANIFEST.MF | ||
INPUT_DIR | ||
${CMAKE_CURRENT_BINARY_DIR}/classes | ||
INPUT_DIR | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/main/resources | ||
) | ||
|
||
set(PKI_SERVER_WEBAPP_JAR ${CMAKE_BINARY_DIR}/dist/pki-server-webapp.jar CACHE INTERNAL "pki-server-webapp jar file") | ||
|
||
# Create /usr/share/pki/server/webapps/pki/WEB-INF/lib. This can be customized for different platforms in RPM spec. | ||
|
||
add_custom_target(pki-server-webapp-lib ALL | ||
COMMENT "Creating links for PKI server webapp library") | ||
|
||
add_custom_command( | ||
TARGET pki-server-webapp-lib | ||
COMMAND ${CMAKE_COMMAND} -E make_directory webapp/lib | ||
COMMAND ln -sf ../../../../../../../..${SLF4J_API_JAR} webapp/lib/slf4j-api.jar | ||
COMMAND ln -sf ../../../../../../../..${SLF4J_JDK14_JAR} webapp/lib/slf4j-jdk14.jar | ||
COMMAND ln -sf ../../../../../../../..${JAVA_JAR_INSTALL_DIR}/pki/pki-server.jar ${CMAKE_CURRENT_BINARY_DIR}/webapp/lib/pki-server.jar | ||
COMMAND ln -sf ../../../../../../../..${JAVA_JAR_INSTALL_DIR}/pki/pki-server-webapp.jar ${CMAKE_CURRENT_BINARY_DIR}/webapp/lib/pki-server-webapp.jar | ||
) | ||
|
||
install( | ||
DIRECTORY | ||
webapps | ||
DESTINATION | ||
${DATA_INSTALL_DIR}/server | ||
) | ||
|
||
install( | ||
FILES | ||
${CMAKE_BINARY_DIR}/dist/pki-server-webapp.jar | ||
DESTINATION | ||
${JAVA_JAR_INSTALL_DIR}/pki | ||
) | ||
|
||
install( | ||
DIRECTORY | ||
${CMAKE_CURRENT_BINARY_DIR}/webapp/lib/ | ||
DESTINATION | ||
${DATA_INSTALL_DIR}/server/webapps/pki/WEB-INF/lib | ||
) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.dogtagpki.pki</groupId> | ||
<artifactId>pki-base-parent</artifactId> | ||
<version>${revision}</version> | ||
</parent> | ||
|
||
<artifactId>pki-server-webapp</artifactId> | ||
<packaging>jar</packaging> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>pki-server</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<build> | ||
<finalName>pki-server-webapp</finalName> | ||
</build> | ||
|
||
</project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Name: pki-server-webapp | ||
Specification-Version: ${APPLICATION_VERSION} | ||
Implementation-Version: ${IMPL_VERSION} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1111,6 +1111,7 @@ fi | |
%attr(644,-,-) %{_unitdir}/[email protected] | ||
%attr(644,-,-) %{_unitdir}/pki-tomcatd-nuxwdog.target | ||
%{_javadir}/pki/pki-server.jar | ||
%{_javadir}/pki/pki-server-webapp.jar | ||
%{_javadir}/pki/pki-tomcat.jar | ||
%dir %{_sharedstatedir}/pki | ||
%{_mandir}/man1/pkidaemon.1.gz | ||
|