Re: Eclipse connectivity with geronimo server

2008-06-25 Thread Saurabh Sharma
 Hi McConnell,

Thank you !!!  Yeah, I understand query server alone will not totally help,
I also have to
support present functionality of adding dependency.I'll keep that also in
mind.
Thanx.

Saurabh Sharma
Bachelor of Technology, III year
Department of Electronics and Computer Science
Indian Institute of Technology Roorkee,India

On Sat, Jun 21, 2008 at 3:13 AM, Tim McConnell [EMAIL PROTECTED]
wrote:

 Hi again Saurabh, now I better understand what you are trying to do.
 Although I think it's fine to query the server for dependencies (which I
 believe is very similar to function provided by the Plan Creator portlet)
 that probably should not be the exhaustive list of dependencies that can be
 added to the Geronimo deployment plan(s). For example, you might also want
 to consider and interrogate the projects in the user's Eclipse workspace to
 help determine the list of dependencies the user might want to consider.
 Plus, we would still need to maintain the current capability for the user to
 be able to add a dependency via the deployment plan editors that may not yet
 exist (e.g., either in the server or in the user's workspace). Still, I
 think you're certainly on the right track to provide a lot more
 functionality, and ease-of-use capabilities, then the current deployment
 editors provide. So thanks very much for looking into this..

 Saurabh Sharma wrote:

 Hi McConnell,

 Yeah... I'm looking for exhaustive list of dependencies. Actually upto now
 when we
 click add button to add a dependency in Geronimo deployment plan editor
 (Dependency page) in the Geronimo Eclipse Plugin,what we get is a wizard
 which ask us to fill information like artifact-id,group-id etc. of the
 dependency which is to be added in geronimo-web.xml file.

 I want to change the functionality of this add button.I think more
 intuitive is that when
 we click add button there should come a wizard with exhaustive list of
 dependencies that can be added to geronimo-web.xml file.User should select
 out of these.

 For that I have to enquire server to get this exhaustive list.

 Thanks,

 Saurabh Sharma
 Bachelor of Technology, III year
 Department of Electronics and Computer Science
 Indian Institute of Technology Roorkee

 On Fri, Jun 13, 2008 at 6:22 AM, Tim McConnell [EMAIL PROTECTED]mailto:
 [EMAIL PROTECTED] wrote:

Hi Saurabh, I apologize but I'm having a little trouble
understanding exactly what you're looking for. Are you looking for
an an exhaustive list of dependencies that can be added to the
Geronimo deployment plan editor(s) in the Geronimo Eclipse Plugin ??


Saurabh Sharma wrote:


Hi,
I'm new to plugin development in eclipse for geronimo.For
dependencies section
I require the list of dependencies to be added in deployment
plan descriptor.For
which i have to retrieve database list from server.what can be
the way for that?

Saurabh Sharma
Bachelor of Technology, III year
Department of Electronics and Computer Science
Indian Institute of Technology Roorkee


--Thanks,
Tim McConnell



 --
 Thanks,
 Tim McConnell



Re: CXF + Spring under Geronimo 2.1.1

2008-06-25 Thread Alexey Kakunin
Jarek, thank you!
This helps. Finally I managed to run our application on Geronimo!

2008/6/24 Jarek Gawor [EMAIL PROTECTED]:

 Start server with the following property:

 export
 JAVA_OPTS=-Dorg.apache.cxf.jaxws.checkPublishEndpointPermission=false

 As per spec, app servers are supposed to block publishing new web
 service endpoints via the Endpoint API. This system property will
 disable the check and will allow you to publish a new endpoint.

 Jarek

 On Tue, Jun 24, 2008 at 3:07 PM, Alexey Kakunin [EMAIL PROTECTED] wrote:
  Hello again.
 
  Periodically I'm returning to this problem again and again - since it
 looks
  very strange why application.correctly run on most server from Jetty 
  Tomcat and finishing JBoss and GlassFish - but cannot run on Geronimo.
 
  So, playing a little bit more I hope I managed classloader problems, but
 now
  I cannot create services (CXF + Spring) due to security problems (Stack
  trace specified below).
 
  Does anybody has success experience with using CXF 2.1  Spring 2.5 under
  Geronimo 2.1.1?
 
  Caused by: java.security.AccessControlException: access denied
  (javax.xml.ws.WebServicePermission publishEndpoint)
  at
 
 java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
  at
  java.security.AccessController.checkPermission(AccessController.java:546)
  at
 
 org.apache.cxf.jaxws.EndpointImpl.checkPublishPermission(EndpointImpl.java:375)
  at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:241)
  at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:194)
  at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:380)
  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)
  at
 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1412)
  at
 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1373)
  at
 
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
  ... 89 more
 
  2008/5/6 Alexey Kakunin [EMAIL PROTECTED]:
 
  Jarek
  thank you very much for advise - but it did not helped :(
 
  Can you explain me why this may help me (probably understanding this I
  will able to find some other solution)
 
  Thank you again.
 
  2008/5/5 Jarek Gawor [EMAIL PROTECTED]:
 
  Try adding sys:filterMETA-INF/spring/sys:filter to your
  sys:hidden-classes element. That might help with the
  UnsatisfiedDependencyException but I'm not 100% sure.
 
  Jarek
 
  On Mon, Apr 28, 2008 at 9:50 AM, Alexey Kakunin [EMAIL PROTECTED]
  wrote:
   Hello! I'm currently working with migrating quite big war-only
   application
   (http://www.emforge.org) to the Geronimo.
   We are using Tomcat 5.5/6.0 for development, but already prepared
   special
   versions for JBossAS and GlassFis to provide better integration
   (http://www.emforge.org/wiki/EmForgeJ2EEIntegration has a little bit
   more
   details).
  
   So, now the turn on Geronimo.
  
   This application is used many dependencies, some of which make sense
   are:
   * JSF-RI 1.2  Facelets  RichFaces 3.2.0
   * Spring 2.5.2
   * CXF 2.0.5-incubator.
  
   During trying to run application on GlassFish I met some problems,
   seems
   related to the facts, that Geronimo is used a little bit another
   versions:
* MyFaces 1.2 (as JSF Implementation)
   * Spring 2.0.5
   * CXF 2.0.2
  
   But before one general question: how to use some default (I suppose
   jdbc/ActiveDS) DataSource in my application?
   We need it because by default, we are using build-in file-based HSQL,
   but in
   these special pacjkages for J2EE servers we provide some better
   integration - for example we are using some default DS as DataSource.
   It
   allows user to start application by simple deploying (without any
   external
   configuration) and avoid from using HSQL (it has some problems).
  
   I read documentation
   (http://cwiki.apache.org/GMOxDOC21/deployment-plans.html) and trying
 to
   do
   like it is described there  - added resource into web.xml:
  
   resource-ref
   res-ref-namejdbc/ActiveDS/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
   res-sharing-scopeShareable/res-sharing-scope
/resource-ref
  
   And added dependency into geronimo-web.xml (may be it is not correct
 -
   but I
   tried different ways):
  
  
   web-app xmlns=http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1;
  xmlns:nam=http://geronimo.apache.org/xml/ns/naming-1.2;
 

Messages are not being redelivered (JMS)

2008-06-25 Thread Mohammed Imran
I am experiencing problems with redelivery of messages in activemq/geronimo
it seems to not redeliver the message when a system exception occurs. I know
that ActiveMQ has a max redelivery count, however the messages seem to stop
being processed after 1-2 attempts. I am not getting anywhere near the max
redelivery count. user@geronimo.apache.org

I enclose a very simple example. This ear simple has 1 MDB which will
automatically throw an EJBException. (In the source code I have configured
it to use ActiveMQ default queues and connection factory this was only done
so you can quickly see what happens without setting up your own queue and
connection factory. I also enclose a runnable class which will send a
message to the queue.)

The expected result should be MDB retires 5/10/xxx amount of times whatever
the max redelivery count is set to and then stops redelivering the message.
However as I have said earlier on I am not getting this, seems to only retry
once.

package test;

import javax.ejb.*;
import javax.jms.MessageListener;
import javax.jms.Message;

@MessageDriven(activationConfig = { @ActivationConfigProperty( propertyName
= destinationType, propertyValue = javax.jms.Queue),
@ActivationConfigProperty( propertyName = destination, propertyValue =
TestMDBBean.QUEUE_NAME) ,@ActivationConfigProperty( propertyName =
acknowledgeMode, propertyValue = Auto-acknowledge) })
//@TransactionManagement(TransactionManagementType.CONTAINER)
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public class TestMDBBean implements MessageListener {
public static final String QUEUE_NAME = SendReceiveQueue;//ErrorQueue;;
public void onMessage(Message message) { System.err.println(This is a
test); throw new EJBException(This is a lovely test); }
}

open-ejbjar.xml

?xml version=1.0 encoding=UTF-8?
openejb-jar
xmlns=http://www.openejb.org/xml/ns/openejb-jar-2.1;
xmlns:naming=http://geronimo.apache.org/xml/ns/naming-1.1;
xmlns:security=http://geronimo.apache.org/xml/ns/security-1.1;
xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.1;
xmlns:pkgen=http://www.openejb.org/xml/ns/pkgen-2.0;
enterprise-beans
message-driven
ejb-nameTestMDBBean/ejb-name
resource-adapter
!-resource-linkMyJMSResources/resource-link-
resource-linkActiveMQ RA/resource-link
/resource-adapter
/message-driven

/enterprise-beans
/openejb-jar

Geronimo application

?xml version=1.0 encoding=UTF-8?
application
xmlns=http://geronimo.apache.org/xml/ns/j2ee/application-1.2;
xmlns:security=http://geronimo.apache.org/xml/ns/security-1.2;
xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.2;
application-name=My

sys:environment
sys:moduleId
sys:groupIdtester/sys:groupId
sys:artifactIdmdb/sys:artifactId
sys:version1/sys:version
sys:typecar/sys:type
/sys:moduleId
sys:dependencies

!--
sys:dependency
sys:groupIdMy.jms/sys:groupId
sys:artifactIdMyJMSResources/sys:artifactId
sys:version1.0/sys:version
sys:typerar/sys:type
/sys:dependency
--

sys:dependency
sys:groupIdorg.apache.geronimo.configs/sys:groupId
sys:artifactIdactivemq-ra/sys:artifactId
sys:version2.1.1/sys:version
sys:typecar/sys:type
/sys:dependency

/sys:dependencies

sys:hidden-classes/
sys:non-overridable-classes/
/sys:environment

/application


Use of a GBean from a Message EJB

2008-06-25 Thread dsthode

Hello all,

I'm trying to deploy an enterprise application in Geronimo 2.1.1 wich makes
use of a GBean from inside a Message EJB. That GBean is a custom developed
GBean that creates a thread and uses the persistence unit defined in my
persistence.xml as well as a ConnectionFactory and a Topic for a JMS
destination, all of them injected with the reference tags in the gbean
definition. All that does not represent a problem as all the injections work
right and I've created the connection to the JMS destination from my GBean
with no major trouble.

My problem comes when I try to reference that GBean from my Message EJB.
I've tried to add a gbean-ref to the message-driven definition of this
MDB but I get the following exception when deploying (see below for the
openejb-jar.xml):

[severity=ERROR,message=unexpected element
(uri:http://geronimo.apache.org/xml/ns/naming-1.2;, local:ref-name).
Expected elements are {http://openejb.apache.org/xml/n
s/openejb-jar-2.2}ref-type,{http://openejb.apache.org/xml/ns/openejb-jar-2.2}pattern,{http://openejb.apache.org/xml/ns/openejb-jar-2.2}ref-name,locator=[node=null,ob
ject=null,url=null,line=38,col=15,offset=-1]]

If anyone needs the details for the exception stack trace I can post them,
but I think the error message is explanatory enough and the stack trace is
quite too long.

I've checked all the xsd files and ref-name is defined inside a
gbean-ref tag and it belongs to the geronimo-naming-1.2 schema , so I
don't get the meaning of this message.

Also I've tried to change the namespace to the ref-name tag and set it to
ref-name xmlns=http://openejb.apache.org/xml/ns/openejb-jar-2.2; as the
error message suggests, but fails with the same error message. And i've
tried to prepend the nam: namespace to the ref-name tag also, but with
no success either.

And another question is, when I set the reference in my openejb-jar.xml, how
do I use this GBean from my MDB? I've tried to set a @Reference annotation
but I guess this is not going to work as I think it's only for JDBC, JMS and
the like resources, not for GBeans.

This is my openejb-jar.xml file:

?xml version=1.0 encoding=UTF-8?
openejb-jar xmlns=http://www.openejb.org/xml/ns/openejb-jar-2.1; 
 
xmlns:nam=http://geronimo.apache.org/xml/ns/naming-1.2; 
 xmlns:pkgen=http://www.openejb.org/xml/ns/pkgen-2.0; 
 
xmlns:sec=http://geronimo.apache.org/xml/ns/security-2.0; 
 
xmlns:sys=http://geronimo.apache.org/xml/ns/deployment-1.2;
  sys:environment
sys:moduleId
  sys:groupIdsampleGroup/sys:groupId
  sys:artifactIdsample_EJB/sys:artifactId
  sys:version1.0/sys:version
  sys:typecar/sys:type
/sys:moduleId
sys:dependencies
sys:dependency
sys:groupIdconsole.dbpool/sys:groupId
sys:artifactIdsampleDS/sys:artifactId
/sys:dependency
sys:dependency
sys:groupIdconsole.jms/sys:groupId
sys:artifactIdsampleMsgResources/sys:artifactId
/sys:dependency
/sys:dependencies
  /sys:environment
  enterprise-beans
session
ejb-nameBean1/ejb-name
/session
session
ejb-nameBean2/ejb-name
/session
message-driven
ejb-nameMDBBean1/ejb-name
resource-adapter

resource-linksampleMsgResources/resource-link
/resource-adapter
gbean-ref
!-- the next tag is causing trouble with an unexpected element exception
--
ref-nameUpdatesProcessorGBean/ref-name
/gbean-ref
/message-driven 
message-driven
ejb-nameMDBBean2/ejb-name
resource-adapter

resource-linksampleMsgResources/resource-link
/resource-adapter
/message-driven
  /enterprise-beans
  sys:gbean name=UpdatesProcessorGBean
class=sample.gbean.GBeanUpdatesProcessor
!-- this is the persistence unit defined in persistence.xml --
reference name=samplePU
namesamplePU/name
/reference
!-- this is a connection factory defined in sampleMsgResources --
reference name=UpdatesConnectionFactory
nameUpdatesListasConnectionFactory/name
/reference
!-- this is a Topic defined in sampleMsgResources --
reference name=sampleTopic
namesampleTopic/name
/reference
  /sys:gbean
/openejb-jar

If anyone has an idea, please help me, as I'm stuck and I don't know where
to go next.

Thank you.
-- 
View this message in context: 
http://www.nabble.com/Use-of-a-GBean-from-a-Message-EJB-tp18109820s134p18109820.html

Re: [ANNOUNCE] Welcome Shiva Kumar H R as the newest member of the Geronimo PMC

2008-06-25 Thread Ted Kirby
Congrats Shiva!

Ted

On Mon, Jun 23, 2008 at 9:12 AM, Vamsavardhana Reddy
[EMAIL PROTECTED] wrote:
 My apologies to Shiva for making the announcement without letting the 72
 hour waiting period elapse after the ASF Board acknowledged voting Shiva in
 by the PMC.  As of now, Shiva is not a PMC member and will become one once
 there are no objections by the board in that waiting period.  I will
 announce then.  I am withdrawing this announcement (if there is such a
 provision!!).

 ++Vamsi

 On Mon, Jun 23, 2008 at 5:13 PM, Vamsavardhana Reddy [EMAIL PROTECTED]
 wrote:

 All,
 Please join us in congratulating Shiva Kumar H R as the newest member of
 the Geronimo PMC. It's been great to have Shiva working with us as a
 committer on Geronimo. Even better to have him join us in providing
 oversight of the Geronimo project.

 Way to go Shiva!!!

 The Apache Geronimo PMC

 ++Vamsi




Re: Messages are not being redelivered (JMS)

2008-06-25 Thread Kevan Miller


On Jun 25, 2008, at 6:30 AM, Mohammed Imran wrote:

I am experiencing problems with redelivery of messages in activemq/ 
geronimo it seems to not redeliver the message when a system  
exception occurs. I know that ActiveMQ has a max redelivery count,  
however the messages seem to stop being processed after 1-2  
attempts. I am not getting anywhere near the max redelivery count.


For completeness, Mohammed created a Jira opened for this. See -- 
https://issues.apache.org/jira/browse/GERONIMO-4153

--kevan



Re: geronimo v2 quartz plugin

2008-06-25 Thread jklcom99

Hi David,

That's a little advance for me.  I have basic knowledge on Maven and zero on
Geronimo plugins.
When will you put the later version of quartz out?


djencks wrote:
 
 
 On Jun 23, 2008, at 12:06 PM, jklcom99 wrote:
 

 Ok, can you show me the steps and what is involved to create a plugin?
 
 There are lots of examples of plugins to compare with: the directory  
 and roller plugins in plugins, the contents of the main server build  
 plugins directory, and the samples.
 
 I glanced really quickly at the quartz stuff and it looks like:
 1. update to current geronimo stuff, such as version 2.1.1.  Use  
 org.apache.geronimo.genesis/project-config/1.4/pom as the parent (I  
 may get a later version out soon, we'll see).  Prune unneeded stuff  
 out of the build such as repositories.  Basically get the build to work.
 2. in geronimo 2.1 and later, the geronimo-plugin.xml is generated by  
 the car-maven-plugin.  The format has also changed a lot.  So, you  
 should figure out what bits of the geronimo-plugin.xml are still  
 relevant and correct and get them into the appropriate part of the  
 pom.xml.
 
 There's some documentation here:
 http://cwiki.apache.org/GMOxDOC21/plugin-infrastructure.html
 http://cwiki.apache.org/GMOxDOC21/constructing-a-special-purpose-server-using-maven.html
 
 Let me know if this is starting you off at the wrong level.
 
 thanks
 david jencks
 



 djencks wrote:


 On Jun 19, 2008, at 2:32 PM, jklcom99 wrote:


 Can some one tell me if the quartz plugin from this link

 http://www.archivum.info/[EMAIL PROTECTED]/2008-05/
 msg00505.html is
 applicable for Geronimo 2.1?

 Definitely not.  However it should not be too hard to update.  I
 opened https://issues.apache.org/jira/browse/GERONIMO-4140 to track
 progress on this.  I probably won't have time myself to get to this
 soon but would be happy to give advice if you (or someone else) would
 like to work on it.

 thanks
 david jencks



 Thank you


 Kevan Miller wrote:


 On Jan 16, 2008, at 5:27 PM, Christian Malolepszy wrote:

 Helo all,

 is anyone working on a quartz plugin for geronimo 2?
 I neet the features of quartz to migrate my projects to geronimo2.

 Hi Christian,
 I don't recall any quartz plugin work for geronimo 2.0, only 1.1.
 Could be mistaken.

 Possible that with a little interest that somebody will have a
 look...

 --kevan



 -- 
 View this message in context:
 http://www.nabble.com/geronimo-v2-quartz-plugin-tp14897501s134p18018668.html
 Sent from the Apache Geronimo - Users mailing list archive at
 Nabble.com.





 -- 
 View this message in context:
 http://www.nabble.com/geronimo-v2-quartz-plugin-tp14897501s134p18076097.html
 Sent from the Apache Geronimo - Users mailing list archive at  
 Nabble.com.

 
 
 

-- 
View this message in context: 
http://www.nabble.com/geronimo-v2-quartz-plugin-tp14897501s134p18113960.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Clusering Configuration samples errors in branches/2.1 using Tomcat

2008-06-25 Thread Jason Warner
I took a look at the classloader being used.  It only contains one instance
of UniqueId in any of the parent classloaders.  I took a quick look at the
changes between Wadi 2.0-M10 and 2.0, and there is indeed a significant
amount of change.  In fact, this error stems from a class that didn't even
exist in 2.0-M10.  I'll keep looking to see if I can figure out what's going
on, but any suggestions of other possible issues would definitely not be
ignored :)

On Mon, Jun 23, 2008 at 2:45 PM, Jason Warner [EMAIL PROTECTED] wrote:

 Hi Kevan,

 Thanks for the reply.  I was able to deploy succesfully on 2.1.2-SNAPSHOT
 with Jetty just fine so it appears to be just Tomcat.  I'll follow your
 advice about using the debugger and post anything useful I come across.


 On Mon, Jun 23, 2008 at 2:37 PM, Kevan Miller [EMAIL PROTECTED]
 wrote:


 On Jun 23, 2008, at 12:16 PM, Jason Warner wrote:

 I've been messing around a little bit with clustering by following the
 directions for clustering configuration for jetty[1] but modifying the
 instructions to work with tomcat.  I've found that the sample app linked in
 the example deploys succesfully on the 2.1.1 release but not on the latest
 branches/2.1. A class cast exception is received when attempting to deploy
 the app[2].  It seems that 2.1.1 uses a milestone release of 2.0 rather than
 the full released version.  I updated 2.1.1 locally to use the full 2.0
 release of wadi, and that resulted in the same error I was seeing on
 branches/2.1.  Anybody have any thoughts on what could cause this or how to
 fix it?

 [1]
 http://cwiki.apache.org/GMOxDEV/clustering-configuration-for-jetty.html

 [2]

 12:00:33,876 ERROR [BasicServiceSpaceDispatcher] See nested
 org.codehaus.wadi.group.MessageExchangeException:
 java.lang.ClassCastException: cannot assign instance of
 org.apache.catalina.tribes.UniqueId to field
 org.codehaus.wadi.tribes.TribesPeer.uniqueId of type
 org.apache.catalina.tribes.UniqueId in instance of
 org.codehaus.wadi.tribes.TribesPeer
 at
 org.codehaus.wadi.servicespace.basic.TransformEnvelopeInterceptor.onInboundEnvelope(TransformEnvelopeInterceptor.java:46)
 at
 org.codehaus.wadi.group.impl.AbstractDispatcher.onInboundEnvelope(AbstractDispatcher.java:308)
 at
 org.codehaus.wadi.group.impl.AbstractDispatcher.onEnvelope(AbstractDispatcher.java:92)
 at
 org.codehaus.wadi.servicespace.basic.ServiceSpaceEndpoint.dispatch(ServiceSpaceEndpoint.java:49)
 at
 org.codehaus.wadi.group.impl.ServiceEndpointWrapper.dispatch(ServiceEndpointWrapper.java:50)
 at
 org.codehaus.wadi.group.impl.BasicEnvelopeDispatcherManager$DispatchRunner.run(BasicEnvelopeDispatcherManager.java:121)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
 at java.lang.Thread.run(Thread.java:613)
 Caused by: java.lang.ClassCastException: cannot assign instance of
 org.apache.catalina.tribes.UniqueId to field
 org.codehaus.wadi.tribes.TribesPeer.uniqueId of type
 org.apache.catalina.tribes.UniqueId in instance of
 org.codehaus.wadi.tribes.TribesPeer
 at
 java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2004)
 at
 java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1184)
 at
 java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1914)
 at
 java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
 at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
 at
 java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
 at
 java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
 at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
 at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
 at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
 at
 org.codehaus.wadi.servicespace.basic.BasicServiceSpaceEnvelopeHelper.transformInboundEnvelope(BasicServiceSpaceEnvelopeHelper.java:123)
 at
 org.codehaus.wadi.servicespace.basic.TransformEnvelopeInterceptor.onInboundEnvelope(TransformEnvelopeInterceptor.java:44)
 ... 8 more


 Hi Jason,
 Is the example working with Jetty? Or is it just 2.1.2-SNAPSHOT with
 Tomcat that is broken?

 I see there were changes to
 http://svn.codehaus.org/wadi/tags/2.0/wadi-core/src/main/java/org/codehaus/wadi/servicespace/basic/between
  2.0-M10 and 2.0. Seems to be a Classloader problem related to Wadi
 2.0. Suggest you use a debugger to inspect the Classloader being used to
 deserialize the UniqueId object. We seem to be loading UniqueId classes from
 two different Classloaders -- thus the ClassCastException. Once we figure
 out the two Classloaders being used, can start to sort out the
 inconsitencies...

 --kevan




 --
 

Re: Update MyFaces in Geronimo 2.1.1

2008-06-25 Thread DFrahm
So the 'Simple jar upgrade' method described there works even with jars 
like MyFaces that are defined as non-overridable due to the Java EE spec 
requirements?

- David Frahm




From:
Kevan Miller [EMAIL PROTECTED]
To:
user@geronimo.apache.org
Date:
06/24/2008 11:50 PM
Subject:
Re: Update MyFaces in Geronimo 2.1.1




On Jun 24, 2008, at 8:36 PM, David Jencks wrote:

I added some basic jar upgrade instructions at the end of

http://cwiki.apache.org/GMOxDOC21/plugin-infrastructure.html

Please let us know if this works and if the docs are comprehensible :-)

Cool. Thanks David. Hope it's ok, I made a few edits and added some 
specific instructions on how to add a file to the server's repository... 

--kevan



Re: Update MyFaces in Geronimo 2.1.1

2008-06-25 Thread David Jencks


On Jun 25, 2008, at 9:58 AM, [EMAIL PROTECTED] wrote:



So the 'Simple jar upgrade' method described there works even with  
jars like MyFaces that are defined as non-overridable due to the  
Java EE spec requirements?


upgrading a jar using artifact_aliases.properties changes the jar the  
entire geronimo server uses: it's more or less equivalent to applying  
a server patch or getting a minor server upgrade.  The spec prohibits  
applications from using their own jsf implementations, not from server  
vendors upgrading the server.  The non-overridable setting prevents  
you from supplying a different jsf implementation in your application,  
to implement this spec requirement.


hope this makes sense :-)
david jencks




- David Frahm



From:   Kevan Miller [EMAIL PROTECTED]
To: user@geronimo.apache.org
Date:   06/24/2008 11:50 PM
Subject:Re: Update MyFaces in Geronimo 2.1.1





On Jun 24, 2008, at 8:36 PM, David Jencks wrote:

I added some basic jar upgrade instructions at the end of

http://cwiki.apache.org/GMOxDOC21/plugin-infrastructure.html

Please let us know if this works and if the docs are  
comprehensible :-)


Cool. Thanks David. Hope it's ok, I made a few edits and added some  
specific instructions on how to add a file to the server's  
repository...


--kevan





Re: Update MyFaces in Geronimo 2.1.1

2008-06-25 Thread Jacek Laskowski
On Wed, Jun 25, 2008 at 6:58 PM,  [EMAIL PROTECTED] wrote:

 So the 'Simple jar upgrade' method described there works even with jars like
 MyFaces that are defined as non-overridable due to the Java EE spec
 requirements?

non-overridable from the application/module's point of view not
server. The plugin-infrastructure page describes the process of
replacing/overriding a jar in Geronimo repository. Applications still
cannot override classes/jars that are not overrideable.

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl


Re: Update MyFaces in Geronimo 2.1.1

2008-06-25 Thread Jacek Laskowski
On Wed, Jun 25, 2008 at 8:00 PM, David Jencks [EMAIL PROTECTED] wrote:

 hope this makes sense :-)

Nice timing! Did you know I'd send a response too and meant to compete
with it? ;-)

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl


Re: Update MyFaces in Geronimo 2.1.1

2008-06-25 Thread DFrahm
Thanks to both of you.  It makes sense -- plus it is the answer I was 
hoping for!

- David Frahm




From:
Jacek Laskowski [EMAIL PROTECTED]
To:
user@geronimo.apache.org
Date:
06/25/2008 01:02 PM
Subject:
Re: Update MyFaces in Geronimo 2.1.1



On Wed, Jun 25, 2008 at 8:00 PM, David Jencks [EMAIL PROTECTED] 
wrote:

 hope this makes sense :-)

Nice timing! Did you know I'd send a response too and meant to compete
with it? ;-)

Jacek

-- 
Jacek Laskowski
Notatnik Projektanta Java EE - http://www.JacekLaskowski.pl




Re: [ANNOUNCE] Welcome Shiva Kumar H R as the newest member of the Geronimo PMC

2008-06-25 Thread Alan D. Cabrera

Welcome aboard!


Regards,
Alan

On Jun 23, 2008, at 4:43 AM, Vamsavardhana Reddy wrote:


All,
Please join us in congratulating Shiva Kumar H R as the newest  
member of the Geronimo PMC. It's been great to have Shiva working  
with us as a committer on Geronimo. Even better to have him join us  
in providing oversight of the Geronimo project.


Way to go Shiva!!!

The Apache Geronimo PMC

++Vamsi




Deploying application-scoped db pool with an ear

2008-06-25 Thread purdticker

I'm trying to deploy an ear file with an application-scoped database pool. 
Here is what I've currently done, and below the == line are my
questions.

To get a deployment plan, I use the wizard in the geronimo console. 
Database Pools - Using the Geronimo database pool wizard

When I fill all the required options I have three options: Test Connection,
Skip Test and Deploy, or Skip Test and Show Plan.

I click Test Connection.

Test Result:
Connected toOracle Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit
Production With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production

Now I have two options: Deploy, or Show Plan.

I click on Show Plan.

Here are the instructions it gives me:

Add to EAR:
Instead of deploying as a top-level database pool, you can deploy this 
pool
as part of an EAR. To add a database pool to an EAR using this plan:

   1. Copy and paste the plan to a file
   2. Save the plan file to the top level of your EAR
   3. Copy the RAR file from
GERONIMO_HOME/\repository\org\tranql\tranql-connector-ra\1.4\tranql-connector-ra-1.4.rar
to the top level of your EAR
   4. Create a META-INF/geronimo-application.xml file in your EAR that has a
module entry like this (substituting the correct RAR file name and plan file
name):

application
   xmlns=http://geronimo.apache.org/xml/ns/j2ee/application-1.1;
  environment
moduleId
  artifactIdMyApplication/artifactId
/moduleId
  /environment
  module
connectorrar-file-name.rar/connector
alt-ddplan-file-name.xml/alt-dd
  /module
/application


=

Here are my questions:

1) Copy the RAR file from
GERONIMO_HOME/\repository\org\tranql\tranql-connector-ra\1.4\tranql-connector-ra-1.4.rar
to the top level of your EAR.  Is it always this
tranql-connector-ra-1.4.rar file?  Even if I'm using oracle?

2) I'm using Eclipse and the GEP.  I already have an
geronimo-application.xml file.  It starts off with app:application
xmlns:..
When I write in the module tags, do I also need to include the app:
namespace?  e.g. app:module/app:module

3)  I get the following error when deploying when I assume answers to
questions 1 and 2 are yes:

Distribution of module failed.  See log for details.
  Geronimo ear plan contains modules that aren't in the ear: false
  org.apache.geronimo.common.DeploymentException: Geronimo ear plan contains
modules that aren't in the ear: false
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules(EARConfigBuilder.java:893)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBuilder.java:402)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:295)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:226)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
at
org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:172)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown
Source)
at javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown
Source)
at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown
Source)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown
Source)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)

Re: Deploying application-scoped db pool with an ear

2008-06-25 Thread David Jencks


On Jun 25, 2008, at 5:26 PM, purdticker wrote:



I'm trying to deploy an ear file with an application-scoped database  
pool.

Here is what I've currently done, and below the == line are my
questions.

To get a deployment plan, I use the wizard in the geronimo console.
Database Pools - Using the Geronimo database pool wizard

When I fill all the required options I have three options: Test  
Connection,

Skip Test and Deploy, or Skip Test and Show Plan.

I click Test Connection.

Test Result:
	Connected toOracle Oracle9i Enterprise Edition Release 9.2.0.5.0 -  
64bit

Production With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production

Now I have two options: Deploy, or Show Plan.

I click on Show Plan.

Here are the instructions it gives me:

Add to EAR:
	Instead of deploying as a top-level database pool, you can deploy  
this pool

as part of an EAR. To add a database pool to an EAR using this plan:

  1. Copy and paste the plan to a file
  2. Save the plan file to the top level of your EAR
  3. Copy the RAR file from
GERONIMO_HOME/\repository\org\tranql\tranql-connector-ra\1.4\tranql- 
connector-ra-1.4.rar

to the top level of your EAR
  4. Create a META-INF/geronimo-application.xml file in your EAR  
that has a
module entry like this (substituting the correct RAR file name and  
plan file

name):

application
  xmlns=http://geronimo.apache.org/xml/ns/j2ee/application-1.1;
 environment
   moduleId
 artifactIdMyApplication/artifactId
   /moduleId
 /environment
 module
   connectorrar-file-name.rar/connector
   alt-ddplan-file-name.xml/alt-dd
 /module
/application


=

Here are my questions:

1) Copy the RAR file from
GERONIMO_HOME/\repository\org\tranql\tranql-connector-ra\1.4\tranql- 
connector-ra-1.4.rar

to the top level of your EAR.  Is it always this
tranql-connector-ra-1.4.rar file?  Even if I'm using oracle?
no, you should use whatever rar you picked at the beginning.  I'm not  
sure if we make this very obvious, but I assume you picked one of the  
oracle rars.



2) I'm using Eclipse and the GEP.  I already have an
geronimo-application.xml file.  It starts off with app:application
xmlns:..
When I write in the module tags, do I also need to include the  
app:

namespace?  e.g. app:module/app:module


We should be fixing up the namespace for you.  It won't hurt to use  
the correct namespace anyway.


This is a remarkably obtuse error message.  Does using the correct rar  
help at all?


thanks
david jencks




3)  I get the following error when deploying when I assume answers to
questions 1 and 2 are yes:

Distribution of module failed.  See log for details.
 Geronimo ear plan contains modules that aren't in the ear: false
 org.apache.geronimo.common.DeploymentException: Geronimo ear plan  
contains

modules that aren't in the ear: false
at
org 
.apache 
.geronimo 
.j2ee.deployment.EARConfigBuilder.addModules(EARConfigBuilder.java: 
893)

at
org 
.apache 
.geronimo 
.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBuilder.java: 
402)

at
org 
.apache 
.geronimo 
.j2ee 
.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java: 
295)

at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:226)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org 
.apache 
.geronimo 
.gbean 
.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
34)

at
org 
.apache 
.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)

at
org 
.apache 
.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)

at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
239)
 	at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java: 
342)

at sun.reflect.GeneratedMethodAccessor122.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org 
.apache 
.geronimo 
.gbean 
.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java: 
34)

at
org 
.apache 
.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)

at
org 
.apache 
.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)

at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java: 
239)

at
org 
.apache 
.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java: 
172)
 	at  
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown

Source)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
at 

Re: Deploying application-scoped db pool with an ear

2008-06-25 Thread purdticker


djencks wrote:
 
 no, you should use whatever rar you picked at the beginning.  I'm not  
 sure if we make this very obvious, but I assume you picked one of the  
 oracle rars.
 

Actually, this is where I'm confused.  When was using the wizard, I did not
use any rar.  I used a jdbc jar file which I downloaded from oracle's site.
http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html
ojdbc14.jar


djencks wrote:
 
 We should be fixing up the namespace for you.  It won't hurt to use  
 the correct namespace anyway.

How do I fix the namespace?  Prepend app: before module and subelements?


djencks wrote:
 
 This is a remarkably obtuse error message.  Does using the correct rar  
 help at all?
 
Which rar is the correct rar?  Do I need it?  The wizard never asked for a
rar.
-- 
View this message in context: 
http://www.nabble.com/Deploying-application-scoped-db-pool-with-an-ear-tp18124359s134p18125829.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Deploying application-scoped db pool with an ear

2008-06-25 Thread Jarek Gawor
 We should be fixing up the namespace for you.  It won't hurt to use
 the correct namespace anyway.

 How do I fix the namespace?  Prepend app: before module and subelements?

Can you send the actual deployment descriptor which was giving you problems?

Jarek