You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by "Ryan, Emmet (IE - Dublin)" <em...@deloitte.ie> on 2012/03/20 12:12:17 UTC

Attempting to run quickstart test app

OK, Maven seems to be playing nice now. I am able to connect Maven to the online repositories, and download the needed files. The test app compiles successfully.

However, now I am trying to run the webapp. I have tried to run from the command line using "mvn antrun:run".

The first splash screen shows up ok. When I click start, using port 8080, my browser opens a new window and attempts to download a file. The popup wants me to either save it or find a program to run it. Not sure what I should be selecting there?

Choosing a different port (8081) just gave me a "Cannot display page" error in my browser.

I also tried running it using the Java command:
C:\Users\emryan\My Documents\java isis\PipelineMgmt\myapp\webapp\target>java -ja
r myapp-webapp-1.0-SNAPSHOT.war

, which gave me the following error:
"no main manifest attribute, in myapp-webapp-1.0-SNAPSHOT.war"

Finally, I also tried running it from within Eclipse by right clicking the "quickstart-webapp.launch" and selecting runas quickstart-webapp. It seems to be working away in the console window, until it gets to this line:

10:38:09,298  [ResteasyDeployment   main       INFO ]  Deploying javax.ws.rs.core.Application: class org.apache.isis.viewer.json.viewer.JsonApplication
2012-03-20 10:38:09.418:INFO::Started SocketConnector@0.0.0.0:8080<mailto:SocketConnector@0.0.0.0:8080>

At which point it seems to freeze. I don't get any sort of screen/popup, it just seems like it's caught in some kind of loop. I left it run for 20 mins but didn't progress beyond that.

For each of these 3 methods tried, I ensured I am not on a proxy, and port 8080 is free and open. So not really sure where to go, 3 different methods and 3 different errors is what it looks like from here! As always, help is hugely appreciated :)

Regards,

Emmet.

***********************************************************************************************

Hmm, not sure.  What is host " iedub98", do you know?  My guess is that
your guest wifi is serving up DNS settings that somehow reference this host.

Your problem, as it stands, is with your interaction with Maven and your
network.  You should look into your Maven conf settings.xml (either in your
Maven installation, under the conf/ directory, or in ~/.m2/settings.xml if
you've created one).

The Maven ref page [1] may help; I'd be looking at mirrors and proxies.

If all else fails, pop down to your local starbucks!  After all, once
you've actually pulled the artifacts from Maven central repo, you can then
carry on working in Maven offline mode (-o flag)

Dan

[1]  http://maven.apache.org/settings.html

PS: I'm cc'ing to isis-users because this query lives better there;
isis-dev is for developers of Isis itself.  Thx.


Emmet Ryan
Analyst | Technology Integration
Deloitte & Touche
Deloitte & Touche, Earlsfort Terrace, Dublin 2, Ireland
Mobile: +353 (85) 119 5536
emryan@deloitte.ie<ma...@deloitte.ie> | www.deloitte.com/ie<http://www.deloitte.com/ie>

 
P Please consider the environment before printing this email

Voted one of the Best Workplaces in Ireland in 2011 for nine consecutive years and voted Gradirelands 'Most Popular Graduate Recruiter 2011’.

This email and any files transmitted with it are confidential and are intended solely for use by the addressee. Any unauthorised dissemination, distribution or copying of this message and any attachments is strictly prohibited. If you have received this email in error please notify the sender and delete the message. Any views or opinions presented in this email are solely those of the author and cannot be relied upon as being those of Deloitte & Touche. E-mail communications such as this cannot be guaranteed to be virus free, timely, secure or error free and we do not accept liability for any such matters or their consequences.

Re: Attempting to run quickstart test app

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
On 20 March 2012 11:12, Ryan, Emmet (IE - Dublin) <em...@deloitte.ie>wrote:

> OK, Maven seems to be playing nice now. I am able to connect Maven to the
> online repositories, and download the needed files. The test app compiles
> successfully.
>
> good-o.  Just to confirm, this is now on v0.2.0-incubating?  You can check
by looking at the project.version property in the parent pom.xml (approx
line 31)



> However, now I am trying to run the webapp. I have tried to run from the
> command line using "mvn antrun:run".
>
> The first splash screen shows up ok. When I click start, using port 8080,
> my browser opens a new window and attempts to download a file. The popup
> wants me to either save it or find a program to run it. Not sure what I
> should be selecting there?
>

My guess is that you're using Internet Explorer?  If so, what's happening
is that you're hitting the home page of the json viewer (the REST API), ie
http://localhost:8080.  This serves up a response of type application/json.
Internet Explorer is too dumb to know what to do with this, so it offers to
download it.

Try using Chrome, with the JsonView plugin installed.  Then you'll be able
to see things.


~~~
In terms of hitting the HTML viewer, what you must I guess not have noticed
on the splash screen is that is available at
http://localhost:8080/htmlviewer.  So try that URL.

NB: the 0.3.0-incubating, when we release it, I've improved the archetype
so that this stuff isn't quite so hard to discover.



>
> Choosing a different port (8081) just gave me a "Cannot display page"
> error in my browser.
>

You need to make sure that whatever port you've specified on the start page
is used in the browser.



>
> I also tried running it using the Java command:
> C:\Users\emryan\My Documents\java
> isis\PipelineMgmt\myapp\webapp\target>java -ja
> r myapp-webapp-1.0-SNAPSHOT.war
>
> , which gave me the following error:
> "no main manifest attribute, in myapp-webapp-1.0-SNAPSHOT.war"
>

You mistyped this.  There are two WAR files in the webapp/target... one is
the vanilla WAR file (eg as could be deployed in any servlet container, eg
Tomcat's webapp directory), the other - with suffix "-jetty-console.war" is
the one that has been got the extra Jetty files so that it is self-hosting.
 (This latter is the one that is run by mvn antrun:run - take a look at the
pom.xml in the webapp dir to see how this is done).



>
> Finally, I also tried running it from within Eclipse by right clicking the
> "quickstart-webapp.launch" and selecting runas quickstart-webapp. It seems
> to be working away in the console window, until it gets to this line:
>
> 10:38:09,298  [ResteasyDeployment   main       INFO ]  Deploying
> javax.ws.rs.core.Application: class
> org.apache.isis.viewer.json.viewer.JsonApplication
> 2012-03-20 10:38:09.418:INFO::Started SocketConnector@0.0.0.0:8080<mailto:
> SocketConnector@0.0.0.0:8080>
>
> At which point it seems to freeze. I don't get any sort of screen/popup,
> it just seems like it's caught in some kind of loop. I left it run for 20
> mins but didn't progress beyond that.
>


When you run from Eclipse, it'll start the webserver, but doesn't (unlike
the jetty console) automatically start a web browser for you.  So you'd
need to open up a browser and navigate directly  to
http://localhost:8080(for the REST API) or to
http://localhost:8080/htmlviewer (for the HTML viewer).





>
> For each of these 3 methods tried, I ensured I am not on a proxy, and port
> 8080 is free and open. So not really sure where to go, 3 different methods
> and 3 different errors is what it looks like from here! As always, help is
> hugely appreciated :)
>
> Let us know how you get on...

Dan



> Regards,
>
> Emmet.
>
>
> ***********************************************************************************************
>
> Hmm, not sure.  What is host " iedub98", do you know?  My guess is that
> your guest wifi is serving up DNS settings that somehow reference this
> host.
>
> Your problem, as it stands, is with your interaction with Maven and your
> network.  You should look into your Maven conf settings.xml (either in your
> Maven installation, under the conf/ directory, or in ~/.m2/settings.xml if
> you've created one).
>
> The Maven ref page [1] may help; I'd be looking at mirrors and proxies.
>
> If all else fails, pop down to your local starbucks!  After all, once
> you've actually pulled the artifacts from Maven central repo, you can then
> carry on working in Maven offline mode (-o flag)
>
> Dan
>
> [1]  http://maven.apache.org/settings.html
>
> PS: I'm cc'ing to isis-users because this query lives better there;
> isis-dev is for developers of Isis itself.  Thx.
>
>
> Emmet Ryan
> Analyst | Technology Integration
> Deloitte & Touche
> Deloitte & Touche, Earlsfort Terrace, Dublin 2, Ireland
> Mobile: +353 (85) 119 5536
> emryan@deloitte.ie<ma...@deloitte.ie> | www.deloitte.com/ie<
> http://www.deloitte.com/ie>
>
>
> P Please consider the environment before printing this email
>
> Voted one of the Best Workplaces in Ireland in 2011 for nine consecutive
> years and voted Gradirelands 'Most Popular Graduate Recruiter 2011’.
>
> This email and any files transmitted with it are confidential and are
> intended solely for use by the addressee. Any unauthorised dissemination,
> distribution or copying of this message and any attachments is strictly
> prohibited. If you have received this email in error please notify the
> sender and delete the message. Any views or opinions presented in this
> email are solely those of the author and cannot be relied upon as being
> those of Deloitte & Touche. E-mail communications such as this cannot be
> guaranteed to be virus free, timely, secure or error free and we do not
> accept liability for any such matters or their consequences.