Re: Unable to start WICKET+OpenJPA application

2009-05-05 Thread Donald Woods
Believe you may be mixing concepts here.  Try putting the persistence 
info in a META-INF/persistence.xml file instead of your 
geronimo-web.xml, like the Bank example in the Geronimo Samples -

https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1/samples/bank/bank
-ejb/src/main/resources/META-INF/persistence.xml

http://cwiki.apache.org/GMOxDOC21/bank-ejb-sample-application.html
http://cwiki.apache.org/GMOxDOC21/working-with-jsf-and-jpa.html


-Donald


Garimella Srinivas wrote:
I have a small wicket example application with data stored in a List and 
it runs in Geronimo ok. Now I have added the data to derby and want to 
use openjpa for data access and manipulation. With the following 
Geronimo-web.xml and web.xml I have installed the application. But it 
refuses to start. Please help.


WEB.XML

?xml version=1.0 encoding=UTF-8?
web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;

context-param
param-nameconfiguration/param-name
param-valuedevelopment/param-value
/context-param
 
filter

filter-nameWicketApplication/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class

init-param
param-nameapplicationClassName/param-name
param-valuecheeseUI.CheesrApplication/param-value
/init-param
/filter
filter-mapping
filter-nameWicketApplication/filter-name
url-pattern/*/url-pattern
/filter-mapping
session-config
session-timeout300/session-timeout
/session-config
welcome-file-list
welcome-fileIndex.html/welcome-file
/welcome-file-list
   
/web-app


GERONIMO-WEb.XML

?xml version=1.0 encoding=UTF-8 standalone=no?
web:web-app 
xmlns:app=http://geronimo.apache.org/xml/ns/j2ee/application-2.0; 
xmlns:client=http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0; 
xmlns:conn=http://geronimo.apache.org/xml/ns/j2ee/connector-1.2; 
xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.2; 
xmlns:ejb=http://openejb.apache.org/xml/ns/openejb-jar-2.2; 
xmlns:name=http://geronimo.apache.org/xml/ns/naming-1.2; 
xmlns:pers=http://java.sun.com/xml/ns/persistence; 
xmlns:pkgen=http://openejb.apache.org/xml/ns/pkgen-2.1; 
xmlns:sec=http://geronimo.apache.org/xml/ns/security-2.0; 
xmlns:web=http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1;

dep:environment
dep:moduleId
dep:groupIddefault/dep:groupId
dep:artifactIdcheesrApplication/dep:artifactId
dep:version1.0/dep:version
dep:typecar/dep:type
/dep:moduleId
dep:dependencies
  dep:dependency
  dep:groupIdconsole.dbpool/dep:groupId
  dep:artifactIdCheesrDBPool/dep:artifactId
  /dep:dependency
/dep:dependencies
   
/dep:environment

web:context-root/cheesrApplication/web:context-root
   
pers:persistence version=1.0

pers:persistence-unit name=cheesrData transaction-type=JTA
pers:descriptionDB2 Account Management/pers:description
pers:provider
org.apache.openjpa.persistence.PersistenceProviderImpl
  /pers:provider
   
pers:jta-data-sourceCheesrDBPool/pers:jta-data-source

pers:non-jta-data-sourceCheesrDBPool/pers:non-jta-data-source

pers:classcheesr.Cheese/pers:class
/pers:persistence-unit
/pers:persistence
   
/web:web-app



Thanks
Garimella Srinivas




Unable to start WICKET+OpenJPA application

2009-05-04 Thread Garimella Srinivas
I have a small wicket example application with data stored in a List and it 
runs in Geronimo ok. Now I have added the data to derby and want to use openjpa 
for data access and manipulation. With the following Geronimo-web.xml and 
web.xml I have installed the application. But it refuses to start. Please help.

WEB.XML

?xml version=1.0 encoding=UTF-8?
web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
    context-param
    param-nameconfiguration/param-name
    param-valuedevelopment/param-value
    /context-param
 
    filter
    filter-nameWicketApplication/filter-name
    
filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
    init-param
    param-nameapplicationClassName/param-name
    param-valuecheeseUI.CheesrApplication/param-value
    /init-param
    /filter
    filter-mapping
    filter-nameWicketApplication/filter-name
    url-pattern/*/url-pattern
    /filter-mapping
    session-config
        session-timeout300/session-timeout
    /session-config
    welcome-file-list
    welcome-fileIndex.html/welcome-file
    /welcome-file-list
    
    /web-app

GERONIMO-WEb.XML

?xml version=1.0 encoding=UTF-8 standalone=no?
web:web-app xmlns:app=http://geronimo.apache.org/xml/ns/j2ee/application-2.0; 
xmlns:client=http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0; 
xmlns:conn=http://geronimo.apache.org/xml/ns/j2ee/connector-1.2; 
xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.2; 
xmlns:ejb=http://openejb.apache.org/xml/ns/openejb-jar-2.2; 
xmlns:name=http://geronimo.apache.org/xml/ns/naming-1.2; 
xmlns:pers=http://java.sun.com/xml/ns/persistence; 
xmlns:pkgen=http://openejb.apache.org/xml/ns/pkgen-2.1; 
xmlns:sec=http://geronimo.apache.org/xml/ns/security-2.0; 
xmlns:web=http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1;
    dep:environment
    dep:moduleId
    dep:groupIddefault/dep:groupId
    dep:artifactIdcheesrApplication/dep:artifactId
    dep:version1.0/dep:version
    dep:typecar/dep:type
    /dep:moduleId
    dep:dependencies
          dep:dependency
          dep:groupIdconsole.dbpool/dep:groupId
          dep:artifactIdCheesrDBPool/dep:artifactId
          /dep:dependency
        /dep:dependencies
    
    /dep:environment
    web:context-root/cheesrApplication/web:context-root
    
    pers:persistence version=1.0
    pers:persistence-unit name=cheesrData transaction-type=JTA
    pers:descriptionDB2 Account Management/pers:description
    pers:provider
    org.apache.openjpa.persistence.PersistenceProviderImpl
  /pers:provider
    
    pers:jta-data-sourceCheesrDBPool/pers:jta-data-source
    pers:non-jta-data-sourceCheesrDBPool/pers:non-jta-data-source
    pers:classcheesr.Cheese/pers:class
    /pers:persistence-unit
    /pers:persistence
    
/web:web-app


Thanks 
Garimella Srinivas