Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<name>MIT license</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
<comments>AngularJS, Bootstrap v3.3.7 (http://getbootstrap.com),
<comments>AngularJS, Bootstrap v3.3.7 (http://getbootstrap.com),
jQuery Barcode plugin 0.3, KineticJS v4.7.1</comments>
</license>
</licenses>
Expand All @@ -53,7 +53,6 @@

<modules>
<module>assemblies</module>
<!--<module>bean-validation-webapp</module>-->
<module>bookmark</module>
<module>bookmark-em</module>
<module>bookstore-webapp</module>
Expand All @@ -68,9 +67,7 @@
<module>extended-wadl-webapp</module>
<module>exception-mapping</module>
<module>expect-100-continue-netty-client</module>
<!--<module>feed-combiner-java8-webapp</module>-->
<module>freemarker-webapp</module>
<!--<module>flight-mgmt-webapp</module>-->
<module>helloworld</module>
<module>helloworld-benchmark</module>
<module>helloworld-cdi2-se</module>
Expand Down Expand Up @@ -100,14 +97,12 @@
<module>managed-client</module>
<module>managed-client-webapp</module>
<module>managed-client-simple-webapp</module>
<!--<module>monitoring-webapp</module>-->
<module>multipart-webapp</module>
<module>micrometer</module>
<module>open-tracing</module>
<module>osgi-helloworld-webapp</module>
<module>osgi-http-service</module>
<module>oauth-client-twitter</module>
<!--<module>oauth2-client-google-webapp</module>-->
<module>reload</module>
<module>rx-client-webapp</module>
<module>server-async</module>
Expand All @@ -117,13 +112,10 @@
<module>server-sent-events-jaxrs</module>
<module>servlet3-webapp</module>
<module>simple-console</module>
<!--<module>shortener-webapp</module>-->
<!--<module>sparklines</module>-->
<module>sse-item-store-jersey-webapp</module>
<module>sse-item-store-jaxrs-webapp</module>
<module>sse-twitter-aggregator</module>
<module>system-properties-example</module>
<!--<module>tone-generator</module>-->
<module>webapp-example-parent</module>
<module>xml-moxy</module>
</modules>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright (c) 2026 Contributors to the Eclipse Foundation.
* Copyright (c) 2010, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand All @@ -18,6 +19,7 @@
import javax.ws.rs.QueryParam;

import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONException;

/**
* A web resource for a list of colours.
Expand Down Expand Up @@ -48,10 +50,11 @@ public String getColourListAsText(@QueryParam("match") String filter) {
* @param filter If not empty, constrains the list of colours to only
* those that contain this substring
* @return the list of colours matching the filter
* @throws JSONException
*/
@GET
@Produces("application/json")
public JSONArray getColourListAsJSON(@QueryParam("match") String filter) {
public JSONArray getColourListAsJSON(@QueryParam("match") String filter) throws JSONException {
return new JSONArray(getMatchingColours(filter));
}

Expand Down
1 change: 1 addition & 0 deletions media/json-jettison/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
<dependency>
<groupId>org.codehaus.jettison</groupId>
<artifactId>jettison</artifactId>
<scope>compile</scope>
</dependency>

<dependency>
Expand Down
5 changes: 3 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@
<additionalClasspathElement>${xdk.absolute.path}</additionalClasspathElement>
</additionalClasspathElements>
<classpathDependencyExcludes>
<classpathDependencyExcludes>xerces:xercesImpl</classpathDependencyExcludes>
<classpathDependencyExclude>xerces:xercesImpl</classpathDependencyExclude>
</classpathDependencyExcludes>
</configuration>
</plugin>
Expand Down Expand Up @@ -1774,6 +1774,7 @@
<groupId>org.codehaus.jettison</groupId>
<artifactId>jettison</artifactId>
<version>${jettison.version}</version>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>stax</groupId>
Expand Down Expand Up @@ -2260,7 +2261,7 @@
<javassist.version>3.30.2-GA</javassist.version>
<jersey1.version>1.19.3</jersey1.version>
<jersey1.last.final.version>${jersey1.version}</jersey1.last.final.version>
<jettison.version>1.3.7</jettison.version> <!-- TODO: 1.3.8 doesn't work; AbstractJsonTest complexBeanWithAttributes -->
<jettison.version>1.5.7</jettison.version>
<jboss.vfs.version>3.3.2.Final</jboss.vfs.version>
<jboss.vfs.jdk8.version>3.2.17.Final</jboss.vfs.jdk8.version>
<jboss.logging.version>3.6.1.Final</jboss.logging.version>
Expand Down
5 changes: 5 additions & 0 deletions tests/e2e-entity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@
<artifactId>jersey-media-json-jackson</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.codehaus.jettison</groupId>
<artifactId>jettison</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson1</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"complexBeanWithAttributes":{"@a2":"31415926","@a1":"hello dolly","filler1":111,"list":[{"@j":"bumper","@i":"312","@uri":"http://localhost:8080/jedna/bedna/","s1":"hi there"},{"@j":"bumper","@i":"312","@uri":"http://localhost:8080/jedna/bedna/","s1":"hi there"}],"filler2":222,"b":{"@j":"bumper","@i":"312","@uri":"http://localhost:8080/jedna/bedna/","s1":"hi there"}}}
{"complexBeanWithAttributes":{"@a2":31415926,"@a1":"hello dolly","filler1":111,"list":[{"@j":"bumper","@i":312,"@uri":"http://localhost:8080/jedna/bedna/","s1":"hi there"},{"@j":"bumper","@i":312,"@uri":"http://localhost:8080/jedna/bedna/","s1":"hi there"}],"filler2":222,"b":{"@j":"bumper","@i":312,"@uri":"http://localhost:8080/jedna/bedna/","s1":"hi there"}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"complexBeanWithAttributes2":{"@a2":"31415926","@a1":"hello dolly","filler1":111,"list":[{"@uri":"http://localhost:8080/jedna/bedna/"},{"@uri":"http://localhost:8080/jedna/bedna/"}],"filler2":222,"b":{"@uri":"http://localhost:8080/jedna/bedna/"}}}
{"complexBeanWithAttributes2":{"@a2":31415926,"@a1":"hello dolly","filler1":111,"list":[{"@uri":"http://localhost:8080/jedna/bedna/"},{"@uri":"http://localhost:8080/jedna/bedna/"}],"filler2":222,"b":{"@uri":"http://localhost:8080/jedna/bedna/"}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"complexBeanWithAttributes2":{"@a1":"hello dolly","@a2":"31415926","filler1":111,"list":[{"@uri":"http://localhost:8080/jedna/bedna/"},{"@uri":"http://localhost:8080/jedna/bedna/"}],"filler2":222,"b":{"@uri":"http://localhost:8080/jedna/bedna/"}}}
{"complexBeanWithAttributes2":{"@a1":"hello dolly","@a2":31415926,"filler1":111,"list":[{"@uri":"http://localhost:8080/jedna/bedna/"},{"@uri":"http://localhost:8080/jedna/bedna/"}],"filler2":222,"b":{"@uri":"http://localhost:8080/jedna/bedna/"}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"complexBeanWithAttributes":{"@a1":"hello dolly","@a2":"31415926","filler1":111,"list":[{"@uri":"http://localhost:8080/jedna/bedna/","@i":"312","@j":"bumper","s1":"hi there"},{"@uri":"http://localhost:8080/jedna/bedna/","@i":"312","@j":"bumper","s1":"hi there"}],"filler2":222,"b":{"@uri":"http://localhost:8080/jedna/bedna/","@i":"312","@j":"bumper","s1":"hi there"}}}
{"complexBeanWithAttributes":{"@a1":"hello dolly","@a2":31415926,"filler1":111,"list":[{"@uri":"http://localhost:8080/jedna/bedna/","@i":312,"@j":"bumper","s1":"hi there"},{"@uri":"http://localhost:8080/jedna/bedna/","@i":312,"@j":"bumper","s1":"hi there"}],"filler2":222,"b":{"@uri":"http://localhost:8080/jedna/bedna/","@i":312,"@j":"bumper","s1":"hi there"}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"registerMessage":{"@requestTime":"1234","@agentUID":"agentKocka"}}
{"registerMessage":{"@requestTime":1234,"@agentUID":"agentKocka"}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"registerMessage":{"@agentUID":"agentKocka","@requestTime":"1234"}}
{"registerMessage":{"@agentUID":"agentKocka","@requestTime":1234}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"simpleBeanWithAttributes":{"@j":"bumper","@i":"312","@uri":"http://localhost:8080/jedna/bedna/","s1":"hi there"}}
{"simpleBeanWithAttributes":{"@j":"bumper","@i":312,"@uri":"http://localhost:8080/jedna/bedna/","s1":"hi there"}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"simpleBeanWithAttributes":{"@uri":"http://localhost:8080/jedna/bedna/","@i":"312","@j":"bumper","s1":"hi there"}}
{"simpleBeanWithAttributes":{"@uri":"http://localhost:8080/jedna/bedna/","@i":312,"@j":"bumper","s1":"hi there"}}
5 changes: 5 additions & 0 deletions tests/e2e-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.codehaus.jettison</groupId>
<artifactId>jettison</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
Expand Down
Loading