Liferay Bean locator error - liferay

I am developing liferay portlet.
When I create the service.xml file and build it, and then execute my portlet I get a bean locator error.
I have checked that all things are right.

you better write whole error, but this may because of uppercase or lowercase mistake in service.xml file and your field names.
I have encountered with this error once because of a field with the name of ISBN and I change its first letter with lowercase and that's it. :D
Check that once again and return with your feedback. :)

This happens when your service is not build properly.Try re-building the service.xml file.

Related

Adding new entities in ANNIE gazetteer

I am using GATE for annotating a document with ANNIE. I followed the procedure (given in 13.2.2 of GATE user guide https://gate.ac.uk/sale/tao/splitch13.html ) of adding new entry "wasim" in person_male.lst through the gazeteer editor available in GATE. It adds thsi entry but do not create lookup annotation for that word in the text document being processed by ANNIE.
Moreover i also tried to make a separate .lst file and even tried to edit the existing .lst file in GATE/ANNIE/resources/gazetteer but it says permission is denied to save in this position.
please help
From your description "permission denied" is not related to GATE somehow. I think this is issue with your local system. Please make sure that you really have enough of rights to edit plain text file.
Also, as far as I remember ANNIE gazetteers are case sensitive. If you added a "wasim" value then only this value will be matched but not Wasim or WASIM.

how to create a multi database search in xpage?

I've been experiencing a lot of headache for this issue I'm in. I need to create a multi-database search in xpage, this search functions like a mini google in xpage where if I type, for example,"test" all databases with the same name or contains a title with test will display. I've already looked with the Openntf Project http://www.openntf.org/main.nsf/project.xsp?r=project/Xpages%20Multi%20Database%20Search%20Custom%20Control this seems to solve my problem but unfortunately I'm encountering some error and I'm not a java specialist so I'm still waiting for the creator of the project to reply. So if you know something or tricks to do this kind of stuff its really appreciated. Thank you in advance.
Take a look at this:
Plugin to client's sidebar
Custom control for XPages
Ok, so I got it right by playing with the code inside the javascript in this openntf project. ( http://www.openntf.org/main.nsf/project.xsp?r=project/Xpages%20Multi%20Database%20Search%20Custom%20Control) it checks if the database is indexed or not, but unfortunately the script does not detect my indexed dbs so it throws nothing, i just comment out the line that checks it and it works! :)

XPages Managed Bean ClassNotFoundException

I am trying to get a managed bean to work, when I preview the test page, I get an an error that it cannot instantiate the class and indicates a ClassNotFound exception.
The java classes are there and correct
The beans are in the faces-config file correctly.
I'm running designer 8.5.3.
What would be possible causes as to why the classes are not being found?
Thank you
As Per says, you need to provide some code examples so we can see if something is missing.
Also check out his blog post, http://per.lausten.dk/blog/2012/02/creating-your-first-managed-bean-for-xpages.html This is a great place to start and covers all the basics.
Simple thing like needing to implement 'Serializable' is commonly missed!

Permalinks in conflict

I am trying to add Bodypart and Autoroutpart to my widget. When I tried to add this widget in a zone, I get following exception. Permalinks in conflict. "" is already set for a previously created PushWidget so now it has the slug "-2". Can somebody explain me what have I done wrong. Any help on this greatly appreciated.
If you are going to use Autoroute on anything, you need to configure the pattern used to generate the new URL, by going to the content type editor and deploying the settings for Autoroute. The pattern that you have in there currently is probably empty or has tokens that evaluate to an empty string. Change it to a pattern that is meaningful for this context.

SharePoint 2010 Error when creating list view

I have a custom list definition created via visual studio 2010. I would like to create a calendar view of this list using the web interface. When I attempt to create the view however, I am greeted with a helpful error message of:
Error
Cannot complete this action.
Please try again.
About the problem:
When I attempt to duplicate this error while running Fiddler2, I see a response of 404 Not Found when attempting to access /_vti_bin/owssvr.dll?CS=65001 using the HTTP POST verb.
No errors are logged in the ULS logs.
If I create a new custom list and attempt to reproduce the issue by adding two date columns and creating the calendar view, everything works as expected.
The schema.xml file defining the list is fairly large, with close to 25 fields.
I am using custom templates for the new, edit, and display forms.
I have defined a new custom view showing a subset of the columns in schema.xml
Does anyone know of any "gotchas" or things to look for in my list definition that could be related to this issue at all?
Has anyone encountered this issue before, and know of a way to fix it?
Failing those, what more can I do to debug this?
To avoid overflowing this question with large code blocks, you can view my list definition here:
Elements.xml - http://pastebin.com/97ucAedZ
Schema.xml - http://pastebin.com/2brpMJgT
ListInstance Elements.xml - http://pastebin.com/gnCXVpmh
I agree with moontear. I think your Content Type ID is invalid. If you are building off a Custom List template, I would expect your Content Type ID to be:
<ContentType ID="0x0100781A2C74BF4bfd81AE710DB1EACAE745"
Name="$Resources:Item"
Group="$Resources:List_Content_Types"
Description="$Resources:ItemCTDesc"
Version="1">
To inherit from Item, you should have 0x01 then 00 followed by a Guid. You have the right number of characters, if you use 00 instead of 70.
For more information, see Content Type IDs.
In cases like this, i usually take these steps:
Create List/View manually in MOSS.
Export list as template and try to
find out what is wrong in my
template.
Start with clean template, add one field etc at a time, test, repeat until error emerges.
Your xml seems ok, so i think it will be another MOSS 'gotcha' or 'aha' moment.

Resources