List Info

Thread: Re: some problems with EAR deployment




Re: some problems with EAR deployment
user name
2007-07-19 07:10:40
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



  
Re: some problems with EAR deployment
country flaguser name
France
2007-07-19 07:27:04
    Hi Georgi,

I think that there is a missing trim() call in EasyBeans for the XML property of the Persistence provider. (that needs to be fixed).
Could you set the persistence provider without any extra blanks/whitespaces ?

For your other post, specification is allowing this case, so EasyBeans needs to be improved on this part.

Regards,

Florent

Georgi Dimitrov wrote:
webmail.messagingengine.com" type="cite">
Hello  Florent,
I do your admonition to move TopLink - implementation in the
̶2;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&gt;oracle.toplink.essentials.PersistenceProvider </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.JPersistenceUnitInfoHelper
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-gdimitrovEARProjectT-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(JContainer3.java:264)
        at
        org.objectweb.easybeans.deployer.AbsWebContainerDeployer.deployEAR(AbsWebContainerDeployer.java:184)
        at
        org.objectweb.easybeans.deployer.TomcatDeployer.deploy(TomcatDeployer.java:195)
        at
        org.objectweb.easybeans.server.DirectoryDeployerMonitor.detectNewArchives(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(StandardContext.java:3827)
        at
        org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
        at
        org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at
        org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at
        org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at
        org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
        at
        org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.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(HostConfig.java:311)
        at
        org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
        org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at
        org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at
        org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at
        org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
        org.apache.catalina.core.StandardService.start(StandardService.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(NativeMethodAccessorImpl.java:39)
        at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
        org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at
        org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by:
org.objectweb.easybeans.persistence.xml.PersistenceXmlFileAnalyzerException:
Cannot load the persistence provider class '
                        oracle.toplink.essentials.PersistenceProvider
                '.
        at
        org.objectweb.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:119)
        at
        org.objectweb.easybeans.container.JContainer3.start(JContainer3.java:261)
        ... 30 more


after that I check in the
apache-tomcat-6.0.13-EBtempEasyBeans-Deployer-gdimitrovEARProjectT-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(QueryBinder.java:118)
You can look at http://opensource.atlassian.com/projects/hibernate/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


  

  
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )