Message Boards

« Back to 2.- Usage ( From Xml file to CRUD Portlet)

Liferay6.1.2.ce.ga3 e sdk 6.1.1 MasterDetails doesn't deploy correctly

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Liferay6.1.2.ce.ga3 e sdk 6.1.1 MasterDetails doesn't deploy correctly
master details beanlocator
Answer
2/26/14 8:39 AM
I've used the MasterDetails example. Changed only the fieldname userName to uzerName because otherwise it goes in conflict as userName is alreadu used in the table in the db. Anyhow, now it compiles and put the war in the deploy folder. The deploying process says "Plugin package for MasterDetails-6.1.1.1 cannot be tracked because this WAR does not contain a liferay-plugin-package.xml file". Then it says that 2 portlets are available for use.

Going to use it, I get an error when saving a new record, "La tua richiesta non è andata a buon fine". The log says 5 times "BeanLocator is null for servlet context MasterDetails. 

MasterDetails.xml follows. Please give advices. Elio

<?xml version="1.0" encoding="UTF-8"?>
<definition xmlns="http://www.xmlportletfactory.org/xml/xmlportletfactory" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xmlportletfactory.org/xml/xmlportletfactory xmlportletfactory.xsd">
<commonData>  <client>goodclient</client>  <projectName>MasterDetails</projectName>  <version>1</version></commonData>
<applications>  <application>    <classDef>      <name>Users</name>      <title>Users Maintenance</title>      <mode>  <add>true</add>  <delete>true</delete>  <modify>true</modify>  <browse>true</browse>       </mode>     </classDef><fileDef><name>users</name><fields>  <field>    <name>usersId</name>    <title>Id</title>    <type>      <long>        <length>5</length>        <signed>false</signed>        <nullable>false</nullable>        <order>true</order>      </long>    </type>    <showFieldInView>true</showFieldInView>    <required>true</required>  </field>  <field>    <name>uzerName</name>    <title>Name</title>    <type>      <varchar>      <length>30</length>      <filter>true</filter>      <order>true</order>      </varchar>    </type>    <showFieldInView>true</showFieldInView>    <required>false</required>  </field></fields></fileDef>
<detailFiles>  <detailFile>    <detailFileClassName>UserVehicles</detailFileClassName>    <connectionFieldName>usersId</connectionFieldName>    <connectionTitle>Vehicles</connectionTitle>  </detailFile></detailFiles>
</application>

<application><classDef><name>UserVehicles</name><title>User Vehicles</title><mode><add>true</add><delete>true</delete><modify>true</modify><browse>true</browse></mode></classDef><fileDef><name>userVehicles</name><fields><field><name>userVehicleId</name><title>Id</title><type><long><length>5</length><signed>false</signed><nullable>false</nullable></long></type><showFieldInView>true</showFieldInView><required>true</required></field><field><name>usersId</name><title>Id</title><type><long><length>5</length><signed>false</signed><nullable>false</nullable></long></type><showFieldInView>false</showFieldInView><required>false</required></field><field><name>userVehicleDescription</name><title>Description</title><type><varchar><length>30</length></varchar></type><showFieldInView>true</showFieldInView><required>false</required></field></fields></fileDef></application></applications></definition>
Attachments: MasterDetails.xml (2.6k)

RE: Liferay6.1.2.ce.ga3 e sdk 6.1.1 MasterDetails doesn't deploy correctly
Answer
3/3/14 5:10 PM as a reply to Elio Mussi.
Hi ELio,

please take a look at this post, download the file attached there and overrite your previous XMLPortletFactory directory:

http://www.xmlportletfactory.org/forum/-/message_boards/message/145826