Re: classloading within an EAR file problem

2007-09-20 Thread David Jencks
Despite Tomasz's optimism I don't think you can do this. In geronimo the rars and ejb jars in an ear get put in one classloader and each web-app gets put in another classloader. The ear classloader is a parent of every war classloader. The problem is that the war classloaders don't get p

Re: classloading within an EAR file problem

2007-09-20 Thread Tomasz Mazan
pieterd wrote: > > Hi, (using geronimo v2) > > I have an EAR file with 2 WAR files: > bsl.war (service layer) > webstore.war (application) > > The webstore.war calls classes within the bsl.war > > Is there a way I can get geronimo to load the bsl.war file first and the > webstore.war file se

Re: How to define a JCA connection pool / jndi address?

2007-09-20 Thread Ed Hillmann
On 9/20/07, David Jencks <[EMAIL PROTECTED]> wrote: > > > > I guess, in this case, I was expecting to see "jca/svConnector1" in > > the JNDI tree of the server. Simply because I didn't see anywhere > > else I was supposed to declare the JNDI address of the > > ConnectionFactory. > > Geronimo does

classloading within an EAR file problem

2007-09-20 Thread pieterd
Hi, (using geronimo v2) I have an EAR file with 2 WAR files: bsl.war (service layer) webstore.war (application) The webstore.war calls classes within the bsl.war Is there a way I can get geronimo to load the bsl.war file first and the webstore.war file second within the same classloader? I hav

Re: Problem with defining custom Valve in config.xml

2007-09-20 Thread Carver
Thanks Paul! I like this approach, but I don't know how to redeploy it. Could you tell me how to redeploy the tomcat module? Paul McMahan-2 wrote: > > Geronimo's Tomcat component actually creates the valve and therefore > needs to have the implementation classes available in its > classload

Re: Problem with defining custom Valve in config.xml

2007-09-20 Thread Carver
It seems that appending the jars to the Class-Path in meta-inf/manifest.mf in server.jar is the simplest simplest way. I try it, but I found that I need to put all the dependency jars, such as catalina.jar and servlet-api.jar, to the list. It is really not a good solution. (same problem in the lib

Re: Problem with defining custom Valve in config.xml

2007-09-20 Thread Carver
Oh, my mistake! It should be "org.company". Thanks for your remind. Janko Heilgeist-2 wrote: > > Hi, > > is that a typo in the attribute "className"? Do you really mean "org. > compnay" or instead "org.company"? > > Regards, Janko > > Carver wrote: >> hi, >> >> I try to define a custom valv

Re: Entity with generic base interface results in VerifyError

2007-09-20 Thread Janko Heilgeist
Hi again, I tinkered around in my code yesterday and I think, I've narrowed down the problem. Forget about my last mail. I am pretty sure, that the exception about incompatible classes is just a result of broken dependencies somewhere in my Maven build. Probably different versions of libraries us

Re: Problem with defining custom Valve in config.xml

2007-09-20 Thread Janko Heilgeist
Hi, is that a typo in the attribute "className"? Do you really mean "org. compnay" or instead "org.company"? Regards, Janko Carver wrote: > hi, > > I try to define a custom valve in config.xml by the following XML fragment: > > name="geronimo/tomcat/1.1.1/car?ServiceModule=geronimo/tomcat/1.1

Re: Threads not released/reused in Geronimo 2.0.1 and Jetty, was: Creation of new threads after closing response writer in Servlet in Little-G Jetty 2.0.1

2007-09-20 Thread Matt Hogstrom
On Sep 17, 2007, at 12:56 PM, David Jencks wrote: On Sep 17, 2007, at 11:44 AM, Joe Bohn wrote: David, Should we expose these attributes in the config.xml and config- substitions.properties in our default assemblies so that they are more easily edited? https://issues.apache.org/jira/br

Re: Problem with defining custom Valve in config.xml

2007-09-20 Thread Carver
Can I put my jars to the /lib/endorsed to make it works in Geronimo 2.0.1? Kevan Miller wrote: > > > On Sep 20, 2007, at 9:34 AM, Vamsavardhana Reddy wrote: > >> Put your jars in /lib/endorsed dir. > > Heh. How many answers can we give... ;-) > > I was thinking we had lib/endorsed issues on

Re: Problem with defining custom Valve in config.xml

2007-09-20 Thread David Jencks
On Sep 20, 2007, at 10:16 AM, Paul McMahan wrote: On Sep 20, 2007, at 9:44 AM, Kevan Miller wrote: On Sep 20, 2007, at 9:34 AM, Vamsavardhana Reddy wrote: Put your jars in /lib/endorsed dir. Heh. How many answers can we give... ;-) I was thinking we had lib/endorsed issues on 1.1. We do

Re: Problem with defining custom Valve in config.xml

2007-09-20 Thread Paul McMahan
On Sep 20, 2007, at 9:44 AM, Kevan Miller wrote: On Sep 20, 2007, at 9:34 AM, Vamsavardhana Reddy wrote: Put your jars in /lib/endorsed dir. Heh. How many answers can we give... ;-) I was thinking we had lib/endorsed issues on 1.1. We don't set it as command line option when invoking jav

Re: Problem with defining custom Valve in config.xml

2007-09-20 Thread Kevan Miller
On Sep 20, 2007, at 9:34 AM, Vamsavardhana Reddy wrote: Put your jars in /lib/endorsed dir. Heh. How many answers can we give... ;-) I was thinking we had lib/endorsed issues on 1.1. We don't set it as command line option when invoking java. And am not sure how well manifest.mf controls

Re: Problem with defining custom Valve in config.xml

2007-09-20 Thread Vamsavardhana Reddy
Put your jars in /lib/endorsed dir. Vamsi On 9/20/07, Carver <[EMAIL PROTECTED]> wrote: > > > It seems that I can merge all the other jar files into the > geronimo-tomcat-1.1.1.jar to make it works. Is there other ways to handle > it? > > -- > View this message in context: > http://www.nabble.com

Re: Problem with defining custom Valve in config.xml

2007-09-20 Thread Kevan Miller
On Sep 20, 2007, at 8:52 AM, Carver wrote: It seems that I can merge all the other jar files into the geronimo-tomcat-1.1.1.jar to make it works. Is there other ways to handle it? Another technique would be to append your jar to the Class-Path in meta-inf/manifest.mf in server.jar. Both

Re: Problem with defining custom Valve in config.xml

2007-09-20 Thread Paul McMahan
Geronimo's Tomcat component actually creates the valve and therefore needs to have the implementation classes available in its classloader. A component's deployment plan specifies what goes in its classloader, so you could add your jar(s) to Tomcat's deployment plan and then redeploy it.

Re: Problem with defining custom Valve in config.xml

2007-09-20 Thread Carver
It seems that I can merge all the other jar files into the geronimo-tomcat-1.1.1.jar to make it works. Is there other ways to handle it? -- View this message in context: http://www.nabble.com/Problem-with-defining-custom-Valve-in-config.xml-tf4486628s134.html#a12796470 Sent from the Apache Gero

Re: How to define a JCA connection pool / jndi address?

2007-09-20 Thread David Jencks
On Sep 20, 2007, at 2:02 AM, Ed Hillmann wrote: On 9/20/07, David Jencks <[EMAIL PROTECTED]> wrote: OK, you're right. I opened https://issues.apache.org/jira/browse/ GERONIMO-3480. Meanwhile you will have to modify your ra.xml to list all the config properties you want to use, and we don't c

Problem with defining custom Valve in config.xml

2007-09-20 Thread Carver
hi, I try to define a custom valve in config.xml by the following XML fragment: org.compnay.valve.MyValve debug=1 SecondValve The custom valve cannot start since the valve class not found. But I don't know how to import the third-party classes in the config.xml. Anyone know how to i