Re: WARN [startup] Unresolved ejb reference OutboundMessageHandlerService in bean OutboundMessageListenerServiceImpl?!?!
Hi, The ejb-link in openejb-jar.xml points to OutboundMessageHandlerServiceImpl.For this to be resolved there should be an ejb with the same name defined in openejb-jar.xml or ejb-jar.xml. Regards Manu On Fri, Dec 5, 2008 at 2:05 PM, sebbay [EMAIL PROTECTED] wrote: Hello, I'm new to geronimo and I have the following problem: I have an ear-file with two ejb jar's. the application gets successfully deployed, but not successfully started. In my server.out logfile I find the following entry: WARN [startup] Unresolved ejb reference OutboundMessageHandlerService in bean OutboundMessageListenerServiceImpl In my ejb-jar.xml of the jar-file where the OutboundMessageListenerServiceImpl-class is in, I have the following entry: enterprise-beans message-driven id=OutboundMessageListenerServiceImplID ejb-nameOutboundMessageListenerServiceImpl/ejb-name ejb-classcom.test.OutboundMessageListenerServiceImpl/ejb-class messaging-typejavax.jms.MessageListener/messaging-type transaction-typeBean/transaction-type ejb-local-ref id=OutboundMessageListenerServiceImplRefID ejb-ref-nameOutboundMessageHandlerService/ejb-ref-name ejb-ref-typeSession/ejb-ref-type local-home/local-home localcom.test.OutboundMessageHandlerService/local /ejb-local-ref /message-driven /enterprise-beans My openejb-jar.xml consists the following entry: message-driven ejb-nameOutboundMessageListenerServiceImpl/ejb-name resource-adapter resource-linkebox2.mq.resource.adapter/resource-link /resource-adapter ejb-ref ref-nameOutboundMessageHandlerService/ref-name ejb-linkOutboundMessageHandlerServiceImpl/ejb-link /ejb-ref /message-driven Can somebody tell me, what is missing in the files? sebbay -- View this message in context: http://www.nabble.com/WARN---startup--Unresolved-ejb-reference-%22OutboundMessageHandlerService%22-in-bean-%22OutboundMessageListenerServiceImpl%22-%21-%21-tp20849699s134p20849699.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Configuring log4j as jvm environment variable fails
Sure looks like we need more docs in that area. I will add the docs. Probably will cover log4j and JUL Regards Manu On Tue, Nov 18, 2008 at 11:36 PM, Donald Woods [EMAIL PROTECTED] wrote: Manu, I opened GERONIMO-4418 to reference this as a possible Sample we could create for 2.2. -Donald Manu George wrote: Hi Hearty, My understanding was that we just needed to hide the log4j and slf4j classes to use logging However a quick search came up with this http://webui.sourcelabs.com/geronimo/mail/user/threads/Logging_in_Geronimo_2.0.1.meta It lists the same problem and a solution In case of wanting to use a properties file, You can configure log4j for you app as follows 1) Write a gbean that will initialize log4j eg: package test import java.io.IOException; import java.io.InputStream; import java.util.Properties; import org.apache.geronimo.gbean.GBeanInfo; import org.apache.geronimo.gbean.GBeanInfoBuilder; import org.apache.geronimo.gbean.GBeanLifecycle; import org.apache.log4j.PropertyConfigurator; public class Log4JInitGBean { public Log4JInitGBean(String log4jResource, ClassLoader classloader) throws IOException { InputStream in; if (log4jResource != null) { in = classloader.getResourceAsStream(log4jResource); if (in == null) { throw new NullPointerException( No log4j properties resource found at + log4jResource); } } else { return; } Properties props = new Properties(); try { props.load(in); } finally { in.close(); } PropertyConfigurator.configure(props); } public static final GBeanInfo GBEAN_INFO; static { GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic( Log4JInitGBean.class); infoBuilder.setPriority(2); infoBuilder.addAttribute(log4jResource, String.class, true); infoBuilder.addAttribute(classLoader, ClassLoader.class, false); infoBuilder.setConstructor(new String[] { log4jResource, classLoader }); GBEAN_INFO = infoBuilder.getBeanInfo(); } public static GBeanInfo getGBeanInfo() { return GBEAN_INFO; } } Define this gbean in your plan via this entry gbean name=Log4jConfiguration class=test.Log4JInitGBean attribute name=log4jResourcefp-log4j.properties/attribute /gbean This will initialize ur log4j. Now since you are using slf4j as a wrapper over log4j. You can hide the two projects that may already be loaded in the parent classloaders via sys:hidden-classes sys:filterorg.apache.log4j/sys:filter sys:filterorg.slf4j/sys:filter /sys:hidden-classes Remember to package your own copies or add dependencies in your plan for the slf4j and log4j jars This should have your logging working. 2) Another way is to use the ApplicationLog4jConfigurationGBean though I was not able to get it to work as expected 3) I was not getting log4j to initialize with the configuration I specified without using the gbean above I need to investigate more into 2 and 3. Regards Manu P.S In your log4j.properties you can give the file path as log4j.appender.FILE.file=${org.apache.geronimo.server.dir}/var/log/test.log where org.apache.geronimo.server.dir is a system property On Fri, Nov 7, 2008 at 4:10 PM, Hearty [EMAIL PROTECTED] wrote: I have tried the below 2 options of setting my fp-log4j.properties. Both these options fails. I am not able to see log files created. SET JAVA_OPTS=-Dlog4j.configuration=C:\WebSphere\AppServerCommunityEdition\var\log\fp-log4j.properties SET JAVA_OPTS=-Dorg.apache.geronimo.log4jservice.configuration=C:\WebSphere\AppServerCommunityEdition\var\log\fp-log4j.properties These envionment variable I've specified from a command prompt and I've run start-server command from the same instance. My fp-log4j.properties is as follows #attach an appender to the base apacheds package logger: log4j.logger.org.apache.directory=INFO,fp #do not log apacheds to geronimo logs: log4j.additivity.org.apache.directory=false #Configure the fp specific appender: log4j.appender.fp=org.apache.log4j.DailyRollingFileAppender log4j.appender.fp.layout=org.apache.log4j.PatternLayout # geronimo style logging log4j.appender.fp.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n log4j.appender.fp.append=true log4j.appender.fp.file=${org.apache.geronimo.server.dir}/var/log/fp.log log4j.appender.fp.bufferedIO=false
Re: Configuring log4j as jvm environment variable fails
Hi Hearty, My understanding was that we just needed to hide the log4j and slf4j classes to use logging However a quick search came up with this http://webui.sourcelabs.com/geronimo/mail/user/threads/Logging_in_Geronimo_2.0.1.meta It lists the same problem and a solution In case of wanting to use a properties file, You can configure log4j for you app as follows 1) Write a gbean that will initialize log4j eg: package test import java.io.IOException; import java.io.InputStream; import java.util.Properties; import org.apache.geronimo.gbean.GBeanInfo; import org.apache.geronimo.gbean.GBeanInfoBuilder; import org.apache.geronimo.gbean.GBeanLifecycle; import org.apache.log4j.PropertyConfigurator; public class Log4JInitGBean { public Log4JInitGBean(String log4jResource, ClassLoader classloader) throws IOException { InputStream in; if (log4jResource != null) { in = classloader.getResourceAsStream(log4jResource); if (in == null) { throw new NullPointerException( No log4j properties resource found at + log4jResource); } } else { return; } Properties props = new Properties(); try { props.load(in); } finally { in.close(); } PropertyConfigurator.configure(props); } public static final GBeanInfo GBEAN_INFO; static { GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic( Log4JInitGBean.class); infoBuilder.setPriority(2); infoBuilder.addAttribute(log4jResource, String.class, true); infoBuilder.addAttribute(classLoader, ClassLoader.class, false); infoBuilder.setConstructor(new String[] { log4jResource, classLoader }); GBEAN_INFO = infoBuilder.getBeanInfo(); } public static GBeanInfo getGBeanInfo() { return GBEAN_INFO; } } Define this gbean in your plan via this entry gbean name=Log4jConfiguration class=test.Log4JInitGBean attribute name=log4jResourcefp-log4j.properties/attribute /gbean This will initialize ur log4j. Now since you are using slf4j as a wrapper over log4j. You can hide the two projects that may already be loaded in the parent classloaders via sys:hidden-classes sys:filterorg.apache.log4j/sys:filter sys:filterorg.slf4j/sys:filter /sys:hidden-classes Remember to package your own copies or add dependencies in your plan for the slf4j and log4j jars This should have your logging working. 2) Another way is to use the ApplicationLog4jConfigurationGBean though I was not able to get it to work as expected 3) I was not getting log4j to initialize with the configuration I specified without using the gbean above I need to investigate more into 2 and 3. Regards Manu P.S In your log4j.properties you can give the file path as log4j.appender.FILE.file=${org.apache.geronimo.server.dir}/var/log/test.log where org.apache.geronimo.server.dir is a system property On Fri, Nov 7, 2008 at 4:10 PM, Hearty [EMAIL PROTECTED] wrote: I have tried the below 2 options of setting my fp-log4j.properties. Both these options fails. I am not able to see log files created. SET JAVA_OPTS=-Dlog4j.configuration=C:\WebSphere\AppServerCommunityEdition\var\log\fp-log4j.properties SET JAVA_OPTS=-Dorg.apache.geronimo.log4jservice.configuration=C:\WebSphere\AppServerCommunityEdition\var\log\fp-log4j.properties These envionment variable I've specified from a command prompt and I've run start-server command from the same instance. My fp-log4j.properties is as follows #attach an appender to the base apacheds package logger: log4j.logger.org.apache.directory=INFO,fp #do not log apacheds to geronimo logs: log4j.additivity.org.apache.directory=false #Configure the fp specific appender: log4j.appender.fp=org.apache.log4j.DailyRollingFileAppender log4j.appender.fp.layout=org.apache.log4j.PatternLayout # geronimo style logging log4j.appender.fp.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n log4j.appender.fp.append=true log4j.appender.fp.file=${org.apache.geronimo.server.dir}/var/log/fp.log log4j.appender.fp.bufferedIO=false #focal point specific log settings log4j.logger.com.telelogic.focalpoint=DEBUG log4j.logger.com.telelogic.focalpoint.dao.jdbc.Jdbc=OFF log4j.logger.com.telelogic.focalpoint.dao.ViewExecutor=OFF log4j.logger.org.apache.catalina=INFO log4j.logger.org.springframework=INFO log4j.logger.net.sf.ehcache.distribution=INFO Please advice me where I went wrong --
Re: MDB pool size
Hi Vladimir, Try raising the instanceLimit also to 50. By default it is 10. The following JIRA gives u the steps https://issues.apache.org/jira/browse/GERONIMO-3783 Regards Manu On Thu, Oct 2, 2008 at 3:54 PM, my_forum [EMAIL PROTECTED] wrote: djencks wrote: You also have to configure the MDB pool size. I don't remember whether this is in the MDB configuration in openejb-jar.xml or in the openejb MDB container configuration itself. I think this question has been discussed before on the user list if not perhaps someone with more specific knowledge will provide more info. david jencks On Oct 1, 2008, at 5:31 AM, my_forum wrote: Guys, Could anyone tell me how I can to increase MDB pool size (the default value is 10 as far as I understand). I tryied to set Pool Min Size = 20 and Pool Max Size = 50 while setting up the connection factory but looks like this does not have any effect i.e. the the pool is still equal to 10 (ten messages are processed simultaneously) -- View this message in context: http://www.nabble.com/MDB-pool-size-tp19759437s134p19759437.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. David, I send 100 test messages to my queue as usual. I have tried the following: 1. Changed Pool Min Size=50 and Pool Max Size=50 in my QueueConnectionFactoryJMS resource 2. Added activation properties to my MDB @ActivationConfigProperty(propertyName=maxSessions, propertyValue=50), @ActivationConfigProperty(propertyName=maxMessagesPerSessions, propertyValue=50) But this also does not have any effect (10 messages are processing simultaneously instead of 50 as I expect). However I can decrease the bandwidth when I set @ActivationConfigProperty(propertyName=maxSessions, propertyValue=5), @ActivationConfigProperty(propertyName=maxMessagesPerSessions, propertyValue=5) 5 messages are processing simultaneously instead of 10 now and that's OK I thought to use minSessions, minMessagesPerSessions but no such activation parameters exist. So I can decerase the bandwidth but can not increase it. Probably someone undocumented limitation exists... Could you please refer me to the 'person with more specific knowledge'? Thanks, Vladimir. -- View this message in context: http://www.nabble.com/MDB-pool-size-tp19759437s134p19776736.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: MDB pool size
One thing to keep in mind while setting the instance limit. I just tried it out in trunk in config.xml module name=org.apache.geronimo.configs/j2ee-server/2.2-SNAPSHOT/car gbean gbeanInfo=org.apache.geronimo.system.properties.SystemProperties name=org.apache.geronimo.configs/j2ee-server/2.2-SNAPSHOT/car?ServiceModule=org.apache.geronimo.configs/j2ee-server/2.2-SNAPSHOT/car,j2eeType=GBean,name=CustomPropertiesGBean attribute name=systemPropertiesApache/TestingJMS/1/rar.TestingJMS-javax.jms.MessageListener.InstanceLimit=100/attribute /gbean /module Here notice the name of the Mdb container. It is actually in the format $moduleName.$shortName-javax.jms.MessageListener where $moduleName is the name of the resource adapter module the mdb is using i.e Apache/TestingJMS/1/rar and the shortName in this case is the value of the resourceadapter-name property in the RA plan i.e. TestingJMS. So the property can be set as containerName.propertyName=propertyValue or Apache/TestingJMS/1/rar.TestingJMS-javax.jms.MessageListener.InstanceLimit=100 Regards Manu On Fri, Oct 3, 2008 at 7:17 PM, Manu George [EMAIL PROTECTED] wrote: Hi Vladimir, If the issue still persists, can you open a JIRA and upload a sample that illustrates the issue. It will be really helpful for us to debug. Regards Manu On Fri, Oct 3, 2008 at 6:35 PM, Manu George [EMAIL PROTECTED] wrote: Hi Vladimir, Try raising the instanceLimit also to 50. By default it is 10. The following JIRA gives u the steps https://issues.apache.org/jira/browse/GERONIMO-3783 Regards Manu On Thu, Oct 2, 2008 at 3:54 PM, my_forum [EMAIL PROTECTED] wrote: djencks wrote: You also have to configure the MDB pool size. I don't remember whether this is in the MDB configuration in openejb-jar.xml or in the openejb MDB container configuration itself. I think this question has been discussed before on the user list if not perhaps someone with more specific knowledge will provide more info. david jencks On Oct 1, 2008, at 5:31 AM, my_forum wrote: Guys, Could anyone tell me how I can to increase MDB pool size (the default value is 10 as far as I understand). I tryied to set Pool Min Size = 20 and Pool Max Size = 50 while setting up the connection factory but looks like this does not have any effect i.e. the the pool is still equal to 10 (ten messages are processed simultaneously) -- View this message in context: http://www.nabble.com/MDB-pool-size-tp19759437s134p19759437.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. David, I send 100 test messages to my queue as usual. I have tried the following: 1. Changed Pool Min Size=50 and Pool Max Size=50 in my QueueConnectionFactoryJMS resource 2. Added activation properties to my MDB @ActivationConfigProperty(propertyName=maxSessions, propertyValue=50), @ActivationConfigProperty(propertyName=maxMessagesPerSessions, propertyValue=50) But this also does not have any effect (10 messages are processing simultaneously instead of 50 as I expect). However I can decrease the bandwidth when I set @ActivationConfigProperty(propertyName=maxSessions, propertyValue=5), @ActivationConfigProperty(propertyName=maxMessagesPerSessions, propertyValue=5) 5 messages are processing simultaneously instead of 10 now and that's OK I thought to use minSessions, minMessagesPerSessions but no such activation parameters exist. So I can decerase the bandwidth but can not increase it. Probably someone undocumented limitation exists... Could you please refer me to the 'person with more specific knowledge'? Thanks, Vladimir. -- View this message in context: http://www.nabble.com/MDB-pool-size-tp19759437s134p19776736.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
ApacheCon 2008 Training Session on Developing Rich Internet Applications with Apache Geronimo
Hello Geronimo Users, I will be conducting a training on Developing Rich Internet Applications with Apache Geronimo at ApacheCon US 2008, New Orleans, USA held in November. - What's the training about? This training will introduce the Web 2.0 support in Apache Geronimo and discuss the various integrated frameworks (DWR and DOJO). It will discuss the comet support that geronimo provides via the integrated tomcat web container. It will also introduce the Async Http Client. The attendees will then go through the development of a Web 2.0 application that uses these frameworks.The Geronimo Eclipse Plugin will be used for development. - Who should consider this training? This training is for application developers who want to get an idea of how to develop AJAX based Java EE applications in Apache Geronimo using features and frameworks that are bundled with the Geronimo distribution i.e. Dojo and DWR. Developers who want to get a feel of development with the Geronimo Eclipse Plugin can also attend the training as it will be used to develop the application. - What will attendees learn? The attendees will learn about the various frameworks that are bundled with Geronimo that aid in Ajax development. They will learn about enabling Comet and using the Reverse Ajax functionality of DWR. They will also get an idea about the Dojo toolkit. After completing the training, the users will be in a position to develop and deploy AJAX based JEE5 applications on Geronimo using the Dojo and DWR frameworks and the Geronimo Eclipse Plugin. - Link http://www.us.apachecon.com/c/acus2008/sessions/73 Please register for the training if you are interested before October 3rd as the training will be cancelled if there are not enough registrations by that date. Regards Manu
Re: Geronimo 2.1.1 MDB Performance Question
Hi Mario, Can you post a sample or modify the sample in the JIRA to replicate your issue and attach it in the mail. It will be very helpful to debug in that case Regards Manu On Sat, Jul 19, 2008 at 7:12 PM, Mario Kofler [EMAIL PROTECTED] wrote: hello, i hate to say it but it i still don't see more than 10 threads. i made the additional pool in the geronimo-application.xml just like it was written in that JIRA. then my jsp takes the sender pool and the mdb takes the receiver pool. both pools configured just like in the posting. when i look at my web management console i still see just 10 threads in use (out of my 250). the thread pool that is used is the ConnectorThread pool. the DefaultThreadpool stays idle with 0 threads and no more thread pools are listed. is there a possibility how i could monitor my queue or the 2 thread pools that obviously should exist somewhere (because i got an exception as i did not change the referred name in the web.xml and the jsp). can it be that through the manual videoqueue settings in the ear the server Default\ MDB\ Container.InstanceLimit setting is ignored? if yes, how can i set them in the application directly? via the application-spec? i already set them both to the same value and to the same value as the thread pools and this value is higher than 10. if you want i can post my deployment descriptors here, if it helps somehow. thanks a lot for helping out, greetings, mario. 2008/7/18 Manu George [EMAIL PROTECTED]: Hi Mario, Looks like you have enough threads. Try making the instanceLimit also equivalent to maxSessions and maxMessagesPerSession. The explanation for these properties is given here http://activemq.apache.org/activation-spec-properties.html InstanceLimit actually is a facility to limit the no of bean instances created. Making it 0 will make the instanceLimit unlimited and so there will be no limiting from the ejb container side. The no of parallel instances will be from maxSessions The JIRA whose link I posted in one of the previous mails contains a sample plan for defining a separate thread pool/work manager for the connector Regards Manu On Fri, Jul 18, 2008 at 7:58 PM, Mario Kofler [EMAIL PROTECTED] wrote: hello, sorry for the latest issue, this was an error in my application. can you perhaps tell me how i can increase the thread-pool for the activemq-resource-adapter? i just have my default-thread-pool which has a maximum of 250 threads but it seems that just 10 are used at maximum when i make my MDB test. i already have connection factory single-pool: 20 jdbc pool = 20 maxSessions = 20 ejb container pool = 32 by the way can someone tell me the connection between ejb-container-pool and max-sessions value?? i dont see the big picture and i dont get it. i thought ejb container pool is the amount of simultaneous connections that can be established. so what is max-sessions? can i set it to 32 or does it have to stay the same value as my jdbc/connection factory values? thanks very much for helping, mario 2008/7/18 Manu George [EMAIL PROTECTED]: I believe there was a similar issue some time back where u needed maxSessions and maxMessagesPerSession to be equal. So can you try giving both and making them equal. The jira is https://issues.apache.org/jira/browse/GERONIMO-3783 David Jencks had fixed this issue to the best of my knowledge and so this shouldn't happen but just try whether that makes any difference. Another thing that you can try is increasing the number of threads in the thread pool for the RA. Regards Manu. On Fri, Jul 18, 2008 at 6:55 PM, Mario Kofler [EMAIL PROTECTED] wrote: hello, after all i specify it in my mdb via @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = destinationType, propertyValue = javax.jms.Queue), @ActivationConfigProperty(propertyName = maxSessions, propertyValue = 20), @ActivationConfigProperty(propertyName = destination, propertyValue = queue/videoupdate)}) HOWEVER after i inserted the maxSessions property no messages get delivered anymore. also when i change back the prop by commenting it out i dont get messages anymore through my queue. so my database is never updated. after this error i do not know anything else than reinstalling the whole server. i dont even get an error. just no update in the database anymore and that's it. maybe some ideas? thanks a lot, mario. 2008/7/17 Lin Sun [EMAIL PROTECTED]: Did you try increasing the maxSessions and maxMessagesPerSessions values in your openejb deployment plan? The default is 10. Here is some information on this - http://activemq.apache.org/activation-spec-properties.html Lin On Thu, Jul 17, 2008 at 1:17 PM, Mario Kofler [EMAIL PROTECTED] wrote: 2008/7/16 David Jencks [EMAIL PROTECTED]: I think there's
Re: Deployment pb with geronimo 2.1.1
One thing that I can find is that the dependency refers to the wrong version dependency groupIdorg.apache.geronimo.configs/groupId artifactIdsharedlib/artifactId version2.0.2/version typecar/type /dependency Version should be 2.1.1 Regards Manu On Fri, Jul 18, 2008 at 2:38 PM, johnxmas [EMAIL PROTECTED] wrote: Hello, I just deployed the latest release (2.1.1). When deploying a war (that works fin with geronimo 2.0.2), I get the following exception: 10:18:35,593 ERROR [DirectoryHotDeployer] Unable to deploy: Unable to create con figuration for deployment org.apache.geronimo.common.DeploymentException: Unable to create configuration f or deployment at org.apache.geronimo.deployment.DeploymentContext.createTempConfigurat ion(DeploymentContext.java:120) at org.apache.geronimo.deployment.DeploymentContext.init(DeploymentCon text.java:100) at org.apache.geronimo.deployment.DeploymentContext.init(DeploymentCon text.java:80) at org.apache.geronimo.j2ee.deployment.EARContext.init(EARContext.java :68) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfigurati on(EARConfigBuilder.java:530) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:254) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:133) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Refl ectionMethodInvoker.java:34) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio n.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.deployment.plugin.local.AbstractDeployCommand.doD eploy(AbstractDeployCommand.java:116) at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(Dis tributeCommand.java:61) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.geronimo.kernel.config.LifecycleException: load of com.sco rt.demos/nicedemo/1.0/war failed at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf iguration(SimpleConfigurationManager.java:299) at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadCon figuration(DeploymentConfigurationManager.java:115) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf iguration(SimpleConfigurationManager.java:286) at org.apache.geronimo.deployment.DeploymentConfigurationManager.loadCon figuration(DeploymentConfigurationManager.java:111) at org.apache.geronimo.deployment.DeploymentContext.createTempConfigurat ion(DeploymentContext.java:117) ... 17 more Caused by: org.apache.geronimo.kernel.repository.MissingDependencyException: Mis sing dependency: org.apache.geronimo.configs/rmi-naming//car at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolve InClassLoader(DefaultArtifactResolver.java:111) at org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolve InClassLoader(DefaultArtifactResolver.java:104) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveP arentIds(SimpleConfigurationManager.java:473) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDept hFirst(SimpleConfigurationManager.java:431) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDept hFirst(SimpleConfigurationManager.java:439) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf iguration(SimpleConfigurationManager.java:296) ... 21 more I don't understant the root cause Caused by: org.apache.geronimo.kernel.repository.MissingDependencyException: Mis sing dependency: org.apache.geronimo.configs/rmi-naming//car I'm joing my geronimo-web.xml Thanks for your help Jean-Noël
Re: Geronimo 2.1.1 MDB Performance Question
I believe there was a similar issue some time back where u needed maxSessions and maxMessagesPerSession to be equal. So can you try giving both and making them equal. The jira is https://issues.apache.org/jira/browse/GERONIMO-3783 David Jencks had fixed this issue to the best of my knowledge and so this shouldn't happen but just try whether that makes any difference. Another thing that you can try is increasing the number of threads in the thread pool for the RA. Regards Manu. On Fri, Jul 18, 2008 at 6:55 PM, Mario Kofler [EMAIL PROTECTED] wrote: hello, after all i specify it in my mdb via @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = destinationType, propertyValue = javax.jms.Queue), @ActivationConfigProperty(propertyName = maxSessions, propertyValue = 20), @ActivationConfigProperty(propertyName = destination, propertyValue = queue/videoupdate)}) HOWEVER after i inserted the maxSessions property no messages get delivered anymore. also when i change back the prop by commenting it out i dont get messages anymore through my queue. so my database is never updated. after this error i do not know anything else than reinstalling the whole server. i dont even get an error. just no update in the database anymore and that's it. maybe some ideas? thanks a lot, mario. 2008/7/17 Lin Sun [EMAIL PROTECTED]: Did you try increasing the maxSessions and maxMessagesPerSessions values in your openejb deployment plan? The default is 10. Here is some information on this - http://activemq.apache.org/activation-spec-properties.html Lin On Thu, Jul 17, 2008 at 1:17 PM, Mario Kofler [EMAIL PROTECTED] wrote: 2008/7/16 David Jencks [EMAIL PROTECTED]: I think there's a setting for the mdb pool size in the activation spec. Also it looks like the DefaultWorkManager only has 30 threads which is pretty low but I don't see offhand how this would result in only 10 worker threads. hello, i suppose it is right to set the MDB container instance size in the config.xml for this? gbean name=org.apache.geronimo.configs/j2ee-server/2.1.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-server/2.1.1/car,j2eeType=GBean,name=CustomPropertiesGBean gbeanInfo=org.apache.geronimo.system.properties.SystemProperties attribute name=systemPropertiesDefault\ MDB\ Container.InstanceLimit=32/attribute /gbean /module but still i just get 10 concurrent worker threads to my database very strange. regards, mario.
Re: Geronimo 2.1.1 MDB Performance Question
Hi Mario, Looks like you have enough threads. Try making the instanceLimit also equivalent to maxSessions and maxMessagesPerSession. The explanation for these properties is given here http://activemq.apache.org/activation-spec-properties.html InstanceLimit actually is a facility to limit the no of bean instances created. Making it 0 will make the instanceLimit unlimited and so there will be no limiting from the ejb container side. The no of parallel instances will be from maxSessions The JIRA whose link I posted in one of the previous mails contains a sample plan for defining a separate thread pool/work manager for the connector Regards Manu On Fri, Jul 18, 2008 at 7:58 PM, Mario Kofler [EMAIL PROTECTED] wrote: hello, sorry for the latest issue, this was an error in my application. can you perhaps tell me how i can increase the thread-pool for the activemq-resource-adapter? i just have my default-thread-pool which has a maximum of 250 threads but it seems that just 10 are used at maximum when i make my MDB test. i already have connection factory single-pool: 20 jdbc pool = 20 maxSessions = 20 ejb container pool = 32 by the way can someone tell me the connection between ejb-container-pool and max-sessions value?? i dont see the big picture and i dont get it. i thought ejb container pool is the amount of simultaneous connections that can be established. so what is max-sessions? can i set it to 32 or does it have to stay the same value as my jdbc/connection factory values? thanks very much for helping, mario 2008/7/18 Manu George [EMAIL PROTECTED]: I believe there was a similar issue some time back where u needed maxSessions and maxMessagesPerSession to be equal. So can you try giving both and making them equal. The jira is https://issues.apache.org/jira/browse/GERONIMO-3783 David Jencks had fixed this issue to the best of my knowledge and so this shouldn't happen but just try whether that makes any difference. Another thing that you can try is increasing the number of threads in the thread pool for the RA. Regards Manu. On Fri, Jul 18, 2008 at 6:55 PM, Mario Kofler [EMAIL PROTECTED] wrote: hello, after all i specify it in my mdb via @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = destinationType, propertyValue = javax.jms.Queue), @ActivationConfigProperty(propertyName = maxSessions, propertyValue = 20), @ActivationConfigProperty(propertyName = destination, propertyValue = queue/videoupdate)}) HOWEVER after i inserted the maxSessions property no messages get delivered anymore. also when i change back the prop by commenting it out i dont get messages anymore through my queue. so my database is never updated. after this error i do not know anything else than reinstalling the whole server. i dont even get an error. just no update in the database anymore and that's it. maybe some ideas? thanks a lot, mario. 2008/7/17 Lin Sun [EMAIL PROTECTED]: Did you try increasing the maxSessions and maxMessagesPerSessions values in your openejb deployment plan? The default is 10. Here is some information on this - http://activemq.apache.org/activation-spec-properties.html Lin On Thu, Jul 17, 2008 at 1:17 PM, Mario Kofler [EMAIL PROTECTED] wrote: 2008/7/16 David Jencks [EMAIL PROTECTED]: I think there's a setting for the mdb pool size in the activation spec. Also it looks like the DefaultWorkManager only has 30 threads which is pretty low but I don't see offhand how this would result in only 10 worker threads. hello, i suppose it is right to set the MDB container instance size in the config.xml for this? gbean name=org.apache.geronimo.configs/j2ee-server/2.1.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-server/2.1.1/car,j2eeType=GBean,name=CustomPropertiesGBean gbeanInfo=org.apache.geronimo.system.properties.SystemProperties attribute name=systemPropertiesDefault\ MDB\ Container.InstanceLimit=32/attribute /gbean /module but still i just get 10 concurrent worker threads to my database very strange. regards, mario.
Re: Use of a GBean from a Message EJB
Hi Damian , Why don't you try giving the namespace for the ref-name element as ref-name may be present in both the schemas, If still it doesn't work it will be helpful if you can attach a sample that replicates the problem Regards Manu On Tue, Jul 1, 2008 at 5:10 PM, dsthode [EMAIL PROTECTED] wrote: Hi manucet, I've followed your advice and changed the default namespace to openejb version 2.2 and added a pattern element for the gbean-ref resolution, but Geronimo keeps failing on deployment with the message that ref-name is not in geronimo-namespace-1.2 schema but in http://openejb.apache.org/xml/ns/openejb-jar-2.2, even though you can open geronimo-naming-1.2 and find ref-name defined in this schema. Also I've tried to find the schema definition for openejb-jar-2.2 but every URL I've followed links to a missing document. Even I updated my Geronimo Eclipse plugin to a nightly build of the 2.1 branch, but with no success, Geronimo keeps showing the same error when deploying: [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/ns/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,object=null,url=null,line=44,col=24,offset=-1]] So I'm a bit lost right now, as I can't deploy my application if I include the gbean-ref part in the ejb deployment descriptor. Nobody here ever tried to deploy an EJB that references a GBean? Thank you. manucet wrote: I see 2 errors in the plan 1) In your openejb-jar.xml file you are setting the default namespace http://www.openejb.org/xml/ns/openejb-jar-2.1; instead of 2.2 but anyway that should be taken care of by g 2) In the gbean-ref you are only giving the ref-name but u need to provide a mapping of that refname to the actual gbean by giving the pattern/ ref-type elements. If you give the pattern element then you need to specify the name of your gbean inside that element inside the name tag. However I guess both these should not cause the problem you are experiencing Another thing you can try is to call org.apache.geronimo.kernel.KernelRegistry.getSingleKernel(); from within the ejb. This will give you the kernel from which you can get the gbean by executing a gbean query. Using gbean refs is the better approach though. regards Manu On Wed, Jun 25, 2008 at 4:39 PM, dsthode [EMAIL PROTECTED] wrote: 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;
Re: geronimo v2 quartz plugin
Hi, FYI I got the following error too when i tried to build this. [INFO] Failed to configure plugin parameters for: org.codehaus.mojo:xmlbeans-mav en-plugin:2.3.1 (found static expression: 'geronimo-quartz-0.2.xsd' which may act as a defau lt value). Cause: Cannot assign configuration entry 'sourceSchemas' to 'interface java.util .List' from 'geronimo-quartz-0.2.xsd', which is of type class java.lang.String It was because of a wrong configuration entry in the pom base/deployer/pom.xml. Modify sourceSchemasgeronimo-quartz-0.2.xsd/sourceSchemas to sourceSchemas sourceSchemageronimo-quartz-0.2.xsd/sourceSchema /sourceSchemas and it will build. Good luck with the porting regards Manu On Fri, Jun 27, 2008 at 3:51 AM, David Jencks [EMAIL PROTECTED] wrote: On Jun 26, 2008, at 1:20 PM, jklcom99 wrote: Hi David, After reading up on the documents you suggested. I attempted to get quartz to build with G2.1.2-SNAPSHOT. I'm getting compile error: (even I have included geronimo-naming as a dependency). Can you please point out what I'm doing wrong and missing? Also getting error when tried to build eclipse project, see below. Thank you Thu 06/26/2008 15:59:38.32 C:\downloads\apache\qplugin2.0mvn compile [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] Quartz Plugin for Geronimo [INFO] Quartz Scheduler for Geronimo [INFO] Geronimo Quartz Deployer [INFO] Quartz Admin Console for Geronimo [INFO] Quartz Plugins :: Geronimo Dependencies [INFO] Quartz Plugins for Geronimo [INFO] Geronimo Plugin :: Quartz Scheduler [INFO] Geronimo Plugin :: Quartz Deployer [INFO] [INFO] Building Quartz Plugin for Geronimo [INFO]task-segment: [compile] [INFO] [INFO] No goals needed for project - skipping [INFO] [INFO] Building Quartz Scheduler for Geronimo [INFO]task-segment: [compile] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://people.apache.org/~ammulder//geronimo/geronimo-kernel/2.1.2- SNAPSHOT/geronimo-kernel-2.1.2-SNAPSHOT.pom Downloading: http://people.apache.org/~ammulder//geronimo/geronimo-naming/2.1.2- SNAPSHOT/geronimo-naming-2.1.2-SNAPSHOT.pom Downloading: http://people.apache.org/~ammulder//geronimo/geronimo-deployment/2. 1.2-SNAPSHOT/geronimo-deployment-2.1.2-SNAPSHOT.pom Downloading: http://people.apache.org/~ammulder//geronimo/geronimo-system/2.1.2- SNAPSHOT/geronimo-system-2.1.2-SNAPSHOT.pom Downloading: http://people.apache.org/~ammulder//opensymphony/quartz/1.5.2/quart z-1.5.2.pom Downloading: http://repo1.maven.org/maven2/opensymphony/quartz/1.5.2/quartz-1.5. 2.pom [INFO] [compiler:compile] [INFO] Compiling 5 source files to C:\downloads\apache\qplugin2.0\base\scheduler \target\classes [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\downloads\apache\qplugin2.0\base\scheduler\src\java\org\gplugins\quartz\Quart zJobFactory.java:[71,42] cannot access org.apache.xbean.naming.reference.SimpleR eference class file for org.apache.xbean.naming.reference.SimpleReference not found ConfigurationAwareReference ref = (ConfigurationAwareReference) value; C:\downloads\apache\qplugin2.0\base\scheduler\src\java\org\gplugins\quartz\Quart zJobFactory.java:[77,33] cannot find symbol symbol : method getContent() location: class org.apache.geronimo.naming.reference.ConfigurationAwareReference I don't see any good reason for this error unless somehow geronimo-naming is included as a scopeprovided/scope dependency. Maybe you can get the build to work by including dependency groupIdorg.apache.xbean/groupId artifactIdxbean-naming/artifactId version3.3/version /dependency [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Thu Jun 26 16:02:01 EDT 2008 [INFO] Final Memory: 6M/11M When I tried to create an Eclipse project, I'm getting this error: [INFO] [INFO] [INFO] Building Geronimo Quartz Deployer [INFO]task-segment: [eclipse:eclipse] [INFO] [INFO] Preparing eclipse:eclipse Downloading:
Re: Use of a GBean from a Message EJB
I see 2 errors in the plan 1) In your openejb-jar.xml file you are setting the default namespace http://www.openejb.org/xml/ns/openejb-jar-2.1; instead of 2.2 but anyway that should be taken care of by g 2) In the gbean-ref you are only giving the ref-name but u need to provide a mapping of that refname to the actual gbean by giving the pattern/ ref-type elements. If you give the pattern element then you need to specify the name of your gbean inside that element inside the name tag. However I guess both these should not cause the problem you are experiencing Another thing you can try is to call org.apache.geronimo.kernel.KernelRegistry.getSingleKernel(); from within the ejb. This will give you the kernel from which you can get the gbean by executing a gbean query. Using gbean refs is the better approach though. regards Manu On Wed, Jun 25, 2008 at 4:39 PM, dsthode [EMAIL PROTECTED] wrote: 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
Re: geronimo v2 quartz plugin
Hi, I would be happy to help out here. Let me start off by reading the links that David has provided as I am not very familiar with the new format for creating geronimo plugins Regards Manu On Wed, Jun 25, 2008 at 8:02 PM, jklcom99 [EMAIL PROTECTED] wrote: 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: [ANNOUNCE] Welcoming Yun Feng Ma as a Geronimo Committer
Congrats Yun Feng Regards Manu On Thu, Jun 19, 2008 at 9:42 PM, Viet Nguyen [EMAIL PROTECTED] wrote: Congrats Yun Feng
Re: [ANNOUNCE] Welcoming Ted Kirby as a Geronimo Committer
Hi Ted, Congrats. Regards Manu On Thu, Jun 19, 2008 at 8:00 PM, Jay D. McHugh [EMAIL PROTECTED] wrote: Congratulations and Welcome!! Jay Donald Woods wrote: I'd like to welcome Ted Kirby as Geronimo's newest committer. Ted, keep up all the great work on the Eclipse Plugin and welcome aboard! -Donald
Re: remote ejb scalability issue
Hi, I finally got a workaround for this issue. If you use prop.put(Context.INITIAL_CONTEXT_FACTORY, org.apache.openejb.client.RemoteInitialContextFactory); prop.put(java.naming.provider.url, ejbd://127.0.0.1:4201); in your remote client then the issue occurs quite frequently. However if you use 0.0.0.0 as the ip address instead it doesn't. Also due to the fact that this seems to occur only on windows it may be due to some issue in the way windows handles loopback addresses. Regards Manu On Mon, Apr 21, 2008 at 2:44 PM, Manu George [EMAIL PROTECTED] wrote: I also have been getting these errors. I have been unable to figure out the exact reason. But I am guessing that the common factor here seems to be Windows XP SP2. The openejb build itself fails on my Lenovo T60p with Windows XP SP2 with the same error that you get. I also tried with many parallel requests and got the same error. However it runs in Linux in another machine and also in a windows xp single core machine without the problem occurring(need to check whether its SP1 or SP2 but i believe its SP1). However I have not load tested it in the linux machine. However as of now it looks to me like the problem is occurring in WinXP SP2 with dual core processors (common factor for everyone getting this error) Regards Manu On Fri, Apr 18, 2008 at 3:03 PM, Trygve Hardersen [EMAIL PROTECTED] wrote: On 18/04/2008, Jacek Laskowski [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 10:42 PM, Trygve Hardersen [EMAIL PROTECTED] wrote: javax.naming.NamingException: Cannot lookup '/BankManagerFacadeBeanRemote'. [Root exception is java.rmi.RemoteException: Cannot read the response from the server (OEJP/3.0) : null; nested exception is: java.io.EOFException] Hi, Are you by any chance running the tests on t60p machine? T60p as in Lenovo Thinkpad? No, but I have a T61p machine I can test on. Here's a description on my test setup: Machine: Gigabyte 965P DQ6 with Dual Core 2.4 Ghz, 8GB RAM Host OS: Windows Vista SP1, VMWare Workstation 6 Test OS: Windows XP SP2, 2GB RAM, Java 1.6 I also have Ubuntu Server 7.10 virtual machines I can test on, but I haven't run the integration tests on these yet. Will try. Trygve
Re: remote ejb scalability issue
I also have been getting these errors. I have been unable to figure out the exact reason. But I am guessing that the common factor here seems to be Windows XP SP2. The openejb build itself fails on my Lenovo T60p with Windows XP SP2 with the same error that you get. I also tried with many parallel requests and got the same error. However it runs in Linux in another machine and also in a windows xp single core machine without the problem occurring(need to check whether its SP1 or SP2 but i believe its SP1). However I have not load tested it in the linux machine. However as of now it looks to me like the problem is occurring in WinXP SP2 with dual core processors (common factor for everyone getting this error) Regards Manu On Fri, Apr 18, 2008 at 3:03 PM, Trygve Hardersen [EMAIL PROTECTED] wrote: On 18/04/2008, Jacek Laskowski [EMAIL PROTECTED] wrote: On Thu, Apr 17, 2008 at 10:42 PM, Trygve Hardersen [EMAIL PROTECTED] wrote: javax.naming.NamingException: Cannot lookup '/BankManagerFacadeBeanRemote'. [Root exception is java.rmi.RemoteException: Cannot read the response from the server (OEJP/3.0) : null; nested exception is: java.io.EOFException] Hi, Are you by any chance running the tests on t60p machine? T60p as in Lenovo Thinkpad? No, but I have a T61p machine I can test on. Here's a description on my test setup: Machine: Gigabyte 965P DQ6 with Dual Core 2.4 Ghz, 8GB RAM Host OS: Windows Vista SP1, VMWare Workstation 6 Test OS: Windows XP SP2, 2GB RAM, Java 1.6 I also have Ubuntu Server 7.10 virtual machines I can test on, but I haven't run the integration tests on these yet. Will try. Trygve
Re: how to run Ejb program on geronimo
Hi Atul, I am not sure but did you specify the home and remote interfaces in the ejb-jar.xml file? If yes it will be helpful if you can provide a test case. Regards Manu On Tue, Apr 1, 2008 at 4:33 PM, atul12345 [EMAIL PROTECTED] wrote: Actually after resolved jndi name problem i get one new error that is java.lang.ClassCastException: $Proxy0 cannot be cast to My.DemoHome if anyone have any idea what is this so please give me suitable soluation to resolve that problem. atul12345 wrote: Dear Sir, I am new programmer to Geronimo and EJB which are running on gentoo. i am createing stateful session bean like that This is remote Interface.. package My; import java.rmi.*; import javax.ejb.*; public interface DemoInter extends EJBObject { public int add(int a,int b) throws RemoteException; } This is Home Interface.. package My; import javax.ejb.*; import java.rmi.*; public interface DemoHome extends EJBHome { public DemoInter create() throws CreateException,RemoteException; } This is Bean class package My; import java.rmi.*; import javax.ejb.*; public class DemoBean implements SessionBean { public DemoBean() { // TODO Auto-generated constructor stub } public void ejbCreate() { System.out.println(ejbCreate()); } public void ejbRemove() { System.out.println(ejbRemove()); } public void ejbActivate() { System.out.println(ejbActivate()); } public void ejbPassivate() { System.out.println(ejbPassivate()); } public void setSessionContext(SessionContext ctx){} public int add(int a,int b) throws RemoteException { return (a+b); } } open-ejb.xml is where i specified the jndi name 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; enterprise-beans session ejb-nameDemo/ejb-name jndi-nameorg.geronimo.ejbsample.HomeBean/jndi-name /session /enterprise-beans /openejb-jar and this is my client code... import java.util.*; import javax.naming.*; import javax.rmi.*; import My.*; public class Client { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub try { Properties properties=new Properties(); properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, org.apache.openejb.client.RemoteInitialContextFactory); properties.setProperty(Context.PROVIDER_URL, ejbd://localhost:4201 ); Context ctx=new InitialContext(properties); My.DemoHome home=(My.DemoHome)ctx.lookup(java:org.geronimo.ejbsample.HomeBean); My.DemoInter object =home.create(); System.out.println(object.add(12,22)); that is my code, everything is ok means deploy successfully but problem is when i execute client program, that time i get error that is javax.naming.NameNotFoundException: org.geronimo.ejbsample.HomeBean does not exist in the system. Check that the app was successfully deployed. So if anybody know how to resolve this problem then please give me suitable suggestion to resolve this problem.. -- View this message in context: http://www.nabble.com/how-to-run--Ejb-program-on-geronimo-tp16392851s134p16417878.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: how to run Ejb program on geronimo
Hi, The JNDI Name that you have given is not correct. If you see the log files you can find the correct JNDI Name. You will get lines similar to the one below where ejb/mgmt/MRCLocal is the JNDI Name 21:38:02,125 INFO [startup] Jndi(name=ejb/mgmt/MRCLocal) -- Ejb(deployment-id=agent-ejb.jar/ejb/mgmt/MRC) I am guessing that in your case it will be DemoRemote or DemoBeanRemote You just need to lookup ctx.lookup(DemoRemote); I believe there is a bug in openejb whereby it doesn't pick the value in the jndi-name tag and instead uses 3.0 style name generation . Regards Manu On Mon, Mar 31, 2008 at 1:22 PM, atul12345 [EMAIL PROTECTED] wrote: Dear Sir, I am new programmer to Geronimo and EJB which are running on gentoo. i am createing stateful session bean like that This is remote Interface.. package My; import java.rmi.*; import javax.ejb.*; public interface DemoInter extends EJBObject { public int add(int a,int b) throws RemoteException; } This is Home Interface.. package My; import javax.ejb.*; import java.rmi.*; public interface DemoHome extends EJBHome { public DemoInter create() throws CreateException,RemoteException; } This is Bean class package My; import java.rmi.*; import javax.ejb.*; public class DemoBean implements SessionBean { public DemoBean() { // TODO Auto-generated constructor stub } public void ejbCreate() { System.out.println(ejbCreate()); } public void ejbRemove() { System.out.println(ejbRemove()); } public void ejbActivate() { System.out.println(ejbActivate()); } public void ejbPassivate() { System.out.println(ejbPassivate()); } public void setSessionContext(SessionContext ctx){} public int add(int a,int b) throws RemoteException { return (a+b); } } open-ejb.xml is where i specified the jndi name 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; enterprise-beans session ejb-nameDemo/ejb-name jndi-nameorg.geronimo.ejbsample.HomeBean/jndi-name /session /enterprise-beans /openejb-jar and this is my client code... import java.util.*; import javax.naming.*; import javax.rmi.*; import My.*; public class Client { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub try { Properties properties=new Properties(); properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, org.apache.openejb.client.RemoteInitialContextFactory); properties.setProperty(Context.PROVIDER_URL, ejbd://localhost:4201 ); Context ctx=new InitialContext(properties); My.DemoHome home=(My.DemoHome)ctx.lookup(java:org.geronimo.ejbsample.HomeBean); My.DemoInter object =home.create(); System.out.println(object.add(12,22)); that is my code, everything is ok means deploy successfully but problem is when i execute client program, that time i get error that is javax.naming.NameNotFoundException: org.geronimo.ejbsample.HomeBean does not exist in the system. Check that the app was successfully deployed. So if anybody know how to resolve this problem then please give me suitable suggestion to resolve this problem.. -- View this message in context: http://www.nabble.com/how-to-run--Ejb-program-on-geronimo-tp16392851s134p16392851.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, Comments added inline below On Fri, Mar 28, 2008 at 8:41 PM, puneetjain [EMAIL PROTECTED] wrote: Hi, I have one problem with the Stateless Session Bean Instance Pool configuration: I have tried below configuration: module name=org.apache.geronimo.configs/openejb/2.0.2/car gbean name=EJBNetworkService attribute name=port${OpenEJBPort + PortOffset}/attribute attribute name=host${ServerHostname}/attribute /gbean gbean name=DefaultStatelessContainer attribute name=propertiesTimeOut 12 PoolSize 100 StrictPooling true/attribute /gbean /module I want to restrict the pool size to 100 i.e. if there are more than 100 requests come, only 100 requests will be served. Rest of the requests would be waiting until a bean gets free. Yes this is what should happen. At one instant there will be only a 100 SLSBs No more than 100 beans should be instantiated to serve the requests. This will not be true. A pool size of 100 means only a 100 beans at any instant. There will occur certain conditions when bean instances are discarded from the pool and new Instances created With the above configuration the number of instantiate beans is more than the pool size. This should not happen. Keep in mind that there will be 100 beans at one instant and thats all thats guaranteed. However discarding of instances shouldn't be that common normally. Anyway I see that you posted on the openejb lists too and David B has responded so we can continue the discussion there. Environment: = OS: Redhat Enterprise Linux 4 Application Server: Geronimo 2.0.2 with tomcat distribution EJB 3.0 Please help me to resolve the problem. Any reply will be appreciated. Thanks, Puneet Regards Manu manucet wrote: Hi Puneet, Default pool size for stateless is 10 and for stateful is 1000. Regards Manu On Wed, Mar 19, 2008 at 2:33 AM, puneetjain [EMAIL PROTECTED] wrote: 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 GERONIMO_HOME/var/config directory. Please note that the config.xml should be changed when the server is not running. module name=org.apache.geronimo.configs/openejb/2.2-SNAPSHOT/car gbean name=EJBNetworkService attribute name=port${OpenEJBPort + PortOffset}/attribute attribute name=host${ServerHostname}/attribute /gbean gbean name=DefaultStatelessContainer attribute name=propertiesPoolSize=200/attribute /gbean gbean name=DefaultStatefulContainer attribute name=propertiesPoolSize=2000/attribute /gbean /module 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
Re: Deployment error when i deploy my EJB program in Geronimo
Hi, I believe that your application.xml does not conform to the schema. The error message you get is exactly that i.e. you cannot have a resource-ref element inside the application.xml The documentation for Geronimo is at the URL http://geronimo.apache.org/documentation.html. I advise you to read it first .It has examples on many types of j2ee/jee applications. You may need to create geronimo specific deployment plans too in addition to correcting your application.xml Regards Manu On Tue, Mar 25, 2008 at 3:12 PM, newbie-gero [EMAIL PROTECTED] wrote: Hi lists, I have deploy my EJB on Geronimo but it gives out errors. My program has been tested on other application server and it is working fine. I have upload my codes here http://www.nabble.com/file/p16272291/MusicApp.ear MusicApp.ear This is the error it displays: Error: Unable to distribute MusicApp.ear: Could not parse application.xml Invalid deployment descriptor: errors: error: cvc-complex-type.2.4a: Expected element '[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee' instead of '[EMAIL PROTECTED]://java.sun.com/xml/ns/javaee' here in element [EMAIL PROTECTED]://java.sun.com/xml/ns/javaee Descriptor: application xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd; version=5 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; descriptionApplication description/description display-nameMusicDAOApp/display-name resource-ref res-ref-namejdbc/MusicDB/res-ref-name jndi-namejava:/jdbc/MusicDB/jndi-name /resource-ref module web web-uriwar-ic.war/web-uri context-rootmusic/context-root /web /module module ejbejb-jar-ic.jar/ejb /module !--module javaapp-client-ic.jar/java /module-- /application Thanks -- View this message in context: http://www.nabble.com/Deployment-error-when-i-deploy-my-EJB-program-in-Geronimo-tp16272291s134p16272291.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: MDB performance tuning, configuration
oops. Sorry about that Mario. My understanding is that setting the instanceLimit to 0 should prevent the mdb container from limiting instances. However there are a few other known issues with mdbs and AMQ and one of them must have kicked in. David Jencks I believe has fixed them all but you will need to update to version of AMQ containing his fixes. regards Manu On Mon, Mar 24, 2008 at 9:55 PM, David Jencks [EMAIL PROTECTED] wrote: There are a bunch of problems getting mdbs w/transactions to work. I think I've fixed all of them in activemq and hope to be pushing a new activemq 4.1.2 snapshot in the next few days and these fixes should be available in 2.1.1. Meanwhile be sure: the openejp instanceLimit = maxSessions (maybe setting it to 0 also works, I'm not sure) the maxMessagesPerSession = maxSessions Which transport are you using? I've only tested with the (fixed) vm transport (AMQ-1438) thanks david jencks On Mar 24, 2008, at 5:03 AM, the666pack wrote: ok as it is just a test server i had a quick setup session and got a clean server again. i hope i dont run into the problem anymore now.. i will keep some backup server just in case ;) the666pack wrote: hallo, it seems i completely messed up with my MDB application now. i tried the activation spec that you mentioned and it worked fine. then i thought ia lso try to set the InstanceLimit to 0. so i went to the config.xml file and changed the MDB\ Container\ InstanceLimit=0 wrong thing to do. after that i did not receive the wanted updates anymore in the database. i increased the value again to maxPool size.. and since that at startup of the server or at deploy time i always realize that some messages are delivered but then it stops again. i dont even send messages anymore, the messages that are delivered are from a test 2 hours ago! i also tried to restart the database, restart the server, computer, everything. and tried to start with an empty db. the only thing i realize is that at startup or deploytime of my application it sends some 10 messages to the queue and after this it stops. by the way.. i already set the values back to their initial state.. but no effect.. i keep having this error and not possible to deliver any new messages.. just everytime i start i see more 10 values being changed in the database. can anyone help me, please. thanks, mario manucet wrote: You may have tried this out but increasing the maxMessagesPerSession activation config property will increase the prefetch size and generally speed it up a bit more. I assume u have already increased the maxSessions activation config property to increase the no of parallel Mdb instances. Here is a link for the properties that AMQ allows http://activemq.apache.org/activation-spec- properties.html. The configurable OpenEJB properties are given here http://openejb.apache.org/example-generated-documentation.html. Try setting the InstanceLimit property of the MdbContainer to 0 so that the no of instances created matches the no of AMQ sessions available. For setting this you need to set this as a system property. The property should be containerId.InstanceLimit where containerId is of the format artifactId.Resource Group Name-listener interface eg: org.apache.geronimo.configs/activemq-ra/2.2-SNAPSHOT/ car.ActiveMQ RA-javax.jms.MessageListener ie artifactId = artifactId of the jms RA Resource Group Name - The resource Group name u gave while creating the RA listener interface - javax.jms.MessageListener in this case So the property in this case can be set as org.apache.geronimo.configs/activemq-ra/2.2-SNAPSHOT/car.ActiveMQ\ RA-javax.jms.MessageListener.InstanceLimit=0 Regards Manu On Sun, Mar 23, 2008 at 4:49 PM, the666pack [EMAIL PROTECTED] wrote: hello, i am trying to test the performance of geronimo under load for message driven beans. the observed behaviour is that i get a maximum of about 85 transactions per second. after this, tested with about 60 concurrent users, the performance drops again to about 45 tps. i hoped to increase the performance somehow.. things i already tried: -increase the mdb pool size -increase the thread pool size -increase the connector-thread-pool-size unfortunately nothing helped, the performance situation remains the same. another observed behaviour is that in the time of silence between tests the server needs some time to fulfill the requests sent before. so i see it is still working although i am not sending mdb-requests anymore. i suppose these are the requests that are still in the queue and have to be finished. i think this is the reason for the
Re: MDB performance tuning, configuration
Did you try setting maxMessagesPerSession = maxSessions? maxMessagesPerSession is the prefetch size. This may work. Anyway this is the very same error that david jencks has fixed. https://issues.apache.org/jira/browse/GERONIMO-3783. You will need to build and use the latest geronimo version from trunk as well as the latest openejb and amq versions inorder to get the fix. Regards Manu On Mon, Mar 24, 2008 at 10:43 PM, the666pack [EMAIL PROTECTED] wrote: so sorry for the 1000 messages today.. just want to add something to this topic once more: i have my server up now again with the old behaviour (2.0.2): mdbs get queued up til some point the performance increases (65 concurrent users - transactions per second about 85 transactions/sec) then the performance decreases again. in the end of my test i have to wait another 2 minutes til the messages in the queue are finished at the server. your proposal: the problem i have is that when i include the activation config as you told me to do, like: @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = destinationType, propertyValue = javax.jms.Queue), @ActivationConfigProperty(propertyName = maxSessions, propertyValue = 32), @ActivationConfigProperty(propertyName = destination, propertyValue = queue/videoupdate)}) the MDB stops delivering after some time and then i have the problem i already mentioned above: somehow there seem to be messages hanging in the queue and anytime i start the server some more 10 messages are processed. but i cannot send messages anymore to the server because it just works on some old orphaned messages from the test-run before. the only solution i got from that point on is to start with a fresh clean server as i dont knwo how to flush the queue or something similar. if i on the other hand dont change the maxSessions activation config and just set the MDB Container InstanceLimit to 0 no significant performance increase is experienced. if someone can help more with this error i get i would be very happy. thanks a lot in advance, mario the666pack wrote: ok as it is just a test server i had a quick setup session and got a clean server again. i hope i dont run into the problem anymore now.. i will keep some backup server just in case ;) the666pack wrote: hallo, it seems i completely messed up with my MDB application now. i tried the activation spec that you mentioned and it worked fine. then i thought ia lso try to set the InstanceLimit to 0. so i went to the config.xml file and changed the MDB\ Container\ InstanceLimit=0 wrong thing to do. after that i did not receive the wanted updates anymore in the database. i increased the value again to maxPool size.. and since that at startup of the server or at deploy time i always realize that some messages are delivered but then it stops again. i dont even send messages anymore, the messages that are delivered are from a test 2 hours ago! i also tried to restart the database, restart the server, computer, everything. and tried to start with an empty db. the only thing i realize is that at startup or deploytime of my application it sends some 10 messages to the queue and after this it stops. by the way.. i already set the values back to their initial state.. but no effect.. i keep having this error and not possible to deliver any new messages.. just everytime i start i see more 10 values being changed in the database. can anyone help me, please. thanks, mario manucet wrote: You may have tried this out but increasing the maxMessagesPerSession activation config property will increase the prefetch size and generally speed it up a bit more. I assume u have already increased the maxSessions activation config property to increase the no of parallel Mdb instances. Here is a link for the properties that AMQ allows http://activemq.apache.org/activation-spec-properties.html. The configurable OpenEJB properties are given here http://openejb.apache.org/example-generated-documentation.html. Try setting the InstanceLimit property of the MdbContainer to 0 so that the no of instances created matches the no of AMQ sessions available. For setting this you need to set this as a system property. The property should be containerId.InstanceLimit where containerId is of the format artifactId.Resource Group Name-listener interface eg: org.apache.geronimo.configs/activemq-ra/2.2-SNAPSHOT/car.ActiveMQ RA-javax.jms.MessageListener ie artifactId = artifactId of the jms RA Resource Group Name - The resource Group name u gave while creating the RA listener interface - javax.jms.MessageListener in this case So the property in this case can be set as
Re: MDB performance tuning, configuration
You may have tried this out but increasing the maxMessagesPerSession activation config property will increase the prefetch size and generally speed it up a bit more. I assume u have already increased the maxSessions activation config property to increase the no of parallel Mdb instances. Here is a link for the properties that AMQ allows http://activemq.apache.org/activation-spec-properties.html. The configurable OpenEJB properties are given here http://openejb.apache.org/example-generated-documentation.html. Try setting the InstanceLimit property of the MdbContainer to 0 so that the no of instances created matches the no of AMQ sessions available. For setting this you need to set this as a system property. The property should be containerId.InstanceLimit where containerId is of the format artifactId.Resource Group Name-listener interface eg: org.apache.geronimo.configs/activemq-ra/2.2-SNAPSHOT/car.ActiveMQ RA-javax.jms.MessageListener ie artifactId = artifactId of the jms RA Resource Group Name - The resource Group name u gave while creating the RA listener interface - javax.jms.MessageListener in this case So the property in this case can be set as org.apache.geronimo.configs/activemq-ra/2.2-SNAPSHOT/car.ActiveMQ\ RA-javax.jms.MessageListener.InstanceLimit=0 Regards Manu On Sun, Mar 23, 2008 at 4:49 PM, the666pack [EMAIL PROTECTED] wrote: hello, i am trying to test the performance of geronimo under load for message driven beans. the observed behaviour is that i get a maximum of about 85 transactions per second. after this, tested with about 60 concurrent users, the performance drops again to about 45 tps. i hoped to increase the performance somehow.. things i already tried: -increase the mdb pool size -increase the thread pool size -increase the connector-thread-pool-size unfortunately nothing helped, the performance situation remains the same. another observed behaviour is that in the time of silence between tests the server needs some time to fulfill the requests sent before. so i see it is still working although i am not sending mdb-requests anymore. i suppose these are the requests that are still in the queue and have to be finished. i think this is the reason for the performance drop with more concurrent users. i would like to see it perform without this aftertime-working and handle the requests in time. maybe someone can give me a hint which other values could be important to change for the performance of mdbs getting real good. i thank you very much for your help, greetings, mario -- View this message in context: http://www.nabble.com/MDB-performance-tuning%2C-configuration-tp16234678s134p16234678.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 Puneet, Default pool size for stateless is 10 and for stateful is 1000. Regards Manu On Wed, Mar 19, 2008 at 2:33 AM, puneetjain [EMAIL PROTECTED] wrote: 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 GERONIMO_HOME/var/config directory. Please note that the config.xml should be changed when the server is not running. module name=org.apache.geronimo.configs/openejb/2.2-SNAPSHOT/car gbean name=EJBNetworkService attribute name=port${OpenEJBPort + PortOffset}/attribute attribute name=host${ServerHostname}/attribute /gbean gbean name=DefaultStatelessContainer attribute name=propertiesPoolSize=200/attribute /gbean gbean name=DefaultStatefulContainer attribute name=propertiesPoolSize=2000/attribute /gbean /module 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 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 GERONIMO_HOME/var/config directory. Please note that the config.xml should be changed when the server is not running. module name=org.apache.geronimo.configs/openejb/2.2-SNAPSHOT/car gbean name=EJBNetworkService attribute name=port${OpenEJBPort + PortOffset}/attribute attribute name=host${ServerHostname}/attribute /gbean gbean name=DefaultStatelessContainer attribute name=propertiesPoolSize=200/attribute /gbean gbean name=DefaultStatefulContainer attribute name=propertiesPoolSize=2000/attribute /gbean /module 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: Relation between MDB's instances, instanceLimit and threads
Hi Beniamin, The JIRA explains what changes need to be made to AMQ code. You can try checking out AMQ 4.1.1. from the AMQ site (http://svn.apache.org/repos/asf/activemq/tags/activemq-4.1.1/) and making the change as mentioned in the JIRA. The change is in the method getServerSession of the class org.apache.activemq.ra.ServerSessionPoolImpl. The line number is 120. You just need to change the if condition from if (idleSessions.size() == 0) to if (activeSessions.size() == 0). I have tried this out and for me it even solves the problem that we need to give maxMessagesPerSession == maxSessions. I tested with maxSessions =10 and maxMessagesPerSession = 100 and it was able to process 4000 messages (4 requests of 1000 each) without any being left in the queue. I know that there are many other combinations I have not tried yet and I cannot vouch that they will work but if still you get the problem after applying this patch we will know that there is some other problem also. Regards Manu On Thu, Mar 13, 2008 at 4:51 AM, Tomasz Mazan [EMAIL PROTECTED] wrote: David Jencks pisze: Does fixing the activeMQ bug https://issues.apache.org/activemq/browse/AMQ-1618 help with any of these problems? I would find it very difficult to analyze other failures until this is fixed. thanks david jencks I hope it will do, but now - as I understand - I can only wait for this patch included in next Geronimo release. What is expected date of this ActiveMQ patch ? Beniamin
Re: Relation between MDB's instances, instanceLimit and threads
Hi Beniamin, You can also set the InstanceLimit to 0 to disable the limiting on the MdbContainer side. This may help you too as the bug in AMQ occurs when the openejb container tries to limit the no of sessions to the instanceLimit specified. Regards Manu On Thu, Mar 13, 2008 at 3:48 PM, Manu George [EMAIL PROTECTED] wrote: Hi Beniamin, The JIRA explains what changes need to be made to AMQ code. You can try checking out AMQ 4.1.1. from the AMQ site (http://svn.apache.org/repos/asf/activemq/tags/activemq-4.1.1/) and making the change as mentioned in the JIRA. The change is in the method getServerSession of the class org.apache.activemq.ra.ServerSessionPoolImpl. The line number is 120. You just need to change the if condition from if (idleSessions.size() == 0) to if (activeSessions.size() == 0). I have tried this out and for me it even solves the problem that we need to give maxMessagesPerSession == maxSessions. I tested with maxSessions =10 and maxMessagesPerSession = 100 and it was able to process 4000 messages (4 requests of 1000 each) without any being left in the queue. I know that there are many other combinations I have not tried yet and I cannot vouch that they will work but if still you get the problem after applying this patch we will know that there is some other problem also. Regards Manu On Thu, Mar 13, 2008 at 4:51 AM, Tomasz Mazan [EMAIL PROTECTED] wrote: David Jencks pisze: Does fixing the activeMQ bug https://issues.apache.org/activemq/browse/AMQ-1618 help with any of these problems? I would find it very difficult to analyze other failures until this is fixed. thanks david jencks I hope it will do, but now - as I understand - I can only wait for this patch included in next Geronimo release. What is expected date of this ActiveMQ patch ? Beniamin
Re: How to set timeout for stateful session bean?
Hi SergZ, What do you want to configure?. The link you provided gives the configuration information. The list of configurable container specific properties for openejb is given below http://openejb.apache.org/example-generated-documentation.html. Thanks to Dain for generating this really useful doc. You can set the properties via ContainerId.property name eg: Default Mdb Container.InstanceLimit=15 in the case of setting the instance limit of the container with id Default Mdb Container to 15. Someone correct me if I am wrong :) You can either set the property via command line or via the config.xml. Setting via config.xml needs you to add a Gbean of type SystemProperties to the j2ee-server configuration module name=org.apache.geronimo.configs/j2ee-server/2.0.1/car gbean gbeanInfo=org.apache.geronimo.system.properties.SystemProperties name=org.apache.geronimo.configs/j2ee-server/2.0.1/car?ServiceModule=org.apache.geronimo.configs/j2ee-server/2.0.1/car,j2eeType=GBean,name=CustomPropertiesGBean attribute name=systemPropertiesDefault\ MDB\ Container.InstanceLimit=20/attribute /gbean /module Regards Manu On Feb 7, 2008 10:57 PM, SergZ [EMAIL PROTECTED] wrote: I could not find this information for neither openejb-jar.xml nor configuring geronimo app server. Is the simple solution instead of described this http://www.nabble.com/Geronimo-2.0:-customize-EJB-Container-settings-td15072400s134.html (looking for it in openejb container source)? -- View this message in context: http://www.nabble.com/How-to-set-timeout-for-stateful-session-bean--tp15338827s134p15338827.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Strange plug with delivering messages to MDB
Hi, I have faced this problem. The work around was to set both maxMessagesPerSessions and maxSessions to the same value and ensure that it is less than the instanceLimit of the MdbContainer (By default it is 10) but configurable via system properties. I have added a comment to the JIRA explaining the same. Regards Manu On Jan 24, 2008 3:12 AM, Jacek Laskowski [EMAIL PROTECTED] wrote: On Jan 23, 2008 6:19 PM, Kevan Miller [EMAIL PROTECTED] wrote: I probably won't have a chance to look at this until this weekend... Me too and that's why I'm quiet lately. Had to finish some other assignments (cf. openejb). Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl
Re: Strange plug with delivering messages to MDB
To explain further maxSessions and maxMessagesPerSessions activation config properties are 10 by default and so is the MdbContainer instanceLimit. maxMessagePerSessions is actually the prefetch size and maxSessions is the no of parallel sessions. In case you want to use maxMessagesPerSessions as 1 i.e fetch only 1 message from queue at a time for a listener then you need to set maxSession also as 1 and it will process all the messages albeit sequentially. I am not sure why maxSessions and maxMessagesPerSessions should always be the same for the Mdbs to work but i guess it is something AMQ related. On Jan 27, 2008 12:32 AM, Manu George [EMAIL PROTECTED] wrote: Hi, I have faced this problem. The work around was to set both maxMessagesPerSessions and maxSessions to the same value and ensure that it is less than the instanceLimit of the MdbContainer (By default it is 10) but configurable via system properties. I have added a comment to the JIRA explaining the same. Regards Manu On Jan 24, 2008 3:12 AM, Jacek Laskowski [EMAIL PROTECTED] wrote: On Jan 23, 2008 6:19 PM, Kevan Miller [EMAIL PROTECTED] wrote: I probably won't have a chance to look at this until this weekend... Me too and that's why I'm quiet lately. Had to finish some other assignments (cf. openejb). Jacek -- Jacek Laskowski http://www.JacekLaskowski.pl
Re: Geronimo 2.0.1 ClassLoader seperation
Hi Peter, One way I can think of is calling the ejb like you will call from a remote standalone java client on another machine. The following properties would then be used to get an InitialContext from the Remote Server. java.naming.factory.initial = org.apache.openejb.client.RemoteInitialContextFactory java.naming.provider.url = ejbd://127.0.0.1:4201 java.naming.security.principal = myuser java.naming.security.credentials = mypass You will only need to have the business interfaces in the case of ejb3 or remote/home interfaces in the case of ejb 2.1 Regards Manu On 10/18/07, ptriller [EMAIL PROTECTED] wrote: Hello ! I hava a problem. I need to integrade a 3rd party library in my Application, but the Library has several classname / jar version collisions with my webapp. So I thought I's seperate the two applications and do the method calls over a remote ejb interface. But I didnt get it to work the way I wanted. seems the remote ejb import with a geronimo-web.xml only works if I add my EAR as dependency but that would add it to my classpath, which is exactly what I wanted to avoid. Is there any way to get the EJBs without adding the app as dependency ? Thanks Peter -- View this message in context: http://www.nabble.com/Geronimo-2.0.1-ClassLoader-seperation-tf4648000s134.html#a13277742 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: not a NamedXAResource while ack a JMS Message, Oracle XA Plugin?
Hi David, I had attached a patch for this very issue in 2.0 in AMQ and OpenEJB. Some comments from you would be appreciated . https://issues.apache.org/activemq/browse/AMQ-1438 https://issues.apache.org/jira/browse/OPENEJB-702 https://issues.apache.org/jira/browse/GERONIMO-3354 Even if I pass as name for the NamedXAResource in OpenEJB a hang occurs in AMQ. With this hack I am able to get rid of the error that Geronimo throws as well as the hang. All the tests pass in Openejb as well. I know it needs a bit of cleanup but I need confirmation if this is the right approach. Also what should be the name passed for the XAResource? Is xaResource.toString() ok? Thanks Manu On 10/15/07, David Jencks [EMAIL PROTECTED] wrote: There's a tranql oracle xa wrapper that's included in geronimo 2.0.2 (under vote) or available from maven repos but the problem here is in openejb: the mdb handling doesn't register properly with the geronimo transaction manager. thanks david jencks On Oct 15, 2007, at 7:16 AM, Jochen Zink wrote: Hello, I'm using Geronimo 2.0.1 with a Oracle 9.2 Database. A MDB make some DB-Operations with Container Managed Transaction. After the MDB is complete, and the Container acknoledges the Message, the follwoing Exception is thrown. I read something about a Oracle XA Plugin, but I only found one for Geronimo 1.1.1. Is there already a plugin for Geronimo 2.0.1, which I have not found? Thanks a lot Regards Jochen 12:03:09,312 ERROR [Transaction] Please correct the integration and supply a NamedXAResource java.lang.IllegalStateException: Cannot log transactions as [EMAIL PROTECTED] is not a NamedXAResource. at org.apache.geronimo.transaction.manager.TransactionImpl $TransactionBranch.getResourceName(TransactionImpl.java:697) at org.apache.geronimo.transaction.log.HOWLLog.prepare(HOWLLog.java:254) at org.apache.geronimo.transaction.log.HOWLLog$$FastClassByCGLIB$ $7315be2e.invoke(generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke (FastMethodInvoker.java:38) 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.transaction.manager.TransactionLog$ $EnhancerByCGLIB$$528ed9c4.prepare(generated) at org.apache.geronimo.transaction.manager.TransactionImpl.internalPrepar e(TransactionImpl.java:444) at org.apache.geronimo.transaction.manager.TransactionImpl.commit (TransactionImpl.java:316) at org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit( TransactionManagerImpl.java:238) at org.apache.openejb.core.transaction.TransactionPolicy.commitTransactio n(TransactionPolicy.java:139) at org.apache.openejb.core.transaction.TxRequired.afterInvoke (TxRequired.java:75) at org.apache.openejb.core.mdb.MdbContainer.afterDelivery (MdbContainer.java:375) at org.apache.openejb.core.mdb.EndpointHandler.afterDelivery (EndpointHandler.java:274) at org.apache.openejb.core.mdb.EndpointHandler.invoke (EndpointHandler.java:164) at $Proxy39.afterDelivery(Unknown Source) at org.apache.activemq.ra.MessageEndpointProxy $MessageEndpointAlive.afterDelivery(MessageEndpointProxy.java:126) at org.apache.activemq.ra.MessageEndpointProxy.afterDelivery (MessageEndpointProxy.java:65) at org.apache.activemq.ra.ServerSessionImpl.afterDelivery (ServerSessionImpl.java:216) at org.apache.activemq.ActiveMQSession.run(ActiveMQSession.java:751) at org.apache.activemq.ra.ServerSessionImpl.run(ServerSessionImpl.java: 165) at org.apache.geronimo.connector.work.WorkerContext.run (WorkerContext.java:290) at org.apache.geronimo.connector.work.pool.NamedRunnable.run (NamedRunnable.java:32) at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:201) at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run (ThreadPool.java:331) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask (ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) __ _ Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/? mc=00
Re: Deployment/Classpath problem while migrating from G1.1 to G2.0M6
Mario, Looks strange. But Did u redeploy with these changes? Or did u just replace in the extracted directory? In case u did redeploy then i think you should open a jira. It would be a good idea to put in a test case replicating the problem. That would help in getting a fix in faster. Regards Manu On 7/6/07, Mario Ruebsam [EMAIL PROTECTED] wrote: Manu, I tried this also, but the error message is the same. I tried to move all classes in one eiservice.jar and put it in the WEB-INF/lib but also this error message. Now it tried to put all classes in WEB-INF/classes. And strangely the same error with the eiservice.jar! But there was no file named eiservice.jar any longer. Between all tests I manually cleaned the repository directory with the half deployed app and also removed it from config.xml . So my guess was the deployer expects a JAR in the main EAR dir with the basename of the ear and the jar extension. This is normally where the EJBs go in. But I have none of them. I created an empty JAR with the expected name only with an empty Manifest in it and now the deploy works also. For my knowledge of the specs the ejb.jar file is not needed to deploy a web application in an EAR. Should I open a Jira for this or does anybody know if the current snapshot solved this problem? Thanks, Mario Manu George wrote: Hi, Can you try removing the manifest entries. They are not needed since all referred jars are in web-inf/lib. So it may work without them. Regards Manu On 7/5/07, Mario Rübsam [EMAIL PROTECTED] wrote: Some further investigation on the problem showed that the libraries are found when they are all in the EARs root directory and not in client.war/WEB-INF/lib. It is standard behavior to have the libraries in the WEB-INF/lib, so I guess its a bug in the deployer for EARs or do I have to explicitly list the needed jars in the geronimo-web.xml like the repository dependencies? Thanks, Mario Mario Ruebsam wrote: When deploying my app which works on G1.1 on the G2.0M6 server I get the following error message: -- Error: Unable to distribute eiservice.ear: Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2): jarFile=D:\opt\as\geronimo-2.0\repository\coderesearch\ei-service\app\2.5\app-2.5.car\eiservice.jar, path=eiservice.jar D:\opt\as\geronimo-2.0\repository\coderesearch\ei-service\app\2.5\app-2.5.car\eiservice.jar (The system cannot find the file specified) -- The missing jar file is in the WEB-INF/lib directory, in this particular case: D:\opt\as\geronimo-2.0\repository\coderesearch\ei-service\app\2.5\app-2.5.car\client.war\WEB-INF\lib\eiservice.jar The servlet code and the manifest declaring the classpath is also only in this file and referencing some other jars from the WEB-INF/lib. The EAR structure is: eiservice.ear/ META-INF/ application.xml geronimo-application.xml geronimo-web.xml client.war/ WEB-INF/ web.xml lib/ eiservice.jar abp.jar opencpa.jar found.jar the MANIFEST.MF content from the eiservice.jar is: -- Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: CODERESEARCH Class-Path: found.jar opencpa.jar abp.jar -- It worked fine with G1.1 and yes, I converted the deployment plans to G2.0 schemas. For me it looks like the deployer looks in the wrong path or the library with the Class-Path entry is assumed to be in the EARs root. Thanks, Mario
Re: ClassCastException when using a self written TypeConverter
I remember facing a similar issue and I think that there is a bug with the TypeConverter stuff in OpenEJB. I would second Gianny's advice to use Geronimo 2.0 and OEJB 3.0 and get back if there are issues there. Regards Manu On 7/5/07, Gianny Damour [EMAIL PROTECTED] wrote: On 05/07/2007, at 10:34 PM, MoleSon wrote: Could not deploy module org.apache.geronimo.common.DeploymentException: Could not deploy module ... Caused by: org.apache.geronimo.common.DeploymentException: Cannot create type converter mypackage.MyTypeConverter at org.openejb.deployment.SchemataBuilder.processEnterpriseBeans (SchemataBuilder.java:436) ... 32 more Caused by: java.lang.ClassCastException: mypackage.MyTypeConverter at org.openejb.deployment.SchemataBuilder.processEnterpriseBeans (SchemataBuilder.java:434) ... 33 more I had a look at the geronimo source code and notices that the Exception is thrown at these lines in the ScemataBuilder: try { Class typeConverterClass = cl.loadClass(mapping.getTypeConverter ().trim()); typeConverter = (TypeConverter)typeConverterClass.newInstance(); } catch(Exception e) { throw new DeploymentException(Cannot create type converter + mapping.getTypeConverter(), e); } It is hard to diagnostic. Could you please put a breakpoint after cl.loadClass and tell us what the value of MultiParentClassLoader.id is? Also, I strongly recommend you to migrate to the latest version of Geronimo/OpenEJB, which uses OpenJPA as the underlying persistence framework for CMPs. This migration should be effortless as you do not need to change your OpenEJB deployment descriptors. Furthermore, you will also be able to leverage the simplified programming model of EJB3. Thanks, Gianny
Re: Deployment/Classpath problem while migrating from G1.1 to G2.0M6
Hi, Can you try removing the manifest entries. They are not needed since all referred jars are in web-inf/lib. So it may work without them. Regards Manu On 7/5/07, Mario Rübsam [EMAIL PROTECTED] wrote: Some further investigation on the problem showed that the libraries are found when they are all in the EARs root directory and not in client.war/WEB-INF/lib. It is standard behavior to have the libraries in the WEB-INF/lib, so I guess its a bug in the deployer for EARs or do I have to explicitly list the needed jars in the geronimo-web.xml like the repository dependencies? Thanks, Mario Mario Ruebsam wrote: When deploying my app which works on G1.1 on the G2.0M6 server I get the following error message: -- Error: Unable to distribute eiservice.ear: Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2): jarFile=D:\opt\as\geronimo-2.0\repository\coderesearch\ei-service\app\2.5\app-2.5.car\eiservice.jar, path=eiservice.jar D:\opt\as\geronimo-2.0\repository\coderesearch\ei-service\app\2.5\app-2.5.car\eiservice.jar (The system cannot find the file specified) -- The missing jar file is in the WEB-INF/lib directory, in this particular case: D:\opt\as\geronimo-2.0\repository\coderesearch\ei-service\app\2.5\app-2.5.car\client.war\WEB-INF\lib\eiservice.jar The servlet code and the manifest declaring the classpath is also only in this file and referencing some other jars from the WEB-INF/lib. The EAR structure is: eiservice.ear/ META-INF/ application.xml geronimo-application.xml geronimo-web.xml client.war/ WEB-INF/ web.xml lib/ eiservice.jar abp.jar opencpa.jar found.jar the MANIFEST.MF content from the eiservice.jar is: -- Manifest-Version: 1.0 Ant-Version: Apache Ant 1.7.0 Created-By: CODERESEARCH Class-Path: found.jar opencpa.jar abp.jar -- It worked fine with G1.1 and yes, I converted the deployment plans to G2.0 schemas. For me it looks like the deployer looks in the wrong path or the library with the Class-Path entry is assumed to be in the EARs root. Thanks, Mario
Re: [ANNOUNCE] Welcome Jay McHugh as Geronimo's latest committer
Congrats Jay On 6/26/07, Vamsavardhana Reddy [EMAIL PROTECTED] wrote: Congratulations Jay! Vamsi On 6/23/07, Matt Hogstrom [EMAIL PROTECTED] wrote: I think everyone knows Jay and I have the honor of announcing that he recently accepted an invitation to join the Apache Geronimo project. Jay has been working with Geronimo for several months now and is one of those folks that brings a great perspective of someone who not only works on the server but uses it as well. It will be great to see the contributions Jay brings to the project. Matt
Re: Geronimo Start up Problem -Cannot bind to URL [rmi://0.0.0.0:1099/JMXConnector
Hi Kamal, It could be that the ip 0.0.0.0 is not mapped to the host name localhost. Also map localhost to 127.0.0.1 Usually many linux versions have default name as localhost.localdomain. This also may cause similar problems. Changing them to localhost may also be helpful. Regards Manu On 6/14/07, Kamalanathan Raman [EMAIL PROTECTED] wrote: *Hi all,* * * *Iam using Geronimo 1.1.1 , when I try to start the Geronimo deployed in my Linux machine , iam getting the following error.* *Can any one of u give me a pointer on this. Ur inputs are highly appreciated.* java.io.IOException: Cannot bind to URL [rmi://0.0.0.0:1099/JMXConnector]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 0.0.0.0; nested exception is: java.net.ConnectException: Connection timed out] at javax.management.remote.rmi.RMIConnectorServer.newIOException( RMIConnectorServer.java:814) at javax.management.remote.rmi.RMIConnectorServer.start( RMIConnectorServer.java:431) at org.apache.geronimo.jmxremoting.JMXConnector.doStart( JMXConnector.java:190) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance( GBeanInstance.java:981) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart( GBeanInstanceState.java:267) 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:540) at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean( BasicKernel.java:379) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans (ConfigurationUtil.java:374) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start( KernelConfigurationManager.java:187) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration (SimpleConfigurationManager.java:527) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration (SimpleConfigurationManager.java:508) at org.apache.geronimo.kernel.config.SimpleConfigurationManager$$FastClassByCGLIB$$ce77a924.invoke (generated) at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke( FastMethodInvoker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke( GBeanOperation.java:122) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke( GBeanInstance.java:817) 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.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$f59f9eb1.startConfiguration (generated) at org.apache.geronimo.system.main.Daemon.doStartup( Daemon.java:297) at org.apache.geronimo.system.main.Daemon.init(Daemon.java :74) at org.apache.geronimo.system.main.Daemon.main(Daemon.java :377) Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 0.0.0.0; nested exception is: java.net.ConnectException: Connection timed out] at com.sun.jndi.rmi.registry.RegistryContext.bind( RegistryContext.java:122) at com.sun.jndi.toolkit.url.GenericURLContext.bind( GenericURLContext.java:208) at javax.naming.InitialContext.bind(InitialContext.java:359) at javax.management.remote.rmi.RMIConnectorServer.bind( RMIConnectorServer.java:635) at javax.management.remote.rmi.RMIConnectorServer.start( RMIConnectorServer.java:427) ... 23 more Caused by: java.rmi.ConnectException: Connection refused to host: 0.0.0.0; nested exception is: java.net.ConnectException: Connection timed out at sun.rmi.transport.tcp.TCPEndpoint.newSocket( TCPEndpoint.java:574) at sun.rmi.transport.tcp.TCPChannel.createConnection( TCPChannel.java:185) at sun.rmi.transport.tcp.TCPChannel.newConnection( TCPChannel.java:171) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306) at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source) at com.sun.jndi.rmi.registry.RegistryContext.bind( RegistryContext.java:116) ... 27 more Caused by: java.net.ConnectException: Connection timed out at
Re: Deployment of message driven bean in geronimo 2.0-m5
Hi Bruno, At first glance you seem to be missing @ActivationConfigProperty(propertyName=destination, propertyValue = your-queue-name. @MessageDriven annotation's name attribute is the name of the bean and not the queue. Also you can try adding a geronimo specific deployment descriptor (openejb-jar.xml) where you may need to give a dependency to the module in which the queue is defined(RA module you deployed). Anyway the NullPointer looks like a bug as there should be error handling. You can raise a JIRA. regards Manu On 5/9/07, Bruno Aranda [EMAIL PROTECTED] wrote: Hi there, I am testing ejb 3.0 message driven beans and I was trying to deploy in geronimo a simple jar containing a simple MDB. I am not using the ejb-jar.xml as I want the container to discover the class. Whenever I try to deploy it with the console, I get a NullPointerException when deploying the ejb: 14:33:10,962 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName=default/intact-monitor-ear-1.0-SNAPSHOT/1178717578039/car?J2EEApplication=default/intact-monitor-ear-1.0-SNAPSHOT/1178717578039/car,j2eeType=EJBModule,name=ejbs-1.0-SNAPSHOT.jar org.apache.openejb.OpenEJBException: Creating application failed: C:\dev\geronimo-tomcat6-jee5-2.0-M5\var\temp\geronimo-deploymentUtil58027.tmpdir: Error building bean 'MessageConsumer'. Exception: class java.lang.NullPointerException: null: null at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:494) at org.apache.openejb.assembler.classic.Assembler.createEjbJar(Assembler.java:326) at [...] org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$979ad769.startConfiguration(generated) at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.openejb.OpenEJBException: Error building bean 'MessageConsumer'. Exception: class java.lang.NullPointerException: null: null at org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:65) at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:398) ... 34 more Caused by: java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:336) at org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:60) ... 35 more It seems that the nullpointer is due to the EjbJarBuilder returning null for ejbInfo.containerId... Any ideas? Is this supposed to work? This is my simple class, packaged in a jar: @MessageDriven(name=jms/testQueue, activationConfig = { @ActivationConfigProperty(propertyName = acknowledgeMode, propertyValue = Auto-acknowledge), @ActivationConfigProperty(propertyName = destinationType, propertyValue = javax.jms.Queue) }) public class MessageConsumer implements MessageListener { public void onMessage(Message message) { System.out.println(MESSAGE! ); } } Thank you in advance, Bruno
Re: Can not access ejb in different ear
Hi You need to give a dependency in the second ear to the first ear. Also you need to use ejb-link.The ejb-ref-name element is for specifying the jndi name under which we can find the reference. The link below refers to a previous response to the same Question http://mail-archives.apache.org/mod_mbox/geronimo-user/200608.mbox/[EMAIL PROTECTED] Regards Manu On 4/24/07, mahu2425 [EMAIL PROTECTED] wrote: Hi there, I created an entity bean in an ejb project, packaged everything in an ear file and deployed it to my Geronimo 1.1.1 server. The entity bean works fine as long as all calls to the bean are from inside the same ejb project (let's call it ejb1.jar packaged in ear1.ear). I tried to call the bean from another ejb project (ejb2.jar packaged in ear2.ear), but I can not manage to call the bean from the other ear file. My ejb-jar.xml file in ejb2.jar contains the following part: session display-nameMyDemo/display-name ejb-nameMyDemo/ejb-name homecom.demo.MyDemoHome/home remotecom.demo.MyDemo/remote service-endpointcom.demo.MyDemoSEI/service-endpoint ejb-classcom.demo.MyDemoBean/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type ejb-ref ejb-ref-nameejb/MyFirstDemo/ejb-ref-name !-- This this matches jndi-name in the other ejb/ear file -- ejb-ref-typeEntity/ejb-ref-type homecom.firstdemo.MyFirstDemoHome/home remotecom.firstdemo.MyFirstDemo/remote /ejb-ref /session Geronimo 1.1.1 is not able to find the required bean and throws an error during deployment. The ear2.ear file contains the following stuff: - ejb2.jar file - client stubs from the ejb1.jar Has anybody an idea what might be missing im my deployment plan or could help me out with a working deployment plan? Thanks in advance, Markus Benachrichtigung bei E-Mail Empfang! - http://mail.lycos.de/app/lycosinside/setupLI.exe
Re: java.lang.NoSuchMethodError - Reg
Hi Kamal, Can you mention what version of Geronimo you are using. Also can you explain how you are looking up this datasource. Have you configured a resource-ref? Have you created the datasource in console etc. Also helpful to put the plans and a snippet of the code where the lookup is done Thanks Manu On 1/11/07, Kamalanathan Raman [EMAIL PROTECTED] wrote: Thanks Manu for replying. When I give that dep:hidden-classes , iam getting this particular error . can u suggest how to get rid of this . Iam attaching the stack trace of the error. 16:40:51,128 FATAL [DatasourceConnectionProvider] Could not find datasource: wlbx-ds javax.naming.NameNotFoundException: wlbx-ds at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source) at com.sun.jndi.rmi.registry.RegistryContext.lookup(Unknown Source) at javax.naming.InitialContext.lookup(Unknown Source) at net.sf.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:45) at net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:83) at net.sf.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:153) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:627) at com.symcor.wlbx.util.ServiceLocator.getDataSource(ServiceLocator.java:196) at com.symcor.wlbx.dao.core.DataSourceUtils.getDataSourceFromJNDI(DataSourceUtils.java:62) at com.symcor.wlbx.dao.core.DAOFactory.getConnection(DAOFactory.java:135) at com.symcor.wlbx.dao.DB2OrganizationDAO.getOrgProfile(DB2OrganizationDAO.java:995) at com.symcor.wlbx.dao.DB2OrganizationDAO.getLBXList(DB2OrganizationDAO.java:1168) at com.symcor.wlbx.dao.imp.ImportProfileTask.loadCachedData(ImportProfileTask.java:158) at com.symcor.wlbx.dao.imp.ImportProfileTask.init(ImportProfileTask.java:233) at com.symcor.wlbx.web.servlet.ImportServlet.init(ImportServlet.java:144) Thanks and Regards, Kamal -Original Message- From: Manu George [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 4:10 PM To: user@geronimo.apache.org Subject: Re: java.lang.NoSuchMethodError - Reg Hi Kamal, Sorry abt that . I gave you a wrong example.You need to add dep:hidden-classesdep:filterorg.objectweb.asm.ClassWriter/dep:filter/dep:hidden-classes this information is in geronimo-module-1.1.xsd in the schema directory Thanks Manu On 1/11/07, Kamalanathan Raman [EMAIL PROTECTED] wrote: Hi Manu, Iam attaching the Geronimo-application.xml , if I attach the dep:hidden-classes attribute , its throwing Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.3: Element '[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.1' with element-only content type cannot have text content.] Descriptor: xml-fragment xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.1; So kindly correct me where I have gone wrong. ?xml version=1.0 encoding=UTF-8 ? application xmlns=http://geronimo.apache.org/xml/ns/j2ee/application-1.1; dep:environment xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.1; dep:dependencies dep:dependency dep:groupIdgeronimo/dep:groupId dep:artifactIdgeronimo-mail/dep:artifactId dep:version1.1.1/dep:version dep:typejar/dep:type /dep:dependency dep:dependency dep:groupIdgeronimo/dep:groupId dep:artifactIdgeronimo-javamail-transport/dep:artifactId dep:version1.1.1/dep:version dep:typejar/dep:type /dep:dependency /dep:dependencies dep:hidden-classesorg.objectweb.asm.ClassWriter/dep:hidden-classes dep:non-overridable-classes/ /dep:environment gbean name=mail/MailSession class=org.apache.geronimo.mail.MailGBean attribute name=transportProtocolsmtp/attribute attribute name=useDefaultfalse/attribute attribute name=hostlocalhost/attribute attribute name=properties mail.debug=true mail.smtp.port=25 [EMAIL PROTECTED] /attribute /gbean /application Thanks and Regards, Kamal From: Manu George [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 2:29 PM To: user@geronimo.apache.org Subject: Re: java.lang.NoSuchMethodError - Reg Hi, hidden-classes Lists packages or classes that may be in a parent class loader, but should not be exposed from there to the web application. This is typically used when the web
Re: java.lang.NoSuchMethodError - Reg
Hi Kamal, Sorry abt that . I gave you a wrong example.You need to add dep:hidden-classesdep:filterorg.objectweb.asm.ClassWriter/dep:filter/dep:hidden-classes this information is in geronimo-module-1.1.xsd in the schema directory Thanks Manu On 1/11/07, Kamalanathan Raman [EMAIL PROTECTED] wrote: Hi Manu, Iam attaching the Geronimo-application.xml , if I attach the dep:hidden-classes attribute , its throwing Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.3: Element '[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.1' with element-only content type cannot have text content.] Descriptor: xml-fragment xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.1; So kindly correct me where I have gone wrong. ?xml version=1.0 encoding=UTF-8 ? application xmlns=http://geronimo.apache.org/xml/ns/j2ee/application-1.1; dep:environment xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.1; dep:dependencies dep:dependency dep:groupIdgeronimo/dep:groupId dep:artifactIdgeronimo-mail/dep:artifactId dep:version1.1.1/dep:version dep:typejar/dep:type /dep:dependency dep:dependency dep:groupIdgeronimo/dep:groupId dep:artifactIdgeronimo-javamail-transport/dep:artifactId dep:version1.1.1/dep:version dep:typejar/dep:type /dep:dependency /dep:dependencies dep:hidden-classesorg.objectweb.asm.ClassWriter/dep:hidden-classes dep:non-overridable-classes/ /dep:environment gbean name=mail/MailSession class=org.apache.geronimo.mail.MailGBean attribute name=transportProtocolsmtp/attribute attribute name=useDefaultfalse/attribute attribute name=hostlocalhost/attribute attribute name=properties mail.debug=true mail.smtp.port=25 [EMAIL PROTECTED] /attribute /gbean /application Thanks and Regards, Kamal From: Manu George [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 2:29 PM To: user@geronimo.apache.org Subject: Re: java.lang.NoSuchMethodError - Reg Hi, hidden-classes Lists packages or classes that may be in a parent class loader, but should not be exposed from there to the web application. This is typically used when the web application wants to use a different version of a library that one of its parent configurations (or Geronimo itself) uses. For example, Geronimo 1.0 uses Log4J 1.2.8. If the web application wanted to use a newer version, it could include the newer version in WEB-INF/lib and then add org.apache.log4j to the list of hidden-classes so that the Log4J classes could not be loaded from a parent class loader. This is the explanation in Aaron Mulders book. The url for the book is - http://www.chariotsolutions.com/geronimo/geronimo-1.1/geronimo-html-one-page.html eg below ?xml version=1.0 encoding=UTF-8? application xmlns= http://geronimo.apache.org/xml/ns/j2ee/application-1.1; dep:environment xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.1 dep:moduleId dep:groupIdsample/dep:groupId dep:artifactIddaytrader-oracle-tomcat/dep:artifactId dep:version1.1/dep:version dep:typecar/dep:type /dep:moduleId dep:dependencies dep:dependency dep:groupIdgeronimo/dep:groupId dep:artifactIdj2ee-server/dep:artifactId dep:typecar/dep:type /dep:dependency dep:hidden-classesorg.apache.log4j/dep:hidden-classes dep:non-overridable-classes/ /dep:environment This will block all child packages and classes under org.apache.log4j from being exposed to the application. Hope this helps thanks Manu On 1/11/07, Kamalanathan Raman [EMAIL PROTECTED] wrote: Hi Manu, Thanks for replying . Can u send a sample code as to how to use the hidden class attribute. Thanks and Regards, Kamal From: Manu George [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 2:02 PM To: user@geronimo.apache.org Subject: Re: java.lang.NoSuchMethodError - Reg Hi, It can be due to a wrong version of that class loaded in the classloader . i.e another version
Re: java.lang.NoSuchMethodError - Reg
Hi Kamal, It would be better to give org.objectweb.asm in the filter tag so that all the classes of asm are hidden. Thanks Manu On 1/11/07, Manu George [EMAIL PROTECTED] wrote: Hi Kamal, Sorry abt that . I gave you a wrong example.You need to add dep:hidden-classesdep:filterorg.objectweb.asm.ClassWriter/dep:filter/dep:hidden-classes this information is in geronimo-module-1.1.xsd in the schema directory Thanks Manu On 1/11/07, Kamalanathan Raman [EMAIL PROTECTED] wrote: Hi Manu, Iam attaching the Geronimo-application.xml , if I attach the dep:hidden-classes attribute , its throwing Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.3: Element '[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.1' with element-only content type cannot have text content.] Descriptor: xml-fragment xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.1; So kindly correct me where I have gone wrong. ?xml version=1.0 encoding=UTF-8 ? application xmlns=http://geronimo.apache.org/xml/ns/j2ee/application-1.1; dep:environment xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.1; dep:dependencies dep:dependency dep:groupIdgeronimo/dep:groupId dep:artifactIdgeronimo-mail/dep:artifactId dep:version1.1.1/dep:version dep:typejar/dep:type /dep:dependency dep:dependency dep:groupIdgeronimo/dep:groupId dep:artifactIdgeronimo-javamail-transport/dep:artifactId dep:version1.1.1/dep:version dep:typejar/dep:type /dep:dependency /dep:dependencies dep:hidden-classesorg.objectweb.asm.ClassWriter/dep:hidden-classes dep:non-overridable-classes/ /dep:environment gbean name=mail/MailSession class=org.apache.geronimo.mail.MailGBean attribute name=transportProtocolsmtp/attribute attribute name=useDefaultfalse/attribute attribute name=hostlocalhost/attribute attribute name=properties mail.debug=true mail.smtp.port=25 [EMAIL PROTECTED] /attribute /gbean /application Thanks and Regards, Kamal From: Manu George [mailto:[EMAIL PROTECTED] Sent: Thursday, January 11, 2007 2:29 PM To: user@geronimo.apache.org Subject: Re: java.lang.NoSuchMethodError - Reg Hi, hidden-classes Lists packages or classes that may be in a parent class loader, but should not be exposed from there to the web application. This is typically used when the web application wants to use a different version of a library that one of its parent configurations (or Geronimo itself) uses. For example, Geronimo 1.0 uses Log4J 1.2.8. If the web application wanted to use a newer version, it could include the newer version in WEB-INF/lib and then add org.apache.log4j to the list of hidden-classes so that the Log4J classes could not be loaded from a parent class loader. This is the explanation in Aaron Mulders book. The url for the book is - http://www.chariotsolutions.com/geronimo/geronimo-1.1/geronimo-html-one-page.html eg below ?xml version=1.0 encoding=UTF-8? application xmlns= http://geronimo.apache.org/xml/ns/j2ee/application-1.1; dep:environment xmlns:dep=http://geronimo.apache.org/xml/ns/deployment-1.1 dep:moduleId dep:groupIdsample/dep:groupId dep:artifactIddaytrader-oracle-tomcat/dep:artifactId dep:version1.1/dep:version dep:typecar/dep:type /dep:moduleId dep:dependencies dep:dependency dep:groupIdgeronimo/dep:groupId dep:artifactIdj2ee-server/dep:artifactId dep:typecar/dep:type /dep:dependency dep:hidden-classesorg.apache.log4j/dep:hidden-classes dep:non-overridable-classes/ /dep:environment This will block all child packages and classes under org.apache.log4j from being exposed to the application. Hope this helps thanks Manu On 1/11/07, Kamalanathan Raman [EMAIL PROTECTED] wrote: Hi Manu, Thanks for replying . Can u send a sample code as to how to use the hidden class attribute. Thanks and Regards, Kamal From: Manu
Re: Ejb web services and jndi name
Hi Francesco, Have a look whether your problem related to this JIRA. http://issues.apache.org/jira/browse/GERONIMO-1597 Regards Manu On 11/26/06, Francesco Sessa [EMAIL PROTECTED] wrote: Hi All, I insert the web-service-address in the openejb-jar.xml, like the following code: enterprise-beans session ejb-nameCiaoWSBean/ejb-name jndi-nameCiaoWSBean/jndi-name web-service-address/ejb/CiaoWS/web-service-address /session /enterprise-beans but the http://localhost:8080/ejb/CiaoWS?WSDL is not available. nobody can help me? Please it's very important. Francesco Sessa ha scritto: Hi, I believed that the service-ref element in the geronimo-web.xml was enught. I have modified the web.xml but i receive this message: java.lang.RuntimeException: Could not open stream to wsdl file I know that it's not clear if the wsdl is accessible to the web service client, but whitch it is the solution? Please help me. this is the new web.xml ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 description JSP 2.0 Examples. /description display-nameJSP 2.0 Examples/display-name welcome-file-list welcome-fileCiaoWSClient.jsp/welcome-file /welcome-file-list service-ref service-ref-nameCiaoWSService/service-ref-name service-interfaceorg.eclipse.Ciao.CiaoWSService/service-interface wsdl-fileMETA-INF/CiaoWSService.wsdl/wsdl-file jaxrpc-mapping-fileMETA-INF/mapping.xml/jaxrpc-mapping-file /service-ref /web-app How to know the url address of the service? Thanks David Jencks ha scritto: A couple of obvious problems are that you don't have a service-ref in the web.xml and it's not clear if the wsdl is accessible to the web service client (which IIUC is the web app) thanks david jencks On Nov 24, 2006, at 1:20 PM, Francesco Sessa wrote: Hi all, I'm a new user of geronimo. To complete my bachelor thesis, i need to create simples web services with ejb. I create the Jar file and deploy it on application server, but, when i try to connect my client to my web services, i receive the message that the jndi name isn't correct. I think that the error was in the deployment xml of the client, but i don't be able to get the wsdl of the service via browser (i try with the url written in the wsdl, but, evidently, it isn't correct). Please, i must deliver my work monday morning. endpoint interface package org.eclipse.Ciao; import java.rmi.RemoteException; import java.rmi.Remote; public interface CiaoWSService extends Remote{ public String getString(String name) throws RemoteException; } home interface package org.eclipse.Ciao; import java.rmi.RemoteException; import javax.ejb.*; public interface CiaoWSHome extends EJBHome{ CiaoWS create() throws RemoteException, CreateException; } remote interface package org.eclipse.Ciao; import java.rmi.RemoteException; import javax.ejb.*; public interface CiaoWS extends EJBObject{ public String getString(String name) throws RemoteException; } bean implementation package org.eclipse.Ciao; import javax.ejb.*; import java.rmi.RemoteException; public class CiaoWSBean implements SessionBean{ public String getString(String name) throws RemoteException{ return Ciao + name; } public void ejbCreate(){} public void ejbRemove(){} public void ejbActivate(){} public void ejbPassivate(){} public void setSessionContext(SessionContext sc){} } -- wsdl generated with jwsdp ?xml version=1.0 encoding=UTF-8? definitions name=CiaoWSService targetNamespace=urn:geronimo-ciaows xmlns:tns=urn:geronimo:ciaows xmlns=http://schemas.xmlsoap.org/wsdl/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; types/ message name=CiaoWSService_getString part name=String_1 type=xsd:string//message message name=CiaoWSService_getStringResponse part name=result type=xsd:string//message portType name=CiaoWSService operation name=getString parameterOrder=String_1 input message=tns:CiaoWSService_getString/ output message=tns:CiaoWSService_getStringResponse//operation/portType binding name=CiaoWSServiceBinding type=tns:CiaoWSService soap:binding transport=http://schemas.xmlsoap.org/soap/http; style=rpc/ operation name=getString soap:operation soapAction=/ input soap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; use=encoded namespace=http://ciaows.org/wsdl//input output soap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; use=encoded namespace=http://ciaows.org/wsdl//output/operation/binding service
Re: Ejb web services and jndi name
Hi Francesco, We give the address only in the wsdl like shown below service name=HelloService port name=HelloPort binding=tns:HelloBinding soap:address location=http://localhost:8080/TestWS/Hello/ /port /service A thing i noticed is that you have not used the service-endpoint tag in your ejb-jar.xml file which is required to identify it as a web service. Thanks Manu On 11/26/06, Francesco Sessa [EMAIL PROTECTED] wrote: Hi, i have searched for wsdl in mailing list archive, and i have found some interesting thread. But the wsdl file was generated with wscompile, and i changed only the soap address location (the file generated did not contain any address). I read the problem releated to the JIRA, but i try with my browser, and it don't add the slash. I think that the problem is in configuration files of both server and client, but i don't understand where. As an examples, if i create a ws with servlets, in the geronimo-web or other deployment descriptor i can put context-root tag; but in my case, with ejb, when i deploy the jan on the server, what is the tag in the deployment descriptor in which i can specify the address? In wsdl? in openejb-jar? in ejb-jar? And the jndi name to lookup the service? I'm becoming crazy. Thanks Manu George ha scritto: Hi Francesco, Have a look whether your problem related to this JIRA. http://issues.apache.org/jira/browse/GERONIMO-1597 Regards Manu On 11/26/06, Francesco Sessa [EMAIL PROTECTED] wrote: Hi All, I insert the web-service-address in the openejb-jar.xml, like the following code: enterprise-beans session ejb-nameCiaoWSBean/ejb-name jndi-nameCiaoWSBean/jndi-name web-service-address/ejb/CiaoWS/web-service-address /session /enterprise-beans but the http://localhost:8080/ejb/CiaoWS?WSDL is not available. nobody can help me? Please it's very important. Francesco Sessa ha scritto: Hi, I believed that the service-ref element in the geronimo-web.xml was enught. I have modified the web.xml but i receive this message: java.lang.RuntimeException: Could not open stream to wsdl file I know that it's not clear if the wsdl is accessible to the web service client, but whitch it is the solution? Please help me. this is the new web.xml ?xml version=1.0 encoding=ISO-8859-1? web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 description JSP 2.0 Examples. /description display-nameJSP 2.0 Examples/display-name welcome-file-list welcome-fileCiaoWSClient.jsp/welcome-file /welcome-file-list service-ref service-ref-nameCiaoWSService/service-ref-name service-interfaceorg.eclipse.Ciao.CiaoWSService/service-interface wsdl-fileMETA-INF/CiaoWSService.wsdl/wsdl-file jaxrpc-mapping-fileMETA-INF/mapping.xml/jaxrpc-mapping-file /service-ref /web-app How to know the url address of the service? Thanks David Jencks ha scritto: A couple of obvious problems are that you don't have a service-ref in the web.xml and it's not clear if the wsdl is accessible to the web service client (which IIUC is the web app) thanks david jencks On Nov 24, 2006, at 1:20 PM, Francesco Sessa wrote: Hi all, I'm a new user of geronimo. To complete my bachelor thesis, i need to create simples web services with ejb. I create the Jar file and deploy it on application server, but, when i try to connect my client to my web services, i receive the message that the jndi name isn't correct. I think that the error was in the deployment xml of the client, but i don't be able to get the wsdl of the service via browser (i try with the url written in the wsdl, but, evidently, it isn't correct). Please, i must deliver my work monday morning. endpoint interface package org.eclipse.Ciao; import java.rmi.RemoteException; import java.rmi.Remote; public interface CiaoWSService extends Remote{ public String getString(String name) throws RemoteException; } home interface package org.eclipse.Ciao; import java.rmi.RemoteException; import javax.ejb.*; public interface CiaoWSHome extends EJBHome{ CiaoWS create() throws RemoteException, CreateException; } remote interface package org.eclipse.Ciao; import java.rmi.RemoteException; import javax.ejb.*; public interface CiaoWS extends EJBObject{ public String getString(String name) throws RemoteException; } bean implementation package org.eclipse.Ciao; import javax.ejb.*; import java.rmi.RemoteException; public class CiaoWSBean implements SessionBean{ public String getString(String name) throws RemoteException{ return Ciao + name; } public void ejbCreate(){} public void ejbRemove(){} public
Re: ClassCastException in org.openejb.client.CgLibProxy
Hi, Check whether it is because of this issue http://issues.apache.org/jira/browse/GERONIMO-2297 Thanks Manu On 11/12/06, Christoph Reich [EMAIL PROTECTED] wrote: Hi Willi, your client looks good to me. Have you checked, that you are using remote and remote-home interfaces in the EJB? If you are using lokal interfaces I think you get a similar error message Cheers, Chris On Fri, 10 Nov 2006 14:36:25 +0100, Willi Nüßer wrote Hi all, I know it must be something trivial (config ...) but I'm at a loss. Can't find anything related in the web, groups etc. The problem: running a very simple standalone HelloWorld client against a corresponding EJB app in Geronimo 1.1.1 gives the following error message: java echo.client.SayHelloClient java.lang.ClassCastException: org.openejb.client.CgLibProxy$$EnhancerByCGLIB$$28a286c9 at org.openejb.client.CgLibProxy$$EnhancerByCGLIB$$eaec4f0a.create(generated) at de.fhdw.echo.client.SayHelloClient.getEJBReference(SayHelloClient.java:43) at echo.client.SayHelloClient.main(SayHelloClient.java:53) Exception in thread main java.lang.NullPointerExceptionat echo.client.SayHelloClient.main(SayHelloClient.java:55) There are no errors logged to the log file. JNDI access seems to work, deployment in geronimo, too. So, can anyone pls give me a hint. TIA Willi PS: Relevant source client code: private static final String PURE_JNDI_HELLOBEAN = echo.HelloBean; private static HelloBean hellobean; private static void getEJBReference () { Properties props = new Properties(); props.put(java.naming.factory.initial, org.openejb.client.RemoteInitialContextFactory); props.put(java.naming.provider.url, 127.0.0.1:4201); props.put(java.naming.security.principal, system); props.put(java.naming.security.credentials, manager); try { javax.naming.InitialContext initialContext = new javax.naming.InitialContext(props); Object objRef = initialContext.lookup(PURE_JNDI_HELLOBEAN); HelloBeanHome hellobeanHome = (HelloBeanHome) PortableRemoteObject.narrow(objRef, HelloBeanHome.class); crash here hellobean = hellobeanHome.create(); } catch (Exception ex) { ex.printStackTrace(); } } -- GMX DSL-Flatrate 0,- Euro* - Überall, wo DSL verfügbar ist! NEU: Jetzt bis zu 16.000 kBit/s! http://www.gmx.net/de/go/dsl
Re: Migration help from JBoss to Geronimo
Hi Ashish, There are some migration docs given in this page http://cwiki.apache.org/GMOxDOC10/apache-geronimo-v10-users-guide.html. They are for migration to geronimo-1.0 from JBOSS. Documentation for geronimo -1.1 is given in the link below http://cwiki.apache.org/GMOxDOC11/apache-geronimo-v11-users-guide.html. There is also a tool written by David Jencks which automatically migratates geronimo 1.0 plans to the geronimo 1.1 format. Hope this helps Regards Manu On 10/25/06, Ashish Kumar [EMAIL PROTECTED] wrote: Hi , I am currently using the Jboss 4 for my enterprise application. Would you please guide me about, what are the changes required for moving my application from Jboss 4 to Geronimo and also provide me the link from where I can get more information about the same. I will be very thankful for the same. Thanking you in advance. Regards Ashish Chauhan
Re: Session Bean as a Web Service - V2
Hi lasantha, Is the problem you are facing related to http://issues.apache.org/jira/browse/GERONIMO-1597. You can verify by entering http://localhost:8080/TestEJB/Hello?wsdl in the browser. If this changes to http://localhost:8080/TestEJB/Hello/?wsdl then its the same problem. To work around this you can give the url for the service as http://localhost:8080/TestEJB/Hello instead of http://localhost:8080/TestEJB/Hello?wsdl. You can thus invoke the service but you will not be able to see the WSDL. This problem occurs because when the Context name and the url name are same tomcat adds a forward slash. The context name and the url name are coming as same always as the axis integration code creates a separate context with the service URL for EJB web services. I am not sure what is the best way to fix this JIRA. David Jenks expertise is required for that as you rightly mentioned :-) Thanks Manu On 10/25/06, Lasantha Ranaweera [EMAIL PROTECTED] wrote: Hi Dirk, It gives the same problem for Jetty too. So we might missing something here. Even I can't access WSDL from my web browser. David Jenks would you be able to lend some of your expertise in resolving this matter. :-) Thanks, Lasantha Ranaweera Kaeto23 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Greetings, I have the same problem: deploying works but accessing the endpoint is not possible. Funnily I don't get any stacktrace or similar. So, yes, it's right that you have a webservice but nobody said that you can execute it ;) (sorry for being a little bit sarcastic) Anyway, could you try a different Geronimo server? I mean: could you try to deploy your app on the jetty version of Geronimo? Webservices on Jetty are (questionably) working. At least for me. But Jetty has problems with encoded urls (jsessionid problem). So ... Use Jetty for webservices, and tomcat for websites. That's my knowledge about it ^^; Best regards Dirk [EMAIL PROTECTED] schrieb: Hi All, In one of previous mails I asked how can I deploy session bean as a web service. Now with the help of David and others I can deploy it in G 1.1.1 without errors. But it gives following error when I try to access it through a web client in same ear. I can't view the WSDL of the WS from a browser too. Any obvious thing I am missing here? ### Error when accessing WS from a client # javax.xml.rpc.ServiceException: no port for class org.apache.geronimo.samples.calc.CalculatorService at org.apache.geronimo.axis.client.ServiceImpl.internalGetPortFromClassName(ServiceImpl.java:160) at org.apache.geronimo.axis.client.ServiceImpl.getPort(ServiceImpl.java:78) at org.apache.geronimo.samples.calc.web.CalculatorClientServlet.callService(Unknown Source) at org.apache.geronimo.samples.calc.web.CalculatorClientServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:342) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) ### CalculatorServiceEJB.wsdl ## ?xml version=1.0 encoding=UTF-8? definitions name=CalculatorServiceEJB targetNamespace=urn:geronimo-samples xmlns:tns=urn:geronimo-samples xmlns=http://schemas.xmlsoap.org/wsdl/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; types/ message
Re: Session Bean as a Web Service - V2
Forgot to mention that you need to replace http://localhost:8080/TestEJB/Hello with the url of your web service Thanks Manu On 10/25/06, Manu George [EMAIL PROTECTED] wrote: Hi lasantha, Is the problem you are facing related to http://issues.apache.org/jira/browse/GERONIMO-1597. You can verify by entering http://localhost:8080/TestEJB/Hello?wsdl in the browser. If this changes to http://localhost:8080/TestEJB/Hello/?wsdl then its the same problem. To work around this you can give the url for the service as http://localhost:8080/TestEJB/Hello instead of http://localhost:8080/TestEJB/Hello?wsdl. You can thus invoke the service but you will not be able to see the WSDL. This problem occurs because when the Context name and the url name are same tomcat adds a forward slash. The context name and the url name are coming as same always as the axis integration code creates a separate context with the service URL for EJB web services. I am not sure what is the best way to fix this JIRA. David Jenks expertise is required for that as you rightly mentioned :-) Thanks Manu On 10/25/06, Lasantha Ranaweera [EMAIL PROTECTED] wrote: Hi Dirk, It gives the same problem for Jetty too. So we might missing something here. Even I can't access WSDL from my web browser. David Jenks would you be able to lend some of your expertise in resolving this matter. :-) Thanks, Lasantha Ranaweera Kaeto23 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Greetings, I have the same problem: deploying works but accessing the endpoint is not possible. Funnily I don't get any stacktrace or similar. So, yes, it's right that you have a webservice but nobody said that you can execute it ;) (sorry for being a little bit sarcastic) Anyway, could you try a different Geronimo server? I mean: could you try to deploy your app on the jetty version of Geronimo? Webservices on Jetty are (questionably) working. At least for me. But Jetty has problems with encoded urls (jsessionid problem). So ... Use Jetty for webservices, and tomcat for websites. That's my knowledge about it ^^; Best regards Dirk [EMAIL PROTECTED] schrieb: Hi All, In one of previous mails I asked how can I deploy session bean as a web service. Now with the help of David and others I can deploy it in G 1.1.1 without errors. But it gives following error when I try to access it through a web client in same ear. I can't view the WSDL of the WS from a browser too. Any obvious thing I am missing here? ### Error when accessing WS from a client # javax.xml.rpc.ServiceException: no port for class org.apache.geronimo.samples.calc.CalculatorService at org.apache.geronimo.axis.client.ServiceImpl.internalGetPortFromClassName(ServiceImpl.java:160) at org.apache.geronimo.axis.client.ServiceImpl.getPort(ServiceImpl.java:78) at org.apache.geronimo.samples.calc.web.CalculatorClientServlet.callService(Unknown Source) at org.apache.geronimo.samples.calc.web.CalculatorClientServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:342) at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:31) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) ### CalculatorServiceEJB.wsdl ## ?xml version=1.0 encoding=UTF-8
Re: problems when refering same local EJB in different dependent EARs
Hi Vimalan, This is because of the ClassLoader will always try to load a class from the highest parent classloader. This means first the ejb class is looked up in the parent classloader ie first EAR. You can use the hidden-classes tag to hide classes in the parent class loader. Its usage can be got from Aarons book. Thanks Manu On 10/4/06, Arunanthisivam Vimalathithen [EMAIL PROTECTED] wrote: Hi, I am running into some problems in the following scenario. I am deploying two different EARs in which among other EJBs there is the same local EJB (same class). Only the JNDI name of this local EJB differs in these EARs. I am able to refer to the correct local EJB in the second EAR by using ejb-ref and the JNDI name in other application servers (namely WebSphere) and this works fine. But the problem in Geronimo is that I have to make the second EAR dependant on the first EAR as the second EAR is dependent on some artifacts in the first EAR. Now whenever I try to refer to the local EJB in the second EAR, the EJB that gets looked up is the local EJB from the first EAR. Even when I have changed the ejbname of the local EJB in the second EAR and reflected that change in the ejb-link, the EJB that keeps getting looked up is the EJB from the first EAR. This causes some serious problems in the application as some initializations are going on in the child EAR that is not refletected in the EJB from the parent EAR that is getting called. Is there any way around this? I have attached a sample scenario with this, the local EJB only differs in the attached EARs slightly to display different messages to illustrate this scenario. This was tested in Geronimo 1.0 and 1.1.1. Thanks and regards, Vimalan
Re: mysql EJB
Hi Mattias, Check out this link http://cwiki.apache.org/GMOxDOC11/ejb-sample-application.html. It has CMP Ejbs. The only difference with mysql will be configuring the MySQL Datasource and making the cmp-connection-factory tag point to it. Regards Manu On 9/28/06, Mattias Malmgren [EMAIL PROTECTED] wrote: Hi Struggle goes on... Is there anyone out there who have bean abel to make use of CMP with mysql. Please post a copy of how you have configurated all the XML-files needed. I guess that I need to write something in openejb-jar.xml, application.xml and geronimo-application.xml, but I don't know what. Until now I have tryed with the following. Whats wrong? openejb-jar.xml cmp-connection-factory resource-linkMYDBNAME/resource-link /cmp-connection-factory geronimo-application.xml module connectortranql-connector-1.2.rar/connector alt-ddmysql-plan.xml/alt-dd /module application.xml module connectortranql-connector-1.2.rar/connector /module // Mattias
Re: Java Service Wrapper and Geronimo
Hi Jake, This seems to be an issue related to the console (Geronimo Database Pool Wizard). If you directly write a plan and then use it to deploy the pool using the tranql rars it deploys the pool w/o any exceptions. Also try if you can deploy a database pool using the Geronimo Database Pool Wizard after starting the server normally w/o the wrapper. I think you can open a JIRA for this with stack traces and exact error messages and geronimo version nos. Regards Manu On 9/20/06, Jake C [EMAIL PROTECTED] wrote: When I use the script from the WIKI at http://cwiki.apache.org/GMOxDOC11/configuring-geronimo-as-a-windows-service.html I get a ClassNotFoundException on org.apache.geronimo.connector.deployment.RARConfiguration when I try to add a DB2 Database Pool. This class is in the repository under geronimo/jars/geronimo-connector-builder-1.0.jar. Shouldn't this be loaded dynamically, or do I really need to add every jar in the repository into the JSW classpath? I changed the script to include wrapper.working.dir set to the Geronimo main directory, but that didn't make a difference.
Re: how to require authentication for obtaining initialcontext?
Hi, In geronimo 1.0 openejb required the properties java.naming.security.principal and java.naming.security.credentials to have values but they were not used anywhere. So you need to include those properties with dummy values when creating the InitialContext. I believe this has been addressed in 1.1 codebase. Regards ManuOn 5/22/06, Joerg Friede [EMAIL PROTECTED] wrote: Hi,i do have an external client that connects to the geronimo/openejbserver using the following code:props.setProperty(java.naming.factory.initial,org.openejb.client.RemoteInitialContextFactory );props.setProperty(java.naming.provider.url, 127.0.0.1:4201);props.setProperty(java.naming.security.principal, system); props.setProperty(java.naming.security.credentials, manager);InitialContext ctx = new InitialContext(props);This works fine. If i comment out the lines specifying theprincipal/credential i do receive the following exception javax.naming.AuthenticationException: Cannot read the response from theserver (OEJP/2.0) : null; nested exception is:java.io.EOFExceptionat org.openejb.client.JNDIContext.authenticate(JNDIContext.java :196)atorg.openejb.client.JNDIContext.getInitialContext(JNDIContext.java:181)This again is as expexted. If i, on the other hand, use the following linesprops.setProperty(java.naming.security.principal , );props.setProperty(java.naming.security.credentials, );the client can connect to the server and lookup/use my - currently notsecured - EJB's.Now, is there a way (maybe an attribute for the geronimo/j2ee-server/1.0/car entry in config.xml) to require a validusername/password from a geronimo realm for obtaining the InitialContext ?Thanks in advance,Joerg Friede
Re: [announce] Apache Geronimo welcomes Guillaume Nodet as our newest committer
Congratulations Guillaume!!On 4/28/06, Hossam Karim [EMAIL PROTECTED] wrote: Congratulations Guillaume, keep on the excellent work!Hossam Karim-Original Message-From: Dain Sundstrom [mailto:[EMAIL PROTECTED]]Sent: Friday, April 28, 2006 2:01 AM To: dev; user@geronimo.apache.orgSubject: [announce] Apache Geronimo welcomes Guillaume Nodet as our newestcommitterThe Apache Geronimo PMC is proud to announce Guillaume Nodet as our newest Apache Geronimo committer, and look forward to his continuedgreat work on XBean and the Geronimo integration with Service Mix.His work shows initiative, concern to get user feedback, empathy for problems faced by other committers and willingness to work on fixingthese problems.Guillaume has consistently brought unique and verydifficult use cases to the XBean project (along with patches), and itis these diverse requirements that will ultimately make XBean a success. We believe he will be an excellent addition to the project and willhelp foster these values in others.Please join us in congratulating Guillaume,The Apache Geronimo PMC
Re: Struts related problem..!
Hi Santosh, The errors you are getting like Element type plug-in must be declared. mean that that version does not support these tags. So probably you areusing a newer version in weblogic not an older version. Regards Manu
Re: Can I get the example hibernate.cfg.xml for geronimo application deployment?
Hi Young, You need to add that class yourself as Hibernate currently does not provide it. It is given in the article how to write it. The error you are getting seems to be because hibernate is unable to lookup the datasource from the JNDI Context. Check if you have given the correct name in hibernate-cfg.xml Regards ManuOn 4/20/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am using hibernate-2.0.3.jar.I went to the following link to learn howto write hibernate.cfg.xml: http://opensource.atlassian.com/confluence/oss/display/GERONIMO/JBoss+to+Geronimo+-+Hibernate+MigrationIt is strange that I do not seeorg.hibernate.transaction.GeronimoTransactionManagerLookup from hibernate 3.x jar file.At the moment, I am having the exception of16:46:23,617 FATAL [DatasourceConnectionProvider] Could not finddatasource: datasource/wlbx-dsjavax.naming.NameNotFoundException: datasource atcom.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:90)atcom.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:98)at javax.naming.InitialContext.lookup (InitialContext.java:347)atnet.sf.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:45)atnet.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider (ConnectionProviderFactory.java:83)atnet.sf.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:153)atnet.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java :627)Thank you all very much in advance.Young
Re: User Feedback Request -- this means you!
Hi, Is there any specific reason whythere is no Global JNDI ENC in Geronimo? I remember in the old days pre-M5 there used to be jndi-name tags in the resource deployment plans. Why was this feature removed if it was there? It would be helpful to have a Global JNDI ENC. Regards Manu
Re: Accessing locally Container Beans
Hi Olivier, You need not pass any properties to the InitialContext for local lookups from other components running in the server. You only need to give an ejb-ref in the deployment descriptor. You can get more info on this from Aaron's book http://www.chariotsolutions.com/geronimo/geronimo-html-one-page.html There are also many examples in developerworks and confluence Regards ManuOn 3/30/06, Olivier Voutat [EMAIL PROTECTED] wrote: To do the remote lookup for a bean I was setting my properties like this : -- prop.put(java.naming.factory.initial,org.openejb.client.RemoteInitialContextFactory); prop.put(java.naming.provider.url,localhost:4201); prop.put(java.naming.security.principal,system); prop.put(java.naming.security.credentials,manager); -- I was researching and found that local calls should use: -- prop.put(java.naming.factory.initial,org.openejb.client.LocalInitialContextFactory); -- but the question is (and I'm asking because I didn't had enough time to keep testing) do I need the other properties lines ? Think not because it is a internal container lookup but would like to be sure. Best Regards, Olivier Voutat -- Olivier Cidiane VoutatRua Praia de Muriú, 9188Cep 59092-390 / Natal - RNTel: (84) 3219-0427 Cel: (84) 9977-3917
WebServices
Hi, I have a Webapp deployed in geronimo that calls an external webservice. If I generate the stubs using wscompile I seem to be able to get a handle to the stub by calling HelloService myHelloService =(HelloService) ic.lookup(java:comp/env/service/HelloService); Now I can also generate the Stubs using Axis in which case i get some different impl classes , the ServiceLocator and the Stub. Can I use these stubs instead? Also the Service Interface axis generates seems to have 2 extra methods compared to the interface generated by wscompile for the same wsdl file. When I bundle these stubs with my webapp Geronimo is not giving me the Stub generated by axis with 3 methods and is instead giving me a stub with a single method to invoke the service? Can anyone explain why this is happening? Thanks Manu
Web Services Question
Hi, Can you deploy Document style web services in Geronimo? If so what are the differences in deployment from JAX-RPC style web services? Thanks Manu
Re: Web Services Question
Hi Stefan, Thanks . The article helps a lot. It has most of the things I need to understand document style web services. Regards ManuOn 12/7/05, Stefan Schmidt [EMAIL PROTECTED] wrote: Hi Manu,As long as your WS is JAX-RPC conformant you can deploy either type -document or rpc-style Web services.As for the differences between both, there is a long list... Basicallydocument-style is far more coarse grained and business/document-oriented, also I think this is the future of WS.Document-style WS can be used in synchronous and asynchronous scenariosas opposed to rpc which only supports synchronous invocations. RPC-style is really what the name says - invoking remote procedures. Manydevelopers find this style easier to understand.I find this article quite comprehensive: http://java.sun.com/developer/technicalArticles/xml/jaxrpcpatterns/Hope this helps.Regards,Stefan SchmidtManu George wrote:Hi, Can you deploy Document style web services in Geronimo? If so what are the differences in deployment from JAX-RPC style web services?ThanksManu
Re: Unsupported Major.Minor Version?
Hi Hans, I think that the problem is with building the EAR with a 1.5 jvm. Try building with a 1.4 jvm and see if it helps. regards, ManuOn 11/24/05, Hans Prueller [EMAIL PROTECTED] wrote: Hi toghether, when I try to deploy my first self-built test.ear project within Geronimo / WASCE I get the following error message: java -jar .\bin\deployer.jar --user system --password manager deplo y test.ear test-plan.xml Error: Unable to distribute test.ear: Error thrown during invocation test/interfaces/Business (Unsupported major.minor version 49.0) Can anybody give me a tip? The .ear file was built by using a jvm1.5 but with strict 1.4 compliance. could that be a problem? regards, Hans -- *virtually hanzz... http://hanzz.zapto.org*
Re: Problem with EAR deploy
Hi Siraj, I am no expert :-) but at first glance I can see the following issues 1) the cmp-connection-factory entry is not required for a session bean. Also the syntax is wrong. It should be cmp-connection-factory resource-linkDefaultDatasource/resource-link /cmp-connection-factory instead of cmp-connection-factoryDefaultDatasource/cmp-connection-factory 2)Another thing that is not clear is if alt-ddj2ee-deployer-plan.xml/alt-dd is your openejb-jar.xml file module ejbhelloworld-ejb.jar/ejb alt-ddj2ee-deployer-plan.xml/alt-dd /module In the alt-dd element you need to give the geronimo specific deployment descriptor of the ejb you are trying to deploy i.e. the equivalent of the openejb-jar.xml. 3) A NullPointerException is not at all supposed to occur even if your plans have errors. So you may want to open a JIRA issue. Hope this helps Regards Manu
Re: Geronimo Features.
Hi Jeremy/David, Thanks for the prompt response. It cleared up my doubts Thanks Again ManuOn 9/28/05, David Jencks [EMAIL PROTECTED] wrote: To amplify a little bit on Jeremy's response...On Sep 26, 2005, at 12:28 AM, Manu George wrote: Hi, I have a few doubts about geronimo features. I checked out the release notes from M4 but would like to know if there is any document listing the features added upto now. Specifically I have a few questions 1) Does Geronimo have datasource failover capabilities like in JBOSS? 2) How many connection managers does geronimo support? Can custom connection managers be plugged in?The connection manager is interceptor based so it is pretty flexible.At the moment you cannot plug in a custom connection manager, but thiscapability could be added fairly easily.I would need to know what the alternate connection manager does before pursuing this.I suspect youare more likely to want to replace the entire jca subsystem or want toimprove the existing geronimo connection manager. 3) Geronimo does not yet handle drivers that supply their own DataSource,Is this statement still valid?noHow many types of datasources does geronimo support?Tranql has generic wrappers for DataSource, ConnectionPoolDatasource,and XADataSource.For all of these you are going to want to write at least a ManagedConnectionFactory implementation that exposes the actualproperties you can set on the datasource, a task that is apt to takeabout 5 minutes. 4) Can you connect to RDBMS's that have not yet implemented JCA-JDBC drivers in geronimo?Yes, using the tranql connector jca-jdbc wrappers.thanksdavid jencks
Geronimo Features.
Hi, I have a few doubts about geronimo features. I checked out the release notes from M4 but would like to know if there is any document listing the features added upto now. Specifically I have a few questions 1) Does Geronimo have datasource failover capabilities like in JBOSS? 2) How many connection managers does geronimo support? Can custom connection managers be plugged in? 3) Geronimo does not yet handle drivers that supply their own DataSource,Is this statement still valid? How many types of datasources does geronimo support? 4) Can you connect to RDBMS's that have not yet implemented JCA-JDBC drivers in geronimo? Thanks Manu
Geronimo Transaction
Hi, Can anyone tell me whether Geronimo supports transactions across multiple Geronimo Instances? Thanks Manu