Forums de discussion

"sample-service-builder-portlet" build error

Hui Deng, modifié il y a 13 années.

"sample-service-builder-portlet" build error

New Member Publications: 18 Date d'inscription: 19/09/10 Publications récentes
Hi,

I downloaded the sample service-build-portlet from SVN, but when I deployed it, some Errors showed.

Buildfile: D:\Develop\liferay-plugins-sdk-6.0.2\portlets\sample-service-builder-portlet\build.xml
compile:
merge:
compile-java:
[javac] Compiling 8 source files to D:\Develop\liferay-plugins-sdk-6.0.2\portlets\sample-service-builder-portlet\docroot\WEB-INF\classes
[javac] D:\Develop\liferay-plugins-sdk-6.0.2\portlets\sample-service-builder-portlet\docroot\WEB-INF\src\com\liferay\sampleservicebuilder\service\base\FooLocalServiceBaseImpl.java:19: cannot find symbol
[javac] symbol : class BeanReference
[javac] location: package com.liferay.portal.kernel.bean
[javac] import com.liferay.portal.kernel.bean.BeanReference;
[javac] ^
[javac] D:\Develop\liferay-plugins-sdk-6.0.2\portlets\sample-service-builder-portlet\docroot\WEB-INF\src\com\liferay\sampleservicebuilder\service\base\FooServiceBaseImpl.java:19: cannot find symbol
[javac] symbol : class BeanReference
[javac] location: package com.liferay.portal.kernel.bean
[javac] import com.liferay.portal.kernel.bean.BeanReference;
[javac] ^
[javac] D:\Develop\liferay-plugins-sdk-6.0.2\portlets\sample-service-builder-portlet\docroot\WEB-INF\src\com\liferay\sampleservicebuilder\service\persistence\FooPersistenceImpl.java:18: cannot find symbol
[javac] symbol : class BeanReference
[javac] location: package com.liferay.portal.kernel.bean
[javac] import com.liferay.portal.kernel.bean.BeanReference;
[javac] ^

BUILD FAILED
D:\Develop\liferay-plugins-sdk-6.0.2\build-common-plugin.xml:347: The following error occurred while executing this line:
D:\Develop\liferay-plugins-sdk-6.0.2\build-common.xml:90: Compile failed; see the compiler error output for details.

How to solve this problem? please help me.
Venkat Koppavolu, modifié il y a 13 années.

RE: "sample-service-builder-portlet" build error (Réponse)

Junior Member Publications: 85 Date d'inscription: 26/07/10 Publications récentes
Hi Hug Deng,
I am also getting same exceptions with sdk6.0.5

Problem is with BeanReference.java is located in portal-service.jar in below package
com.liferay.portal.kernel.annotation.BeanReference

not under com.liferay.portal.kernel.bean.BeanReference

Need to change below files

1. FooServiceBaseImpl.java line no: 19
2. FooLocalServiceBaseImpl.java line no: 19
3. FooPersistenceImpl.java line no:18
and Isolation.java is also wrongly pointed i am not able to resolve it.

Simply what I did is builded service again from my end and deployed successfully.

E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5\portlets\sample-service-builde
r-portlet>ant build-service
Buildfile: build.xml

build-service:
[copy] Copying 11 files to E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.
5\portlets\sample-service-builder-portlet\docroot\WEB-INF\classes
[java] Loading jar:file:/E:/Projects/Liferay/RTG/liferay-portal-6.0.5/tomca
t-6.0.26/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/system.properties
[java] Loading jar:file:/E:/Projects/Liferay/RTG/liferay-portal-6.0.5/tomca
t-6.0.26/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/portal.properties
[java] Loading jar:file:/E:/Projects/Liferay/RTG/liferay-portal-6.0.5/tomca
t-6.0.26/webapps/ROOT/WEB-INF/lib/portal-impl.jar!/com/liferay/portal/tools/depe
ndencies/portal-tools.properties
[java] SLF4J: Class path contains multiple SLF4J bindings.
[java] SLF4J: Found binding in [jar:file:/E:/Projects/Liferay/RTG/liferay-p
ortal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib/slf4j-jdk14-1.5.11.jar!/org/s
lf4j/impl/StaticLoggerBinder.class]
[java] SLF4J: Found binding in [jar:file:/E:/Projects/Liferay/RTG/liferay-p
ortal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib/slf4j-log4j12.jar!/org/slf4j/
impl/StaticLoggerBinder.class]
[java] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
[java] Dec 26, 2010 6:22:52 PM net.sf.ehcache.Cache initialise
[java] WARNING: Cache: com.liferay.portal.service.impl.PortletLocalServiceI
mpl has a maxElementsInMemory of 0. In Ehcache 2.0 this has been changed to mea
n a store with no capacity limit. Set it to 1 if you want no elements cached in
memory
[java] 18:22:53,060 INFO [PortalImpl:277] Global lib directory /E:/Project
s/Liferay/RTG/liferay-portal-6.0.5/tomcat-6.0.26/lib/ext/
[java] 18:22:53,064 INFO [PortalImpl:297] Portal lib directory /E:/Project
s/Liferay/RTG/liferay-portal-6.0.5/tomcat-6.0.26/webapps/ROOT/WEB-INF/lib/
[java] Building Foo
[mkdir] Created dir: E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5\portl
ets\sample-service-builder-portlet\docroot\WEB-INF\service-classes
[delete] Deleting: E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5\portlets
\sample-service-builder-portlet\docroot\WEB-INF\lib\sample-service-builder-portl
et-service.jar

compile-java:
[javac] Compiling 19 source files to E:\Projects\Liferay\RTG\liferay-plugins
-sdk-6.0.5\portlets\sample-service-builder-portlet\docroot\WEB-INF\service-class
es
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[zip] Building zip: E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5\port
lets\sample-service-builder-portlet\docroot\WEB-INF\lib\sample-service-builder-p
ortlet-service.jar
[delete] Deleting directory E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5
\portlets\sample-service-builder-portlet\docroot\WEB-INF\service-classes

BUILD SUCCESSFUL
Total time: 12 seconds
E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5\portlets\sample-service-builde
r-portlet>ant deploy
Buildfile: build.xml

compile:

merge:
[copy] Copying 2 files to E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5
\portlets\sample-service-builder-portlet\docroot\WEB-INF\lib
[copy] Copying 1 file to E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5\
portlets\sample-service-builder-portlet\docroot\WEB-INF\tld
[echo] App Server portal URL E:/Projects/Liferay/RTG/liferay-portal-6.0.5/t
omcat-6.0.26/webapps/ROOT/WEB-INF/lib.
[echo] App Server portal plugin.jars URL jstl-api.jar,jstl-impl.jar.
[copy] Copying 5 files to E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5
\portlets\sample-service-builder-portlet\docroot\WEB-INF\lib

compile-java:
[javac] Compiling 11 source files to E:\Projects\Liferay\RTG\liferay-plugins
-sdk-6.0.5\portlets\sample-service-builder-portlet\docroot\WEB-INF\classes
[javac] Note: E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5\portlets\sam
ple-service-builder-portlet\docroot\WEB-INF\src\com\liferay\sampleservicebuilder
\service\persistence\FooPersistenceImpl.java uses unchecked or unsafe operations
.
[javac] Note: Recompile with -Xlint:unchecked for details.
[copy] Copying 1 file to E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5\
portlets\sample-service-builder-portlet\docroot\WEB-INF\classes

merge:

war:
[delete] Deleting: E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5\dist\sam
ple-service-builder-portlet-6.0.5.1.war

clean-portal-dependencies:
[zip] Building zip: E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5\dist
\sample-service-builder-portlet-6.0.5.1.war

deploy:
[copy] Copying 1 file to E:\Projects\Liferay\RTG\liferay-portal-6.0.5\deplo
y

BUILD SUCCESSFUL
Total time: 4 seconds
E:\Projects\Liferay\RTG\liferay-plugins-sdk-6.0.5\portlets\sample-service-builde
r-portlet>
Hui Deng, modifié il y a 13 années.

RE: "sample-service-builder-portlet" build error

New Member Publications: 18 Date d'inscription: 19/09/10 Publications récentes
Hi Venkat,

Thank you very much, the problem is solved. emoticon

BR
Hui
Bradai Salma, modifié il y a 13 années.

integration jbpm with liferay 6

Junior Member Publications: 53 Date d'inscription: 05/02/11 Publications récentes
To integratre jbpm with liferay 6,ifollowed the next steps
1. Get the source for jbpm from svn: http://svn.liferay.com/repos/public/plugins/trunk/webs/jbpm-web (user guest with empty password), to you plugins sdk->webs.


2. Perform ant build-samples from jbpm-web.


3. copy the .jar file created in /../liferay-plugins-sdk-6.0.5/webs/jbpm-web/samples, to /../liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/lib.


4. Perform ant deploy in the jbpm-web. Now the war file will be created in the dist folder of plugins sdk, and in the deploy folder of liferay-portal-6.

when i perform ant deploy i have this error:

salma@salma-laptop:~/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web$ ant war
Buildfile: build.xml

compile:

merge:
[mkdir] Created dir: /home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/classes
[mkdir] Created dir: /home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/lib
[copy] Copying 17 files to /home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/lib
[copy] Copying 5 files to /home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/lib

compile-java:
[javac] Compiling 41 source files to /home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/classes
[javac] /home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/src/com/liferay/portal/workflow/jbpm/WorkflowTaskManagerImpl.java:76: com.liferay.portal.workflow.jbpm.WorkflowTaskManagerImpl is not abstract and does not override abstract method searchCount(long,long,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.lang.Boolean,java.lang.Boolean,boolean) in com.liferay.portal.kernel.workflow.WorkflowTaskManager
[javac] public class WorkflowTaskManagerImpl implements WorkflowTaskManager {
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

BUILD FAILED
/home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/build-common-plugin.xml:347: The following error occurred while executing this line:
/home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/build-common.xml:90: Compile failed; see the compiler error output for details.

any help?
thumbnail
Tapan R Avasthi, modifié il y a 13 années.

RE: integration jbpm with liferay 6

New Member Publications: 9 Date d'inscription: 15/04/10 Publications récentes
Bradai Salma:
To integratre jbpm with liferay 6,ifollowed the next steps
1. Get the source for jbpm from svn: http://svn.liferay.com/repos/public/plugins/trunk/webs/jbpm-web (user guest with empty password), to you plugins sdk->webs.


2. Perform ant build-samples from jbpm-web.


3. copy the .jar file created in /../liferay-plugins-sdk-6.0.5/webs/jbpm-web/samples, to /../liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/lib.


4. Perform ant deploy in the jbpm-web. Now the war file will be created in the dist folder of plugins sdk, and in the deploy folder of liferay-portal-6.

when i perform ant deploy i have this error:

salma@salma-laptop:~/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web$ ant war
Buildfile: build.xml

compile:

merge:
[mkdir] Created dir: /home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/classes
[mkdir] Created dir: /home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/lib
[copy] Copying 17 files to /home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/lib
[copy] Copying 5 files to /home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/lib

compile-java:
[javac] Compiling 41 source files to /home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/classes
[javac] /home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/webs/jbpm-web/docroot/WEB-INF/src/com/liferay/portal/workflow/jbpm/WorkflowTaskManagerImpl.java:76: com.liferay.portal.workflow.jbpm.WorkflowTaskManagerImpl is not abstract and does not override abstract method searchCount(long,long,java.lang.String,java.lang.String,java.util.Date,java.util.Date,java.lang.Boolean,java.lang.Boolean,boolean) in com.liferay.portal.kernel.workflow.WorkflowTaskManager
[javac] public class WorkflowTaskManagerImpl implements WorkflowTaskManager {
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

BUILD FAILED
/home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/build-common-plugin.xml:347: The following error occurred while executing this line:
/home/salma/workspace/liferay-plugins-sdk/liferay-plugins-sdk-6.0.5/build-common.xml:90: Compile failed; see the compiler error output for details.

any help?




Hi Bradai Salma,


Error which you are getting is a revision problem of jBPM.You can use the following revision for successfully "Integretion jBPM with Liferay 6".
Revision :- svn co -r 60119 http://svn.liferay.com/repos/public/plugins/trunk/webs/jbpm-web

You can also follow the below blog link:
http://liferay-training.blogspot.com/2011/01/jbpm-3-integration-with-liferay-.html

Regards,