Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 877117

Summary: errai cdi stock demo - bad url of the application
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Stefan Miklosovic <smikloso>
Component: Errai, ExamplesAssignee: Fred Bricon <fbricon>
Status: CLOSED CURRENTRELEASE QA Contact: Stefan Miklosovic <smikloso>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1.0CC: cbrock, csadilek, irooskov, jfuerth, kpiwko, mnovotny, oskutka, ppenicka, pslegr
Target Milestone: ER1   
Target Release: 2.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: errai-example jbds
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The <systemitem>errai-cdi-stock-demo</systemitem> quickstart application contained the <filename>jboss-web.xml</filename> file, which was left over from a different quickstart application and should not have been included. Consequently, an incorrect URL was accessed when the applicaton was deployed to a web server and displayed using the built-in browser in JBoss Developer Studio. The leftover <filename>jboss-web.xml</filename> file has been removed in this release, ensuring the application is now accessed at the correct URL and displayed successfully.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-14 14:53:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefan Miklosovic 2012-11-15 18:01:54 UTC
Description of problem:
After compiling the errai-cdi-demo-stock in the JBDS as Google -> GWT compile and deploying the application to the server (Run As -> Run on server), the url which embedded JBDS browser automatically opens after the deploying is "http://localhost:8080/errai-cdi-demo-stock/" which is not the entry point of the application - url "http://localhost:8080/cdi-quickstart-app/App.html" is.

Steps to Reproduce:
1. Import project
2. Google -> GWT compile
3. Run as -> Run on server
4. Embedded JBDS browser opens wrong URL address so user is unable to see the application - he sees error message instead.

Actual results:
Embedded browser opens the url http://localhost:8080/errai-cdi-demo-stock/ automatically.

Expected results:
Embedded browser opens the url http://localhost:8080/cdi-quickstart-app/App.html automatically.

Additional info:

Comment 2 Fred Bricon 2012-11-16 17:55:13 UTC
This is a tooling issue, should be tracked in JIRA : https://issues.jboss.org/browse/JBIDE-13094

Comment 3 JBoss JIRA Server 2012-11-16 17:59:28 UTC
Fred Bricon <fbricon> made a comment on jira JBIDE-13094

I don't believe we can make the "Run on server" action aware of GWT endpoints. [~rob.stryker], [~dgolovin]?

My advice is to add an index.html page in your quickstart, redirecting to the expected page.

Comment 4 mark yarborough 2012-11-19 14:47:05 UTC
Move to WFK 2.2 and release note for WFK 2.1 per 19-Nov triage call.

Comment 5 Jonathan Fuerth 2012-11-19 17:35:33 UTC
We can change the host page filenames as a quick fix (ERRAI-437) so that it works in the next release. Of course, this will only mask the bug that remains in the tooling. Users will still run into the real issue with their own projects.

Comment 6 JBoss JIRA Server 2012-11-20 08:24:58 UTC
Karel Piwko <kpiwko> made a comment on jira JBIDE-13094

I think that redirect via index.html is a nice workaround for future examples.

Comment 7 Isaac Rooskov 2012-11-20 22:58:18 UTC
Fantastic CCFR info, thanks :D

Comment 8 Christian Sadilek 2012-11-22 17:14:54 UTC
The problem in this particular case is a left-over jboss-web.xml which incorrectly sets the context path to cdi-quickstart-app. 

We deleted the jboss-web.xml now. The correct path is the one already opened in the embedded browser (/errai-cdi-demo-stock). So, after deleting all 
jboss-web.xml files (under /src/main/webapp/WEB-INF and eventually under /target), this example should work fine.

Comment 9 JBoss JIRA Server 2012-11-22 17:17:49 UTC
Christian Sadilek <csadilek> updated the status of jira ERRAI-437 to Resolved

Comment 10 JBoss JIRA Server 2012-11-22 17:17:49 UTC
Christian Sadilek <csadilek> made a comment on jira ERRAI-437

All our demos already have either a welcome page configured or and index.html which redirects to the host page. The original problem in the CDI stock demo was caused by a left-over jboss-web.xml file.

Comment 11 JBoss JIRA Server 2012-11-22 17:18:21 UTC
Christian Sadilek <csadilek> made a comment on jira ERRAI-437

All our demos already have either a welcome page configured or an index.html which redirects to the host page. The original problem in the CDI stock demo was caused by a left-over jboss-web.xml file.

Comment 12 Marek Novotny 2013-01-10 12:58:39 UTC
Pavel, please set status to MODIFIED, when Errai 2.2.0.Final-redhat-1 is ready.

Comment 13 JBoss JIRA Server 2013-02-19 15:16:55 UTC
Fred Bricon <fbricon> updated the status of jira JBIDE-13094 to Resolved

Comment 14 JBoss JIRA Server 2013-02-19 15:16:55 UTC
Fred Bricon <fbricon> made a comment on jira JBIDE-13094

Resolving as :
1/ the offending project(s) ha(s/ve) been fixed upstream
2/ the fix for JBIDE-13487 makes deploying Errai apps a breeze

Comment 15 Stefan Miklosovic 2013-02-19 15:54:41 UTC
Verified that demo is open well in JDBS 6.0.0.GA via embedded browser.

Comment 16 Petr Penicka 2013-03-27 14:40:12 UTC
Modified the Doc text from known issue to bug fix.

Comment 17 JBoss JIRA Server 2013-04-15 08:34:59 UTC
Jaroslav Jankovič <jjankovi> made a comment on jira JBIDE-13094

I tried to verify this, but I got stuck with deploying app on EAP 6.0:
{code}
10:20:58,266 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"errai-cdi-demo-stock.war\".component.\"org.jboss.as.weld.webtier.jsp.JspInitializationListener\".START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.naming.context.java.module.errai-cdi-demo-stock.errai-cdi-demo-stock.env.ErraiService Missing[jboss.naming.context.java.jboss.resources.ErraiService]","jboss.deployment.unit.\"errai-cdi-demo-stock.war\".component.\"org.apache.jasper.servlet.JspServlet\".START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"errai-cdi-demo-stock.war\".component.\"org.jboss.weld.environment.servlet.Listener\".START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"errai-cdi-demo-stock.war\".component.\"javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV\".START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"errai-cdi-demo-stock.war\".jboss.security.jacc Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"errai-cdi-demo-stock.war\".component.\"org.jboss.errai.bus.server.servlet.StandardAsyncServlet$3\".START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"errai-cdi-demo-stock.war\".component.\"org.jboss.errai.bus.server.servlet.DefaultBlockingServlet\".START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"errai-cdi-demo-stock.war\".component.\"org.apache.catalina.servlets.DefaultServlet\".START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"errai-cdi-demo-stock.war\".component.\"com.sun.faces.config.ConfigureListener\".START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"errai-cdi-demo-stock.war\".component.\"javax.faces.webapp.FacetTag\".START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"errai-cdi-demo-stock.war\".component.\"javax.servlet.jsp.jstl.tlv.ScriptFreeTLV\".START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"errai-cdi-demo-stock.war\".component.\"org.jboss.errai.bus.server.servlet.StandardAsyncServlet$1\".START Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"errai-cdi-demo-stock.war\".jndiDependencyService Missing[JBAS014861: <one or more transitive dependencies>]","jboss.web.deployment.default-host./errai-cdi-demo-stock Missing[JBAS014861: <one or more transitive dependencies>]"]}}}
{code}

Are there any additional steps for EAP 6/AS 7 to be able to deploy errai-cdi-stock-demo? Note that I tried fresh demo from [git repo|git://github.com/errai/errai.git] and also from "Complete Errai Distribution Package" from http://www.jboss.org/errai/Downloads.

Comment 19 JBoss JIRA Server 2013-04-15 11:05:46 UTC
Jaroslav Jankovič <jjankovi> made a comment on jira JBIDE-13094

Karel, I have just tried with AS 7.1.1:
{code}
ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.errai-cdi-demo-stock.errai-cdi-demo-stock.env.ErraiServicejboss.naming.context.java.jboss.resources.ErraiServiceMissing[jboss.naming.context.java.module.errai-cdi-demo-stock.errai-cdi-demo-stock.env.ErraiServicejboss.naming.context.java.jboss.resources.ErraiService]"]}}}
{code}

I really don't know, what's wrong.

Comment 20 JBoss JIRA Server 2013-04-15 11:08:59 UTC
Jaroslav Jankovič <jjankovi> made a comment on jira JBIDE-13094

If I get it, you say, there are no further steps when using demo (from git repo) on AS7?

Comment 22 JBoss JIRA Server 2013-04-15 12:10:55 UTC
Jaroslav Jankovič <jjankovi> updated the status of jira JBIDE-13094 to Closed

Comment 23 JBoss JIRA Server 2013-04-15 12:10:55 UTC
Jaroslav Jankovič <jjankovi> made a comment on jira JBIDE-13094

URL in browser is http://localhost:8080/errai-cdi-demo-stock/App.html. Verified on JBDS 7.0.0 Alpha2 and jboss-wfk-2.2.0 CR2

Comment 24 Karel Piwko 2013-05-14 14:53:56 UTC
Closed as CURRENTRELEASE, part of WFK 2.2.0 distributables.

Comment 25 JBoss JIRA Server 2013-11-06 20:56:23 UTC
Christian Sadilek <csadilek> updated the status of jira ERRAI-437 to Closed