[jboss-user] [JBoss Remoting] - EOFExceptions and IOExceptions in remote EJB calls under load
Christian Kölle [https://community.jboss.org/people/chrkoelle] created the discussion EOFExceptions and IOExceptions in remote EJB calls under load To view the discussion, visit: https://community.jboss.org/message/800098#800098 -- Hi I have posted this question in the JBoss 7 forum but didn't get an answer. I hope that somebody in this forum has some idea what's the problem here. We have a web application that ist split up in a frontend and a backend application. The frontend calls EJBs in the backend. This works pretty well but in production we occasionaly we get exceptions at times that we know as high load periods. Both applications run on JBoss 7.1.2 application servers. In the frontend we see something like this: 00:59:10,337 ERROR [org.jboss.remoting.remote.connection] (Remoting jboss-web-extern read-1) JBREM000200: Remote connection failed: java.io.IOException: Input overrun 00:59:10,393 ERROR [] (ajp-/0.0.0.0:8009-130) Cannot perform usecase *** java.lang.reflect.UndeclaredThrowableException $Proxy75.performUseCase(Unknown Source) .. Cause: java.io.EOFException: Writes have been shut down org.xnio.channels.FramedMessageChannel.send(FramedMessageChannel.java:220) org.xnio.channels.Channels.sendBlocking(Channels.java:200) org.jboss.remoting3.remote.OutboundMessage$1.accept(OutboundMessage.java:109) org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:125) org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:113) In the backend something like this: 00:59:10,348 ERROR [org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler] (EJB default - 13) Could not write method invocation result for method public *** on bean named *** for appname *** modulename common-ejb distinctname due to : java.io.IOException: Broken pipe at sun.nio.ch.FileDispatcherImpl.write0(Native Method) [rt.jar:1.7.0_06] at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) [rt.jar:1.7.0_06] at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:89) [rt.jar:1.7.0_06] at sun.nio.ch.IOUtil.write(IOUtil.java:60) [rt.jar:1.7.0_06] at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450) [rt.jar:1.7.0_06] at org.xnio.nio.AbstractNioStreamChannel.write(AbstractNioStreamChannel.java:303) at org.xnio.channels.FramedMessageChannel.doFlushBuffer(FramedMessageChannel.java:297) [xnio-api-3.0.3.GA.jar:3.0.3.GA] at org.xnio.channels.FramedMessageChannel.doFlush(FramedMessageChannel.java:311) [xnio-api-3.0.3.GA.jar:3.0.3.GA] at org.xnio.channels.FramedMessageChannel.send(FramedMessageChannel.java:238) [xnio-api-3.0.3.GA.jar:3.0.3.GA] at org.xnio.channels.Channels.sendBlocking(Channels.java:200) [xnio-api-3.0.3.GA.jar:3.0.3.GA] at org.jboss.remoting3.remote.OutboundMessage$1.accept(OutboundMessage.java:109) [jboss-remoting-3.2.7.GA.jar:3.2.7.GA] at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:125) [xnio-api-3.0.3.GA.jar:3.0.3.GA] at org.xnio.streams.BufferPipeOutputStream.send(BufferPipeOutputStream.java:113) [xnio-api-3.0.3.GA.jar:3.0.3.GA] at org.xnio.streams.BufferPipeOutputStream.flush(BufferPipeOutputStream.java:142) [xnio-api-3.0.3.GA.jar:3.0.3.GA] at org.xnio.streams.BufferPipeOutputStream.close(BufferPipeOutputStream.java:160) [xnio-api-3.0.3.GA.jar:3.0.3.GA] at org.jboss.remoting3.remote.OutboundMessage.close(OutboundMessage.java:193) [jboss-remoting-3.2.7.GA.jar:3.2.7.GA] at org.jboss.as.ejb3.remote.protocol.versionone.ChannelAssociation.releaseChannelMessageOutputStream(ChannelAssociation.java:85) at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.writeMethodInvocationResponse(MethodInvocationMessageHandler.java:348) at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$500(MethodInvocationMessageHandler.java:67) at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:237) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_06] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_06] at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_06] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_06] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_06] at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_06] at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA] I haven't found more information
Re: [aspectj-users] Problem with annotation based pointcut and inner classes
Andrew Eisenberg wrote: Does this not work for you? The call to method() in main() is where the advice is applied. Hi Thanks for the answer and sorry for the question in the first place. You're right, this works fine. My problem was the result of a build problem in our project. The subproject in question hasn't been weaved with the aspect. Sorry for wasting your time Christian ___ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users
[aspectj-users] Problem with annotation based pointcut and inner classes
Hello I have a problem with an annotation based pointcut that should match annotated methods. Here's the aspect code: privileged aspect JetmMeasurement { pointcut jetmMeasure(): call(@Jetm * *(..)); Object around(): jetmMeasure() { [...] } Unfortunately the pointcut doesn't work with annotated methods in inner classes. I tried some other matching pattern like call(@Jetm * *..*(..)) but this didn't help. I'd appreciate any hints. Christian ___ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users
Re: [POLL] Default Value for File Encoding
Benjamin Bentmann wrote: a) Use the current platform encoding, aka the system property file.encoding. b) Use a static/fixed value that is defined by convention, i.e. is not platform-dependent. Hi I vote for b). The different file encodings on different environments are a mess. Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [POLL] Default Value for File Encoding
Benjamin Bentmann wrote: Marat Radchenko wrote: And let it be UTF-8. Until a flood of users pushes into this direction of UTF-8, which is surely the more international/nicer choice, I believe we're better off with staying to Latin-1 and keep consistency among the plugins. OK, start the food. I would also recommend UTF-8. Latin-1 would only be slightly better than ASCII. Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: panelTabbedPane submit on serverside tab-switching
Hi Gerald, thanks for your quick response and your hint. I have just investigated the differences between my application and the demo. Now I can say the entered values are not written into the bound properties, if the input fields is nested inside a t:dataTable. I am not sure where to go on now. Any ideas? Regards Christian Kölle
panelTabbedPane submit on serverside tab-switching
Hello everyone, I have a form containing a tomahawk panelTabbedPane which contains 4 tabbed panels. All tabbed panels contain a lot of input-fields. The problem is, as someone mentioned before 2 years ago, that the data entered in the form on TAB_A will be lost, when I switch to TAB_B, provided that server-side-tab-switching is activated. What I would like to have is a feature which writes the data entered into JSF-bound-bean-properties before the actual tabswitching is done (in other words, I need a submit before tab-switching). Please note that I would really like to use server-side tabb-switching, as the tabs contain lots of data and the bandwidth is very limited. Please also note, that I do not like to add a onvalueChange-JScript to all input fields. (Somehow autoscroll does not work (to be investigated).) Any ideas: What about a phase listener, which does this work manually? Regards and thanks in advance. Christian Kölle
AW: panelTabbedPane submit on serverside tab-switching
Sorry, I forgot to mention this: I also would really like to use server-side tab switching, because the various tabs show different views on the same data, i.e. if I enter a address on TAB_C and then switch to TAB_A the value entered should be shown in a different way. So the TABS represent different views on the same model. Regards Christian Christian Kölle wrote: | Hello everyone, | | I have a form containing a tomahawk panelTabbedPane which contains 4 | tabbed panels. All tabbed panels contain a lot of input-fields. | | The problem is, as someone mentioned before 2 years ago, that the | data entered in the form on TAB_A will be lost, when I switch to | TAB_B, provided that server-side-tab-switching is activated. What I | would like to have is a feature which writes the data entered into | JSF-bound-bean-properties before the actual tabswitching is done (in | other words, I need a submit before tab-switching). | | Please note that I would really like to use server-side | tabb-switching, as the tabs contain lots of data and the bandwidth is | very limited. | | Please also note, that I do not like to add a onvalueChange-JScript | to all input fields. (Somehow autoscroll does not work (to be | investigated).) | | Any ideas: What about a phase listener, which does this work manually? | | Regards and thanks in advance. | Christian Kölle
Re: [Webtest] JAX 2008?
Marc Guillemot wrote: does someone from this list come to the JAX 2008 next week in Wiesbaden? Hi Yes, i do. Looking forward to meet you. Christian -- SWITCH Serving Swiss Universities -- Dr. Christian Kölle Werdstrasse 2, P.O. Box, CH-8021 Zurich, Switzerland phone +41 44 268 15 55 fax: +41 44 268 15 68 [EMAIL PROTECTED], http://www.switch.ch ___ WebTest mailing list WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
Re: Maven2 site plugin inheritence
ewryan wrote: I define properties such as ${myVersion}, ${myArtifactId}, ${myGroupId} in the parent pom. These properties are inherited by the children (as expected) when running goals such as clean, package, or install. I start to see problems when I try to use the site plugin. Hi I asked the very same question a while ago and got no real answer. I tried to figure out what happened in the code. What i found out is the following: The site plugin handles every subproject like a normal top level project. So it reads the pom for the subproject at first. After that it tries to locate the pom for the parent project. For this it uses the information of the parent block in the pom. In our case the parent block in the subproject pom depends on properties from the parent pom that is not known at this point in time so the properties can't be resolved. I don't see a satisfying solution for this problem. But i think we need the knowledge of a maven (plugin) programmer here. Cheers Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bug#466860: (no subject)
The severity of this bug is important because tools like continuum produce command lines like this and are unusable because of this bug. ___ pkg-java-maintainers mailing list pkg-java-maintainers@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers
Bug#466860: (no subject)
The severity of this bug is important because tools like continuum produce command lines like this and are unusable because of this bug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#466860: maven2: -D option on command line masks following goal definitions
Package: maven2 Version: 2.0.8-4 Severity: important When calling maven from the command line with at least one -D option and the goal definition following the -D option the build fails, i.e. a command line like: mvn -Dsome.option=0 install will produce the following error: You must specify at least one goal. Try 'mvn install' to build or 'mvn -?' for options See http://maven.apache.org for more information. This problem is debian specific. Tests on other platforms don't show this behaviour. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/4 CPU cores) Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages maven2 depends on: ii libcommons-cli-java 1.1-1 API for working with the command l ii libdoxia-java1.0-alpha-7-1 a powerful content generation fram ii libjsch-java 0.1.37-2java secure channel ii libjtidy-java7+svn20070309-1 a Java port of HTML Tidy, a HTML s ii libplexus-interactivity- 1.0-alpha-6-2 interactivity API for the Plexus f ii libplexus-utils-java 1:1.4.8-1 utilities for the Plexus framework ii libwagon-java1.0-beta-2-2tools to manage Maven artifacts an ii libxalan2-java 2.7.1-1 XSL Transformations (XSLT) process maven2 recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Problem with property inheritance in maven site plugin
Hi all I have a problem with the property inheritance in the maven site project. I have a multi-module project. The base pom looks like this: project modelVersion4.0.0/modelVersion groupIdmy.project/groupId artifactIdall/artifactId packagingpom/packaging version${project.version}/version properties project.version1.0/project.version /properties ... /project The poms of the subprojects look like this: project modelVersion4.0.0/modelVersion parent groupIdmy.project/groupId artifactIdall/artifactId version${project.version}/version relativePath../Build/pom.xml/relativePath /parent ... /project This works fine for the install goal (wich use a lot of different plugins for special purposes) but not for the site plugin. A call to mvn site produces the following error: [INFO] [site:stage] Downloading: http://repo1.maven.org/maven2/my/project/${project.version}/all-${project.version}.pom [INFO] Parent project loaded from repository. [INFO] Parent project loaded from repository. Downloading: http://repo1.maven.org/maven2/my/project/${project.version}/all-${project.version}-site_en.xml [INFO] [ERROR] BUILD ERROR [INFO] [INFO] The site descriptor cannot be resolved from the repository: No such file or directory When I change to explicit version numbers in both poms everything works fine. Obviously the site plugin has problems with resolving the property. Any ideas? Thanks Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with property inheritance in maven site plugin
VUB Stefan Seidel wrote: ${project.version} is an internal maven property, so it is absolutely not a good idea to use it. So the first try should be to rename that one. Hi Obviously this was a bad example. In my real poms the variable has another name. I changed that in the mail because i don't want to expose internal details of our application and haven't thought about the name very well. So this is not the problem. Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Webtest] Problem setting radio button (incl. Javascript)
Marc Guillemot wrote: Hmmm, can you configure lib/log4j.properties to debug to get more information? Hi As you can see in the log snippet this was already the full debug level. I've played around with the log4j.properties but don't get any new information. What i've done instead is to verify the radio button setting after the setRadioButton step. When i do this the verify step consistently fails every time. The setRedioButton step seems not work. I inserted also a sleep between the set and the verify and surrounded the steps with a retry. But this has no effect at all. I also migrated to htmlunit 1.14. This also doesn't change anything. I will try to create a minimal web application and test to reproduce the problem. But this may take some time. Thanks for the answers anyway Christian ___ WebTest mailing list WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
Re: [Webtest] Problem setting radio button (incl. Javascript)
Marc Guillemot wrote: can you provide the full stack trace? Hi There is no stack trace. The step silently fails. Here's the corresponding part of the console log: [storeXPath] INFO (com.canoo.webtest.steps.Step) - Start Step: storeXPath (22/33) [setRadioButton] INFO (com.canoo.webtest.steps.Step) - Start Step: setRadioButton (23/33) [setRadioButton] INFO (com.canoo.webtest.engine.WebClientContext) - Current form set to (action=dn0302Navigate.action;jsessionid=6E39EE65817B1538DE53E9164E92EBD0) [setRadioButton] INFO (com.canoo.webtest.steps.form.AbstractSetFieldStep) - Found 1 suitable fields, considering only the first one [setRadioButton] ERROR (com.gargoylesoftware.htmlunit.html.HtmlForm) - org.jaxen.XPathSyntaxException: Expected: ] [setRadioButton] DEBUG (com.gargoylesoftware.htmlunit.html.HtmlRadioButtonInput) - Firing Event change (Current Target: HTMLElement for HtmlRadioButtonInput[input value=immediate type=radio onclick=ConfirmSelectionAsync(apos;dn0302ItemSelection.action;jsessionid=6E39EE65817B1538DE53E9164E92EBD0apos;,apos;immediateapos;,apos;-375616497apos;,this) name=selectedDeleteTimeItems[apos;-375616497apos;]]); [setRadioButton] DEBUG (com.gargoylesoftware.htmlunit.html.HtmlRadioButtonInput) - Firing Event click (Current Target: HTMLElement for HtmlRadioButtonInput[input value=immediate type=radio onclick=ConfirmSelectionAsync(apos;dn0302ItemSelection.action;jsessionid=6E39EE65817B1538DE53E9164E92EBD0apos;,apos;immediateapos;,apos;-375616497apos;,this) name=selectedDeleteTimeItems[apos;-375616497apos;]]); [setRadioButton] DEBUG (com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer) - Executing click handler for HtmlRadioButtonInput[input value=immediate type=radio onclick=ConfirmSelectionAsync(apos;dn0302ItemSelection.action;jsessionid=6E39EE65817B1538DE53E9164E92EBD0apos;,apos;immediateapos;,apos;-375616497apos;,this) name=selectedDeleteTimeItems[apos;-375616497apos;]] [setRadioButton] DEBUG (com.gargoylesoftware.htmlunit.DefaultCredentialsProvider) - Flushed marked answers [setRadioButton] DEBUG (com.gargoylesoftware.htmlunit.javascript.host.XMLHttpRequest) - Starting XMLHttpRequest thread for asynchronous request Christian ___ WebTest mailing list WebTest@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest
AW: My 1.1.5 t:panelNavigation2 looses its state.
Hello, I tried to play a bit around with the components, like: UIComponent tempcomp2 = context.getViewRoot().findComponent(frmmenu:nav1:nav111); [...] HtmlCommandNavigationItem comp = (HtmlCommandNavigationItem)tempcomp2; comp.setActive(true); [...] But it did not work with my experience and I ran out of time. # Solution for me: I went back to my old version but added SNAPSHOT-components only as far as needed: - JSF-Core 1.1.3 - Tomahawk 1.1.2 - Tomahawk-Sandbox 1.1.5-SNAPSHOT - Tomahawk 1.1.5-SNAPSHOT-MODIFIED After removing the h:form around t:panelNavigation2 and going back to the old TilesViewHandler, my application works again as expected, including the autoupdatetable, which works nicely. Thanks regards Christian Christian Kölle wrote: | Thanks a lot for your response. | | My case: I am just using a static t:panelNavigation2 Panel, just as | in IRIAN's examples, i.e. the static version but with tiles. During | migration || from 1.1.2. 1.1.5-Snapshot, I had to wrap the t:panelNavigation2 || with | form, otherwise the stylesheets did not apply on the | t:panelNavigation2. | | My project ends this month. So | a.) I will check wether autoupdatetable works as intended. If not, | I will go back to to tomahawk-1.1.2. I have no other need for | 1.1.5-SNAPSHOT. | b.) If autoupdatetable works as intended, I will try to retrieve | HtmlPanelNavigationMenu.java from context and call methods on it, out | of my code. Hopefully this works otherwise I will kick all this. | | Regards, | Christian | | Madhav Bhargava wrote: || I faced a similar problem. I included the source code of tomahawk || and debugged it. || || I found that the encodeBegin has a method which will restore opened || states. Now this method will not be called when the tree is || constructed afresh. || || || Check to see if the tree is getting constructed again. In my case I || had a panelNavigation2 inside a custom component and therefore it || made it easier for me to debug it. I am not sure what is the case || with you. || ||| -Original Message- ||| From: Christian Kölle [mailto:[EMAIL PROTECTED] ||| Sent: Friday, January 26, 2007 2:13 AM ||| To: users@myfaces.apache.org ||| Subject: My 1.1.5 t:panelNavigation2 looses its state. ||| || ||| Hello, ||| || ||| Prenotes: ||| I am not very familiar into the JSF-Myfaces deep-ends. I consider ||| myself more as a pure user. ||| || ||| Problem: ||| Under certain conditions, my t:panelNavigation2 looses its state. ||| More precisely: Sometimes I receive a page response, where the ||| panalNavigation is collapsed, also the previously selected sub-item ||| should stay selected. ||| || ||| Sometimes and under certain conditions means, that the problem ||| only occurs when i write something into the managed beans from ||| within my java-code, i.e. like adding an error-message to the ||| context [context.addMessage(, errMsg);] or when I retrieve a ||| managed bean from application's variable resolver and amend the ||| content of the managed bean. ||| || ||| The problem did not occur with ||| - tomahawk 1.1.2 and ||| - myfaces 1.1.3 ||| With those versions mentioned, the panelNavigation2 behaved ||| exactly as I expected. ||| || ||| The problem occurs with ||| - tomahawk-1.1.5-SNAPSHOT and ||| - tomahawk-sandbox-1.1.5-SNAPSHOT ||| with either myfaces-core 1.1.3 or myfaces-core 1.1.5-snapshot. ||| || ||| You might ask, why I use 1.1.5-SNAPSHOT? Well I want to have a try ||| on the Sandbox's autoUpdateDataTable. Therefore I need ||| tomahawk-sandbox-1.1.5-SNAPSHOT. For me it seems that I cannot use ||| tomahawk-sandbox-1.1.5-SNAPSHOT in combination with tomahawk-1.1.2, ||| where the panelNavigation2 is defined. ||| || ||| Any ideas, quick hacks? ||| Thanks in advance regards ||| Christian
AW: My 1.1.5 t:panelNavigation2 looses its state.
Thanks a lot for your response. My case: I am just using a static t:panelNavigation2 Panel, just as in IRIAN's examples, i.e. the static version but with tiles. During migration from 1.1.2. 1.1.5-Snapshot, I had to wrap the t:panelNavigation2 with form, otherwise the stylesheets did not apply on the t:panelNavigation2. My project ends this month. So a.) I will check wether autoupdatetable works as intended. If not, I will go back to to tomahawk-1.1.2. I have no other need for 1.1.5-SNAPSHOT. b.) If autoupdatetable works as intended, I will try to retrieve HtmlPanelNavigationMenu.java from context and call methods on it, out of my code. Hopefully this works otherwise I will kick all this. Regards, Christian Madhav Bhargava wrote: | I faced a similar problem. I included the source code of tomahawk and | debugged it. | | I found that the encodeBegin has a method which will restore opened | states. Now this method will not be called when the tree is | constructed afresh. | | | Check to see if the tree is getting constructed again. In my case I | had a panelNavigation2 inside a custom component and therefore it | made it easier for me to debug it. I am not sure what is the case | with you. | || -Original Message- || From: Christian Kölle [mailto:[EMAIL PROTECTED] || Sent: Friday, January 26, 2007 2:13 AM || To: users@myfaces.apache.org || Subject: My 1.1.5 t:panelNavigation2 looses its state. || | || Hello, || | || Prenotes: || I am not very familiar into the JSF-Myfaces deep-ends. I consider || myself more as a pure user. || | || Problem: || Under certain conditions, my t:panelNavigation2 looses its state. || More || precisely: Sometimes I receive a page response, where the || panalNavigation is collapsed, also the previously selected sub-item || should stay selected. || | || Sometimes and under certain conditions means, that the problem || only occurs when i write something into the managed beans from within || my java-code, i.e. like adding an error-message to the context || [context.addMessage(, errMsg);] or when I retrieve a managed bean || from application's variable resolver and amend the content of the || managed bean. || | || The problem did not occur with || - tomahawk 1.1.2 and || - myfaces 1.1.3 || With those versions mentioned, the panelNavigation2 behaved exactly || as I expected. || | || The problem occurs with || - tomahawk-1.1.5-SNAPSHOT and || - tomahawk-sandbox-1.1.5-SNAPSHOT || with either myfaces-core 1.1.3 or myfaces-core 1.1.5-snapshot. || | || You might ask, why I use 1.1.5-SNAPSHOT? Well I want to have a try on || the Sandbox's autoUpdateDataTable. Therefore I need || tomahawk-sandbox-1.1.5-SNAPSHOT. For me it seems that I cannot use || tomahawk-sandbox-1.1.5-SNAPSHOT in combination with tomahawk-1.1.2, || where the panelNavigation2 is defined. || | || Any ideas, quick hacks? || Thanks in advance regards || Christian | | | CAUTION - Disclaimer * | This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended | solely for the use of the addressee(s). If you are not the intended | recipient, please notify the sender by e-mail and delete the original | message. Further, you are not to copy, disclose, or distribute this | e-mail or its contents to any other person and any such actions are | unlawful. This e-mail may contain viruses. Infosys has taken every | reasonable precaution to minimize this risk, but is not liable for | any damage you may sustain as a result of any virus in this e-mail. | You should carry out your own virus checks before opening the e-mail | or attachment. Infosys reserves the right to monitor and review the | content of all messages sent to or from this e-mail address. Messages | sent to or from this e-mail address may be stored on the Infosys | e-mail system. ***INFOSYS End of Disclaimer | INFOSYS***
My 1.1.5 t:panelNavigation2 looses its state.
Hello, Prenotes: I am not very familiar into the JSF-Myfaces deep-ends. I consider myself more as a pure user. Problem: Under certain conditions, my t:panelNavigation2 looses its state. More precisely: Sometimes I receive a page response, where the panalNavigation is collapsed, also the previously selected sub-item should stay selected. Sometimes and under certain conditions means, that the problem only occurs when i write something into the managed beans from within my java-code, i.e. like adding an error-message to the context [context.addMessage(, errMsg);] or when I retrieve a managed bean from application's variable resolver and amend the content of the managed bean. The problem did not occur with - tomahawk 1.1.2 and - myfaces 1.1.3 With those versions mentioned, the panelNavigation2 behaved exactly as I expected. The problem occurs with - tomahawk-1.1.5-SNAPSHOT and - tomahawk-sandbox-1.1.5-SNAPSHOT with either myfaces-core 1.1.3 or myfaces-core 1.1.5-snapshot. You might ask, why I use 1.1.5-SNAPSHOT? Well I want to have a try on the Sandbox's autoUpdateDataTable. Therefore I need tomahawk-sandbox-1.1.5-SNAPSHOT. For me it seems that I cannot use tomahawk-sandbox-1.1.5-SNAPSHOT in combination with tomahawk-1.1.2, where the panelNavigation2 is defined. Any ideas, quick hacks? Thanks in advance regards Christian
AW: [M2] Local offline repo maintenance (unique clean + clone)
Reinhard: thanks for your response and support. I will consider setting up a company wide scopen repository. # The invalid POMs are not that annoying anymore: I used to have a CODEHAUS-JXR-report plugin defined. It finally appeared that it has been replaced by a APACHE-JXR-plugin. So I switched to the following definition: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jxr-plugin/artifactId version2.0/version /plugin With this report-plugin defintition, I still get a note, that there are invalid poms, but there are no runtime-errors during JXR-reporting anymore. -- For me, it finally seems to be best practice, to define all plugins always with version information. Regards, Christian Reinhard Nägele wrote: | I don't think it is a good idea to deploy artifacts which are not | available on the Web to your local repository. You should really set | up a separate one for those. The local repository is nothing you | should actively manage, and you should be able to delete it any time. | The extra repository would be easy to pass on to your successor. | Plus, you won't probably get these pom errors anymore. | | Reinhard | | | -Original Message- | From: Christian Kölle [mailto:[EMAIL PROTECTED] | Sent: Donnerstag, 21. Dezember 2006 02:41 | To: 'Maven Users List' | Subject: [M2] Local offline repo maintenance (unique clean + clone) | | Hello everyone, | | I am using maven standalone, i.e. via local repo on my machine with | noone else. I have many libraries in the repo, which are not | retrieveable via internet. There is no company internal repo. The | following issues might seem be relatively unique to you. | | Problem 1: | Once in a while, I get plenty invalid POMs | | Background 1: | When I am in the office, i get a WLAN-connection but no access to the | Internet. If I forget to switch Maven to the offline mode, it smashes | all the POMs of manually added libraries, as some scrap-page is | downloaded. As a consequese, I get many 'Invalid POM errors', e.g. | during 'mvn site:stage' usage. Deleting the smashed POMs by hand | helps but it is far to often to not be annoying. | | Question1: | I there a cleaning mechanism, which would help me to get rid of all | invalid POMs? Any other hints? | | # | | Question 2: | Is there something like a copier-plugin, which would enable me to | clone the repo but only with those jars, which are not retrieveable | via internet? | | Background 2: | I am leaving my employer end January. The repo is very big. It would | be nice to leave my successor a 'small' repository-clone somewhere | (e.g. svn) which would contain all the manually added libraries. -- I | might not get all the manually added dependencies with the | project-referring dependency-copier plugins. | | Any ideas, suggestions? Thx in advance. | | Regards | Christian | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: dependency plugin
| I have just spent a lot of time trying to get the | dependency-maven-plugin to excludeScope, or if that won't work - to | excludeTransitive. Neither work. Using a simple includeScope | didn't work either. Just FYI: I had the same problem with the scope definition in maven-dependency-plugin. # excludeScopetest/excludeScope did not work for me. There was a message saying it would exclude everything. Nothing was copied. # Nevertheless... includeScopecompile/includeScope works for me: For example junit is not copied, as it is defined like this: dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.1/version scopetest/scope /dependency - plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0-alpha-1-SNAPSHOT/version executions execution idcopy-dependencies/id phasepackage/phase goals goalcopy-dependencies/goal /goals configuration [...] includeScopecompile/includeScope [...] /configuration /execution /executions /plugin Regards Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie: Getting a quick MBean+.sar-file replacement with Maven2
Hello, Thanks for Geronimo. I installed it yesterday. Initially I wanted to use JBoss, but I decided to use Geronimo, as it comes along with ActiveMQ which I use. Probably I am still a newbie to J2EE-Servers. What I want to do: I want deploy a packaged java application to Geronimo, which has - nothing to do with EJB - nothing to do with JSP/Servlets. The application is already finished, a pojo-application, but it's bootstrapped by a main()-method. It's a server. During startup in Geronimo, I additionally plan to bind something to JNDI, like done here (1). What I would need now, is a quick advice, how to get this main-method start- and stop-able in Geronimo. I managed to get this done in JBoss with an + MBean + .sar-file. So here we have GBeans and certain packaging-names. My application is part of a maven-2-multimodule-project which offers various packaging methods. My idea is now to use a + war-file + GBean-code + Geronimo desciptor + my application code I tend to use a war-file, because my IDE allows to output an exploded war file directly into Geronimo-deploy-folder. This almost works nice on the fly for JSFaces-Servlet-alike-applications with Geronimo + Tomcat. There also is the possibility to use the maven-ear-plugin which allows * ejb * war * jar * ejb-client * rar * ejb3 * par * sar * wsr * har In order to prevent days of trial and error, I thought I would ask, what you think of this. Escpecially if you are maven2 familiar, I would appreaciate all tips, best practices, etc. What is the most efficient way for newbies. Regards and thanks in advance ! Christian (1) http://opensource.atlassian.com/projects/spring/browse/SPR-1422
[M2] [packaging] Maven reacts undeterministically ;-) For today my story is this...
Hello, thanks for Maven! All of you, but It really brings me down all the time. I am wasting days by days. I don't really understand how it works. Nevertheless, I won't give up. Unresolve problem today: If i do mvn install on the sub-module-project which is my Webclient (i.e.packging = war, servlet-alike project), maven allways puts a library into my war-file that is neiter defined in the sub-module's pom as 'dependency', nor in the parent-pom's dependency-management area. Same happens, if I run mvn install on the parent-project (, which generates all deployment-units of the submodules). Situation: Multi-module-project with M2 I consider myself as Maven User, not Maven Developer. I am a lonesome M2 user at work, I only use a local repository on my machines for my stuff. My efforts for today: To solve the problem I have looked into every manifest of the 20 dependendies I use. No manifest references the library I don't want to have. -- So, I thought, well, lets generate a dependency-report: It might indicate where the problem might be. -- So I ran mvn site on the submodule to get a dependency report. Without success. It fails because of a checkstyle error. -- I thought no problem ;-) I removed the checkstyle report in the sub-module's pom, as well as in the main-project-pom. -- I ran mvn clean mvn install and mvn site but it still fails because of checkstyle, althought there is no checkstyle at any pom. Finally I got the mvn:site running on the main-pom, which generated a dependency report on the submodule-poms either. -That's luck - But it does not list the library I do not want to have, it is just portraying what's defined in the poms. For today I am asking myself, where the heck does the library I reference nowhere come from? Any ideas where to look at without grep? Postnotes: You might ask. Why do you care for libraries in your deployment-unit, as long as your application is running? Good question! I was using mvn jetty6:run to develop my webclient. That's so cool and so fast to work with! Unfortualy the generated war-file comes with runtime-error, if deployed into Tomcat 5.5.9, Tomcat 5.5.15, Geronimo 1.1.1(with TC) and JBoss 4.0.3 SP1 (with TC). I thought it was a good idea to look at my dependencies first. Regards Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] [packaging] Maven reacts undeterministically ;-) For today my story is this...
Thanks for your quick response! mvn -X package is nice but didn't help me for this specific thing. But I finally found the the problem: Somehow all libraries have been copied to the source webapp-folder (/src/main/webapp/WEB-INF/lib). Those files were outdated. The problematic library was in there. I never would have thought about that. Might have been during testing deployment-plugins. Thanks again Regards, Christian Ursprüngliche Nachricht Von: Wayne Fay [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. November 2006 02:07 An: Maven Users List Betreff: Re: [M2] [packaging] Maven reacts undeterministically ;-) For today my story is this... | mvn -X package will tell you more about the dependencies, and where | they're coming from for transitive ones. | | The manifests will not necessarily tell you what you're looking for | -- instead check the poms for the 20 deps... | | Wayne | | On 11/29/06, Christian Kölle [EMAIL PROTECTED] wrote: || Hello, || || thanks for Maven! All of you, but It really brings me down all the || time. I am wasting days by days. I don't really understand how it || works. Nevertheless, I won't give up. || || Unresolve problem today: || If i do mvn install on the sub-module-project which is my Webclient || (i.e.packging = war, servlet-alike project), maven allways puts a || library into my war-file that is neiter defined in the sub-module's || pom as 'dependency', nor in the parent-pom's dependency-management || area. Same happens, if I run mvn install on the parent-project (, || which generates all deployment-units of the submodules). || || Situation: || Multi-module-project with M2 || I consider myself as Maven User, not Maven Developer. || I am a lonesome M2 user at work, I only use a local repository on my || machines for my stuff. || || My efforts for today: || To solve the problem I have looked into every manifest of the 20 || dependendies I use. No manifest references the library I don't want || to have. -- So, I thought, well, lets generate a dependency-report: || It might indicate where the problem might be. -- So I ran mvn site || on the submodule to get a dependency report. Without success. It || fails because of a checkstyle error. -- I thought no problem ;-) I || removed the checkstyle report in the sub-module's pom, as well as in || the main-project-pom. -- I ran mvn clean mvn install and mvn || site but it still fails because of checkstyle, althought there is || no checkstyle at any pom. Finally I got the mvn:site running on the || main-pom, which generated a dependency report on the submodule-poms || either. -That's luck - But it does not list the library I do not || want to have, it is just portraying what's defined in the poms. For || today I am asking myself, where the heck does the library I || reference nowhere come from? Any ideas where to look at without || grep? || || Postnotes: || You might ask. Why do you care for libraries in your deployment-unit, || as long as your application is running? Good question! I was using || mvn jetty6:run to develop my webclient. That's so cool and so fast || to work with! Unfortualy the generated war-file comes with || runtime-error, if deployed into Tomcat 5.5.9, Tomcat 5.5.15, Geronimo || 1.1.1(with TC) and JBoss 4.0.3 SP1 (with TC). I thought it was a good || idea to look at my dependencies first. || || Regards || Chris || || || || - || To unsubscribe, e-mail: [EMAIL PROTECTED] || For additional commands, e-mail: [EMAIL PROTECTED] || || | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Combined site for multiple modules?
Ursprüngliche Nachricht Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Torsten Curdt Gesendet: Montag, 12. Juni 2006 03:20 An: Maven Users List Betreff: Re: Combined site for multiple modules? || I split up my project into multiple modules, with one parent module. || At the moment each module generate its own reports and its own site. || Site documentation is placed in the parent module's site, so it would || be nice if it would be possible to combine the reports (javadoc, || cobutera, surefire, pmd, checkstyle) into one report (more exactly: || to create one report of all sources). I only found a solution for the || javadoc plugin (combinedtrue/combined). | | Unfortunately only some reports support | | aggregatetrue/aggregate | | in the configuration section yet. I am a newbie to M2 but have M1 experience. Thats funny: I have a multi-module M2 project: I used to obtain a merged Javadoc this way: I mergeed all sourcefolders, used a customized pom.xml with all dependencies of all modules, and ran javadoc over it. Thanks very much Question 1: Are you talking about M2 or M1? Question 2: Where did you find the information that combinedtrue/combined is working for javadoc-reporting-plugin? Question 3: Where did you find the information that aggregatetrue/aggregate might be a valid option, like some kind of standard? Question 4: Where can I find the information that aggregatetrue/aggregate is supported by a report plugin, if I do not want to ask in this mailing list? Regards thanks 2 all mvn developers. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[m2] Code beautfier - FAQ/BestPractice (Jalopy-whatever)
Hello, Caution: Newbie! I am new to m2 but used to use m1. I have a flat-folder-hierachy m2-multi-module project. Problem: I want to run a beautifier plugin over my code, before everything is build. I don't care what beautifier, it is just to unify the layout. After 1,5 years, I decided to have a try on Jalopy, as it seems to support java 1.5 now [1]. I am totally lost: I wanna use a build-plugin. As far as I found out apache-plugins are named maven--plugin and mojo-plugins are named xxx-maven-plugin. Unfortunaltelly there is no apache plugin, see [2], or at least I cannot find it. I searched for mojo-plugins but cannot find them either anywhere. In fact I am very insecure what Mojo is. Mojos mailinglist seems to be dead and even the link I found to the sources [3] seems to bee dead. What would you suggest? Wait for a release of a maven-plugin, wait for release of a mojo-plugin or trying to get this [4] running somehow? -- all for M2 -- Any other M2-out-of-the-box-beatifiers known? Regards and thanks in advance. Christian [1] http://jalopy.sourceforge.net/jalopy/changes-report.html [2] http://maven.sateh.com/repository/maven-plugins/ [3] https://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/ [4] http://maven.sateh.com/repository/jalopy/jalopy/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [m2] Code beautfier - FAQ/BestPractice (Jalopy-whatever)
Hi Dennis, Thanks for your quick response. I am afraid, your link did not help much. For me everything leads to the question: Where are the mojo-plugins? I am even prepared to put them to the repro manually. Background: If I try what you recommend, i.e. reading the documentation behind your link and doing project ... build ... plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdmaven-jalopy-plugin/artifactId version1.0-SNAPSHOT/version /plugin /plugins ... /build ... /project as I did before, I get the message, that the plugin is nowhere available. Note that all plugin repositories are configured in this way in my project main pom.xml: snapshots enabledtrue/enabled /snapshots releases enabledtrue/enabled /releases ## error ## GroupId: org.codehaus.mojo ArtifactId: jalopy-maven-plugin Version: 1.0-SNAPSHOT Reason: Unable to download the artifact from any repository org.codehaus.mojo:jalopy-maven-plugin:pom:1.0-SNAPSHOT from the specified remote repositories: Maven Snapshots (http://snapshots.maven.codehaus.org/maven2/), central (http://repo1.maven.org/maven2), sateh.com (http://maven.sateh.com/repository), dotsrc.org (http://mirrors.dotsrc.org/maven2), Sateh.com (http://maven.sateh.com/repository), ibiblio.net (http://www.ibiblio.net/pub/packages/maven2), sunsite.dk (http://mirrors.sunsite.dk/maven2), ggi-project.org (http://ftp.ggi-project.org/pub/packages/maven2), lsu.edu (http://ibiblio.lsu.edu/main/pub/packages/maven2) Unavailability problems are equivalent for: groupIdorg.codehaus.mojo/groupId artifactIdmaven-jalopy-plugin/artifactId version1.0-SNAPSHOT/version groupIdorg.codehaus.mojo/groupId artifactIdjalopy-maven-plugin/artifactId version1.0-SNAPSHOT/version groupIdorg.apache.maven.plugins/groupId artifactIdjalopy-maven-plugin/artifactId version1.0-SNAPSHOT/version groupIdorg.apache.maven.plugins/groupId artifactIdmaven-jalopy-plugin/artifactId version1.0-SNAPSHOT/version Regards and thanks Christian Ursprüngliche Nachricht Von: Dennis Lundberg [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 18. Juni 2006 22:12 An: Maven Users List Betreff: Re: [m2] Code beautfier - FAQ/BestPractice (Jalopy-whatever) | I think you are looking for this: |http://mojo.codehaus.org/jalopy-maven-plugin/howto.html | | | Christian Kölle wrote: || Hello, || || Caution: Newbie! || I am new to m2 but used to use m1. I have a flat-folder-hierachy || m2-multi-module project. || || Problem: || I want to run a beautifier plugin over my code, before everything is || build. I don't care what beautifier, it is just to unify the layout. || After 1,5 years, I decided to have a try on Jalopy, as it seems to || support java 1.5 now [1]. || || I am totally lost: I wanna use a build-plugin. As far as I found out || apache-plugins are named maven--plugin and mojo-plugins are || named xxx-maven-plugin. Unfortunaltelly there is no apache plugin, || see [2], or at least I cannot find it. I searched for mojo-plugins || but cannot find them either anywhere. In fact I am very insecure what || Mojo is. Mojos mailinglist seems to be dead and even the link I || found to the sources [3] seems to bee dead. || || What would you suggest? Wait for a release of a maven-plugin, wait || for release of a mojo-plugin or trying to get this [4] running || somehow? -- all for M2 -- Any other M2-out-of-the-box-beatifiers || known? || || Regards and thanks in advance. || Christian || || [1] http://jalopy.sourceforge.net/jalopy/changes-report.html || [2] http://maven.sateh.com/repository/maven-plugins/ || [3] || https://svn.mojo.codehaus.org/mojo/trunk/mojo/jalopy-maven-plugin/ || [4] http://maven.sateh.com/repository/jalopy/jalopy/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]