File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Deploying liferay on JBoss 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deploying liferay on JBoss 7" Watch "Deploying liferay on JBoss 7" New topic
Author

Deploying liferay on JBoss 7

chander shivdasani
Ranch Hand

Joined: Oct 09, 2007
Posts: 206

I've been trying to deploy Liferay on JBoss 7 and have been failing miserably. I followed the usual steps:

  • Downloaded Jboss 7 and liferay.war
  • I copied liferay.way at JBOSS_HOME/standalone/deployments
  • And i ran JBOSS_HOME/bin/standalone.sh






  • I've been getting following errors. Did anyone try doing this before? I would be nice if any of you can share the instructions.





    12:06:02,088 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry ../bin/ in "/content/liferay.war/WEB-INF/lib/jurt.jar" does not point to a valid jar for a Class-Path reference.

    12:06:02,088 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry jaxp-api.jar in "/content/liferay.war/WEB-INF/lib/saaj-api.jar" does not point to a valid jar for a Class-Path reference.

    12:06:02,089 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry jax-qname.jar in "/content/liferay.war/WEB-INF/lib/saaj-api.jar" does not point to a valid jar for a Class-Path reference.

    12:06:02,089 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry activation.jar in "/content/liferay.war/WEB-INF/lib/saaj-api.jar" does not point to a valid jar for a Class-Path reference.

    12:06:02,089 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry servlet.jar in "/content/liferay.war/WEB-INF/lib/saaj-api.jar" does not point to a valid jar for a Class-Path reference.

    12:06:02,089 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry lib/ant.jar in "/content/liferay.war/WEB-INF/lib/truezip.jar" does not point to a valid jar for a Class-Path reference.

    12:06:02,090 WARN [org.jboss.as.server.deployment] (MSC service thread 1-47) Class Path entry lib/lcrypto-jdk14-135.jar in "/content/liferay.war/WEB-INF/lib/truezip.jar" does not point to a valid jar for a Class-Path reference.

    12:06:02,250 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-47) MSC00001: Failed to start service jboss.deployment.unit."liferay.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."liferay.war".PARSE: Failed to process phase PARSE of deployment "liferay.war"

    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

    at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_23]

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_23]

    at java.lang.Thread.run(Thread.java:661) [:1.6.0_23]

    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse "/content/liferay.war/WEB-INF/jboss-web.xml"

    at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.deploy(JBossWebParsingDeploymentProcessor.java:66)

    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

    ... 5 more

    Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[5,2]

    Message: Unexpected element 'class-loading' encountered

    at org.jboss.metadata.parser.util.MetaDataElementParser.unexpectedElement(MetaDataElementParser.java:109)

    at org.jboss.metadata.parser.jbossweb.JBossWebMetaDataParser.parse(JBossWebMetaDataParser.java:182)

    at org.jboss.as.web.deployment.JBossWebParsingDeploymentProcessor.deploy(JBossWebParsingDeploymentProcessor.java:64)

    ... 6 more



    12:06:02,267 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "liferay.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"liferay.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"liferay.war\".PARSE: Failed to process phase PARSE of deployment \"liferay.war\""}}

    12:06:02,268 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) Service status report

    Services which failed to start:

    service jboss.deployment.unit."liferay.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."liferay.war".PARSE: Failed to process phase PARSE of deployment "liferay.war"


    Enjoy, Chander
    SCJP 5, Oracle Certified PL/SQL Developer
    Jaikiran Pai
    Marshal

    Joined: Jul 20, 2005
    Posts: 9317
        
    109

    The jboss-web.xml in AS7 doesn't support the class-loading element.

    [My Blog] [JavaRanch Journal]
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Deploying liferay on JBoss 7
     
    Similar Threads
    want to ran wicket in Jboss
    Where is my wsdl path?
    JBoss AS 7.1.0 + Hibernate 3
    Caused by: javax.persistence.PersistenceException: JBAS011466: PersistenceProvider 'org.apache.openj
    Dependencies : Jboss 7