Discussion:
How to add Jetty server classes to Eclipse project?
Rolf Schumacher
2018-10-04 06:49:26 UTC
Permalink
I was trying to start learning about Apache Wicket (as it looked like an
easy to use UI for Java) and because I like to work with Eclipse and
Maven. I also like to work with Tomcat, however, Wicket seems to prefer
Jetty at least in its tutorials. I do not know nothing about Jetty,
however should not take ages to learn.

I tried the Wicket Quick Start
<https://wicket.apache.org/start/quickstart.html.> and successfully
imported the generated Maven project to Eclipse workspace.

But errors appear: e.g.

import org.eclipse.jetty.server.HttpConfiguration;

*It seems Eclipse cannot find the jetty server classes. How to add these
to the Eclipse project?*

Does the creater of the Wicket Quick Start assumed that Jetty is already
installed on the machine?
/I installed it. However: what is the recommended way to make what jar
file available to a maven project to have jetty server classes
available? I would assume via the pom.xml but I doubt that is the case
here - the given pom.xml would contain it./

Or is there some special plugin for Eclipse (Photon)?
/Run-Jetty-Run?. I wasn't brave enough to try that./

I would love to get the Wicket Quick Start running.

I also tried Eclipse + Tomcat + Apache Wicket Maven Setup with Hello
World Example
<http://digitalappconsultancy.com/site/eclipse-tomcat-apache-wicket-maven-setup-with-hello-world-example/>
but it seems that it is outdated. I was not able to install qwickie to
Eclipse as described.

I am using Eclipse Proton with Java 10.0.2 on Debian Stretch.

Any help appreciated

Rolf
Martin Terra
2018-10-04 07:07:52 UTC
Permalink
Typically something like

<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
<version>${jetty.version}</version>
</dependency>

**
Martin
Post by Rolf Schumacher
I was trying to start learning about Apache Wicket (as it looked like an
easy to use UI for Java) and because I like to work with Eclipse and
Maven. I also like to work with Tomcat, however, Wicket seems to prefer
Jetty at least in its tutorials. I do not know nothing about Jetty,
however should not take ages to learn.
I tried the Wicket Quick Start
<https://wicket.apache.org/start/quickstart.html.> and successfully
imported the generated Maven project to Eclipse workspace.
But errors appear: e.g.
import org.eclipse.jetty.server.HttpConfiguration;
*It seems Eclipse cannot find the jetty server classes. How to add these
to the Eclipse project?*
Does the creater of the Wicket Quick Start assumed that Jetty is already
installed on the machine?
/I installed it. However: what is the recommended way to make what jar
file available to a maven project to have jetty server classes
available? I would assume via the pom.xml but I doubt that is the case
here - the given pom.xml would contain it./
Or is there some special plugin for Eclipse (Photon)?
/Run-Jetty-Run?. I wasn't brave enough to try that./
I would love to get the Wicket Quick Start running.
I also tried Eclipse + Tomcat + Apache Wicket Maven Setup with Hello
World Example
<
http://digitalappconsultancy.com/site/eclipse-tomcat-apache-wicket-maven-setup-with-hello-world-example/>
but it seems that it is outdated. I was not able to install qwickie to
Eclipse as described.
I am using Eclipse Proton with Java 10.0.2 on Debian Stretch.
Any help appreciated
Rolf
Martin Grigorov
2018-10-04 08:22:55 UTC
Permalink
Hi,

I have answered you at StackOverflow:
https://stackoverflow.com/questions/52633234/apache-wicket-quick-start
Post by Rolf Schumacher
I was trying to start learning about Apache Wicket (as it looked like an
easy to use UI for Java) and because I like to work with Eclipse and
Maven. I also like to work with Tomcat, however, Wicket seems to prefer
Jetty at least in its tutorials. I do not know nothing about Jetty,
however should not take ages to learn.
I tried the Wicket Quick Start
<https://wicket.apache.org/start/quickstart.html.> and successfully
imported the generated Maven project to Eclipse workspace.
But errors appear: e.g.
import org.eclipse.jetty.server.HttpConfiguration;
*It seems Eclipse cannot find the jetty server classes. How to add these
to the Eclipse project?*
Does the creater of the Wicket Quick Start assumed that Jetty is already
installed on the machine?
/I installed it. However: what is the recommended way to make what jar
file available to a maven project to have jetty server classes
available? I would assume via the pom.xml but I doubt that is the case
here - the given pom.xml would contain it./
Or is there some special plugin for Eclipse (Photon)?
/Run-Jetty-Run?. I wasn't brave enough to try that./
I would love to get the Wicket Quick Start running.
I also tried Eclipse + Tomcat + Apache Wicket Maven Setup with Hello
World Example
<
http://digitalappconsultancy.com/site/eclipse-tomcat-apache-wicket-maven-setup-with-hello-world-example/>
but it seems that it is outdated. I was not able to install qwickie to
Eclipse as described.
I am using Eclipse Proton with Java 10.0.2 on Debian Stretch.
Any help appreciated
Rolf
Martijn Dashorst
2018-10-04 08:29:01 UTC
Permalink
Post by Rolf Schumacher
I was trying to start learning about Apache Wicket (as it looked like an
easy to use UI for Java) and because I like to work with Eclipse and
Maven. I also like to work with Tomcat, however, Wicket seems to prefer
Jetty at least in its tutorials. I do not know nothing about Jetty,
however should not take ages to learn.
It's not that we prefer Jetty over Tomcat, but rather that having a Start class
and a server configuration under our control for the quick start is important,
as one normally doesn't run into problems that way.
Post by Rolf Schumacher
I tried the Wicket Quick Start
<https://wicket.apache.org/start/quickstart.html.> and successfully
imported the generated Maven project to Eclipse workspace.
It would be great if you could tell us the particular version you picked. It
might be related to that specific version.
Post by Rolf Schumacher
But errors appear: e.g.
import org.eclipse.jetty.server.HttpConfiguration;
*It seems Eclipse cannot find the jetty server classes. How to add these
to the Eclipse project?*
Eclipse has a maven configuration plugin called M2E, which should import
everything that is in the POM. We have dependencies on Jetty added in
the quickstart, so it should work out of the box.

You have to generate the project with the quick start command line, and
then in Eclipse do "Import -> Existing Maven project". This will allow M2E
to download everything.
Post by Rolf Schumacher
Does the creater of the Wicket Quick Start assumed that Jetty is already
installed on the machine?
Nope. That is why we have the dependencies to Jetty in the POM so you
don't have to install Jetty.

Martijn

--
Become a Wicket expert, learn from the best: http://wicketinaction.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org

Loading...