diff --git a/examples/helloworld-cdi2-se/README.MD b/examples/helloworld-cdi2-se/README.MD index 6e4026f9c3..839b069217 100644 --- a/examples/helloworld-cdi2-se/README.MD +++ b/examples/helloworld-cdi2-se/README.MD @@ -1,4 +1,4 @@ -[//]: # " Copyright (c) 2015, 2018 Oracle and/or its affiliates. All rights reserved. " +[//]: # " Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved. " [//]: # " " [//]: # " This program and the accompanying materials are made available under the " [//]: # " terms of the Eclipse Distribution License v. 1.0, which is available at " @@ -31,4 +31,4 @@ Run the example as follows: This deploys the example using [Grizzly](http://grizzly.java.net/) container. -- +- diff --git a/examples/helloworld-cdi2-se/pom.xml b/examples/helloworld-cdi2-se/pom.xml index 3f883d8ad5..dbc3fc7a4b 100644 --- a/examples/helloworld-cdi2-se/pom.xml +++ b/examples/helloworld-cdi2-se/pom.xml @@ -63,7 +63,7 @@ org.codehaus.mojo exec-maven-plugin - java.org.glassfish.jersey.examples.helloworld.cdi2se.App + org.glassfish.jersey.examples.helloworld.cdi2se.App diff --git a/examples/helloworld-cdi2-se/src/main/java/org/glassfish/jersey/examples/helloworld/cdi2se/App.java b/examples/helloworld-cdi2-se/src/main/java/org/glassfish/jersey/examples/helloworld/cdi2se/App.java index d35233fa01..5608a6de8e 100644 --- a/examples/helloworld-cdi2-se/src/main/java/org/glassfish/jersey/examples/helloworld/cdi2se/App.java +++ b/examples/helloworld-cdi2-se/src/main/java/org/glassfish/jersey/examples/helloworld/cdi2se/App.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at @@ -25,7 +25,7 @@ */ public class App { - private static final URI BASE_URI = URI.create("http://localhost:8080/base/"); + private static final URI BASE_URI = URI.create("http://localhost:8080/"); public static final String ROOT_HELLO_PATH = "helloworld"; public static final String ROOT_COUNTER_PATH = "counter"; @@ -40,7 +40,7 @@ public static void main(String[] args) { server.start(); System.out.println("Application started.\nTry out"); - System.out.println(String.format("%s%s", BASE_URI, ROOT_HELLO_PATH)); + System.out.println(String.format("%s%s%s", BASE_URI, ROOT_HELLO_PATH, "/Some%Name")); System.out.println(String.format("%s%s%s", BASE_URI, ROOT_COUNTER_PATH, "/request")); System.out.println(String.format("%s%s%s", BASE_URI, ROOT_COUNTER_PATH, "/application")); System.out.println("Stop the application using CTRL+C");