ant,liferay,liferay-6,portlet,orbeon , Issue while deploying the Orbeon Form builder portlet

Issue while deploying the Orbeon Form builder portlet


Tag: ant,liferay,liferay-6,portlet,orbeon

I want to deploy the Form Runner separately, For the same reason I tried to create the proxy-portlet with reference to the following link,

I tried the following command to generate the Proxy-Portlet, ant proxy-portlet-war

The build gets success and generated the war file (orbeon-4.7.0.pre.20150129-proxy-portlet.war) then I renamed the war file to proxy-portlet.war

Then I tried to deploy the proxy-portlet.war file on Liferay by copying the war file in deploy folder and started the server. While deploying the war file, I am getting the following error.

INFO: Deploying web application directory E:\OpenXava\liferay-portal-6.2-ce-ga2\tomcat-7.0.42\webapp
14:48:33,265 INFO  [localhost-startStop-2][HotDeployEvent:130] Plugin proxy-portlet requires marketp
14:48:33,266 INFO  [localhost-startStop-2][HotDeployImpl:198] Deploying proxy-portlet from queue
14:48:33,267 INFO  [localhost-startStop-2][PluginPackageUtil:1016] Reading plugin package for proxy-
14:48:33,275 ERROR [localhost-startStop-2][HotDeployImpl:211]
otDeployException: Error registering plugins for proxy-portletproxy-portlet Error registering plugins for proxy-portlet

        at com.liferay.portal.kernel.servlet.PluginContextListener.fireDeployEvent(PluginContextList
        at com.liferay.portal.kernel.servlet.PluginContextListener.doPortalInit(PluginContextListene
        at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(
        at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(
        at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(
        at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLife
        at com.liferay.portal.kernel.servlet.PluginContextListener.contextInitialized(PluginContextL
        at org.apache.catalina.core.StandardContext.listenerStart(
        at org.apache.catalina.core.StandardContext.startInternal(
        at org.apache.catalina.util.LifecycleBase.start(
        at org.apache.catalina.core.ContainerBase.addChildInternal(
        at org.apache.catalina.core.ContainerBase.addChild(
        at org.apache.catalina.core.StandardHost.addChild(
        at org.apache.catalina.startup.HostConfig.deployDirectory(
        at org.apache.catalina.startup.HostConfig$
        at java.util.concurrent.Executors$
        at java.util.concurrent.FutureTask$Sync.innerRun(
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.RuntimeException: The moduleId /proxy-portlet/6.2.1/war is not correct
        at com.liferay.portal.plugin.ModuleId.<init>(
        at com.liferay.portal.plugin.ModuleId.getInstance(
        at com.liferay.portal.plugin.PluginPackageImpl.<init>(
        at com.liferay.portal.plugin.PluginPackageUtil._readPluginPackageProperties(PluginPackageUti
        at com.liferay.portal.plugin.PluginPackageUtil._readPluginPackageServletContext(PluginPackag
        at com.liferay.portal.plugin.PluginPackageUtil.readPluginPackageServletContext(PluginPackage
        ... 24 more
29 Jan, 2015 2:48:33 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
14:48:33,307 INFO  [localhost-startStop-2][PortletHotDeployListener:343] Registering portlets for pr
 INFO [org.orbeon.private.orbeon.embedding] initializing Form Runner proxy portlet
14:48:33,718 INFO  [localhost-startStop-2][PortletHotDeployListener:490] 1 portlet for proxy-portlet
 is available for use

What is the issue? Did I miss some configuration? How do I resolve the issue.


I don't know why the error appears but the portlet deploys anyway, at least that's what I have observed. If it doesn't, try restarting Liferay.


Any way to write Ant Script to enter multiple input from directory and run them in parallel

I want to write a script which takes input from directory all the adapters and build the adapters in parallel. I just want a generic script which works with every mobile first code to build adapters. <target name="build-adapter"> <dirset id="check" dir="/Users/admin/Documents/workspace1/MyTime/adapters" includes="*"/> <property name="test" refid="check"/> <echo>${test}</echo> <parallel> <adapter-builder folder="/Users/admin/Documents/workspace1/MyTime/adapters/${test}"...

how do you download files via ant though proxy [duplicate]

This question already has an answer here: Ant GET task and proxy 1 answer I am using ant which uses an build.xml file. This is the command: java version : 1.8.0 ant version: 1.7.1 CLASSPATH=/app/hbase-0.94.27/lib/hadoop-core-1.0.4.jar CFLAGS=-m64 CXXFLAGS=-m64 ant compile-native tar it hangs here: Buildfile: build.xml ivy-download: [get] Getting:

Service builder doesn't delete table in DB

Hi all, I'm using LR 6.1. I created a new entity Called " Recommendation" in service.xml then a run BuildServices with Ant to generate the service builder Files. Now I want to delete the Entity. So I Deleted if from service.xml, but nothing happens in Data base and the other...

Java - Check properties file at compile time

I need some advices from you today. I am working on a project which uses a huge constants holding class. There are lots of public static final String CONST_NAME = "const_value"; I am getting those using MyConstClass.CONST_NAME but now I need to externalise them in order to configure the project....

javadoc Illegal package name

I am trying to build this project . Built with: ant -buildfile build.xml However I get the following error: [javadoc] javadoc: error - Illegal package name: "/home/bionix/Desktop/gs-collections/collections-api/target/generated-sources/java/com/gs/collections/api/block/function/primitive/" [javadoc] javadoc: error - Illegal package name:...

how to bypass the necessity of having to have email address firstname and lastname in liferay to import authenticating users

My application uses liferay to connect to LDAP server and import authenticating users. But many of the user records in the ldap schema doesn't have email id. This seems to be preventing me from importing these users as liferay requires email id, among other things, inorder to successfully import new...

SQL data export

I have the below script to execute SQL file. <target name="dataExcel" > <sql classpath="/ojdbc14.jar" driver="oracle.jdbc.driver.OracleDriver" url="jdbc:oracle:thin:@localhost:1521:orcl" userid="scott"password="tiger" src="/generateData.sql" /> </target> Is it possible to spool data to Excel file? I need to automate SQL data export to Excel using script. Edit 1 <project name="xlsx task"> <taskdef name="xlsx" classname="" classpath="PATH/TO/ant4x.jar"/> <target...

Creating an ANT macro to combine two properties file

Suppose that I have two properties file (say and which contains key value pair. How to write ANT task to create a new properties file (say which contains the key value pair of both these files(a and b). Please help.

Ant debug and ant release failed

I am trying to generate apk on command line using ant. I am able to use ant clean but for ant debug and ant release command I am getting following error. BUILD FAILED C:\Android\sdk\tools\ant\build.xml:649: The following error occurred while executing this line: C:\Android\sdk\tools\ant\build.xml:694: Execute failed: Cannot run program "C:\Workspace\SampleApp\${aapt}":...

Customizing My Sites portlet in Liferay

I want to customize My Sites portlet (which is out of box portlet) in liferay using ext. How do I do this? How do I get the source code for the my sites portlet?

How can I change the zIndex attribute of aui-datepicker in Liferay Portlet 6.2

I have discoveder one problem with date field in portlet in LF 6.2. The problem is that after clicking on the input field, the datepicker is displaying, but with zIndex=0, that means it is under the portlet. If I change on firebug that parameter to 1, everything is OK. I...

How to pass data from page to Portlet class through AJAX call?

I'm trying to pass a value in an AJAX 'GET' request to my Portlet class, but I can't quite figure out a way to access such variable's value in the class. My AJAX code is: function loadXMLDoc() { var nocache = new Date().getTime(); var xmlhttp=new XMLHttpRequest(); var url = "${mURL}";...

MobileFirst Platform native iOS app building have error while building .wlapp

I am working on MobileFirst Platform version7 using ant script to build the project .war, .wlapp, .adapter. Everything was working fine while our project was a hybrid one. Now the project is migrated to native-iOS in. I am using following code to build .wlapp. <target name="build-wlapp"> <app-builder worklightServerHost="localhost:10080" applicationFolder="//Users/admin/Documents/workspace/NewProj/apps/Try" environments="iOSnative"...

ant LinkageError without includeantruntime

How can I prevent the AntClassLoader and URLClassLoader from causing a linkage error? Due to an older project, junit and hamcrest.core are put into ANT_HOME and our build uses includeantruntime=true in order to run unit tests. I am now working on a project built with ant where I don't want...

what is the process of the running the java files that are present in testng xml using ANT

I want to know the process of running the java files that are mentioned in testng.xml using ANT. Do we have to compile those java files first and then run it? Or the testng ANT task takes care of compiling and running? I have gone through the testng ANT task...

Get list of users in liferay

I want to display users list on liferay. and I am having problem with it. Here is my action class. public void userList(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException { // Todo Logic for user code try { int countUser = UserLocalServiceUtil.getUsersCount();"User Present In DB" + countUser); List < User...

Cons of a liferay cms while website development using Community Edition

I am new to LIFERAY CMS. i need cons of a liferay cms i.e., difficulties faced while developing and using liferay cms. can you please list cons of liferay cms.

MobileFirst app build - failed creating temporary directory to build adapter

I have working command line build setup for my MobileFirst application. However today when I ran a build, I got following error: BUILD FAILED C:\...\build.xml:29: Failed creating temporary directory to build adapter What might be the cause of this error? I'm running the build via ant: ant build Relevant part...

Difference between Liferay Mobile SDK and Liferay Screens

Can someone tell me the difference between Liferay Mobile SDK and Liferay Screens? Thanks a lot....

Users in Guest role see default theme instead custom one for given layouts

Users in Guest role see default theme instead custom one for pages which inherit from defined custom theme. This seems to be very strange problem. Even though layouts have specified to inherit theme from parent theme: Use the same look and feel of the Public Pages. Guests see them as...

JUnit 4.11 not showing parameter value but index

We have a project with a number of JUnit testclasses that has been using the Eclipse internal JUnit implementation until recently. In order to run our tests from the ant build script we have changed the build path for our project to use an external junit-4.11.jar and the required hamcrest-core...

how to use excludesfile/includesfile in ant zip task

I need to specify a list of specific files to exclud but when I try something like excludesfile="file1, file2" I get an error executing the task saying: C:\Users.....\Desktop\testProject\ Excludesfile C:\Users......\Desktop\testProject\file1, file2 not found. Here is my code: <target name="jar" depends="common.jar"> <zip destfile="${}/some-jar.jar" basedir="${base.dir}" includes="src/**,gradle/**" excludesfile="file1,file2"> </zip> </target> ...

Form submit portlet with Spring MVC

I'm trying to achieve a Liferay portlet of submit form using spring MVC. The model: package com.model; public class Person { String firstName; String middleName; public String getFirstName() { return this.firstName; } public String getMiddleName() { return this.middleName; } public void setFirstName(String firstName) { this.firstName=firstName; } public void setMiddleName(String middleName)...

How to create service builder for liferay plugin project with maven

I have Already create Liferay Plugin project. and maven install also over. it gives ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] --------------------------------------------------------------------- [INFO] Total time: 1:29.773s [INFO] Finished at: Wed Jun 17 15:46:10 IST 2015 [INFO] Final Memory: 34M/151M [INFO] -----------------------------. But unable to add service builder. When i try to add...

How do you determine within Ant whether verbose is enabled?

Within an ant build.xml, I want to influence a child process's verbose flag based on whether ant itself was run with verbose enabled. Is there a variable set to determine this? Or otherwise, can I parse the raw Ant command line somehow to check whether -v is passed?

Running an Ant target under certain conditions

I have the following Ant targets in my project.xml: <target name=""> </target> <target name="deploy1"> <antcall target="deploy2"/> </target> <target name="deploy2"> <antcall target=""/> </target> <target name=""> <antcall target="deploy1"/> </target> My intent is to be able to exclude the target when running I am not very familiar with ANT and I...

How to upload file in relative directory

I have made a application where we can upload any file which will save in our local given directory. I want to modify it, i want to add a drop down (with multiple option i.e floor, store, section) for department. i.e if we want to upload a file in 'Store'...

Any way to make Groovydoc remove (selected) package qualifiers as per Javadoc's 'noqualifier' option?

I've just started generating Groovydoc for a library I'm working on. However, the preponderance of java.lang and java.util and other common package prefixes in the method signatures is obscuring the real intent of the methods. I'd like to be able to generate the Groovydoc without these. As in the (made...

Ant places stacktraces in standard output

I am using Ant, together with tasks I have created myself. When those custom ant tasks fail, their output is redirected to stdout. I want them to be redirected to stderr. A simple full generic Ant example is : <project name="test" default="init" basedir="."> <!-- Initialise project parameters --> <target name="init">...

Cordova build fails, can't find ${appt}

The command cordova build android fails with the following output BUILD FAILED F:\Programs\SDK\tools\ant\build.xml:597: The following error occurred while executing this line: F:\Programs\SDK\tools\ant\build.xml:649: The following error occurred while executing this line: F:\Programs\SDK\tools\ant\build.xml:694: Execute failed: Cannot run program "F:\code\asistenciaBT\platforms\android\CordovaLib\${aapt}" (in directory "F:\code\asistenciaBT\platforms\android\CordovaLib"): CreateProcess error=2, El sistema no puede...

Unexpected top level exception: bad class file magic, in Android

I am trying to compile my android program via command line, using ANT. And the code compiles fine. But when the target -dex is executed, I get the following error: [dex] input: /Users/aditya/Desktop/workspace/Java/Play/bin/classes [dex] input: /Library/Java/Android/tools/support/annotations.jar [dex] Using Pre-Dexed annotations-5bd0afe28d834ceff67df1063f0f145b.jar <- /Library/Java/Android/tools/support/annotations.jar [dex] Converting compiled files and external libraries into...

Ant build should wait for a child process to complete

Hi I am new to ant and I have written a target which spawns a child process . Here I want the ant to wait until the child process is completed. How can I do that ? Can anyone please help me <target name = "buildtarget" depends="load-props"> <property name="targetname" value="build"/>...

Netbeans build.xml to execute when using Ant

I'm relatively new to using build files and Ant to compile and execute from a command line so i wanted to know how it would be possible to modify the build-impl.xml file auto generated from netbeans so that after it compiles it also executes the program. Currently when i type...

In liferay market place, I am unable to submit the project

In Liferay market place i am stuck at the place "Upload Liferay Plugin Packages " When ever i am trying to upload a war file Please help me to short it out :)...

Using ant.replace in gradle

I want to use ant's replace task to replace token in one of the files like this: version.txt version.number=${versionNumber} build.gradle task writeVersion { ant.replace { file 'version.txt' token 'versionNumber' value '1.0.0' } } but it is giving me following error :- A problem occurred evaluating root project '1.01-Exercise-RunYourFirstTask'. > replace...

Create build.xml file independant of the location of the libraries on a computer

In order to generate a war file , I've created a build.xml file via eclipse. The build.xml is as shown below: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- WARNING: Eclipse auto-generated file. Any modifications will be overwritten. To include a user specific buildfile here, simply create one in the same directory with...

Copy subdirectories if they contain a specific file in Ant

Really new to Ant and I have been trying to figure that out but could not... Let say I have a structure like that : Root |-data |-dir1 |-include.xml |-subdir1 |-file1 |-file2 |-include.xml |-subdir2 |--dir2 |-file1 |-include.xml |--dir3 |--dir4 |-file1 |-include.xml |--dir5 |-build.xml |-other files I'd like to copy the...

commandButton action method not invoked in Liferay

I've the below portlet view.xhtml: <?xml version="1.0"?> <f:view xmlns="" xmlns:c="" xmlns:f="" xmlns:h="" xmlns:ui="" xmlns:p=""> <h:body> <h:form> <h:commandButton value="TESTButton" action="#{navigationViewBean.submit}" /> <h:outputText value="TESTGetter: #{navigationViewBean.testField}" /> </h:form>...

Moving a command to the background halfway through execution in Bash

I'm working on a bash script that starts multiple other shell scripts some of which terminate on their own, some of which run indefinitely until terminated. I'm looking for a way to move the execution of one of these subprocesses to the background only after a certain line of output...

AJAX Call not working in liferay 6.2.2?

I am trying to perform a AJAX Call. But what i get is ResourceURL as undefined when i see the error in chrome. Below is my code. Declaration: <liferay-portlet:resourceURL copyCurrentRenderParameters="<%= false %>" var="mainURL" /> Implementation:"POST", resourceURL , false); But at implmentation i get resourceURL as undefined. In 6.1 it...

Incorrect liferay-plugins dependency

In following dependency is defined: dependencies { classpath group: "com.liferay.portal", name: "portal-service", version: "7.0.0-SNAPSHOT" } How can a 6.2.x version have a dependency on 7.0.0 version? Is it a bug? When I peek to the history of the file, the dependency has always been there. I am not able...

How manage styles in Vaadin portlet in Liferay

I have a Portlet, where is used Valo theme. Most graphical components are displayed properly, but TextField not. It should have rounded border radius and height should be about 35px. It has normally about 15px and the field is angular. When I narrow width of browser window to about 200px...

Compile with ant classpath issue with JUnit

I am having a compile issue with ant, junit.jar cannot be found here is my build file: <path id="lib"> <fileset dir="library"> <include name="*.jar" /> </fileset> </path> <target name="test"> <mkdir dir="tmp/reports" /> <mkdir dir="tmp/build" /> <javac srcdir="test" destdir="tmp/build" includeantruntime="false"> <classpath refid="lib" /> </javac> <echo message="Build done" /> <junit fork="yes" haltonfailure="yes"> <batchtest...

how do you run ant

I am trying to build a jar file using ant like this: CLASSPATH=/files/hadoop-core-1.0.4.jar CFLAGS=-m64 CXXFLAGS=-m64 ant compile-native tar I keep getting this error: Error: Could not find or load main class ant --execdebug show this: exec "/usr/java/jdk1.8.0_25/bin/java" -classpath "/usr/bin/build-classpath: error: JAVAVER_LIBDIR /usr/share/java-1.8.0 does not exist or is not a...

Cannot compile Java adapter using adapter-builder task (ANT) in MFP v7

We have been using the adapter-builder task ( to compile our MFP adapters for several weeks. We just started now adopting Java adapters in our MFP apps but we cannot compile them with the adapter-builder task. Looking at the compilation errors in the output, it seems the adapter-builder task does...

Via Windows command line, how can we compile a Netbeans C/C++ application?

Let's take this simple C/C++ application Netbeans project folder. In Netbeans IDE, we just hit build button on the toolbar to build the application. I want to do that automatically via Windows command line, how can I do that? I did google, and found some related posts though not very...

Lifefay freemarker ADT: methods unavailable?

I'm trying to work on some ADT for asset publisher (Documents and Media type), but I often have a message telling me that : Expression assetRenderer.getDataRepositoryId is undefined or Expression assetRenderer.getFileEntryId is undefined I found some threads where people said that we must add velocity.engine.restricted.classes= velocity.engine.restricted.variables= freemarker.engine.restricted.classes= freemarker.engine.restricted.variables= in

Include ftl file in ext plugin

I have ext-plugin and I would like to override this file: portal-impl\src\com\liferay\portlet\dynamicdatamapping\dependencies\ddm\documentlibrary.ftl. After maven build, this file isn't include in my porta-impl-ext.jar. In my portal-impl-ext's pom.xml I have this code: <build> <plugins> <plugin> <groupId>com.liferay.maven.plugins</groupId> <artifactId>liferay-maven-plugin</artifactId> <version>${liferay.maven.plugin.version}</version> <configuration>...

How to ignore Liferay user removed from LDAP errors?

I have a Liferay 6.1 instance that is connected to LDAP. New users get imported nicely, but when I remove a user from the LDAP directory, Liferay starts throwing exceptions when it tries to sync users from LDAP. These seem to be safe to ignore, but they produce several megabytes...

How to pass HTTP request to Web-Service

From my portlet JSP, I am trying to make a Ajax call to web-service. My aim is to pass HTTP request object as a parameter to web-service method. Please suggest.