Quantcast

[Aerogear-users] Aerogear aerodoc set up

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Aerogear-users] Aerogear aerodoc set up

columfoskin
Hi all,

I am in the process of trying to to get the aerodoc application up and running on my machine this week and I am having some issues with it - I am getting a build failure each time. 

I have the push server running locally, using the docker image.

The readme for aerodoc just says run “mvn clean install jboss-as:deploy“ , however I think it is failing to build due to possibly having to configure aerodoc to point at my UPS, but I can’t find any info on this anywhere. 

I would like to know if I am on the right track with it, as I had a look on the forums and could not  see much about it. I have searched through the code base to see if this is configured somewhere but I am not having much luck with it.

Any help or info on how to get this running would be greatly appreciated.

Thanks,
Colum.

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] Aerogear aerodoc set up

Matthias Wessendorf
Hello Colum,



On Tue, Oct 4, 2016 at 4:24 PM, colum foskin <[hidden email]> wrote:
Hi all,

I am in the process of trying to to get the aerodoc application up and running on my machine this week and I am having some issues with it - I am getting a build failure each time. 

I have the push server running locally, using the docker image.

ok, good - so it runs in an isolated environment!
 

The readme for aerodoc just says run “mvn clean install jboss-as:deploy“ , however I think it is failing to build due to possibly having to configure aerodoc to point at my UPS, but I can’t find any info on this anywhere. 

So, you need a separate JBoss7 (yes, not sure if WF does actually work...) for this:

Once that thing is running, run the deploy command. I'd not deploy AeroDoc into the UPS container!

@Summers: I recall you working on some Dockerfile or so for AeroDoc in a WF-based image, no?

 

I would like to know if I am on the right track with it, as I had a look on the forums and could not  see much about it. I have searched through the code base to see if this is configured somewhere but I am not having much luck with it.

Any help or info on how to get this running would be greatly appreciated.

Thanks,
Colum.

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users




--

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] Aerogear aerodoc set up

columfoskin
Hey Matthias,

Thanks for the help!

I have downloaded and ran Jboss 7, but I am still getting the same issue unfortunately.
The build failure is due to a failed test, see the image attached.


Any ideas how to get around this would be great.

Thanks,
Colum.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] Aerogear aerodoc set up

Matthias Wessendorf
ah, skip the tests :-)

just add the following to the command line    -DskipTests



On Tue, Oct 4, 2016 at 5:55 PM, columfoskin <[hidden email]> wrote:
Hey Matthias,

Thanks for the help!

I have downloaded and ran Jboss 7, but I am still getting the same issue
unfortunately.
The build failure is due to a failed test, see the image attached.
<http://aerogear-users.1116366.n5.nabble.com/file/n916/Screenshot_2016-10-04_16.png>


Any ideas how to get around this would be great.

Thanks,
Colum.



--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/Aerogear-users-Aerogear-aerodoc-set-up-tp913p916.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users



--

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] Aerogear aerodoc set up

columfoskin
Thanks Matthias, I have been trying for a while without the tests also and aerodoc still fails to build. Here is the output from the build attempt:


[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.314 s
[INFO] Finished at: 2016-10-04T18:31:27+01:00
[INFO] Final Memory: 51M/522M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final:deploy (default-cli) on project aerodoc: Deployment failed and was rolled back. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
MacBook-Pro:aerodoc-backend colum$

Here is the output from the jboss server also:

18:31:26,720 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.persistenceunit."aerodoc.war#aerodoc-default": org.jboss.msc.service.StartException in service jboss.persistenceunit."aerodoc.war#aerodoc-default": Failed to start service
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_79]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_79]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
Caused by: java.lang.AbstractMethodError
        at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:294)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737)
        at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
        at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
        at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        ... 3 more

18:31:26,935 INFO  [org.jboss.as.server] (management-handler-thread - 9) JBAS015870: Deploy of deployment "aerodoc.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"aerodoc.war#aerodoc-default\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"aerodoc.war#aerodoc-default\": Failed to start service"}}
18:31:26,947 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) JBAS010409: Unbound data source [jboss/datasources/AerodocDS]
18:31:26,998 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment aerodoc.war in 62ms
18:31:26,999 INFO  [org.jboss.as.controller] (management-handler-thread - 9) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.persistenceunit."aerodoc.war#aerodoc-default": org.jboss.msc.service.StartException in service jboss.persistenceunit."aerodoc.war#aerodoc-default": Failed to start service

So far I have the following before attempting to run aerodoc:
The UPS running in a docker container, the Jboss server running.

Is there any other config that I may be missing?

Thanks,
Colum.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] Aerogear aerodoc set up

Matthias Wessendorf
ah!

that's a bug :-) 

OK, I did (locally) revert the last commit.

On the aerodoc-backend folder, please run:
gco e30f0459501950ef51d88ecfa39ff2c44523b68f

Now, you are getting back to a vrsion that runs :-) Sorry for that. Now, just build again (mvn clean install) and than deploy ( mvn clean install jboss-as:deploy)

-Matthias

On Tue, Oct 4, 2016 at 7:42 PM, columfoskin <[hidden email]> wrote:
Thanks Matthias, I have been trying for a while without the tests also and
aerodoc still fails to build. Here is the output from the build attempt:


[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 17.314 s
[INFO] Finished at: 2016-10-04T18:31:27+01:00
[INFO] Final Memory: 51M/522M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final:deploy (default-cli) on
project aerodoc: Deployment failed and was rolled back. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
<a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException MacBook-Pro:aerodoc-backend" rel="noreferrer" target="_blank">http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
MacBook-Pro:aerodoc-backend colum$

Here is the output from the jboss server also:

18:31:26,720 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4)
MSC00001: Failed to start service
jboss.persistenceunit."aerodoc.war#aerodoc-default":
org.jboss.msc.service.StartException in service
jboss.persistenceunit."aerodoc.war#aerodoc-default": Failed to start service
        at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_79]
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_79]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_79]
Caused by: java.lang.AbstractMethodError
        at
org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:294)
        at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737)
        at
org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)
        at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)
        at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)
        at
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
        at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)
        at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)
        at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        ... 3 more

18:31:26,935 INFO  [org.jboss.as.server] (management-handler-thread - 9)
JBAS015870: Deploy of deployment "aerodoc.war" was rolled back with failure
message {"JBAS014671: Failed services" =>
{"jboss.persistenceunit.\"aerodoc.war#aerodoc-default\"" =>
"org.jboss.msc.service.StartException in service
jboss.persistenceunit.\"aerodoc.war#aerodoc-default\": Failed to start
service"}}
18:31:26,947 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC
service thread 1-7) JBAS010409: Unbound data source
[jboss/datasources/AerodocDS]
18:31:26,998 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5)
JBAS015877: Stopped deployment aerodoc.war in 62ms
18:31:26,999 INFO  [org.jboss.as.controller] (management-handler-thread - 9)
JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service
jboss.persistenceunit."aerodoc.war#aerodoc-default":
org.jboss.msc.service.StartException in service
jboss.persistenceunit."aerodoc.war#aerodoc-default": Failed to start service

So far I have the following before attempting to run aerodoc:
The UPS running in a docker container, the Jboss server running.

Is there any other config that I may be missing?

Thanks,
Colum.






--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/Aerogear-users-Aerogear-aerodoc-set-up-tp913p918.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users



--

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] Aerogear aerodoc set up

columfoskin
That worked!

Thanks,
Colum.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] Aerogear aerodoc set up

columfoskin
Hi Matthias,

I have been making a small change in the aerodoc application, nothing major just some text or whatever to test being able to change something and rebuild it again. The build passes but the "mvn clean install jboss-as:deploy" fails every time. I reverted the change and it still will not build properly. The build attempt results are attached, any help would be greatly appreciated.

Thanks,
Colum.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] Aerogear aerodoc set up

Matthias Wessendorf
looks like it could not connect to the JBoss. Is it running ? 

Make sure it builds again (mvn clean install) and than deploy ( mvn clean install jboss-as:deploy)



On Tue, Nov 1, 2016 at 10:10 AM, columfoskin <[hidden email]> wrote:
Hi Matthias,

I have been making a small change in the aerodoc application, nothing major
just some text or whatever to test being able to change something and
rebuild it again. The build passes but the "mvn clean install
jboss-as:deploy" fails every time. I reverted the change and it still will
not build properly. The build attempt results are attached, any help would
be greatly appreciated.

Thanks,
Colum.
<http://aerogear-users.1116366.n5.nabble.com/file/n933/Screenshot_2016-11-01_09.png>



--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/Aerogear-users-Aerogear-aerodoc-set-up-tp913p933.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users



--

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] Aerogear aerodoc set up

Matthias Wessendorf
Otherwise, can you share your github branch / fork ? 

On Tue, Nov 1, 2016 at 10:24 AM, Matthias Wessendorf <[hidden email]> wrote:
looks like it could not connect to the JBoss. Is it running ? 

Make sure it builds again (mvn clean install) and than deploy ( mvn clean install jboss-as:deploy)



On Tue, Nov 1, 2016 at 10:10 AM, columfoskin <[hidden email]> wrote:
Hi Matthias,

I have been making a small change in the aerodoc application, nothing major
just some text or whatever to test being able to change something and
rebuild it again. The build passes but the "mvn clean install
jboss-as:deploy" fails every time. I reverted the change and it still will
not build properly. The build attempt results are attached, any help would
be greatly appreciated.

Thanks,
Colum.
<http://aerogear-users.1116366.n5.nabble.com/file/n933/Screenshot_2016-11-01_09.png>



--
View this message in context: http://aerogear-users.1116366.n5.nabble.com/Aerogear-users-Aerogear-aerodoc-set-up-tp913p933.html
Sent from the aerogear-users mailing list archive at Nabble.com.
_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users



--



--

_______________________________________________
Aerogear-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Aerogear-users] Aerogear aerodoc set up

columfoskin
Yes, I had to start the JBoss server before building it, It is building now.

Thanks.
Loading...