[ 
https://issues.apache.org/jira/browse/GERONIMO-4368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641188#action_12641188
 ] 

Michał Kudła commented on GERONIMO-4368:
----------------------------------------

I find some dependecies and changed it 
(plan.xml and geronimo-plugin.xml from 
repository/org/apache/geronimo/configs/openjpa/2.1.3/openjpa-2.1.3.car/META-INF)

<dependency>
        <groupId>org.apache.openjpa</groupId>
        <artifactId>openjpa</artifactId>
        <!--version>1.0.3</version-->
        <version>1.2.0</version>
        <type>jar</type>
      </dependency>

Geronimo still don't start

> OpenJPA can't find org.postgresql.Driver
> ----------------------------------------
>
>                 Key: GERONIMO-4368
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4368
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: databases
>    Affects Versions: 2.1.3
>         Environment: Linux gentoo, JDK IBM 1.6, 
>            Reporter: Michał Kudła
>            Priority: Blocker
>
> Tutorial from 
> http://www.jaceklaskowski.pl/wiki/Aplikacja_Java_EE_5_z_MDB_z_JPA_w_trybie_JTA_i_PostgreSQL_w_Apache_Geronimo_2
> http://www.jaceklaskowski.pl/aplikacje/mdb-jpa-jta-postgresql-geronimo.zip
> works fine under geronimo 2.1 but not work under 2.1.3.
> [EMAIL PROTECTED] ~/Programy/geronimo-tomcat6-javaee5-2.1.3/bin $ 
> ./geronimo.sh run -vv
> Using GERONIMO_BASE:   /home/m1k0/Programy/geronimo-tomcat6-javaee5-2.1.3     
>    
> Using GERONIMO_HOME:   /home/m1k0/Programy/geronimo-tomcat6-javaee5-2.1.3     
>    
> Using GERONIMO_TMPDIR: var/temp                                               
>    
> Using JRE_HOME:        /opt/ibm-jdk-bin-1.6.0.2/jre                           
>    
> 13:24:43,096 DEBUG [BasicKernel] Starting boot                                
>    
> <cut/>
> 13:30:06,159 INFO  [DirectoryHotDeployer] Deploying TicketServiceEAR.ear
> 13:30:06,687 INFO  [config] Configuring Service(id=Default Stateless 
> Container, type=Container, provider-id=Default Stateless Container)
> 13:30:06,688 INFO  [config] Configuring Service(id=Default Stateful 
> Container, type=Container, provider-id=Default Stateful Container)  
> 13:30:06,691 INFO  [config] Configuring Service(id=Default BMP Container, 
> type=Container, provider-id=Default BMP Container)            
> 13:30:06,691 INFO  [config] Configuring Service(id=Default CMP Container, 
> type=Container, provider-id=Default CMP Container)            
> 13:30:06,692 INFO  [config] Configuring app: 
> pl.jaceklaskowski.ticketservice/TicketServiceEAR/1.0/ear                      
>              
> 13:30:06,778 INFO  [OpenEJB] Auto-deploying ejb TicketServiceBean: 
> EjbDeployment(deployment-id=TicketServiceMDB.jar/TicketServiceBean)  
> 13:30:06,783 INFO  [config] Loaded Module: 
> pl.jaceklaskowski.ticketservice/TicketServiceEAR/1.0/ear                      
>                
> 13:30:08,259 INFO  [config] Configuring 
> Service(id=jms-resources.jms-resources-javax.jms.MessageListener, 
> type=Container, provider-id=Default MDB Container)
> 13:30:08,260 INFO  [service] Creating 
> Container(id=jms-resources.jms-resources-javax.jms.MessageListener)           
>                                         
> 13:30:08,312 INFO  [KernelContextGBean] bound gbean 
> pl.jaceklaskowski.ticketservice/TicketServiceEAR/1.0/ear?J2EEApplication=pl.jaceklaskowski.ticketservice/TicketServiceEAR/1.0/ear,JCAConnectionFactory=TicketConnectionFactory,JCAResource=jms-resources,ResourceAdapter=jms-resources,ResourceAdapterModule=jms-resources,j2eeType=JCAManagedConnectionFactory,name=TicketConnectionFactory
>  at name 
> pl.jaceklaskowski.ticketservice/TicketServiceEAR/JCAManagedConnectionFactory/TicketConnectionFactory
>                                    
> 13:30:08,317 INFO  [KernelContextGBean] bound gbean 
> pl.jaceklaskowski.ticketservice/TicketServiceEAR/1.0/ear?J2EEApplication=pl.jaceklaskowski.ticketservice/TicketServiceEAR/1.0/ear,JCAResource=jms-resources,ResourceAdapter=jms-resources,ResourceAdapterModule=jms-resources,j2eeType=JCAAdminObject,name=TicketQueue
>  at name 
> pl.jaceklaskowski.ticketservice/TicketServiceEAR/JCAAdminObject/TicketQueue   
>                                                                               
>                                                  
> 13:30:08,414 INFO  [KernelContextGBean] bound gbean 
> pl.jaceklaskowski.ticketservice/TicketServiceEAR/1.0/ear?J2EEApplication=pl.jaceklaskowski.ticketservice/TicketServiceEAR/1.0/ear,JCAConnectionFactory=jdbc/postgres,JCAResource=postgresql,ResourceAdapter=postgresql,ResourceAdapterModule=postgresql,j2eeType=JCAManagedConnectionFactory,name=jdbc/postgres
>  at name 
> pl.jaceklaskowski.ticketservice/TicketServiceEAR/JCAManagedConnectionFactory/jdbc/postgres
>                                                                           
> 13:30:08,416 INFO  [startup] Assembling app: 
> /home/m1k0/Programy/geronimo-tomcat6-javaee5-2.1.3/var/temp/geronimo-deploymentUtil17068.jar
>                                        
> 13:30:08,421 INFO  [startup] 
> Jndi(name=TicketServiceMDB.jar/TicketServiceBean) --> 
> Ejb(deployment-id=TicketServiceMDB.jar/TicketServiceBean)                     
>                
> 13:30:08,453 INFO  [startup] Created 
> Ejb(deployment-id=TicketServiceMDB.jar/TicketServiceBean, 
> ejb-name=TicketServiceBean, 
> container=jms-resources.jms-resources-javax.jms.MessageListener)              
>                                                                               
>                                                                          
> 13:30:08,453 INFO  [startup] Deployed 
> Application(path=/home/m1k0/Programy/geronimo-tomcat6-javaee5-2.1.3/var/temp/geronimo-deploymentUtil17068.jar)
>                             
> 13:30:08,494 INFO  [DirectoryHotDeployer]     Deployed 
> pl.jaceklaskowski.ticketservice/TicketServiceEAR/1.0/ear                      
>                                            
> 13:30:08,494 INFO  [DirectoryHotDeployer]       `-> TicketServiceMDB.jar
> 13:30:08,494 INFO  [DirectoryHotDeployer]       `-> jms-resources
> 13:30:08,494 INFO  [DirectoryHotDeployer]       `-> postgresql
> 2008-10-19 13:30:46 pl.jaceklaskowski.ticketservice.ejb.TicketServiceBean 
> initialize
> INFO: Wykonano PostConstruct - kontekst przekazany (wstrzelony)? true         
>       
> 13:30:46,446 INFO  [Transaction] TX Required: Started transaction [EMAIL 
> PROTECTED]
> 13:30:46,448 INFO  [OpenEJB] invoking method onMessage on 
> TicketServiceMDB.jar/TicketServiceBean                                  
> 2008-10-19 13:30:46 pl.jaceklaskowski.ticketservice.ejb.TicketServiceBean 
> sprawdzKtoWykonujeMetodeBiznesowa                       
> INFO: Metoda przechwytująca wykonana - wywołujący: Unauthenticated            
>                                                     
> 2008-10-19 13:30:46 pl.jaceklaskowski.ticketservice.ejb.TicketServiceBean 
> onMessage                                               
> INFO: Odebrano komunikat: Wiadomosc od Jacka o numerze #0                     
>                                                     
> 38613  ticketservicePU  INFO   [ConnectorThreadPool 2] openjpa.Runtime - 
> Starting OpenJPA 1.0.3                                   
> 38752  ticketservicePU  INFO   [ConnectorThreadPool 2] openjpa.jdbc.JDBC - 
> Using dictionary class "org.apache.openjpa.jdbc.sql.PostgresDictionary".
> <openjpa-1.0.3-r420667:677674 nonfatal general error> 
> org.apache.openjpa.persistence.PersistenceException: There were errors 
> initializing your configuration: java.lang.NoClassDefFoundError: 
> org.postgresql.Driver$1                                                       
>                                                                               
>       
>         at org.postgresql.Driver.getDefaultProperties(Driver.java:85)         
>                                                                               
>                     
>         at org.postgresql.Driver.connect(Driver.java:224)                     
>                                                                               
>                     
>         at java.sql.DriverManager.getConnection(Unknown Source)               
>                                                                               
>                     
>         at java.sql.DriverManager.getConnection(Unknown Source)               
>                                                                               
>                     
>         at 
> org.postgresql.ds.common.BaseDataSource.getConnection(BaseDataSource.java:83) 
>                                                                               
>          
>         at 
> org.postgresql.xa.PGXADataSource.getXAConnection(PGXADataSource.java:47)      
>                                                                               
>          
>         at 
> org.tranql.connector.jdbc.AbstractXADataSourceMCF.getPhysicalConnection(AbstractXADataSourceMCF.java:74)
>                                                              
>         at 
> org.tranql.connector.postgresql.PGXAMCF.createManagedConnection(PGXAMCF.java:61)
>                                                                               
>        
>         at 
> org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection(MCFConnectionInterceptor.java:48)
>                                                      
>         at 
> org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.java:46)
>                                         
>         at 
> org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:86)
>                                             
>         at 
> org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(ConnectionHandleInterceptor.java:43)
>                                                 
>         at 
> org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
>                                                                         
>         at 
> org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.getConnection(ConnectionTrackingInterceptor.java:66)
>                                             
>         at 
> org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:87)
>                                                
>         at 
> org.tranql.connector.jdbc.DataSource.getConnection(DataSource.java:56)        
>                                                                               
>          
>         at 
> org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:112)
>                                                                         
>         at 
> org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:93)
>                                                                          
>         at 
> org.apache.openjpa.jdbc.schema.DataSourceFactory.installDBDictionary(DataSourceFactory.java:226)
>                                                                      
>         at 
> org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:709)
>                                                               
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        
>                                                                               
>                     
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) 
>                                                                               
>          
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>                                                                               
>   
>         at java.lang.reflect.Method.invoke(Method.java:599)                   
>                                                                               
>                     
>         at 
> org.apache.openjpa.lib.conf.ConfigurationImpl.instantiateAll(ConfigurationImpl.java:289)
>                                                                              
>         at 
> org.apache.openjpa.conf.OpenJPAConfigurationImpl.instantiateAll(OpenJPAConfigurationImpl.java:1463)
>                                                                   
>         at 
> org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:648)
>                                                                          
>         at 
> org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:171)
>                                                                             
>         at 
> org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142)
>                                                                         
>         at 
> org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:192)
>                                                        
>         at 
> org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:56)
>                                                         
>         at 
> org.apache.geronimo.persistence.CMPEntityManagerTxScoped.createEntityManager(CMPEntityManagerTxScoped.java:74)
>                                                        
>         at 
> org.apache.geronimo.persistence.CMPEntityManagerTxScoped.getEntityManager(CMPEntityManagerTxScoped.java:55)
>                                                           
>         at 
> org.apache.geronimo.persistence.CMPEntityManagerTxScoped.persist(CMPEntityManagerTxScoped.java:81)
>                                                                    
>         at 
> pl.jaceklaskowski.ticketservice.ejb.TicketServiceBean.onMessage(TicketServiceBean.java:46)
>                                                                            
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        
>                                                                               
>                     
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) 
>                                                                               
>          
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>                                                                               
>   
>         at java.lang.reflect.Method.invoke(Method.java:599)                   
>                                                                               
>                     
>         at 
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)
>                                               
>         at 
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)
>                                                         
>         at 
> pl.jaceklaskowski.ticketservice.ejb.TicketServiceBean.sprawdzKtoWykonujeMetodeBiznesowa(TicketServiceBean.java:71)
>                                                    
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        
>                                                                               
>                     
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) 
>                                                                               
>          
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>                                                                               
>   
>         at java.lang.reflect.Method.invoke(Method.java:599)                   
>                                                                               
>                     
>         at 
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)
>                                               
>         at 
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)
>                                                         
>         at 
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)
>                                                                               
>   
>         at 
> org.apache.openejb.core.mdb.MdbContainer._invoke(MdbContainer.java:347)       
>                                                                               
>          
>         at 
> org.apache.openejb.core.mdb.MdbContainer.invoke(MdbContainer.java:319)        
>                                                                               
>          
>         at 
> org.apache.openejb.core.mdb.EndpointHandler.deliverMessage(EndpointHandler.java:229)
>                                                                               
>    
>         at 
> org.apache.openejb.core.mdb.EndpointHandler.invoke(EndpointHandler.java:170)  
>                                                                               
>          
>         at $Proxy44.onMessage(Unknown Source)                                 
>                                                                               
>                     
>         at 
> org.apache.activemq.ra.MessageEndpointProxy$MessageEndpointAlive.onMessage(MessageEndpointProxy.java:121)
>                                                             
>         at 
> org.apache.activemq.ra.MessageEndpointProxy.onMessage(MessageEndpointProxy.java:61)
>                                                                               
>     
>         at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:696)  
>                                                                               
>                     
>         at 
> org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java:165)      
>                                                                               
>          
>         at 
> org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:290)  
>                                                                               
>          
>         at 
> org.apache.geronimo.connector.work.pool.NamedRunnable.run(NamedRunnable.java:32)
>                                                                               
>        
>         at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)     
>                                                                               
>                     
>         at 
> org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
>                                                                               
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:896)
>                                                                               
>     
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>                                                                               
>         
>         at java.lang.Thread.run(Thread.java:735)                              
>                                                                               
>                     
> Caused by: java.lang.ClassNotFoundException: org.postgresql.Driver$1 in 
> classloader pl.com.pulsar.geronimo.simpleapp/simpleapp-ear/0.0.1-SNAPSHOT/car 
>                           
>         at java.lang.Throwable.<init>(Throwable.java:80)                      
>                                                                               
>                     
>         at 
> java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:76)       
>                                                                               
>          
>         at 
> org.apache.geronimo.kernel.config.MultiParentClassLoader.loadOptimizedClass(MultiParentClassLoader.java:437)
>                                                          
>         at 
> org.apache.geronimo.kernel.config.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:279)
>                                                                   
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:609)              
>                                                                               
>                     
>         ... 68 more                                                           
>          
> ofcourse I have jdbc driver for geronimo 2.1 and 2.1.3                        
>                                                                  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to