How to use JAAS with JSF , best practice
I have got an application where after a successful login the user maybe must select a role (the user may be an administrator and a standard user). So, a navigation to a role-selection-page must be performed. We are using JSF pages for the view component, so we have an easy and powerful navigation mechanism. >From the web application security example (see >http://cwiki.apache.org/GMOxDOC20/web-application-security-sample.html) we >know a very good and easy way of using JAAS authentication with a geronimo >security realm. This example uses standard servlet authentication procedure >for login at web container. This procedure requires a simple html page with >the j_security_check action. So, if we are using JSF pages we are loosing a >lot of the powerful JSF navigation features. So my attempt was to use a JSF >page with a JSF backing bean which performs the step by itself using the >LoginContext.login("my-security-realm",myCallBackHandler) method. This also >works fine, but the authentication is only done with the ejb container. Tomcat >is not informed about the user login. So the secure pages are still >restricted. Does anybody know a better way of integrating JAAS with JSF with the purpose of not loosing the JSF navigation features?? Thanks in advance!! _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=0066
Re: Unclear steps in tutorial "Stateless Session Bean"
Hi, I have downloaded the file , and use the console to deploy it. No luck , same error. I am a total newbie , not sure any futher steps that I can try to do . Hope that you can give a futher guidance , thanks. Rgds, CG On Wed, Mar 19, 2008 at 1:39 AM, Ashish Jain <[EMAIL PROTECTED]> wrote: > Hi CG, > I just now executed the complete tutorial and found no problems with > StatelessSessionEJB.jar. I am attaching the recently created > StatelessSessionEJB.jar. Have a look at it and compare it with the one you > have created > > Hope it helps > > Thanks > Ashish > > > > On Tue, Mar 18, 2008 at 9:09 PM, CG <[EMAIL PROTECTED]> wrote: > > Hi Ashish, > > Thanks for your reply. > > > > I have updated the geronimo-web.xml and openejb-jar.xml, and reexport > > the archieve, and deploy using the console. > > > > However, the problem still there when I deploy StatelessSessionEJB.jar > > (ApplicationClient.war no problem) > > still the dependency problem .. > > > > need your guidance , thanks in advance. > > > > Error message: > > > > > > Caused by: > org.apache.geronimo.kernel.repository.MissingDependencyException: > > Missing dependency: console.dbpool/jdbc%2Fuserds// > >at > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:111) > >at > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:104) > >at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds(SimpleConfigurationManager.java:473) > >at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst(SimpleConfigurationManager.java:431) > >at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:296) > >... 21 more > > > > > > > > > > > > > > > > > > On Tue, Mar 18, 2008 at 11:09 PM, Ashish Jain <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > Thanks for bringing this forward. The tutorial has been updated to > reflect > > > the final geronimo-web.xml and openejb-jar.xml. > > > > > > Thanks > > > Ashish > > > > > > > > > > > > On Tue, Mar 18, 2008 at 8:26 PM, Ashish Jain <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > Ans1: openejb-jar.xml seems to be correct. openejb-jar.xml for the > > > application should look like this > > > > openejb-jar.xml > > > > > > > > > > > > http://www.openejb.org/xml/ns/openejb-jar-2.2"; > > > 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-1.2"; > > > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2";> > > > > > > > > > > > > > > > > console.dbpool > > > > jdbc%2Fuserds > > > > > > > > > > > > > > > > default > > > > StatelessSessionEJB > > > > 1.0 > > > > car > > > > > > > > > > > > > > > > > > > > I hope you have followed all the steps and created a datasource as > > > suggested by the tutorial. > > > > > > > > Ans2: geronimo-web.xml is automatically created once you have your > > > environment set up with geronimo eclipse plugin. You need not create > one. > > > > > > > > geronimo-web.xml > > > > > > > > > > > > http://geronimo.apache.org/xml/ns/j2ee/web-1.1"; > > > xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"; > > > xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"; > > > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1";> > > > > > > > > > > > > > > > > default > > > > ApplicationClient > > > > > > > > 1.0 > > > > car > > > > > > > > > > > > > > > > > > > > default > > > > StatelessSessionEJB > > > > 1.0 > > > > car > > > > > > > > > > > > > > > > /ApplicationClient > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Tue, Mar 18, 2008 at 5:55 PM, CG <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > > > I am now trying the tutorial "Stateless Session Bean" > > > > > > > > > http://cwiki.apache.org/GMOxDOC21/stateless-session-bean.html#StatelessSessionBean-DeployandRun > > > > > > > > > > And I am stuck at section "Few more configurations", where need to > > > > > configure dependencies because the steps are a bit unclear. > > > > > I try to follow but get the following error which seems like is > caused > > > > > by the dependecies configuration > > > > > Hope that somebody can help . thanks. > > > > > > > > > > [error] > > > > > Caused by: > > > org.apache.geronimo.kernel.repository.MissingDependencyException: > > > > > Missing dependency: console.dbpool/jdbc%2Fuserds// > > > > >at > > > > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:111) > > > > >at >
Re: Error while using Plan creator in Geronimo 2.1
I could correct this error, When I am trying to deploy the application using Geronimo Console, it is successfully deploying without any errors shown on the command prompt. But when I am trying to run the application, I am getting the following error:- java.lang.NullPointerException at org.apache.catalina.realm.RealmBase.init(RealmBase.java:1330) at org.apache.catalina.realm.RealmBase.start(RealmBase.java:1030) at org.apache.catalina.realm.MemoryRealm.start(MemoryRealm.java:282) at ControllerServlet.doGet(ControllerServlet.java:1703) at ControllerServlet.doPost(ControllerServlet.java:2949) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:353) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) Can you provide any help here? Thanks Remya remya wrote: > > > When I am trying to generate a plan using the Plan Creator in Geronimo > 2.1, I am getting the following error in the command prompt: > > > 13:42:58,536 ERROR [GetArchiveHandler] Illegal character in path at index > 18: file:/C:/Documents and > Settings/Administrator/Desktop/test/geronimo-tomcat6-javaee > 5-2.1/var/temp/geronimo-planCreator35318.tmpdir/piXserve 2.war > java.net.URISyntaxException: Illegal character in path at index 18: > file:/C:/Documents and > Settings/Administrator/Desktop/test/geronimo-tomcat6-javaee5-2.1/var/temp/geronimo-planCreator35318.tmpdir/piXserve > 2.war > at java.net.URI$Parser.fail(Unknown Source) > at java.net.URI$Parser.checkChars(Unknown Source) > at java.net.URI$Parser.parseHierarchical(Unknown Source) > at java.net.URI$Parser.parse(Unknown Source) > at java.net.URI.(Unknown Source) > at java.net.URL.toURI(Unknown Source) > at > org.apache.geronimo.console.configcreator.JSR88_Util.createApplicationInfo(JSR88_Util.java:132) > at > org.apache.geronimo.console.configcreator.JSR88_Util.parseWarReferences(JSR88_Util.java:144) > at > org.apache.geronimo.console.configcreator.GetArchiveHandler.actionAfterView(GetArchiveHandler.java:90) > at > org.apache.geronimo.console.MultiPagePortlet.processAction(MultiPagePortlet.java:114) > at > org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218) > at > org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:145) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) > at > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557) > at > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481) > at > org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167) > at > org.apache.pluto.core.DefaultPortletInvokerService.action(DefaultPortletInvokerService.java:85) > at > org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:219) > at > org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:112) > at > org.apache.pl
Re: Error while using Plan creator in Geronimo 2.1
I'd guess that the plan creator doesn't work if the path to geronimo has spaces in it. Generally since windows doesn't handle reasonably long file names you have to install geronimo in something like C:/g for it to work well. david jencks On Mar 18, 2008, at 2:56 PM, remya wrote: When I am trying to generate a plan using the Plan Creator in Geronimo 2.1, I am getting the following error in the command prompt: 13:42:58,536 ERROR [GetArchiveHandler] Illegal character in path at index 18: file:/C:/Documents and Settings/Administrator/Desktop/test/geronimo-tomcat6-javaee 5-2.1/var/temp/geronimo-planCreator35318.tmpdir/piXserve 2.war java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/Administrator/Desktop/test/geronimo-tomcat6-javaee5-2.1/ var/temp/geronimo-planCreator35318.tmpdir/piXserve 2.war at java.net.URI$Parser.fail(Unknown Source) at java.net.URI$Parser.checkChars(Unknown Source) at java.net.URI$Parser.parseHierarchical(Unknown Source) at java.net.URI$Parser.parse(Unknown Source) at java.net.URI.(Unknown Source) at java.net.URL.toURI(Unknown Source) at org.apache.geronimo.console.configcreator.JSR88_Util.createApplication Info(JSR88_Util.java:132) at org.apache.geronimo.console.configcreator.JSR88_Util.parseWarReference s(JSR88_Util.java:144) at org.apache.geronimo.console.configcreator.GetArchiveHandler.actionAfte rView(GetArchiveHandler.java:90) at org.apache.geronimo.console.MultiPagePortlet.processAction (MultiPagePortlet.java:114) at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218) at org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:145) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 713) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke (ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.doInclude (ApplicationDispatcher.java:557) at org.apache.catalina.core.ApplicationDispatcher.include (ApplicationDispatcher.java:481) at org.apache.pluto.core.DefaultPortletInvokerService.invoke (DefaultPortletInvokerService.java:167) at org.apache.pluto.core.DefaultPortletInvokerService.action (DefaultPortletInvokerService.java:85) at org.apache.pluto.core.PortletContainerImpl.doAction (PortletContainerImpl.java:219) at org.apache.pluto.driver.PortalDriverServlet.doGet (PortalDriverServlet.java:112) at org.apache.pluto.driver.PortalDriverServlet.doPost (PortalDriverServlet.java:158) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 713) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:175) at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke (DefaultSubjectValve.java:56) at org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:525) at org.apache.geronimo.tomcat.GeronimoStandardContext $SystemMethodValve.invoke(GeronimoStandardContext.java:396) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke (GeronimoBeforeAfterValve.java:47) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:563) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Unknown Source) Can anyone help me out to clear this error? Thanks Remya -- View this message in context: http://www.nabble.com/Error-while- using-Plan-creator-in-Geronimo-2.1-tp16131501s134p16131501.html Sent from the Apache Geronimo - Users mailing list
Error while using Plan creator in Geronimo 2.1
When I am trying to generate a plan using the Plan Creator in Geronimo 2.1, I am getting the following error in the command prompt: 13:42:58,536 ERROR [GetArchiveHandler] Illegal character in path at index 18: file:/C:/Documents and Settings/Administrator/Desktop/test/geronimo-tomcat6-javaee 5-2.1/var/temp/geronimo-planCreator35318.tmpdir/piXserve 2.war java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/Administrator/Desktop/test/geronimo-tomcat6-javaee5-2.1/var/temp/geronimo-planCreator35318.tmpdir/piXserve 2.war at java.net.URI$Parser.fail(Unknown Source) at java.net.URI$Parser.checkChars(Unknown Source) at java.net.URI$Parser.parseHierarchical(Unknown Source) at java.net.URI$Parser.parse(Unknown Source) at java.net.URI.(Unknown Source) at java.net.URL.toURI(Unknown Source) at org.apache.geronimo.console.configcreator.JSR88_Util.createApplicationInfo(JSR88_Util.java:132) at org.apache.geronimo.console.configcreator.JSR88_Util.parseWarReferences(JSR88_Util.java:144) at org.apache.geronimo.console.configcreator.GetArchiveHandler.actionAfterView(GetArchiveHandler.java:90) at org.apache.geronimo.console.MultiPagePortlet.processAction(MultiPagePortlet.java:114) at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:218) at org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:145) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481) at org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167) at org.apache.pluto.core.DefaultPortletInvokerService.action(DefaultPortletInvokerService.java:85) at org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:219) at org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:112) at org.apache.pluto.driver.PortalDriverServlet.doPost(PortalDriverServlet.java:158) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:396) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) Can anyone help me out to clear this error? Thanks Remya -- View this message in context: http://www.nabble.com/Error-while-using-Plan-creator-in-Geronimo-2.1-tp16131501s134p16131501.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: (Please Reply urgently help needed) How to configure Session Bean Pool Size
Hi Manu, Please tell me what is the default pool size of Geronimo for stateless and statefull session bean. Earlier reply will be appreciated. greetings, Puneet puneetjain wrote: > > Hi Manu, > > Thanks a lot for your help. I desperately needed for that. > > Greetings, > Puneet > > > > manucet wrote: >> >> Hi Puneet, >> Currently in Geronimo you only have a single container each >> for Stateless and Stateful >> Session beans and in openejb(EJB provider in geronimo) the pool size >> is set per container. So you can set only a pool size for all >> stateless beans and another for all stateful beans. For this you need >> to modify config.xml. Change the entry for module >> org.apache.geronimo.configs/openejb/2.2-SNAPSHOT/car as given below. >> The config.xml can be found in /var/config directory. >> Please note that the config.xml should be changed when the server is >> not running. >> >> >> >> >> ${OpenEJBPort + >> PortOffset} >> ${ServerHostname} >> >> >> PoolSize=200 >> >> >> PoolSize=2000 >> >> >> >> The above will result in all stateless beans having a pool size of 200 >> and all stateful beans having a pool size of 2000 >> >> Regards >> Manu >> On Tue, Mar 18, 2008 at 11:17 PM, puneetjain <[EMAIL PROTECTED]> >> wrote: >>> >>> >>> >>> puneetjain wrote: >>> > >>> > Hi, >>> > >>> > I am new to Geronimo Application Server. >>> > I have written a sample application which contains one Session Bean >>> in it. >>> > I need to configure the session bean pool size in geronimo. Will >>> anyone >>> > help me to configure the session bean pool size in geronimo >>> application >>> > server. I am deploying my ear file without deployment plan. >>> > >>> > Environment: >>> > >>> > Geronimo version 2.0.2 >>> > EJB version: 3.0 >>> > >>> > Any reply will be appreciate. >>> > >>> > Thanks, >>> > Puneet >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/How-to-configure-Session-Bean-Pool-Size-tp16123206s134p16126775.html >>> Sent from the Apache Geronimo - Users mailing list archive at >>> Nabble.com. >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/How-to-configure-Session-Bean-Pool-Size-tp16123206s134p16130642.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: (Please Reply urgently help needed) How to configure Session Bean Pool Size
Hi Manu, Thanks a lot for your help. I desperately needed for that. Greetings, Puneet manucet wrote: > > Hi Puneet, > Currently in Geronimo you only have a single container each > for Stateless and Stateful > Session beans and in openejb(EJB provider in geronimo) the pool size > is set per container. So you can set only a pool size for all > stateless beans and another for all stateful beans. For this you need > to modify config.xml. Change the entry for module > org.apache.geronimo.configs/openejb/2.2-SNAPSHOT/car as given below. > The config.xml can be found in /var/config directory. > Please note that the config.xml should be changed when the server is > not running. > > > > > ${OpenEJBPort + PortOffset} > ${ServerHostname} > > > PoolSize=200 > > > PoolSize=2000 > > > > The above will result in all stateless beans having a pool size of 200 > and all stateful beans having a pool size of 2000 > > Regards > Manu > On Tue, Mar 18, 2008 at 11:17 PM, puneetjain <[EMAIL PROTECTED]> > wrote: >> >> >> >> puneetjain wrote: >> > >> > Hi, >> > >> > I am new to Geronimo Application Server. >> > I have written a sample application which contains one Session Bean in >> it. >> > I need to configure the session bean pool size in geronimo. Will >> anyone >> > help me to configure the session bean pool size in geronimo >> application >> > server. I am deploying my ear file without deployment plan. >> > >> > Environment: >> > >> > Geronimo version 2.0.2 >> > EJB version: 3.0 >> > >> > Any reply will be appreciate. >> > >> > Thanks, >> > Puneet >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-configure-Session-Bean-Pool-Size-tp16123206s134p16126775.html >> Sent from the Apache Geronimo - Users mailing list archive at >> Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/How-to-configure-Session-Bean-Pool-Size-tp16123206s134p16128948.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: HOWL exception
On Mar 14, 2008, at 6:25 AM, Tomasz Mazan wrote: Hi Guys I got very ugly (and blocking) issue with HOWL. After processing 20k request to my webservice whose are translated to ~120k XA transactions (postgres + jms) Geronimo hangs up and does not respond on requests via HTTP, request to JMS engine (from HermesJMS) and ignores tries to shutdown server. I stopped Geronimo with kill -9 and tried to start it again and got exception: Module 11/69 org.apache.geronimo.configs/activemq-ra/2.1-SNAPSHOT/car 10:22:15,325 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/ car?ServiceModule=org.apache.geronimo.configs/transaction/2.1- SNAPSHOT/car,j2eeType=TransactionLog,name=HOWLTransactionLog" java.lang.IllegalArgumentException: Negative position at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:613) at org.objectweb.howl.log.BlockLogBuffer.read(BlockLogBuffer.java:412) at org.objectweb.howl.log.LogFileManager.read(LogFileManager.java:641) Hi Beniamin, Looks like we're configuring HOWL to create an infinite number of blocks in the tx log files. I think we need to limit this to prevent this IllegalArgumentException. Try adding this to your config.xml: 65534 By my calculations, 65,535 blocks * 32 kbytes per block = 2**31 - 1. I believe HOWL stores a file header in each log file. So, need to leave some room for that, also... Actually, might make sense to knock the maxBlocksPerFile size down even further for testing purposes... Also, would be great if you could run these tests with the latest AMQ and OpenEJB fixes to avoid the IllegalStateException's. I'm not entirely sure why your server became unresponsive. So, we may have some additional work to do... --kevan
Re: (Please Reply urgently help needed) How to configure Session Bean Pool Size
Hi Puneet, Currently in Geronimo you only have a single container each for Stateless and Stateful Session beans and in openejb(EJB provider in geronimo) the pool size is set per container. So you can set only a pool size for all stateless beans and another for all stateful beans. For this you need to modify config.xml. Change the entry for module org.apache.geronimo.configs/openejb/2.2-SNAPSHOT/car as given below. The config.xml can be found in /var/config directory. Please note that the config.xml should be changed when the server is not running. ${OpenEJBPort + PortOffset} ${ServerHostname} PoolSize=200 PoolSize=2000 The above will result in all stateless beans having a pool size of 200 and all stateful beans having a pool size of 2000 Regards Manu On Tue, Mar 18, 2008 at 11:17 PM, puneetjain <[EMAIL PROTECTED]> wrote: > > > > puneetjain wrote: > > > > Hi, > > > > I am new to Geronimo Application Server. > > I have written a sample application which contains one Session Bean in it. > > I need to configure the session bean pool size in geronimo. Will anyone > > help me to configure the session bean pool size in geronimo application > > server. I am deploying my ear file without deployment plan. > > > > Environment: > > > > Geronimo version 2.0.2 > > EJB version: 3.0 > > > > Any reply will be appreciate. > > > > Thanks, > > Puneet > > > > > > -- > View this message in context: > http://www.nabble.com/How-to-configure-Session-Bean-Pool-Size-tp16123206s134p16126775.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > >
Re: (Please Reply urgently help needed) How to configure Session Bean Pool Size
puneetjain wrote: > > Hi, > > I am new to Geronimo Application Server. > I have written a sample application which contains one Session Bean in it. > I need to configure the session bean pool size in geronimo. Will anyone > help me to configure the session bean pool size in geronimo application > server. I am deploying my ear file without deployment plan. > > Environment: > > Geronimo version 2.0.2 > EJB version: 3.0 > > Any reply will be appreciate. > > Thanks, > Puneet > > -- View this message in context: http://www.nabble.com/How-to-configure-Session-Bean-Pool-Size-tp16123206s134p16126775.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Unclear steps in tutorial "Stateless Session Bean"
Hi CG, I just now executed the complete tutorial and found no problems with StatelessSessionEJB.jar. I am attaching the recently created StatelessSessionEJB.jar. Have a look at it and compare it with the one you have created Hope it helps Thanks Ashish On Tue, Mar 18, 2008 at 9:09 PM, CG <[EMAIL PROTECTED]> wrote: > Hi Ashish, > Thanks for your reply. > > I have updated the geronimo-web.xml and openejb-jar.xml, and reexport > the archieve, and deploy using the console. > > However, the problem still there when I deploy StatelessSessionEJB.jar > (ApplicationClient.war no problem) > still the dependency problem .. > > need your guidance , thanks in advance. > > Error message: > > Caused by: > org.apache.geronimo.kernel.repository.MissingDependencyException: > Missing dependency: console.dbpool/jdbc%2Fuserds// >at > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader > (DefaultArtifactResolver.java:111) >at > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader > (DefaultArtifactResolver.java:104) >at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds > (SimpleConfigurationManager.java:473) >at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst > (SimpleConfigurationManager.java:431) >at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration > (SimpleConfigurationManager.java:296) >... 21 more > > > > > > On Tue, Mar 18, 2008 at 11:09 PM, Ashish Jain <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Thanks for bringing this forward. The tutorial has been updated to > reflect > > the final geronimo-web.xml and openejb-jar.xml. > > > > Thanks > > Ashish > > > > > > > > On Tue, Mar 18, 2008 at 8:26 PM, Ashish Jain <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > Ans1: openejb-jar.xml seems to be correct. openejb-jar.xml for the > > application should look like this > > > openejb-jar.xml > > > > > > > > > http://www.openejb.org/xml/ns/openejb-jar-2.2"; > > 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-1.2"; > > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2";> > > > > > > > > > > > > console.dbpool > > > jdbc%2Fuserds > > > > > > > > > > > > default > > > StatelessSessionEJB > > > 1.0 > > > car > > > > > > > > > > > > > > > I hope you have followed all the steps and created a datasource as > > suggested by the tutorial. > > > > > > Ans2: geronimo-web.xml is automatically created once you have your > > environment set up with geronimo eclipse plugin. You need not create > one. > > > > > > geronimo-web.xml > > > > > > > > > http://geronimo.apache.org/xml/ns/j2ee/web-1.1"; > > xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"; > > xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"; > > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1";> > > > > > > > > > > > > default > > > ApplicationClient > > > > > > 1.0 > > > car > > > > > > > > > > > > > > > default > > > StatelessSessionEJB > > > 1.0 > > > car > > > > > > > > > > > > /ApplicationClient > > > > > > > > > > > > > > > > > > > > > On Tue, Mar 18, 2008 at 5:55 PM, CG <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > > > I am now trying the tutorial "Stateless Session Bean" > > > > > > > http://cwiki.apache.org/GMOxDOC21/stateless-session-bean.html#StatelessSessionBean-DeployandRun > > > > > > > > And I am stuck at section "Few more configurations", where need to > > > > configure dependencies because the steps are a bit unclear. > > > > I try to follow but get the following error which seems like is > caused > > > > by the dependecies configuration > > > > Hope that somebody can help . thanks. > > > > > > > > [error] > > > > Caused by: > > org.apache.geronimo.kernel.repository.MissingDependencyException: > > > > Missing dependency: console.dbpool/jdbc%2Fuserds// > > > >at > > > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader > (DefaultArtifactResolver.java:111) > > > >at > > > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader > (DefaultArtifactResolver.java:104) > > > >at > > > org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds > (SimpleConfigurationManager.java:473) > > > >at > > > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst > (SimpleConfigurationManager.java:431) > > > >at > > > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration > (SimpleConfigurationManager.java:296) > > > >... 21 more >
Re: request.getContextPath() returns '/' in the default (root) context
I just merged the fix into branches/2.0 and will deploy an updated set of 2.0.3-SNAPSHOT artifacts to the repo this afternoon. Please visit the WASCE forum on the IBM developerWorks website for WASCE specific questions and updates - http://www-128.ibm.com/developerworks/forums/forum.jspa?forumID=541&start=0 -Donald dcherk wrote: Jay: Jay D. McHugh-3 wrote: What version of Geronimo are you using? I am actually using WebSphere Application Server Community Edition 2.0.0.1. After not getting satisfaction from their newsgroups I did some research and tracked to the problem to Geronimo -- thus my post here. Jay D. McHugh-3 wrote: Will you be able to move up to the next released version? Or is there some constraint that will force you to stay on the level that you are currently on? We are constrained to remain on the current version. But we will work with our clients to deploy the application in a named context (rather than the root context). Hopefully that will be OK with them, so that an immediate patch won't be necessary. As it was my first experience with this product, I needed to know if the problem was mine or not before I could try to work around it. Thanks for your help, Dave Cherkassky smime.p7s Description: S/MIME Cryptographic Signature
Re: Unclear steps in tutorial "Stateless Session Bean"
Hi Ashish, Thanks for your reply. I have updated the geronimo-web.xml and openejb-jar.xml, and reexport the archieve, and deploy using the console. However, the problem still there when I deploy StatelessSessionEJB.jar (ApplicationClient.war no problem) still the dependency problem .. need your guidance , thanks in advance. Error message: Caused by: org.apache.geronimo.kernel.repository.MissingDependencyException: Missing dependency: console.dbpool/jdbc%2Fuserds// at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:111) at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:104) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds(SimpleConfigurationManager.java:473) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst(SimpleConfigurationManager.java:431) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:296) ... 21 more On Tue, Mar 18, 2008 at 11:09 PM, Ashish Jain <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks for bringing this forward. The tutorial has been updated to reflect > the final geronimo-web.xml and openejb-jar.xml. > > Thanks > Ashish > > > > On Tue, Mar 18, 2008 at 8:26 PM, Ashish Jain <[EMAIL PROTECTED]> wrote: > > > Hi, > > Ans1: openejb-jar.xml seems to be correct. openejb-jar.xml for the > application should look like this > > openejb-jar.xml > > > > > > http://www.openejb.org/xml/ns/openejb-jar-2.2"; > 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-1.2"; > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2";> > > > > > > > > console.dbpool > > jdbc%2Fuserds > > > > > > > > default > > StatelessSessionEJB > > 1.0 > > car > > > > > > > > > > I hope you have followed all the steps and created a datasource as > suggested by the tutorial. > > > > Ans2: geronimo-web.xml is automatically created once you have your > environment set up with geronimo eclipse plugin. You need not create one. > > > > geronimo-web.xml > > > > > > http://geronimo.apache.org/xml/ns/j2ee/web-1.1"; > xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"; > xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"; > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1";> > > > > > > > > default > > ApplicationClient > > > > 1.0 > > car > > > > > > > > > > default > > StatelessSessionEJB > > 1.0 > > car > > > > > > > > /ApplicationClient > > > > > > > > > > > > > > On Tue, Mar 18, 2008 at 5:55 PM, CG <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I am now trying the tutorial "Stateless Session Bean" > > > > http://cwiki.apache.org/GMOxDOC21/stateless-session-bean.html#StatelessSessionBean-DeployandRun > > > > > > And I am stuck at section "Few more configurations", where need to > > > configure dependencies because the steps are a bit unclear. > > > I try to follow but get the following error which seems like is caused > > > by the dependecies configuration > > > Hope that somebody can help . thanks. > > > > > > [error] > > > Caused by: > org.apache.geronimo.kernel.repository.MissingDependencyException: > > > Missing dependency: console.dbpool/jdbc%2Fuserds// > > >at > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:111) > > >at > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:104) > > >at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds(SimpleConfigurationManager.java:473) > > >at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst(SimpleConfigurationManager.java:431) > > >at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:296) > > >... 21 more > > > > > > [/error]: > > > > > > > > > Below are my questions: > > > > > > Question 1 : At which part of openejb-jar.xml, the following > > > datasource dependency should be inserted ? > > > > > > > > >console.dbpool > > >jdbc%2Fuserds > > > > > > > > > > > > This is how I do > > > > > > > > > http://www.openejb.org/xml/ns/openejb-jar-2.2"; > > > 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-1.2"; > > > xmlns:sys="http://geronimo.a
How to configure Session Bean Pool Size
Hi, I am new to Geronimo Application Server. I have written a sample application which contains one Session Bean in it. I need to configure the session bean pool size in geronimo. Will anyone help me to configure the session bean pool size in geronimo application server. I am deploying my ear file without deployment plan. Environment: Geronimo version 2.0.2 EJB version: 3.0 Any reply will be appreciate. Thanks, Puneet -- View this message in context: http://www.nabble.com/How-to-configure-Session-Bean-Pool-Size-tp16123206s134p16123206.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Unclear steps in tutorial "Stateless Session Bean"
Hi, Thanks for bringing this forward. The tutorial has been updated to reflect the final geronimo-web.xml and openejb-jar.xml. Thanks Ashish On Tue, Mar 18, 2008 at 8:26 PM, Ashish Jain <[EMAIL PROTECTED]> wrote: > Hi, > Ans1: openejb-jar.xml seems to be correct. openejb-jar.xml for the > application should look like this > *openejb-jar.xml* > > http://www.openejb.org/xml/ns/openejb-jar-2.2"; > 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-1.2"; xmlns:sys=" > http://geronimo.apache.org/xml/ns/deployment-1.2";> > > > > console.dbpool > jdbc%2Fuserds > > > > default > StatelessSessionEJB > 1.0 > car > > > > > I hope you have followed all the steps and created a datasource as > suggested by the tutorial. > > Ans2: geronimo-web.xml is automatically created once you have your > environment set up with geronimo eclipse plugin. You need not create one. > > *geronimo-web.xml* > > http://geronimo.apache.org/xml/ns/j2ee/web-1.1"; > xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.1"; xmlns:sec=" > http://geronimo.apache.org/xml/ns/security-1.1"; xmlns:sys=" > http://geronimo.apache.org/xml/ns/deployment-1.1";> > > > default > ApplicationClient > 1.0 > car > > > > default > StatelessSessionEJB > 1.0 > car > > > > /ApplicationClient > > > > On Tue, Mar 18, 2008 at 5:55 PM, CG <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am now trying the tutorial "Stateless Session Bean" > > > > http://cwiki.apache.org/GMOxDOC21/stateless-session-bean.html#StatelessSessionBean-DeployandRun > > > > And I am stuck at section "Few more configurations", where need to > > configure dependencies because the steps are a bit unclear. > > I try to follow but get the following error which seems like is caused > > by the dependecies configuration > > Hope that somebody can help . thanks. > > > > [error] > > Caused by: > > org.apache.geronimo.kernel.repository.MissingDependencyException: > > Missing dependency: console.dbpool/jdbc%2Fuserds// > >at > > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader > > (DefaultArtifactResolver.java:111) > >at > > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader > > (DefaultArtifactResolver.java:104) > >at > > org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds > > (SimpleConfigurationManager.java:473) > >at > > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst > > (SimpleConfigurationManager.java:431) > >at > > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration > > (SimpleConfigurationManager.java:296) > >... 21 more > > > > [/error]: > > > > > > Below are my questions: > > > > Question 1 : At which part of openejb-jar.xml, the following > > datasource dependency should be inserted ? > > > > > >console.dbpool > >jdbc%2Fuserds > > > > > > > > This is how I do > > > > > > http://www.openejb.org/xml/ns/openejb-jar-2.2"; > > 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-1.2"; > > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2";> > > > > > > > > console.dbpool > > jdbc%2Fuserds > > > > > > > > default > > StatelessSessionEJB > > 1.0 > > car > > > > > > > > > > > > Question 2: There is no geronimo-web.xml(there is only web.xml) under > > WEB-INF , should I create a new one ? > > > > > > > >default > >StatelessSessionEJB > >1.0 > >car > > > > > > > > > > > > Thanks. > > > >
Re: Unclear steps in tutorial "Stateless Session Bean"
Hi, Ans1: openejb-jar.xml seems to be correct. openejb-jar.xml for the application should look like this *openejb-jar.xml* http://www.openejb.org/xml/ns/openejb-jar-2.2"; 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-1.2"; xmlns:sys=" http://geronimo.apache.org/xml/ns/deployment-1.2";> console.dbpool jdbc%2Fuserds default StatelessSessionEJB 1.0 car I hope you have followed all the steps and created a datasource as suggested by the tutorial. Ans2: geronimo-web.xml is automatically created once you have your environment set up with geronimo eclipse plugin. You need not create one. *geronimo-web.xml* http://geronimo.apache.org/xml/ns/j2ee/web-1.1"; xmlns:nam=" http://geronimo.apache.org/xml/ns/naming-1.1"; xmlns:sec=" http://geronimo.apache.org/xml/ns/security-1.1"; xmlns:sys=" http://geronimo.apache.org/xml/ns/deployment-1.1";> default ApplicationClient 1.0 car default StatelessSessionEJB 1.0 car /ApplicationClient On Tue, Mar 18, 2008 at 5:55 PM, CG <[EMAIL PROTECTED]> wrote: > Hi, > I am now trying the tutorial "Stateless Session Bean" > > http://cwiki.apache.org/GMOxDOC21/stateless-session-bean.html#StatelessSessionBean-DeployandRun > > And I am stuck at section "Few more configurations", where need to > configure dependencies because the steps are a bit unclear. > I try to follow but get the following error which seems like is caused > by the dependecies configuration > Hope that somebody can help . thanks. > > [error] > Caused by: > org.apache.geronimo.kernel.repository.MissingDependencyException: > Missing dependency: console.dbpool/jdbc%2Fuserds// >at > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader > (DefaultArtifactResolver.java:111) >at > org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader > (DefaultArtifactResolver.java:104) >at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds > (SimpleConfigurationManager.java:473) >at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst > (SimpleConfigurationManager.java:431) >at > org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration > (SimpleConfigurationManager.java:296) >... 21 more > > [/error]: > > > Below are my questions: > > Question 1 : At which part of openejb-jar.xml, the following > datasource dependency should be inserted ? > > >console.dbpool >jdbc%2Fuserds > > > > This is how I do > > > http://www.openejb.org/xml/ns/openejb-jar-2.2"; > 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-1.2"; > xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2";> > > > > console.dbpool > jdbc%2Fuserds > > > > default > StatelessSessionEJB > 1.0 > car > > > > > > Question 2: There is no geronimo-web.xml(there is only web.xml) under > WEB-INF , should I create a new one ? > > > >default >StatelessSessionEJB >1.0 >car > > > > > > Thanks. >
Re: HOWL exception
On Mar 14, 2008, at 6:25 AM, Tomasz Mazan wrote: Hi Guys I got very ugly (and blocking) issue with HOWL. After processing 20k request to my webservice whose are translated to ~120k XA transactions (postgres + jms) Geronimo hangs up and does not respond on requests via HTTP, request to JMS engine (from HermesJMS) and ignores tries to shutdown server. I stopped Geronimo with kill -9 and tried to start it again and got exception: Module 11/69 org.apache.geronimo.configs/activemq-ra/2.1-SNAPSHOT/car 10:22:15,325 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/transaction/2.1-SNAPSHOT/ car?ServiceModule=org.apache.geronimo.configs/transaction/2.1- SNAPSHOT/car,j2eeType=TransactionLog,name=HOWLTransactionLog" java.lang.IllegalArgumentException: Negative position at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:613) at org.objectweb.howl.log.BlockLogBuffer.read(BlockLogBuffer.java:412) at org.objectweb.howl.log.LogFileManager.read(LogFileManager.java:641) at org.objectweb.howl.log.LogBufferManager.replay(LogBufferManager.java: 869) at org.objectweb.howl.log.Logger.replay(Logger.java:396) at org.objectweb.howl.log.xa.XALogger.open(XALogger.java:897) at org.apache.geronimo.transaction.log.HOWLLog.doStart(HOWLLog.java:224) at org .apache .geronimo .gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:996) at org .apache .geronimo .gbean .runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java: 268) at org .apache .geronimo .gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102) at org .apache .geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:539) at org .apache .geronimo .gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java: 111) at org .apache .geronimo .gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:146) at org.apache.geronimo.gbean.runtime.GBeanDependency $1.running(GBeanDependency.java:120) at org .apache .geronimo .kernel .basic .BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java: 176) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access $300(BasicLifecycleMonitor.java:44) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor $RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java: 254) at org .apache .geronimo .gbean .runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java: 294) at org .apache .geronimo .gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:102) at org .apache .geronimo .gbean .runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java: 124) at org .apache .geronimo .gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:553) at org .apache .geronimo .kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:379) at org .apache .geronimo .kernel .config .ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java: 448) at org .apache .geronimo .kernel .config .KernelConfigurationManager.start(KernelConfigurationManager.java:187) at org .apache .geronimo .kernel .config .SimpleConfigurationManager .startConfiguration(SimpleConfigurationManager.java:534) 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 .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:830) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java: 57) at org .apache .geronimo .kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) at org .apache .geronimo .kernel .basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java: 96) at org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$ $5ebee84a.startConfiguration() at org .apache .geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java: 156) at org .apache .geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78) at org .apache .geronimo .kernel .util .MainConfigurationBootstrapper .main(MainConfigurationBootstrapper.java:45) at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67) at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30) Server Startup failed or
Re: Error during log in when i create a new user
try without the blank space after the comma -> admin= system,kcm I got the same error with it but logged in OK after I removed that space. The password gets encrypted the first time you start the server. HTH Cheers! Hernan newbie-gero wrote: Hi lists, i'm using version 2.0.2. I have manually enter a new user in the group properties file adding a new user admin= system, kcm Next in the user properties file, this is the password i add kcm=password Logging into the admin console with the default user and password, it is successfully However logging in with the new user and password i create it shows this error http status - 403 Access to the specified resource () has been forbidden. May i know what happened Thanks in advance
Re: Problem faced in "5-minute Tutorial on Enterprise Application Development with Eclipse and Geronimo"
Hi all, I am trying another tutorial now , I'll come back to this later. Thanks for all the reply . CG 2008/3/18 Jay D. McHugh <[EMAIL PROTECTED]>: > Hello, > > Check to make sure that you have the @Stateless annotation on your bean > class. > > The class declaration should look something like this: > > @Stateless > Public class .. > > That is probably what is causing it. > > Jay > > > > CG wrote: > > Hi all, > > I have followed the tutorial , and at the end when I try to Run it , > > i got the error messege > > > >FATAL [startup] Cannot find bean > > "sampleear.MyServlet/remoteBusinessIntf" referenced by bean > > "GeronimoEnc". > > > > I am a total newbie in J2EE programming , i believe this should be a > > simple linking problem but I really too new and need some guidance. > > > > Hope that somebody can help , thx. > > > > Environment > > Geronimo : 2.1 > > GEP : the latest unstable snapshot > > Java : 1.6.0.3 > > > > > > Detail Error message are as below > > > > : > > : > > > > Web Applications: > > / > > /CAHelper > > /activemq > > /console > > /console-base > > /debug-views > > /dojo > > /dojo/0.4 > > /juddi > > /monitoring > > /plan-creator > > /plugin > > /remote-deploy > > /system-database > > > > Geronimo Application Server started > > 20:36:57,766 FATAL [startup] Cannot find bean > > "sampleear.MyServlet/remoteBusinessIntf" referenced by bean > > "GeronimoEnc". >
Unclear steps in tutorial "Stateless Session Bean"
Hi, I am now trying the tutorial "Stateless Session Bean" http://cwiki.apache.org/GMOxDOC21/stateless-session-bean.html#StatelessSessionBean-DeployandRun And I am stuck at section "Few more configurations", where need to configure dependencies because the steps are a bit unclear. I try to follow but get the following error which seems like is caused by the dependecies configuration Hope that somebody can help . thanks. [error] Caused by: org.apache.geronimo.kernel.repository.MissingDependencyException: Missing dependency: console.dbpool/jdbc%2Fuserds// at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:111) at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolveInClassLoader(DefaultArtifactResolver.java:104) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveParentIds(SimpleConfigurationManager.java:473) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDepthFirst(SimpleConfigurationManager.java:431) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:296) ... 21 more [/error]: Below are my questions: Question 1 : At which part of openejb-jar.xml, the following datasource dependency should be inserted ? console.dbpool jdbc%2Fuserds This is how I do http://www.openejb.org/xml/ns/openejb-jar-2.2"; 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-1.2"; xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2";> console.dbpool jdbc%2Fuserds default StatelessSessionEJB 1.0 car Question 2: There is no geronimo-web.xml(there is only web.xml) under WEB-INF , should I create a new one ? default StatelessSessionEJB 1.0 car Thanks.