Hi,
I’m trying to use vaadin flow 14 in my existing project which use ManagedBean, ejb, hibernate and thrinidaad on the front side with jdk 1.8 and wildfly 18.
My project has two module.
- bar-java module
- bar-web module
I wanna use just vaadin-java.
After adding dependency to the bar-java mudule’s pom file, I did create a new directory as vaadin under bar-java module and created the first vaadin view file as ParentView.java.
after running the project, I get the following almost at the begin and at the end the popup of intellij ide as:
Cannot open url. please check this url is correct:
Connected to server
[2020-02-24 12:05:49,305]
Artifact bar-web:war: Artifact is being deployed, please wait...
12:05:49,398 INFO [org.jboss.as.server.deployment]
(MSC service thread 1-5) WFLYSRV0027: Starting deployment of "bar-web-1.0.92-SNAPSHOT.war" (runtime-name: "bar-web-1.0.92-SNAPSHOT.war")
12:05:59,186 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-6) WFLYSRV0059: Class Path entry yuicompressor-2.4.8.jar in /C:/Development/servers/intellij/wildfly-18.0.1.Final/bin/content/bar-web-1.0.92-SNAPSHOT.war/WEB-INF/lib/vaadin-sass-compiler-0.9.13.jar does not point to a valid jar for a Class-Path reference.
12:05:59,186 WARN [org.jboss.as.server.deployment]
(MSC service thread 1-6) WFLYSRV0059: Class Path entry js-1.7R2.jar in /C:/Development/servers/intellij/wildfly-18.0.1.Final/bin/content/bar-web-1.0.92-SNAPSHOT.war/WEB-INF/lib/vaadin-sass-compiler-0.9.13.jar does not point to a valid jar for a Class-Path reference.
12:05:59,727 INFO [org.jboss.as.jpa]
(MSC service thread 1-1) WFLYJPA0002: Read persistence.xml for default
12:06:00,561 INFO [org.infinispan.factories.GlobalComponentRegistry]
(MSC service thread 1-1) ISPN000128: Infinispan version: Infinispan 'Infinity Minus ONE +2' 9.4.16.Final
12:06:00,799 INFO [org.jboss.as.jpa]
(ServerService Thread Pool -- 3) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'bar-web-1.0.92-SNAPSHOT.war#default'
12:06:00,833 INFO [org.hibernate.jpa.internal.util.LogHelper]
(ServerService Thread Pool -- 3) HHH000204: Processing PersistenceUnitInfo [
name: default
...]
End of run log:
13:42:21,503 INFO [org.wildfly.extension.undertow]
(ServerService Thread Pool -- 76) WFLYUT0021: Registered web context: '/bar' for server 'default-server'
[2020-02-24 01:42:21,595]
Artifact bar-web:war: Artifact is deployed successfully
[2020-02-24 01:42:21,595]
Artifact bar-web:war: Deploy took 26,455 milliseconds
13:42:21,595 INFO [org.jboss.as.server]
(management-handler-thread - 1) WFLYSRV0010: Deployed "bar-web-1.0.92-SNAPSHOT.war" (runtime-name : "bar-web-1.0.92-SNAPSHOT.war")
13:42:21,694 WARN [com.vaadin.flow.server.DefaultDeploymentConfiguration]
(default task-1)
====================================================================
Vaadin is running in DEBUG MODE.
In order to run your application in production mode and disable debug features, you should enable it by setting the servlet init parameter productionMode to true.
See https://vaadin.com/docs/v14/flow/production/tutorial-production-mode-basic.html for more information about the production mode.
====================================================================
13:42:21,744 INFO [SessionInformationListener]
(default task-1) Sessie 'gFLRQ9nM9U-717IYsTrntuvzqiqI2ieIuLd_HoZl' created
13:42:21,744 INFO [SessionInformationListener]
(default task-1) Sessie 'YaaT6GCW08dCs7YgPNPNEy4CW7yiPtGFLQ4UR0dF' created
13:42:21,744 INFO [SessionInformationListener]
(default task-1) Sessie '1sAdx4GvawWQFybhrS0leJy4A7idz60svGUn49Md' created
13:42:21,744 INFO [SessionInformationListener]
(default task-1) Sessie 'vUZOjJS_DtmYHVqiW91j7BsWnvzGgR9jS4XNLRO4' created
13:42:21,744 INFO [SessionInformationListener]
(default task-1) Sessie 'yI68bXGNL8OFT12qjzIuGo0rvNlntiOoLMKXNG1z' created
13:42:21,744 INFO [SessionInformationListener]
(default task-1) Sessie 'WjIhVr5g9kQAPYzxnNRb9Pqhh9llnuUezDYC-2-b' created
13:42:21,744 INFO [SessionInformationListener]
(default task-1) Sessie 'U3JQYttYIaXrrpS4cffpVHWF5JCmouIpZq_-uCYg' created
13:42:21,761 INFO [SessionInformationListener]
(default task-1) Sessie 'ojGQ4DJkuYJFRkPZ9qHPRVGAJriyzS1dTnAcRR0_' created
13:42:21,761 INFO [SessionInformationListener]
(default task-1) Sessie '-dQB90SLEMcNpRiw37F_aUzUdLyQjDwWRDLayc92' created
13:42:21,761 INFO [SessionInformationListener]
(default task-1) Sessie '2l8hHyzfPBonhVGAvHW2ME3OVPOcbUbY5uKqmbd5' created
13:42:21,767 INFO [SessionInformationListener]
(default task-1) Sessie 'rKOPQ8kMq27Q9Fc4vACoKchd7W-gF0oXmwnKg8A8' created
13:42:21,768 INFO [SessionInformationListener]
(default task-1) Sessie 'nhyDoDGbd_9o01ICsr_NKXi7aqImMrdvEnybuucQ' created
13:42:21,770 INFO [SessionInformationListener]
(default task-1) Sessie '7bCMsyM_ixn7rbcfegmeWrOsDKglPQnOCVUBME4K' created
13:42:21,770 INFO [SessionInformationListener]
(default task-1) Sessie '9rbuF7SVMAwh6_3OTs2agHJEKe9UFId2PL6rsjtO' created
13:42:21,770 INFO [SessionInformationListener]
(default task-1) Sessie 'QW18-_wQQExcYUWlyZ1KGi_EC6ZI2mve6y48DjKO' created
13:42:21,770 INFO [SessionInformationListener]
(default task-1) Sessie 'KTNMTBoL1ycl7WibdHtX9xtIKgX1a2lMJhNZmy3d' created
13:42:21,770 INFO [SessionInformationListener]
(default task-1) Sessie 'nIznidyHL3Tua-rfQOEG48qTLz6f6QeHpgf0nwdJ' created
13:42:21,770 INFO [SessionInformationListener]
(default task-1) Sessie 'vJVXDMLj0PcoNiLpGGKsHvnEYl-QvG-sTGCgncoB' created
13:42:21,778 INFO [SessionInformationListener]
(default task-1) Sessie 'AgYm7lNRAzfP7mAtxKTNFXyR2yfOSGE8tm7V1-xx' created
13:42:21,778 INFO [SessionInformationListener]
(default task-1) Sessie 'kdaem--KsR5H5gLQqqQnS57ledgvXmFTVkf92yj6' created
13:42:22,290 INFO [SessionInformationListener]
(default task-1) Sessie '0juVDqyvJ7Wmbi7PPgg7TreqGqp3QZU05WCPZ0bf' created
13:42:22,290 INFO [SessionInformationListener]
(default task-1) Sessie 'px-ZTH0pNNsKqUNgJrTKLjK_IBZeIUE2tg0Bvhfl' created
13:42:22,290 INFO [SessionInformationListener]
(default task-1) Sessie 'FjcqbXnkhpnFsQM-T6xgjdk3_GH1AnSvcrG45aqb' created
13:42:22,309 INFO [SessionInformationListener]
(default task-1) Sessie 'EkMsIW5xdW_t7Wyw9gOvSApXexiKba600mE1LMm4' created
13:42:22,309 INFO [SessionInformationListener]
(default task-1) Sessie 'rgmIN-YLB13w7R8LS5V7pCCR7AGe3MJUS9japV99' created
13:42:22,309 INFO [SessionInformationListener]
(default task-1) Sessie 'WAfCMkHTCErsjeZfBkQGvGsVhvi8SAOsoSoIWiLu' created
13:42:22,309 INFO [SessionInformationListener]
(default task-1) Sessie 'Oj3r5TrXB0sAiauaeJX9MzoMhaPEQuNYi0WlIuDR' created
13:42:22,309 INFO [SessionInformationListener]
(default task-1) Sessie '2YAZJ8BUw5R5EQjOVkdGwDb4v5ioWZFVcK8_cvRN' created
13:42:22,309 INFO [SessionInformationListener]
(default task-1) Sessie '3ttEu3eLGHs4Gl7sl7_uqiVRnguSfwjUf0pMb9cM' created
13:42:22,309 INFO [SessionInformationListener]
(default task-1) Sessie 'Ux4Se8FY7rnWHGZbcTUPhe_DwLDKExL_O1PG46TT' created
13:42:22,309 INFO [SessionInformationListener]
(default task-1) Sessie 'n5sH12DF-tLRjH7cwRZJogK_Nvh-Ozh7icK2ksq_' created
13:42:22,309 INFO [SessionInformationListener]
(default task-1) Sessie 'cAq0AH5dG2N0BuIBp71MFdJvShkRGcz17P8wgaZ9' created
13:42:22,309 INFO [SessionInformationListener]
(default task-1) Sessie 'KD10djYmkGh1L9DRqdjO_GP5ejcLrbpSPa8fWAZX' created
13:42:22,326 INFO [SessionInformationListener]
(default task-1) Sessie 'sQtmabwEHCGhNvycp2_AYtgaEqKBj-BhqNNuqZTy' created
13:42:22,326 INFO [SessionInformationListener]
(default task-1) Sessie 'QIJTz-VNq3gG0zQ9GHjr35YIEr_2odpqdzqRHZwz' created
13:42:22,326 INFO [SessionInformationListener]
(default task-1) Sessie '0rYmFiYEbjJZs7BIToxPqdU4X6b7o4k5gBvRNeQZ' created
13:42:22,326 INFO [SessionInformationListener]
(default task-1) Sessie '0kk7ijpdlYsaJF0ANyzSCqh_rgkgWhkI1SfTFt2q' created
13:42:22,326 INFO [SessionInformationListener]
(default task-1) Sessie 'OqohoT5rPNl3_0fSHHjxBdbPiwtDuOWjbvo66fLU' created
13:42:22,326 INFO [SessionInformationListener]
(default task-1) Sessie '5MFfaIwU7y902q5VQ8D74OBKIW2gm8DFr-JnG2DX' created
13:42:22,326 INFO [SessionInformationListener]
(default task-1) Sessie 'UVDsj3Ff0idx7gydi0eCUrnXSqxfHiYYl45w14wb' created
13:42:22,844 INFO [SessionInformationListener]
(default task-1) Sessie 'Tdni4nthiYL5kKf8olgcjGA0gaTV223HynDVSK92' created
13:42:22,844 INFO [SessionInformationListener]
(default task-1) Sessie 'sBnFwKAjrFNhjDvMkQ0f_DSaOkPjng2LG0Xg4JeI' created
13:42:22,844 INFO [SessionInformationListener]
(default task-1) Sessie 'k0gV43JLLyIXBeo9LULhZLRj2qvb_SrV_ukA00Uo' created
13:42:22,844 INFO [SessionInformationListener]
(default task-1) Sessie 'ftRLcAWCUMyvjj20sYQzudJOmF237eCcvjbBDsnj' created
13:42:22,844 INFO [SessionInformationListener]
(default task-1) Sessie 'BcU_GwFD_XTpJtBcallROzcbqYRytduOyTIOo6hi' created
13:42:22,844 INFO [SessionInformationListener]
(default task-1) Sessie 't7e7b46wmtKDgAohDW2FirnUs-KQdTv6VmClmhxF' created
13:42:22,861 INFO [SessionInformationListener]
(default task-1) Sessie 'ZhuU-azZQT-xbIwTYc_rH21yXYzHXNLUwEOhYN39' created
13:42:22,862 INFO [SessionInformationListener]
(default task-1) Sessie '0e3gj_GvdrbPnL8TnRbDKivhE5O5mKGotEHibGvi' created
13:42:22,862 INFO [SessionInformationListener]
(default task-1) Sessie 'EXx3hB0Poh5wO14vdkQR_c4twnqx-aB_SmDFp2D3' created
13:42:22,862 INFO [SessionInformationListener]
(default task-1) Sessie 'oeFFZGja7XO08BtGNutaOh8WQ4pRf1ufoll44CEv' created
13:42:22,862 INFO [SessionInformationListener]
(default task-1) Sessie 'lfxN2VDy_X7JAIqlCeU1SC-g1UC0yd2wWUIyBgS6' created
13:42:22,862 INFO [SessionInformationListener]
(default task-1) Sessie 'AL06iFoj1skKnG8vJfakHS814euTad5x83hz5laC' created
13:42:22,862 INFO [SessionInformationListener]
(default task-1) Sessie '0sSTffATlZzi_iZjXfgv8D4mWL7fXBVoRmkXVK06' created
13:42:22,862 INFO [SessionInformationListener]
(default task-1) Sessie '75SVW-KAEAljvA6qwx8i1mXA8y7NfCG5g-gfwb6D' created
13:42:22,862 INFO [SessionInformationListener]
(default task-1) Sessie '7aA0TImt_1lKUlf5iJ3O26bRsxC-mxIDp4HMIPZV' created
13:42:22,862 INFO [SessionInformationListener]
(default task-1) Sessie '5UQlpcSHFu75es_7pnMheatm1C_lEMUALB7YxuP7' created
13:42:22,862 INFO [SessionInformationListener]
(default task-1) Sessie 'Mx9quWFXdUXTzbWt31VQGv8k6_cuNpoaAZZyWtle' created
13:42:22,878 INFO [SessionInformationListener]
(default task-1) Sessie 'sxY3L24pzLL52V7v8egsnE3lLRaAPhSY-i5bAlDA' created
13:42:22,878 INFO [SessionInformationListener]
(default task-1) Sessie 'yBsDUgGy8oOGKw5kEZoD6mRlKz2rEAY5k569nga4' created
13:42:22,878 INFO [SessionInformationListener]
(default task-1) Sessie '9zmBHhNAy0mrzbwybquHdgs0DRxQY_5PEAg033L2' created
13:46:53,528 INFO [SessionInformationListener]
(default task-4) Sessie 'ZAX9-3j6XvEory-2fmi-lutHg-9MVoAG_mu7xRKm' created
13:47:36,009 INFO [SessionInformationListener]
(default task-2) Sessie 'Pmb_ZRBJdzGkTH0Q_9tnaIwDm19AWH6g9YtLorK8' created
13:47:36,011 INFO [SessionInformationListener]
(default task-2) Sessie 'JZD5uJJJEAJBP0WW6hJQBhIEiDMUzpeiepEMNUj9' created
13:47:36,014 INFO [SessionInformationListener]
(default task-2) Sessie 'An7r2F8TTsKXOK1qGY2SoMNKO5zQkPERSnWMMp62' created
13:47:36,016 INFO [SessionInformationListener]
(default task-2) Sessie 'stxaxXFbpV-P2rdmYh0fpRxsWo9HMX2A2qP0pAvS' created
13:47:36,016 INFO [SessionInformationListener]
(default task-2) Sessie '3cK83rbVgC0fPr-hybjUXhuH6EG7gXclZ6Ngjzh0' created
13:47:36,020 INFO [SessionInformationListener]
(default task-2) Sessie 'a4eLGXwHuXmZIB-rmJYj72JgfDdlSuwmGjz1UNg8' created
13:47:36,022 INFO [SessionInformationListener]
(default task-2) Sessie '0EEEP5OhjAWLPj0FmK50milXfZg-p7GohfVt7GVJ' created
13:47:36,023 INFO [SessionInformationListener]
(default task-2) Sessie 'eA8ST_MU8DLiRRCIv70AaLacy0S4a9RuUSx5nRas' created
13:47:36,023 INFO [SessionInformationListener]
(default task-2) Sessie 'WxA3QR-AZ_900fMbj4QPGPrcfo-C-OiLpHWMncw8' created
13:47:36,023 INFO [SessionInformationListener]
(default task-2) Sessie 'vlaH1e3ZWB7gweYFPxyyFblguqqDXbZQkpgY_WSg' created
13:47:36,031 INFO [SessionInformationListener]
(default task-2) Sessie 'rtl_1lWmHD0VYtCVbT6oeOz669laRQsQAzJWDkTn' created
13:47:36,033 INFO [SessionInformationListener]
(default task-2) Sessie 'q22UFYXs5q2svvR2_l4lmJpBvLqCWQYgFtu3TIwv' created
13:47:36,035 INFO [SessionInformationListener]
(default task-2) Sessie 'Z77TxHKhAVOD9dIJeC1_z5j2HYfWhTxNOFMo2vVB' created
13:47:36,037 INFO [SessionInformationListener]
(default task-2) Sessie '2J_nJ4TlIVo8A5E7RDDSnjTzhqUvmYRRx8oHmkvS' created
13:47:36,039 INFO [SessionInformationListener]
(default task-2) Sessie '2Q0xytbwLgYRI3ZaREsdJE4lNRJwZAJ7C09d3E3g' created
13:47:36,042 INFO [SessionInformationListener]
(default task-2) Sessie 'l92OZLRjHaRSthSZcwoWLJdBiFEGVgOEVYKIpbhw' created
13:47:36,044 INFO [SessionInformationListener]
(default task-2) Sessie 'TPcqxWT3T5rMOdYErvEQFn1HzR2v04ntQN3_UsdB' created
13:47:36,046 INFO [SessionInformationListener]
(default task-2) Sessie 'QsRzWmOLtX3jKqvYrIn9T2qfdYwkx6rG-Nn4vVgy' created
13:47:36,049 INFO [SessionInformationListener]
(default task-2) Sessie 'HBTgxd9MSgMBIrd4XBM97JuYxvEBlCG88L6SNQE1' created
13:47:36,051 INFO [SessionInformationListener]
(default task-2) Sessie '_dsSCvK4Uvi5341vhZyH7wtGPhZD_sJoXz7EWngn' created
13:47:36,053 INFO [SessionInformationListener]
(default task-2) Sessie 'gYX7rbEnLWJPkp4cQfwqQQUyCXdyoZ2z2VUMOSzb' created
when I go to the url I get the following:
The page isn’t redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies.
ParentView.java
@Route("parent")
public class ParentView extends AppLayout implements RouterLayout, BeforeEnterObserver, BeforeLeaveObserver, AfterNavigationObserver {
private transient Logger logger = Logger.getLogger(this.getClass().getName());
@PersistenceContext
private EntityManager manager;
@Resource(mappedName="java:/barDS")
private javax.sql.DataSource mydb;
@EJB
AflbarLijstRemote aflbarLijst;
private Grid<AflbarEntity> aflbarGrid;
public ParentView() {
setId("aflbarGrid-view");
// Configure Grid
aflbarGrid = new Grid<>();
aflbarGrid.addThemeVariants(GridVariant.LUMO_NO_BORDER);
aflbarGrid.setHeightFull();
aflbarGrid.addColumn(AflbarEntity::getName).setHeader("Name");
aflbarGrid.addColumn(AflbarEntity::getNummer).setHeader("Nummer");
aflbarGrid.addColumn(AflbarEntity::getMutual).setHeader("Mutual");
aflbarGrid.addColumn(AflbarEntity::getIndJaa).setHeader("IndJaa");
aflbarGrid.addColumn(AflbarEntity::getIndMaan).setHeader("IndMaan");
aflbarGrid.addColumn(AflbarEntity::getBrcode).setHeader("Brcode");
// add to div
Div wrapper = new Div();
wrapper.setId("wrapper");
wrapper.setWidthFull();
wrapper.add(aflbarGrid);
addToDrawer(wrapper);
}
@Override
public void beforeEnter(BeforeEnterEvent beforeEnterEvent) {
}
@Override
public void beforeLeave(BeforeLeaveEvent beforeLeaveEvent) {
}
@Override
public void afterNavigation(AfterNavigationEvent afterNavigationEvent) {
SearchCriteria criteria = new SearchCriteria();
criteria.setYear(2019);
criteria.setMonth(12);
aflbarGrid.setItems(aflbarLijst.SearchAflbarEntities(criteria));
}
}