This is an automated email from the ASF dual-hosted git repository.
baedke pushed a commit to branch OAK-11960
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/OAK-11960 by this push:
new da2c01d42b OAK-11960: oak-examples: The static content of the webapp
still refers to RMI features that are no longer supported
da2c01d42b is described below
commit da2c01d42bc2d9d97d9d54dff1839e43e7d6f929
Author: Manfred Baedke <[email protected]>
AuthorDate: Fri Jan 9 11:20:42 2026 +0100
OAK-11960: oak-examples: The static content of the webapp still refers to
RMI features that are no longer supported
Fixed.
---
oak-examples/webapp/src/main/webapp/header.jsp | 1 -
oak-examples/webapp/src/main/webapp/remote.jsp | 106 ------------------------
oak-examples/webapp/src/main/webapp/welcome.jsp | 4 +-
3 files changed, 1 insertion(+), 110 deletions(-)
diff --git a/oak-examples/webapp/src/main/webapp/header.jsp
b/oak-examples/webapp/src/main/webapp/header.jsp
index 0232005e6b..507a57a543 100644
--- a/oak-examples/webapp/src/main/webapp/header.jsp
+++ b/oak-examples/webapp/src/main/webapp/header.jsp
@@ -56,7 +56,6 @@ String context =
<li><a href="<%= context %>/">Welcome</a></li>
<li><a href="<%= context %>/webdav-simple.jsp">Standard
WebDAV</a></li>
<li><a href="<%= context %>/webdav-jcr.jsp">JCR Remoting</a></li>
- <li><a href="<%= context %>/remote.jsp">Remote access</a></li>
<li><a href="<%= context %>/local.jsp">Local access</a></li>
<li><a href="<%= context %>/osgi/system/console">Web
Console</a></li>
<li><a href="<%= context
%>/troubleshooting.jsp">Troubleshooting</a></li>
diff --git a/oak-examples/webapp/src/main/webapp/remote.jsp
b/oak-examples/webapp/src/main/webapp/remote.jsp
deleted file mode 100644
index 42ac74ee0e..0000000000
--- a/oak-examples/webapp/src/main/webapp/remote.jsp
+++ /dev/null
@@ -1,106 +0,0 @@
-<%@ page import="java.net.URI"%><%--
- 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.
---%><%@page import="org.apache.jackrabbit.util.Text"%><%
-request.setAttribute("title", "Remote Repository Access");
-
-URI uri = new URI(request.getRequestURL().toString());
-String base =
- uri.getScheme() + "://" + uri.getHost() + ":" + uri.getPort()
- + request.getContextPath();
-base = Text.encodeIllegalXMLCharacters(base);
-%><jsp:include page="header.jsp"/>
-<p>
- The content repository within this web application is made available
- to remote clients through
- <a href="http://java.sun.com/javase/technologies/core/basic/rmi/">RMI</a>
- and the <em>jackrabbit-jcr-rmi</em> component.
-<p>
-<p>
- The remote repository stub is available both in the RMI registry
- (one is started automatically by this web application if not already running)
- and as a direct HTTP download. The default URLs for accessing the remote
- repository are:
-</p>
-<ul>
- <li>RMI registry: //localhost/jackrabbit.repository</li>
- <li>HTTP download: <%= base %>/rmi</li>
-</ul>
-<p>
- Note that the above URLs are the defaults. You can disable or change them
- by modifying the /WEB-INF/web.xml deployment descriptor.
-</p>
-
-<h3>Accessing the remote repository</h3>
-<p>
- To access the remote content repository you need to use the
- <em>jackrabbit-jcr-rmi</em> component in your application. If you use
- Maven 2, you can declare the JCR and jackrabbit-jcr-rmi dependencies
- like this:
-</p>
-<pre><dependency>
- <groupId>javax.jcr</groupId>
- <artifactId>jcr</artifactId>
- <version>1.0</version>
-</dependency>
-<dependency>
- <groupId>org.apache.jackrabbit</groupId>
- <artifactId>jackrabbit-jcr-rmi</artifactId>
- <version>1.4</version>
-</dependency>
-</pre>
-<p>
- With that dependency in place, you can use either the RMI registry or
- the direct HTTP download to access the repository.
-</p>
-<p>
- The required code for accessing the repository using the RMI registry is:
-</p>
-<pre>
-<b>import</b> javax.jcr.Repository;
-<b>import</b> org.apache.jackrabbit.rmi.repository.RMIRemoteRepository;
-
-Repository repository =
- <b>new</b>
RMIRemoteRepository("<em>//localhost/jackrabbit.repository</em>");
-</pre>
-<p>
- The required code for accessing the repository using the RMI registry is:
-</p>
-<pre>
-<b>import</b> javax.jcr.Repository;
-<b>import</b> org.apache.jackrabbit.rmi.repository.URLRemoteRepository;
-
-Repository repository =
- <b>new</b> URLRemoteRepository("<em><%= base %>/rmi</em>");
-</pre>
-<p>
- See the <a href="http://jcp.org/en/jsr/detail?id=170">JCR specification</a>
- and the
- <a
href="https://s.apache.org/jcr-1.0-javadoc/javax/jcr/Repository.html">Repository</a>
- javadoc for details on what to do with the acquired Repository instance.
-</p>
-
-<h3>Remote access performance</h3>
-<p>
- Note that the design goal of the current jackrabbit-jcr-rmi component
- is correct and complete functionality instead of performance, so you should
- not rely on remote access for performance-critical applications.
-</p>
-<p>
- You may want to look at the Jackrabbit clustering feature for best
- performance for concurrently accessing the repository on multiple separate
- servers.
-</p>
-<jsp:include page="footer.jsp"/>
diff --git a/oak-examples/webapp/src/main/webapp/welcome.jsp
b/oak-examples/webapp/src/main/webapp/welcome.jsp
index 7ed1caa6e3..b018661cf9 100644
--- a/oak-examples/webapp/src/main/webapp/welcome.jsp
+++ b/oak-examples/webapp/src/main/webapp/welcome.jsp
@@ -46,11 +46,9 @@ request.setAttribute("title", "Apache Jackrabbit JCR
Server");
<li><a href="webdav-remoting.jsp">JCR remoting over WebDAV (including Batch
Read/Write)</a></li>
</ul>
<p>
- Clients can also access the repository using the JCR API. Both local
- and remote access is supported.
+ Clients can also access the repository using the JCR API.
</p>
<ul>
- <li><a href="remote.jsp">Remote repository access</a></li>
<li><a href="local.jsp">Local repository access</a></li>
</ul>
<p>