Message Boards

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
XMLPF Linux installation
Answer
3/13/13 10:21 AM
Hello,
It's me again emoticon

I was trying to install my portlets in a Linux environment so I copied all the two folders
liferay-plugins-sdk-6.1.1 & liferay-portal-6.1.1-ce-ga2 from windows to /opt/portal
and I started my ./standalone.sh and it worked perfectly but when I want to create a portlet from ./create.sh I have this message

BUILD FAILED
/opt/Portal/liferay-plugins-sdk-6.1.1/XMLPortletFactory/build.xml:36: The following error occurred while executing this line:
/opt/Portal/liferay-plugins-sdk-6.1.1/XMLPortletFactory/build.xml:84: /opt/Portal/bundles/tomcat-7.0.27/webapps/ROOT/WEB-INF/tld does not exist.


after this I copied the tomcat to bundles and it created the portlet BUT when I try to make ant in the folder I get these errores :

BUILD FAILED
/opt/Portal/liferay-plugins-sdk-6.1.1/XMLPortletFactory/tesP-xmlportletfactory/build.xml:25: The following error occurred while executing this line:
/opt/Portal/liferay-plugins-sdk-6.1.1/build-common-plugin.xml:229: /opt/Portal/liferay-plugins-sdk-6.1.1/portlets/tesP-portlet/bundles/tomcat-7.0.27/lib/ext does not exist.


I have done the following export :

export JAVA_HOME=/opt/jre/
export ANT_HOME=/opt/apache-ant-1.8.4/
export LIFERAY_HOME=/opt/Portal/liferay-portal-6.1.1-ce-ga2/
export PATH=${ANT_HOME}/bin:${JAVA_HOME}/bin:${PATH}:${LIFERAY_HOME}/jboss-7.1.1/bin

What should I do ?

Thanks alot

RE: XMLPF Linux installation
Answer
3/13/13 12:31 PM as a reply to Mido Me.
 Hola Mido,

       This type of questions maybe you should post them on Liferay forums, anyway, for the data you provide it seems that you have a problem with the folder names, looks that you have "portal" in some place and "Portal" in another, or probably you didn't change your configuration files ( look at *.properties )

        Saludos, Jack.

RE: XMLPF Linux installation
Answer
3/13/13 12:49 PM as a reply to Jack A. Rider.
Hola Jack,

I see but the problem is like I said Liferay runs normally, It's when I try to crate a portlet with ./create.sh

and the problem of portal & Portal it was a typo from me ( I have the correct name in folders)

my xmlportletfactory.properities

#Mon Nov 12 13:57:23 CET 2012
generate_for_sdk_version=6.1.x
xmlportletfactory_porletsdir=/opt/Portal/liferay-plugins-sdk-6.1.1/portlets
xmlportletfactory_lastxml=/opt/Portal/liferay-plugins-sdk-6.1.1/XMLPortletFactory/Resources/xml/

and my .proprities file in liferay I have only the database connection

So, I think it's a problem coming from the environment  (changing from windows 2 linux ?)

Is there any other files to change ?

Thanks alot

RE: XMLPF Linux installation
Answer
3/13/13 1:02 PM as a reply to Mido Me.
Hola Mido,
 
        Yes, probably the most important for your builds is in the SDK folder and is called build."your user here".properties.


   Saludos, Jack.

RE: XMLPF Linux installation
Answer
3/13/13 3:57 PM as a reply to Jack A. Rider.
thanks a lot
I fixed it by modifying the .properties file emoticon