Skip to content

Commit

Permalink
Switching to Tomcat 8.5 on Fedora 27.
Browse files Browse the repository at this point in the history
New server configuration files, webapp context files, library files,
and CMake scripts have been added for Tomcat 8.5.

The RPM spec template has been modified to use Tomcat 8.5 on
Fedora 27. The build and runtime dependencies have been updated
accordingly.

https://pagure.io/dogtagpki/issue/2560

Change-Id: I6f8be772cc099bd95ec3482415b9ab99a9747ab1
  • Loading branch information
edewata committed Mar 15, 2018
1 parent 44b39b1 commit 6228c90
Show file tree
Hide file tree
Showing 23 changed files with 1,063 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<classpathentry excluding="**/CMakeLists.txt" kind="src" path="base/ocsp/src"/>
<classpathentry excluding="**/CMakeLists.txt" kind="src" path="base/tks/src"/>
<classpathentry excluding="**/CMakeLists.txt" kind="src" path="base/tps/src"/>
<classpathentry excluding="**/CMakeLists.txt" kind="src" path="base/server/tomcat-8.0/src"/>
<classpathentry excluding="**/CMakeLists.txt" kind="src" path="base/server/tomcat-8.5/src"/>
<classpathentry excluding="**/CMakeLists.txt" kind="src" path="base/common/examples/java"/>
<classpathentry excluding="**/CMakeLists.txt" kind="src" path="base/console/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
Expand Down Expand Up @@ -68,5 +68,6 @@
<classpathentry kind="lib" path="/usr/share/java/jboss-logging/jboss-logging.jar"/>
<classpathentry kind="lib" path="/usr/share/java/jboss-annotations-1.2-api/jboss-annotations-api_1.2_spec.jar"/>
<classpathentry kind="lib" path="/usr/share/java/tomcat/tomcat-juli.jar"/>
<classpathentry kind="lib" path="/usr/share/java/tomcat/jaspic-api.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
5 changes: 2 additions & 3 deletions .travis/ipa-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,8 @@ steps:
- dnf repolist
install_packages:
- echo "Installing recently built dogtag RPMs..."
- find /freeipa/dogtag_rpms/ -name '*.rpm' -and -not -name '*debuginfo*' | xargs dnf install -y --best --allowerasing
- rpm -qa freeipa-*
- rpm -qa pki-*
- find /freeipa/dogtag_rpms/ -name '*.rpm' -and -not -name '*debuginfo*' | xargs dnf install -y
- rpm -qa tomcat* pki-* freeipa-* | sort
install_server:
- echo "Installing ipa-server..."
- sysctl net.ipv6.conf.lo.disable_ipv6=0
Expand Down
7 changes: 7 additions & 0 deletions base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ find_file(RESTEASY_ATOM_PROVIDER_JAR
${RESTEASY_LIB}
)

find_file(JASPIC_API_JAR
NAMES
jaspic-api.jar
PATHS
/usr/share/java/tomcat
)

find_file(TOMCAT_API_JAR
NAMES
tomcat-api.jar
Expand Down
6 changes: 6 additions & 0 deletions base/ca/tomcat-8.5/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
install(
DIRECTORY
conf/
DESTINATION
${SHARE_INSTALL_PREFIX}/${APPLICATION_NAME}/${PROJECT_NAME}/conf/
)
41 changes: 41 additions & 0 deletions base/ca/tomcat-8.5/conf/Catalina/localhost/ca.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version='1.0' encoding='utf-8'?>
<!-- BEGIN COPYRIGHT BLOCK
Copyright (C) 2012 Red Hat, Inc.
All rights reserved.
Modifications: configuration parameters
END COPYRIGHT BLOCK
-->

<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<Context docBase="/usr/share/pki/ca/webapps/ca" crossContext="true">

<Manager
secureRandomProvider="Mozilla-JSS" secureRandomAlgorithm="pkcs11prng"/>

<Valve className="com.netscape.cms.tomcat.ExternalAuthenticationValve" />

<Valve className="com.netscape.cms.tomcat.SSLAuthenticatorWithFallback"
alwaysUseSession="true"
secureRandomProvider="Mozilla-JSS"
secureRandomAlgorithm="pkcs11prng"/>

<Realm className="com.netscape.cms.tomcat.ProxyRealm" />

<Resources allowLinking="true" />

</Context>
6 changes: 6 additions & 0 deletions base/kra/tomcat-8.5/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
install(
DIRECTORY
conf/
DESTINATION
${SHARE_INSTALL_PREFIX}/${APPLICATION_NAME}/${PROJECT_NAME}/conf/
)
39 changes: 39 additions & 0 deletions base/kra/tomcat-8.5/conf/Catalina/localhost/kra.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version='1.0' encoding='utf-8'?>
<!-- BEGIN COPYRIGHT BLOCK
Copyright (C) 2012 Red Hat, Inc.
All rights reserved.
Modifications: configuration parameters
END COPYRIGHT BLOCK
-->

<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<Context docBase="/usr/share/pki/kra/webapps/kra" crossContext="true">

<Manager
secureRandomProvider="Mozilla-JSS" secureRandomAlgorithm="pkcs11prng"/>

<Valve className="com.netscape.cms.tomcat.SSLAuthenticatorWithFallback"
alwaysUseSession="true"
secureRandomProvider="Mozilla-JSS"
secureRandomAlgorithm="pkcs11prng"/>

<Realm className="com.netscape.cms.tomcat.ProxyRealm" />

<Resources allowLinking="true" />

</Context>
6 changes: 6 additions & 0 deletions base/ocsp/tomcat-8.5/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
install(
DIRECTORY
conf/
DESTINATION
${SHARE_INSTALL_PREFIX}/${APPLICATION_NAME}/${PROJECT_NAME}/conf/
)
39 changes: 39 additions & 0 deletions base/ocsp/tomcat-8.5/conf/Catalina/localhost/ocsp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version='1.0' encoding='utf-8'?>
<!-- BEGIN COPYRIGHT BLOCK
Copyright (C) 2012 Red Hat, Inc.
All rights reserved.
Modifications: configuration parameters
END COPYRIGHT BLOCK
-->

<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<Context docBase="/usr/share/pki/ocsp/webapps/ocsp" crossContext="true">

<Manager
secureRandomProvider="Mozilla-JSS" secureRandomAlgorithm="pkcs11prng"/>

<Valve className="com.netscape.cms.tomcat.SSLAuthenticatorWithFallback"
alwaysUseSession="true"
secureRandomProvider="Mozilla-JSS"
secureRandomAlgorithm="pkcs11prng"/>

<Realm className="com.netscape.cms.tomcat.ProxyRealm" />

<Resources allowLinking="true" />

</Context>
10 changes: 10 additions & 0 deletions base/server/tomcat-8.5/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
project(server-tomcat-8.5)

add_subdirectory(src)

install(
DIRECTORY
conf/
DESTINATION
${DATA_INSTALL_DIR}/server/conf/
)
32 changes: 32 additions & 0 deletions base/server/tomcat-8.5/conf/Catalina/localhost/ROOT.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version='1.0' encoding='utf-8'?>
<!-- BEGIN COPYRIGHT BLOCK
Copyright (C) 2012 Red Hat, Inc.
All rights reserved.
Modifications: configuration parameters
END COPYRIGHT BLOCK
-->

<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<Context docBase="/usr/share/pki/server/webapps/ROOT" crossContext="true">

<Manager
secureRandomProvider="Mozilla-JSS" secureRandomAlgorithm="pkcs11prng"/>

<Resources allowLinking="true" />

</Context>
32 changes: 32 additions & 0 deletions base/server/tomcat-8.5/conf/Catalina/localhost/pki.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version='1.0' encoding='utf-8'?>
<!-- BEGIN COPYRIGHT BLOCK
Copyright (C) 2012 Red Hat, Inc.
All rights reserved.
Modifications: configuration parameters
END COPYRIGHT BLOCK
-->

<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<Context docBase="/usr/share/pki/server/webapps/pki" crossContext="true">

<Manager
secureRandomProvider="Mozilla-JSS" secureRandomAlgorithm="pkcs11prng"/>

<Resources allowLinking="true" />

</Context>
Loading

0 comments on commit 6228c90

Please sign in to comment.