Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Error on deployment
Hello,
Since this morning i can't deploy my portlet any more. It's an old server on liferay 5.2.3.
When I use Plugin Installer > upload file I have this error :
Expanding: /opt/glassfish3/glassfish/domains/domain1/deploy/saturne-portlet-resa.war into /tmp/20210310165132187|#]
[#|2021-03-10T16:51:32.700+0100|INFO|oracle-glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=75;_ThreadName=Thread-2;| Copying 1 file to /tmp/20210310165132187/WEB-INF/classes|#]
[#|2021-03-10T16:51:32.702+0100|INFO|oracle-glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=75;_ThreadName=Thread-2;| Copying 1 file to /tmp/20210310165132187/WEB-INF/classes|#]
[#|2021-03-10T16:51:32.732+0100|SEVERE|oracle-glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=75;_ThreadName=Thread-2;|com.liferay.portal.kernel.xml.DocumentException: Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:343)
at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:126)
at com.liferay.portal.tools.deploy.PortletDeployer.setupJSF(PortletDeployer.java:479)
at com.liferay.portal.tools.deploy.PortletDeployer.getExtraContent(PortletDeployer.java:150)
at com.liferay.portal.tools.deploy.BaseDeployer.updateWebXml(BaseDeployer.java:1280)
at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:459)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:739)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:676)
at com.liferay.portal.tools.deploy.BaseDeployer.deploy(BaseDeployer.java:407)
at com.liferay.portal.deploy.auto.PortletAutoDeployer.autoDeploy(PortletAutoDeployer.java:99)
at com.liferay.portal.deploy.auto.PortletAutoDeployListener.deploy(PortletAutoDeployListener.java:84)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:196)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:144)
at com.liferay.portal.kernel.deploy.auto.AutoDeployScanner.run(AutoDeployScanner.java:60)
|#]
[#|2021-03-10T16:51:32.733+0100|SEVERE|oracle-glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=75;_ThreadName=Thread-2;| at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:343)|#]
[#|2021-03-10T16:51:32.733+0100|SEVERE|oracle-glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=75;_ThreadName=Thread-2;| at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:126)|#]
[#|2021-03-10T16:51:32.733+0100|SEVERE|oracle-glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=75;_ThreadName=Thread-2;| at com.liferay.portal.tools.deploy.PortletDeployer.setupJSF(PortletDeployer.java:479)|#]
[#|2021-03-10T16:51:32.733+0100|SEVERE|oracle-glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=75;_ThreadName=Thread-2;| at com.liferay.portal.tools.deploy.PortletDeployer.getExtraContent(PortletDeployer.java:150)|#]
Last month I don't have any problem with the same war.
Can someone have an idea?
Thanks a lot!
Aurélie
I would check the filesystem as it seems that for some reason some of the xml files is damaged of the portlet.
Dear Aurélie B,
Thank you for participating in the Liferay
Community. Your post is currently awaiting moderation
and will not be visible to other posters.
Also please note you are limited to 3 posts
per hour and 50 posts per day. Exceeding the post
limit will temporarily disable posting.
One of our moderators will review your post shortly.
Sincerely,
Webmaster
webmaster@community.liferay.com
http://liferay.dev:8080
I resolved my problem, if that could help someone :
- in sun-web.xml
i replace :
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.5//EN"
"http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
by
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.5//EN"
" http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
- in faces-config.xml
i've removed
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
in
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
version="1.2">
Powered by Liferay™