Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35987 > unrolled thread
| Started by | Philipp Kraus <philipp.kraus.flashpixx@gmail.com> |
|---|---|
| First post | 2016-11-29 00:33 -0800 |
| Last post | 2016-11-29 23:47 -0800 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.java.programmer
jersey / jackson application not accessable Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-11-29 00:33 -0800
Re: jersey / jackson application not accessable Arne Vajhøj <arne@vajhoej.dk> - 2016-11-29 20:57 -0500
Re: jersey / jackson application not accessable Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-11-29 23:47 -0800
| From | Philipp Kraus <philipp.kraus.flashpixx@gmail.com> |
|---|---|
| Date | 2016-11-29 00:33 -0800 |
| Subject | jersey / jackson application not accessable |
| Message-ID | <e61c26e0-69b8-4f92-aa44-d97c8f51d909@googlegroups.com> |
Hello, I'm new wil Java REST APIs, but not with REST generally. I have tested my REST service and on the first try (everything is build in a "fat" package) it works, but now I have split-up my application in a single package (for modularization), but if I use it in my Jetty server the URL is not accessable (404 error). The application uses a singleton element and I create a binding: https://github.com/LightJason/REST/blob/master/src/main/java/org/lightjason/rest/CApplication.java#L44 The singleton class defines all services: https://github.com/LightJason/REST/blob/master/src/main/java/org/lightjason/rest/CAgentProvider.java#L63 The pom.xml includes all neccessary dependencies: https://github.com/LightJason/REST/blob/master/pom.xml#L128 Inside my web.xml I register the application: https://github.com/APTD/Simulation/blob/master/src/main/webapp/web-inf/web.xml#L13 and use the singleton instance at https://github.com/APTD/Simulation/blob/master/src/main/java/com/github/aptd/simulation/simulation/graph/network/CStationGenerator.java#L80 The application should produce this URLs: https://github.com/LightJason/REST#usage but this don't work. If I put the components from my REST project into the application, it will work, so I think I have done a mistake by building this package. If you want to build all projects you need a dependency to https://github.com/LightJason/AgentSpeak All three projects are currently under heavy development, so sorry for this patchwork I expected when the application / resource class is loaded, it binds the singleton class (with the URL structure) and the dependency to jackson to the server and so, I can get access to the URL., but I think there is a mistake in my mind about the binding process. Can you explain me, what I have done wrong? Thanks Phil
[toc] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2016-11-29 20:57 -0500 |
| Message-ID | <o1lblo$1kls$1@gioia.aioe.org> |
| In reply to | #35987 |
On 11/29/2016 3:33 AM, Philipp Kraus wrote: > I'm new wil Java REST APIs, but not with REST generally. I have > tested my REST service and on the first try (everything is build in a > "fat" package) it works, but now I have split-up my application in a > single package (for modularization), but if I use it in my Jetty > server the URL is not accessable (404 error). > but this don't work. If I put the components from my REST project > into the application, it will work, so I think I have done a mistake > by building this package. If you want to build all projects you need > a dependency to https://github.com/LightJason/AgentSpeak All three > projects are currently under heavy development, so sorry for this > patchwork > > I expected when the application / resource class is loaded, it binds > the singleton class (with the URL structure) and the dependency to > jackson to the server and so, I can get access to the URL., but I > think there is a mistake in my mind about the binding process. > > Can you explain me, what I have done wrong? Anything relevant in the servers log file? Arne
[toc] | [prev] | [next] | [standalone]
| From | Philipp Kraus <philipp.kraus.flashpixx@gmail.com> |
|---|---|
| Date | 2016-11-29 23:47 -0800 |
| Message-ID | <55c2aa56-f95e-4fee-95fc-38520d6d348a@googlegroups.com> |
| In reply to | #35993 |
Hello,
Am Mittwoch, 30. November 2016 02:57:22 UTC+1 schrieb Arne Vajhøj:
> Anything relevant in the servers log file?
No, it is my "localhost" test system, so no productive system:
[...] output logs of my internal data structure [...]
2016-11-30 08:44:26.338:INFO::main: Logging initialized @2340ms to org.eclipse.jetty.util.log.StdErrLog
2016-11-30 08:44:26.523:INFO:oejs.Server:main: jetty-9.4.0.RC2
2016-11-30 08:44:26.523:WARN:oejs.Server:main: THIS IS NOT A STABLE RELEASE! DO NOT USE IN PRODUCTION!
2016-11-30 08:44:26.523:WARN:oejs.Server:main: Download a stable release from http://download.eclipse.org/jetty/
2016-11-30 08:44:26.758:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2016-11-30 08:44:26.758:WARN:oejs.session:main: No SessionScavenger set, using defaults
2016-11-30 08:44:26.761:INFO:oejs.session:main: Scavenging every 660000ms
2016-11-30 08:44:27.830:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@27ead29e{/,file:///Users/myuser/Documents/Simulation/target/classes/,AVAILABLE}{file:/Users/myuser/Simulation/target/classes/}
2016-11-30 08:44:27.859:INFO:oejs.AbstractConnector:main: Started ServerConnector@62515a47{HTTP/1.1,[http/1.1]}{localhost:8000}
2016-11-30 08:44:27.860:INFO:oejs.Server:main: Started @3861ms
Phil
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web