Re: How to add Jetty server classes to Eclipse project?

2018-10-04 Thread Martijn Dashorst
On Thu, Oct 4, 2018 at 8:49 AM Rolf Schumacher  wrote:
>
> 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.

> I tried the Wicket Quick Start
>  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.

> 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.

> 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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to add Jetty server classes to Eclipse project?

2018-10-04 Thread Martin Grigorov
Hi,

I have answered you at StackOverflow:
https://stackoverflow.com/questions/52633234/apache-wicket-quick-start

On Thu, Oct 4, 2018 at 9:49 AM Rolf Schumacher  wrote:

> 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
>  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
>
>


Re: How to add Jetty server classes to Eclipse project?

2018-10-04 Thread Martin Terra
Typically something like


org.eclipse.jetty
jetty-webapp
${jetty.version}


**
Martin

to 4. lokak. 2018 klo 9.49 Rolf Schumacher (r...@august.de) kirjoitti:

> 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
>  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
>
>


How to add Jetty server classes to Eclipse project?

2018-10-04 Thread 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 
 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 
 
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