Hi All,
I have problem when using JDL samples in ( view-content.xml and applicaitonContext.xml):
<jdal:serializable-proxy />
and also :
<vaadin:button-bar id="buttonBar" scope="prototype">
Problem is :
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
'vaadin:button-bar'.
Thanks for help
Hi Jose,
Thank you for taking the time to answer me .
The problem appears on the IDE. I have Ecplise Kepler 4.3 IDE.
After runing
mvn jetty:run
the problem was solved.
I think it was because of maven version ( I used maven integrated on eclipse to resolve dependencies).
Now the project is working perfectly
Thank you very much
Dear Jose,
I have another questions :
1- What should I modify to use an instance of MySQL data base ( non embedded H2 data source) ?
Should I modify the “dao-context.xml” file : this part :
<jdbc:embedded-database id="dataSource" type="H2">
<jdbc:script location="classpath:create.sql"/>
<jdbc:script location="classpath:import.sql"/>
</jdbc:embedded-database>
2- jdal-vaadin-jpa project is working perfectly with Apache Tomcat server, but when I’m trying to deploy war file in Oracle GlassFish 4.0 server this error appear :
[2015-03-02T16:05:42.182+0100]
[glassfish 4.1]
[INFO]
[] []
[tid: _ThreadID=43 _ThreadName=Thread-9]
[timeMillis: 1425308742182]
[levelValue: 800]
[[
2015-03-02 16:05:42,182 ERROR [ContextLoader]
Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/context]
Offending resource: ServletContext resource
[/WEB-INF/applicationContext.xml]
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:70)
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
[2015-03-02T16:05:42.182+0100]
[glassfish 4.1]
[SEVERE]
[AS-WEB-CORE-00175]
[javax.enterprise.web.core]
[tid: _ThreadID=43 _ThreadName=admin-listener(3)]
[timeMillis: 1425308742182]
[levelValue: 1000]
[[
Exception during cleanup after start failed
org.apache.catalina.LifecycleException: Manager has not yet been started
at org.apache.catalina.session.StandardManager.stop(StandardManager.java:935)
Thanks you for this great sample project _ and thank you so much for your help
Regards
to use a MySQL database first create it using the
library.sql script in
/db directory of jdal samples. Then delete the jdbc:embedded bean definition and look at end of dao-context.xml file. There is a mysql datasource definition bean inside a mysql bean profile.
Drop the
<beans profile="mysql"> ..... </beans>
tags that wrap the mysql datasource definition. Ensure that the file jdbc.properties has the correct configuration for host, user and passsword of your MySQL .
The second question is not related to JDAL, seems like you are missing the spring-context-xxxx.jar in the classpath.
Hi Jose !
This error appear when I’m trying to deploy jdal-vaadin-sample project on GlassFish 4.0 server from Eclipse Kepler (run on server) :
cannot Deploy jdal-vaadin-sample-jpa
deploy is failing=Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/context]
Offending resource: ServletContext resource
[/WEB-INF/applicationContext.xml]
. Please see server.log for more details.
There is no error when doploying in Tomcate server !
Hi jose ,
JDAL is perfectly working with MySql data base after applaying your steps ( deleting the tags that wrap the mysql datasource definition , deleting emmbeded database h2 and adding these dependencies (pom file ) :