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
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
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
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) ?
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
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
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 ?
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
.
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
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
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
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
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
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
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
: 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
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
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
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 ?
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
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
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
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
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
/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
=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
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
/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
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
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
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
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
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
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
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
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
36 matches
Mail list logo