[jetty-user] Re: Jetty 8 and Maven Jetty Plugin jetty:run-war not working

rowatt <[email protected]> Sun, 18 Mar 2012 19:48:40 -0700 (PDT)
Newsgroups gmane.comp.java.jetty.support
Message-ID <CB8CDB30.174E5%[email protected]>
Hi Jan,

Attached is the little tar gzip of the maven project with the
XyzWebApplicationInitializer code in it.

Thanks for looking at this issue,
Shane Rowatt
Architect
T
M
F
E
W+61 7 3252 1650
+61 401 550 697
+61 7 3252 1350
[email protected]
gcpgroup.com <http://www.gcpgroup.com/> GCP Brisbane
24 Chester Street
Newstead QLD 4006
Australia
GCP Australia Limited   |   Sydney   |   Brisbane   |   Singapore   |
London
Important Notice:
The information in this email and/or any of the attachments may contain
Confidential, Legally Privileged and/or Copyright material of GCP Australia
Limited or third parties.

If you are not an authorised recipient of this email, please contact GCP
Australia Limited immediately by return email or by telephone on +61 7 3252
1650 and delete the email from your system. We do not accept any liability
in connection with any computer virus, data corruption, interruption or any
damage generally as a result of transmission of this email.

On 19/03/12 12:41 PM, "Jan Bartel-3 [via Jetty]"
<[email protected]> wrote:

> Hi Rowatt, 
> 
> That message got a bit garbled - the "replace the pom with this" was
> missing, as was the java class.
> 
> Any chance you could generate the project then zip it and attach it?
> 
> thanks 
> Jan 
> 
> On 19 March 2012 11:54, rowatt <[hidden email]
> </user/SendEmail.jtp?type=node&node=4631872&i=0> > wrote:
> 
>> > Hi Jan, 
>> > 
>> > Below are the instructions for recreating the issue I see.
>> > 
>> > *Create a maven project:*
>> > 
>> > mvn archetype:generate -B -DarchetypeGroupId=org.apache.maven.archetypes
>> > -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.0
>> > -DgroupId=com.gcpgroup -DartifactId=gcp-jetty -Dversion=1.0
>> > 
>> > *Remove the sample App.java and AppTest.java from created project:*
>> > 
>> > cd gcp-jetty 
>> > rm ­f src/main/java/com/gcpgroup/App.java
>> > rm ­f src/test/java/com/gcpgroup/AppTest.java
>> > 
>> > *Replace the pom.xml with this:*
>> > 
>> > 
>> > 
>> > *Put the following java file in src/main/java/com/gcpgroup/*
>> > 
>> > 
>> > *Run the jetty:run command and grep for the test string:*
>> > 
>> > mvn clean jetty:run 2>&1 | grep @@@@
>> > 
>> > *You will see in stdout the following string which means
>> > XyzWebApplicationInitializer was called:*
>> > 
>> > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
>> > 
>> > *Run the jetty:run-war command and grep for the test string:*
>> > 
>> > mvn clean jetty:run-war 2>&1 | grep @@@@
>> > 
>> > *This command will not output the test string and hence
>> > XyzWebApplicationInitializer was not called.*
>> > 
>> > I hope this helps. Let me know if you need more information,
>> > 
>> > Thanks, Shane.
>> > 
>> > -- 
>> > View this message in context:
>> http://jetty.4.n6.nabble.com/Jetty-8-and-Maven-Jetty-Plugin-jetty-run-war-not
>> -working-tp4627356p4631715.html
>> > Sent from the Jetty Support mailing list archive at Nabble.com.
>> > 
>> > ---------------------------------------------------------------------
>> > To unsubscribe from this list, please visit:
>> > 
>> >    http://xircles.codehaus.org/manage_email
>> > 
>> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 
> 
> 
> If you reply to this email, your message will be added to the discussion
> below:
> http://jetty.4.n6.nabble.com/Jetty-8-and-Maven-Jetty-Plugin-jetty-run-war-not-
> working-tp4627356p4631872.html
> To unsubscribe from Jetty 8 and Maven Jetty Plugin jetty:run-war not working,
> click here 
> <http://jetty.4.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_co
> de&node=4627356&code=c3Jvd2F0dEBnY3Bncm91cC5jb218NDYyNzM1Nnw5NTc2NjI3MTI=> .
> NAML 
> <http://jetty.4.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=i
> nstant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-n
> abble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace
> &breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%
> 3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://jetty.4.n6.nabble.com/Jetty-8-and-Maven-Jetty-Plugin-jetty-run-war-not-working-tp4627356p4631885.html
Sent from the Jetty Support mailing list archive at Nabble.com.