spring configuration to get datasource via jndi from geronimo

2008-09-05 Thread aaaaa
hi all, I'm trying to get geronimo datasource via jndi to use in junit test like: Code: ... UserDAOTest extends AbstractDependencyInjectionSpringContextTests{ ... protected DataSource dataSource; public UserDAOTest() { setPopulateProtectedVariables(true); } ... how

Unable to deserialize GBeanData

2008-09-05 Thread Maximilian123
Hi, every time I want to start the geronimo server I get the following error. Does someone know what this error message means. Thank you in advance. Maximilian 14:24:14,234 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state:

Re: Transactions are commited only when Server shuts down.

2008-09-05 Thread MichaelHaeublein
Lin Sun-2 wrote: Hi, Since you picked 'Oracle Thin', you are using the generic tranql wrapper. Ah, ok... didn't know that. But how do you specify the commitBeforeAutocommit=true? If the admin console doesn't allow you to configure the commitBeforeAutocommit property, you 'll have to

RE: retrieve custom principal from custom loginmodule in servlet

2008-09-05 Thread Marco Laponder
Didn't quite succeed in this method. The getUserPrincipal always return met a Principal of type org.apache.geronimo.jetty6.JAASJettyPrincipal. Solution which I now use is getting the subject of that object and looping over the principals in that subject to find my custom principal. It works but I

too many LoginModule requests ?

2008-09-05 Thread Marco Laponder
Hi All, I have created a custom login module for the user authentication, which works ok (I can login as expected). I was surprised by the number of calls to the login module. Even if I successfully logged in on a previous request, a next request on the same context did again call my login

Re: Unable to deserialize GBeanData

2008-09-05 Thread David Jencks
It looks like somehow you've altered your local geronimo copy to use a different version of the jacc spec jar than the web console was deployed with. I don't have any ideas how this might have happened. Or perhaps you have a console compiled for a different geronimo version??? thanks

Re: Transactions are commited only when Server shuts down.

2008-09-05 Thread David Jencks
On Sep 5, 2008, at 8:51 AM, MichaelHaeublein wrote: Lin Sun-2 wrote: Hi, Since you picked 'Oracle Thin', you are using the generic tranql wrapper. Ah, ok... didn't know that. But how do you specify the commitBeforeAutocommit=true? If the admin console doesn't allow you to configure

Re: retrieve custom principal from custom loginmodule in servlet

2008-09-05 Thread David Jencks
On Sep 5, 2008, at 8:54 AM, Marco Laponder wrote: Didn't quite succeed in this method. The getUserPrincipal always return met a Principal of type org.apache.geronimo.jetty6.JAASJettyPrincipal. Solution which I now use is getting the subject of that object and looping over the principals in

Re: Unable to deserialize GBeanData

2008-09-05 Thread Maximilian123
I did not alter anything. djencks wrote: It looks like somehow you've altered your local geronimo copy to use a different version of the jacc spec jar than the web console was deployed with. I don't have any ideas how this might have happened. Or perhaps you have a console compiled

RE: too many LoginModule requests ?

2008-09-05 Thread Marco Laponder
Thanks for you quick response David ! I am using BASIC auth so it is probably what you expect. Is there any recommendation you could do to prevent it ? Or should I remember it as a http session variable ? I really don't want to do the complete validate on each request (especially because I am

Re: Transactions are commited only when Server shuts down.

2008-09-05 Thread Lin Sun
It has been quite a while since I configured it. I 've copied what we used in daytrader oracle plan for your reference - config-property-setting name=UserNametrade/config-property-setting config-property-setting

Re: Unable to deserialize GBeanData

2008-09-05 Thread Maximilian123
I could start the server a few days ago. djencks wrote: It looks like somehow you've altered your local geronimo copy to use a different version of the jacc spec jar than the web console was deployed with. I don't have any ideas how this might have happened. Or perhaps you have a

Could not access contents of a connector

2008-09-05 Thread Juergen Weber
I am still struggling to get the Using WebSphere MQ with WebSphere Application Server Community Edition sample from http://www.ibm.com/developerworks/websphere/library/techarticles/0601_balachandar/0601_balachandar.html running on Geronimo 2.1.2. Have fought now for some long hours with the

Re: Restricting webapp access to ports or IP addresses?

2008-09-05 Thread Lin Sun
Not sure if it would work for 2.0.2. I think it has been verified to work with 2.1.2 server(tomcat assembly). The sample is here in our svn - https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1/samples/app-per-port/ Here is some instruction on building samples -

Re: Could not access contents of a connector

2008-09-05 Thread Lin Sun
I wonder if that article is too outdated as it said written in Jan 2006. From what I read on user list, there was a user trying to get Websphere MQ resource adapter (called wmq.jmsra.rar) deployed onto geronimo, and we made a fix (https://issues.apache.org/jira/browse/GERONIMO-4131) in 2.1.2 to

Include samples into Geronimo download packages

2008-09-05 Thread Juergen Weber
Creating or modifying deployment plans is quite often a real nightmare. Usually you try to find a sample to adopt from. If only the samples were current .. So I suggest to include all samples (from http://cwiki.apache.org/GMOxSAMPLES/index.html) that are supposed to run on a given Geronimo

Re: Could not access contents of a connector

2008-09-05 Thread Juergen Weber
I tried that adapter, but unfortunately it does not seem to support MQ servers on z/OS. The WebSphere MQ resource adapter is supported on all WebSphere MQ Version 6.0 platforms except z/OS. http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/uj40010_.htm

A little help with openejb-jar.xml

2008-09-05 Thread ericp56
I have an EJB that is successfully injected into my web service application: package com.abc.ivr.scheduler; @Stateless public class CallScheduler implements ICallScheduler it contains an EJB annotation for another EJB: @EJB private SysErrorEmail sysErrorEmail; This ejb is in the same

Re: Include samples into Geronimo download packages

2008-09-05 Thread Juergen Weber
Joe Bohn wrote: Juergen, Thanks for being vocal about samples. This is definitely an area that needs some love in Geronimo. Juergen Weber wrote: Creating or modifying deployment plans is quite often a real nightmare. Usually you try to find a sample to adopt from. If only the

Difference in environments?

2008-09-05 Thread ericp56
Hello, I am running Windows XP, Geronimo 2.1.2 and Eclipse Ganymede. I have some applications playing nicely together: ProjectEJB - contains my EJBs ProjectWeb - contains Web services and web pages, injecting the Project EJBs. I export the EJB Jar and Web War, and deploy them on my Geronimo

Re: A little help with openejb-jar.xml

2008-09-05 Thread David Blevins
On Sep 5, 2008, at 7:50 AM, ericp56 wrote: I have an EJB that is successfully injected into my web service application: package com.abc.ivr.scheduler; @Stateless public class CallScheduler implements ICallScheduler it contains an EJB annotation for another EJB: @EJB private

Re: Difference in environments?

2008-09-05 Thread David Blevins
On Sep 5, 2008, at 9:17 AM, ericp56 wrote: Hello, I am running Windows XP, Geronimo 2.1.2 and Eclipse Ganymede. I have some applications playing nicely together: ProjectEJB - contains my EJBs ProjectWeb - contains Web services and web pages, injecting the Project EJBs. I export the EJB

Re: Unable to deserialize GBeanData

2008-09-05 Thread Kevan Miller
On Sep 5, 2008, at 9:50 AM, Maximilian123 wrote: I could start the server a few days ago. Really strange. Let's check a few things. Can you run the following commands and report the results? Just looking to see if anything has been corrupted. $ ls -l

Re: too many LoginModule requests ?

2008-09-05 Thread David Jencks
On Sep 5, 2008, at 9:30 AM, Marco Laponder wrote: Thanks for you quick response David ! I am using BASIC auth so it is probably what you expect. Is there any recommendation you could do to prevent it ? Or should I remember it as a http session variable ? I really don't want to do the

Re: A little help with openejb-jar.xml

2008-09-05 Thread ericp56
Argh! I should have caught that. Thanks! -- View this message in context: http://www.nabble.com/A-little-help-with-openejb-jar.xml-tp19332950s134p19342504.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.