Hello Florent,
I do your admonition to move TopLink - implementation in
the
„apache-tomcat-6.0.13/webapps/ow_easybeans/WEB-INF/lib/“.
Now I try to deploy only one EAR with one JAR file that
contains two
entity and one session bean.
Again persistence.xml contains two persistence-units
providers
declaration:
...
<provider>oracle.toplink.essentials.PersistenceProvide
r </provider>
...
The the place of persistence.xml file in my EAR is :
ProjectT-EAR.earProjectT-DBS.jarMETA-INF - folder.
When I deploy this EAR, I received following exception:
------------------------------------------------------------
------------------------------------------------------------
------------------------
2007-7-19 14:32:10
org.objectweb.easybeans.persistence.xml.JPersistenceUnitInfo
Helper
getPersistenceUnitInfo
INFO: No default configuration for the persistence provider
oracle.toplink.essentials.PersistenceProvider
07-7-19 14:32:10 (S) AbsWebContainerDeployer.deployEAR :
Cannot start
container
apache-tomcat-6.0.13-EBtempEasyBeans-Deployer-gdimitrovE
ARProjectT-EAR.earProjectT-DBS
.jar
org.objectweb.easybeans.api.EZBContainerException: Cannot
analyze the
persistence.xml file in the archive
at
org.objectweb.easybeans.container.JContainer3.start(JContain
er3.java:264)
at
org.objectweb.easybeans.deployer.AbsWebContainerDeployer.dep
loyEAR(AbsWebContainerDeployer.java:184)
at
org.objectweb.easybeans.deployer.TomcatDeployer.deploy(Tomca
tDeployer.java:195)
at
org.objectweb.easybeans.server.DirectoryDeployerMonitor.dete
ctNewArchives(DirectoryDeployerMonitor.java:249)
at
org.objectweb.easybeans.server.DirectoryDeployerMonitor.init
(DirectoryDeployerMonitor.java:136)
at
org.objectweb.easybeans.server.Embedded.start(Embedded.java:
296)
at
org.objectweb.easybeans.server.war.EasyBeansContextListener.
contextInitialized(EasyBeansContextListener.java:168)
at
org.apache.catalina.core.StandardContext.listenerStart(Stand
ardContext.java:3827)
at
org.apache.catalina.core.StandardContext.start(StandardConte
xt.java:4334)
at
org.apache.catalina.core.ContainerBase.addChildInternal(Cont
ainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBas
e.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.
java:525)
at
org.apache.catalina.startup.HostConfig.deployDescriptor(Host
Config.java:626)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(Hos
tConfig.java:553)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig
.java:488)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java
:1138)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostCo
nfig.java:311)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:117)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.j
ava:1053)
at
org.apache.catalina.core.StandardHost.start(StandardHost.jav
a:719)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.j
ava:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine
.java:443)
at
org.apache.catalina.core.StandardService.start(StandardServi
ce.java:516)
at
org.apache.catalina.core.StandardServer.start(StandardServer
.java:710)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:566
)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2
88)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41
3)
Caused by:
org.objectweb.easybeans.persistence.xml.PersistenceXmlFileAn
alyzerException:
Cannot load the persistence provider class '
oracle.toplink.essentials.PersistenceProvider
'.
at
org.objectweb.easybeans.persistence.xml.PersistenceXmlFileAn
alyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.
java:119)
at
org.objectweb.easybeans.container.JContainer3.start(JContain
er3.java:261)
... 30 more
after that I check in the
apache-tomcat-6.0.13-EBtempEasyBeans-Deployer-gdimitrovE
ARProjectT-EAR.earProjectT-DBS.jar
-
the JAR file exist – with valid persistence.xml file in
self.
About your comment of :
>For the second exception, it's that Hibernate Entity
Manager is not supporting the given operation.
>Caused by: org.hibernate.cfg.NotYetImplementedException:
Pure native scalar queries are not yet supported at
>
org.hibernate.cfg.annotations.QueryBinder.bindNativeQuery(Qu
eryBinder.java:118)
>You can look at http://opensource.atlassian.com/projects/hibern
ate/browse/ANN-469 for the issue.
I used in may entity beans only „SELECT“-type named-query.
(per one
query in every entity bean). :|
I will be happy to see your comment of previous may post too
(„EAR &
persistence.xml“).
Greetings,
G.Dimitrov
--
http://www.fastmail.fm
- The professional email service
|