Re: ActiveMQ questions
On Aug 10, 2008, at 8:09 PM, devdev wrote: Thank you David. It's great to know I am on the right path. I followed the example described here http://cwiki.apache.org/GMOxDOC21/jms-mdb-jms-and-mdb-sample-application.html and my deploy files are identical when it comes to the EJB. Instead of the using the servlet to put messages in the queue, I use a plain jms client (just a java class not running inside an app server). That is the only difference. I do use the ActiveMQ RA and replaced tcp://localhost: 61616 with tcp://the5thcomputer:61616 for the url. However the message consumer (my EJB MessageDrivenBean) does not pick up the messages posted on the AMQ (on the 5th computer). I doesn't produce any error neither and I suppect it's waiting for messages on the local AMQ (in its appserver) which I didn't disable yet. I could use a recommendation of a good Geronimo book as well. Are you sure you're sending messages to the correct destination? djencks wrote: On Aug 10, 2008, at 11:16 AM, devdev wrote: Thank you Kevin for your reply. I was under the impression I don't need to use an embedded broker. That should work fine. If not it's a bug we'd like to fix. You should be able to deploy a amq resource adapter using the geronimo- activemq-ra and without a dependency on activemq-broker. My instructions weren't using the "embedded broker", merely using the embedded broker deployment plan as a template for connecting to the remote broker. The sample application is a better template... --kevan
Re: ActiveMQ questions
Thank you David. It's great to know I am on the right path. I followed the example described here http://cwiki.apache.org/GMOxDOC21/jms-mdb-jms-and-mdb-sample-application.html and my deploy files are identical when it comes to the EJB. Instead of the using the servlet to put messages in the queue, I use a plain jms client (just a java class not running inside an app server). That is the only difference. I do use the ActiveMQ RA and replaced tcp://localhost:61616 with tcp://the5thcomputer:61616 for the url. However the message consumer (my EJB MessageDrivenBean) does not pick up the messages posted on the AMQ (on the 5th computer). I doesn't produce any error neither and I suppect it's waiting for messages on the local AMQ (in its appserver) which I didn't disable yet. I could use a recommendation of a good Geronimo book as well. Regards djencks wrote: > > > On Aug 10, 2008, at 11:16 AM, devdev wrote: > >> >> Thank you Kevin for your reply. I was under the impression I don't >> need to >> use an embedded broker. > > That should work fine. If not it's a bug we'd like to fix. You > should be able to deploy a amq resource adapter using the geronimo- > activemq-ra and without a dependency on activemq-broker. > >> I took the example deployment xml as if I was using >> ActiveMQ that is running the appserver but I would change the url to >> the 5th >> computer. That is using the MessageDrivenBean in my EJB. But >> somehow I >> couldn't not connect to the ActiveMQ sitting on that 5th computer. >> After >> trying many things, I am wondering if there is something wrong w/ my >> XML >> deploy file or the whole approach is not supported. > > Ideally we would have an integration test to demonstrate this works. > Meanwhile seeing your geronimo plan and any error messages you can > find might be helpful. > > thanks > david jencks > > > >> >> >> Regards >> JFR >> >> >> >> Kevan Miller wrote: >>> >>> >>> On Aug 8, 2008, at 2:13 PM, devdev wrote: >>> Regarding #1, would you please point me to some instructions or examples? I have a 4 appservers running on different computers and I'd like to install an ActiveMQ on a 5th computer and have the 4 appservers sending/ receiving message from AMQ. >>> >>> I don't know of any explicit documentation for this use case. Perhaps >>> someone would be interested in generating some? >>> >>> This URL shows the deployment plan used for the embedded ActiveMQ >>> resource adapter -- >>> http://cwiki.apache.org/GMOxDOC21/deployment-plans.html#Deploymentplans-EmbeddedActiveMQresourceadapter >>> >>> Note the property setting for 'ServerUrl'. If you're using the same >>> version of ActiveMQ that Geronimo embeds (G 2.1.2 uses 4.1.2), you >>> could use the above plan as a guide and deploy a new resource adapter >>> for the external ActiveMQ server. Alternatively, if you're using a >>> different ActiveMQ version, deploy the activemq rar file (in lib/ >>> optional of the activemq installation) using the same general scheme >>> -- setting the ServerUrl property in your deployment plan (assuming >>> ActiveMQ has not changed their RA config properties). >>> >>> --kevan >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/ActiveMQ-questions-tp6326283s134p18915577.html >> Sent from the Apache Geronimo - Users mailing list archive at >> Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/ActiveMQ-questions-tp6326283s134p18918413.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: EAR can't find WEB-INF/classes or WEB-INF/lib
Finally found out what I needed to change: I just needed to use Thread.currentThread().getContextClassLoader()... I don't know if that's going to be perfect, but it seems to have solved my problems for now. Bloody Classloading stuff. Thanks for your help. Now I can have the joy of converting a WAR to an EAR. Is there any particular reason I can't have an exploded WAR inside an unexploded EAR file?
Re: ActiveMQ questions
On Aug 10, 2008, at 11:16 AM, devdev wrote: Thank you Kevin for your reply. I was under the impression I don't need to use an embedded broker. That should work fine. If not it's a bug we'd like to fix. You should be able to deploy a amq resource adapter using the geronimo- activemq-ra and without a dependency on activemq-broker. I took the example deployment xml as if I was using ActiveMQ that is running the appserver but I would change the url to the 5th computer. That is using the MessageDrivenBean in my EJB. But somehow I couldn't not connect to the ActiveMQ sitting on that 5th computer. After trying many things, I am wondering if there is something wrong w/ my XML deploy file or the whole approach is not supported. Ideally we would have an integration test to demonstrate this works. Meanwhile seeing your geronimo plan and any error messages you can find might be helpful. thanks david jencks Regards JFR Kevan Miller wrote: On Aug 8, 2008, at 2:13 PM, devdev wrote: Regarding #1, would you please point me to some instructions or examples? I have a 4 appservers running on different computers and I'd like to install an ActiveMQ on a 5th computer and have the 4 appservers sending/ receiving message from AMQ. I don't know of any explicit documentation for this use case. Perhaps someone would be interested in generating some? This URL shows the deployment plan used for the embedded ActiveMQ resource adapter -- http://cwiki.apache.org/GMOxDOC21/deployment-plans.html#Deploymentplans-EmbeddedActiveMQresourceadapter Note the property setting for 'ServerUrl'. If you're using the same version of ActiveMQ that Geronimo embeds (G 2.1.2 uses 4.1.2), you could use the above plan as a guide and deploy a new resource adapter for the external ActiveMQ server. Alternatively, if you're using a different ActiveMQ version, deploy the activemq rar file (in lib/ optional of the activemq installation) using the same general scheme -- setting the ServerUrl property in your deployment plan (assuming ActiveMQ has not changed their RA config properties). --kevan -- View this message in context: http://www.nabble.com/ActiveMQ-questions-tp6326283s134p18915577.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Problem with Deploy in Geronimo 2.1.2
Trying t deploy WAR into Geronimo 2.1.2 (with 2.1.1 everything is ok) - got followed error: Any Suggestions? 22:13:12,906 ERROR [Deployer] Deployment failed due to java.lang.ArrayIndexOutOfBoundsException: 48188 at org.objectweb.asm.ClassReader.readClass(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.objectweb.asm.ClassReader.accept(Unknown Source) at org.apache.xbean.finder.ClassFinder.readClassDef(ClassFinder.java:690 ) at org.apache.xbean.finder.ClassFinder.(ClassFinder.java:139) at org.apache.geronimo.jaxws.builder.WARWebServiceFinder.discoverWebServ ices(WARWebServiceFinder.java:154) at org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discove rPOJOWebServices(AdvancedWARWebServiceFinder.java:73) at org.apache.geronimo.jaxws.builder.AdvancedWARWebServiceFinder.discove rWebServices(AdvancedWARWebServiceFinder.java:45) at org.apache.geronimo.jaxws.builder.WARWebServiceFinder.discoverWebServ ices(WARWebServiceFinder.java:70) at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.discoverWebServ ices(JAXWSServiceBuilder.java:97) at org.apache.geronimo.jaxws.builder.JAXWSServiceBuilder.findWebServices (JAXWSServiceBuilder.java:80) at org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.basicIn itContext(AbstractWebModuleBuilder.java:364) at org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.initContext (TomcatModuleBuilder.java:330) at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.initContex t(SwitchingModuleBuilder.java:159) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfigurati on(EARConfigBuilder.java:595) 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:597) 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:619) -- With best regards, Alexey Kakunin
Re: ActiveMQ questions
Thank you Kevin for your reply. I was under the impression I don't need to use an embedded broker. I took the example deployment xml as if I was using ActiveMQ that is running the appserver but I would change the url to the 5th computer. That is using the MessageDrivenBean in my EJB. But somehow I couldn't not connect to the ActiveMQ sitting on that 5th computer. After trying many things, I am wondering if there is something wrong w/ my XML deploy file or the whole approach is not supported. Regards JFR Kevan Miller wrote: > > > On Aug 8, 2008, at 2:13 PM, devdev wrote: > >> >> Regarding #1, would you please point me to some instructions or >> examples? I >> have a 4 appservers running on different computers and I'd like to >> install >> an ActiveMQ on a 5th computer and have the 4 appservers sending/ >> receiving >> message from AMQ. > > I don't know of any explicit documentation for this use case. Perhaps > someone would be interested in generating some? > > This URL shows the deployment plan used for the embedded ActiveMQ > resource adapter -- > http://cwiki.apache.org/GMOxDOC21/deployment-plans.html#Deploymentplans-EmbeddedActiveMQresourceadapter > > Note the property setting for 'ServerUrl'. If you're using the same > version of ActiveMQ that Geronimo embeds (G 2.1.2 uses 4.1.2), you > could use the above plan as a guide and deploy a new resource adapter > for the external ActiveMQ server. Alternatively, if you're using a > different ActiveMQ version, deploy the activemq rar file (in lib/ > optional of the activemq installation) using the same general scheme > -- setting the ServerUrl property in your deployment plan (assuming > ActiveMQ has not changed their RA config properties). > > --kevan > > > -- View this message in context: http://www.nabble.com/ActiveMQ-questions-tp6326283s134p18915577.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: JNDI Viewer - case insensitive search
On Aug 7, 2008, at 4:58 AM, weberj wrote: I'd like the JNDI Viewer to have case insensitive search by default. What do others think? I can't think of any reason why not... And if it would be helpful to you, then it will probably help others! ;-) Would you be interested in helping to implement? --kevan
Re: Geronimo support stories
On Aug 10, 2008, at 4:54 AM, Radim Kolar wrote: Do we need any guidelines on content? Should we allow images, limit the amount of text, limit the amount of hype/marketing? as company owner, i am not very interested about publishing list of software we use. But i would think about it if list of G users is sorted by industry (not name), and includes logo, link and 1 or 2 paragraphs about company (what we doing and how we are using it). From my experience with OSS projects most times maintainers refuse to put even link to our site, because they dont want to give us 'free traffic'. Why should i waste my time with them and writing use case? http://cwiki.apache.org/geronimo/presentations.html page should be updated with links to geronimo presentations on net, they are several good ones such as http://www.ibm.com/developerworks/forums/thread.jspa?threadID=215779&tstart=0 http://www.parleys.com/display/PARLEYS/Home#title=Apache%20Geronimo %20Unleashed;talk=7984;slide=1 on ibm site you can find lot of articles about geronimo. They should be linked from wiki too (possibly on different page then presentations ) Radim, Thanks for the feedback. --kevan
Re: Geronimo support stories
On Aug 9, 2008, at 7:52 AM, Joe Bohn wrote: Joe Bohn wrote: +1 I think we will need to have a mechanism to ensure additions are valid and match what a user has asked to post. I propose that we use JIRA as a tool to receive requests to be included in the list(s) and as a place to store the requested content. That will provide some record keeping and accountability. If we do permit graphics/symbols they can be attached to the JIRA with permission granted to Apache via the checkbox as a way of formally documenting the approval to include the image. I still like the JIRA idea but on further reflection I suppose the check box can't be used for this purpose. I like the Jira idea, also. Seems like the ASF grant button could be used for the submission. Alternatively, an ICLA and direct wiki access could be used. --kevan
Re: ActiveMQ questions
On Aug 8, 2008, at 2:13 PM, devdev wrote: Regarding #1, would you please point me to some instructions or examples? I have a 4 appservers running on different computers and I'd like to install an ActiveMQ on a 5th computer and have the 4 appservers sending/ receiving message from AMQ. I don't know of any explicit documentation for this use case. Perhaps someone would be interested in generating some? This URL shows the deployment plan used for the embedded ActiveMQ resource adapter -- http://cwiki.apache.org/GMOxDOC21/deployment-plans.html#Deploymentplans-EmbeddedActiveMQresourceadapter Note the property setting for 'ServerUrl'. If you're using the same version of ActiveMQ that Geronimo embeds (G 2.1.2 uses 4.1.2), you could use the above plan as a guide and deploy a new resource adapter for the external ActiveMQ server. Alternatively, if you're using a different ActiveMQ version, deploy the activemq rar file (in lib/ optional of the activemq installation) using the same general scheme -- setting the ServerUrl property in your deployment plan (assuming ActiveMQ has not changed their RA config properties). --kevan
Re: large-scale app.. random spiking on even static files!
On Aug 9, 2008, at 12:09 AM, Pete Clark wrote: Finally, here are our startup opts as it pertains to GC if it helps: -XX:+HeapDumpOnOutOfMemoryError -XX:PermSize=256m -XX:MaxPermSize=256m -Xmx5120m -Xms5120m -Xss128k -XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts -Xloggc:/var/tmp/gc.log Have you attempted to correlate long response times with Garbage Collection activity? That would be my initial suspicion. I confess that I'm not up-to-date on the latest GC parameters. So, without a bit of reading on my part, I'm not entirely sure of the effect of your tuning parameters. Does your application actually require a 5 gig heap? What's your CPU utilization look like during periods of slow response time? IIUC correctly, the below results are for retrieval of a static text file. However, there is additional activity on the server (retrieval of Shockwave Flash files and a URL proxy). Is that correct? Is it feasible to isolate these functions? --kevan On Fri, Aug 8, 2008 at 11:59 PM, pc3 <[EMAIL PROTECTED]> wrote: Oh yeah, and we're using tomcat as the servlet engine.. thanks! pc3 wrote: hey all - so i've spent the past two weeks trying to figure out why my large scale application (200m page views per month) is having some serious, yet random, spikes in response times. we've got an app running under gero 1.1.1, using hibernate, mysql, etc. i've got the response times down in general by adding memcaching and other optimizations but we still see the spikes.. e.g. most of our actions return in 0.1 sec, but occasionally (and often enough!) .. we'll see a random spike up to 30s from different machines in our cluster. so for kicks tonight i tried running a test against all of our app servers not for an action but for a plain .txt file ... and guess what... spiky responses just from the txt file! a 4.9kb text file! look: $profileUrl /blah/Languages.txt Host 192.168.1.100 Time taken for tests: 8.555825 seconds Host 192.168.1.101 Time taken for tests: 0.2064 seconds Host 192.168.1.108 Time taken for tests: 0.1436 seconds Host 192.168.1.104 Time taken for tests: 0.1667 seconds Host 192.168.1.112 Time taken for tests: 0.1444 seconds Host 192.168.1.117 Time taken for tests: 0.4575 seconds Host 192.168.1.118 Time taken for tests: 0.2015 seconds Host 192.168.1.119 Time taken for tests: 0.2003 seconds Host 192.168.1.120 Time taken for tests: 0.1713 seconds Host 192.168.1.121 Time taken for tests: 7.22861 seconds Host 192.168.1.122 Time taken for tests: 0.1615 seconds Here are some things to go on: 1) we still host a few swfs from these servers that are hit frequently. could these be causing some kind of blocking? 2) we have a method in our application that acts as a proxy, taking a url as a parameter, fetching the url then dumping it to the response I'm open to any ideas or suggestions as to what could be causing the spikiness of response times here for a txt file.. one that never even hits our java code. Thanks very much all... -- View this message in context: http://www.nabble.com/large-scale-app..-random-spiking-on-even-static-files%21-tp18902003s134p18902031.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Geronimo support stories
> Do we need any guidelines on content? Should we allow images, limit the amount of text, limit the amount of hype/marketing? as company owner, i am not very interested about publishing list of software we use. But i would think about it if list of G users is sorted by industry (not name), and includes logo, link and 1 or 2 paragraphs about company (what we doing and how we are using it). >From my experience with OSS projects most times maintainers refuse to put even link to our site, because they dont want to give us 'free traffic'. Why should i waste my time with them and writing use case? http://cwiki.apache.org/geronimo/presentations.html page should be updated with links to geronimo presentations on net, they are several good ones such as http://www.ibm.com/developerworks/forums/thread.jspa?threadID=215779&tstart=0 http://www.parleys.com/display/PARLEYS/Home#title=Apache%20Geronimo%20Unleashed;talk=7984;slide=1 on ibm site you can find lot of articles about geronimo. They should be linked from wiki too (possibly on different page then presentations ) -- View this message in context: http://www.nabble.com/Geronimo-support-stories-tp18869066s134p18911729.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.