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, Examples | Assignee: | Fred Bricon <fbricon> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Stefan Miklosovic <smikloso> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.1.0 | CC: | 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
This is a tooling issue, should be tracked in JIRA : https://issues.jboss.org/browse/JBIDE-13094 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. Move to WFK 2.2 and release note for WFK 2.1 per 19-Nov triage call. 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. Karel Piwko <kpiwko> made a comment on jira JBIDE-13094 I think that redirect via index.html is a nice workaround for future examples. Fantastic CCFR info, thanks :D 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. Christian Sadilek <csadilek> updated the status of jira ERRAI-437 to Resolved 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. 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. Pavel, please set status to MODIFIED, when Errai 2.2.0.Final-redhat-1 is ready. Fred Bricon <fbricon> updated the status of jira JBIDE-13094 to Resolved 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 Verified that demo is open well in JDBS 6.0.0.GA via embedded browser. Modified the Doc text from known issue to bug fix. 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. 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. 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? Jaroslav Jankovič <jjankovi> updated the status of jira JBIDE-13094 to Closed 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 Closed as CURRENTRELEASE, part of WFK 2.2.0 distributables. Christian Sadilek <csadilek> updated the status of jira ERRAI-437 to Closed |