Re: Caused by: java.lang.NoClassDefFoundError: org/springframework/beans/factory/InitializingBean
Hi a, that should normally work assuming you have the tag in your geronimo-web.xml deployment plan and your spring jars are in the web-inf/lib subdirectory. If both conditions are true are you at liberty to email me a non-proprietary version of your war file and I'll see if I can see anything else that might be specified incorrectly ?? a wrote: hi all, I'm trying to run web app under geronimo.. I'm getting this error , but I have all spring libraries in web-inf/ Caused by: java.lang.NoClassDefFoundError: org/springframework/beans/factory/InitializingBean I tried this: org.springframework but it didn t help either. geronimo 2.1.1. How do I fix it? thanks. -- Thanks, Tim McConnell
Re: [ANNOUNCE] Welcome Manu George as a new Geronimo Committer
Congratulations Manu !! Donald Woods wrote: All, The Apache Geronimo PMC is pleased to announce that Manu George has accepted our invitation to become an Apache Geronimo committer. Congratulations Manu and welcome aboard! Thanks, Donald Woods -- Thanks, Tim McConnell
Re: Stateful SessionBean has timed-out
On Sep 19, 2008, at 12:32 AM, rbaumhof wrote: So, i think the reason might be that the timeouts for the session and the stateful ejb's may differ. Any hints if i can correct this by mysel? The stateful bean timeout defaults to 20 minutes, but you can set the timeout to anything you like. In the the config.xml, find the "EJBNetworkService" gbean and add this gbean next to it: TimeOut=20 PoolSize=1000 BulkPassivate=100 Each property is as follows: TimeOut Specifies the time to wait between invocations. This value is measured in minutes. A value of 5 would result in a time-out of 5 minutes between invocations. A value of zero would mean no timeout. Default value is 20. PoolSize Specifies the size of the bean pools for this stateful SessionBean container. Default value is 1000. BulkPassivate Property name that specifies the number of instances to passivate at one time when doing bulk passivation. Default value is 100. -David
Re: SOS! static variable not work under 2.0.2 !!
On Sep 19, 2008, at 2:44 AM, Y.H. wrote: Dear sir, Whatever using singleton pattern or static variable, Geronimo could not access correctly like static variable or singleton behavior! 1. I just used a Class which declaired a public static String STATICDATA. public class TestClass{ public static String STATICDATA; } 2. a AServlet in AWeb application: TestClass.STATICDATA="abc"; the in BServlet in AWeb application can get "abc" from TestClass.STATICDATA. 3. BUT, a CServlet in BWeb application tried to get value from TestClass.STATICDATA. the result is null GOD! everything will be ok in WebSphere/Tomcat/WebLog, but just Geronimo not. Any help will be appreciated. I'm extremely surprised that this works in any app server other than jboss unless you deploy your singleton class to a shared classloader such as a "lib" directory of the server. Use of singletons in javaee apps is strongly frowned upon because they are not supposed to work between applications -- separate applications are supposed to have separate classloaders, resulting in separate copies of the singleton class, and the behavior you are seeing. In geronimo there are a lot of options for getting only one copy of the singleton class, if that is what you want: -- easiest is to make one web application depend on the other one. When you deploy AWeb, geronimo will tell you the configID of the resulting plugin/module/classloader. List this as a dependency in the geronimo plan for BWeb. Otherwise you will need to package the singleton class separately from the web apps and either: -- put the jar in shared/lib and include a dependency on the shared classloader in each web app (the existence of the shared classloader is a nasty hack IMO) -- put the jar in an appropriate place in the geronimo repository, construct a service module depending on this jar, and have each web app depend on this service module. We do this in geronimo in a few places for e.g. the javaee specs. Having one app depend on the other will probably work fine for you. BTW, I think you need to make the variable volatile or synchronize access to it to avoid problems with thread safety. thanks david jencks -- View this message in context: http://www.nabble.com/SOS%21-static-variable-not-work-under-2.0.2-%21%21-tp19569324s134p19569324.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: offline deploy org.apache.geronimo.gbean.InvalidConfigurationException: Could not load class org.apache.geronimo.security.keystore.FileKeystoreInstance
I will give it a try when I get a chance. Has IBM JRE been tested with Geronimo? Thanks Donald Woods-2 wrote: > > Do you get the same results with the Sun 1.6.0_07 JDK? > > > -Donald > > > jklcom99 wrote: >> This might have manifested from the fact that we had to clear out the >> manifest classpath due the invalid jar exception during deployment and >> merging the jms module. >> Thus, we're in need of these two fixes >> https://issues.apache.org/jira/browse/GERONIMO-3316 >> https://issues.apache.org/jira/browse/OPENEJB-889 >> >> Yes, keystor settings are set in config.xml and using IBM jre1.6.0sr1 >> >> Thanks >> >> >> Have you modified the default keystore settings in config.xml? >> keystoreFile, keystorePass, keystoreType >> Or modified/deleted the default keystore? >> var/security/keystores/geronimo-default >> >> What services is your app using - EJBs, security, connectors, jms, app >> client, ? >> >> Which JDK are you using? >> >> >> -Donald >> >> >> > > -- View this message in context: http://www.nabble.com/offline-deploy-org.apache.geronimo.gbean.InvalidConfigurationException%3A-Could-not-load-class-org.apache.geronimo.security.keystore.FileKeystoreInstance-tp19414808s134p19571732.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: SOS! static variable not work under 2.0.2 & 2.1.1 !!
Y.H. wrote: > > Dear sir, > Whatever using singleton pattern or static variable, Geronimo could not > access correctly like static variable or singleton behavior! > > 1. I just used a Class which declaired a public static String > STATICDATA. > public class TestClass{ > public static String STATICDATA; > } > > 2. a AServlet in AWeb application: TestClass.STATICDATA="abc"; the in > BServlet in AWeb application can get "abc" from TestClass.STATICDATA. > > 3. BUT, a CServlet in BWeb application tried to get value from > TestClass.STATICDATA. the result is null > > GOD! everything will be ok in WebSphere/Tomcat/WebLog, but just Geronimo > not. > > Any help will be appreciated. > > -- View this message in context: http://www.nabble.com/SOS%21-static-variable-not-work-under-2.0.2-%21%21-tp19569324s134p19569335.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
SOS! static variable not work under 2.0.2 !!
Dear sir, Whatever using singleton pattern or static variable, Geronimo could not access correctly like static variable or singleton behavior! 1. I just used a Class which declaired a public static String STATICDATA. public class TestClass{ public static String STATICDATA; } 2. a AServlet in AWeb application: TestClass.STATICDATA="abc"; the in BServlet in AWeb application can get "abc" from TestClass.STATICDATA. 3. BUT, a CServlet in BWeb application tried to get value from TestClass.STATICDATA. the result is null GOD! everything will be ok in WebSphere/Tomcat/WebLog, but just Geronimo not. Any help will be appreciated. -- View this message in context: http://www.nabble.com/SOS%21-static-variable-not-work-under-2.0.2-%21%21-tp19569324s134p19569324.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Stateful SessionBean has timed-out
Hallo, i'am using a paginator in my web application to save query result lists. The paginator is designed as Stateful Session Bean. There is only one paginator ejb for every user session - what means: all dialogs use the same paginator object. Nearly all dialogs save query results within the paginator, but some don't do. So long, all works fine!!! Now the problem. Sometimes - i get the following error: EXCEPTION: javax.ejb.NoSuchEJBException: Stateful SessionBean has timed-out Root Cause: java.rmi.NoSuchObjectException : Stateful SessionBean has timed-out This is always the time when the dialog is inactive and waiting a longer time for the next input from the user (e.x. when testing and correcting errors, i sometimes work with eclipse ide, and then want to have a look again at the data in the application - than the error occurs). So, i think the reason might be that the timeouts for the session and the stateful ejb's may differ. Any hints if i can correct this by mysel? thanks in advance -- View this message in context: http://www.nabble.com/Stateful-SessionBean-has-timed-out-tp19567529s134p19567529.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.