I'm trying to configure Flex Data Services with Hibernate on the back
end and I'm running into
these problems as shown below. Any pointers to solve these would be
highly appreciated.
Thanks in anticipation!
Aubrey M.
Config: Windows XP
FDS 2
Integrated JRun4
---------------------------------------------------------------------------------------------------------
Entries in data-management-config.xml
---------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<service id="data-service"
class="flex.data.DataService"
messageTypes="flex.data.messages.DataMessage">
<adapters>
<adapter-definition id="actionscript"
class="flex.data.adapters.ASObjectAdapter" default="true"/>
<adapter-definition id="java-adapter"
class="flex.data.adapters.JavaAdapter"/>
</adapters>
<default-channels>
<channel ref="my-rtmp"/>
</default-channels>
<destination id="BohaUser" channels="my-rtmp">
<adapter ref="java-adapter" />
<properties>
<!-- <use-transactions>true</use-transactions> -->
<source>flex.data.assemblers.HibernateAssembler</source>
<scope>application</scope>
<metadata>
<identity property="id"/>
<many-to-one property="establishment"
destination="Establishment" lazy="true" />
<many-to-one property="userRole"
destination="UserRole" lazy="true" />
</metadata>
<network>
<!-- <session-timeout>20</session-timeout> -->
<paging enabled="true" pageSize="10" />
<throttle-inbound policy="ERROR" max-frequency="500"/>
<throttle-outbound policy="REPLACE" max-frequency="500"/>
</network>
<server>
<hibernate-entity>boha.db.BohaUser />
<update-conflict-mode>PROPERTY/>
<delete-conflict-mode>OBJECT/>
<fill-configuration>
<use-query-cache>false/>
<allow-hql-queries>true/>
</fill-configuration>
</server>
</properties>
</destination>
<!-- End of Hibernate destination -->
<destination id="Establishment" channels="my-rtmp">
<adapter ref="java-adapter" />
<properties>
<source>flex.data.assemblers.HibernateAssembler</source>
<scope>application</scope>
<metadata>
<identity property="id"/>
<many-to-one property="owner"
destination="Owner" lazy="true" />
<many-to-one property="province"
destination="Province" lazy="true" />
</metadata>
<network>
<paging enabled="true" pageSize="10" />
<throttle-inbound policy="ERROR" max-frequency="500"/>
<throttle-outbound policy="REPLACE" max-frequency="500"/>
</network>
<server>
<hibernate-entity>boha.db.Establishment</hibernate-entity>
<update-conflict-mode>PROPERTY</update-conflict-mode>
<delete-conflict-mode>OBJECT</delete-conflict-mode>
<fill-configuration>
<use-query-cache>false</use-query-cache>
<allow-hql-queries>true</allow-hql-queries>
</fill-configuration>
</server>
</properties>
</destination>
<!-- End of Hibernate destination -->
<destination id="UserRole" channels="my-rtmp">
<adapter ref="java-adapter" />
<properties>
<source>flex.data.assemblers.HibernateAssembler</source>
<scope>application</scope>
<metadata>
<identity property="id"/>
</metadata>
<network>
<paging enabled="true" pageSize="10" />
<throttle-inbound policy="ERROR" max-frequency="500"/>
<throttle-outbound policy="REPLACE" max-frequency="500"/>
</network>
<server>
<hibernate-entity>boha.db.UserRole</hibernate-entity>
<update-conflict-mode>PROPERTY</update-conflict-mode>
<delete-conflict-mode>OBJECT</delete-conflict-mode>
<fill-configuration>
<use-query-cache>false</use-query-cache>
<allow-hql-queries>true</allow-hql-queries>
</fill-configuration>
</server>
</properties>
</destination>
<!-- End of Hibernate destination -->
---------------------------------------------------------------------------------------------------------------------------------
Output of integrated JRun4 startup
---------------------------------------------------------------------------------------------------------------------------------
9/18 12:52:26 info No JDBC data sources have been configured for this
server (see jrun-resources.xml)
09/18 12:52:26 info JRun Web Server listening on *:8700
09/18 12:52:26 info Deploying web application "Flex Default Web
Application" from: file:/C:/aaa-fds/jrun4/servers/default/default-war/
09/18 12:52:26 user JSPServlet: init
09/18 12:52:27 info Deploying web application "Boha Online
Reservations" from: file:/C:/aaa-fds/jrun4/servers/default/flex/
09/18 12:52:28 user JSPServlet: init
09/18 12:52:29 user FlexMxmlServlet: init
09/18 12:52:30 user FlexMxmlServlet: Starting Adobe Flex Web Tier Compiler
09/18 12:52:30 user FlexMxmlServlet: Adobe Flex Web Tier Compiler
Build: 143451
09/18 12:52:30 user MessageBrokerServlet: init
09/18 12:52:38 error Could not pre-load servlet: MessageBrokerServlet
flex.messaging.config.ConfigurationException: Unused tags in
<properties> found. Please fix them before continuing:
'/server/delete-conflict-mode' in destination with id: 'UserRole'
from file: data-management-config.xml
'/server/update-conflict-mode' in destination with id: 'UserRole'
from file: data-management-config.xml
'/server/fill-configuration' in destination with id: 'UserRole' from
file: data-management-config.xml
'/server/hibernate-entity' in destination with id: 'UserRole' from
file: data-management-config.xml
'/server/delete-conflict-mode' in destination with id:
'Establishment' from file: data-management-config.xml
'/server/update-conflict-mode' in destination with id:
'Establishment' from file: data-management-config.xml
'/server/fill-configuration' in destination with id: 'Establishment'
from file: data-management-config.xml
'/server/hibernate-entity' in destination with id: 'Establishment'
from file: data-management-config.xml
'/server/delete-conflict-mode' in destination with id: 'BohaUser'
from file: data-management-config.xml
'/server/update-conflict-mode' in destination with id: 'BohaUser'
from file: data-management-config.xml
'/server/fill-configuration' in destination with id: 'BohaUser' from
file: data-management-config.xml
'/server/hibernate-entity' in destination with id: 'BohaUser' from
file: data-management-config.xml
at
flex.messaging.config.MessagingConfiguration.reportUnusedProperties(MessagingConfiguration.java:432)
at
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:110)
at
jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1200)
at
jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:791)
at
jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:293)
at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
at
jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
at
jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
at jrun.deployment.DeployerService.run(DeployerService.java:891)
at
jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:230)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
09/18 12:52:39 user FlexInternalServlet: init
09/18 12:52:39 info Deploying web application "Flex Admin Web
Application" from: file:/C:/aaa-fds/jrun4/servers/default/flex-admin/
09/18 12:52:39 user JSPServlet: init
09/18 12:52:40 user MessageBrokerServlet: init
09/18 12:52:40 info Deploying web application "Flex Data Services
Samples" from: file:/C:/aaa-fds/jrun4/servers/default/samples/
09/18 12:52:41 user JSPServlet: init
09/18 12:52:43 user FlexMxmlServlet: init
09/18 12:52:44 user FlexMxmlServlet: Starting Adobe Flex Web Tier Compiler
09/18 12:52:44 user FlexMxmlServlet: Adobe Flex Web Tier Compiler
Build: 143451
09/18 12:52:44 user MessageBrokerServlet: init
09/18 12:52:46 user FlexSwfServlet: init
09/18 12:52:46 user FlexInternalServlet: init
09/18 12:52:46 info Deploying enterprise application "JRun 4.0
Internal J2EE Components" from: file:/C:/aaa-fds/jrun4/lib/jrun-comp.ear
09/18 12:52:46 info Deploying EJB "JRunSQLInvoker" from:
file:/C:/aaa-fds/jrun4/lib/jrun-comp.ear
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/