[jbosstools-issues] [JBoss JIRA] (JBIDE-15143) Eclipse is not running newly created forge web project

Nick Boldt (JIRA) jira-events at lists.jboss.org
Mon Jul 8 10:36:25 EDT 2013


    [ https://issues.jboss.org/browse/JBIDE-15143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788190#comment-12788190 ] 

Nick Boldt edited comment on JBIDE-15143 at 7/8/13 10:36 AM:
-------------------------------------------------------------

*{color:red}Cannot reproduce.{color}* 

Here's what I did:

1. Unpack /home/nboldt/tmp/Eclipse_Bundles/eclipse-jee-kepler-RC2-linux-gtk-x86_64.tar.gz
2. Launch Eclipse at clean workspace: /home/nboldt/eclipse/workspace-clean43
3. Install these features (my best guess based on your list) from the JBDS 4.1 Beta2 dev milestone site [1] (or Eclipse Marketplace [2]), and restart when prompted: 

[1] http://download.jboss.org/jbosstools/updates/development/kepler/
[2] https://marketplace.eclipse.org/content/jboss-tools-kepler

!15143-installing.png!

4. Open Forge console (SHIFT-ALT-Q,Q,Forge or CTRL-3,Forge)

5. Run steps outlined above:

{code}
new-project --named mywebapp
scaffold setup --scaffoldType faces
{code}

Console output looks like this:

{code}
    _____                    
   |  ___|__  _ __ __ _  ___ 
   | |_ / _ \| `__/ _` |/ _ \  \\
   |  _| (_) | | | (_| |  __/  //
   |_|  \___/|_|  \__, |\___| 
                   |___/      

JBoss Forge, version [ 1.3.0.Final ] - JBoss, by Red Hat, Inc. [ http://forge.jboss.org ]
 ? Will you allow the Forge team to receive anonymous usage statistics for this instance of JBoss Forge? [y/N] y
[no project] workspace-clean43 $ new-project --named mywebapp
 ? Use [/home/nboldt/eclipse/workspace-clean43/mywebapp] as project directory? [Y/n] 
***SUCCESS*** Created project [mywebapp] in new working directory [/home/nboldt/eclipse/workspace-clean43/mywebapp]
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/pom.xml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/java
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/test/java
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/resources
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/test/resources
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/java/com/example/mywebapp
[mywebapp] mywebapp $ scaffold setup --scaffoldType faces
 ? Scaffold provider [faces] is not installed. Install it? [Y/n] 
 ? Facet [forge.maven.WebResourceFacet] requires packaging type(s) [war], but is currently [jar]. Update packaging? (Note: this could deactivate other plugins in your project.) [Y/n] 
***SUCCESS*** Installed [forge.maven.WebResourceFacet] successfully.
Use which version of 'jboss-javaee-6.0' ?

  1 - [org.jboss.spec:jboss-javaee-6.0:pom::1.0.0.Beta4]
  2 - [org.jboss.spec:jboss-javaee-6.0:pom::1.0.0.Beta5]
  3 - [org.jboss.spec:jboss-javaee-6.0:pom::1.0.0.Beta6]
  4 - [org.jboss.spec:jboss-javaee-6.0:pom::1.0.0.Beta7]
  5 - [org.jboss.spec:jboss-javaee-6.0:pom::1.0.0.CR1]
  6 - [org.jboss.spec:jboss-javaee-6.0:pom::1.0.0.Final]
  7 - [org.jboss.spec:jboss-javaee-6.0:pom::2.0.0.Beta1]
  8 - [org.jboss.spec:jboss-javaee-6.0:pom::2.0.0.CR1]
  9 - [org.jboss.spec:jboss-javaee-6.0:pom::2.0.0.Final]
  10 - [org.jboss.spec:jboss-javaee-6.0:pom::2.1.0.Beta1]
  11 - [org.jboss.spec:jboss-javaee-6.0:pom::3.0.0.Beta1]
  12 - [org.jboss.spec:jboss-javaee-6.0:pom::3.0.0.Final]
  13 - [org.jboss.spec:jboss-javaee-6.0:pom::3.0.1.Final]
  14 - [org.jboss.spec:jboss-javaee-6.0:pom::3.0.2.Final]*

 ? Choose an option by typing the number of the selection [*-default]  [0] 
***SUCCESS*** Installed [forge.spec.jpa] successfully.
***SUCCESS*** Installed [forge.spec.ejb] successfully.
***SUCCESS*** Installed [forge.spec.cdi] successfully.
***SUCCESS*** Installed [forge.spec.servlet] successfully.
***SUCCESS*** Installed [forge.spec.jsf.api] successfully.
***SUCCESS*** Installed [faces] successfully.
 ? Create scaffold in which sub-directory of web-root? (e.g. http://localhost:8080/mywebapp/DIR) [/] 
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/pom.xml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/resources/META-INF/persistence.xml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/WEB-INF/beans.xml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/WEB-INF/faces-config.xml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/favicon.ico
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/scaffold/paginator.xhtml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/scaffold/pageTemplate.xhtml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/index.html
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/index.xhtml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/error.xhtml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/add.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/bootstrap.css
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/false.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/favicon.ico
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/forge-logo.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/forge-style.css
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/remove.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/search.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/true.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/jboss-community.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/WEB-INF/web.xml
[mywebapp] mywebapp $ 
{code}

6. Select project and hit F5 (Refresh).

7. Right-click project and select Mark as Deployable (not required):

!15143-mark-deployable-not-needed.png!

8. Right-click project and select Run As > Run on Server. Pick your target server (I chose a previously downloaded AS 7.1.1.Final I had on disk)

!15143-pick-server.png!

9. In the Console view:

!15143-app-launched.png!

10. In the Servers view:

!15143-servers-view.png!


                
      was (Author: nickboldt):
    1. Unpack /home/nboldt/tmp/Eclipse_Bundles/eclipse-jee-kepler-RC2-linux-gtk-x86_64.tar.gz
2. Launch Eclipse at clean workspace: /home/nboldt/eclipse/workspace-clean43
3. Install these features (my best guess based on your list) from the JBDS 4.1 Beta2 dev milestone site [1] (or Eclipse Marketplace [2]), and restart when prompted: 

[1] http://download.jboss.org/jbosstools/updates/development/kepler/

[2] http://download.jboss.org/jbosstools/updates/development/kepler/

!15143-installing.png!

4. Open Forge console (SHIFT-ALT-Q,Q,Forge or CTRL-3,Forge)

5. Run steps outlined above. Console output looks like this:

{code}
    _____                    
   |  ___|__  _ __ __ _  ___ 
   | |_ / _ \| `__/ _` |/ _ \  \\
   |  _| (_) | | | (_| |  __/  //
   |_|  \___/|_|  \__, |\___| 
                   |___/      

JBoss Forge, version [ 1.3.0.Final ] - JBoss, by Red Hat, Inc. [ http://forge.jboss.org ]
 ? Will you allow the Forge team to receive anonymous usage statistics for this instance of JBoss Forge? [y/N] y
[no project] workspace-clean43 $ new-project --named mywebapp
 ? Use [/home/nboldt/eclipse/workspace-clean43/mywebapp] as project directory? [Y/n] 
***SUCCESS*** Created project [mywebapp] in new working directory [/home/nboldt/eclipse/workspace-clean43/mywebapp]
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/pom.xml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/java
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/test/java
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/resources
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/test/resources
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/java/com/example/mywebapp
[mywebapp] mywebapp $ scaffold setup --scaffoldType faces
 ? Scaffold provider [faces] is not installed. Install it? [Y/n] 
 ? Facet [forge.maven.WebResourceFacet] requires packaging type(s) [war], but is currently [jar]. Update packaging? (Note: this could deactivate other plugins in your project.) [Y/n] 
***SUCCESS*** Installed [forge.maven.WebResourceFacet] successfully.
Use which version of 'jboss-javaee-6.0' ?

  1 - [org.jboss.spec:jboss-javaee-6.0:pom::1.0.0.Beta4]
  2 - [org.jboss.spec:jboss-javaee-6.0:pom::1.0.0.Beta5]
  3 - [org.jboss.spec:jboss-javaee-6.0:pom::1.0.0.Beta6]
  4 - [org.jboss.spec:jboss-javaee-6.0:pom::1.0.0.Beta7]
  5 - [org.jboss.spec:jboss-javaee-6.0:pom::1.0.0.CR1]
  6 - [org.jboss.spec:jboss-javaee-6.0:pom::1.0.0.Final]
  7 - [org.jboss.spec:jboss-javaee-6.0:pom::2.0.0.Beta1]
  8 - [org.jboss.spec:jboss-javaee-6.0:pom::2.0.0.CR1]
  9 - [org.jboss.spec:jboss-javaee-6.0:pom::2.0.0.Final]
  10 - [org.jboss.spec:jboss-javaee-6.0:pom::2.1.0.Beta1]
  11 - [org.jboss.spec:jboss-javaee-6.0:pom::3.0.0.Beta1]
  12 - [org.jboss.spec:jboss-javaee-6.0:pom::3.0.0.Final]
  13 - [org.jboss.spec:jboss-javaee-6.0:pom::3.0.1.Final]
  14 - [org.jboss.spec:jboss-javaee-6.0:pom::3.0.2.Final]*

 ? Choose an option by typing the number of the selection [*-default]  [0] 
***SUCCESS*** Installed [forge.spec.jpa] successfully.
***SUCCESS*** Installed [forge.spec.ejb] successfully.
***SUCCESS*** Installed [forge.spec.cdi] successfully.
***SUCCESS*** Installed [forge.spec.servlet] successfully.
***SUCCESS*** Installed [forge.spec.jsf.api] successfully.
***SUCCESS*** Installed [faces] successfully.
 ? Create scaffold in which sub-directory of web-root? (e.g. http://localhost:8080/mywebapp/DIR) [/] 
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/pom.xml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/resources/META-INF/persistence.xml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/WEB-INF/beans.xml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/WEB-INF/faces-config.xml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/favicon.ico
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/scaffold/paginator.xhtml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/scaffold/pageTemplate.xhtml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/index.html
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/index.xhtml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/error.xhtml
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/add.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/bootstrap.css
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/false.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/favicon.ico
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/forge-logo.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/forge-style.css
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/remove.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/search.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/true.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/resources/jboss-community.png
Wrote /home/nboldt/eclipse/workspace-clean43/mywebapp/src/main/webapp/WEB-INF/web.xml
[mywebapp] mywebapp $ 
{code}

6. Right-click project and select Mark as Deployable (not required):

!15143-mark-deployable-not-needed.png!

7. Right-click project and select Run As > Run on Server. Pick your target server (I chose a previously downloaded AS 7.1.1.Final I had on disk)

!15143-pick-server.png!

8. In the Console view:

!15143-app-launched.png!

9. In the Servers view:

!15143-servers-view.png!

                  
> Eclipse is not running newly created forge web project
> ------------------------------------------------------
>
>                 Key: JBIDE-15143
>                 URL: https://issues.jboss.org/browse/JBIDE-15143
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: forge
>         Environment: Windows XP, Eclipse Kepler, Forge 1.3.2, Maven 3
>            Reporter: Rajmahendra Hegde
>         Attachments: 15143-app-launched.png, 15143-installing.png, 15143-mark-deployable-not-needed.png, 15143-pick-server.png, 15143-servers-view.png
>
>
> I created a new forge project in Eclipse forge plugin
> run scaffold to create a JSF project and when i right click the project i don't see Run as Server. I see a option of make as deplorable . its also not working. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list