Hello World of Geronimo 2.1 J EE 5 as WebApp avaiable? with NetBeans?
Is there any out there?
Re: Geronimo v2.1 Plan Creator = Deploy Liferay 4.1.1
On Mar 7, 2008, at 12:12 PM, Jim Foster wrote: Hi Jim, There are a lot of knobs and switches. However, you can cause as much harm as good trying to fine tune their settings. My advice to you is to keep things as simple as possible until you know you have a problem. Hi Kevan, Simple is good. I will certainly take your advice. I just know from experience that it best to put a lasso around potential system-related problems like this early in the game...if not they may assume an exponential flight path. Understood. IMO, this is a like optimizing code execution. Spend some time with algorithmic analysis, but don't spend too much time trying to optimize arbitrary code paths. Wait until you have actual performance data that indicates where you will get the most bang for your buck. Measure, then optimize. You may find the following blog useful -- http://kirk.blog-city.com/advice_on_jvm_heap_tuning_dont_touch_that_dial.htm Kevan Miller wrote: The JVM can print GC statistics to STDOUT. Often I find this sufficient for getting a broad overview of what's going on. You can also configure the JVM to create a heapdump on OOME conditions. If you have a memory leak, you can then analyze the heapdump using a variety of tools (I like YourKit). There are a number of tools which can also perform further analysis on runtime data (memory allocations, method execution, etc). Something like the following should work (set max heap and max perm to suit your environment): -Xmx512m -XX:MaxPermSize=128m -verbose:gc -XX:+PrintGCDetails -XX: +HeapDumpOnOutOfMemoryError --kevan This is good to know. It's probably too early for me to be thinking of dropping $500 for a profiler like YourKit, but just leveraging the command line options as you suggest should help in keeping things from getting out of control. I appreciate your sharing this. Thanks! Heh. /me confesses that I use YourKit under an Open Source license (e.g. free). I also mainly use it for memory leak diagnosis... There are free tools that will analyze the GC statistics. However, I generally just eyeball things until I'm really getting serious about tuning... HPjtune is pretty good -- http://www.hp.com/products1/unix/java/java2/hpjtune/ --kevan --kevan
geronimo 2 javadoc and sources needed
Hello, good folks. I want to get geronimo 2.1 javadoc and source, especially for javax.servlet.* to use in ide eclipse. Any ideas are appreciated. -- View this message in context: http://www.nabble.com/geronimo-2-javadoc-and-sources-needed-tp15913314s134p15913314.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: G2.1 class loader error
You were right! The inverse-classloading/ did help, thanks! best regards Łukasz On 06/03/2008, David Jencks [EMAIL PROTECTED] wrote: This kind of problem is often caused by bad classloader relationships. If jaxen is loaded in a parent classloader to your app and jdom is loaded in your app's classloader then jdom will be able to load jaxen classes but jaxen classes will not be able to load jdom classes: it looks like this scenario is consistent with what you've shown us. If this is the problem you can fix it by adding the jaxen jar as an app dependency (if its missing) and including either inverse-classloading/ or hidden-classes filterorg.jaxen./filter hidden-classes near the end of the environment element in your geronimo plan. thanks david jencks On Mar 6, 2008, at 12:55 AM, Łukasz Budnik wrote: Hi All! I'm using G2.1 and I have a very weird class loader problem. My application uses JDOM and Jaxen. Jaxen is by default shipped with G2.1, I had only to add JDOM jar into G2.1 repository. I have added proper dependencies into my openejb-jar.xml. The thing is that it looks like Geronimo loads only some (for sure not all!) classes from JDOM jar. For example looking at the following stacktrace (see below) I know that following classes were loaded: org.jdom.xpath.XPath, org.jdom.xpath.JaxenXPath, org.jaxen.jdom.JDOMXPath, and org.jdom.JDOMException. But class loader did not load org/jdom/Parent class (it is listed in JDOM jar). The stacktrace: 07:59:42,921 ERROR [JDOMXMLUtils] JDOMException exception was thrown! org.jdom.JDOMException: java.lang.NoClassDefFoundError: org/jdom/Parent: org/jdom/Parent at org.jdom.xpath.XPath.newInstance(XPath.java:139) ... java.lang.NoClassDefFoundError: org/jdom/Parent at org.jaxen.jdom.JDOMXPath.init(JDOMXPath.java:91) at org.jdom.xpath.JaxenXPath.setXPath(JaxenXPath.java:281) at org.jdom.xpath.JaxenXPath.init(JaxenXPath.java:99) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.jdom.xpath.XPath.newInstance(XPath.java:129) I had no idea what is going on... It looks like classes that are explicitly defined work, classes that are used/created by factories don't. any tips? best regards Łukasz
Re: Geronimo 2.1 and Seam
Hi Jay, (and David^2) Thanks for checking that. I didn't have time to experiment with it on Friday. Darn. Ok, well. I just now checked my Seam users group posting on this. It looks like Gavin King replied. Please check it out, and don't hesitate to respond as well. http://www.seamframework.org/Community/Seam2JEE5CompliantWithTheTCKRequirements Geronimo and Seam and TCK Gavin mentioned to fill out a bug report. Any suggestions? Thanks everyone. This is really excellent. I wonder if we could get some kinda patch for Seam on Geronimo? .Burt Jay D. McHugh-3 wrote: Hey Burt, I just tried removing the @Destroy annotations in the booking example but the errors still pop up. Jay Burt Prior wrote: Hi David, I just posted on SeamFramework.org: http://www.seamframework.org/Community/Seam2JEE5CompliantWithTheTCKRequirements Seam Posting I'm hoping to get some way to resolve this issue soon. Perhaps its as you mentioned: Can't I just safely remove @Destroy? Thanks, .Burt djencks wrote: On Mar 7, 2008, at 2:51 PM, Burt Prior wrote: Hi David and David, First, thank you both for helping us. Our team has been hanging on your every post! Do you have any evidence that seam runs with a bean with a @Destroy annotated method on any certified platform? I sure don't, other than latest Seam doc/articles i've went thru here: http://seamframework.org/Documentation/GettingStarted Getting Started with Seam Also, this booking example is the 'jee5' booking example; there is a 'non jee5' booking example as well in every Seam download. I think the 'non jee5' uses plain JavaBean and Hibernate instead of EJB3 and JPA. The only other JEE5 certified platform I know of that works with Seam is GlassFish. Not from personal exerience but from articles from Sun and Seam. http://weblogs.java.net/blog/caroljmcdonald/archive/2007/07/ sample_applicat_1.html GlassFish and Seam I was just wondering. Anyone running Seam on a JEE5 compliant server such Geronimo or GlassFish must get the same error? Well, if they have an ejb with a @Destroy method we think they will get this error. The glassfish example for v2 does have one @Destroy method in CatalogBean but my experience trying to extract information from Glassfish has not been a happy one so I haven't tried anything on it. Also, it doesn't make much sense. Yes, i agree. All the errors we solved to get to this point 'made sense'. But when I saw this error, and read David's response, i thought we were in trouble; If I'm hitting up against the spec, and I can't change my code, where does that leave my architecture? (Geronimo, EJB3, Seam, Oracle, JPA, JSF). I would think the jboss/seam developers would be the ones to start this although we might challenge it also. Yes, I will post on the appropriate Seam list today. I guess the question is to focus on @Destroy? How would you phrase it? What also doesn't make sense is the Seam doc for @Destroy. Why do we see any issue at all? http://docs.jboss.com/seam/2.1.0.A1/reference/en/html/ annotations.html#d0e19563 Seam @Destroy Annotation The challenge process typically takes a while. Yes. Not really an option for us. We are trying get our Geronimo app out now. Other than filling up your logs what problems is this causing? There appears to be no other errors or problems. I've been exercising the app, watching the console log in real time in the eclipse console, then checking the db. It appears to work fine. It throws the exceptions, then recovers. It's always the same error: 'Callback methods cannot access parameters'. Seeing the entire stack trace from your bean's @Destroy method to the original exception might possibly shed more light on the subject. Does the destroy method on your beans actually do anything? If, like the samples, it does nothing, the simplest solution is to leave it out. If if does do something, does it get called? My belief from the stack trace is that it does not due to the exception. As for wording... that's tricky. I guess I'd say that running the app on the geronimo/openejb javaee5 certified container results in the stack trace and that allowing the InvocationContext to supply the parameters during a lifecycle call results in tck failures. I'd ask if they can run the sample with the @Destroy method getting called on a certified container without getting an exception and perhaps mention that we aren't aware of any support in the spec itself for this requirement. I'd include this part of the stack trace: 11:25:05,179 ERROR [OpenEJB] The bean instance business method encountered a system exception: Callback methods cannot access parameters java.lang.IllegalStateException: Callback methods cannot access parameters at org.apache.openejb.core.interceptor.ReflectionInvocationContext.getParam
Re: geronimo 2 javadoc and sources needed
Hi Slava, I'm not exactly sure I understand what you are asking, but if you are trying to import all the Geronimo 2.1 code into Eclipse these instruction might be of use to you: - http://cwiki.apache.org/GMOxDEV/developing-geronimo-in-eclipse.html Also, you might want to look at some of the 2.1 Documentation (that is still a work in progress), especially the Developer's Guide: - http://cwiki.apache.org/GMOxDOC21/documentation.html Hope this helps, if not, please try your question again . Slava Gonahchan wrote: Hello, good folks. I want to get geronimo 2.1 javadoc and source, especially for javax.servlet.* to use in ide eclipse. Any ideas are appreciated. -- Thanks, Tim McConnell