Database Pool with JPA in a Web App in G2.0.x

2008-05-29 Thread David Carew
Does anyone know how to use a datasource with JPA classes that are in a Web App ? If I put the database pool name in the jta-data-source and or non-jta-data-source elements of persistence.xml I get a Naming Exception from OpenJPA saying that the name doesn't exist in JNDI. If I put a fully

Re: Database Pool with JPA in a Web App in G2.0.x

2008-05-29 Thread David Carew
testsuite app with jpa from a web app. thanks david jencks On May 29, 2008, at 7:30 AM, David Carew wrote: Does anyone know how to use a datasource with JPA classes that are in a Web App ? If I put the database pool name in the jta-data-source and or non-jta-data-source elements

Re: Database Pool with JPA in a Web App in G2.0.x

2008-05-29 Thread David Carew
Correction - persistence.xml is in WEB-INF/classes/META-INF 2008/5/29 David Carew [EMAIL PROTECTED]: Hi David, It's in a META-INF folder in the root of the war file. Should it be somewhere else ? 2008/5/29 David Jencks [EMAIL PROTECTED]: Where is your persistence.xml? I think you

Add Virtual Host w/o stopping server

2008-02-28 Thread David Carew
Is there a way to add a Virtual Host to Geronimo w/Tomcat while the server is running ? If yes, is there a way to make those changes permanent (ie survive a server restart) ?

Mapping annotation to an actual database pool in Geronimo

2008-02-20 Thread David Carew
I have a database pool defined in the admin console and I want to refer to it in a Servlet or EJB via an annotation like the following @Resource DataSource myPool ; How do I map the variable myPool to an actual Database Pool in Geronimo ? TIA

jar only module

2007-10-29 Thread David Carew
Is it possible to create a module that contains only jars ? I want to have a set of classes loaded in a parent classloader that several separately deployed apps will share. I don't want to use the sharedlib because IIUC it would preclude me from making a plugin out of my set of apps. If it is

Jetspeed2 and Geronimo

2007-10-19 Thread David Carew
IIRC there were some questions last year about running JetSpeed2 on Geronimo and there were some technical issues that needed to be addressed. Have these issues been resolved on the Geronimo side ?

Re: Problem JMS (NameNotFoundException)

2007-09-24 Thread David Carew
Do you have references to the ConnectionFactory and Queue in your web.xml ? http://cwiki.apache.org/GMOxDOC20/jms-and-mdb-sample-application.html has an example. Although the example uses annotations the setup would be the same to be able to access the JMS resources via JNDI. On 9/24/07, Jochen

Re: Error when J2EE Client App on G2.0.1 terminates

2007-09-07 Thread David Carew
. thanks david jencks On Sep 7, 2007, at 9:04 AM, David Carew wrote: When I run a J2EE Client app on G 2.0.1 the client runs but after it exits it's main method I get the following error from the client container. Has anyone seen this and/or knows how to fix it ? TIA 10:57:15,119 ERROR

Re: EJB 2.1 CMR Question

2007-09-01 Thread David Carew
Check out the EJB section in Aaron Mulder's book here. http://www.chariotsolutions.com/geronimo/geronimo-1.1/ejb-structure.html#id2594234 There's a element in the EJB deployment plan called enforce-foreign-key-constraints that may be applicable to your scenario. On 9/1/07, Mark Aufdencamp

Trying to find a version of the Eclipse plugin that works with 2.0 M6 RC1

2007-06-14 Thread David Carew
I tried building the plugins from trunk and also the download version dated 06/11/2007. In both cases I can't start the server from within Eclipse (it starts fine outside of eclipse) I'm running on Ubuntu Feisty Fawn with Eclipse 3.3 RC2 and WTP 2.0 RC2 with the Sun JDK 1.5.0_11. The server

Re: Trying to find a version of the Eclipse plugin that works with 2.0 M6 RC1

2007-06-14 Thread David Carew
Thanks Sachin. That works. On 6/14/07, Sachin Patel [EMAIL PROTECTED] wrote: Please use this driver... http://people.apache.org/dist/geronimo/eclipse/unstable/g-eclipse- plugin-2.0.0-v20070611.1243-deployable.zip -sachin On Jun 14, 2007, at 1:23 PM, David Carew wrote: I tried building

Re: Different Exception during deploy this time

2007-05-23 Thread David Carew
IIRC the Web App you refer to is specific to WebSphere. This is how WebSphere handles EJB Web Services (ie the tooling adds a Web app that points to a WebSphere specific class). For Geronimo you don't need this web app and it's extremely doubtful it would work. It would require dragging around

Re: JSF 1.2 and Geronimo 2.0 M5

2007-05-02 Thread David Carew
for this trouble. Best wishes, Paul On May 1, 2007, at 7:52 PM, David Carew wrote: What do I need to get a JSF web app working in 2.0 M5 ? What dependencies if any are needed in geronimo-web.xml ? I tried putting JSTL1.2 and MyFaces1.2 jars in WEB-INF/lib and I got the following exception. Leaving

Re: Openejb-jar and EJB 2.1 CMR Many-Many Example

2007-04-20 Thread David Carew
Here's a simplified version of the DB schema I used for a many to many relationship between CMP Entity beans called Account and Customer create table customer ( customerid integer not null, title character(3) not null, firstname varchar(30) not null, lastname varchar(30) not null, pin

Re: Openejb-jar and EJB 2.1 CMR Many-Many Example

2007-04-20 Thread David Carew
: David Carew [EMAIL PROTECTED] Date: Fri, April 20, 2007 8:35 am To: user@geronimo.apache.org Here's a simplified version of the DB schema I used for a many to many relationship between CMP Entity beans called Account and Customer create table customer ( customerid integer not null, title

Re: Common libs in EAR?

2007-04-02 Thread David Carew
Add something .jar to the root of your ear file as you have indicated and then just add a MANIFEST.MF file to the META-INF folder of each war file that has the following: Manifest-Version: 1.0 Class-Path: something.jar On 4/2/07, Jochen Zink [EMAIL PROTECTED] wrote: Hello, I have, maybe a

Re: How to deploy JPA?

2007-03-28 Thread David Carew
You should be able to do it in your persistence.xml file. with the jta-data-source element e.g. jta-data-sourcejava:comp/env/MyTestPool/jta-data-source On 3/28/07, Ueberbach, Michael [EMAIL PROTECTED] wrote: Hello, I need some help in finding out the right way to deploy an ejb-application

What happened to the Maven 1.x plugins in Geronimo 1.1 and 1.2 ?

2007-03-06 Thread David Carew
In 1.0 they were in {GERONIMO_HOME}/repository/geronimo/plugins/geronimo- deployment-plugin-1.0.0.jar. Have they been superceded by something else or are they just not supported anymore ?

Re: What happened to the Maven 1.x plugins in Geronimo 1.1 and 1.2 ?

2007-03-06 Thread David Carew
goes for folks who use Ant. Right now the plugins for G 1.2 are highly specific to Maven 2, and creating Maven 1/Ant versions would be a major maintenance problem. --jason On Mar 6, 2007, at 10:22 AM, David Carew wrote: In 1.0 they were in {GERONIMO_HOME}/repository/geronimo/plugins/ geronimo

Re: What happened to the Maven 1.x plugins in Geronimo 1.1 and 1.2 ?

2007-03-06 Thread David Carew
I ended up building the plugin from the source distribution. Doesn't look like it gets packaged with the binary distributions post WASCE 1.0. On 3/6/07, Jason Dillon [EMAIL PROTECTED] wrote: Good question... one I don't have the answer too :-( --jason On Mar 6, 2007, at 4:17 PM, David Carew

Re: Servlet fails to deploy

2007-01-31 Thread David Carew
I've done this but the utility jar was in the root of the EAR. I would suggest putting the utility jar in the root of the EAR file and then refer to it in the WAR files manifest using the jar files name (without any directory slashes). On 1/31/07, Tim Davidson [EMAIL PROTECTED] wrote: Hi, I

Re: Servlet init params not being picked up

2007-01-31 Thread David Carew
I don't think the init parameters are available via the method you're using until after the servlet is initialized. Try using this signature for init public void init(ServletConfig config) throws ServletException and then using the getParameterNames method on the ServletConfig object. On

Re: Deploy issue - issue with web.xml

2006-12-29 Thread David Carew
It's complaining about the host element in your geronimo-web.xml. AFAIK it's not part of the schema for geronimo-web.xml. See http://geronimo.apache.org/schemas.html On 12/29/06, problems mail [EMAIL PROTECTED] wrote: Huh !! Any clue what this is, looks like we dont have a full house in

Re: Creating a mail session

2006-12-18 Thread David Carew
/module On 11/27/06, David Carew [EMAIL PROTECTED] wrote: Take a look at the WAS CE samples (you can download them from the same place you downloaded WAS CE). There's an application called PlantsByWebsphere that uses a mail session and has all the required info in the deployment plan . I've

Re: Creating a mail session

2006-12-18 Thread David Carew
=JvmRouteBinderValve class= org.apache.geronimo.tomcat.ValveGBean attribute name=className org.apache.catalina.cluster.session.JvmRouteBinderValve/attribute attribute name=initParamsenabled=true/attribute /gbean / module -- *From:* David Carew [mailto:[EMAIL PROTECTED

Re: ResourceAdapter is not of type: org.activemq.ra.ActiveMQResourceAdapter

2006-12-12 Thread David Carew
I copied your plan (jms.xml) into Notepad++ and then saved it and it deployed w/o any errors on WASCE 1.1.0.1 on Windows XP. Does your copy of jms.xml file have any funky non-readable characters in it ? On 12/12/06, Mike Perham [EMAIL PROTECTED] wrote: Anyone? We cannot support Geronimo in

Re: ResourceAdapter is not of type: org.activemq.ra.ActiveMQResourceAdapter

2006-12-12 Thread David Carew
/dep:dependency On 12/12/06, Mike Perham [EMAIL PROTECTED] wrote: jms.xml deploys just fine. The ResourceException occurs when I try to deploy an EAR which references those jms resources. See the MDB reference below. On 12/12/06, David Carew [EMAIL PROTECTED] wrote: I copied your plan ( jms.xml

Oracle datasource in standalone plan

2006-11-30 Thread David Carew
I'm using WASCE 1.1 and I've noticed that the Daytrader Oracle sample uses a single application level plan. How do I break out the DataSource into a separate plan ? The DataSource portion of the DayTrader plan for Oracle looks like this: ext-module connectorTradeDataSource/connector

Re: Rollbacks at database level throws exception in Geronimo

2006-11-29 Thread David Carew
I had a similar problem with Geronimo 1.1 and with WASCE 1.1 when using the generic TranQL connector. I ended up using WASCE 1.1.0.1 instead because they have DB2 specific TranQL connectors. When I used those, the rollback worked as expected. On 11/28/06, Arunanthisivam Vimalathithen [EMAIL

Re: Difficulty in uploading the DB2 jar files

2006-05-09 Thread David Carew
A known bug in WASCE 1.0.1.1 which I suppose they'll fix in their next point release. You don't really need to this though, the DB2 drivers are already in the WASCE_HOME/repository/com.ibm.db2/jars folder. You just have to modify any deployment plans to point to the existing driver jars

Re: Configurint Geronimo to use DB2

2006-03-22 Thread David Carew
It appears you're using the Type 2 DB2 JDBC Driver. I think that's deprecated so I would avoid using it. I would recommmend using the DB2 Type 4 JDBC Driver. Here's an example of a plan that I embedded in my geronimo-application.xml file. Note that I renamed the DB2 jars to db2jcc-8.2.jar and

Question about CMP Entity Bean key generation

2006-02-22 Thread David Carew
I'm trying to do this in DB2 . I found an example of a deployment plan in Aaron Mulder's book but I don't recognize this particular SQL dialect. key-generator sql-generator sqlselect nextval('person_seq')/sql return-typejava.lang.Integer/return-type /sql-generator Will the

Any naming conventions in deployment plans for module configIds ?

2006-02-21 Thread David Carew
I've seen ModuleName/ModuleName a lot for standalone modules. What about modules in an .ear ? Is the convention then EARModuleName/ModuleName or is there really no naming convention yet ? thanks

Datasource for Hot Deploy

2006-02-14 Thread David Carew
I have an EAR file with a web app and an EJB jar. I've been deploying it with an external deployment plan that has a Datasource defined in it as well as the info for the web app and the EJB. I'm trying to change it to use the internal deployment plans so I can Hot Deploy it. I created a

Re: Datasource for Hot Deploy

2006-02-14 Thread David Carew
Thanks. the aconnector was a typo(was trying different variations).here's the original deployment plan for the datasource that works ?xml version=1.0?connector xmlns=http://geronimo.apache.org/xml/ns/j2ee/connector-1.0version=1.5 configId=webbankdb/derby parentId=geronimo/j2ee-server/1.0/car