Jboss showing this error in eclipse - eclipse

How to solve the error given below in eclipse ?
ERROR:
[org.apache.catalina.core.StandardContext] (MSC service thread 1-4) Context [] startup failed due to previous errors

Related

Hibernate OGM mongodb example

I'm new to java ee, I'm searching for some example of hibernate OGM with Mongodb. I found this: https://github.com/fmarchioni/mastertheboss/tree/master/hibernateogm-mongo but I'm struggling trying to run it.
Those are the steps I've done:
import the project in Eclipse as Maven project
added JavaServer Faces and Dynamic Web Module in Project Facets
installed Wildfly as Server runtime
Trying to run the project I get this error
13:32:49,916 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."hibernateogm-mongo.war".FIRST_MODULE_USE: org.jboss.msc.service.StartException in service jboss.deployment.unit."hibernateogm-mongo.war".FIRST_MODULE_USE: WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment "hibernateogm-mongo.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:151)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJPA0027: Persistence provider module load error org.hibernate.ogm (class org.hibernate.ogm.jpa.HibernateOgmPersistence)
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.lookupProvider(PersistenceUnitServiceHandler.java:991)
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.addPuService(PersistenceUnitServiceHandler.java:266)
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.handleWarDeployment(PersistenceUnitServiceHandler.java:206)
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deploy(PersistenceUnitServiceHandler.java:134)
at org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:52)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:144)
... 8 more
Caused by: org.jboss.modules.ModuleNotFoundException: org.hibernate.ogm
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:294)
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:280)
at org.jboss.as.jpa.persistenceprovider.PersistenceProviderLoader.loadProviderModuleByName(PersistenceProviderLoader.java:65)
at org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.lookupProvider(PersistenceUnitServiceHandler.java:987)
... 13 more
13:32:50,978 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-3) ISPN000128: Infinispan version: Infinispan 'Estrella Galicia' 9.3.1.Final
13:32:51,380 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 72) WFLYCLINF0002: Started client-mappings cache from ejb container
13:32:51,602 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 72) WFLYUT0021: Registered web context: '/wildflyDynamicProject' for server 'default-server'
13:32:51,612 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "hibernateogm-mongo.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"hibernateogm-mongo.war\".FIRST_MODULE_USE" => "WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment \"hibernateogm-mongo.war\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYJPA0027: Persistence provider module load error org.hibernate.ogm (class org.hibernate.ogm.jpa.HibernateOgmPersistence)
Caused by: org.jboss.modules.ModuleNotFoundException: org.hibernate.ogm"}}
You can see the actual error is org.jboss.modules.ModuleNotFoundException: org.hibernate.ogm
Now the questions:
I guess org.hibernate.ogm as Maven dependency is not enough, Widlfly needs org.hibernate.ogm module. How can I install it? All the informations I find are JBoss related and outdated.
can I run this project in Tomcat or this makes no sense? Is Wildfly necessary in this case? I get this error in case of Tomcat 8 runtime: java.lang.ClassNotFoundException: javax.faces.webapp.FacesServlet
That example is quite old, I've created an up-to-date example that I'm planning to inlcude in the project on my personal repository.
Here's the link: https://github.com/DavideD/hibernate-demos/tree/master/hibernate-ogm/nosql-with-hibernate-ogm-101/hibernate-ogm-demo-nosql-with-hibernate-ogm-101-part-3
This project shows how to setup a maven build that prepares WildFly 13 with the appropriate modules using the provisioning plugin. It also show a basic configuration for the persistence.xml and jboss deploy descriptor.
One thing to keep in mind, is that you need to start the server using the proprierty -Dee8.preview.mode=true as you can see in the arquillian.xml
I hope this help

Jboss undeploy application missing sha

I use wildfly Master-domain. When I deploy some application, in domain.xml is created sha for example:
dd234b0920c094b633ebb38c9432dee9ea96ecfc
and is too created content in
/opt/wildfly/domain/data/content/dd/234b0920c094b633ebb38c9432dee9ea96ecfc/
But when I undeploy application via management console, content from
/opt/wildfly/domain/data/content/
will disappear. When I need restart wildfly I get message:
[Host Controller] 15:34:01,768 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "APPLICATION.ear")]) - failure description: "WFLYDC0058: No deployment content with hash dd234b0920c094b633ebb38c9432dee9ea96ecfc is available in the deployment content repository for deployment 'APPLICATION.ear'. This is a fatal boot error. To correct the problem, either restart with the --admin-only switch set and use the CLI to install the missing content or remove it from the configuration, or remove the deployment from the xml configuraiton file and restart."[Host Controller] 15:34:01,815 FATAL [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0034: Host Controller boot has failed in an unrecoverable manner; exiting. See previous messages for details.[Host Controller] 15:34:01,817 FATAL [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0178: Aborting with exit code 99
In domain.xml file exist sha1.
server log:
2018-03-15 10:30:21,518 DEBUG [org.wildfly.extension.batch] (MSC service thread 1-1) Removing batch environment; ModuleClassLoader for Module "deployment.APPLICATION-1.9.3.ear:main" from Service Module Loader
2018-03-15 10:30:21,527 DEBUG [org.hibernate.validator.internal.engine.ConfigurationImpl] (MSC service thread 1-4) Setting custom ConstraintValidatorFactory of type org.hibernate.validator.internal.cdi.InjectingConstraintValidatorFactory
2018-03-15 10:30:21,528 DEBUG [org.hibernate.validator.internal.engine.ConfigurationImpl] (MSC service thread 1-4) Setting custom MessageInterpolator of type org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator
2018-03-15 10:30:21,528 DEBUG [org.hibernate.validator.internal.engine.ConfigurationImpl] (MSC service thread 1-4) Setting custom TraversableResolver of type org.hibernate.validator.internal.engine.resolver.DefaultTraversableResolver
2018-03-15 10:30:21,528 DEBUG [org.hibernate.validator.internal.engine.ConfigurationImpl] (MSC service thread 1-4) Setting custom ParameterNameProvider of type org.hibernate.validator.internal.engine.DefaultParameterNameProvider
2018-03-15 10:30:21,532 DEBUG [org.wildfly.extension.batch] (MSC service thread 1-3) Removing batch environment; ModuleClassLoader for Module "deployment.APPLICATION-1.9.3.ear.APPLICATION-web-1.9.3.war:main" from Service Module Loader
2018-03-15 10:30:21,588 DEBUG [org.jboss.as.ejb3.deployment] (MSC service thread 1-3) unRegistering EJB client context for classloader ModuleClassLoader for Module "deployment.APPLICATION-1.9.3.ear.APPLICATION-ejb-1.9.3.jar:main" from Service Module Loader
2018-03-15 10:30:21,591 DEBUG [org.wildfly.extension.batch] (MSC service thread 1-2) Removing batch environment; ModuleClassLoader for Module "deployment.APPLICATION-1.9.3.ear.APPLICATION-ejb-1.9.3.jar:main" from Service Module Loader
2018-03-15 10:30:21,599 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 74) WFLYUT0022: Unregistered web context: /APPLICATION
2018-03-15 10:30:21,630 FINE [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 74) ConfigureListener.contextDestroyed(APPLICATION-web)
2018-03-15 10:30:21,651 DEBUG [org.jboss.weld.deployer] (MSC service thread 1-1) WFLYWELD0010: Stopping weld service for deployment APPLICATION-1.9.3.ear
2018-03-15 10:30:21,667 DEBUG [org.jboss.as.ejb3.deployment] (MSC service thread 1-2) unRegistering EJB client context for classloader ModuleClassLoader for Module "deployment.APPLICATION-1.9.3.ear.APPLICATION-web-1.9.3.war:main" from Service Module Loader
2018-03-15 10:30:21,742 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0208: Stopped subdeployment (runtime-name: APPLICATION-web-1.9.3.war) in 270ms
2018-03-15 10:30:21,743 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0208: Stopped subdeployment (runtime-name: APPLICATION-ejb-1.9.3.jar) in 271ms
2018-03-15 10:30:21,744 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (DefaultQuartzScheduler_Worker-10) loom-devsync1-datasource: getConnection(null, WrappedConnectionRequestInfo#228b594d[userName=user]) [0/30]
2018-03-15 10:30:21,746 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (DefaultQuartzScheduler_Worker-10) loom-devsync1-datasource: returnConnection(29207e12, false) [0/30]
2018-03-15 10:30:21,762 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) WFLYSRV0028: Stopped deployment APPLICATION-1.9.3.ear (runtime-name: APPLICATION-1.9.3.ear) in 291ms
2018-03-15 10:30:21,847 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (DefaultQuartzScheduler_Worker-1) loom-devsync1-datasource: getConnection(null, WrappedConnectionRequestInfo#228b594d[userName=user]) [0/30]
2018-03-15 10:30:21,848 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (DefaultQuartzScheduler_Worker-2) loom-devsync1-datasource: getConnection(null, WrappedConnectionRequestInfo#228b594d[userName=user]) [0/30]
2018-03-15 10:30:21,851 DEBUG [org.jboss.jca.core.connectionmanager.poouseel.strategy.OnePool] (DefaultQuartzScheduler_Worker-1) loom-devsync1-datasource: returnConnection(29207e12, false) [0/30]
2018-03-15 10:30:21,852 DEBUG [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (DefaultQuartzScheduler_Worker-2) loom-devsync1-datasource: returnConnection(2ffe1f48, false) [0/30]
2018-03-15 10:30:22,116 INFO [org.jboss.as.server] (ServerService Thread Pool -- 64) WFLYSRV0009: Undeployed "APPLICATION-1.9.3.ear" (runtime-name: "APPLICATION-1.9.3.ear")
2018-03-15 10:30:22,123 INFO [org.jboss.as.repository] (ServerService Thread Pool -- 64) WFLYDR0002: Content removed from location /opt/wildfly/data/content/dd/234b0920c094b633ebb38c9432dee9ea96ecfc/content
and environment: Debian wheezy, wildlfy 10.1.0 FINAL Core version: 2.8.27.Final
I need to solve problem with deleting content from /opt/wildfly/domain/data/content/.
The content should by stay in this folder. Application can by again deploy.
I recommend to use the latest version which is WildFly 12

Problems with Jboss 6.1+ deployment

I think I have some related problems with JBOSS. If I start server with some project in the deploy folder, the server doesn't start and gives me the error:
'Server JBoss EAP 6.1+ Runtime Server failed to start'.
Furthermore if I add an ear in the deploy folder I get the following warning:
'JBAS015000: Cannot delete deployment progress marker file'.
Sometimes adding the ear's in the folder I get the errors:
JBAS018559: Deployed "my-ear-7.5.13.ear" (runtime-name : "my-ear-7.5.13.ear")
17:11:18,463 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2)
JBAS015877: Stopped deployment null (runtime-name: my-ejb.jar) in 32ms
17:11:18,511 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3)
JBAS015877: Stopped deployment my-ear-7.5.13.ear (runtime-name: my-ear-7.5.13.ear) in 90ms
17:11:18,573 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "my-ear-7.5.13.ear"

WildFly server not starting (with and without project)

I installed jboss wildfly just now but I'm having trouble to start it. With my project and without it, when I start, it shows in console the same error:
14:15:37,571 INFO [org.jboss.modules] (main) JBoss Modules version
1.5.2.Final 14:15:37,757 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final 14:15:37,829 INFO [org.jboss.as] (MSC service
thread 1-7) WFLYSRV0049: WildFly Full 10.1.0.Final (WildFly Core
2.2.0.Final) starting 14:15:38,546 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot:
org.jboss.as.controller.persistence.ConfigurationPersistenceException:
WFLYCTL0085: Failed to parse configuration at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131)
at org.jboss.as.server.ServerService.boot(ServerService.java:357) at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
at java.lang.Thread.run(Thread.java:745) Caused by:
com.ctc.wstx.exc.WstxParsingException: Received non-all-whitespace
CHARACTERS or CDATA event in nextTag(). at [row,col
{unknown-source}]: [417,0] at
com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:614)
at
com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:487)
at
com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:472)
at
com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1174)
at
org.jboss.staxmapper.XMLExtendedStreamReaderImpl.nextTag(XMLExtendedStreamReaderImpl.java:152)
at
org.jboss.as.controller.parsing.ParseUtils.nextElement(ParseUtils.java:55)
at
org.jboss.as.controller.parsing.ParseUtils.nextElement(ParseUtils.java:71)
at
org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:255)
at
org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141)
at
org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103)
at
org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)
at
org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at
org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
... 3 more
14:15:38,548 FATAL [org.jboss.as.server] (Controller Boot Thread)
WFLYSRV0056: Server boot has failed in an unrecoverable manner;
exiting. See previous messages for details. 14:15:38,560 INFO
[org.jboss.as] (MSC service thread 1-8) WFLYSRV0050: WildFly Full
10.1.0.Final (WildFly Core 2.2.0.Final) stopped in 6ms
I already tried to find the reason of
Received non-all-whitespace CHARACTERS or CDATA event in nextTag()
but I didn't find something that could help me.
I have no idea why is this happening, I would be glad if someone help me.
WFLYCTL0085: Failed to parse configuration
One of your configuration files does not respect its XSD, most probably standalone*.xml or domain*.xml.
Received non-all-whitespace CHARACTERS or CDATA event in nextTag()
There must be content in a tag where there shouldn't be.
at [row,col {unknown-source}]: [417,0]
I would first check at line 417 of what I guess is your domain*.xml, although I'm not sure the line number will correspond.
I reinstalled my WildFly and it started.

JBoss startup warning : MSC service thread ... Invalid class name

I want to get rid of the WARN messages in the following JBoss console output.
08:46:53,653 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "IodLogin.war"
08:46:53,670 INFO [org.jboss.as.remoting] (MSC service thread 1-12) JBAS017100: Listening on 127.0.0.1:9999
08:46:53,670 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on 127.0.0.1:4447
08:46:54,124 WARN [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'
08:46:54,124 WARN [org.jboss.as.server.deployment] (MSC service thread 1-14) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'
08:46:54,596 INFO [org.jboss.weld.deployer] (MSC service thread 1-15) JBAS016002: Processing weld deployment IodLogin.war
08:46:54,815 INFO [org.jboss.weld.deployer] (MSC service thread 1-10) JBAS016005: Starting Services for CDI deployment: IodLogin.war
08:46:54,858 INFO [org.jboss.weld.Version] (MSC service thread 1-10) WELD-000900 1.1.10 (redhat)
08:46:54,901 INFO [org.jboss.as.osgi] (MSC service thread 1-7) JBAS011907: Register module: Module "deployment.IodLogin.war:main" from Service Module Loader
08:46:54,904 INFO [org.jboss.weld.deployer] (MSC service thread 1-11) JBAS016008: Starting weld service for deployment IodLogin.war
08:46:55,269 INFO [org.apache.catalina.core.StandardContext] (MSC service thread 1-13) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
08:46:55,327 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-13) Initializing Mojarra 2.1.13-jbossorg-1 20121010-0442 for context '/IodLogin'
08:46:55,933 INFO [org.hibernate.validator.util.Version] (MSC service thread 1-13) Hibernate Validator 4.2.0.Final-redhat-2
08:46:56,281 INFO [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-13) Monitoring jndi:/default-host/IodLogin/WEB-INF/faces-config.xml for modifications
This is "just" a warning message, and I doubt it has any direct negative effect, but I try to avoid warning messages that might distract me and others from a warning that shouldn't be ignored -- the "Boy who cried 'Wolf'" parable.
I'm not using Tomcat or Jetty, but it looks like some configuration file or code is referring to classes specific to those environments. I've verified that none of the XML files refer to them directly.
I'm running JBoss EAP 6.0.1.GA. So far, this JSF 2.0 application is pretty simple -- just one page and a few classes. I'm using Eclipse, without Maven. Elsewhere on SO, I found a reference to org.jboss.shrinkwrap, but I don't see how that applies to my situation.
Update: My question is along the line of "how do I make this symptom of a non-problem go away so it doesn't mask a real problem". I'm not looking for a mistake in my code, just an improvement in the configuration.
Any suggestions about where I should look?