<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 21, 2014 at 12:02 AM, Bruno Oliveira <span dir="ltr"><<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Good morning Passos, would you mind to try the following steps?<br>
<br>
- WildFly 8.1.0<br>
<br>
1. remove any previous installation of WildFly to make sure that we're<br>
dealing with a fresh environment<br>
2. mvn clean install -DskipTests=true -Dcheckstyle.skip=true<br>
3. Start WildFly<br>
4. cp databases/unifiedpush-h2-ds.xml $JBOSS_HOME/standalone/deployments<br>
5. cp servers/auth-server/target/auth-server.war $JBOSS_HOME/standalone/deployments<br>
6. cp servers/ups-wildfly/target/ag-push.war $JBOSS_HOME/standalone/deployments<br>
<br>
<br>
Note: Here I did a rm -rf ~/.m2/repository/org/jboss/aerogear for a<br>
fresh setup.<br>
<br>
I know manual deploy is not awesome, but help us to debug what's goign<br>
on.<br></blockquote><div><br></div><div>It works</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On JBoss AS 7.1.1 I was able to reproduce your issue and will look at<br>
this, thanks for testing.<br>
<span class=""><br>
<br>
<br>
On 2014-10-20, Daniel Passos wrote:<br>
> Hey Guys,<br>
><br>
> Today I’ve spend a lot of time (without success), trying test #408<br>
</span>> <<a href="https://github.com/aerogear/aerogear-unifiedpush-server/pull/408" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/pull/408</a>> using a<br>
<span class="">> new JBoss AS 7.1/Wildfly 8.1.0 installations<br>
> Using Java version “1.7.0_45”<br>
</span>> ------------------------------<br>
<div><div class="h5">> JBoss AS 7.1 Generate the UnifiedPush Database and Datasource<br>
><br>
> [passos]: ~/Development/Projects/AeroGear/aerogear-unifiedpush-server/servers<br>
> [git:pr/408]<br>
> → ~/Development/Java/Server/JBoss/jboss-as-7.1.1.Final/bin/jboss-cli.sh<br>
> --file=../databases/h2-database-config.cli<br>
> #1 data-source add --name=UnifiedPushDS --driver-name=h2<br>
> --jndi-name=java:jboss/datasources/UnifiedPushDS<br>
> --connection-url="jdbc:h2:${jboss.server.data.dir}/unifiedpush;DB_CLOSE_DELAY=-1"<br>
> --user-name=sa --password=sa --use-ccm=true<br>
> #2 data-source enable --name=UnifiedPushDS<br>
> The batch executed successfully.<br>
><br>
> Deployment<br>
><br>
> [passos]: ~/Development/Projects/AeroGear/aerogear-unifiedpush-server/servers<br>
> [git:pr/408]<br>
> → mvn jboss-as:deploy -Pas7<br>
><br>
> Server Log<br>
><br>
> 19:26:19,552 ERROR [org.jboss.msc.service.fail] (MSC service thread<br>
> 1-8) MSC00001: Failed to start service<br>
> jboss.deployment.unit."ag-push.war".WeldService:<br>
> org.jboss.msc.service.StartException in service<br>
> jboss.deployment.unit."ag-push.war".WeldService:<br>
> org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied<br>
> dependencies for type [HttpServletRequest] with qualifiers [@Default]<br>
> at injection point [[parameter 1] of [constructor] @Inject public<br>
> org.jboss.aerogear.unifiedpush.service.impl.SearchManager(HttpServletRequest)]<br>
> at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)<br>
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)<br>
> [jboss-msc-1.0.2.GA.jar:<a href="http://1.0.2.GA" target="_blank">1.0.2.GA</a>]<br>
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)<br>
> [jboss-msc-1.0.2.GA.jar:<a href="http://1.0.2.GA" target="_blank">1.0.2.GA</a>]<br>
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br>
> [rt.jar:1.7.0_45]<br>
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br>
> [rt.jar:1.7.0_45]<br>
> at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]<br>
> Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408<br>
> Unsatisfied dependencies for type [HttpServletRequest] with qualifiers<br>
> [@Default] at injection point [[parameter 1] of [constructor] @Inject<br>
> public org.jboss.aerogear.unifiedpush.service.impl.SearchManager(HttpServletRequest)]<br>
> at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:275)<br>
> at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)<br>
> at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)<br>
> at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)<br>
> at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)<br>
> at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)<br>
> at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)<br>
> at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)<br>
> at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)<br>
> ... 5 more<br>
><br>
> Wildfly 8.1.0 Generate the UnifiedPush Database and Datasource<br>
><br>
> [passos]: ~/Development/Projects/AeroGear/aerogear-unifiedpush-server/servers<br>
> [git:pr/408]<br>
> → ~/Development/Java/Server/JBoss/wildfly-8.1.0.Final/bin/jboss-cli.sh<br>
> --file=../databases/h2-database-config.cli<br>
> The batch failed with the following error (you are remaining in the<br>
> batch editing mode to have a chance to correct the error):<br>
> {"JBAS014653: Composite operation failed and was rolled back. Steps<br>
> that failed:" => {"Operation step-1" => "JBAS014749: Operation handler<br>
> failed: Service jboss.data-source-config.UnifiedPushDS is already<br>
> registered"}}<br>
><br>
> Server Log<br>
><br>
> 19:49:48,359 INFO [org.jboss.as.connector.subsystems.datasources]<br>
> (MSC service thread 1-2) JBAS010400: Bound data source<br>
> [java:jboss/datasources/UnifiedPushDS]<br>
> 19:49:48,360 ERROR [org.jboss.as.controller.management-operation]<br>
> (management-handler-thread - 1) JBAS014612: Operation ("add") failed -<br>
> address: ([<br>
> ("subsystem" => "datasources"),<br>
> ("data-source" => "UnifiedPushDS")<br>
> ]): org.jboss.msc.service.DuplicateServiceException: Service<br>
> jboss.data-source-config.UnifiedPushDS is already registered<br>
> at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158)<br>
> [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
> at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:235)<br>
> [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
> at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:767)<br>
> [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
> at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223)<br>
> [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
> at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401)<br>
> [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
> at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:317)<br>
> [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
> at org.jboss.as.controller.OperationContextImpl$ContextServiceBuilder.install(OperationContextImpl.java:1511)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.connector.subsystems.datasources.DataSourceEnable.addServices(DataSourceEnable.java:188)<br>
> at org.jboss.as.connector.subsystems.datasources.DataSourceEnable$1.execute(DataSourceEnable.java:84)<br>
> at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:606)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:484)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:281)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:276)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:271)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:145)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:199)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$300(ModelControllerClientOperationHandler.java:130)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:150)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:146)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at java.security.AccessController.doPrivileged(Native Method)<br>
> [rt.jar:1.7.0_45]<br>
> at javax.security.auth.Subject.doAs(Subject.java:415) [rt.jar:1.7.0_45]<br>
> at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:94)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:146)<br>
> [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.protocol.mgmt.AbstractMessageHandler$2$1.doExecute(AbstractMessageHandler.java:283)<br>
> [wildfly-protocol-8.1.0.Final.jar:8.1.0.Final]<br>
> at org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:504)<br>
> [wildfly-protocol-8.1.0.Final.jar:8.1.0.Final]<br>
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br>
> [rt.jar:1.7.0_45]<br>
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br>
> [rt.jar:1.7.0_45]<br>
> at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]<br>
> at org.jboss.threads.JBossThread.run(JBossThread.java:122)<br>
> [jboss-threads-2.1.1.Final.jar:2.1.1.Final]<br>
><br>
> 19:49:48,376 INFO [org.jboss.as.connector.subsystems.datasources]<br>
> (MSC service thread 1-7) JBAS010409: Unbound data source<br>
> [java:jboss/datasources/UnifiedPushDS]<br>
><br>
> Deployment<br>
><br>
> [passos]: ~/Development/Projects/AeroGear/aerogear-unifiedpush-server/servers<br>
> [git:pr/408]<br>
> → mvn wildfly:deploy -Pwildfly<br>
> .<br>
> .<br>
> .<br>
> [INFO] ------------------------------------------------------------------------<br>
> [INFO] Reactor Summary:<br>
> [INFO]<br>
> [INFO] UnifiedPush Auth Server ........................... SUCCESS [10.217s]<br>
> [INFO] UnifiedPush Server for JBossAS (WAR) .............. FAILURE [4.306s]<br>
> [INFO] UnifiedPush Servers Parent ........................ SKIPPED<br>
> [INFO] ------------------------------------------------------------------------<br>
> [INFO] BUILD FAILURE<br>
> [INFO] ------------------------------------------------------------------------<br>
> [INFO] Total time: 15.561s<br>
> [INFO] Finished at: Mon Oct 20 19:26:19 BRST 2014<br>
> [INFO] Final Memory: 35M/367M<br>
> [INFO] ------------------------------------------------------------------------<br>
><br>
> Server Log<br>
><br>
> 19:50:58,648 ERROR [org.jboss.msc.service.fail] (MSC service thread<br>
> 1-4) MSC000001: Failed to start service<br>
> jboss.undertow.deployment.default-server.default-host./auth:<br>
> org.jboss.msc.service.StartException in service<br>
> jboss.undertow.deployment.default-server.default-host./auth: Failed to<br>
> start service<br>
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)<br>
> [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br>
> [rt.jar:1.7.0_45]<br>
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br>
> [rt.jar:1.7.0_45]<br>
> at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]<br>
> Caused by: java.lang.RuntimeException: Failed to construct public<br>
> org.jboss.aerogear.unifiedpush.keycloak.UpsKeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br>
> at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:160)<br>
> at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2175)<br>
> at org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:295)<br>
> at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:236)<br>
> at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:112)<br>
> at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)<br>
> at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:214)<br>
> at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:119)<br>
> at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:505)<br>
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:88)<br>
> at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:72)<br>
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)<br>
> [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)<br>
> [jboss-msc-1.2.2.Final.jar:1.2.2.Final]<br>
> ... 3 more<br>
> Caused by: javax.persistence.PersistenceException: Unable to build<br>
> entity manager factory<br>
> at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:83)<br>
> at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)<br>
> at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.lazyInit(DefaultJpaConnectionProviderFactory.java:95)<br>
> at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.create(DefaultJpaConnectionProviderFactory.java:24)<br>
> at org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.create(DefaultJpaConnectionProviderFactory.java:16)<br>
> at org.keycloak.services.DefaultKeycloakSession.getProvider(DefaultKeycloakSession.java:88)<br>
> at org.keycloak.models.jpa.JpaRealmProviderFactory.create(JpaRealmProviderFactory.java:28)<br>
> at org.keycloak.models.jpa.JpaRealmProviderFactory.create(JpaRealmProviderFactory.java:15)<br>
> at org.keycloak.services.DefaultKeycloakSession.getProvider(DefaultKeycloakSession.java:88)<br>
> at org.keycloak.models.cache.DefaultCacheRealmProvider.getDelegate(DefaultCacheRealmProvider.java:67)<br>
> at org.keycloak.models.cache.DefaultCacheRealmProvider.getRealm(DefaultCacheRealmProvider.java:173)<br>
> at org.keycloak.services.managers.ApplianceBootstrap.bootstrap(ApplianceBootstrap.java:42)<br>
> at org.keycloak.services.managers.ApplianceBootstrap.bootstrap(ApplianceBootstrap.java:33)<br>
> at org.keycloak.services.resources.KeycloakApplication.setupDefaultRealm(KeycloakApplication.java:137)<br>
> at org.jboss.aerogear.unifiedpush.keycloak.UpsKeycloakApplication.setupDefaultRealm(UpsKeycloakApplication.java:40)<br>
> at org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:86)<br>
> at org.jboss.aerogear.unifiedpush.keycloak.UpsKeycloakApplication.<init>(UpsKeycloakApplication.java:35)<br>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native<br>
> Method) [rt.jar:1.7.0_45]<br>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)<br>
> [rt.jar:1.7.0_45]<br>
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<br>
> [rt.jar:1.7.0_45]<br>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:526)<br>
> [rt.jar:1.7.0_45]<br>
> at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:148)<br>
> ... 15 more<br>
> Caused by: org.hibernate.engine.jndi.JndiException: Unable to lookup<br>
> JNDI name [java:jboss/datasources/UnifiedPushDS]<br>
> at org.hibernate.engine.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:117)<br>
> at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.configure(DatasourceConnectionProviderImpl.java:115)<br>
> at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111)<br>
> at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234)<br>
> at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206)<br>
> at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:260)<br>
> at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:94)<br>
> at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111)<br>
> at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234)<br>
> at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206)<br>
> at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1885)<br>
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1843)<br>
> at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:850)<br>
> at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl$4.perform(EntityManagerFactoryBuilderImpl.java:843)<br>
> at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.withTccl(ClassLoaderServiceImpl.java:397)<br>
> at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:842)<br>
> at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:75)<br>
> ... 36 more<br>
> Caused by: javax.naming.NameNotFoundException:<br>
> datasources/UnifiedPushDS -- service<br>
> jboss.naming.context.java.jboss.datasources.UnifiedPushDS<br>
> at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:104)<br>
> at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:202)<br>
> at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179)<br>
> at org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:235)<br>
> at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:179)<br>
> at javax.naming.InitialContext.lookup(InitialContext.java:415)<br>
> [rt.jar:1.7.0_45]<br>
> at javax.naming.InitialContext.lookup(InitialContext.java:415)<br>
> [rt.jar:1.7.0_45]<br>
> at org.hibernate.engine.jndi.internal.JndiServiceImpl.locate(JndiServiceImpl.java:114)<br>
> ... 52 more<br>
><br>
> 19:50:58,659 ERROR [org.jboss.as.controller.management-operation]<br>
> (management-handler-thread - 1) JBAS014613: Operation ("deploy")<br>
> failed - address: ([("deployment" => "auth-server.war")]) - failure<br>
> description: {"JBAS014671: Failed services" =><br>
> {"jboss.undertow.deployment.default-server.default-host./auth" =><br>
> "org.jboss.msc.service.StartException in service<br>
> jboss.undertow.deployment.default-server.default-host./auth: Failed to<br>
> start service<br>
> Caused by: java.lang.RuntimeException: Failed to construct public<br>
> org.jboss.aerogear.unifiedpush.keycloak.UpsKeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br>
> Caused by: javax.persistence.PersistenceException: Unable to build<br>
> entity manager factory<br>
> Caused by: org.hibernate.engine.jndi.JndiException: Unable to<br>
> lookup JNDI name [java:jboss/datasources/UnifiedPushDS]<br>
> Caused by: javax.naming.NameNotFoundException:<br>
> datasources/UnifiedPushDS -- service<br>
> jboss.naming.context.java.jboss.datasources.UnifiedPushDS"}}<br>
> 19:50:58,662 ERROR [org.jboss.as.server] (management-handler-thread -<br>
> 1) JBAS015870: Deploy of deployment "auth-server.war" was rolled back<br>
> with the following failure message:<br>
> {"JBAS014671: Failed services" =><br>
> {"jboss.undertow.deployment.default-server.default-host./auth" =><br>
> "org.jboss.msc.service.StartException in service<br>
> jboss.undertow.deployment.default-server.default-host./auth: Failed to<br>
> start service<br>
> Caused by: java.lang.RuntimeException: Failed to construct public<br>
> org.jboss.aerogear.unifiedpush.keycloak.UpsKeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)<br>
> Caused by: javax.persistence.PersistenceException: Unable to build<br>
> entity manager factory<br>
> Caused by: org.hibernate.engine.jndi.JndiException: Unable to<br>
> lookup JNDI name [java:jboss/datasources/UnifiedPushDS]<br>
> Caused by: javax.naming.NameNotFoundException:<br>
> datasources/UnifiedPushDS -- service<br>
> jboss.naming.context.java.jboss.datasources.UnifiedPushDS"}}<br>
><br>
> Using java version “1.8.0_25”<br>
</div></div>> ------------------------------<br>
<div><div class="h5">> JBoss AS 7.1<br>
><br>
> I can not start JBoss AS 7.1 using Java 8<br>
><br>
> [passos]: ~<br>
> → ./Development/Java/Server/JBoss/jboss-as-7.1.1.Final/bin/standalone.sh<br>
> -b 0.0.0.0<br>
> =========================================================================<br>
><br>
> JBoss Bootstrap Environment<br>
><br>
> JBOSS_HOME: /Users/passos/Development/Java/Server/JBoss/jboss-as-7.1.1.Final<br>
><br>
> JAVA: java<br>
><br>
> JAVA_OPTS: -server -XX:+UseCompressedOops -XX:+TieredCompilation<br>
> -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true<br>
> -Dorg.jboss.resolver.warning=true<br>
> -Dsun.rmi.dgc.client.gcInterval=3600000<br>
> -Dsun.rmi.dgc.server.gcInterval=3600000<br>
> -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true<br>
> -Djboss.server.default.config=standalone.xml<br>
><br>
> =========================================================================<br>
><br>
> Java HotSpot(TM) 64-Bit Server VM warning: ignoring option<br>
> MaxPermSize=256m; support was removed in 8.0<br>
> 19:42:02,527 INFO [org.jboss.modules] JBoss Modules version <a href="http://1.1.1.GA" target="_blank">1.1.1.GA</a><br>
> 19:42:02,866 INFO [org.jboss.msc] JBoss MSC version <a href="http://1.0.2.GA" target="_blank">1.0.2.GA</a><br>
> 19:42:02,947 INFO [<a href="http://org.jboss.as" target="_blank">org.jboss.as</a>] JBAS015899: JBoss AS 7.1.1.Final<br>
> "Brontes" starting<br>
><br>
> Wildfly 8.1.0 Deploy<br>
><br>
> [passos]: ~/Development/Projects/AeroGear/aerogear-unifiedpush-server/servers<br>
> [git:pr/408]<br>
> → mvn wildfly:deploy -Pwildfly<br>
><br>
> Seeing an error during mvn -Pdeploy install of quickstarts on Mac OS<br>
> X, using jdk 1.6. I do not see this error with jdk 1.7. I'm trying to<br>
> deploy against EAP, but I'm not sure that matters given the error<br>
> looks to be JDK/path/version-based.<br>
> [ERROR] Failed to execute goal<br>
> org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Final:deploy-only<br>
> (deploy) on project switchyard-validate-xml: Execution deploy of goal<br>
> org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Final:deploy-only<br>
> failed: Plugin org.wildfly.plugins:wildfly-maven-plugin:1.0.2.Final or<br>
> one of its dependencies could not be resolved: Could not find artifact<br>
> sun.jdk:jconsole:jar:jdk at specified path<br>
> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/../lib/jconsole.jar<br>
> -> [Help 1]<br>
><br>
> I found the same problem in SwitchYard quickstart<br>
</div></div>> <<a href="https://issues.jboss.org/browse/SWITCHYARD-2315" target="_blank">https://issues.jboss.org/browse/SWITCHYARD-2315</a>><br>
><br>
> — Passos<br>
> <br>
<br>
> _______________________________________________<br>
> aerogear-dev mailing list<br>
> <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
<br>
--<br>
<br>
abstractj<br>
PGP: 0x84DC9914<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote></div><br></div></div>