iDempiere. Erro ao executar server.product no eclipse


#1

Olá pessoal,

Estou seguindo este tutorial para instalar o iDempiere para desenvolvimento: http://wiki.idempiere.org/en/Installing_iDempiere
Porém ao invés do repositório oficial do iDempiere estou utilizando o repositório da kenos, na branch kenos. Consegui efetuar a materialização do projeto e consertar as referências de lib que estavam quebradas. Estou conseguindo executar a versão desktop, porém quando tento executar a versão web o console do eclipse exibe o seguinte erro:

mai 21, 2018 5:44:36 PM org.compiere.util.Language getLanguage
INFORMAÇÕES: Adding Language=pt, Country=BR, Locale=pt_BR
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://199.fwk1828757853:1/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://199.fwk1828757853:2/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.JDK14LoggerFactory]
mai 21, 2018 5:44:37 PM org.eclipse.jetty.util.log.Log initialized
INFORMAÇÕES: Logging initialized @10843ms
mai 21, 2018 5:44:37 PM org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper startJettyAtJettyHome
INFORMAÇÕES: Configuring the default jetty server with [file:/home/bmelocarvalho/iDempiereWorkspace7/idempiere/jettyhome/etc/jetty.xml, file:/home/bmelocarvalho/iDempiereWorkspace7/idempiere/jettyhome/etc/jetty-deployer.xml, file:/home/bmelocarvalho/iDempiereWorkspace7/idempiere/jettyhome/etc/jetty-ssl.xml, file:/home/bmelocarvalho/iDempiereWorkspace7/idempiere/jettyhome/etc/jetty-ssl-context.xml, file:/home/bmelocarvalho/iDempiereWorkspace7/idempiere/jettyhome/etc/jetty-http.xml, file:/home/bmelocarvalho/iDempiereWorkspace7/idempiere/jettyhome/etc/jetty-alpn.xml, file:/home/bmelocarvalho/iDempiereWorkspace7/idempiere/jettyhome/etc/jetty-http2.xml, file:/home/bmelocarvalho/iDempiereWorkspace7/idempiere/jettyhome/etc/jetty-https.xml]
mai 21, 2018 5:44:37 PM org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper startJettyAtJettyHome
INFORMAÇÕES: JETTY.HOME=/home/bmelocarvalho/iDempiereWorkspace7/idempiere/jettyhome
mai 21, 2018 5:44:37 PM org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper startJettyAtJettyHome
INFORMAÇÕES: JETTY.BASE=/home/bmelocarvalho/iDempiereWorkspace7/idempiere/jettyhome
!SESSION 2018-05-21 17:44:27.766 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_171
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=pt_BR
Framework arguments: -product org.adempiere.server.server_product
Command-line arguments: -product org.adempiere.server.server_product -data /home/bmelocarvalho/iDempiereWorkspace7/idempiere/…/runtime-server.product -dev file:/home/bmelocarvalho/iDempiereWorkspace7/idempiere/.metadata/.plugins/org.eclipse.pde.core/server.product/dev.properties -os linux -arch x86_64 -consoleLog -console

!ENTRY org.eclipse.jetty.osgi.boot 4 0 2018-05-21 17:44:38.608
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.jetty.osgi.boot.JettyBootstrapActivator.start() of bundle org.eclipse.jetty.osgi.boot.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/alpn/ALPN$ServerProvider
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:272)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:632)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:588)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:540)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:527)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:320)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructors(Class.java:1651)
at org.eclipse.jetty.util.TypeUtil.construct(TypeUtil.java:567)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:787)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1233)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1138)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.access$500(XmlConfiguration.java:274)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1366)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1341)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:704)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:358)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:259)
at org.eclipse.jetty.osgi.boot.internal.serverfactory.ServerInstanceWrapper.configure(ServerInstanceWrapper.java:172)
at org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper.startJettyAtJettyHome(DefaultJettyAtJettyHomeHelper.java:179)
at org.eclipse.jetty.osgi.boot.JettyBootstrapActivator.start(JettyBootstrapActivator.java:92)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
… 12 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.alpn.ALPN$ServerProvider cannot be found by org.eclipse.jetty.alpn.server_9.3.10.v20160621
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:382)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 47 more
Root exception:
java.lang.NoClassDefFoundError: org/eclipse/jetty/alpn/ALPN$ServerProvider
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:272)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:632)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:588)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:540)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:527)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:324)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:320)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructors(Class.java:1651)
at org.eclipse.jetty.util.TypeUtil.construct(TypeUtil.java:567)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.newObj(XmlConfiguration.java:787)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.itemValue(XmlConfiguration.java:1233)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.value(XmlConfiguration.java:1138)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.access$500(XmlConfiguration.java:274)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1366)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration$AttrOrElementNode.getList(XmlConfiguration.java:1341)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.call(XmlConfiguration.java:704)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:417)
at org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure(XmlConfiguration.java:358)
at org.eclipse.jetty.xml.XmlConfiguration.configure(XmlConfiguration.java:259)
at org.eclipse.jetty.osgi.boot.internal.serverfactory.ServerInstanceWrapper.configure(ServerInstanceWrapper.java:172)
at org.eclipse.jetty.osgi.boot.internal.serverfactory.DefaultJettyAtJettyHomeHelper.startJettyAtJettyHome(DefaultJettyAtJettyHomeHelper.java:179)
at org.eclipse.jetty.osgi.boot.JettyBootstrapActivator.start(JettyBootstrapActivator.java:92)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:771)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:764)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
at org.eclipse.osgi.container.Module.doStart(Module.java:571)
at org.eclipse.osgi.container.Module.start(Module.java:439)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.alpn.ALPN$ServerProvider cannot be found by org.eclipse.jetty.alpn.server_9.3.10.v20160621
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:382)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 47 more
osgi> *** 2018-05-21 17:44:40.064 idempiere Log (ConsoleHandler) ***
17:44:40.064 Adempiere.startup: iDempiere® Release 4.1_2016-10-31 -Smart Suite ERP, CRM and SCM- © 1999-2016 iDempiere®; Implementation: iDempiere - Supported by iDempiere community [1]
17:44:40.075 Ini.loadProperties: /home/bmelocarvalho/iDempiereWorkspace7/idempiere/idempiere.properties #28 [1]
17:44:43.786-----------> ServiceLoader: Service loader could not load ‘META-INF/services/com.hazelcast.instance.NodeExtension’ It may be empty or does not exist. [32]
17:44:43.823-----------> ServiceLoader: Service loader could not load ‘META-INF/services/com.hazelcast.PortableHook’ It may be empty or does not exist. [32]
17:44:43.826-----------> ServiceLoader: Service loader could not load ‘META-INF/services/com.hazelcast.DataSerializerHook’ It may be empty or does not exist. [32]
17:44:43.863-----------> ServiceLoader: Service loader could not load ‘META-INF/services/com.hazelcast.SerializerHook’ It may be empty or does not exist. [32]
17:44:44.739-----------> Node: [192.168.3.106]:5701 [adempiere.idempiere/localhost] [3.5.3] No join method is enabled! Starting standalone. [32]

Não tenho muita experiência em iDempiere e gerenciamento de dependência com o buckminster e já tentei várias vezes configurar o ambiente. Agradeço qualquer ajuda.

Atenciosamente,
Bruno Carvalho.


#2

Olá Bruno, provavelmente faltou materializar algum coisa do ALPN. Vamos tentar descobrir, no Eclipse vai em Navigate > Open Plugin Artifact e digite *ALPN. Veja se está igual a minha imagem:


#3

Opa Ricardo,

Procurei aqui, mas não achei esse item no menu Navigate. Estou utilizando o eclipse Oxygen 4.7.3a. Você está nesta versão também?


#4

Encontrei um atalho de teclado para esta janela e consegui ver aqui. O meu está faltando alguns plug-ins


#5

Aqui é o meu materialize.properties do pacote org.adempiere.sdk-feature:

buckminster.download.source=true
osgi.configuration.area.default=configuration
osgi.user.area=${user.home}
osgi.user.area.default=${user.home}
target.os=*
target.ws=*
target.arch=*

#local.repository.root=file:///mnt/data/dev/project/me/repository/stuff/setup.idempiere/localRepository
local.repository.root.maven=http://central.maven.org/maven2

url.maven2=http://central.maven.org
url.maven2.lib=http://central.maven.org

url.maven.zkoss=http://mavensync.zkoss.org
url.maven.zkoss.lib=http://mavensync.zkoss.org
url.zkoss.osgi=http://downloads.sourceforge.net/project/idempiere/binary.file/jarfile/zk-p2/zk-8.0.1.1/

url.maven.restlet=http://maven.restlet.org

url.equinox=http://download.eclipse.org/eclipse/updates/4.4
url.jetty=http://download.eclipse.org/jetty/updates/jetty-bundles-9.x
url.orbit=http://download.eclipse.org/tools/orbit/downloads/drops/R20150124073747/repository
url.orbit.neon=http://download.eclipse.org/tools/orbit/downloads/drops/R20160520211859/repository/

url.file.srv=http://downloads.sourceforge.net/project/idempiere/binary.file

url.restlet.p2=http://p2.restlet.com/2.3

url.modify.bundle=http://downloads.sourceforge.net/project/idempiere/binary.file/jarfile/modifyBundle-1.0.0

url.file.jp.lib=http://downloads.sourceforge.net/project/idempiere/binary.file/jarfile/jp-6.3.0

url.alpn.boot=http://central.maven.org/maven2/org/mortbay/jetty/alpn/alpn-boot/8.1.11.v20170118/alpn-boot-8.1.11.v20170118.jar

extend.bundle.folder.1
extend.bundle.folder.2
extend.bundle.folder.3
extend.bundle.folder.4
extend.bundle.folder.5
extend.bundle.folder.6
extend.bundle.folder.7
extend.bundle.folder.8
extend.bundle.folder.9
extend.bundle.folder.10


#6

O meu tem um a mais que o seu print. Tenta adicionar este JAR na pasta targetPlatform/plugins:

http://central.maven.org/maven2/org/mortbay/jetty/alpn/alpn-boot/8.1.7.v20160121/alpn-boot-8.1.7.v20160121.jar

Reinicie o Eclipse em seguida.


#7

Tentei aqui Ricardo. Mas continua dando o mesmo erro.


#8

Os passos que eu segui foram estes:

  1. Criei a pasta ‘iDempiereWorkspace’
  2. Dentro dela clonei os repositórios: https://bitbucket.org/kenos/idempiere e https://bitbucket.org/kenos/org.kenos.idempiere.lbr
  3. Mudei os dois projetos para o branch kenos
  4. Iniciei o eclipse definindo meu workspace como iDempiereWorkspace/idempiere
  5. Importei os projetos da pasta idempiere para o eclipse
  6. Materializei o projeto
  7. Fechei o projeto ‘doc’ no eclipse
  8. Corrigi as referências das libs no build path dos projetos ztl e selenese (o build path apontava para o caminho errado ou buscava uma versão antiga)
  9. Removi no build path do projeto org.adempiere.report.jasper.fragment.test a referência a pasta src/
  10. Após estes passos o projeto compilou sem erros e consegui rodar a versão desktop sem problemas, mas a versão web deu o erro que postei aqui.