cancel
Showing results for 
Search instead for 
Did you mean: 

Jboss .war Deployment Error

etech
Champ in-the-making
Champ in-the-making
I am attempting to deploy Alfresco 4.2.c to an existing JBoss AS 7.1.1.Final server. I didn't see any instructions for deploying alfresco 4.2.c to JBoss, though I found a couple outdated instructions:

http://wiki.alfresco.com/wiki/Deploying_Alfresco_on_JBoss
http://fromerick.blogspot.com/2011/12/alfresco-community-edition-40b-install.html

I adapted most of the steps in the above tutorials to differences in JBoss AS 7 to the best of my ability.

Now I am attempting to deploy inflated .war files of alfresco.war and share.war, and upon deploying the alfresco.war, I am receiving the following error:


10:48:12,247 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."alfresco.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."alfresco.war".PARSE: Failed to process phase PARSE of deployment "alfresco.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(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
   at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: java.lang.IllegalArgumentException: JBAS015533: Web Service endpoint org.alfresco.repo.cmis.ws.DMRepositoryServicePort with URL pattern /RepositoryService is already registered. Web service endpoint org.apache.chemistry.opencmis.server.impl.webservices.RepositoryService is requesting the same URL pattern.
   at org.jboss.as.webservices.metadata.model.AbstractDeployment.addEndpoint(AbstractDeployment.java:60)
   at org.jboss.as.webservices.metadata.model.JAXWSDeployment.addEndpoint(JAXWSDeployment.java:27)
   at org.jboss.as.webservices.deployers.WSIntegrationProcessorJAXWS_POJO.processAnnotation(WSIntegrationProcessorJAXWS_POJO.java:94)
   at org.jboss.as.webservices.deployers.AbstractIntegrationProcessorJAXWS.deploy(AbstractIntegrationProcessorJAXWS.java:87)
   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

10:48:12,255 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "alfresco.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"alfresco.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"alfresco.war\".PARSE: Failed to process phase PARSE of deployment \"alfresco.war\""}}
10:48:12,346 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment alfresco.war in 90ms


..Also, just above this error, I get many WARN messages like the below (not sure if they are at all related):


10:48:12,136 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry wstx-asl.jar in "/srv/jboss-as-7.1.1.Final/standalone/deployments/alfresco.war/WEB-INF/lib/jibx-run.jar"  does not point to a valid jar for a Class-Path reference.
10:48:12,140 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jcifs.jar in "/srv/jboss-as-7.1.1.Final/standalone/deployments/alfresco.war/WEB-INF/lib/jtds-1.2.5.jar"  does not point to a valid jar for a Class-Path reference.


Has anyone successfully deployed Alfresco 4.2.c to a JBoss server?

Any suggestions for fixing the above issue?
16 REPLIES 16

mitpatoliya
Star Collaborator
Star Collaborator
Did you repackaged the war file after making changes in the setup?
If yes there are chances it is not repackaged properly as looking at the logs it seems like JBoss is not able to Parse that alfresco.war File.
How you are repackaging it?

etech
Champ in-the-making
Champ in-the-making
Thank you for the reply. All that I did before receiving the above error at deployment was:

1) Rename the .war files to .jar.
2) Extract the .jar files using java -xvf
3) Place the extracted content into a new folder called "alfresco.war" or "share.war"

I did this because my first attempt was simply deploying the unextracted .wars from the zip. Doing that caused these errors instead:

For alfresco.war:


01:07:54,647 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."alfresco.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."alfresco.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "alfresco.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(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
   at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: java.lang.IllegalArgumentException: Given parent is not an ancestor of this virtual file
   at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:116)
   at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:122)
   at org.jboss.vfs.VirtualFile.getPathNameRelativeTo(VirtualFile.java:110)
   at org.jboss.as.server.deployment.module.ManifestClassPathProcessor.createAdditionalModule(ManifestClassPathProcessor.java:193) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
   at org.jboss.as.server.deployment.module.ManifestClassPathProcessor.handlingExistingClassPathEntry(ManifestClassPathProcessor.java:185) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
   at org.jboss.as.server.deployment.module.ManifestClassPathProcessor.deploy(ManifestClassPathProcessor.java:162) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
   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

01:07:54,654 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "alfresco.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"alfresco.war\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"alfresco.war\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"alfresco.war\""}}
01:07:54,656 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment alfresco.war in 2ms



Also, using the unextracted .war files caused classpath warnings for the share.war:


01:07:44,645 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry jaxb1-impl.jar in "/content/share.war/WEB-INF/lib/jaxb-impl-2.1.11.jar"  does not point to a valid jar for a Class-Path reference.
01:07:44,645 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) Class Path entry xbean.jar in "/content/share.war/WEB-INF/lib/rhino-js-1.6R7.jar"  does not point to a valid jar for a Class-Path reference.



Should I be deploying the unextracted .wars or the extracted ones?

mitpatoliya
Star Collaborator
Star Collaborator
You can need to update the war either with the help of ant or if you have software like winzip which can update the war file then also it will be fine.Just need to make sure the updated war file is not corrupted

etech
Champ in-the-making
Champ in-the-making
The .wars that I am using are directly from the official alfresco-community-4.2.c.zip file.

It seems there are some changes needed for deploying Alfresco to JBoss AS 7. All of the documentation I've found is for JBoss 6 or earlier, and JBoss AS 7 has a different structure altogether. Most likely, I am missing a configuration step somewhere, but since I don't have anymore time to spend with the deployment process, I've decided to use the linux installer with Tomcat instead.

Hopefully there will be some good instructions for installing Alfresco on JBoss AS 7 soon.

Thanks for the help anyway.

addiakogiannis
Champ in-the-making
Champ in-the-making
I have the same problem in the same deployment. It is clear in the log that there are 2 WS endpoints that are trying to be registered under the same uri

Caused by: java.lang.IllegalArgumentException: JBAS015533: Web Service endpoint org.alfresco.repo.cmis.ws.DMRepositoryServicePort
with URL pattern /RepositoryService is already registered.
Web service endpoint org.apache.chemistry.opencmis.server.impl.webservices.RepositoryService
is requesting the same URL pattern.
at org.jboss.as.webservices.metadata.model.AbstractDeployment.addEndpoint(AbstractDeployment.java:60)

So propably one has to be turned off (or something must be turned off) or change uri.
Can anyone answer this?

Thanks
Alex

Hi Alex,

did you find a solution for the problem?
I get the same ERROR trying to start alfresco-community-4.2.c on Jboss-as-7.1.1.Final.
I tried to change config files, to move jars,… but nothing has changed.

Does anyone know which could be the problem or how to solve this?
Many Thanks
Silvano

silvano
Champ in-the-making
Champ in-the-making
Hi all,

    I found out that the error is present because Jboss already deploys its own pool of webservices.
I partially solved my problem just commenting out the section:

<subsystem xmlns="urn:jboss:domain:webservices:1.1">
            <modify-wsdl-address>true</modify-wsdl-address>
            <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
            <endpoint-config name="Standard-Endpoint-Config"/>
            <endpoint-config name="Recording-Endpoint-Config">
                <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
                    <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
                </pre-handler-chain>
            </endpoint-config>
        </subsystem>


present in file /standalone/configuration/standalone.xml

Hope this info could help Smiley Happy

Best Regards
    Silvano

Hi silvano


i tried this i commented this lines on my standalone.xml file but i am getting same ERROR.

can u help me is there any other way to solve this issue.

and iam getting following error


14:21:42,740 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."alfresco.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."alfresco.war".PARSE: JBAS018733: Failed to process phase PARSE of deployment "alfresco.war"
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
Caused by: java.lang.IllegalArgumentException: JBAS015533: Web Service endpoint org.apache.chemistry.opencmis.server.impl.webservices.RelationshipService with URL pattern /RelationshipService is already registered. Web service endpoint org.alfresco.repo.cmis.ws.DMRelationshipServicePort is requesting the same URL pattern.
        at org.jboss.as.webservices.metadata.model.AbstractDeployment.addEndpoint(AbstractDeployment.java:60)
        at org.jboss.as.webservices.metadata.model.JAXWSDeployment.addEndpoint(JAXWSDeployment.java:27)
        at org.jboss.as.webservices.deployers.WSIntegrationProcessorJAXWS_POJO.processAnnotation(WSIntegrationProcessorJAXWS_POJO.java:105)
        at org.jboss.as.webservices.deployers.AbstractIntegrationProcessorJAXWS.deploy(AbstractIntegrationProcessorJAXWS.java:92)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        … 5 more

gangadharjwala
Champ in-the-making
Champ in-the-making
iam getting following error from logs

14:21:42,740 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."alfresco.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."alfresco.war".PARSE: JBAS018733: Failed to process phase PARSE of deployment "alfresco.war"
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:127) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]
        at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]
Caused by: java.lang.IllegalArgumentException: JBAS015533: Web Service endpoint org.apache.chemistry.opencmis.server.impl.webservices.RelationshipService with URL pattern /RelationshipService is already registered. Web service endpoint org.alfresco.repo.cmis.ws.DMRelationshipServicePort is requesting the same URL pattern.
        at org.jboss.as.webservices.metadata.model.AbstractDeployment.addEndpoint(AbstractDeployment.java:60)
        at org.jboss.as.webservices.metadata.model.JAXWSDeployment.addEndpoint(JAXWSDeployment.java:27)
        at org.jboss.as.webservices.deployers.WSIntegrationProcessorJAXWS_POJO.processAnnotation(WSIntegrationProcessorJAXWS_POJO.java:105)
        at org.jboss.as.webservices.deployers.AbstractIntegrationProcessorJAXWS.deploy(AbstractIntegrationProcessorJAXWS.java:92)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:120) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
        … 5 more





When i commented the below lines on stnadlone.xml file also i am getting more errors


<subsystem xmlns="urn:jboss:domain:webservices:1.1">

            <modify-wsdl-address>true</modify-wsdl-address>

            <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>

            <endpoint-config name="Standard-Endpoint-Config"/>

            <endpoint-config name="Recording-Endpoint-Config">

                <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">

                    <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>

                </pre-handler-chain>

            </endpoint-config>

        </subsystem>


please help me on this issue