Foros de discusión
Ошибка при деплое
Sergey St., modificado hace 8 años.
Ошибка при деплое
New Member Mensajes: 10 Fecha de incorporación: 15/04/15 Mensajes recientes
Доброго времени суток!
При переустановке системы и Liferay перестал работать deploy в Ant из Eclipse, выдавая следующую ошибку:
Система Win 7, Liferay 6.2.0, Java 1.7.0_79, java_home и ant_home прописаны, properties аналогичны предыдущим.
Я понимаю, ошибка, возможно, простейшая и мне кажется знакомой, но никак не могу вспомнить, как она лечится. Буду признателен за помощь)
При переустановке системы и Liferay перестал работать deploy в Ant из Eclipse, выдавая следующую ошибку:
Buildfile: C:\liferay-workspace\6.2.0\plugins-sdk\portlets\Query-portlet\build.xml
BUILD FAILED
C:\liferay-workspace\6.2.0\plugins-sdk\portlets\Query-portlet\build.xml:5: The following error occurred while executing this line:
C:\liferay-workspace\6.2.0\plugins-sdk\portlets\build-common-portlet.xml:5: The following error occurred while executing this line:
C:\liferay-workspace\6.2.0\plugins-sdk\build-common-plugin.xml:5: The following error occurred while executing this line:
C:\liferay-workspace\6.2.0\plugins-sdk\build-common.xml:87: taskdef A class needed by class com.liferay.ant.bnd.BaselineJarTask cannot be found: aQute/bnd/ant/BaseTask
using the classloader AntClassLoader[C:\liferay-workspace\6.2.0\plugins-sdk\dependencies\com.liferay.ant.bnd\lib\com.liferay.ant.bnd.jar]
Total time: 1 second
Система Win 7, Liferay 6.2.0, Java 1.7.0_79, java_home и ant_home прописаны, properties аналогичны предыдущим.
Я понимаю, ошибка, возможно, простейшая и мне кажется знакомой, но никак не могу вспомнить, как она лечится. Буду признателен за помощь)
Alexey Kakunin, modificado hace 8 años.
RE: Ошибка при деплое
Liferay Master Mensajes: 621 Fecha de incorporación: 7/07/08 Mensajes recientes
А в командной строке сборка работает - или такая же ошибка?
Sergey St., modificado hace 8 años.
RE: Ошибка при деплое
New Member Mensajes: 10 Fecha de incorporación: 15/04/15 Mensajes recientes
Да, ошибка та же.
ildar sl, modificado hace 8 años.
RE: Ошибка при деплое
Regular Member Mensajes: 158 Fecha de incorporación: 12/12/11 Mensajes recientes
нужно переопределить папку лайфрея. По умолчанию как-то "../bundles".
Создай в папку SDK файд build.USER.properties c содер:
Создай в папку SDK файд build.USER.properties c содер:
app.server.portal.dir = C:\\liferay-workspace\\bundles\\tomcat-7.0.27\\webapps\\ROOT
app.server.parent.dir = C:\\liferay-workspace\\bundles
app.server.lib.global.dir = C:\\liferay-workspace\\bundles\\tomcat-7.0.27\\lib\\ext
app.server.deploy.dir = C:\\liferay-workspace\\bundles\\tomcat-7.0.27\\webapps
app.server.type = tomcat
app.server.dir = C:\\liferay-workspace\\bundles\\tomcat-7.0.27
Sergey St., modificado hace 8 años.
RE: Ошибка при деплое
New Member Mensajes: 10 Fecha de incorporación: 15/04/15 Mensajes recientes
ildar sl, modificado hace 8 años.
RE: Ошибка при деплое
Regular Member Mensajes: 158 Fecha de incorporación: 12/12/11 Mensajes recientes
c:\liferay-workspace\plugins-sdk\dependencies\com.liferay.ant.bnd\lib\com.liferay.ant.bnd.jar на месте?
Sergey St., modificado hace 8 años.
RE: Ошибка при деплое
New Member Mensajes: 10 Fecha de incorporación: 15/04/15 Mensajes recientes
Да.
ildar sl, modificado hace 8 años.
RE: Ошибка при деплое
Regular Member Mensajes: 158 Fecha de incorporación: 12/12/11 Mensajes recientes
Что то мне кажется это sdk для liferay 7? Не? Версия sdk точно совпадает?
Sergey St., modificado hace 8 años.
RE: Ошибка при деплое
New Member Mensajes: 10 Fecha de incorporación: 15/04/15 Mensajes recientes
Совпадает.
ildar sl, modificado hace 8 años.
RE: Ошибка при деплое
Regular Member Mensajes: 158 Fecha de incorporación: 12/12/11 Mensajes recientes
Хз. Какой компилятор?
Попробуй так:
ant.build.javac.source=1.7
ant.build.javac.target=1.7
#javac.compiler=modern
javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
Попробуй так:
ant.build.javac.source=1.7
ant.build.javac.target=1.7
#javac.compiler=modern
javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
Sergey St., modificado hace 8 años.
RE: Ошибка при деплое
New Member Mensajes: 10 Fecha de incorporación: 15/04/15 Mensajes recientes
Спасибо за помощь. К сожалению, все решилось радикально - скачиванием новых версий с сайта, но все работает с идентичными настройками. Скорее всего ошибка связана с изменениями в build-common.xml.
Daniel Breitner, modificado hace 8 años.
RE: Ошибка при деплое
Regular Member Mensajes: 105 Fecha de incorporación: 16/07/08 Mensajes recientes
greetings from germany.
I had the exact same issue, even though I don´t know why.
I solved it by adding
<fileset dir="${sdk.dir}/dependencies/aQute.bnd/lib" includes="*.jar" />
to line #86 in the file build-common.xml of my plugins-sdk.
I honestly don´t know why it is missing.
I had the exact same issue, even though I don´t know why.
I solved it by adding
<fileset dir="${sdk.dir}/dependencies/aQute.bnd/lib" includes="*.jar" />
to line #86 in the file build-common.xml of my plugins-sdk.
I honestly don´t know why it is missing.
Alexey Kakunin, modificado hace 8 años.
RE: Ошибка при деплое
Liferay Master Mensajes: 621 Fecha de incorporación: 7/07/08 Mensajes recientes
Daniel, hi! Nice to meet you in our small russian corner!
Thank you for note - missing of this string really may be an issue!
Thank you for note - missing of this string really may be an issue!
Daniel Breitner, modificado hace 8 años.
RE: Ошибка при деплое
Regular Member Mensajes: 105 Fecha de incorporación: 16/07/08 Mensajes recientes
Hi Alexey,
I have to thank you - you were the only ressource I found when I googled for this issue
I have to thank you - you were the only ressource I found when I googled for this issue