Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Kurt Xu
ant build-service throws 'cannot be resolved to a type' errors
February 15, 2013 3:40 AM
Answer

Kurt Xu

Rank: Junior Member

Posts: 57

Join Date: February 2, 2013

Recent Posts

Hello all:
I'm using liferay 6.1.1 ce ga2, when I download knowledge base portlet created based on liferay 6.1.x, and run ant build-service, some 'cannot be resolved to a type' errors show up. You can find the complete errors info from the attachment. Even I use the portlet which was installed online through liferay portal and run well , then I copied the installed files from bundled tomcat directory into my portlet directory resided in plugins sdk's portlets and run ant build-service again, errors still showed up.

The funny thing is it was successful time after time yesterday but failed today. The only thing I did today is I setup the portlet development environment based on maven , but I think that had nothing to do with the errors, maven does not change anything of plugin sdk.
Attachments: 1.txt (11.1k)
Manish Yadav
RE: ant build-service throws 'cannot be resolved to a type' errors
February 15, 2013 5:21 AM
Answer

Manish Yadav

Rank: Expert

Posts: 384

Join Date: May 26, 2012

Recent Posts

Can you add jar avaiable in tomcat/lib/ext/*.jar in your portlet class path
Kurt Xu
RE: ant build-service throws 'cannot be resolved to a type' errors
February 15, 2013 6:54 AM
Answer

Kurt Xu

Rank: Junior Member

Posts: 57

Join Date: February 2, 2013

Recent Posts

Manish Yadav:
Can you add jar avaiable in tomcat/lib/ext/*.jar in your portlet class path


Hello Manish:
Are you speaking of including that dir in build.username.properties file under plugins? I've done that,pls take a look at my build.fxbird.properties, fxbird is my login user of windows os.

app.server.dir = M:\\My-Documents\\programming\\java\\lib\\Liferay\\bundle\\liferay-portal-6.1.1-ce-ga2\\tomcat-7.0.27
java.compiler = modern
app.server.lib.global.dir = M:\\My-Documents\\programming\\java\\lib\\Liferay\\bundle\\liferay-portal-6.1.1-ce-ga2\\tomcat-7.0.27\\lib\\ext
app.server.type = tomcat
app.server.deploy.dir = M:\\My-Documents\\programming\\java\\lib\\Liferay\\bundle\\liferay-portal-6.1.1-ce-ga2\\tomcat-7.0.27\\webapps
app.server.portal.dir = M:\\My-Documents\\programming\\java\\lib\\Liferay\\bundle\\liferay-portal-6.1.1-ce-ga2\\tomcat-7.0.27\\webapps\\ROOT
Kurt Xu
RE: ant build-service throws 'cannot be resolved to a type' errors
February 17, 2013 7:36 AM
Answer

Kurt Xu

Rank: Junior Member

Posts: 57

Join Date: February 2, 2013

Recent Posts

up
Kurt Xu
RE: ant build-service throws 'cannot be resolved to a type' errors
February 18, 2013 7:35 AM
Answer

Kurt Xu

Rank: Junior Member

Posts: 57

Join Date: February 2, 2013

Recent Posts

nobody knows? It's been a big pain for 3 days. help me pls.emoticon