Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8368525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:24:44+00:00 2026-06-09T13:24:44+00:00

I try to deploy my application on liferay 6.1.1 and get this error (when

  • 0

I try to deploy my application on liferay 6.1.1 and get this error (when i tested this application on 6.0.6 everything is ok). What can it mean?

Caused by: com.liferay.portal.kernel.xml.DocumentException: Error on
line 1 of document : The value following “version” in the XML
declaration must be a quoted string. Nested exception: The value
following “version” in the XML declaration must be a quoted string.

up: I don’t know which file giving this error.
Full log

I don’t know which file giving this error…
All log
[#|2012-08-09T15:12:20.322+0400|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-3;|15:12:20,321 ERROR [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:210] com.liferay.portal.kernel.deploy.auto.AutoDeployException: com.liferay.portal.kernel.xml.DocumentException: Error on line 1 of document : The value following “version” in the XML declaration must be a quoted string. Nested exception: The value following “version” in the XML declaration must be a quoted string.
com.liferay.portal.kernel.deploy.auto.AutoDeployException: com.liferay.portal.kernel.xml.DocumentException: Error on line 1 of document : The value following “version” in the XML declaration must be a quoted string. Nested exception: The value following “version” in the XML declaration must be a quoted string.
at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:201)
at com.liferay.portal.deploy.auto.PortletAutoDeployListener.deploy(PortletAutoDeployListener.java:84)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:193)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:235)
at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:54)
Caused by: com.liferay.portal.kernel.xml.DocumentException: Error on line 1 of document : The value following “version” in the XML declaration must be a quoted string. Nested exception: The value following “version” in the XML declaration must be a quoted string.
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:399)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:378)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:409)
at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:155)
at com.liferay.portal.tools.WebXMLBuilder.organizeWebXML(WebXMLBuilder.java:60)
at com.liferay.portal.tools.deploy.BaseDeployer.updateWebXml(BaseDeployer.java:2078)
at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:576)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:957)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:889)
at com.liferay.portal.tools.deploy.BaseDeployer.autoDeploy(BaseDeployer.java:198)
… 4 more
Caused by: org.dom4j.DocumentException: Error on line 1 of document : The value following “version” in the XML declaration must be a quoted string. Nested exception: The value following “version” in the XML declaration must be a quoted string.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:396)
… 13 more
|#]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:24:45+00:00Added an answer on June 9, 2026 at 1:24 pm

    The issue may be with your web.xml file. I had a similar issue with a portlet that worked fine under 6.1GA1 but not 6.1GA2. When Liferay deploys portlets (and hooks, etc.), it rewrites the file and others to add filters, libraries, etc. So the error is probably not with the file as you originally created it, but with what Liferay generated.

    In my case, Liferay changed the first part of web.xml from

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    

    to something like

    <?xml version=<filters>[other stuff]</filters>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    

    So it was a modified first line that caused the problem. I had some XML commented out using <!-- --> and removing those sections fixed the problem. But it’s a bug IMHO.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get this error when I try to deploy to Google AppEngine: com.google.apphosting.utils.config.AppEngineConfigException: XML
When I try to deploy my app with capistrano, I'll get this error: failed:
I would like to try out Capistrano to deploy a PHP application but can't
I am getting this error when I try to deploy my Web API project
Hello I get this error when I do cap deploy:cold. * executing cd /var/www/myapp.no/releases/20100905130830;
I try to deploy a GWT application, to Google App Engine using NetBeans. I
When i try de deploy my rails application with the command cap deploy it
I try to deploy my .NET MVC Web Application. I have generated the package.
I try to get hibernate 4 running (shipped with JBoss AS 7) and deploy
I'm kind of lost, I try to deploy my application on a shared dreamhost

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.