Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: Various bugs in Helloworld CDI SE Example #4206

Merged
merged 3 commits into from
Jul 26, 2019
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
4 changes: 2 additions & 2 deletions examples/helloworld-cdi2-se/README.MD
Original file line number Diff line number Diff line change
@@ -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 "
Expand Down Expand Up @@ -31,4 +31,4 @@ Run the example as follows:

mkarg marked this conversation as resolved.
Show resolved Hide resolved
This deploys the example using [Grizzly](http://grizzly.java.net/) container.

- <http://localhost:8080/helloworld>
- <http://localhost:8080/helloworld/Some%20Name>
2 changes: 1 addition & 1 deletion examples/helloworld-cdi2-se/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<mainClass>java.org.glassfish.jersey.examples.helloworld.cdi2se.App</mainClass>
<mainClass>org.glassfish.jersey.examples.helloworld.cdi2se.App</mainClass>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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";
mkarg marked this conversation as resolved.
Show resolved Hide resolved
public static final String ROOT_COUNTER_PATH = "counter";

Expand All @@ -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");
Expand Down