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]>: > > W

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

2008-05-29 Thread David Carew
there's at least > one 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

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 and or 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 qualified JNDI name then the deployer com

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

Re: MyFaces 1.1.5 and Geronimo 2.0.2

2007-11-03 Thread David Carew
I'm running into this issue too and it doesn't seem to care about the J2EE version of the app being deployed. Shouldn't the behavior be that this only happens if the app in question is a JEE5 app ? Is there a check in the code to branch around the additions to the plan for JSF related stuff ? Unl

"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 poss

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 Zi

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

2007-09-07 Thread David Carew
explanation for this > error. > > 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 >

Error when J2EE Client App on G2.0.1 terminates

2007-09-07 Thread David Carew
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 [GBeanInstance] Problem in doStop of org.apache.geronimo.configs/client-corba-y

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 that may be applicable to your scenario. On 9/1/07, Mark Aufdencamp <[EMAIL PROTECTED]> wrote: > > I've

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

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 sta

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
ry 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 &

JSF 1.2 and Geronimo 2.0 M5

2007-05-01 Thread David Carew
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 them out and putting dependencies in geromino-web.xml results in the same error.

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

2007-04-20 Thread David Carew
One-To-Many Bi-Directional example as well? I seem to only find Un-Directional Examples in my Googling:) Mark Aufdencamp [EMAIL PROTECTED] Original Message Subject: Re: Openejb-jar and EJB 2.1 CMR Many-Many Example From: "David Carew" <[EMAIL PROTECTED]> Date:

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 char

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 s

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. java:comp/env/MyTestPool 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 in Geronimo 2.0M3. Szenario

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

2007-03-06 Thread David Carew
ration for the plugin and have your Maven 1 build invoke the > Maven 2 build. Same 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 > >

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

2007-03-06 Thread David Carew
he Maven 2 build. Same 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}/reposito

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: Servlet init params not being picked up

2007-02-01 Thread David Carew
t;[EMAIL PROTECTED]> wrote: Ah - that did it - thankyou ! This works in other servers - is this a "feature"? Any clue if I can override the servlet params in my geronimo-web.xml file? many thanks, John. -Original Message----- From: David Carew [mailto:[EMAIL PROTECTED] Se

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 1/3

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: 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 th

Re: Creating a mail session

2006-12-18 Thread David Carew
rg.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt; JvmRouteBinderValve org.apache.catalina.cluster.session.JvmRouteBinderValve enabled=true ------ *From:* David Carew [mailto:[EMA

Re: Creating a mail session

2006-12-18 Thread David Carew
r smtp false mailserver mail.debug=false mail.smtp.port=25 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 appl

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

2006-12-12 Thread David Carew
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) into Notepad++ and then saved it and it > deployed w/o any errors on WASCE 1.1.0.1 on Window

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

2006-12-12 Thread David Carew
on fabric-prism-eventtopic 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]

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 i

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: TradeDataSource tranql/tranql-connector-oracle-xa/1

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 P

Re: Creating a mail session

2006-11-27 Thread David Carew
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 tried it before and it has worked for me. HTH On 11/27/06, Mik

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 /repository/com.ibm.db2/jars folder. You just have to modify any deployment plans to point to the  existing driver jars e.g.        com.ibm

Re: Deployment error

2006-05-03 Thread David Carew
This apppears to be a bug in WASCE 1.0.1.1. They've picked up a version of the console app code that uses commons-io 1.2 but they've packaged commons-io 1.0 with the console app. If you download commons-io 1.2 and replace the version that's there then the problem goes away.Here are the steps that

Re: FindByPrimaryKey

2006-04-06 Thread David Carew
The java.sql.Timestamp class has a static method  called valueOf to convert Strings in the format -mm-dd hh:mm:ss.f  (where ff represents nanoseconds) to a java.sql.Timestamp instance.  As pointed out previously, this is easier than writing your own converter.  See Javadocs for

Re: Looking up the datasource in a session bean constructor

2006-04-05 Thread David Carew
Your code shows that the datasource is being assigned to a local variable in the constructor. It needs to be stored in an instance variable because the EJB container won't necessarily create a new instance of the session bean whenever ejbCreate is called (it can pool instances and reuse them). Also

Re: Deploy Tool: deploy vs redeploy

2006-03-28 Thread David Carew
Another idea is to make the default for something like "--strict" configurable in config.xml and ship it "out the box"  with "--strict false" as the default.  In production you probably want to make changes to the default config anyway, e.g. turn off hot deploy. So this could just be something els

Re: Configurint Geronimo to use DB2

2006-03-22 Thread David Carew
nect to zOS.   Francis A. Varin, M.S.  IT Architect II  Corporate Information Systems Amica Mutual Insurance Company 1-800-652-6422 ext. 24536  http://www.amica.com From: David Carew [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 22, 2006 11:45 AM To: user@geronimo.apache.org

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 db2j

Remote EJB client apps

2006-03-15 Thread David Carew
By "Remote EJB client apps" I mean a standalone app running  a different machine  from the Geronimo server accessing EJBs running on the Geronimo server.What are the properties required for InitialContext for a remote EJB Client doing a JNDI lookup ? Besides the stubs specific to the EJBs I need to

Ignore errors from Maven plugin

2006-03-07 Thread David Carew
I'm not that familiar with Maven (so  this might be a general question)  but I'm trying to build and deploy my project using the Geronimo Maven plugin (for the deployment part). I'm running these commands:  stop, undeploy, distribute, start  (in that order).  Before my project is initially deploye

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. select nextval('person_seq') java.lang.Integer Will the container use the contents of in the Values clause of an INSERT statement

Re: geronimo, eclipse and javax.ejb?

2006-02-22 Thread David Carew
In Eclipse you have to go to Window->Preferences->Server and then select Installed Runtimes. Add an instance of the Geronimo Runtime and then when you create your projects (EJB, Web etc) select the newly added runtime as the Target Runtime. This will automatically add the required J2EE classes to t

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

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 http://geronimo.apache.org/xml/ns/j2ee/connector-1.0" version="1.5" configId="webbankdb/derby"     parentId="geronimo/j2ee-server/1.0/car">    org.apache.derby/

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 geronimo-w