<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>user@geronimo.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/geronimo-user/"/>
<id>http://mail-archives.apache.org/mod_mbox/geronimo-user/</id>
<updated>2009-12-05T13:26:18Z</updated>
<entry>
<title>Re: JNDI lookup fails with Hibernate + application-scoped datasource</title>
<author><name>Bevon &lt;bevon.palod@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c26653049.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26653049-post@talk-nabble-com%3e</id>
<updated>2009-12-05T05:03:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,
Just to close off this issue, the solution I've tried is as follows:
1.  Declare the data source name in the Hibernate configuration with the
JNDI name of my own choosing.
2.  Use the Context.rename(String, String) API to programmatically rename
the undesireable data souce JNDI name generated by Geronimo to the JNDI name
declared in the Hibernate configuration.  This is done during my
application's startup routines... ie before I make any programmatic calls to
Hibernate.
3.  Use a properties file to provide the "mapping" between the
Geronimo-generated JNDI name and the JNDI name of my own choosing.

More concretely:
1.  hibernate.cfg.xml:
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt;
&lt;hibernate-configuration&gt;
    &lt;session-factory name="java/psop/hibernateSf1"&gt;        
        &lt;!-- Derby Network Server data source as configured in the EAR --&gt;
        &lt;property
name="hibernate.connection.datasource"&gt;jdbc/psop/derbyDs1&lt;/property&gt;        
        ...
    &lt;/session-factory&gt;
&lt;/hibernate-configuration&gt;

2.  application startup routine:
            Context initialContext = null;
            Object oldDataSource = null;

            try
            {
                initialContext = new InitialContext();

                try
                {
                    // first check to see if the new JNDI name is already in
use
                    oldDataSource = initialContext.lookup(
getPsopHibernateProperties().getProperty( NEW_DATA_SOURCE_JNDI_NAME_PROPERTY
) );
                }
                catch( NamingException ne )
                {
                    logger.logp( Level.FINE,
                                 getClass().getName(),
                                 "initializeDataSource()",
                                 "A JNDI exception occurred during lookup of
a potentially old data source object.  This is not an application error.",
                                 ne );
                } // end try/catch

                // if the new JNDI name is already in use...
                if( oldDataSource != null )
                {
                    logger.logp( Level.FINE,
                                 getClass().getName(),
                                 "initializeDataSource()",
                                 "Overwriting an existing JNDI entry." );

                    // lookup the new data source object at the old JNDI
name
                    Object newDataSource = initialContext.lookup(
getPsopHibernateProperties().getProperty( OLD_DATA_SOURCE_JNDI_NAME_PROPERTY
) );

                    // rebind it to the new JNDI name (thus overwriting the
old
                    // data source object)
                    initialContext.rebind(
getPsopHibernateProperties().getProperty( NEW_DATA_SOURCE_JNDI_NAME_PROPERTY
), newDataSource );

                    // clean up the old JNDI name
                    initialContext.unbind(
getPsopHibernateProperties().getProperty( OLD_DATA_SOURCE_JNDI_NAME_PROPERTY
) );
                    initialContext.destroySubcontext(
getPsopHibernateProperties().getProperty( OLD_DATA_SOURCE_JNDI_NAME_PROPERTY
) );
                }
                // if the new JNDI name is not in use...
                else
                {
                    logger.logp( Level.FINE,
                                 getClass().getName(),
                                 "initializeDataSource()",
                                 "Renaming the data source JNDI name." );

                    // just do a rename operation (this also cleans up the
old
                    // JNDI entry)
                    initialContext.rename(
getPsopHibernateProperties().getProperty( OLD_DATA_SOURCE_JNDI_NAME_PROPERTY
),
                                          
getPsopHibernateProperties().getProperty( NEW_DATA_SOURCE_JNDI_NAME_PROPERTY
) );
                } // end if
            }
            catch( NamingException ne )
            {
                // a real JNDI error... handle appropriately
            } // end try/catch



3.   psopHibernate.properties:
# Properties file that contains additional configuration information for
Hibernate 3.3.
#
# Do not rename this file or its property keys.
#
....
# JNDI name mapping for the data source
oldDataSourceJndiName=jca:/default/Psop_EAR50_Test/JCAManagedConnectionFactory/jdbc/psop/derbyDs1
newDataSourceJndiName=jdbc/psop/derbyDs1
....
# end psopHibernate.properties


Of course, this is a bit hacky, but at least in this way, the hack doesn't
appear in the "official" Hibernate, EJB or EAR metadata.... it sits in an
external properties file.

Any thoughts, opinions or further suggestions would be appreciated.
Thanks!
Bevon



Bevon wrote:
&gt; 
&gt; Hi David,
&gt; Thanks again for the prompt reply.
&gt; 
&gt; I certainly agree that a global JNDI registry seems like it can be easily
&gt; "polluted".  Ideally, developers/deployers would be providing enough
&gt; context in their JNDI names to avoid collisions instead of leaving that to
&gt; Geronimo, but I guess that kind of well-known convention is still a ways
&gt; off.
&gt; 
&gt; I'm uncomfortable declaring a resource-ref for any of my EJBs just for the
&gt; sake of registering my data source with a JNDI name of my own choosing. 
&gt; My EJBs don't access the data source directly... it's all Hibernate.
&gt; 
&gt; Is there a way to provide some kind of mapping in the EAR metadata
&gt; (application.xml, geronimo-application.xml or the deploy plan) or perhaps
&gt; "force" a given JNDI name?
&gt; 
&gt; I'll do some investigating on the JNDI API Context.rename(String, String). 
&gt; Perhaps I can unmangle the JNDI name before Hibernate gets to it ;-).
&gt; 
&gt; Kind Regards,
&gt; Bevon
&gt; 
&gt; 
&gt; 
&gt; djencks wrote:
&gt;&gt; 
&gt;&gt; 
&gt;&gt; On Nov 15, 2009, at 8:37 PM, Bevon wrote:
&gt;&gt; 
&gt;&gt;&gt;
&gt;&gt;&gt; Hi David,
&gt;&gt;&gt; Thanks for your prompt reply.  I tried digging into what the actual  
&gt;&gt;&gt; JNDI
&gt;&gt;&gt; name was for the data source as you suggested and also went with the
&gt;&gt;&gt; standard Geronimo JNDI as well (as opposed to the EJB JNDI).  Hereâ€™s  
&gt;&gt;&gt; what I
&gt;&gt;&gt; found:
&gt;&gt;&gt;
&gt;&gt;&gt; In both the Hibernate-JPA and Hibernate-Core case, the data source  
&gt;&gt;&gt; showed
&gt;&gt;&gt; (in the Geronimo consoleâ€™s JNDI Viewer) as:
&gt;&gt;&gt; jca:/default/Psop_EAR50_Test/JCAManagedConnectionFactory/jdbc/psop/ 
&gt;&gt;&gt; derbyDs1
&gt;&gt;&gt;
&gt;&gt;&gt; The fact that it's the same in both cases makes sense, since I'm  
&gt;&gt;&gt; declaring
&gt;&gt;&gt; the data source at the application level and it doesn't change based  
&gt;&gt;&gt; on what
&gt;&gt;&gt; EJB module I'm using.  If I look at the Database Pools view in the  
&gt;&gt;&gt; console,
&gt;&gt;&gt; I see my data source with "jdbc/psop/derbyDs1" as its name and  
&gt;&gt;&gt; deployed as
&gt;&gt;&gt; "default/Psop_EAR_50_Test/1.0/car".  Again, the same for both cases  
&gt;&gt;&gt; and as
&gt;&gt;&gt; expected.
&gt;&gt;&gt;
&gt;&gt;&gt; Based on what you stated earlier, in the Hibernate-JPA case, Geronimo
&gt;&gt;&gt; doesn't use JNDI, it just uses the name to lookup the data source.   
&gt;&gt;&gt; And in
&gt;&gt;&gt; the Hibernate-Core case, Hibernate uses JNDI to do the lookup.
&gt;&gt;&gt;
&gt;&gt;&gt; I guess my next question is -- is there a way to provide a "better"  
&gt;&gt;&gt; JNDI
&gt;&gt;&gt; name for a data source in Geronimo?  I'd think maybe in the  
&gt;&gt;&gt; application
&gt;&gt;&gt; metadata somwhere (application.xml, geronimo-application.xml or the
&gt;&gt;&gt; vendor-specific deployment plan for the database pool).  The reason  
&gt;&gt;&gt; I ask
&gt;&gt;&gt; is:
&gt;&gt;&gt; 1)  The JNDI name is... unwieldy and non-obvious (ie. it's not  
&gt;&gt;&gt; obvious that
&gt;&gt;&gt; "jdbc/psop/derbyDs1" is registered in JNDI as "jca:/default/...." and
&gt;&gt;&gt; 2)  It contains the EAR name in it, which I'd rather not have  
&gt;&gt;&gt; hardcoded into
&gt;&gt;&gt; my EJB module's metadata (for ease of portability reasons).
&gt;&gt; 
&gt;&gt; I am a definite opponent of using global jndi for anything partly for  
&gt;&gt; these kind or reasons.  In a  global jndi name you need a lot of  
&gt;&gt; context info to assure that there won't be naming collisions when you  
&gt;&gt; deploy 57 datasources named "myDS" for your 114 different independent  
&gt;&gt; apps.  That's why the ear name gets into the global jndi name, and why  
&gt;&gt; it will stay there.
&gt;&gt; 
&gt;&gt; That being said you can modify the global jndi name format with a  
&gt;&gt; template in var/config/config-substitutions.properties.  I done't  
&gt;&gt; advise it however.
&gt;&gt; 
&gt;&gt; I would try to declare a resource-ref in each of your ejb jars and  
&gt;&gt; look up the java:comp/env/&lt;res-ref-name&gt; string in hibernate.  This  
&gt;&gt; will work as long as all calls into hibernate come from javaee  
&gt;&gt; components such as ejbs (or on threads whose call stack goes through  
&gt;&gt; such a component).  This has a little more configuration but doesn't  
&gt;&gt; need the context info you are objecting to in the global name.
&gt;&gt; 
&gt;&gt; hope this helps
&gt;&gt; david jencks
&gt;&gt; 
&gt;&gt; 
&gt;&gt;&gt;
&gt;&gt;&gt; In any case, changing the data source JNDI name in Hibernate  
&gt;&gt;&gt; configuration
&gt;&gt;&gt; file gets around the publishing errors:
&gt;&gt;&gt; hibernate.cfg.xml:
&gt;&gt;&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt;&gt;&gt; &lt;!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
&gt;&gt;&gt; Configuration DTD 3.0//EN"
&gt;&gt;&gt; "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt;
&gt;&gt;&gt; &lt;hibernate-configuration&gt;
&gt;&gt;&gt;    &lt;session-factory name="jdbc/psop/hibernateSf1"&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;        &lt;!-- Derby Network Server data source as configured in the  
&gt;&gt;&gt; EAR --&gt;
&gt;&gt;&gt;        &lt;property
&gt;&gt;&gt; name="hibernate.connection.datasource"&gt;jca:/default/Psop_EAR50_Test/ 
&gt;&gt;&gt; JCAManagedConnectionFactory/jdbc/psop/derbyDs1&lt;/property&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;        &lt;!-- Derby SQL dialect --&gt;
&gt;&gt;&gt;        &lt;property
&gt;&gt;&gt; name="hibernate.dialect"&gt;org.hibernate.dialect.DerbyDialect&lt;/property&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;        &lt;!-- Transaction manager lookup class for Geronimno manually
&gt;&gt;&gt; provided. --&gt;
&gt;&gt;&gt;        &lt;property
&gt;&gt;&gt; name 
&gt;&gt;&gt; = 
&gt;&gt;&gt; "hibernate 
&gt;&gt;&gt; .transaction 
&gt;&gt;&gt; .manager_lookup_class 
&gt;&gt;&gt; "&gt;org.hibernate.transaction.GeronimoTransactionManagerLookup&lt;/ 
&gt;&gt;&gt; property&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;        &lt;!-- Transaction manager factory class provided by Hibernate.  
&gt;&gt;&gt; --&gt;
&gt;&gt;&gt;        &lt;property
&gt;&gt;&gt; name 
&gt;&gt;&gt; = 
&gt;&gt;&gt; "hibernate 
&gt;&gt;&gt; .transaction 
&gt;&gt;&gt; .factory_class"&gt;org.hibernate.transaction.JTATransactionFactory&lt;/ 
&gt;&gt;&gt; property&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;        &lt;!-- Show and print nice SQL on stdout --&gt;
&gt;&gt;&gt;        &lt;property name="hibernate.show_sql"&gt;true&lt;/property&gt;
&gt;&gt;&gt;        &lt;property name="hibernate.format_sql"&gt;true&lt;/property&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;        &lt;!-- List of XML mapping files --&gt;
&gt;&gt;&gt;        &lt;mapping
&gt;&gt;&gt; resource="META-INF/mappings/com/psop/model/hibernate/ 
&gt;&gt;&gt; PlayerHibernateEntity.hbm.xml"/&gt;
&gt;&gt;&gt;    &lt;/session-factory&gt;
&gt;&gt;&gt; &lt;/hibernate-configuration&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks in advance,
&gt;&gt;&gt; Bevon
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; djencks wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Hi Bevon,
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I haven't looked through all the files you post but want to give a
&gt;&gt;&gt;&gt; couple hints, maybe you can easily track down what is going on.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; In Geronimo, the jta-datasource and non-jta-datasource values don't
&gt;&gt;&gt;&gt; refer to anything in jndi, they basically look up components
&gt;&gt;&gt;&gt; registered in the geronimo kernel.  The JPA architecture has the
&gt;&gt;&gt;&gt; container (geronimo's jpa support) setting up an object that includes
&gt;&gt;&gt;&gt; these datasources and the rest of the info from the persistence.xml,
&gt;&gt;&gt;&gt; suitably resolved.  So, you don't need to declare any resource-refs  
&gt;&gt;&gt;&gt; in
&gt;&gt;&gt;&gt; your ejb jar anywhere to use jpa.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; For non-jpa hibernate, IIUC your explanation, jndi is really used to
&gt;&gt;&gt;&gt; find the datasource(s).  I'm not clear on exactly what is getting
&gt;&gt;&gt;&gt; looked up.... I strongly advise finding out.  I also suggest using  
&gt;&gt;&gt;&gt; the
&gt;&gt;&gt;&gt; standard geronimo jndi rather than the openejb jndi context which is
&gt;&gt;&gt;&gt; unlikely to have any datasources in it since it is for looking up
&gt;&gt;&gt;&gt; ejbs.  I'd hope that if you _don't_ set the hibernate property it
&gt;&gt;&gt;&gt; would just use
&gt;&gt;&gt;&gt; new InitialContext() which ought to work.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Finally, hibernate might be trying to look up a java:comp/env jndi
&gt;&gt;&gt;&gt; name defined by a resource ref in the ejb jar or some completely
&gt;&gt;&gt;&gt; specified string for a global jndi name.  In the latter case, you'll
&gt;&gt;&gt;&gt; want to check the geronimo.log to make sure you know exactly what the
&gt;&gt;&gt;&gt; global jndi name for your datasource actually is.... it gets logged  
&gt;&gt;&gt;&gt; as
&gt;&gt;&gt;&gt; the datasource starts.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; hope this helps, and if you want to update our docs when you get it
&gt;&gt;&gt;&gt; working that would be great!
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; thanks
&gt;&gt;&gt;&gt; david jencks
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; On Nov 14, 2009, at 11:59 AM, Bevon wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; First, my apologies in advance is this should be posted on a
&gt;&gt;&gt;&gt;&gt; Hibernate board.
&gt;&gt;&gt;&gt;&gt; But this seems more of a configuration issue specific to Geronimo
&gt;&gt;&gt;&gt;&gt; so...
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Geronimo:  v2.1.4
&gt;&gt;&gt;&gt;&gt; Hibernate core:  v3.3.2
&gt;&gt;&gt;&gt;&gt; Derby Network Server:  v10.4.2
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I was able to get Hibernate working as my JPA provider (instead of
&gt;&gt;&gt;&gt;&gt; OpenJPA)
&gt;&gt;&gt;&gt;&gt; for my EJB3 module.  However, as an academic/learning exercise, I
&gt;&gt;&gt;&gt;&gt; have been
&gt;&gt;&gt;&gt;&gt; trying to get Hibernate core working as my persistence layer for my
&gt;&gt;&gt;&gt;&gt; EJB3
&gt;&gt;&gt;&gt;&gt; module.  The problem I'm seeing is that during the Hibernate
&gt;&gt;&gt;&gt;&gt; Configuration.buildSessionFactory() call, a JNDI exception is thrown
&gt;&gt;&gt;&gt;&gt; stating
&gt;&gt;&gt;&gt;&gt; that the datasource could not be found.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I have an application-scoped managed datasource declared for my  
&gt;&gt;&gt;&gt;&gt; EAR as
&gt;&gt;&gt;&gt;&gt; follows:
&gt;&gt;&gt;&gt;&gt; application.xml:
&gt;&gt;&gt;&gt;&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt;&gt;&gt;&gt;&gt; &lt;application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
&gt;&gt;&gt;&gt;&gt;            xmlns="http://java.sun.com/xml/ns/javaee"
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; xmlns:application="http://java.sun.com/xml/ns/javaee/
&gt;&gt;&gt;&gt;&gt; application_5.xsd"
&gt;&gt;&gt;&gt;&gt;            xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
&gt;&gt;&gt;&gt;&gt; http://java.sun.com/xml/ns/javaee/application_5.xsd"
&gt;&gt;&gt;&gt;&gt;            id="Application_ID"
&gt;&gt;&gt;&gt;&gt;            version="5"&gt;
&gt;&gt;&gt;&gt;&gt; &lt;display-name&gt;PsopEAR5_Test&lt;/display-name&gt;
&gt;&gt;&gt;&gt;&gt; &lt;module&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;connector&gt;Derby/tranql-connector-derby-client-local-1.4.rar&lt;/
&gt;&gt;&gt;&gt;&gt; connector&gt;
&gt;&gt;&gt;&gt;&gt; &lt;/module&gt;
&gt;&gt;&gt;&gt;&gt; &lt;module&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;web&gt;
&gt;&gt;&gt;&gt;&gt;     &lt;web-uri&gt;Psop_Servlet25_Jsp21.war&lt;/web-uri&gt;
&gt;&gt;&gt;&gt;&gt;     &lt;context-root&gt;Psop_Servlet25_Jsp21&lt;/context-root&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;/web&gt;
&gt;&gt;&gt;&gt;&gt; &lt;/module&gt;
&gt;&gt;&gt;&gt;&gt; &lt;module&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;ejb&gt;Psop_Ejb30_Hibernate33.jar&lt;/ejb&gt;
&gt;&gt;&gt;&gt;&gt; &lt;/module&gt;
&gt;&gt;&gt;&gt;&gt; &lt;/application&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; geronimo-application.xml:
&gt;&gt;&gt;&gt;&gt; &lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
&gt;&gt;&gt;&gt;&gt; &lt;app:application
&gt;&gt;&gt;&gt;&gt; xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0"
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; xmlns:client="http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0
&gt;&gt;&gt;&gt;&gt; "
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; xmlns:conn="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2"
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2"
&gt;&gt;&gt;&gt;&gt;               
&gt;&gt;&gt;&gt;&gt; xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2
&gt;&gt;&gt;&gt;&gt; "
&gt;&gt;&gt;&gt;&gt;                xmlns:pers="http://java.sun.com/xml/ns/persistence"
&gt;&gt;&gt;&gt;&gt;                xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1
&gt;&gt;&gt;&gt;&gt; "
&gt;&gt;&gt;&gt;&gt;               
&gt;&gt;&gt;&gt;&gt; xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0
&gt;&gt;&gt;&gt;&gt; "
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"
&gt;&gt;&gt;&gt;&gt;                application-name="PsopEAR5_Test"&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;dep:environment&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;dep:moduleId&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;dep:groupId&gt;default&lt;/dep:groupId&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;dep:artifactId&gt;PsopEAR5_Test&lt;/dep:artifactId&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;dep:version&gt;1.0&lt;/dep:version&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;dep:type&gt;car&lt;/dep:type&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;/dep:moduleId&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;dep:dependencies /&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;/dep:environment&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;app:module&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;!--
&gt;&gt;&gt;&gt;&gt;           This connector module is provided by Geronimo to wrap the
&gt;&gt;&gt;&gt;&gt; JDBC
&gt;&gt;&gt;&gt;&gt;           client driver needed to access a Derby Network Server data
&gt;&gt;&gt;&gt;&gt; source.
&gt;&gt;&gt;&gt;&gt;       --&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; &lt;app:connector&gt;Derby/tranql-connector-derby-client-local-1.4.rar&lt;/
&gt;&gt;&gt;&gt;&gt; app:connector&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;!--
&gt;&gt;&gt;&gt;&gt;           This deployment plan provides the vendor-specific details
&gt;&gt;&gt;&gt;&gt; (eg.
&gt;&gt;&gt;&gt;&gt;           Derby-specific requirements) about the data source.
&gt;&gt;&gt;&gt;&gt;       --&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;app:alt-dd&gt;Derby/derby-network-server-plan.xml&lt;/app:alt-dd&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;/app:module&gt;
&gt;&gt;&gt;&gt;&gt; &lt;/app:application&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; derby-network-server-plan.xml:
&gt;&gt;&gt;&gt;&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt;&gt;&gt;&gt;&gt; &lt;connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/
&gt;&gt;&gt;&gt;&gt; connector-1.2"&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;dep:environment
&gt;&gt;&gt;&gt;&gt; xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;dep:moduleId&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;dep:groupId&gt;console.dbpool&lt;/dep:groupId&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;dep:artifactId&gt;jdbc_psop_derbyDs1&lt;/dep:artifactId&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;dep:version&gt;1.0&lt;/dep:version&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;dep:type&gt;rar&lt;/dep:type&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;/dep:moduleId&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;dep:dependencies&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;dep:dependency&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;dep:groupId&gt;org.apache.geronimo.configs&lt;/dep:groupId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;dep:artifactId&gt;system-database&lt;/dep:artifactId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;dep:version&gt;2.1.4&lt;/dep:version&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;dep:type&gt;car&lt;/dep:type&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;/dep:dependency&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;/dep:dependencies&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;/dep:environment&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;resourceadapter&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;outbound-resourceadapter&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;connection-definition&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; &lt;connectionfactory-interface&gt;javax.sql.DataSource&lt;/ 
&gt;&gt;&gt;&gt;&gt; connectionfactory-
&gt;&gt;&gt;&gt;&gt; interface&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;connectiondefinition-instance&gt;
&gt;&gt;&gt;&gt;&gt;                   &lt;name&gt;jdbc/psop/derbyDs1&lt;/name&gt;
&gt;&gt;&gt;&gt;&gt;                   &lt;config-property-setting
&gt;&gt;&gt;&gt;&gt; name="DatabaseName"&gt;E:\PSOP\Databases\Derby\PSOP_DATABASE&lt;/config-
&gt;&gt;&gt;&gt;&gt; property-setting&gt;
&gt;&gt;&gt;&gt;&gt;                   &lt;config-property-setting
&gt;&gt;&gt;&gt;&gt; name="Password"&gt;app&lt;/config-property-setting&gt;
&gt;&gt;&gt;&gt;&gt;                   &lt;config-property-setting
&gt;&gt;&gt;&gt;&gt; name="UserName"&gt;app&lt;/config-property-setting&gt;
&gt;&gt;&gt;&gt;&gt;                   &lt;config-property-setting name="LoginTimeout"/&gt;
&gt;&gt;&gt;&gt;&gt;                   &lt;connectionmanager&gt;
&gt;&gt;&gt;&gt;&gt;                       &lt;local-transaction/&gt;
&gt;&gt;&gt;&gt;&gt;                       &lt;single-pool&gt;
&gt;&gt;&gt;&gt;&gt;                           &lt;max-size&gt;10&lt;/max-size&gt;
&gt;&gt;&gt;&gt;&gt;                           &lt;min-size&gt;0&lt;/min-size&gt;
&gt;&gt;&gt;&gt;&gt;                           &lt;match-one/&gt;
&gt;&gt;&gt;&gt;&gt;                       &lt;/single-pool&gt;
&gt;&gt;&gt;&gt;&gt;                   &lt;/connectionmanager&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;/connectiondefinition-instance&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;/connection-definition&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;/outbound-resourceadapter&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;/resourceadapter&gt;
&gt;&gt;&gt;&gt;&gt; &lt;/connector&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; My EJB3 module metadata is as follows:
&gt;&gt;&gt;&gt;&gt; ejb-jar.xml (essentially empty since I'm using EJB3 annotations):
&gt;&gt;&gt;&gt;&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt;&gt;&gt;&gt;&gt; &lt;ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
&gt;&gt;&gt;&gt;&gt;        xmlns="http://java.sun.com/xml/ns/javaee"
&gt;&gt;&gt;&gt;&gt;        xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
&gt;&gt;&gt;&gt;&gt;        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
&gt;&gt;&gt;&gt;&gt; http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
&gt;&gt;&gt;&gt;&gt;        version="3.0"&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;description&gt;PSOP model implemented with EJB 3.0.  PSOP  
&gt;&gt;&gt;&gt;&gt; persistence
&gt;&gt;&gt;&gt;&gt; implemented with Hibernate 3.3 (native).&lt;/description&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;display-name&gt;Psop_Ejb30_Hibernate33&lt;/display-name&gt;
&gt;&gt;&gt;&gt;&gt; &lt;/ejb-jar&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; openejb-jar.xml (all of the dependency jars were copied into the
&gt;&gt;&gt;&gt;&gt; Geronimo
&gt;&gt;&gt;&gt;&gt; repository):
&gt;&gt;&gt;&gt;&gt; &lt;?xml version="1.0" encoding="UTF-8" standalone="no"?&gt;
&gt;&gt;&gt;&gt;&gt; &lt;openejb-jar xmlns="http://openejb.apache.org/xml/ns/openejb- 
&gt;&gt;&gt;&gt;&gt; jar-2.2"
&gt;&gt;&gt;&gt;&gt;            xmlns:naming="http://geronimo.apache.org/xml/ns/
&gt;&gt;&gt;&gt;&gt; naming-1.2"
&gt;&gt;&gt;&gt;&gt;            xmlns:sec="http://geronimo.apache.org/xml/ns/ 
&gt;&gt;&gt;&gt;&gt; security-2.0"
&gt;&gt;&gt;&gt;&gt;            xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2
&gt;&gt;&gt;&gt;&gt; "&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;sys:environment&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;sys:moduleId&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;sys:groupId&gt;default&lt;/sys:groupId&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;sys:artifactId&gt;Psop_Ejb30_Hibernate33&lt;/sys:artifactId&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;sys:version&gt;1.0&lt;/sys:version&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;sys:type&gt;car&lt;/sys:type&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;/sys:moduleId&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;sys:dependencies&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:groupId&gt;psop_hibernate&lt;/sys:groupId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:artifactId&gt;core&lt;/sys:artifactId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:version&gt;3.3&lt;/sys:version&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:type&gt;jar&lt;/sys:type&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;/sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:groupId&gt;psop_hibernate&lt;/sys:groupId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:artifactId&gt;antlr&lt;/sys:artifactId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:version&gt;2.7.6&lt;/sys:version&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:type&gt;jar&lt;/sys:type&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;/sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:groupId&gt;psop_hibernate&lt;/sys:groupId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:artifactId&gt;commons-collections&lt;/sys:artifactId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:version&gt;3.1&lt;/sys:version&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:type&gt;jar&lt;/sys:type&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;/sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:groupId&gt;psop_hibernate&lt;/sys:groupId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:artifactId&gt;dom4j&lt;/sys:artifactId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:version&gt;1.6.1&lt;/sys:version&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:type&gt;jar&lt;/sys:type&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;/sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:groupId&gt;psop_hibernate&lt;/sys:groupId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:artifactId&gt;javassist&lt;/sys:artifactId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:version&gt;3.9.0.GA&lt;/sys:version&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:type&gt;jar&lt;/sys:type&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;/sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:groupId&gt;psop_hibernate&lt;/sys:groupId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:artifactId&gt;jta&lt;/sys:artifactId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:version&gt;1.1&lt;/sys:version&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:type&gt;jar&lt;/sys:type&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;/sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:groupId&gt;psop_hibernate&lt;/sys:groupId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:artifactId&gt;GeronimoTransactionManager&lt;/
&gt;&gt;&gt;&gt;&gt; sys:artifactId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:version&gt;1.0&lt;/sys:version&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:type&gt;jar&lt;/sys:type&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;/sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:groupId&gt;org.slf4j&lt;/sys:groupId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:artifactId&gt;slf4j-api&lt;/sys:artifactId&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:version&gt;1.4.3&lt;/sys:version&gt;
&gt;&gt;&gt;&gt;&gt;               &lt;sys:type&gt;jar&lt;/sys:type&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;/sys:dependency&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;/sys:dependencies&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;/sys:environment&gt;
&gt;&gt;&gt;&gt;&gt; &lt;/openejb-jar&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; hibernate.cfg.xml:
&gt;&gt;&gt;&gt;&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt;&gt;&gt;&gt;&gt; &lt;!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate
&gt;&gt;&gt;&gt;&gt; Configuration DTD 3.0//EN"
&gt;&gt;&gt;&gt;&gt; "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt;
&gt;&gt;&gt;&gt;&gt; &lt;hibernate-configuration&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;session-factory name="jdbc/psop/hibernateSf1"&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;!-- Derby Network Server data source as configured in the
&gt;&gt;&gt;&gt;&gt; EAR --&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;property
&gt;&gt;&gt;&gt;&gt; name="hibernate.connection.datasource"&gt;jdbc/psop/derbyDs1&lt;/property&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;!-- Derby SQL dialect --&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;property
&gt;&gt;&gt;&gt;&gt; name="hibernate.dialect"&gt;org.hibernate.dialect.DerbyDialect&lt;/ 
&gt;&gt;&gt;&gt;&gt; property&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;!-- Transaction manager lookup class for Geronimno manually
&gt;&gt;&gt;&gt;&gt; provided. --&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;property
&gt;&gt;&gt;&gt;&gt; name
&gt;&gt;&gt;&gt;&gt; =
&gt;&gt;&gt;&gt;&gt; "hibernate
&gt;&gt;&gt;&gt;&gt; .transaction
&gt;&gt;&gt;&gt;&gt; .manager_lookup_class
&gt;&gt;&gt;&gt;&gt; "&gt;org.hibernate.transaction.GeronimoTransactionManagerLookup&lt;/
&gt;&gt;&gt;&gt;&gt; property&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;!-- Transaction manager factory class provided by Hibernate.
&gt;&gt;&gt;&gt;&gt; --&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;property
&gt;&gt;&gt;&gt;&gt; name
&gt;&gt;&gt;&gt;&gt; =
&gt;&gt;&gt;&gt;&gt; "hibernate
&gt;&gt;&gt;&gt;&gt; .transaction
&gt;&gt;&gt;&gt;&gt; .factory_class"&gt;org.hibernate.transaction.JTATransactionFactory&lt;/
&gt;&gt;&gt;&gt;&gt; property&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;!-- Show and print nice SQL on stdout --&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;property name="hibernate.show_sql"&gt;true&lt;/property&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;property name="hibernate.format_sql"&gt;true&lt;/property&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;!-- List of XML mapping files --&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;mapping
&gt;&gt;&gt;&gt;&gt; resource="META-INF/mappings/com/psop/model/hibernate/
&gt;&gt;&gt;&gt;&gt; PlayerHibernateEntity.hbm.xml"/&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;/session-factory&gt;
&gt;&gt;&gt;&gt;&gt; &lt;/hibernate-configuration&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Here is the code that tries to build the SessionFactory:
&gt;&gt;&gt;&gt;&gt; Configuration hibernateConfiguration = new  
&gt;&gt;&gt;&gt;&gt; Configuration().configure(
&gt;&gt;&gt;&gt;&gt; "/META-INF/hibernate.cfg.xml" );
&gt;&gt;&gt;&gt;&gt; hibernateConfiguration.setProperty(
&gt;&gt;&gt;&gt;&gt; org.hibernate.cfg.Environment.JNDI_CLASS,
&gt;&gt;&gt;&gt;&gt; "org.apache.openejb.client.RemoteInitialContextFactory" ) );
&gt;&gt;&gt;&gt;&gt; hibernateConfiguration
&gt;&gt;&gt;&gt;&gt; .setProperty( org.hibernate.cfg.Environment.JNDI_URL,
&gt;&gt;&gt;&gt;&gt; "ejbd://localhost:4201" );
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; sessionFactorySingleInstance =
&gt;&gt;&gt;&gt;&gt; hibernateConfiguration.buildSessionFactory();
&gt;&gt;&gt;&gt;&gt; // throws JNDI exception
&gt;&gt;&gt;&gt;&gt; // as a test, if I do a JNDI lookup on "jdbc/psop/derbyDs1", I get
&gt;&gt;&gt;&gt;&gt; the same
&gt;&gt;&gt;&gt;&gt; exception
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Here is the exception that occurs during publishing (I'm using  
&gt;&gt;&gt;&gt;&gt; Eclipse
&gt;&gt;&gt;&gt;&gt; Ganymede with GEP):
&gt;&gt;&gt;&gt;&gt; javax.naming.NameNotFoundException: /jdbc/psop/derbyDs1 does not
&gt;&gt;&gt;&gt;&gt; exist in
&gt;&gt;&gt;&gt;&gt; the system.  Check that the app was successfully deployed.
&gt;&gt;&gt;&gt;&gt; 	at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java: 
&gt;&gt;&gt;&gt;&gt; 277)
&gt;&gt;&gt;&gt;&gt; 	at javax.naming.InitialContext.lookup(Unknown Source)
&gt;&gt;&gt;&gt;&gt; 	at
&gt;&gt;&gt;&gt;&gt; com
&gt;&gt;&gt;&gt;&gt; .psop
&gt;&gt;&gt;&gt;&gt; .model
&gt;&gt;&gt;&gt;&gt; .ejb
&gt;&gt;&gt;&gt;&gt; .config
&gt;&gt;&gt;&gt;&gt; .EjbHibernateModelConfig
&gt;&gt;&gt;&gt;&gt; .initializeSessionFactory(EjbHibernateModelConfig.java:234)
&gt;&gt;&gt;&gt;&gt; 	at
&gt;&gt;&gt;&gt;&gt; com
&gt;&gt;&gt;&gt;&gt; .psop
&gt;&gt;&gt;&gt;&gt; .model
&gt;&gt;&gt;&gt;&gt; .ejb
&gt;&gt;&gt;&gt;&gt; .config
&gt;&gt;&gt;&gt;&gt; .EjbHibernateModelConfig
&gt;&gt;&gt;&gt;&gt; .initializeModel(EjbHibernateModelConfig.java:292)
&gt;&gt;&gt;&gt;&gt; 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&gt;&gt;&gt;&gt;&gt; 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
&gt;&gt;&gt;&gt;&gt; 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
&gt;&gt;&gt;&gt;&gt; 	at java.lang.reflect.Method.invoke(Unknown Source)
&gt;&gt;&gt;&gt;&gt; 	at
&gt;&gt;&gt;&gt;&gt; org.apache.openejb.core.interceptor.ReflectionInvocationContext
&gt;&gt;&gt;&gt;&gt; $Invocation.invoke(ReflectionInvocationContext.java:158)
&gt;&gt;&gt;&gt;&gt; 	at
&gt;&gt;&gt;&gt;&gt; org
&gt;&gt;&gt;&gt;&gt; .apache
&gt;&gt;&gt;&gt;&gt; .openejb
&gt;&gt;&gt;&gt;&gt; .core
&gt;&gt;&gt;&gt;&gt; .interceptor
&gt;&gt;&gt;&gt;&gt; .ReflectionInvocationContext
&gt;&gt;&gt;&gt;&gt; .proceed(ReflectionInvocationContext.java:141)
&gt;&gt;&gt;&gt;&gt; 	at
&gt;&gt;&gt;&gt;&gt; org
&gt;&gt;&gt;&gt;&gt; .apache
&gt;&gt;&gt;&gt;&gt; .openejb
&gt;&gt;&gt;&gt;&gt; .core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)
&gt;&gt;&gt;&gt;&gt; 	at
&gt;&gt;&gt;&gt;&gt; org
&gt;&gt;&gt;&gt;&gt; .apache
&gt;&gt;&gt;&gt;&gt; .openejb
&gt;&gt;&gt;&gt;&gt; .core.stateless.StatelessContainer._invoke(StatelessContainer.java:
&gt;&gt;&gt;&gt;&gt; 210)
&gt;&gt;&gt;&gt;&gt; 	at
&gt;&gt;&gt;&gt;&gt; org
&gt;&gt;&gt;&gt;&gt; .apache
&gt;&gt;&gt;&gt;&gt; .openejb
&gt;&gt;&gt;&gt;&gt; .core.stateless.StatelessContainer._invoke(StatelessContainer.java:
&gt;&gt;&gt;&gt;&gt; 188)
&gt;&gt;&gt;&gt;&gt; 	at
&gt;&gt;&gt;&gt;&gt; org
&gt;&gt;&gt;&gt;&gt; .apache
&gt;&gt;&gt;&gt;&gt; .openejb
&gt;&gt;&gt;&gt;&gt; .core.stateless.StatelessContainer.invoke(StatelessContainer.java: 
&gt;&gt;&gt;&gt;&gt; 165)
&gt;&gt;&gt;&gt;&gt; 	at
&gt;&gt;&gt;&gt;&gt; org
&gt;&gt;&gt;&gt;&gt; .apache
&gt;&gt;&gt;&gt;&gt; .openejb
&gt;&gt;&gt;&gt;&gt; .server
&gt;&gt;&gt;&gt;&gt; .ejbd
&gt;&gt;&gt;&gt;&gt; .EjbRequestHandler
&gt;&gt;&gt;&gt;&gt; .doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:238)
&gt;&gt;&gt;&gt;&gt; 	at
&gt;&gt;&gt;&gt;&gt; org
&gt;&gt;&gt;&gt;&gt; .apache
&gt;&gt;&gt;&gt;&gt; .openejb
&gt;&gt;&gt;&gt;&gt; .server 
&gt;&gt;&gt;&gt;&gt; .ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:
&gt;&gt;&gt;&gt;&gt; 129)
&gt;&gt;&gt;&gt;&gt; 	at
&gt;&gt;&gt;&gt;&gt; org
&gt;&gt;&gt;&gt;&gt; .apache
&gt;&gt;&gt;&gt;&gt; .openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:164)
&gt;&gt;&gt;&gt;&gt; 	at org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:
&gt;&gt;&gt;&gt;&gt; 122)
&gt;&gt;&gt;&gt;&gt; 	at org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:
&gt;&gt;&gt;&gt;&gt; 84)
&gt;&gt;&gt;&gt;&gt; 	at org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:
&gt;&gt;&gt;&gt;&gt; 60)
&gt;&gt;&gt;&gt;&gt; 	at org.apache.openejb.server.ServicePool$2.run(ServicePool.java:78)
&gt;&gt;&gt;&gt;&gt; 	at org.apache.openejb.server.ServicePool$3.run(ServicePool.java: 
&gt;&gt;&gt;&gt;&gt; 101)
&gt;&gt;&gt;&gt;&gt; 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
&gt;&gt;&gt;&gt;&gt; Source)
&gt;&gt;&gt;&gt;&gt; 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown  
&gt;&gt;&gt;&gt;&gt; Source)
&gt;&gt;&gt;&gt;&gt; 	at java.lang.Thread.run(Unknown Source)
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Geronimo log (I don't see any binding of the datasource to JNDI  
&gt;&gt;&gt;&gt;&gt; here):
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:06,903 INFO  [config] Configuring  
&gt;&gt;&gt;&gt;&gt; Service(id=Default
&gt;&gt;&gt;&gt;&gt; Stateless Container, type=Container, provider-id=Default Stateless
&gt;&gt;&gt;&gt;&gt; Container)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:06,903 INFO  [config] Configuring  
&gt;&gt;&gt;&gt;&gt; Service(id=Default
&gt;&gt;&gt;&gt;&gt; Stateful Container, type=Container, provider-id=Default Stateful
&gt;&gt;&gt;&gt;&gt; Container)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:06,903 INFO  [config] Configuring
&gt;&gt;&gt;&gt;&gt; Service(id=Default BMP
&gt;&gt;&gt;&gt;&gt; Container, type=Container, provider-id=Default BMP Container)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:06,903 INFO  [config] Configuring
&gt;&gt;&gt;&gt;&gt; Service(id=Default CMP
&gt;&gt;&gt;&gt;&gt; Container, type=Container, provider-id=Default CMP Container)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:06,903 INFO  [config] Configuring app:
&gt;&gt;&gt;&gt;&gt; default/PsopEAR5_Test/1.0/car
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:06,919 INFO  [OpenEJB] Auto-deploying ejb
&gt;&gt;&gt;&gt;&gt; ejb/psop/ejbHibernateFinder:
&gt;&gt;&gt;&gt;&gt; EjbDeployment(deployment-id=Psop_Ejb30_Hibernate33.jar/ejb/psop/
&gt;&gt;&gt;&gt;&gt; ejbHibernateFinder)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:06,919 INFO  [OpenEJB] Auto-deploying ejb
&gt;&gt;&gt;&gt;&gt; ejb/psop/ejbHibernateDestroyer:
&gt;&gt;&gt;&gt;&gt; EjbDeployment(deployment-id=Psop_Ejb30_Hibernate33.jar/ejb/psop/
&gt;&gt;&gt;&gt;&gt; ejbHibernateDestroyer)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:06,919 INFO  [OpenEJB] Auto-deploying ejb
&gt;&gt;&gt;&gt;&gt; ejb/psop/ejbHibernateCreator:
&gt;&gt;&gt;&gt;&gt; EjbDeployment(deployment-id=Psop_Ejb30_Hibernate33.jar/ejb/psop/
&gt;&gt;&gt;&gt;&gt; ejbHibernateCreator)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:06,919 INFO  [OpenEJB] Auto-deploying ejb
&gt;&gt;&gt;&gt;&gt; ejb/psop/ejbHibernateModelConfig:
&gt;&gt;&gt;&gt;&gt; EjbDeployment(deployment-id=Psop_Ejb30_Hibernate33.jar/ejb/psop/
&gt;&gt;&gt;&gt;&gt; ejbHibernateModelConfig)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:06,919 INFO  [config] Loaded Module:
&gt;&gt;&gt;&gt;&gt; default/PsopEAR5_Test/1.0/car
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:07,810 INFO  [KernelContextGBean] bound gbean
&gt;&gt;&gt;&gt;&gt; default/PsopEAR5_Test/1.0/car?J2EEApplication=default/PsopEAR5_Test/
&gt;&gt;&gt;&gt;&gt; 1.0/car,JCAConnectionFactory=jdbc/psop/derbyDs1,JCAResource=Derby/
&gt;&gt;&gt;&gt;&gt; tranql-connector-derby-client-local-1.4.rar,ResourceAdapter=Derby/
&gt;&gt;&gt;&gt;&gt; tranql-connector-derby-client-
&gt;&gt;&gt;&gt;&gt; local-1.4.rar,ResourceAdapterModule=Derby/tranql-connector-derby-
&gt;&gt;&gt;&gt;&gt; client-local-1.4.rar,j2eeType=JCAManagedConnectionFactory,name=jdbc/
&gt;&gt;&gt;&gt;&gt; psop/derbyDs1
&gt;&gt;&gt;&gt;&gt; at name default/PsopEAR5_Test/JCAManagedConnectionFactory/jdbc/psop/
&gt;&gt;&gt;&gt;&gt; derbyDs1
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:07,810 INFO  [startup] Assembling app: C:\Documents
&gt;&gt;&gt;&gt;&gt; and
&gt;&gt;&gt;&gt;&gt; Settings\Bevon Palod\Local
&gt;&gt;&gt;&gt;&gt; Settings\Temp\geronimo-deploymentUtil3743899707090395072.jar
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:07,872 INFO  [startup]
&gt;&gt;&gt;&gt;&gt; Jndi(name=ejb/psop/ejbHibernateFinderRemote) --&gt;
&gt;&gt;&gt;&gt;&gt; Ejb(deployment-id=Psop_Ejb30_Hibernate33.jar/ejb/psop/
&gt;&gt;&gt;&gt;&gt; ejbHibernateFinder)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:07,872 INFO  [startup]
&gt;&gt;&gt;&gt;&gt; Jndi(name=ejb/psop/ejbHibernateDestroyerRemote) --&gt;
&gt;&gt;&gt;&gt;&gt; Ejb(deployment-id=Psop_Ejb30_Hibernate33.jar/ejb/psop/
&gt;&gt;&gt;&gt;&gt; ejbHibernateDestroyer)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:07,872 INFO  [startup]
&gt;&gt;&gt;&gt;&gt; Jndi(name=ejb/psop/ejbHibernateCreatorRemote) --&gt;
&gt;&gt;&gt;&gt;&gt; Ejb(deployment-id=Psop_Ejb30_Hibernate33.jar/ejb/psop/
&gt;&gt;&gt;&gt;&gt; ejbHibernateCreator)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:07,872 INFO  [startup]
&gt;&gt;&gt;&gt;&gt; Jndi(name=ejb/psop/ejbHibernateModelConfigRemote) --&gt;
&gt;&gt;&gt;&gt;&gt; Ejb(deployment-id=Psop_Ejb30_Hibernate33.jar/ejb/psop/
&gt;&gt;&gt;&gt;&gt; ejbHibernateModelConfig)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:07,872 INFO  [startup] Created
&gt;&gt;&gt;&gt;&gt; Ejb(deployment-id=Psop_Ejb30_Hibernate33.jar/ejb/psop/
&gt;&gt;&gt;&gt;&gt; ejbHibernateFinder,
&gt;&gt;&gt;&gt;&gt; ejb-name=ejb/psop/ejbHibernateFinder, container=Default Stateless
&gt;&gt;&gt;&gt;&gt; Container)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:07,872 INFO  [startup] Created
&gt;&gt;&gt;&gt;&gt; Ejb(deployment-id=Psop_Ejb30_Hibernate33.jar/ejb/psop/
&gt;&gt;&gt;&gt;&gt; ejbHibernateDestroyer,
&gt;&gt;&gt;&gt;&gt; ejb-name=ejb/psop/ejbHibernateDestroyer, container=Default Stateless
&gt;&gt;&gt;&gt;&gt; Container)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:07,872 INFO  [startup] Created
&gt;&gt;&gt;&gt;&gt; Ejb(deployment-id=Psop_Ejb30_Hibernate33.jar/ejb/psop/
&gt;&gt;&gt;&gt;&gt; ejbHibernateCreator,
&gt;&gt;&gt;&gt;&gt; ejb-name=ejb/psop/ejbHibernateCreator, container=Default Stateless
&gt;&gt;&gt;&gt;&gt; Container)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:07,872 INFO  [startup] Created
&gt;&gt;&gt;&gt;&gt; Ejb(deployment-id=Psop_Ejb30_Hibernate33.jar/ejb/psop/
&gt;&gt;&gt;&gt;&gt; ejbHibernateModelConfig,
&gt;&gt;&gt;&gt;&gt; ejb-name=ejb/psop/ejbHibernateModelConfig, container=Default  
&gt;&gt;&gt;&gt;&gt; Stateless
&gt;&gt;&gt;&gt;&gt; Container)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:07,872 INFO  [startup] Deployed
&gt;&gt;&gt;&gt;&gt; Application(path=C:\Documents and Settings\Bevon Palod\Local
&gt;&gt;&gt;&gt;&gt; Settings\Temp\geronimo-deploymentUtil3743899707090395072.jar)
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,013 INFO  [OpenEJB] invoking method create on
&gt;&gt;&gt;&gt;&gt; Psop_Ejb30_Hibernate33.jar/ejb/psop/ejbHibernateModelConfig
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,013 INFO  [OpenEJB] finished invoking method
&gt;&gt;&gt;&gt;&gt; create
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,013 INFO  [Transaction] TX Required: Started
&gt;&gt;&gt;&gt;&gt; transaction
&gt;&gt;&gt;&gt;&gt; org.apache.geronimo.transaction.manager.TransactionImpl@188807b
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,091 INFO  [Environment] Hibernate 3.3.2.GA
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,091 INFO  [Environment] hibernate.properties not
&gt;&gt;&gt;&gt;&gt; found
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,106 INFO  [Environment] Bytecode provider name :
&gt;&gt;&gt;&gt;&gt; javassist
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,122 INFO  [Environment] using JDK 1.4
&gt;&gt;&gt;&gt;&gt; java.sql.Timestamp
&gt;&gt;&gt;&gt;&gt; handling
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,356 INFO  [Configuration] configuring from
&gt;&gt;&gt;&gt;&gt; resource:
&gt;&gt;&gt;&gt;&gt; /META-INF/hibernate.cfg.xml
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,356 INFO  [Configuration] Configuration  
&gt;&gt;&gt;&gt;&gt; resource:
&gt;&gt;&gt;&gt;&gt; /META-INF/hibernate.cfg.xml
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,497 INFO  [Configuration] Reading mappings from
&gt;&gt;&gt;&gt;&gt; resource
&gt;&gt;&gt;&gt;&gt; : META-INF/mappings/com/psop/model/hibernate/
&gt;&gt;&gt;&gt;&gt; PlayerHibernateEntity.hbm.xml
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,606 INFO  [HbmBinder] Mapping class:
&gt;&gt;&gt;&gt;&gt; com.psop.model.hibernate.PlayerHibernateEntity -&gt; PLAYERS
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,685 INFO  [Configuration] Configured
&gt;&gt;&gt;&gt;&gt; SessionFactory:
&gt;&gt;&gt;&gt;&gt; jdbc/psop/hibernateSf1
&gt;&gt;&gt;&gt;&gt; 2009-11-14 14:30:08,685 INFO  [Transaction] TX Required: Committing
&gt;&gt;&gt;&gt;&gt; transaction
&gt;&gt;&gt;&gt;&gt; org.apache.geronimo.transaction.manager.TransactionImpl@188807b
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I do not see this exception when I make use of Hibernate  
&gt;&gt;&gt;&gt;&gt; Annotations +
&gt;&gt;&gt;&gt;&gt; EnitityManager and stick with JPA-only API/annotations in my code.
&gt;&gt;&gt;&gt;&gt; In terms
&gt;&gt;&gt;&gt;&gt; of configuration, the EAR metadata is exactly the same (save for
&gt;&gt;&gt;&gt;&gt; swapping
&gt;&gt;&gt;&gt;&gt; the EJB3 modules).  The EJB3 module metadata has two differences:
&gt;&gt;&gt;&gt;&gt; 1.  I've got a persistence.xml instead of hibernate.cfg.xml.
&gt;&gt;&gt;&gt;&gt; 2.  I've added the Hibernate Annotations + EntityManager
&gt;&gt;&gt;&gt;&gt; dependencies to my
&gt;&gt;&gt;&gt;&gt; openejb-jar.xml (won't bother pasting it again here).
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; persistence.xml:
&gt;&gt;&gt;&gt;&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt;&gt;&gt;&gt;&gt; &lt;persistence xmlns="http://java.sun.com/xml/ns/persistence"
&gt;&gt;&gt;&gt;&gt;            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
&gt;&gt;&gt;&gt;&gt;            xsi:schemaLocation="http://java.sun.com/xml/ns/ 
&gt;&gt;&gt;&gt;&gt; persistence
&gt;&gt;&gt;&gt;&gt; http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
&gt;&gt;&gt;&gt;&gt;            version="1.0" &gt;
&gt;&gt;&gt;&gt;&gt;   &lt;persistence-unit name="Psop_Ejb30_Jpa10" transaction-type="JTA"&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;description&gt;Hibernate v3.3 JPA provider&lt;/description&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;jta-data-source&gt;jdbc/psop/derbyDs1&lt;/jta-data-source&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;class&gt;com.psop.model.jpa.PlayerJpaEntity&lt;/class&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;properties&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;property  
&gt;&gt;&gt;&gt;&gt; name="hibernate.transaction.manager_lookup_class"
&gt;&gt;&gt;&gt;&gt; value="org.hibernate.transaction.GeronimoTransactionManagerLookup"/&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;property name="hibernate.show_sql" value="true"/&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;property name="hibernate.format_sql" value="true"/&gt;
&gt;&gt;&gt;&gt;&gt;           &lt;property name="hibernate.dialect"
&gt;&gt;&gt;&gt;&gt; value="org.hibernate.dialect.DerbyDialect"/&gt;
&gt;&gt;&gt;&gt;&gt;       &lt;/properties&gt;
&gt;&gt;&gt;&gt;&gt;   &lt;/persistence-unit&gt;
&gt;&gt;&gt;&gt;&gt; &lt;/persistence&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; My best guess -- I'm doing something wrong or it's a faulty
&gt;&gt;&gt;&gt;&gt; assumption that
&gt;&gt;&gt;&gt;&gt; my datasource will automagically be registered in JNDI (as it is
&gt;&gt;&gt;&gt;&gt; with JPA).
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Please bear with me as I'm a newbie.  I've been banging on Geronimo
&gt;&gt;&gt;&gt;&gt; for just
&gt;&gt;&gt;&gt;&gt; about a month and have been at Hibernate for maybe a week.  If
&gt;&gt;&gt;&gt;&gt; someone could
&gt;&gt;&gt;&gt;&gt; shed some light on this problem or perhaps point me to some
&gt;&gt;&gt;&gt;&gt; documentation
&gt;&gt;&gt;&gt;&gt; (yes, I've read the Hibernate to Geronimo migration docs, yes, I've
&gt;&gt;&gt;&gt;&gt; googled,
&gt;&gt;&gt;&gt;&gt; yes, I did a keyword search on this forum for "Hibernate  
&gt;&gt;&gt;&gt;&gt; datasource").
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Many thanks in advance!!!
&gt;&gt;&gt;&gt;&gt; Bevon
&gt;&gt;&gt;&gt;&gt; -- 
&gt;&gt;&gt;&gt;&gt; View this message in context:
&gt;&gt;&gt;&gt;&gt; http://old.nabble.com/JNDI-lookup-fails-with-Hibernate-%2B-application-scoped-datasource-tp26353366s134p26353366.html
&gt;&gt;&gt;&gt;&gt; Sent from the Apache Geronimo - Users mailing list archive at
&gt;&gt;&gt;&gt;&gt; Nabble.com.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; -- 
&gt;&gt;&gt; View this message in context:
&gt;&gt;&gt; http://old.nabble.com/JNDI-lookup-fails-with-Hibernate-%2B-application-scoped-datasource-tp26353366s134p26366792.html
&gt;&gt;&gt; Sent from the Apache Geronimo - Users mailing list archive at  
&gt;&gt;&gt; Nabble.com.
&gt;&gt;&gt;
&gt;&gt; 
&gt;&gt; 
&gt;&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/JNDI-lookup-fails-with-Hibernate-%2B-application-scoped-datasource-tp26353366s134p26653049.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>jaxws/wsgen fails with &quot;Missing C:\Program Files\Java\lib.....&quot;</title>
<author><name>Bevon &lt;bevon.palod@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c26652969.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26652969-post@talk-nabble-com%3e</id>
<updated>2009-12-05T04:38:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Greetings,
I am trying to generate a WSDL for a simple POJO, but I cannot seem to get
wsgen working.  All attempts to use jaxws/wsgen fail with "[JAXWSTools]
Missing C:\Program Files\Java\lib. This may be r
equired for wsgen to run."

A couple of examples:
Example 1:
-psop_jaxws20_1.jar contains my POJO + SEI
-com.psop.controller.ws.CreatePlayerJaxws is the POJO

C:\Program Files\Apache\Geronimo_v2.1.4\bin&gt;gsh
Apache Geronimo (2.1.4)

Type 'help' for more information.
-------------------------------------------------------------------------------
Bevon Palod@BEVONTP:/&gt; jaxws/wsgen -classpath
E:/PSOP/wsdl/psop_jaxws20_1.jar -d
 E:/PSOP/wsdl -wsdl:soap1.1 com.psop.controller.ws.CreatePlayerJaxws
23:33:56,830 WARN  [JAXWSTools] Missing C:\Program Files\Java\lib. This may
be r
equired for wsgen to run.
ERROR InvocationTargetException: null
Bevon Palod@BEVONTP:/&gt;


Example 2:
-attempting to see the help for wsgen

C:\Program Files\Apache\Geronimo_v2.1.4\bin&gt;gsh
Apache Geronimo (2.1.4)

Type 'help' for more information.
-------------------------------------------------------------------------------
Bevon Palod@BEVONTP:/&gt; jaxws/wsgen -help
23:28:46,048 WARN  [JAXWSTools] Missing C:\Program Files\Java\lib. This may
be r
equired for wsgen to run.
ERROR InvocationTargetException: null
Bevon Palod@BEVONTP:/&gt;


My Java-related environment variables correctly point to the location of my
Java install:
C:\Program Files\Apache\Geronimo_v2.1.4\bin&gt;gsh
Apache Geronimo (2.1.4)

Type 'help' for more information.
-------------------------------------------------------------------------------
Bevon Palod@BEVONTP:/&gt; set
env={USERPROFILE=C:\Documents and Settings\Bevon Palod,
GSHELL_HOME=C:\Program F
iles\Apache\Geronimo_v2.1.4\bin\.., JAVA_HOME=C:\Program
Files\Java\jre1.6.0_17,
 DIRNAME=C:\Program Files\Apache\Geronimo_v2.1.4\bin\, =ExitCode=00000000,
BASED
IR=C:\Program Files\Apache\Geronimo_v2.1.4\bin\, SystemDrive=C:,
_RUNJDB="C:\Pro
gram Files\Java\jre1.6.0_17\bin\jdb",
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WIN
DOWS\system32\wbem;C:\Program Files\Intel\WiFi\bin;C:\Program Files\ATI
Technolo
gies\ATI.ACE\Core-Static;c:\Program Files\Common Files\Lenovo;C:\Program
Files\C
ommon Files\Roxio Shared\10.0\DLLShared;C:\Program Files\Common Files\Roxio
Shar
ed\DLLShared;C:\Program Files\ThinkPad\ConnectUtilities;C:\Program
Files\Lenovo\
Client Security Solution;C:\Program Files\Common Files\DivX
Shared;C:\Program Fi
les\QuickTime\QTSystem, PROCESSOR_REVISION=1706,
TPCCommon=C:\PROGRA~1\THINKV~1\
PrdCtr, USERDOMAIN=BEVONTP, ALLUSERSPROFILE=C:\Documents and Settings\All
Users,
 SESSIONNAME=Console, TMP=C:\DOCUME~1\BEVONP~1\LOCALS~1\Temp,
LOGONSERVER=\\BEVO
NTP, =::=::\, CommonProgramFiles=C:\Program Files\Common Files, PROMPT=$P$G,
PRO
CESSOR_LEVEL=6, SWSHARE=C:\SWSHARE, TVTPYDIR=C:\Program Files\Common
Files\Lenov
o\Python24, COMPUTERNAME=BEVONTP, SystemRoot=C:\WINDOWS,
EMC_AUTOPLAY=C:\Program
 Files\Common Files\Roxio Shared\, USERNAME=Bevon Palod,
APPDATA=C:\Documents an
d Settings\Bevon Palod\Application Data,
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.
JS;.JSE;.WSF;.WSH, __COMPAT_LAYER=EnableNXShowUI ,
TEMP=C:\DOCUME~1\BEVONP~1\LOC
ALS~1\Temp, ProgramFiles=C:\Program Files, HOMEDRIVE=C:, =C:=C:\Program
Files\Ap
ache\Geronimo_v2.1.4\bin, QTJAVA=C:\Program
Files\Java\jre1.6.0_17\lib\ext\QTJav
a.zip, BOOTJAR=C:\Program
Files\Apache\Geronimo_v2.1.4\bin\..\lib\boot\gshell-bo
otstrap.jar, PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6,
GenuineIntel
, RoxioCentral=C:\Program Files\Common Files\Roxio Shared\10.0\Roxio
Central36\,
 _REQUIRE_JDK=0, CLASSPATH=.;C:\Program
Files\Java\jre1.6.0_17\lib\ext\QTJava.zi
p, PROCESSOR_ARCHITECTURE=x86, OS=Windows_NT, FP_NO_HOST_CHECK=NO,
HOMEPATH=\Doc
uments and Settings\Bevon Palod, TVT=C:\Program Files\Lenovo,
JRE_HOME=C:\Progra
m Files\Java\jre1.6.0_17, jdkOrJreHomeSet=1, RR=C:\Program
Files\Lenovo\Rescue a
nd Recovery, _RUNJAVAW="C:\Program Files\Java\jre1.6.0_17\bin\javaw",
_RUNJAVA="
C:\Program Files\Java\jre1.6.0_17\bin\java", windir=C:\WINDOWS,
NUMBER_OF_PROCES
SORS=2, TVTCOMMON=C:\Program Files\Common Files\Lenovo,
ComSpec=C:\WINDOWS\syste
m32\cmd.exe, DERBY_INSTALL=C:\Program Files\Apache\Derby_v10.5.3.0}


Any help would be appreciated.  If more is needed, please let me know.
Thanks in advance,
Bevon
-- 
View this message in context: http://old.nabble.com/jaxws-wsgen-fails-with-%22Missing-C%3A%5CProgram-Files%5CJava%5Clib.....%22-tp26652969s134p26652969.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Deploy and System.out.println</title>
<author><name>Forrest Xia &lt;forrestxm@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c432b67430912021750t63fc1dcblee3627503b9c5584@mail.gmail.com%3e"/>
<id>urn:uuid:%3c432b67430912021750t63fc1dcblee3627503b9c5584@mail-gmail-com%3e</id>
<updated>2009-12-03T01:50:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Sounds to me you encountered a deployment problem. If your G server is
running on windows, you can see the system.out.println info in a DOS window,
otherwise, you can find it in a file var/log/geronimo.out.

If you cannot figure out what the problem might be, you can open DEBUG in
geronimo log configuration var/log/server-log4j.properties to catch more
detailed about the deployment issue.

Good luck!

Forrest


</pre>
</div>
</content>
</entry>
<entry>
<title>Deploy and System.out.println</title>
<author><name>Mansour Al Akeel &lt;mansour.alakeel@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c2a21586d0912020901s392b48d3g3e693fae22180c38@mail.gmail.com%3e"/>
<id>urn:uuid:%3c2a21586d0912020901s392b48d3g3e693fae22180c38@mail-gmail-com%3e</id>
<updated>2009-12-02T17:01:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello:
I am very new to the app servers. I have implemented already the
funcitonality I need and I need to utilize ejb and JMS in this
project.
All I need at this point is to be able to see the output from
System.out.print  ! And invoke a method in a bean, hopefully from the
geronimo console and without additional coding for a webproject. I am
not sure if this can be done. Advice ?

The error I am getting now is :

start of default/Simulation-project/1259772177071/car failed
org.apache.geronimo.kernel.config.LifecycleException: start of
default/Simulation-project/1259772177071/car failed
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:579)
	at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:543)
	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:597)


What do I do here ?


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ejb 3.0 web services in Geronimo</title>
<author><name>Donald Woods &lt;dwoods@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c4B1692CE.20103@apache.org%3e"/>
<id>urn:uuid:%3c4B1692CE-20103@apache-org%3e</id>
<updated>2009-12-02T16:16:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The XSSXSRFFilter is a servlet filter that we use to block XSS and XSRF 
security attacks on the webapps we provide in the server.  The code has 
to be included in a web.xml as a servlet filter, so it should not be in 
the servlet chain for user apps....  Can you give more details on your app?


-Donald


yduchesne wrote:
&gt; 2.1.4 (latest stable release)
&gt; 
&gt; 
&gt; kevan wrote:
&gt;&gt;
&gt;&gt; On Nov 27, 2009, at 1:07 PM, yduchesne wrote:
&gt;&gt;
&gt;&gt;&gt; I am trying to generate a web service from a stateless EJB. Deployment
&gt;&gt;&gt; works
&gt;&gt;&gt; but I can't access de WSDL, and I have no trace in the log files that the
&gt;&gt;&gt; EJB was exported as a web service. I do not provide a WSDL since I am
&gt;&gt;&gt; following the code first model and expecting Geronimo to generate the
&gt;&gt;&gt; WSDL
&gt;&gt;&gt; internally when the myServiceUrl?wsdl is invoked - just as in the gold
&gt;&gt;&gt; old
&gt;&gt;&gt; XFire days. 
&gt;&gt;&gt;
&gt;&gt;&gt; My problem is that I can't access the WSDL file, at the following URL
&gt;&gt;&gt; (which
&gt;&gt;&gt; corresponds to what I have read in the web services tutorial): 
&gt;&gt;&gt; http://localhost:8080/CalculatorService/CalculatorServicePortType?wsdl.
&gt;&gt;&gt;
&gt;&gt;&gt; I get this strange 400 HTTP error when trying to access the WSDL:
&gt;&gt;&gt; XSSXSRFFilter blocked HttpServletRequest due to invalid FORM content.
&gt;&gt; Hmm.  What version of Geronimo?
&gt;&gt;
&gt;&gt; --kevan
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt; 


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ejb 3.0 web services in Geronimo</title>
<author><name>yduchesne &lt;yanickduchesne@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c26610426.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26610426-post@talk-nabble-com%3e</id>
<updated>2009-12-02T15:08:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

2.1.4 (latest stable release)


kevan wrote:
&gt; 
&gt; 
&gt; On Nov 27, 2009, at 1:07 PM, yduchesne wrote:
&gt; 
&gt;&gt; 
&gt;&gt; I am trying to generate a web service from a stateless EJB. Deployment
&gt;&gt; works
&gt;&gt; but I can't access de WSDL, and I have no trace in the log files that the
&gt;&gt; EJB was exported as a web service. I do not provide a WSDL since I am
&gt;&gt; following the code first model and expecting Geronimo to generate the
&gt;&gt; WSDL
&gt;&gt; internally when the myServiceUrl?wsdl is invoked - just as in the gold
&gt;&gt; old
&gt;&gt; XFire days. 
&gt;&gt; 
&gt;&gt; My problem is that I can't access the WSDL file, at the following URL
&gt;&gt; (which
&gt;&gt; corresponds to what I have read in the web services tutorial): 
&gt;&gt; http://localhost:8080/CalculatorService/CalculatorServicePortType?wsdl.
&gt;&gt; 
&gt;&gt; I get this strange 400 HTTP error when trying to access the WSDL:
&gt;&gt; XSSXSRFFilter blocked HttpServletRequest due to invalid FORM content.
&gt; 
&gt; Hmm.  What version of Geronimo?
&gt; 
&gt; --kevan
&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/ejb-3.0-web-services-in-Geronimo-tp26545355s134p26610426.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ejb 3.0 web services in Geronimo</title>
<author><name>Kevan Miller &lt;kevan.miller@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c008A2898-11F4-46BA-8023-A5BCD09AFB53@gmail.com%3e"/>
<id>urn:uuid:%3c008A2898-11F4-46BA-8023-A5BCD09AFB53@gmail-com%3e</id>
<updated>2009-12-02T14:57:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On Nov 27, 2009, at 1:07 PM, yduchesne wrote:

&gt; 
&gt; I am trying to generate a web service from a stateless EJB. Deployment works
&gt; but I can't access de WSDL, and I have no trace in the log files that the
&gt; EJB was exported as a web service. I do not provide a WSDL since I am
&gt; following the code first model and expecting Geronimo to generate the WSDL
&gt; internally when the myServiceUrl?wsdl is invoked - just as in the gold old
&gt; XFire days. 
&gt; 
&gt; My problem is that I can't access the WSDL file, at the following URL (which
&gt; corresponds to what I have read in the web services tutorial): 
&gt; http://localhost:8080/CalculatorService/CalculatorServicePortType?wsdl.
&gt; 
&gt; I get this strange 400 HTTP error when trying to access the WSDL:
&gt; XSSXSRFFilter blocked HttpServletRequest due to invalid FORM content.

Hmm.  What version of Geronimo?

--kevan



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JMX monitoring TomcatAJPConnector report zero usage of Bytes Received</title>
<author><name>Kevan Miller &lt;kevan.miller@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3cA8B48D00-8D4E-450F-BA4E-15CF1E36BA44@gmail.com%3e"/>
<id>urn:uuid:%3cA8B48D00-8D4E-450F-BA4E-15CF1E36BA44@gmail-com%3e</id>
<updated>2009-12-02T14:49:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On Nov 27, 2009, at 11:06 AM, adc055 wrote:

&gt; 
&gt; Hello
&gt; 
&gt; I have a question I can't think through. I have a geronimo 2.1.3 fronted by
&gt; IIS6.0 AJP13 bridge the both. When I am using monitor plugin to gather live
&gt; TomcatAJPConnector statistics it reports zero usage of Bytes Received
&gt; whereas Bytes Sent reports a reasonable number.
&gt; 
&gt; Any idea?

I think this is a known problem and was fixed by https://issues.apache.org/jira/browse/GERONIMO-4826

--kevan

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Problem with Eclipse Galileo</title>
<author><name>frapien &lt;frank.pientka@gmx.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c26604912.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26604912-post@talk-nabble-com%3e</id>
<updated>2009-12-02T08:00:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>


For WAS CE v2.1.1.3 (=Geronimo 2.1.4) and Eclipse 3.5.x (Galileo) you find
the updated Plugin under
http://download.boulder.ibm.com/ibmdl/pub/software/websphere/wasce/updates/
work'S for me


ajBodoc wrote:
&gt; 
&gt; I try install 
&gt; geronimo-eclipse-plugin-2.1.5-updatesite
&gt; but i have follow  error:
&gt; what i can do?
&gt; 

-- 
View this message in context: http://old.nabble.com/Problem-with-Eclipse-Galileo-tp24295815s134p26604912.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Geronimo with openjpa (and DataSource lookups)</title>
<author><name>Forrest Xia &lt;forrestxm@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c432b67430912011850l101e1df6hcbcc551104a18948@mail.gmail.com%3e"/>
<id>urn:uuid:%3c432b67430912011850l101e1df6hcbcc551104a18948@mail-gmail-com%3e</id>
<updated>2009-12-02T02:50:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
In Java EE web tier, you can inject jpa resources in the objects managed by
container, such as servlets, ServletContextListener, JSF beans, and etc.

About the sample code. you can refer to
http://java.sun.com/javaee/5/docs/tutorial/doc/bnbrm.html.

Forrest


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: defining Context root</title>
<author><name>David Jencks &lt;david_jencks@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c7A3618F4-23A9-48AE-AA50-637D6041CF58@yahoo.com%3e"/>
<id>urn:uuid:%3c7A3618F4-23A9-48AE-AA50-637D6041CF58@yahoo-com%3e</id>
<updated>2009-12-02T02:48:05Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
In addition to Chi Runhua's good advice...


On Dec 1, 2009, at 5:30 PM, nileshnjoshi wrote:

&gt;
&gt; Hi,
&gt;
&gt; I am using geronimo-tomcat6-javaee5-2.1.4. I need inputs on few  
&gt; things:
&gt;
&gt; 1.	I am not able to write correct context root. Details steps will  
&gt; help a
&gt; lot.
&gt; History: I have deployed a war file on apache-tomcat 6.0.20 and I  
&gt; access the
&gt; application like:
&gt; http://abc.test.com/MailApp
&gt;
&gt; Now I have switched to geronimo-tomcat6. I have deployed same war  
&gt; which
&gt; works fine. However I want to change the context root. I want to  
&gt; access the
&gt; application on URL below:
&gt; http://abc.test.com/test/mail/
&gt;
&gt; Before creating a new war file, I have created a file called
&gt; ‘geronimo-web.xml’ and placed in WEB-INF. However I observed that  
&gt; file is
&gt; not available after deploying application.
&gt;
&gt; What all things I need to do to achieve above.
&gt;
&gt;
&gt; 2.	I would like to define the directory where I can deploy new  
&gt; applications.
&gt;
&gt; When I deploy an application using GUI, it created directory  
&gt; structure like
&gt; below:
&gt;
&gt; /opt/geronimo-tomcat6-javaee5-2.1.4/repository/default/MailApp/ 
&gt; 2258680823503/MailApp-2258680823503.war
&gt;
&gt; I want to get rid of MailApp/1258680823503 and number. I would like  
&gt; to have
&gt; directory structure like:
&gt; /opt/geronimo-tomcat6-javaee5-2.1.4/repository/default/MailApp.war
&gt;
&gt; I need this structure so that my scripts can deploy war file directly.

Don't try to do this.  You  should either
a. call the geronimo deployer supplying the location of your war file  
from your script

or

b. use maven to "pre-deploy" your war into a geronimo plugin and have  
your script install the plugin by using the geronimo deployer

or (my preference)

c. use geronimo 2.2, and use maven to assemble a custom server  
including the plugin as in 2.  In this case your script would just  
unpack the server and start it.

If you copy an ee app into the geronimo repository geronimo won't know  
about it and there will be no way to tell geronimo to use it.  You  
have to go through the geronimo deployment process so geronimo can set  
up additional info about your app, such as the fact that it should be  
started with the server (recorded in var/config/config.xml)

thanks
david jencks
&gt;
&gt; 3.	Can geronimo-tomcat6 create directory for MailApp.war similar to  
&gt; tomcat?
&gt;
&gt;
&gt; The help is really appreciated.
&gt;
&gt; Thanks and Regards,
&gt; -Nilesh
&gt;
&gt; -- 
&gt; View this message in context: http://old.nabble.com/defining-Context-root-tp26601435s134p26601435.html
&gt; Sent from the Apache Geronimo - Users mailing list archive at  
&gt; Nabble.com.
&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: defining Context root</title>
<author><name>chi runhua &lt;chirunhua@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c98a659de0912011802g768e0184u4217ce0ecc7998e3@mail.gmail.com%3e"/>
<id>urn:uuid:%3c98a659de0912011802g768e0184u4217ce0ecc7998e3@mail-gmail-com%3e</id>
<updated>2009-12-02T02:02:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi, a geronimo deployment plan can help you with all these request. You can
define the Context-root and moduleId in the deployment plan, eventually you
war application will be installed into Geronimo repository, /repository
directory,  with the name convention that you specified for its moduleId.

A very short deployment plan is as followed.

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"&gt;
    &lt;environment&gt;
        &lt;moduleId&gt;
            &lt;groupId&gt;org.apache.geronimo.samples&lt;/groupId&gt;
            &lt;artifactId&gt;HelloWorldApp&lt;/artifactId&gt;
            &lt;version&gt;2.2&lt;/version&gt;
            &lt;type&gt;war&lt;/type&gt;
        &lt;/moduleId&gt;
    &lt;/environment&gt;
    &lt;context-root&gt;/hello&lt;/context-root&gt;
&lt;/web-app&gt;

For more information about deployment plan for a WAR application, you
may refer to

http://cwiki.apache.org/GMOxDOC22/geronimo-webxml.html

Hope this helpls.

Anything else, just let us know.

Jeff C



On Wed, Dec 2, 2009 at 9:30 AM, nileshnjoshi &lt;nileshnjoshi@gmail.com&gt; wrote:

&gt;
&gt; Hi,
&gt;
&gt; I am using geronimo-tomcat6-javaee5-2.1.4. I need inputs on few things:
&gt;
&gt; 1.      I am not able to write correct context root. Details steps will
&gt; help a
&gt; lot.
&gt; History: I have deployed a war file on apache-tomcat 6.0.20 and I access
&gt; the
&gt; application like:
&gt; http://abc.test.com/MailApp
&gt;
&gt; Now I have switched to geronimo-tomcat6. I have deployed same war which
&gt; works fine. However I want to change the context root. I want to access the
&gt; application on URL below:
&gt; http://abc.test.com/test/mail/
&gt;
&gt; Before creating a new war file, I have created a file called
&gt; ‘geronimo-web.xml’ and placed in WEB-INF. However I observed that file is
&gt; not available after deploying application.
&gt;
&gt; What all things I need to do to achieve above.
&gt;
&gt;
&gt; 2.      I would like to define the directory where I can deploy new
&gt; applications.
&gt;
&gt; When I deploy an application using GUI, it created directory structure like
&gt; below:
&gt;
&gt;
&gt; /opt/geronimo-tomcat6-javaee5-2.1.4/repository/default/MailApp/2258680823503/MailApp-2258680823503.war
&gt;
&gt; I want to get rid of MailApp/1258680823503 and number. I would like to have
&gt; directory structure like:
&gt; /opt/geronimo-tomcat6-javaee5-2.1.4/repository/default/MailApp.war
&gt;
&gt; I need this structure so that my scripts can deploy war file directly.
&gt;
&gt; 3.      Can geronimo-tomcat6 create directory for MailApp.war similar to
&gt; tomcat?
&gt;
&gt;
&gt; The help is really appreciated.
&gt;
&gt; Thanks and Regards,
&gt; -Nilesh
&gt;
&gt; --
&gt; View this message in context:
&gt; http://old.nabble.com/defining-Context-root-tp26601435s134p26601435.html
&gt; Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>defining Context root</title>
<author><name>nileshnjoshi &lt;nileshnjoshi@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c26601435.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26601435-post@talk-nabble-com%3e</id>
<updated>2009-12-02T01:30:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

I am using geronimo-tomcat6-javaee5-2.1.4. I need inputs on few things:

1.	I am not able to write correct context root. Details steps will help a
lot.
History: I have deployed a war file on apache-tomcat 6.0.20 and I access the
application like:
http://abc.test.com/MailApp 

Now I have switched to geronimo-tomcat6. I have deployed same war which
works fine. However I want to change the context root. I want to access the
application on URL below:
http://abc.test.com/test/mail/

Before creating a new war file, I have created a file called
â€˜geronimo-web.xmlâ€™ and placed in WEB-INF. However I observed that file is
not available after deploying application.

What all things I need to do to achieve above.


2.	I would like to define the directory where I can deploy new applications.

When I deploy an application using GUI, it created directory structure like
below:

/opt/geronimo-tomcat6-javaee5-2.1.4/repository/default/MailApp/2258680823503/MailApp-2258680823503.war

I want to get rid of MailApp/1258680823503 and number. I would like to have
directory structure like:
/opt/geronimo-tomcat6-javaee5-2.1.4/repository/default/MailApp.war

I need this structure so that my scripts can deploy war file directly.

3.	Can geronimo-tomcat6 create directory for MailApp.war similar to tomcat?


The help is really appreciated.

Thanks and Regards,
-Nilesh

-- 
View this message in context: http://old.nabble.com/defining-Context-root-tp26601435s134p26601435.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remote Deployment: Connection Refused</title>
<author><name>MDiamond &lt;Michael.Diamond@noaa.gov&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c26594243.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26594243-post@talk-nabble-com%3e</id>
<updated>2009-12-01T16:34:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Yep, that did it. Thanks a bunch guys!
-- 
View this message in context: http://old.nabble.com/Remote-Deployment%3A-Connection-Refused-tp26421415s134p26594243.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Geronimo with openjpa (and DataSource lookups)</title>
<author><name>David Jencks &lt;david_jencks@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c18381722-4DD0-4DC2-84CF-031EEB804BFE@yahoo.com%3e"/>
<id>urn:uuid:%3c18381722-4DD0-4DC2-84CF-031EEB804BFE@yahoo-com%3e</id>
<updated>2009-12-01T16:16:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The code

	private static final EntityManagerFactory emFactory =
Persistence.createEntityManagerFactory("test.jpa");

is how you use jpa in a non-managed environment, so it won't work with  
the managed jpa support in geronimo, as you are experiencing.  I don't  
think you explain how the control flow gets to this code.

What I would suggest is that you have an ee component such as an ejb  
that has the entitymanager injected and then pass the entitymanager to  
the wink (?) code that uses it.  Don't use static variables and don't  
store the em in a field unless each call gets its own copy of the  
object (like stateless session beans).

If you want to avoid ejbs get an EntityManagerFactory instead.

hope this helps
david jencks

On Dec 1, 2009, at 3:46 AM, cumbers wrote:

&gt;
&gt; I have spent the last few days trying to understand how the  
&gt; daytrader app
&gt; differs
&gt; from what I have implemented and have not been successful at all. So  
&gt; I am
&gt; going
&gt; to document fully what I am doing in the hope that some bright spark  
&gt; points
&gt; out
&gt; the error of my ways!
&gt;
&gt; I am using Eclipse and WAS CE (which from what I understand is  
&gt; Geronimo with
&gt; some
&gt; extra bits). I am developing a REST service using the Apache Wink  
&gt; library,
&gt; which
&gt; uses JPA to connect to a database. The application will work, but  
&gt; only if I
&gt; use
&gt; &lt;property&gt; tags in the persitence.xml to define the required DB  
&gt; connection
&gt; for JPA.
&gt;
&gt; If I just have the &lt;jta-data-source&gt;jdbc/db&lt;/jta-data-source&gt; line,  
&gt; I get
&gt; the following
&gt; error:
&gt;
&gt; &lt;openjpa-1.2.1-r2180:4612 fatal user error&gt;
&gt; org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or
&gt; DataSource class name must be specified in the ConnectionDriverName
&gt; property.
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java: 
&gt; 74)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .jdbc 
&gt; .conf 
&gt; .JDBCConfigurationImpl 
&gt; .createConnectionFactory(JDBCConfigurationImpl.java:784)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .jdbc 
&gt; .conf 
&gt; .JDBCConfigurationImpl 
&gt; .getDBDictionaryInstance(JDBCConfigurationImpl.java:561)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java: 
&gt; 1265)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .lib.conf.Configurations.configureInstance(Configurations.java:505)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .lib.conf.Configurations.configureInstance(Configurations.java:430)
&gt; 	 
&gt; org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java: 
&gt; 103)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .conf 
&gt; .MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:68)
&gt; 	 
&gt; org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java: 
&gt; 83)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .conf 
&gt; .OpenJPAConfigurationImpl 
&gt; .newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:863)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .conf 
&gt; .OpenJPAConfigurationImpl 
&gt; .getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:854)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .kernel 
&gt; .AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:638)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java: 
&gt; 183)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .kernel 
&gt; .DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .persistence 
&gt; .EntityManagerFactoryImpl 
&gt; .createEntityManager(EntityManagerFactoryImpl.java:192)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .persistence 
&gt; .EntityManagerFactoryImpl 
&gt; .createEntityManager(EntityManagerFactoryImpl.java:145)
&gt;
&gt; org 
&gt; .apache 
&gt; .openjpa 
&gt; .persistence 
&gt; .EntityManagerFactoryImpl 
&gt; .createEntityManager(EntityManagerFactoryImpl.java:56)
&gt; 	simple.test.db.TransferResource.&lt;clinit&gt;(TransferResource.java:46)
&gt;
&gt; Where the relevant lines from the TransferResource class are:
&gt;
&gt; 	// Get the factory defined in persistence.xml as test.jpa
&gt; 	private static final EntityManagerFactory emFactory =
&gt; Persistence.createEntityManagerFactory("test.jpa");
&gt; 	// Get an Entity Manager from factory. EXCEPTION THROWN ON NEXT LINE
&gt; 	private static final EntityManager em =  
&gt; emFactory.createEntityManager();
&gt;
&gt; If I use the properties which have been commented out in the  
&gt; persitence.xml,
&gt; then
&gt; the servicve works. If I alter the name in the
&gt; &lt;jta-data-source&gt;jdbc/db&lt;/jta-data-source&gt;
&gt; from jdbc/db to wibble then I cannot deploy my code because wibble  
&gt; does not
&gt; exist.
&gt;
&gt; I am at a loss for how to solve this. Ideally my code will be a  
&gt; closed WAR
&gt; file that
&gt; does not require the end user to unpack, edit some properties,  
&gt; repack and
&gt; then deploy,
&gt; they should be able to use the JNDI object for the database.
&gt;
&gt; Below is the structure of the web application as deployed to the web  
&gt; server.
&gt; I also
&gt; include the openJPA trace in case someone finds it useful.
&gt;
&gt; Any help is very much appreciated!!!
&gt;
&gt; META-INF
&gt; |--plan.xml
&gt; WEB-INF
&gt; |--web.xml
&gt; |--geronimo-web.xml
&gt; |--classes
&gt; |   |--META-INF
&gt;         |--persistence.xml
&gt;
&gt; plan.xml:
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;web:web-app
&gt; xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0"
&gt; 			
&gt; xmlns:client="http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0 
&gt; "
&gt; 			 xmlns:conn="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2"
&gt; 			 xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"
&gt; 			 xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2"
&gt; 			 xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2"
&gt; 			 xmlns:pers="http://java.sun.com/xml/ns/persistence"
&gt; 			 xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1"
&gt; 			 xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0"
&gt; 			 xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"&gt;
&gt;    &lt;dep:environment&gt;
&gt;        &lt;dep:moduleId&gt;
&gt;            &lt;dep:groupId&gt;TestService&lt;/dep:groupId&gt;
&gt;            &lt;dep:artifactId&gt;rest&lt;/dep:artifactId&gt;
&gt;            &lt;dep:version&gt;1.0&lt;/dep:version&gt;
&gt;            &lt;dep:type&gt;car&lt;/dep:type&gt;
&gt;        &lt;/dep:moduleId&gt;
&gt;        &lt;dep:dependencies&gt;
&gt;            &lt;dep:dependency&gt;
&gt;                &lt;dep:groupId&gt;console.dbpool&lt;/dep:groupId&gt;
&gt;                &lt;dep:artifactId&gt;jdbc_db&lt;/dep:artifactId&gt;
&gt;            &lt;/dep:dependency&gt;
&gt;        &lt;/dep:dependencies&gt;
&gt;    &lt;/dep:environment&gt;
&gt;    &lt;web:context-root&gt;/test&lt;/web:context-root&gt;
&gt;
&gt;    &lt;name:resource-ref&gt;
&gt;      &lt;name:ref-name&gt;jdbc/db&lt;/name:ref-name&gt;
&gt;      &lt;name:resource-link&gt;jdbc/db&lt;/name:resource-link&gt;
&gt;    &lt;/name:resource-ref&gt;
&gt; &lt;/web:web-app&gt;
&gt;
&gt; web.xml:
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;!DOCTYPE web-app PUBLIC
&gt; "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
&gt; "http://java.sun.com/dtd/web-app_2_3.dtd" &gt;
&gt;
&gt; &lt;web-app&gt;
&gt;    &lt;display-name&gt;Test Apache Wink&lt;/display-name&gt;
&gt;    &lt;servlet&gt;
&gt;        &lt;servlet-name&gt;WINK-Restful&lt;/servlet-name&gt;
&gt;
&gt; &lt;servlet-class&gt;org.apache.wink.server.internal.servlet.RestServlet&lt;/ 
&gt; servlet-class&gt;
&gt;        &lt;init-param&gt;
&gt;            &lt;param-name&gt;javax.ws.rs.Application&lt;/param-name&gt;
&gt;            &lt;param-value&gt;simple.test.WinkApplication&lt;/param-value&gt;
&gt;        &lt;/init-param&gt;
&gt;        &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&gt;    &lt;/servlet&gt;
&gt;    &lt;servlet-mapping&gt;
&gt;        &lt;servlet-name&gt;WINK-Restful&lt;/servlet-name&gt;
&gt;        &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
&gt;    &lt;/servlet-mapping&gt;
&gt;
&gt;    &lt;resource-ref&gt;
&gt;    &lt;res-ref-name&gt;jdbc/db&lt;/res-ref-name&gt;
&gt;    &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
&gt;    &lt;res-auth&gt;Container&lt;/res-auth&gt;
&gt;    &lt;res-sharing-scope&gt;Shareable&lt;/res-sharing-scope&gt;
&gt;  &lt;/resource-ref&gt;
&gt; &lt;/web-app&gt;
&gt;
&gt; geronimo-web.xml:
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;web:web-app
&gt; xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0"
&gt; 			
&gt; xmlns:client="http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0 
&gt; "
&gt; 			 xmlns:conn="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2"
&gt; 			 xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"
&gt; 			 xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2"
&gt; 			 xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2"
&gt; 			 xmlns:pers="http://java.sun.com/xml/ns/persistence"
&gt; 			 xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1"
&gt; 			 xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0"
&gt; 			 xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1"&gt;
&gt;    &lt;dep:environment&gt;
&gt;        &lt;dep:moduleId&gt;
&gt;            &lt;dep:groupId&gt;TestService&lt;/dep:groupId&gt;
&gt;            &lt;dep:artifactId&gt;rest&lt;/dep:artifactId&gt;
&gt;            &lt;dep:version&gt;1.0&lt;/dep:version&gt;
&gt;            &lt;dep:type&gt;car&lt;/dep:type&gt;
&gt;        &lt;/dep:moduleId&gt;
&gt;        &lt;dep:dependencies&gt;
&gt;            &lt;dep:dependency&gt;
&gt;                &lt;dep:groupId&gt;console.dbpool&lt;/dep:groupId&gt;
&gt;                &lt;dep:artifactId&gt;jdbc_db&lt;/dep:artifactId&gt;
&gt;            &lt;/dep:dependency&gt;
&gt;        &lt;/dep:dependencies&gt;
&gt;    &lt;/dep:environment&gt;
&gt;    &lt;web:context-root&gt;/test&lt;/web:context-root&gt;
&gt;
&gt;    &lt;name:resource-ref&gt;
&gt;      &lt;name:ref-name&gt;jdbc/db&lt;/name:ref-name&gt;
&gt;      &lt;name:resource-link&gt;jdbc/db&lt;/name:resource-link&gt;
&gt;    &lt;/name:resource-ref&gt;
&gt; &lt;/web:web-app&gt;
&gt;
&gt; persistence.xml:
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence 
&gt; "
&gt; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
&gt; xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
&gt; http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"&gt;
&gt; 	&lt;persistence-unit name="test.jpa"&gt;
&gt; 		&lt;jta-data-source&gt;jdbc/db&lt;/jta-data-source&gt;
&gt; &lt;!--	&lt;non-jta-data-source&gt;jdbc/db&lt;/non-jta-data-source&gt;--&gt;
&gt; 		&lt;class&gt;simple.test.jpa.AuthEvent&lt;/class&gt;
&gt;
&gt; 		&lt;properties&gt;
&gt; &lt;!--		&lt;property name="openjpa.ConnectionDriverName"
&gt; value="oracle.jdbc.driver.OracleDriver"&gt;&lt;/property&gt;--&gt;
&gt; &lt;!--		&lt;property name="openjpa.ConnectionURL"
&gt; value="jdbc:oracle:thin:@localhost:1521:Database"&gt;&lt;/property&gt;--&gt;
&gt; &lt;!--		&lt;property name="openjpa.ConnectionUserName"
&gt; value="cumbers"&gt;&lt;/property&gt;--&gt;
&gt; &lt;!--		&lt;property name="openjpa.ConnectionPassword"
&gt; value="passw0rd"&gt;&lt;/property&gt;--&gt;
&gt; 			&lt;property name="openjpa.Log" value="DefaultLevel=TRACE" /&gt;
&gt; 		&lt;/properties&gt;
&gt; 	&lt;/persistence-unit&gt;
&gt; &lt;/persistence&gt;
&gt;
&gt; console.dbpool plan.xml file:
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/ 
&gt; connector-1.2"&gt;
&gt;    &lt;dep:environment
&gt; xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"&gt;
&gt;        &lt;dep:moduleId&gt;
&gt;            &lt;dep:groupId&gt;console.dbpool&lt;/dep:groupId&gt;
&gt;            &lt;dep:artifactId&gt;jdbc_db&lt;/dep:artifactId&gt;
&gt;            &lt;dep:version&gt;1.0&lt;/dep:version&gt;
&gt;            &lt;dep:type&gt;rar&lt;/dep:type&gt;
&gt;        &lt;/dep:moduleId&gt;
&gt;        &lt;dep:dependencies&gt;
&gt;            &lt;dep:dependency&gt;
&gt;                &lt;dep:groupId&gt;oracle&lt;/dep:groupId&gt;
&gt;                &lt;dep:artifactId&gt;oracle&lt;/dep:artifactId&gt;
&gt;                &lt;dep:version&gt;11&lt;/dep:version&gt;
&gt;                &lt;dep:type&gt;jar&lt;/dep:type&gt;
&gt;            &lt;/dep:dependency&gt;
&gt;        &lt;/dep:dependencies&gt;
&gt;    &lt;/dep:environment&gt;
&gt;    &lt;resourceadapter&gt;
&gt;        &lt;outbound-resourceadapter&gt;
&gt;            &lt;connection-definition&gt;
&gt;
&gt; &lt;connectionfactory-interface&gt;javax.sql.DataSource&lt;/connectionfactory- 
&gt; interface&gt;
&gt;                &lt;connectiondefinition-instance&gt;
&gt;                    &lt;name&gt;jdbc/db&lt;/name&gt;
&gt;                    &lt;config-property-setting
&gt; name="ConnectionURL"&gt;jdbc:oracle:thin:@localhost:1521:Database&lt;/ 
&gt; config-property-setting&gt;
&gt;                    &lt;config-property-setting
&gt; name="UserName"&gt;cumbers&lt;/config-property-setting&gt;
&gt;                    &lt;config-property-setting
&gt; name="Password"&gt;passw0rd&lt;/config-property-setting&gt;
&gt;                    &lt;config-property-setting
&gt; name="Driver"&gt;oracle.jdbc.OracleDriver&lt;/config-property-setting&gt;
&gt;
&gt;                    &lt;connectionmanager&gt;
&gt;                        &lt;local-transaction/&gt;
&gt;                        &lt;single-pool&gt;
&gt;                            &lt;max-size&gt;10&lt;/max-size&gt;
&gt;                            &lt;min-size&gt;0&lt;/min-size&gt;
&gt;                            &lt;match-one/&gt;
&gt;                        &lt;/single-pool&gt;
&gt;                    &lt;/connectionmanager&gt;
&gt;                &lt;/connectiondefinition-instance&gt;
&gt;            &lt;/connection-definition&gt;
&gt;        &lt;/outbound-resourceadapter&gt;
&gt;    &lt;/resourceadapter&gt;
&gt; &lt;/connector&gt;
&gt;
&gt; openJPA trace:
&gt; 0  test.jpa  TRACE  [http-0.0.0.0-8443-1] openjpa.Runtime - Setting  
&gt; the
&gt; following properties from
&gt; "file:/opt/IBM/WebSphere/AppServerCommunityEdition/repository/com/ 
&gt; ibm/test/rest/1.0/rest-1.0.car/WEB-INF/classes/META-INF/ 
&gt; persistence.xml"
&gt; into configuration: {openjpa.Id=test.jpa,  
&gt; openjpa.Log=DefaultLevel=TRACE,
&gt; openjpa.MetaDataFactory=jpa(Types=simple.test.jpa.AuthEvent),
&gt; openjpa.BrokerFactory=jdbc, openjpa.ConnectionFactoryName=jdbc/db}
&gt; 6  test.jpa  INFO   [http-0.0.0.0-8443-1] openjpa.Runtime - Starting  
&gt; OpenJPA
&gt; 1.2.1
&gt; 7  test.jpa  TRACE  [http-0.0.0.0-8443-1] openjpa.Runtime -  
&gt; Properties:
&gt; openjpa.RestoreState: immutable
&gt; openjpa.Sequence: table
&gt; openjpa.jdbc.SQLFactory: default
&gt; openjpa.BrokerImpl: default
&gt; openjpa.ConnectionFactoryName: jdbc/db
&gt; openjpa.Id: test.jpa
&gt; openjpa.QueryCache: true
&gt; openjpa.ReadLockLevel: read
&gt; openjpa.LockManager: version
&gt; openjpa.jdbc.UpdateManager: default
&gt; openjpa.NontransactionalRead: true
&gt; openjpa.DynamicDataStructs: false
&gt; openjpa.RetainState: true
&gt; openjpa.DetachState: loaded
&gt; openjpa.jdbc.MappingDefaults: jpa
&gt; openjpa.ClassResolver: default
&gt; openjpa.AutoDetach:
&gt; openjpa.TransactionMode: local
&gt; openjpa.FlushBeforeQueries: true
&gt; openjpa.jdbc.TransactionIsolation: default
&gt; openjpa.jdbc.SchemaFactory: dynamic
&gt; openjpa.MetaDataRepository: default
&gt; openjpa.RuntimeUnenhancedClasses: supported
&gt; openjpa.RefreshFromDataCache: false
&gt; openjpa.jdbc.DriverDataSource: simple
&gt; openjpa.DataCache: false
&gt; openjpa.WriteLockLevel: write
&gt; openjpa.MetaDataFactory: jpa(Types=simple.test.jpa.AuthEvent)
&gt; openjpa.LockTimeout: -1
&gt; openjpa.jdbc.ResultSetType: forward-only
&gt; openjpa.ManagedRuntime: auto
&gt; openjpa.jdbc.QuerySQLCache: true
&gt; openjpa.jdbc.LRSSize: query
&gt; openjpa.QueryCompilationCache: true
&gt; openjpa.Log: DefaultLevel=TRACE
&gt; openjpa.jdbc.EagerFetchMode: parallel
&gt; openjpa.Optimistic: true
&gt; openjpa.SavepointManager: in-mem
&gt; openjpa.Multithreaded: false
&gt; openjpa.ProxyManager: default
&gt; openjpa.OrphanedKeyAction: log
&gt; openjpa.FetchBatchSize: -1
&gt; openjpa.AutoClear: datastore
&gt; openjpa.jdbc.Schemas:
&gt; openjpa.jdbc.SynchronizeMappings: false
&gt; openjpa.ConnectionFactoryMode: local
&gt; openjpa.RetryClassRegistration: false
&gt; openjpa.Compatibility: default
&gt; openjpa.MaxFetchDepth: -1
&gt; openjpa.InverseManager: false
&gt; openjpa.jdbc.FetchDirection: forward
&gt; openjpa.jdbc.SubclassFetchMode: join
&gt; openjpa.FetchGroups: default
&gt; openjpa.IgnoreChanges: false
&gt; openjpa.DataCacheTimeout: -1
&gt; openjpa.NontransactionalWrite: true
&gt; openjpa.ConnectionRetainMode: on-demand
&gt; openjpa.EntityManagerFactory: default
&gt; openjpa.BrokerFactory: jdbc
&gt; openjpa.DataCacheManager: default
&gt; 8  test.jpa  TRACE  [http-0.0.0.0-8443-1] openjpa.Runtime - No cache
&gt; marshaller found for id  
&gt; org.apache.openjpa.conf.MetaDataCacheMaintenance.
&gt; 88  test.jpa  TRACE  [http-0.0.0.0-8443-1] openjpa.MetaData - Using  
&gt; metadata
&gt; factory
&gt; "org 
&gt; .apache.openjpa.persistence.jdbc.PersistenceMappingFactory@1db21db2".
&gt; 106  test.jpa  TRACE  [http-0.0.0.0-8443-1] openjpa.jdbc.JDBC -  
&gt; OpenJPA will
&gt; now connect to the database to attempt to determine what type of  
&gt; database
&gt; dictionary to use. You may prevent this connection in the future by  
&gt; setting
&gt; your openjpa.jdbc.DBDictionary configuration property to the  
&gt; appropriate
&gt; value for your database (see the documentation for available values).
&gt;
&gt; -- 
&gt; View this message in context: http://old.nabble.com/Geronimo-with-openjpa-%28and-DataSource-lookups%29-tp26532836s134p26590541.html
&gt; Sent from the Apache Geronimo - Users mailing list archive at  
&gt; Nabble.com.
&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Geronimo with openjpa (and DataSource lookups)</title>
<author><name>cumbers &lt;rich.cumbers@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c26590541.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26590541-post@talk-nabble-com%3e</id>
<updated>2009-12-01T11:46:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I have spent the last few days trying to understand how the daytrader app
differs
from what I have implemented and have not been successful at all. So I am
going
to document fully what I am doing in the hope that some bright spark points
out
the error of my ways!

I am using Eclipse and WAS CE (which from what I understand is Geronimo with
some
extra bits). I am developing a REST service using the Apache Wink library,
which
uses JPA to connect to a database. The application will work, but only if I
use
&lt;property&gt; tags in the persitence.xml to define the required DB connection
for JPA.

If I just have the &lt;jta-data-source&gt;jdbc/db&lt;/jta-data-source&gt; line, I get
the following
error:

&lt;openjpa-1.2.1-r2180:4612 fatal user error&gt;
org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or
DataSource class name must be specified in the ConnectionDriverName
property.

org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:74)

org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:784)

org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:561)

org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1265)

org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:505)

org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:430)
	org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:103)

org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:68)
	org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83)

org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:863)

org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:854)

org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:638)

org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:183)

org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:142)

org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:192)

org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:145)

org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:56)
	simple.test.db.TransferResource.&lt;clinit&gt;(TransferResource.java:46)

Where the relevant lines from the TransferResource class are:

	// Get the factory defined in persistence.xml as test.jpa
	private static final EntityManagerFactory emFactory =
Persistence.createEntityManagerFactory("test.jpa");
	// Get an Entity Manager from factory. EXCEPTION THROWN ON NEXT LINE
	private static final EntityManager em = emFactory.createEntityManager();

If I use the properties which have been commented out in the persitence.xml,
then
the servicve works. If I alter the name in the
&lt;jta-data-source&gt;jdbc/db&lt;/jta-data-source&gt;
from jdbc/db to wibble then I cannot deploy my code because wibble does not
exist.

I am at a loss for how to solve this. Ideally my code will be a closed WAR
file that
does not require the end user to unpack, edit some properties, repack and
then deploy,
they should be able to use the JNDI object for the database.

Below is the structure of the web application as deployed to the web server.
I also
include the openJPA trace in case someone finds it useful.

Any help is very much appreciated!!!

META-INF
 |--plan.xml
WEB-INF
 |--web.xml
 |--geronimo-web.xml
 |--classes
 |   |--META-INF
         |--persistence.xml

plan.xml:
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;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"&gt;
    &lt;dep:environment&gt;
        &lt;dep:moduleId&gt;
            &lt;dep:groupId&gt;TestService&lt;/dep:groupId&gt;
            &lt;dep:artifactId&gt;rest&lt;/dep:artifactId&gt;
            &lt;dep:version&gt;1.0&lt;/dep:version&gt;
            &lt;dep:type&gt;car&lt;/dep:type&gt;
        &lt;/dep:moduleId&gt;
        &lt;dep:dependencies&gt;
            &lt;dep:dependency&gt;
                &lt;dep:groupId&gt;console.dbpool&lt;/dep:groupId&gt;
                &lt;dep:artifactId&gt;jdbc_db&lt;/dep:artifactId&gt;
            &lt;/dep:dependency&gt;
        &lt;/dep:dependencies&gt;
    &lt;/dep:environment&gt;
    &lt;web:context-root&gt;/test&lt;/web:context-root&gt;
    
    &lt;name:resource-ref&gt;
      &lt;name:ref-name&gt;jdbc/db&lt;/name:ref-name&gt;
      &lt;name:resource-link&gt;jdbc/db&lt;/name:resource-link&gt;
    &lt;/name:resource-ref&gt; 
&lt;/web:web-app&gt;

web.xml:
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE web-app PUBLIC
 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
 "http://java.sun.com/dtd/web-app_2_3.dtd" &gt;

&lt;web-app&gt;
    &lt;display-name&gt;Test Apache Wink&lt;/display-name&gt;
    &lt;servlet&gt;
        &lt;servlet-name&gt;WINK-Restful&lt;/servlet-name&gt;
       
&lt;servlet-class&gt;org.apache.wink.server.internal.servlet.RestServlet&lt;/servlet-class&gt;
        &lt;init-param&gt;
            &lt;param-name&gt;javax.ws.rs.Application&lt;/param-name&gt;
            &lt;param-value&gt;simple.test.WinkApplication&lt;/param-value&gt;
        &lt;/init-param&gt;
        &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
        &lt;servlet-name&gt;WINK-Restful&lt;/servlet-name&gt;
        &lt;url-pattern&gt;/rest/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
       
    &lt;resource-ref&gt;
    &lt;res-ref-name&gt;jdbc/db&lt;/res-ref-name&gt;
    &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;
    &lt;res-auth&gt;Container&lt;/res-auth&gt;
    &lt;res-sharing-scope&gt;Shareable&lt;/res-sharing-scope&gt;
  &lt;/resource-ref&gt;
&lt;/web-app&gt;

geronimo-web.xml:
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;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"&gt;
    &lt;dep:environment&gt;
        &lt;dep:moduleId&gt;
            &lt;dep:groupId&gt;TestService&lt;/dep:groupId&gt;
            &lt;dep:artifactId&gt;rest&lt;/dep:artifactId&gt;
            &lt;dep:version&gt;1.0&lt;/dep:version&gt;
            &lt;dep:type&gt;car&lt;/dep:type&gt;
        &lt;/dep:moduleId&gt;
        &lt;dep:dependencies&gt;
            &lt;dep:dependency&gt;
                &lt;dep:groupId&gt;console.dbpool&lt;/dep:groupId&gt;
                &lt;dep:artifactId&gt;jdbc_db&lt;/dep:artifactId&gt;
            &lt;/dep:dependency&gt;
        &lt;/dep:dependencies&gt;
    &lt;/dep:environment&gt;
    &lt;web:context-root&gt;/test&lt;/web:context-root&gt;
    
    &lt;name:resource-ref&gt;
      &lt;name:ref-name&gt;jdbc/db&lt;/name:ref-name&gt;
      &lt;name:resource-link&gt;jdbc/db&lt;/name:resource-link&gt;
    &lt;/name:resource-ref&gt; 
&lt;/web:web-app&gt;

persistence.xml:
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"&gt;
	&lt;persistence-unit name="test.jpa"&gt;
		&lt;jta-data-source&gt;jdbc/db&lt;/jta-data-source&gt;
&lt;!--	&lt;non-jta-data-source&gt;jdbc/db&lt;/non-jta-data-source&gt;--&gt;
		&lt;class&gt;simple.test.jpa.AuthEvent&lt;/class&gt;

		&lt;properties&gt;
&lt;!--		&lt;property name="openjpa.ConnectionDriverName"
value="oracle.jdbc.driver.OracleDriver"&gt;&lt;/property&gt;--&gt;
&lt;!--		&lt;property name="openjpa.ConnectionURL"
value="jdbc:oracle:thin:@localhost:1521:Database"&gt;&lt;/property&gt;--&gt;
&lt;!--		&lt;property name="openjpa.ConnectionUserName"
value="cumbers"&gt;&lt;/property&gt;--&gt;
&lt;!--		&lt;property name="openjpa.ConnectionPassword"
value="passw0rd"&gt;&lt;/property&gt;--&gt;
			&lt;property name="openjpa.Log" value="DefaultLevel=TRACE" /&gt;
		&lt;/properties&gt;
	&lt;/persistence-unit&gt;
&lt;/persistence&gt;

console.dbpool plan.xml file:
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2"&gt;
    &lt;dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"&gt;
        &lt;dep:moduleId&gt;
            &lt;dep:groupId&gt;console.dbpool&lt;/dep:groupId&gt;
            &lt;dep:artifactId&gt;jdbc_db&lt;/dep:artifactId&gt;
            &lt;dep:version&gt;1.0&lt;/dep:version&gt;
            &lt;dep:type&gt;rar&lt;/dep:type&gt;
        &lt;/dep:moduleId&gt;
        &lt;dep:dependencies&gt;
            &lt;dep:dependency&gt;
                &lt;dep:groupId&gt;oracle&lt;/dep:groupId&gt;
                &lt;dep:artifactId&gt;oracle&lt;/dep:artifactId&gt;
                &lt;dep:version&gt;11&lt;/dep:version&gt;
                &lt;dep:type&gt;jar&lt;/dep:type&gt;
            &lt;/dep:dependency&gt;
        &lt;/dep:dependencies&gt;
    &lt;/dep:environment&gt;
    &lt;resourceadapter&gt;
        &lt;outbound-resourceadapter&gt;
            &lt;connection-definition&gt;
               
&lt;connectionfactory-interface&gt;javax.sql.DataSource&lt;/connectionfactory-interface&gt;
                &lt;connectiondefinition-instance&gt;
                    &lt;name&gt;jdbc/db&lt;/name&gt;
                    &lt;config-property-setting
name="ConnectionURL"&gt;jdbc:oracle:thin:@localhost:1521:Database&lt;/config-property-setting&gt;
                    &lt;config-property-setting
name="UserName"&gt;cumbers&lt;/config-property-setting&gt;
                    &lt;config-property-setting
name="Password"&gt;passw0rd&lt;/config-property-setting&gt;
                    &lt;config-property-setting
name="Driver"&gt;oracle.jdbc.OracleDriver&lt;/config-property-setting&gt;

                    &lt;connectionmanager&gt;
                        &lt;local-transaction/&gt;
                        &lt;single-pool&gt;
                            &lt;max-size&gt;10&lt;/max-size&gt;
                            &lt;min-size&gt;0&lt;/min-size&gt;
                            &lt;match-one/&gt;
                        &lt;/single-pool&gt;
                    &lt;/connectionmanager&gt;
                &lt;/connectiondefinition-instance&gt;
            &lt;/connection-definition&gt;
        &lt;/outbound-resourceadapter&gt;
    &lt;/resourceadapter&gt;
&lt;/connector&gt;

openJPA trace:
0  test.jpa  TRACE  [http-0.0.0.0-8443-1] openjpa.Runtime - Setting the
following properties from
"file:/opt/IBM/WebSphere/AppServerCommunityEdition/repository/com/ibm/test/rest/1.0/rest-1.0.car/WEB-INF/classes/META-INF/persistence.xml"
into configuration: {openjpa.Id=test.jpa, openjpa.Log=DefaultLevel=TRACE,
openjpa.MetaDataFactory=jpa(Types=simple.test.jpa.AuthEvent),
openjpa.BrokerFactory=jdbc, openjpa.ConnectionFactoryName=jdbc/db}
6  test.jpa  INFO   [http-0.0.0.0-8443-1] openjpa.Runtime - Starting OpenJPA
1.2.1
7  test.jpa  TRACE  [http-0.0.0.0-8443-1] openjpa.Runtime - Properties:
openjpa.RestoreState: immutable
openjpa.Sequence: table
openjpa.jdbc.SQLFactory: default
openjpa.BrokerImpl: default
openjpa.ConnectionFactoryName: jdbc/db
openjpa.Id: test.jpa
openjpa.QueryCache: true
openjpa.ReadLockLevel: read
openjpa.LockManager: version
openjpa.jdbc.UpdateManager: default
openjpa.NontransactionalRead: true
openjpa.DynamicDataStructs: false
openjpa.RetainState: true
openjpa.DetachState: loaded
openjpa.jdbc.MappingDefaults: jpa
openjpa.ClassResolver: default
openjpa.AutoDetach: 
openjpa.TransactionMode: local
openjpa.FlushBeforeQueries: true
openjpa.jdbc.TransactionIsolation: default
openjpa.jdbc.SchemaFactory: dynamic
openjpa.MetaDataRepository: default
openjpa.RuntimeUnenhancedClasses: supported
openjpa.RefreshFromDataCache: false
openjpa.jdbc.DriverDataSource: simple
openjpa.DataCache: false
openjpa.WriteLockLevel: write
openjpa.MetaDataFactory: jpa(Types=simple.test.jpa.AuthEvent)
openjpa.LockTimeout: -1
openjpa.jdbc.ResultSetType: forward-only
openjpa.ManagedRuntime: auto
openjpa.jdbc.QuerySQLCache: true
openjpa.jdbc.LRSSize: query
openjpa.QueryCompilationCache: true
openjpa.Log: DefaultLevel=TRACE
openjpa.jdbc.EagerFetchMode: parallel
openjpa.Optimistic: true
openjpa.SavepointManager: in-mem
openjpa.Multithreaded: false
openjpa.ProxyManager: default
openjpa.OrphanedKeyAction: log
openjpa.FetchBatchSize: -1
openjpa.AutoClear: datastore
openjpa.jdbc.Schemas: 
openjpa.jdbc.SynchronizeMappings: false
openjpa.ConnectionFactoryMode: local
openjpa.RetryClassRegistration: false
openjpa.Compatibility: default
openjpa.MaxFetchDepth: -1
openjpa.InverseManager: false
openjpa.jdbc.FetchDirection: forward
openjpa.jdbc.SubclassFetchMode: join
openjpa.FetchGroups: default
openjpa.IgnoreChanges: false
openjpa.DataCacheTimeout: -1
openjpa.NontransactionalWrite: true
openjpa.ConnectionRetainMode: on-demand
openjpa.EntityManagerFactory: default
openjpa.BrokerFactory: jdbc
openjpa.DataCacheManager: default
8  test.jpa  TRACE  [http-0.0.0.0-8443-1] openjpa.Runtime - No cache
marshaller found for id org.apache.openjpa.conf.MetaDataCacheMaintenance.
88  test.jpa  TRACE  [http-0.0.0.0-8443-1] openjpa.MetaData - Using metadata
factory
"org.apache.openjpa.persistence.jdbc.PersistenceMappingFactory@1db21db2".
106  test.jpa  TRACE  [http-0.0.0.0-8443-1] openjpa.jdbc.JDBC - OpenJPA will
now connect to the database to attempt to determine what type of database
dictionary to use. You may prevent this connection in the future by setting
your openjpa.jdbc.DBDictionary configuration property to the appropriate
value for your database (see the documentation for available values).

-- 
View this message in context: http://old.nabble.com/Geronimo-with-openjpa-%28and-DataSource-lookups%29-tp26532836s134p26590541.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remote Deployment: Connection Refused</title>
<author><name>Forrest Xia &lt;forrestxm@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200912.mbox/%3c432b67430911301720i49dcfde1mba82634162b7ed74@mail.gmail.com%3e"/>
<id>urn:uuid:%3c432b67430911301720i49dcfde1mba82634162b7ed74@mail-gmail-com%3e</id>
<updated>2009-12-01T01:20:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Tue, Dec 1, 2009 at 5:25 AM, MDiamond &lt;Michael.Diamond@noaa.gov&gt; wrote:

&gt;
&gt;
&gt; Shawn Jiang wrote:
&gt; &gt;
&gt; &gt; Please do following to see if B instance is listening to the right
&gt; &gt; ip:port.
&gt; &gt;
&gt; &gt; 1, *shawn@geronimo&gt;**  netstat -na|grep 1099*
&gt; &gt;
&gt;
&gt; I see this:
&gt; tcp        0      0 :::1099                     :::*
&gt; LISTEN
&gt; unix  3      [ ]         STREAM     CONNECTED     471099
&gt;
&gt;
&gt; Forrest Xia wrote:
&gt; &gt;
&gt; &gt; 2. If the machine B is linux, check if /etc/hosts includes entries like
&gt; &gt; follows:
&gt; &gt; 127.0.0.1 localhost localhost.localdomain
&gt; &gt; &lt;machine B's IP&gt; &lt;machine B's hostname&gt;
&gt; &gt;
&gt;
&gt; My /etc/hosts file has the following:
&gt; 127.0.0.1              &lt;machine B's hostname&gt;  localhost.localdomain
&gt; localhost
&gt;

It should be like this:
127.0.0.1              localhost.localdomain localhost
&lt;machine B's external IP&gt; &lt;machine B's hostname&gt;

::1             localhost6.localdomain6 localhost6
&gt;
&gt; --
&gt; View this message in context:
&gt; http://old.nabble.com/Remote-Deployment%3A-Connection-Refused-tp26421415s134p26582166.html
&gt; Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
&gt;
&gt; Please try and let me know if still problem.

Forrest


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remote Deployment: Connection Refused</title>
<author><name>MDiamond &lt;Michael.Diamond@noaa.gov&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c26582166.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26582166-post@talk-nabble-com%3e</id>
<updated>2009-11-30T21:25:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>


Shawn Jiang wrote:
&gt; 
&gt; Please do following to see if B instance is listening to the right
&gt; ip:port.
&gt; 
&gt; 1, *shawn@geronimo&gt;**  netstat -na|grep 1099*
&gt; 

I see this:
tcp        0      0 :::1099                     :::*                       
LISTEN      
unix  3      [ ]         STREAM     CONNECTED     471099 


Forrest Xia wrote:
&gt; 
&gt; 2. If the machine B is linux, check if /etc/hosts includes entries like
&gt; follows:
&gt; 127.0.0.1 localhost localhost.localdomain
&gt; &lt;machine B's IP&gt; &lt;machine B's hostname&gt;
&gt; 
 
My /etc/hosts file has the following:
127.0.0.1              &lt;machine B's hostname&gt;  localhost.localdomain
localhost
::1             localhost6.localdomain6 localhost6

-- 
View this message in context: http://old.nabble.com/Remote-Deployment%3A-Connection-Refused-tp26421415s134p26582166.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: WebServices and Spring Injection?</title>
<author><name>David Jencks &lt;david_jencks@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3cF94880D4-759F-4528-98E9-D32E2ED319C6@yahoo.com%3e"/>
<id>urn:uuid:%3cF94880D4-759F-4528-98E9-D32E2ED319C6@yahoo-com%3e</id>
<updated>2009-11-28T18:36:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On Nov 28, 2009, at 3:47 AM, scottdc@iinet.net.au wrote:

&gt; Hi
&gt;
&gt; How can I inject Spring Beans into a  WebService created through  
&gt; Annotation and deployed through Geronimo.

AFAIK you would have to write the following code for geronimo:

1. A spring integration that makes spring modules a geronimo app  
type.  You might be able to make them integrated in javaee apps by  
writing a ModuleBuilderExtension that would look for spring plans in  
an ee module and fire them up.  This wouldn't help with standalone  
modules but might be a good approach for spring apps embedded in ee  
apps.

2. A DI integration that gets spring components into the java:comp ee  
component jndi tree and also hooks up the annotation so something like  
@Resource can refer to a spring component.  At this point I don't have  
an opinion on whether overloading an existing annotation such as  
@Resource or coming up with an entirely new one is a better approach.

If you are interested in working on this I'd suggest considering the  
osgi blueprint service rather than spring as your target platform and  
working in geronimo trunk.

I think the aries project in the apache incubator may be considering  
some functionality like this.

Also I've seen that Apache James has done some experiments with  
assembling the server with spring while also using jsr 250 annotations.

Are you aware of any other app servers that offer this kind of  
integration?

thanks
david jencks

&gt;
&gt; Scott
&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>WebServices and Spring Injection?</title>
<author><name>&quot;scottdc@iinet.net.au&quot; &lt;scottdc@iinet.net.au&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c4746.1259408831@iinet.net.au%3e"/>
<id>urn:uuid:%3c4746-1259408831@iinet-net-au%3e</id>
<updated>2009-11-28T11:47:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&lt;HTML&gt;
Hi&lt;BR&gt;
&lt;BR&gt;
How can I inject Spring Beans into a&amp;nbsp; WebService created through Annotation and deployed
through Geronimo.&lt;BR&gt;
&lt;BR&gt;
Scott&lt;BR&gt;
 &lt;/HTML&gt;
&lt;BR&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Problem with Eclipse Galileo</title>
<author><name>ajBodoc &lt;ajbodoc@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c26545405.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26545405-post@talk-nabble-com%3e</id>
<updated>2009-11-28T00:15:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I try install 
geronimo-eclipse-plugin-2.1.5-updatesite
but i have follow  error:

  Cannot connect to keystore.
  This trust engine is read only.
  Cannot complete the install because one or more required items could not
be found.
    Software currently installed: Geronimo v2.1 Server Adapter 2.1.5
(org.apache.geronimo.v21.feature.feature.group 2.1.5)
    Missing requirement: Geronimo v2.1 Server Adapter 2.1.5
(org.apache.geronimo.v21.feature.feature.group 2.1.5) requires
'org.apache.geronimo.jee.v21.jaxbmodel [2.1.5]' but it could not be found

what i can do?

PD: sorry for my bad english



-- 
View this message in context: http://old.nabble.com/Problem-with-Eclipse-Galileo-tp24295815s134p26545405.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>ejb 3.0 web services in Geronimo</title>
<author><name>yduchesne &lt;yanickduchesne@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c26545355.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26545355-post@talk-nabble-com%3e</id>
<updated>2009-11-27T18:07:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I am trying to generate a web service from a stateless EJB. Deployment works
but I can't access de WSDL, and I have no trace in the log files that the
EJB was exported as a web service. I do not provide a WSDL since I am
following the code first model and expecting Geronimo to generate the WSDL
internally when the myServiceUrl?wsdl is invoked - just as in the gold old
XFire days. 

My problem is that I can't access the WSDL file, at the following URL (which
corresponds to what I have read in the web services tutorial): 
http://localhost:8080/CalculatorService/CalculatorServicePortType?wsdl.

I get this strange 400 HTTP error when trying to access the WSDL:
XSSXSRFFilter blocked HttpServletRequest due to invalid FORM content.

I have defined a service interface, and implemented a stateless EJB. Here
they are:

- Interface

@Remote
@WebService(name = "CalculatorServicePortType")
public interface CalculatorService {

  public int add(int num1, int num2);
  
}

- EJB

@Stateless(description="Provides calculation methods",
name="CalculatorService")
//@Singleton(description="Provides calculation methods",
name="CalculatorService")
@WebService(
        portName = "CalculatorServicePort",
        serviceName = "CalculatorService",
        endpointInterface="org.geronimotest.CalculatorService")
@SOAPBinding(style=SOAPBinding.Style.RPC)
public class CalculatorServiceImpl implements CalculatorService{
  
  public int add(int num1, int num2) {
    return num1+num2;
  }

}

I'm sure my problem relates to some subtle details, but cannot figure these
out... Any help welcome
-- 
View this message in context: http://old.nabble.com/ejb-3.0-web-services-in-Geronimo-tp26545355s134p26545355.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>JMX monitoring TomcatAJPConnector report zero usage of Bytes Received</title>
<author><name>adc055 &lt;kun.cai@cigna.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c26544387.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26544387-post@talk-nabble-com%3e</id>
<updated>2009-11-27T16:06:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hello

I have a question I can't think through. I have a geronimo 2.1.3 fronted by
IIS6.0 AJP13 bridge the both. When I am using monitor plugin to gather live
TomcatAJPConnector statistics it reports zero usage of Bytes Received
whereas Bytes Sent reports a reasonable number.

Any idea?

Kun
-- 
View this message in context: http://old.nabble.com/JMX-monitoring-TomcatAJPConnector-report-zero-usage-of-Bytes-Received-tp26544387s134p26544387.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ActiveMQ questions</title>
<author><name>easyl &lt;easy.lin@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c26540192.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26540192-post@talk-nabble-com%3e</id>
<updated>2009-11-27T10:03:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

thanks,

But I cannot find activemq.xml
under &lt;Geronimo_HOME&gt;/var/activemq/conf

I would still give it a try..

btw, should the activemq.xml look like this
http://activemq.apache.org/configuring-brokers.html



RunHua Chi wrote:
&gt; 
&gt; Go to &lt;Geronimo_HOME&gt;/var/activemq/conf directory and update activemq.xml
&gt; file according to your needs. You can have the same experiences as you can
&gt; do for a standalone ActiveMQ server.
&gt; If you need to update ActiveMQ default port in Geronimo, you may update
&gt; the
&gt; value of ActiveMQPort in /var/config/config-substitutions.properties file.
&gt; 
&gt; Hope this helps.
&gt; 
&gt; Jeff C
&gt; 
&gt; 
&gt; 
&gt; On Tue, Nov 24, 2009 at 11:09 PM, easyl &lt;easy.lin@gmail.com&gt; wrote:
&gt; 
&gt;&gt;
&gt;&gt; I use geronimo 2.1.2.
&gt;&gt; It seems that the only way to configurate embedded AMQ is through
&gt;&gt; "ServerUrl".
&gt;&gt;
&gt;&gt; For example:
&gt;&gt; &lt;config-property-setting
&gt;&gt;
&gt;&gt; name="ServerUrl"&gt;tcp://localhost:61616?jms.copyMessageOnSend=false&amp;amp;jms.watchTopicAdvisories=false&amp;amp;socket.tcpNoDelay=true&amp;amp;wireFormat.tcpNoDelayEnabled=true&lt;/config-property-setting&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; Now I want to completely disable advisory message.
&gt;&gt; See: http://activemq.apache.org/advisory-message.html
&gt;&gt; The configuration is through XML config data.
&gt;&gt;  &lt;broker advisorySupport="false"&gt;...
&gt;&gt;
&gt;&gt; How can I do that in geronimo?
&gt;&gt; I try to follow the instructions from
&gt;&gt; http://activemq.apache.org/resource-adapter-properties.html
&gt;&gt;
&gt;&gt; To add this in deploy plan...
&gt;&gt; &lt;config-property-setting
&gt;&gt; name="BrokerXmlConfig"&gt;xbean:config.xml&lt;/config-property-setting&gt;
&gt;&gt;
&gt;&gt; But geronimo can not handle xbean schema.
&gt;&gt; ...did not start because Failed to startup an embedded broker:
&gt;&gt; xbean:config.xml, due to: java.io.IOException: Could load xbean
&gt;&gt; factory:java.lang.NoClassDefFoundError:
&gt;&gt; org/springframework/beans/BeansException
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; --
&gt;&gt; View this message in context:
&gt;&gt; http://old.nabble.com/ActiveMQ-questions-tp6326283s134p26497537.html
&gt;&gt; Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
&gt;&gt;
&gt;&gt;
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/ActiveMQ-questions-tp6326283s134p26540192.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Geronimo with openjpa (and DataSource lookups)</title>
<author><name>Forrest Xia &lt;forrestxm@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c432b67430911261738k3a60f59qf7d0774fcfcec1e6@mail.gmail.com%3e"/>
<id>urn:uuid:%3c432b67430911261738k3a60f59qf7d0774fcfcec1e6@mail-gmail-com%3e</id>
<updated>2009-11-27T01:38:02Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

You can have the daytrader sample as an example for how to use defined
datasource in persistence.xml.

http://svn.apache.org/repos/asf/geronimo/daytrader/trunk/

If still not successful, pls try to describe your deployment steps and
related exceptions.

Forrest


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Geronimo with openjpa (and DataSource lookups)</title>
<author><name>cumbers &lt;rich.cumbers@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c26535512.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26535512-post@talk-nabble-com%3e</id>
<updated>2009-11-26T22:07:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi David,
Thanks for responding so quickly. If I follow you correctly I should have a
geronimo-web.xml that looks like the following:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;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"&gt;
    &lt;dep:environment&gt;
        &lt;dep:moduleId&gt;
            &lt;dep:groupId&gt;MyWebApp&lt;/dep:groupId&gt;
            &lt;dep:artifactId&gt;rest&lt;/dep:artifactId&gt;
            &lt;dep:version&gt;1.0&lt;/dep:version&gt;
            &lt;dep:type&gt;car&lt;/dep:type&gt;
        &lt;/dep:moduleId&gt;
        &lt;dep:dependencies&gt;
            &lt;dep:dependency&gt;
                &lt;dep:groupId&gt;console.dbpool&lt;/dep:groupId&gt;
                &lt;dep:artifactId&gt;jdbc_db&lt;/dep:artifactId&gt;
            &lt;/dep:dependency&gt;
        &lt;/dep:dependencies&gt;
    &lt;/dep:environment&gt;
    &lt;web:context-root&gt;/wmqfte&lt;/web:context-root&gt;
&lt;/web:web-app&gt;

This is what I am currently using (and have been for a while) and still no
success. If I alter the artifact name, I get a failure to deploy, so I know
these values are correct.

Cheers

Rich


djencks wrote:
&gt; 
&gt; The datasource module needs to be listed as a dependency of the war  
&gt; module if they are deployed separately.  Single-valued component  
&gt; search in geronimo follows the directed acyclic graph of dependencies  
&gt; so you can deploy lots of datasources named "jdbc/db" in different  
&gt; modules yet still get the one you want in your app by specifying the  
&gt; module with the right one as a dependency.
&gt; 
&gt; thanks
&gt; david jencks
&gt; 
&gt; On Nov 26, 2009, at 9:44 AM, cumbers wrote:
&gt; 
&gt;&gt;
&gt;&gt; I am looking for someone to put me out of my geronimo/openpa misery.
&gt;&gt;
&gt;&gt; I have an application that I can deploy to Geronimo (2.1.1.3) that  
&gt;&gt; uses
&gt;&gt; openjpa where the properties inside the persistence.xml are explicitly
&gt;&gt; defined like so:
&gt;&gt;
&gt;&gt; &lt;properties&gt;
&gt;&gt;        &lt;property name="openjpa.ConnectionDriverName"
&gt;&gt; value="oracle.jdbc.driver.OracleDriver"&gt;&lt;/property&gt;
&gt;&gt;        &lt;property name="openjpa.ConnectionURL"
&gt;&gt; value="jdbc:oracle:thin:@localhost:1521:DB"&gt;&lt;/property&gt;
&gt;&gt;        &lt;property name="openjpa.ConnectionUserName"
&gt;&gt; value="dbuser"&gt;&lt;/property&gt;
&gt;&gt;        &lt;property name="openjpa.ConnectionPassword"
&gt;&gt; value="passw0rd"&gt;&lt;/property&gt;
&gt;&gt; &lt;/properties&gt;
&gt;&gt;
&gt;&gt; However this app is going to be deployed by lots of users, and  
&gt;&gt; ideally I
&gt;&gt; would like to ship a war file, and direct users to create a JNDI  
&gt;&gt; object that
&gt;&gt; they define and then openjpa uses this.
&gt;&gt;
&gt;&gt; Simply defining the JNDI datasource connection within Geronimo, and  
&gt;&gt; using
&gt;&gt; the reference in the &lt;jta-data-source&gt;jdbc/db&lt;/jta-data-source&gt; or
&gt;&gt; &lt;non-jta-data-source&gt;jdbc/db&lt;/non-jta-data-source&gt; does not appear  
&gt;&gt; to work,
&gt;&gt; and I get the following error message when I try and create an
&gt;&gt; EntityManager:
&gt;&gt;
&gt;&gt; "&lt;openjpa-1.2.1-r2180:4612 fatal user error&gt;
&gt;&gt; org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or
&gt;&gt; DataSource class name must be specified in the ConnectionDriverName
&gt;&gt; property."
&gt;&gt;
&gt;&gt; After 3 days on google, I found this page:
&gt;&gt; http://cwiki.apache.org/GMOxDOC21/datasource-connectionfactory-mdb-and-jpa.html
&gt;&gt; which suggests that:
&gt;&gt;
&gt;&gt; "Although many other servers use jndi to define the meaning of the
&gt;&gt; jta-data-source and non-jta-data-source geronimo does not. These are  
&gt;&gt; not
&gt;&gt; jndi names in any way but must match the name specified in the  
&gt;&gt; connector
&gt;&gt; plan."
&gt;&gt;
&gt;&gt; OK so using the jndi object name directly does not seem to be  
&gt;&gt; supported.
&gt;&gt; However the name in the resourceadapter of the plan.xml IS "jdbc/db"  
&gt;&gt; and so
&gt;&gt; I think this should work. Here is the relevant snippet from my  
&gt;&gt; plan.xml as
&gt;&gt; created when I define a JDBC datasource using Geronimo.
&gt;&gt;
&gt;&gt;    &lt;resourceadapter&gt;
&gt;&gt;        &lt;outbound-resourceadapter&gt;
&gt;&gt;            &lt;connection-definition&gt;
&gt;&gt;
&gt;&gt; &lt;connectionfactory-interface&gt;javax.sql.DataSource&lt;/connectionfactory- 
&gt;&gt; interface&gt;
&gt;&gt;                &lt;connectiondefinition-instance&gt;
&gt;&gt;                    &lt;name&gt;jdbc/db&lt;/name&gt;
&gt;&gt;
&gt;&gt; I have run out of ideas on how I can make this work, and would be  
&gt;&gt; massively
&gt;&gt; appreciative if anyone can shed some light on why this is not  
&gt;&gt; working. If
&gt;&gt; you think you need more information please let me know!
&gt;&gt;
&gt;&gt; Cheers
&gt;&gt;
&gt;&gt; Rich
&gt;&gt; -- 
&gt;&gt; View this message in context:
&gt;&gt; http://old.nabble.com/Geronimo-with-openjpa-%28and-DataSource-lookups%29-tp26532836s134p26532836.html
&gt;&gt; Sent from the Apache Geronimo - Users mailing list archive at  
&gt;&gt; Nabble.com.
&gt;&gt;
&gt; 
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/Geronimo-with-openjpa-%28and-DataSource-lookups%29-tp26532836s134p26535512.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Geronimo with openjpa (and DataSource lookups)</title>
<author><name>David Jencks &lt;david_jencks@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3cB98479E3-6B68-4DEB-953C-A74CCBF30F0D@yahoo.com%3e"/>
<id>urn:uuid:%3cB98479E3-6B68-4DEB-953C-A74CCBF30F0D@yahoo-com%3e</id>
<updated>2009-11-26T21:09:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The datasource module needs to be listed as a dependency of the war  
module if they are deployed separately.  Single-valued component  
search in geronimo follows the directed acyclic graph of dependencies  
so you can deploy lots of datasources named "jdbc/db" in different  
modules yet still get the one you want in your app by specifying the  
module with the right one as a dependency.

thanks
david jencks

On Nov 26, 2009, at 9:44 AM, cumbers wrote:

&gt;
&gt; I am looking for someone to put me out of my geronimo/openpa misery.
&gt;
&gt; I have an application that I can deploy to Geronimo (2.1.1.3) that  
&gt; uses
&gt; openjpa where the properties inside the persistence.xml are explicitly
&gt; defined like so:
&gt;
&gt; &lt;properties&gt;
&gt;        &lt;property name="openjpa.ConnectionDriverName"
&gt; value="oracle.jdbc.driver.OracleDriver"&gt;&lt;/property&gt;
&gt;        &lt;property name="openjpa.ConnectionURL"
&gt; value="jdbc:oracle:thin:@localhost:1521:DB"&gt;&lt;/property&gt;
&gt;        &lt;property name="openjpa.ConnectionUserName"
&gt; value="dbuser"&gt;&lt;/property&gt;
&gt;        &lt;property name="openjpa.ConnectionPassword"
&gt; value="passw0rd"&gt;&lt;/property&gt;
&gt; &lt;/properties&gt;
&gt;
&gt; However this app is going to be deployed by lots of users, and  
&gt; ideally I
&gt; would like to ship a war file, and direct users to create a JNDI  
&gt; object that
&gt; they define and then openjpa uses this.
&gt;
&gt; Simply defining the JNDI datasource connection within Geronimo, and  
&gt; using
&gt; the reference in the &lt;jta-data-source&gt;jdbc/db&lt;/jta-data-source&gt; or
&gt; &lt;non-jta-data-source&gt;jdbc/db&lt;/non-jta-data-source&gt; does not appear  
&gt; to work,
&gt; and I get the following error message when I try and create an
&gt; EntityManager:
&gt;
&gt; "&lt;openjpa-1.2.1-r2180:4612 fatal user error&gt;
&gt; org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or
&gt; DataSource class name must be specified in the ConnectionDriverName
&gt; property."
&gt;
&gt; After 3 days on google, I found this page:
&gt; http://cwiki.apache.org/GMOxDOC21/datasource-connectionfactory-mdb-and-jpa.html
&gt; which suggests that:
&gt;
&gt; "Although many other servers use jndi to define the meaning of the
&gt; jta-data-source and non-jta-data-source geronimo does not. These are  
&gt; not
&gt; jndi names in any way but must match the name specified in the  
&gt; connector
&gt; plan."
&gt;
&gt; OK so using the jndi object name directly does not seem to be  
&gt; supported.
&gt; However the name in the resourceadapter of the plan.xml IS "jdbc/db"  
&gt; and so
&gt; I think this should work. Here is the relevant snippet from my  
&gt; plan.xml as
&gt; created when I define a JDBC datasource using Geronimo.
&gt;
&gt;    &lt;resourceadapter&gt;
&gt;        &lt;outbound-resourceadapter&gt;
&gt;            &lt;connection-definition&gt;
&gt;
&gt; &lt;connectionfactory-interface&gt;javax.sql.DataSource&lt;/connectionfactory- 
&gt; interface&gt;
&gt;                &lt;connectiondefinition-instance&gt;
&gt;                    &lt;name&gt;jdbc/db&lt;/name&gt;
&gt;
&gt; I have run out of ideas on how I can make this work, and would be  
&gt; massively
&gt; appreciative if anyone can shed some light on why this is not  
&gt; working. If
&gt; you think you need more information please let me know!
&gt;
&gt; Cheers
&gt;
&gt; Rich
&gt; -- 
&gt; View this message in context: http://old.nabble.com/Geronimo-with-openjpa-%28and-DataSource-lookups%29-tp26532836s134p26532836.html
&gt; Sent from the Apache Geronimo - Users mailing list archive at  
&gt; Nabble.com.
&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Geronimo with openjpa (and DataSource lookups)</title>
<author><name>cumbers &lt;rich.cumbers@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c26532836.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26532836-post@talk-nabble-com%3e</id>
<updated>2009-11-26T17:44:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I am looking for someone to put me out of my geronimo/openpa misery.

I have an application that I can deploy to Geronimo (2.1.1.3) that uses
openjpa where the properties inside the persistence.xml are explicitly
defined like so:

&lt;properties&gt;
        &lt;property name="openjpa.ConnectionDriverName"
value="oracle.jdbc.driver.OracleDriver"&gt;&lt;/property&gt;
        &lt;property name="openjpa.ConnectionURL"
value="jdbc:oracle:thin:@localhost:1521:DB"&gt;&lt;/property&gt;
        &lt;property name="openjpa.ConnectionUserName"
value="dbuser"&gt;&lt;/property&gt;
        &lt;property name="openjpa.ConnectionPassword"
value="passw0rd"&gt;&lt;/property&gt;
&lt;/properties&gt;

However this app is going to be deployed by lots of users, and ideally I
would like to ship a war file, and direct users to create a JNDI object that
they define and then openjpa uses this.

Simply defining the JNDI datasource connection within Geronimo, and using
the reference in the &lt;jta-data-source&gt;jdbc/db&lt;/jta-data-source&gt; or
&lt;non-jta-data-source&gt;jdbc/db&lt;/non-jta-data-source&gt; does not appear to work,
and I get the following error message when I try and create an
EntityManager:

"&lt;openjpa-1.2.1-r2180:4612 fatal user error&gt;
org.apache.openjpa.persistence.ArgumentException: A JDBC Driver or
DataSource class name must be specified in the ConnectionDriverName
property."

After 3 days on google, I found this page:
http://cwiki.apache.org/GMOxDOC21/datasource-connectionfactory-mdb-and-jpa.html
which suggests that:

"Although many other servers use jndi to define the meaning of the
jta-data-source and non-jta-data-source geronimo does not. These are not
jndi names in any way but must match the name specified in the connector
plan."

OK so using the jndi object name directly does not seem to be supported.
However the name in the resourceadapter of the plan.xml IS "jdbc/db" and so
I think this should work. Here is the relevant snippet from my plan.xml as
created when I define a JDBC datasource using Geronimo.

    &lt;resourceadapter&gt;
        &lt;outbound-resourceadapter&gt;
            &lt;connection-definition&gt;
               
&lt;connectionfactory-interface&gt;javax.sql.DataSource&lt;/connectionfactory-interface&gt;
                &lt;connectiondefinition-instance&gt;
                    &lt;name&gt;jdbc/db&lt;/name&gt;

I have run out of ideas on how I can make this work, and would be massively
appreciative if anyone can shed some light on why this is not working. If
you think you need more information please let me know!

Cheers

Rich
-- 
View this message in context: http://old.nabble.com/Geronimo-with-openjpa-%28and-DataSource-lookups%29-tp26532836s134p26532836.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ActiveMQ questions</title>
<author><name>chi runhua &lt;chirunhua@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c98a659de0911260530q6c9885fcv709990c7283038c1@mail.gmail.com%3e"/>
<id>urn:uuid:%3c98a659de0911260530q6c9885fcv709990c7283038c1@mail-gmail-com%3e</id>
<updated>2009-11-26T13:30:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Go to &lt;Geronimo_HOME&gt;/var/activemq/conf directory and update activemq.xml
file according to your needs. You can have the same experiences as you can
do for a standalone ActiveMQ server.
If you need to update ActiveMQ default port in Geronimo, you may update the
value of ActiveMQPort in /var/config/config-substitutions.properties file.

Hope this helps.

Jeff C



On Tue, Nov 24, 2009 at 11:09 PM, easyl &lt;easy.lin@gmail.com&gt; wrote:

&gt;
&gt; I use geronimo 2.1.2.
&gt; It seems that the only way to configurate embedded AMQ is through
&gt; "ServerUrl".
&gt;
&gt; For example:
&gt; &lt;config-property-setting
&gt;
&gt; name="ServerUrl"&gt;tcp://localhost:61616?jms.copyMessageOnSend=false&amp;amp;jms.watchTopicAdvisories=false&amp;amp;socket.tcpNoDelay=true&amp;amp;wireFormat.tcpNoDelayEnabled=true&lt;/config-property-setting&gt;
&gt;
&gt;
&gt; Now I want to completely disable advisory message.
&gt; See: http://activemq.apache.org/advisory-message.html
&gt; The configuration is through XML config data.
&gt;  &lt;broker advisorySupport="false"&gt;...
&gt;
&gt; How can I do that in geronimo?
&gt; I try to follow the instructions from
&gt; http://activemq.apache.org/resource-adapter-properties.html
&gt;
&gt; To add this in deploy plan...
&gt; &lt;config-property-setting
&gt; name="BrokerXmlConfig"&gt;xbean:config.xml&lt;/config-property-setting&gt;
&gt;
&gt; But geronimo can not handle xbean schema.
&gt; ...did not start because Failed to startup an embedded broker:
&gt; xbean:config.xml, due to: java.io.IOException: Could load xbean
&gt; factory:java.lang.NoClassDefFoundError:
&gt; org/springframework/beans/BeansException
&gt;
&gt;
&gt;
&gt;
&gt;
&gt; --
&gt; View this message in context:
&gt; http://old.nabble.com/ActiveMQ-questions-tp6326283s134p26497537.html
&gt; Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: fetching deployed server instance value</title>
<author><name>chi runhua &lt;chirunhua@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c98a659de0911260519v57178cb5x53bc833d9d73c144@mail.gmail.com%3e"/>
<id>urn:uuid:%3c98a659de0911260519v57178cb5x53bc833d9d73c144@mail-gmail-com%3e</id>
<updated>2009-11-26T13:19:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
See the implementation in Geronimo for reference.

https://svn.apache.org/repos/asf/geronimo/server/branches/2.2/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/WaitForServerCommand.groovy

Jeff C

On Mon, Nov 23, 2009 at 4:17 AM, anshukpal
&lt;Anshuk_PalChaudhuri@infosys.com&gt;wrote:

&gt;
&gt; I am deploying a web app on geronimo application server. I would like to
&gt; know
&gt; whether there are any specific apis from which would allow to fetch the
&gt; specific application server instance value, the reason being the same
&gt; application would be deployed on two different application server instances
&gt; and the unique application server instance would be required to do some
&gt; operations.
&gt;
&gt; Anshuk
&gt;
&gt; --
&gt; View this message in context:
&gt; http://old.nabble.com/fetching-deployed-server-instance-value-tp26467881s134p26467881.html
&gt; Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Geronimo logging for connection pool events</title>
<author><name>chi runhua &lt;chirunhua@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c98a659de0911260508g42d5053cgebda1c242859772c@mail.gmail.com%3e"/>
<id>urn:uuid:%3c98a659de0911260508g42d5053cgebda1c242859772c@mail-gmail-com%3e</id>
<updated>2009-11-26T13:08:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
You may refer to [1] to see whether it helps.

http://cwiki.apache.org/GMOxDOC22/configuring-application-specific-logging-with-log4j.html

Jeff C

On Thu, Nov 26, 2009 at 8:43 PM, andyhan &lt;a.lubensky@gmx.de&gt; wrote:

&gt;
&gt; I have a database connection pool of type TranQL Generic JDBC Resource
&gt; Adapter with oracle.jdbc.OracleDriver.
&gt; We need to monitor all about connection life-cycle: when they were open and
&gt; closed.
&gt;
&gt; How can I configure server-log4j.properties so that this information
&gt; appears
&gt; in log?
&gt;
&gt; This doesn't work:
&gt; log4j.logger.oracle.jdbc.pool.OracleConnectionCacheManager=INFO
&gt; log4j.logger.org.tranql.connector.jdbc.AbstractLocalDataSourceMCF=INFO
&gt;
&gt; log4j.logger.apache.geronimo.connector.outbound.MCFConnectionInterceptor=INFO
&gt;
&gt; If not configurable: Is there any possibility do it another way?
&gt; --
&gt; View this message in context:
&gt; http://old.nabble.com/Geronimo-logging-for-connection-pool-events-tp26528939s134p26528939.html
&gt; Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Geronimo logging for connection pool events</title>
<author><name>andyhan &lt;a.lubensky@gmx.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c26528939.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26528939-post@talk-nabble-com%3e</id>
<updated>2009-11-26T12:43:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I have a database connection pool of type TranQL Generic JDBC Resource
Adapter with oracle.jdbc.OracleDriver.
We need to monitor all about connection life-cycle: when they were open and
closed.

How can I configure server-log4j.properties so that this information appears
in log? 

This doesn't work:
log4j.logger.oracle.jdbc.pool.OracleConnectionCacheManager=INFO
log4j.logger.org.tranql.connector.jdbc.AbstractLocalDataSourceMCF=INFO
log4j.logger.apache.geronimo.connector.outbound.MCFConnectionInterceptor=INFO

If not configurable: Is there any possibility do it another way?
-- 
View this message in context: http://old.nabble.com/Geronimo-logging-for-connection-pool-events-tp26528939s134p26528939.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remote Deployment: Connection Refused</title>
<author><name>Forrest Xia &lt;forrestxm@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c432b67430911251938m1ca382eapd1aa59d2e4486bd1@mail.gmail.com%3e"/>
<id>urn:uuid:%3c432b67430911251938m1ca382eapd1aa59d2e4486bd1@mail-gmail-com%3e</id>
<updated>2009-11-26T03:38:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Quoted from "
https://www.ibm.com/developerworks/forums/thread.jspa?messageID=14001599&amp;#14001599
"

Assume you have two machines: machin A and machine B. To do deployment from
A to B. You can follow these steps:
1. On machine B, open var/config/config-substitutions.properties and modify
as follows
RemoteDeployHostname=&lt;machine B's IP&gt;
2. If the machine B is linux, check if /etc/hosts includes entries like
follows:
127.0.0.1 localhost localhost.localdomain
&lt;machine B's IP&gt; &lt;machine B's hostname&gt;
3. start wasce default server instance on machine B
4. On machine A, execute your remote deployment command like follows:
deploy.sh|bat -u system -p manager --host &lt;machine B's IP&gt; deploy
&lt;pathtoapp&gt;

Forrest


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remote Deployment: Connection Refused</title>
<author><name>Shawn Jiang &lt;genspring@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3cf2af330e0911251813k35f8db3bp923f32db5373353c@mail.gmail.com%3e"/>
<id>urn:uuid:%3cf2af330e0911251813k35f8db3bp923f32db5373353c@mail-gmail-com%3e</id>
<updated>2009-11-26T02:13:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Please do following to see if B instance is listening to the right ip:port.

1, *shawn@geronimo&gt;**  netstat -na|grep 1099*

If everything is OK, you should see this

*B_IP_address:1099        0.0.0.0:*               LISTEN*

or this

*0.0.0.0:1099         0.0.0.0:*               LISTEN*

which means you instance B is listening to the right ip:port. Then,  you can
try the deployment again in machine A.  You can also try to use ip address
of B instead of B as hostname with deploy script.

On Thu, Nov 26, 2009 at 12:03 AM, MDiamond &lt;Michael.Diamond@noaa.gov&gt; wrote:

&gt;
&gt;
&gt;
&gt; RunHua Chi wrote:
&gt; &gt;
&gt; &gt; If you want to deploy applications to B, then edit the value of
&gt; &gt; RemoteDeployHostname in config-subsitutions.properties file on B.
&gt; &gt;
&gt; &gt; Then on A, use the deploy command like
&gt; &gt;
&gt; &gt; ./deploy.sh -host &lt;ip of B&gt; -u system -p manager deploy &lt;application on
&gt; A&gt;
&gt; &gt;
&gt;
&gt; Yes, this is what I am doing and it doesn't work. I get the same error as
&gt; above. And this is with Geronimo-Tomcat.
&gt; --
&gt; View this message in context:
&gt; http://old.nabble.com/Remote-Deployment%3A-Connection-Refused-tp26421415s134p26515354.html
&gt; Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
&gt;
&gt;


-- 
Shawn


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remote Deployment: Connection Refused</title>
<author><name>MDiamond &lt;Michael.Diamond@noaa.gov&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c26515354.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26515354-post@talk-nabble-com%3e</id>
<updated>2009-11-25T16:03:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>



RunHua Chi wrote:
&gt; 
&gt; If you want to deploy applications to B, then edit the value of
&gt; RemoteDeployHostname in config-subsitutions.properties file on B.
&gt; 
&gt; Then on A, use the deploy command like
&gt; 
&gt; ./deploy.sh -host &lt;ip of B&gt; -u system -p manager deploy &lt;application on A&gt;
&gt; 

Yes, this is what I am doing and it doesn't work. I get the same error as
above. And this is with Geronimo-Tomcat.
-- 
View this message in context: http://old.nabble.com/Remote-Deployment%3A-Connection-Refused-tp26421415s134p26515354.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remote Deployment: Connection Refused</title>
<author><name>chi runhua &lt;chirunhua@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c98a659de0911241751s6fd448ado4fbe7546d1e2aba6@mail.gmail.com%3e"/>
<id>urn:uuid:%3c98a659de0911241751s6fd448ado4fbe7546d1e2aba6@mail-gmail-com%3e</id>
<updated>2009-11-25T01:51:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
If you want to deploy applications to B, then edit the value of
RemoteDeployHostname in config-subsitutions.properties file on B.

Then on A, use the deploy command like

./deploy.sh -host &lt;ip of B&gt; -u system -p manager deploy &lt;application on A&gt;

BTW, Kevan opened a
JIRA(*GERONIMO-4959&lt;https://issues.apache.org/jira/browse/GERONIMO-4959&gt;
*) for 2.1.4 Geronimo-Jetty assembly. You may want to try remote deploy on
Geronimo-Tomcat one.

Any questions, please let us know.

Jeff

On Wed, Nov 25, 2009 at 12:27 AM, MDiamond &lt;Michael.Diamond@noaa.gov&gt; wrote:

&gt;
&gt; On which machine should I change that information? A or B?
&gt;
&gt; I tried it on both in various combinations and still get the same error. As
&gt; I understand it, I'm supposed to change it on B only, but, again, this
&gt; results in the same error. Thoughts?
&gt;
&gt; P.S. If it matters, the relevant portion of my config.xml is (which I
&gt; believe is the default):
&gt;    &lt;module
&gt; name="org.apache.geronimo.framework/geronimo-gbean-deployer/2.1.4/car"&gt;
&gt;        &lt;gbean name="Deployer"&gt;
&gt;            &lt;attribute
&gt; name="remoteDeployAddress"&gt;http://${RemoteDeployHostname}:${HTTPPort
&gt; +PortOffset}&lt;/attribute&gt;
&gt;        &lt;/gbean&gt;
&gt;    &lt;/module&gt;
&gt;
&gt; --
&gt; View this message in context:
&gt; http://old.nabble.com/Remote-Deployment%3A-Connection-Refused-tp26421415s134p26498548.html
&gt; Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Remote Deployment: Connection Refused</title>
<author><name>MDiamond &lt;Michael.Diamond@noaa.gov&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c26498548.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26498548-post@talk-nabble-com%3e</id>
<updated>2009-11-24T16:27:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

On which machine should I change that information? A or B?

I tried it on both in various combinations and still get the same error. As
I understand it, I'm supposed to change it on B only, but, again, this
results in the same error. Thoughts?

P.S. If it matters, the relevant portion of my config.xml is (which I
believe is the default):
    &lt;module
name="org.apache.geronimo.framework/geronimo-gbean-deployer/2.1.4/car"&gt;
        &lt;gbean name="Deployer"&gt;
            &lt;attribute
name="remoteDeployAddress"&gt;http://${RemoteDeployHostname}:${HTTPPort
+PortOffset}&lt;/attribute&gt;
        &lt;/gbean&gt;
    &lt;/module&gt;

-- 
View this message in context: http://old.nabble.com/Remote-Deployment%3A-Connection-Refused-tp26421415s134p26498548.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ActiveMQ questions</title>
<author><name>easyl &lt;easy.lin@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c26497537.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26497537-post@talk-nabble-com%3e</id>
<updated>2009-11-24T15:09:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I use geronimo 2.1.2.
It seems that the only way to configurate embedded AMQ is through
"ServerUrl".

For example:
&lt;config-property-setting
name="ServerUrl"&gt;tcp://localhost:61616?jms.copyMessageOnSend=false&amp;amp;jms.watchTopicAdvisories=false&amp;amp;socket.tcpNoDelay=true&amp;amp;wireFormat.tcpNoDelayEnabled=true&lt;/config-property-setting&gt;


Now I want to completely disable advisory message. 
See: http://activemq.apache.org/advisory-message.html
The configuration is through XML config data.
  &lt;broker advisorySupport="false"&gt;...

How can I do that in geronimo? 
I try to follow the instructions from
http://activemq.apache.org/resource-adapter-properties.html

To add this in deploy plan...
&lt;config-property-setting
name="BrokerXmlConfig"&gt;xbean:config.xml&lt;/config-property-setting&gt;

But geronimo can not handle xbean schema.
...did not start because Failed to startup an embedded broker:
xbean:config.xml, due to: java.io.IOException: Could load xbean
factory:java.lang.NoClassDefFoundError:
org/springframework/beans/BeansException





-- 
View this message in context: http://old.nabble.com/ActiveMQ-questions-tp6326283s134p26497537.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDBC4 Postgresql Driver fails to install</title>
<author><name>Ivan &lt;xhhsld@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c45f744e40911240138h6505afb1u52df5d8232ba504f@mail.gmail.com%3e"/>
<id>urn:uuid:%3c45f744e40911240138h6505afb1u52df5d8232ba504f@mail-gmail-com%3e</id>
<updated>2009-11-24T09:38:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
About the exception shows while leaving it blank, the fix is also made with
the help messages changes together.

2009/11/24 Quintin Beukes &lt;quintin@skywalk.co.za&gt;

&gt; I might be missing something, but if you require it like this:
&gt;                &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
&gt;               &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
&gt;               &lt;version&gt;8.4.701.jdbc4&lt;/version&gt;
&gt;               &lt;type&gt;jar&lt;/type&gt;
&gt;
&gt; And have this:
&gt; &gt; Group: org.postgresql
&gt; &gt; Artifact: postgresql
&gt; &gt; Version: 8.4-701
&gt; &gt; Type: jar
&gt;
&gt; It's not the same thing. The version's don't match (the reference has
&gt; -jdbc4 in it).
&gt;
&gt; Quintin Beukes
&gt;
&gt;
&gt;
&gt; On Mon, Nov 23, 2009 at 1:55 PM, Juergen Weber &lt;weberjn@gmail.com&gt; wrote:
&gt; &gt;
&gt; &gt; Hi,
&gt; &gt;
&gt; &gt; I just checked with 2.1.4, there the driver installs as
&gt; &gt;
&gt; &gt;  &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
&gt; &gt;                &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
&gt; &gt;                &lt;version&gt;8.4.701.jdbc4&lt;/version&gt;
&gt; &gt;                &lt;type&gt;jar&lt;/type&gt;
&gt; &gt;
&gt; &gt; I rechecked with 2.2 with these IDs, the exception stays the same.
&gt; &gt;
&gt; &gt; Thanks,
&gt; &gt; Juergen
&gt; &gt;
&gt; &gt;
&gt; &gt; Juergen Weber wrote:
&gt; &gt;&gt;
&gt; &gt;&gt; Hi,
&gt; &gt;&gt;
&gt; &gt;&gt; I tried to install postgresql-8.4-701.jdbc4.jar to the repository of
&gt; &gt;&gt; 2.2-SNAPSHOT
&gt; &gt;&gt; Build         2009.11.22-08:16:13.118-0500
&gt; &gt;&gt; as
&gt; &gt;&gt;
&gt; &gt;&gt; Group: org.postgresql
&gt; &gt;&gt; Artifact: postgresql
&gt; &gt;&gt; Version: 8.4-701
&gt; &gt;&gt; Type: jar
&gt; &gt;&gt; Name: postgresqljdbc
&gt; &gt;&gt;
&gt; &gt;&gt; and get the exception below. What is wrong? The Name: field is new,
&gt; isn't
&gt; &gt;&gt; it?
&gt; &gt;&gt;
&gt; &gt;&gt; Thanks,
&gt; &gt;&gt; Juergen
&gt; &gt;&gt;
&gt; &gt;&gt; java.lang.IllegalArgumentException: id must be in the form
&gt; &gt;&gt; [groupId]/[artifactId]/[version]/[type] : postgresqljdbc
&gt; &gt;&gt;
&gt; org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:61)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; org.apache.geronimo.kernel.repository.Artifact.createPartial(Artifact.java:55)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; org.apache.geronimo.system.resolver.ExplicitDefaultArtifactResolver.propertiesToArtifactMap(ExplicitDefaultArtifactResolver.java:98)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; org.apache.geronimo.system.resolver.ExplicitDefaultArtifactResolver.addAliases(ExplicitDefaultArtifactResolver.java:140)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; org.apache.geronimo.console.repository.RepositoryViewPortlet.processAction(RepositoryViewPortlet.java:203)
&gt; &gt;&gt;
&gt; org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218)
&gt; &gt;&gt;
&gt; org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:145)
&gt; &gt;&gt;       javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
&gt; &gt;&gt;       javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; org.apache.pluto.core.DefaultPortletInvokerService.action(DefaultPortletInvokerService.java:85)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:217)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:121)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; org.apache.pluto.driver.PortalDriverServlet.doPost(PortalDriverServlet.java:167)
&gt; &gt;&gt;       javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
&gt; &gt;&gt;       javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; org.apache.geronimo.console.filter.PlutoURLRebuildFilter.doFilter(PlutoURLRebuildFilter.java:48)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:130)
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;&gt;
&gt; &gt;
&gt; &gt; --
&gt; &gt; View this message in context:
&gt; http://old.nabble.com/IllegalArgumentException%3A-id-must-be-in-the-form-...-tp26467880s134p26476753.html
&gt; &gt; Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
&gt; &gt;
&gt; &gt;
&gt;



-- 
Ivan


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: JDBC4 Postgresql Driver fails to install</title>
<author><name>Quintin Beukes &lt;quintin@skywalk.co.za&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/geronimo-user/200911.mbox/%3c1f3854d50911240109s1e1583d1kc84ca2e15882636b@mail.gmail.com%3e"/>
<id>urn:uuid:%3c1f3854d50911240109s1e1583d1kc84ca2e15882636b@mail-gmail-com%3e</id>
<updated>2009-11-24T09:09:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I might be missing something, but if you require it like this:
               &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
               &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
               &lt;version&gt;8.4.701.jdbc4&lt;/version&gt;
               &lt;type&gt;jar&lt;/type&gt;

And have this:
&gt; Group: org.postgresql
&gt; Artifact: postgresql
&gt; Version: 8.4-701
&gt; Type: jar

It's not the same thing. The version's don't match (the reference has
-jdbc4 in it).

Quintin Beukes



On Mon, Nov 23, 2009 at 1:55 PM, Juergen Weber &lt;weberjn@gmail.com&gt; wrote:
&gt;
&gt; Hi,
&gt;
&gt; I just checked with 2.1.4, there the driver installs as
&gt;
&gt; Â &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
&gt; Â  Â  Â  Â  Â  Â  Â  Â &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
&gt; Â  Â  Â  Â  Â  Â  Â  Â &lt;version&gt;8.4.701.jdbc4&lt;/version&gt;
&gt; Â  Â  Â  Â  Â  Â  Â  Â &lt;type&gt;jar&lt;/type&gt;
&gt;
&gt; I rechecked with 2.2 with these IDs, the exception stays the same.
&gt;
&gt; Thanks,
&gt; Juergen
&gt;
&gt;
&gt; Juergen Weber wrote:
&gt;&gt;
&gt;&gt; Hi,
&gt;&gt;
&gt;&gt; I tried to install postgresql-8.4-701.jdbc4.jar to the repository of
&gt;&gt; 2.2-SNAPSHOT
&gt;&gt; Build Â  Â  Â  Â  2009.11.22-08:16:13.118-0500
&gt;&gt; as
&gt;&gt;
&gt;&gt; Group: org.postgresql
&gt;&gt; Artifact: postgresql
&gt;&gt; Version: 8.4-701
&gt;&gt; Type: jar
&gt;&gt; Name: postgresqljdbc
&gt;&gt;
&gt;&gt; and get the exception below. What is wrong? The Name: field is new, isn't
&gt;&gt; it?
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt; Juergen
&gt;&gt;
&gt;&gt; java.lang.IllegalArgumentException: id must be in the form
&gt;&gt; [groupId]/[artifactId]/[version]/[type] : postgresqljdbc
&gt;&gt; Â  Â  Â  org.apache.geronimo.kernel.repository.Artifact.create(Artifact.java:61)
&gt;&gt;
&gt;&gt; org.apache.geronimo.kernel.repository.Artifact.createPartial(Artifact.java:55)
&gt;&gt;
&gt;&gt; org.apache.geronimo.system.resolver.ExplicitDefaultArtifactResolver.propertiesToArtifactMap(ExplicitDefaultArtifactResolver.java:98)
&gt;&gt;
&gt;&gt; org.apache.geronimo.system.resolver.ExplicitDefaultArtifactResolver.addAliases(ExplicitDefaultArtifactResolver.java:140)
&gt;&gt;
&gt;&gt; org.apache.geronimo.console.repository.RepositoryViewPortlet.processAction(RepositoryViewPortlet.java:203)
&gt;&gt; Â  Â  Â  org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218)
&gt;&gt; Â  Â  Â  org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:145)
&gt;&gt; Â  Â  Â  javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
&gt;&gt; Â  Â  Â  javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
&gt;&gt;
&gt;&gt; org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167)
&gt;&gt;
&gt;&gt; org.apache.pluto.core.DefaultPortletInvokerService.action(DefaultPortletInvokerService.java:85)
&gt;&gt;
&gt;&gt; org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:217)
&gt;&gt;
&gt;&gt; org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:121)
&gt;&gt;
&gt;&gt; org.apache.pluto.driver.PortalDriverServlet.doPost(PortalDriverServlet.java:167)
&gt;&gt; Â  Â  Â  javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
&gt;&gt; Â  Â  Â  javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
&gt;&gt;
&gt;&gt; org.apache.geronimo.console.filter.PlutoURLRebuildFilter.doFilter(PlutoURLRebuildFilter.java:48)
&gt;&gt;
&gt;&gt; org.apache.geronimo.console.filter.XSSXSRFFilter.doFilter(XSSXSRFFilter.java:130)
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt; --
&gt; View this message in context: http://old.nabble.com/IllegalArgumentException%3A-id-must-be-in-the-form-...-tp26467880s134p26476753.html
&gt; Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
</feed>
