HTTPS on JBoss AS 7.1.2 - jboss

I have followed the below link to setup HTTPS on jboss AS 7.1.2
http://middlewaremagic.com/jboss/?p=992
But after this when I start jboss, I get the following error:
10:31:05,481 ERROR [org.apache.coyote.http11.Http11AprProtocol]
↳ (MSC service thread 1-11) Error initializing endpoint: java.lang.Exception:
↳ Unable to load certificate key ../standalone/configuration/chap8.keystore
↳ (error:0906D06C:PEM routines:PEM_read_bio:no start line)
at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method) [jbossweb-7.0.16.Final.jar:]
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:644) [jbossweb-7.0.16.Final.jar:]
at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:121) [jbossweb-7.0.16.Final.jar:]
at org.apache.catalina.connector.Connector.init(Connector.java:983) [jbossweb-7.0.16.Final.jar:]
at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267) [jboss-as-web-7.1.2.Final.jar:7.1.2.Final]
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]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
10:31:05,489 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-11)
↳ MSC00001: Failed to start service jboss.web.connector.https:
↳ org.jboss.msc.service.StartException in service jboss.web.connector.https:
↳ JBAS018007: Error starting web connector
at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:271)
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]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
Caused by: LifecycleException: Protocol handler initialization failed: java.lang.Exception:
↳ Unable to load certificate key ../standalone/configuration/chap8.keystore
↳ (error:0906D06C:PEM routines:PEM_read_bio:no start line)
at org.apache.catalina.connector.Connector.init(Connector.java:985)
at org.jboss.as.web.WebConnectorService.start(WebConnectorService.java:267)
... 5 more
Please help me solve this issue.

I was getting the above error since JBoss was using native APR libraries. The issue is solved by making JBoss use JSE libraries instead of native APR libraries.
Use native="false" in the subsystem tag to solve the issue.

I know that this question was added over year ago, but someone might find this answer helpful.
You are using org.apache.coyote.http11.Http11AprProtocol protocol, which uses native OpenSSL. Provided certificate (basing on file extension) is JKS keystore. OpenSSL cannot read this format and therefore throws error:0906D06C:PEM routines:PEM_read_bio:no start line. In order to resolve this you must convert your keystore to OpenSSL compliant format (crt, pem, key) or generate new keys etc. using OpenSSL. There is also some configuration differences. Refer to this JBoss docs. This works on Jboss AS 7.3.2, but as far as I know there is no difference between 7.1.2 and 7.3.2 in this matter.

Related

deploy a gwt application into jboss AS7

When I'm trying to deploy my gwt application (which I transformed
to a web dynamic project) I got this error :
23:46:11,559 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."TestWar.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."TestWar.war".INSTALL: Failed to process phase INSTALL of deployment "TestWar.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
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]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_75]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_75]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_75]
Caused by: javax.persistence.PersistenceException: JBAS011466: PersistenceProvider 'org.datanucleus.api.jpa.PersistenceProviderImpl' not found
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.lookupProvider(PersistenceUnitDeploymentProcessor.java:555)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deployPersistenceUnit(PersistenceUnitDeploymentProcessor.java:295)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.addPuService(PersistenceUnitDeploymentProcessor.java:258)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.handleWarDeployment(PersistenceUnitDeploymentProcessor.java:194)
at org.jboss.as.jpa.processor.PersistenceUnitDeploymentProcessor.deploy(PersistenceUnitDeploymentProcessor.java:118)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
I am not using any persistence, and I don't need to use it.
Help me please!
While your gwt application has created, you may be select Use Google App Engine. Because of it, there were files created like `persistence.xml' etc.
If you want simple gwt application, Don't tick on Use Google App Engine option.

Error JPA SPRING JBOSS Configuration Missing PersistenceUnitMetadata (thread local wasn't set)

I'm tryning an integration of SPRING JPA (Hibernate Implementation ) on existant Java EE Project with INFORMIX database.
I have this error
10:18:27,982 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.persistenceunit."sigems-ear-dme.ear/sigems-ihm-dme.war#blDpiPersistenceUnit": org.jboss.msc.service.StartException in service jboss.persistenceunit."sigems-ear-dme.ear/sigems-ihm-dme.war#blDpiPersistenceUnit": 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_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]
Caused by: java.lang.RuntimeException: error trying to scan <jar-file>: vfs:/D:/Developpement/Produits/DME/Tools/Server/jboss711/standalone/deployments/sigems-ear-dme.ear/sigems-ihm-dme.war/WEB-INF/classes/
at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:854)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:596)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:72)
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
Caused by: java.lang.RuntimeException: JBAS011455: Missing PersistenceUnitMetadata (thread local wasn't set)
at org.jboss.as.jpa.hibernate4.HibernateAnnotationScanner.getClassesInJar(HibernateAnnotationScanner.java:208)
at org.hibernate.ejb.Ejb3Configuration.addScannedEntries(Ejb3Configuration.java:484)
at org.hibernate.ejb.Ejb3Configuration.scanForClasses(Ejb3Configuration.java:851)
... 9 more
Not sure what JBAS011455 is, but try to override the metadata by modifying the app bundled JBoss XML
Overriding metadata through XML

resteasy-spring module in jboss wildfly 8

I am having this problem with Wildfly 8 and resteasy-spring.jar (module). i am trying to deploy 2 wars on the same server, if i deploy 1 war it deploys fine, but whenever i add the second war it starts failing (and vice versa) with the following error:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC000001: Failed to start service jboss.deployment.unit."TaskandTeamManager.war".DEPENDENCIES: org.jboss.msc.service.StartException in service jboss.deployment.unit."TaskandTeamManager.war".DEPENDENCIES: JBAS018733: Failed to process phase DEPENDENCIES of deployment "TaskandTeamManager.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.0.0.Final-SNAPSHOT.jar:8.0.0.Final-SNAPSHOT]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: java.io.IOException: VFS000017: Filesystem already mounted at mount point ""/C:/servers/jboss/wildfly-8.0.0.Final/modules/system/layers/base/org/jboss/resteasy/resteasy-spring/main/bundled/resteasy-spring.jar""
at org.jboss.as.jaxrs.deployment.JaxrsSpringProcessor.deploy(JaxrsSpringProcessor.java:126)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.0.0.Final-SNAPSHOT.jar:8.0.0.Final-SNAPSHOT]
... 5 more
Caused by: java.io.IOException: VFS000017: Filesystem already mounted at mount point ""/C:/servers/jboss/wildfly-8.0.0.Final/modules/system/layers/base/org/jboss/resteasy/resteasy-spring/main/bundled/resteasy-spring.jar""
at org.jboss.vfs.VFS.mount(VFS.java:127)
at org.jboss.vfs.VFS.doMount(VFS.java:336)
at org.jboss.vfs.VFS.mountZip(VFS.java:360)
at org.jboss.as.jaxrs.deployment.JaxrsSpringProcessor.deploy(JaxrsSpringProcessor.java:119)
... 6 more
I already tried adding a dependencies in jboss-deployment-structure (META-INF), but i get the same error, both projects are using rest-easy and jackson dependencies.
Any help would be greatly appreciated
This is a bug. For now if you add the context param org.jboss.as.jaxrs.disableSpringIntegration=true to your application it should work around it.

web.xml parsing error while starting liferay 6.2 with jboss 7.1.1

I am trying to migrating from web application (jboss 4.2) to jboss 7.1 with liferay 6.2
I have done some basic configuration .But now I am getting parsing error for web.xml which present in my war. How should I resolve this error in order to update web.xml
error-------
06:05:16,377 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."SupplierPortal.war".PARSE: org.jboss.msc
.service.StartException in service jboss.deployment.unit."SupplierPortal.war".PARSE: Failed to process phase PARSE of deployment "SupplierPortal.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
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]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_22]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_22]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018014: Failed to parse XML descriptor "/E:/NetUploadedLiferay/liferay-portal-6.1.2-ce-ga
3/jboss-7.1.1/standalone/deployments/SupplierPortal.war/WEB-INF/web.xml" at [4,2]
at org.jboss.as.web.deployment.WebParsingDeploymentProcessor.deploy(WebParsingDeploymentProcessor.java:114)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Please help me...?

IllegalArgumentException when I use ActiveMQ in JBoss AS 7

I get the next error after run jboss 7 in standalone.
16:09:35,699 ERROR [org.jboss.msc.service] (MSC service thread 1-7) MSC00002: Invocation of listener "org.jboss.as.connector.deployers.processors.ParsedRaDeploymentProcessor$1#20863d22" failed: java.lang.IllegalArgumentException: JBAS014809: A node is already registered at '(deployment => activemq-rar-5.7.0.rar)' at org.jboss.as.controller.registry.ConcreteResourceRegistration.registerSubModel(ConcreteResourceRegistration.java:108) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.controller.registry.AbstractResourceRegistration.registerSubModel(AbstractResourceRegistration.java:68) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.controller.registry.AbstractResourceRegistration.registerOverrideModel(AbstractResourceRegistration.java:97) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.connector.deployers.processors.ParsedRaDeploymentProcessor$1.transition(ParsedRaDeploymentProcessor.java:181) [jboss-as-connector-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954) [jboss-msc-1.0.2.GA.jar:1.0.2.GA] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31] at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
Anybody Can help me to resolve this issue?
This is a bug in 7.1.1.Final.jar. It's because there are two ironjacamar.xml files in the path. I was able to get this to work using ailed: Jboss AS 7.2.0.Alpha1-SNAPSHOT