Skip to content

Commit

Permalink
OPENJPA-2911 finish Serp removal
Browse files Browse the repository at this point in the history
  • Loading branch information
struberg committed Jul 25, 2023
1 parent bb11f02 commit 0729141
Show file tree
Hide file tree
Showing 16 changed files with 3 additions and 135 deletions.
4 changes: 0 additions & 4 deletions NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ The Apache Software Foundation (http://www.apache.org/).
The following copyright notice(s) were affixed to portions of this code
with which this file is now or was at one time distributed.


OpenJPA includes software developed by the SERP project
Copyright (c) 2002-2006, A. Abram White. All rights reserved.

OpenJPA includes the persistence and orm schemas from the JPA specifications.
Copyright 2005-2009 Sun Microsystems, Inc. All rights reserved.
OpenJPA elects to include this software in this distribution under the
Expand Down
30 changes: 0 additions & 30 deletions openjpa-all/src/main/appended-resources/META-INF/LICENSE.vm
Original file line number Diff line number Diff line change
Expand Up @@ -232,36 +232,6 @@ and resource files are also released under the ASF license above.

The exceptions are as follows:

=============================
serp-1.13.1.jar - BSD License
=============================

Copyright (c) 2002, A. Abram White
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of 'serp' nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

===========================
openjpa-persistence -
orm-xsd.rsrc - CDDL 1.0 - included in the openjpa jar, taken from:
Expand Down
3 changes: 0 additions & 3 deletions openjpa-all/src/main/appended-resources/META-INF/NOTICE.vm
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ openjpa-all includes software developed by the:
The following copyright notice(s) were affixed to portions of this code
with which this file is now or was at one time distributed.

OpenJPA includes software developed by the SERP project
Copyright (c) 2002-2006, A. Abram White. All rights reserved.

OpenJPA includes the persistence and orm schemas from the JPA specifications.
Copyright 2005-2009 Sun Microsystems, Inc. All rights reserved.
OpenJPA elects to include this software in this distribution under the
Expand Down
3 changes: 1 addition & 2 deletions openjpa-features/src/main/feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
<bundle dependency="true">mvn:org.eclipse.persistence/jakarta.persistence/2.1.0</bundle>
<bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
<bundle dependency="true">mvn:org.apache.geronimo.specs/geronimo-el_1.0_spec/1.0.1</bundle>
<bundle dependency="true">mvn:org.apache.commons/commons-pool2/${pool2.version}</bundle>
<bundle dependency="true">mvn:org.apache.commons/commons-pool2/${pool2.version}</bundle>
<bundle dependency="true">mvn:org.apache.commons/commons-dbcp2/2.7.0</bundle>
<bundle dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.serp/1.14.1_1</bundle>
<bundle dependency="true">mvn:org.apache.xbean/xbean-asm9-shaded/${xbean.version}</bundle>
<bundle>mvn:org.apache.openjpa/openjpa/${project.version}</bundle>
<capability>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,19 +353,6 @@ public JDBCConfigurationImpl(boolean derivations, boolean loadGlobals) {
identifierUtilPlugin.setString(aliases[0]);
identifierUtilPlugin.setInstantiatingGetter("getIdentifierUtilInstance");


// this static initializer is to get past a weird
// ClassCircularityError that happens only under IBM's
// JDK 1.3.1 on Linux from within the JRun ClassLoader;
// while exact causes are unknown, it is almost certainly
// a bug in JRun, and we can get around it by forcing
// Instruction.class to be loaded and initialized
// before TypedInstruction.class
try { serp.bytecode.lowlevel.Entry.class.getName(); }
catch (Throwable t) {}
try { serp.bytecode.Instruction.class.getName(); }
catch (Throwable t) {}

supportedOptions().add(OPTION_QUERY_SQL);
supportedOptions().add(OPTION_JDBC_CONNECTION);
supportedOptions().remove(OPTION_VALUE_INCREMENT);
Expand Down
6 changes: 1 addition & 5 deletions openjpa-kernel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@
<version>4.2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<!-- TODO REMOVE -->
<groupId>net.sourceforge.serp</groupId>
<artifactId>serp</artifactId>
</dependency>

<dependency>
<groupId>org.apache.xbean</groupId>
<artifactId>xbean-asm9-shaded</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

/**
* Helper class used so that the localizer.properties file in this package
* can be accessed. The properties cannot be in the same package(serp.util)
* can be accessed. The properties cannot be in the same package
* as the main tester class because other utilities in the source line might
* eventually want to use a localizer.properties file for that package.
*
Expand Down
10 changes: 0 additions & 10 deletions openjpa-persistence-jdbc/src/test/resources/j2.security.jse.policy
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,6 @@ grant CodeBase "${db2.base}/-" {
// ================================================================
// The following permissions are required by OpenJPA implementation.

// ----------------------------------------------------------------
// Serp: E.g.
// -Dserp.base="file:///C:\.m2\repository\net\sourceforge\serp\serp\1.11.0"

grant CodeBase "${serp.base}/-" {

permission java.io.FilePermission "<<ALL FILES>>", "read,write";
permission java.lang.RuntimePermission "createClassLoader";
};

// ----------------------------------------------------------------
// OpeJPA: E.g.
// -Dopenjpa.base=file:///C:\openjpa.cur\openjpa-all\target
Expand Down
30 changes: 0 additions & 30 deletions openjpa-project/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -557,36 +557,6 @@ NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
The GlassFish code released under the CDDL shall be governed by the laws of the State of California (excluding conflict-of-law provisions). Any litigation relating to this License shall be subject to the jurisdiction of the Federal Courts of the Northern District of California and the state courts of the State of California, with venue lying in Santa Clara County, California.


serp-1.13.1.jar - BSD License
=============================

Copyright (c) 2002, A. Abram White
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of 'serp' nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


===========================

Eclipse Public License - v 1.0
Expand Down
4 changes: 0 additions & 4 deletions openjpa-project/NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@ The OpenJPA binary assembly and openjpa-all includes software developed by the:
Apache Geronimo project
Java EE Specs - JMS 1.1, JTA 1.1, Bean Validation 1.0 and JPA 2.0
Apache Incubtor - Bean Validation project
SERP project


The following copyright notice(s) were affixed to portions of this code
with which this file is now or was at one time distributed.

OpenJPA includes software developed by the SERP project
Copyright (c) 2002-2006, A. Abram White. All rights reserved.

OpenJPA includes the persistence and orm schemas from the JPA specifications.
Copyright 2005-2009 Sun Microsystems, Inc. All rights reserved.
OpenJPA elects to include this software in this distribution under the
Expand Down
1 change: 0 additions & 1 deletion openjpa-project/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@
<unpack>false</unpack>
<scope>runtime</scope>
<includes>
<include>net.sourceforge.serp:serp</include>
<include>org.apache.derby:derby</include>

<include>org.apache.commons:commons-pool2</include>
Expand Down
1 change: 0 additions & 1 deletion openjpa-project/bin-assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
<unpack>false</unpack>
<scope>runtime</scope>
<includes>
<include>net.sourceforge.serp:serp</include>
<include>org.apache.derby:derby</include>

<include>org.apache.commons:commons-pool2</include>
Expand Down
15 changes: 0 additions & 15 deletions openjpa-project/src/doc/manual/openjpa_legal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ Apache OpenJPA is released under the <ulink url="http://www.apache.org/licenses/
<para>
Apache OpenJPA includes the persistence and orm schemas from the JPA specifications and elects to include this software in this distribution under the <ulink url="https://glassfish.dev.java.net/public/CDDL+GPL.html">CDDL license.</ulink>
</para>
<para>
Apache OpenJPA includes software developed by the SERP project, which uses the <ulink url="http://www.opensource.org/licenses/bsd-license.php">BSD license</ulink>
</para>
</section>

<section id="openjpa_legal_notice">
Expand Down Expand Up @@ -79,9 +76,6 @@ The openjpa-all aggregate JAR includes software developed by the:
<listitem><para>
JCP JSR-317 JPA 2.0 schemas
</para></listitem>
<listitem><para>
SERP project
</para></listitem>
</itemizedlist>
</para>
</section>
Expand All @@ -99,15 +93,6 @@ Copyright (C) 2006,2011 The Apache Software Foundation.
Apache, OpenJPA and the Apache feather logo are trademarks of Apache Software Foundation.
</para>
</section>
<section id="openjpa_legal_copyright_serp">
<title>Serp</title>
<para>
OpenJPA includes software developed by the SERP project.
</para>
<para>
Copyright (c) 2002-2006, A. Abram White. All rights reserved.
</para>
</section>
<section id="openjpa_legal_copyright_sun">
<title>Sun</title>
<para>
Expand Down
1 change: 0 additions & 1 deletion openjpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@
jakarta.transaction.*;version="[1.1,1.3)";resolution:=optional,
jakarta.validation.*;version="[1.0.0,1.1)";resolution:=optional,
jakarta.xml.bind.*;resolution:=optional,
serp.*;resolution:=optional,
org.apache.commons.dbcp2.*;resolution:=optional,
org.apache.commons.pool2.*;resolution:=optional,
jakarta.persistence.*;version="[1.1.0,2.2)",
Expand Down
3 changes: 0 additions & 3 deletions openjpa/src/main/appended-resources/META-INF/NOTICE.vm
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
##


OpenJPA includes software developed by the SERP project
Copyright (c) 2002-2006, A. Abram White. All rights reserved.

OpenJPA includes the persistence and orm schemas from the JPA specifications.
Copyright 2005-2007 Sun Microsystems, Inc. All rights reserved.
OpenJPA elects to include this software in this distribution under the
Expand Down
12 changes: 0 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1776,18 +1776,6 @@
<artifactId>commons-logging</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>net.sourceforge.serp</groupId>
<artifactId>serp</artifactId>
<version>1.15.1</version>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
Expand Down

0 comments on commit 0729141

Please sign in to comment.