[JBoss-user] [JBoss Seam] - binding UIInput problem
I am currently stuck with a problem I can't seem to solve. I have a webform and need to display validation messages to each of its compents after the form is submitted. For this I need to bind the UIInputs using binding=#{registration.uiInputSomeField}. form is implemented as: | @Stateful | @Name(registration) | @Interceptor(SeamInterceptor.class) | @Conversational(ifNotBegunOutcome=home) | @Local(Registration.class) | and a Function annotated with @Begin has been called from the invoking page. If I do not use the binding but instead display all validation results as global messages everyting is fine, but as soon as I try to bind the UIInputs I get: | 09:01:42,443 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception | java.lang.IllegalStateException: No conversation context active | at org.jboss.seam.ScopeType.getContext(Unknown Source) | at org.jboss.seam.Component.newInstance(Unknown Source) | at org.jboss.seam.Component.getInstance(Unknown Source) | at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(Unknown Source) | at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:130) | at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:41) | at com.sun.el.parser.AstValue.getTarget(AstValue.java:41) | at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:104) | at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:221) | at com.sun.facelets.el.TagValueExpression.isReadOnly(TagValueExpression.java:82) | at com.sun.facelets.el.LegacyValueBinding.isReadOnly(LegacyValueBinding.java:82) | at org.apache.myfaces.lifecycle.LifecycleImpl.recursivelyHandleComponentReferencesAndSetValid(LifecycleImpl.java:364) | at org.apache.myfaces.lifecycle.LifecycleImpl.recursivelyHandleComponentReferencesAndSetValid(LifecycleImpl.java:374) | at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:151) | at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:94) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | 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.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) | 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.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Thread.java:595) | Any suggestions? - Many thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911974#3911974 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911974 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Eclipse IDE (users)] - missing
Hi, I downloaded JBOSS 4.0.3 jar file and also use the install feaure in eclipse to download the jboss ide from http://download.jboss.org/jbosside/updates/development/; and I tried to follow the trailblaizer demo but I failed in the first step :), in my elicpse IDE I cannot find ejb 3.0 project in create new project dialog, why? tnx, amit View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911975#3911975 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911975 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - why code in tests/..(etc ChannelSupportTest) is comment?
the code is checked out from jboss-head,thx! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911976#3911976 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911976 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Eclipse IDE (users)] - Re: missing
I found the problem. The Elicpse IDE wasn't installed properly. so reinstall fix the problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911977#3911977 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911977 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - why container is not calling release() in taglib class
i have written a taglib class ;jboss is not calling release() (this method is in Tag class) which is a life cycle method in taglibs; in other servers this method is calling implicitly?why jboss is not calling? public class TagLib1 extends BodyTagSupport { public TagLib1() { name = null; id = null; border = null; cellpadding = null; cellspacing = null; width = null; addButtonName = null; frmName = null; NL = \n; elementsData = new StringBuffer(); } public int doAfterBody() throws JspException { return 0; } public int doEndTag() throws JspException { blah ..blah.. } public int doStartTag() throws JspException { blah ..blah.. return 2; } public String getAddButtonName() { return addButtonName; } public String getBorder() { return border; } public String getCellpadding() { return cellpadding; } public String getCellspacing() { return cellspacing; } public StringBuffer getElementsData() { return elementsData; } public String getFrmName() { return frmName; } public String getId() { return id; } public String getName() { return name; } public String getWidth() { return width; } public void release() { name = null; id = null; border = null; cellpadding = null; cellspacing = null; width = null; addButtonName = null; elementsData = new StringBuffer(); } public void setAddButtonName(String addButtonName) { this.addButtonName = addButtonName; } public void setBorder(String border) { this.border = border; } public void setCellpadding(String cellpadding) { this.cellpadding = cellpadding; } public void setCellspacing(String cellspacing) { this.cellspacing = cellspacing; } public void setElementsData(StringBuffer elementsData) { this.elementsData = elementsData; } public void setFrmName(String frmName) { this.frmName = frmName; } public void setId(String id) { this.id = id; } public void setName(String name) { this.name = name; } public void setWidth(String width) { this.width = width; } private String name; private String id; private String border; private String cellpadding; private String cellspacing; private String width; private String addButtonName; private String frmName; private String NL; private StringBuffer elementsData; } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911978#3911978 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911978 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Sub-Directory Level Security Privileges
Hello All, I have a folder in the root directory that has a couple of folders embedded followed and a file in the last child directory. According to my current configuration of the portal I could only apply security to one level within the root directoy and the children directories inherit from the that. Is it possible to apply different privileges to files in the same folder or not? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911979#3911979 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911979 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Getting Started Documentation] - jmx-console won't start
I have tried alot of servers but i came back to JBoss4.0.3SP1 but after installing i have tried to run jmx-console using localhost:8080/jmx-console but nothimg happens top mij browser except the message that it can't find the server or the document but in this case the application. Who can help? greetings, Razorblade View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911980#3911980 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911980 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: Simultaneous execution of Fork children
Hi Jbpm Team, Why async behavior implemented in jbpm 3.1 alpha is not recommended strongly instead of custom implementation of fork and join nodes. Its clear that you people are really working hard on this issue. When we can expect highly robust jbpm 3.1. All the best. Regards, Praveen. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911981#3911981 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911981 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossCache] - Re: Deleting objects in TreeCacheAop with FileCacheLoader
Yeah, this seems to be a bug. We have a unit test for remove but it is remove (instead of removeObject). Can you please open up a Jira issue? I will fix it in 1.3 release. Thanks, -Ben View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911982#3911982 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911982 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Exception thrown as a result of @Version concurrency violati
Shouldn't this be a specfic exception class as in OptimisticConcurrencyViolation or something to that effect. The generic throwing of EJBException with a message detailing the violation makes this more difficult to handle (Parse message for key words Row was Updated) . Most exception get packed up and sent back to the client with some vague message about contacting support... but this error can actually be handled gracefully. Am I missing something? Thanks Jim View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911983#3911983 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911983 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - How to make Jboss 4.0.1 run as service on linux(debian)?
Hi All: How to make Jboss 4.0.1 run as service on linux(debian)? I tried several scripts but seems cannot work. Thanks! sunonepp View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911984#3911984 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911984 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Exception thrown as a result of @Version concurrency vio
Ignore this post.. I discovered getCausedByException(). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911985#3911985 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911985 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Lazy Load Exceptions
Is there a clean way to keep the Jbpm session open for the duration of the request? I'd like to take advantage of the lazy load functionality of hibernate but am unsure how to do this. In the sample webapp, the session is managed manually with the PersistenceFilter and Context objects. I've tried the spring-jbpm project, but it's callback closes the session after each transaction. Is there something like Spring's OpenSessionInViewFilter or OpenSessionInViewInterceptor available for the JbpmSession? Any help in this area would be great - Thanks, Dan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911986#3911986 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911986 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Updating changes to an entity in a conversation bean.
I'm missing something very basic here. I'm using the Seam managed extended persistence + a conversation scoped bean. It's a very simple form that updates values on an existing entity. In my @Begin method, I load up the entity and store it the conversation bean. The subsequent view shows the current properties of that entity. A save button on my form hits the save method which has an @End annotation. Within the @End annotated save method, I call entityManager.merge(existing)... Nothing. No errors, no nothing. The view is redisplayed with the newly updated values.. but the database isn't getting updated with the changes. Navigating back to the (resetting the whole process), just gives me back an entity with the old values. Is this the right procedure for updating an existing entity in an conversation bean? I'm missing something basic but crucial here. Ryan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911988#3911988 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911988 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Updating changes to an entity in a conversation bean.
Flush-before-completion must be enabled. (It is actually a bug that it is not enabled by default in HEM.) You DO NOT have to call merge. Use a persistence.xml something like this: entity-manager |nameentityManager/name |providerorg.hibernate.ejb.HibernatePersistence/provider |jta-data-sourcejava:/DefaultDS/jta-data-source |properties | property name=hibernate.dialect value=org.hibernate.dialect.HSQLDialect/ | property name=hibernate.transaction.manager_lookup_class value=org.hibernate.transaction.JBossTransactionManagerLookup/ | property name=hibernate.transaction.flush_before_completion value=true/ | property name=hibernate.hbm2ddl.auto value=create-drop/ | property name=hibernate.show_sql value=true/ |/properties | /entity-manager View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911989#3911989 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911989 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: the second pc continue adding itself to All members
Me too I am facing the same problem. Please let me know if you resolve the issue. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911990#3911990 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911990 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Updating changes to an entity in a conversation bean.
Ah, I'm not insane! Thanks for the quick response. I didn't think merge was necessary either. I'll try this right away. Ryan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911991#3911991 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911991 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Eclipse IDE (users)] - Hibernate IDE Postgres 8.0 AUTOCOMMIT exception
I am running the bundled version of Eclipse w/ JBoss IDE - 1.5rc1. When I try to reverse engineer w/ Hibernate it complains that org.hibernate.exception.GenericJDBCException: Reading from database org.hibernate.exception.GenericJDBCException: Reading from database java.sql.SQLException: ERROR: SET AUTOCOMMIT TO OFF is no longer supported I have tried all the JDBC drivers (2,3, j2ee) for version 8.0.311 with no luck. Also, I tried setting the autocommit property in the hibernate.cfg to false, but didn't make a difference. I realize that 7.4 eliminated server side autocommits, but how do I get past this. Any thoughts?? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911992#3911992 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911992 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Updating changes to an entity in a conversation bean.
Ooops, I forgot: There is more you need to do. There is actually a bug in the currently released version of HEM that causes it to not get enlisted in the JTA txn in some circumstances. Emmanuel is waiting for Steve to release HB 3.1 before he can release the next version of HEM/HA. That will happen sometime this week (Monday/Tuesday). In the meantime, you can build HB/HEM/HA from current CVS. You then need to upgrade JBoss 4.0.3 to use these fixed versions of HB/HEM/HA. phew. (By the way, after you do all this stuff, it really *does* work, I promise.) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911993#3911993 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911993 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: Lazy Load Exceptions
Hi Dan, Is reusing the filter mechanism not possible in your case then? Do you have additional constraints? Regards, Koen View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911994#3911994 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911994 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - JAXRPC Handler to modify incoming SOAP
Hi all, Has anyone out there managed to successfully use a JAXRPC handler to modify an incoming SOAP message? My incoming SOAP message does not have the xsi type attribute (dodgy client?) so I'm writing a handler to insert it for me if it's not present. I've had numerous problems already and I've copied over fixes from JBWS-464 http://jira.jboss.org/jira/browse/JBWS-464. Spefically I've patched my JBoss to use src/main/org/jboss/axis/Attic/MessagePart.java 1.1.2.4 | src/main/org/jboss/axis/message/Attic/SOAPElementAxisImpl.java 1.1.2.8 | | But not JavaProvider.java rev 1.1.2.3 because the changes got reverted soon after | | | And here's the handler code I'm using: | | public boolean handleRequest(MessageContext msgContext) { | | SOAPMessageContext smc = (SOAPMessageContext)msgContext; | | SOAPMessage msg = smc.getMessage(); | | | | try { | | SOAPBody sb = msg.getSOAPBody(); | | | | NodeList list = sb.getElementsByTagName(multipart); | | | | if (list == null || list.getLength() == 0) | | return true; | | else { | | for (int i = 0; i list.getLength(); i++) { | | Node node = list.item(i); | | String ns = http://www.w3.org/2001/XMLSchema-instance;; | | | | NamedNodeMap attributes = node.getAttributes(); | | | | if (attributes == null) | | continue; | | | | Node type = attributes.getNamedItem(type); | | | | if (type == null) { | | Document doc = list.item(i).getOwnerDocument(); | | Attr attr = doc.createAttribute(xsi:type); | | attr.setValue(n1:Array); | | | | Node nn = attr.cloneNode(false); | | | | Node n = attributes.setNamedItem(nn); | | } | | } | | } | | | | } catch (SOAPException e) { | | e.printStackTrace(); | | } | | | | return true; | | } | | | | I can see my attribute being added to the NamedNodeMap object (and the NamedNodeMap is live in the DOM so any changes should be reflected) but if I do a subsequent check on the SOAP message. My changes are not there. For brevity I haven't included above the code to check the SOAP message but here it is below: | | // Create transformer | | try { | | TransformerFactory tff = TransformerFactory.newInstance(); | | Transformer tf = tff.newTransformer(); | | | | // Get reply content | | Source sc = msg.getSOAPPart().getContent(); | | | | // Set output transformation | | StreamResult result = new StreamResult(System.out); | | tf.transform(sc, result); | | System.out.println(); | | } catch (Exception e) { | | throw new JAXRPCException(e); | | } | | | Thanks, | Shin View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911995#3911995 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911995 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
[JBoss-user] [JBoss Seam] - wrong cvs ip and about the todo forum
1. the document located at http://docs.jboss.org/process-guide/en/html/cvsaccess.html mentions the following anonymous cvs: cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/jboss login someone forgot to change it from .net to .com? 2. is there an specific sean todo forum? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911996#3911996 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911996 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - design question: application specific configuration files in
Hi, when we have a single vm applciation it is very easy to read the configuration file (you know, properties files with application specific values). but when it comes to reading configuration files in a clustered env things gets a little trickier. 1. we need the configuration to be syncronized in all nodes. all nodes should have the same, most recent configuration. 2. we need a way to save the configuration from memory to the file system so that changes made in memory during runtime will survive application restart. 3. we need to let other nodes know when configuraiton changed so that those nodes can refresh themselves with the new configuration. I guess anyone writing a clustered application dealt with this issue. Any thoughts? are there any ready-made solutions for this? thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911997#3911997 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911997 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Eclipse IDE (users)] - Re: Hibernate IDE Postgres 8.0 AUTOCOMMIT exception
what is the database ? And why do you need autocommit off ? And what is 7.4 ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911998#3911998 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911998 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Eclipse IDE (users)] - Re: Hibernate IDE Postgres 8.0 AUTOCOMMIT exception
sorry - did not see title ;) what is the full stacktrace ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3911999#3911999 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3911999 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Queue Messages are not listed in QueueBrowser when in 'w
Hi upankar I hgave tried the following code in BasicQueue.java and it seems to work. Not sure of the implications in a clustered environment. Still to add some thread safe locks if necessary. | |public SpyMessage[] browse(String selector) throws JMSException |{ | if (selector == null) | { | SpyMessage list[]; | synchronized (messages) | { | list = new SpyMessage[messages.size() + events.size()]; | Iterator iter = messages.iterator(); | | int i = 0; | for (; iter.hasNext(); i++) |list = | ((MessageReference) iter.next()).getMessageForDelivery(); | | Iterator eventsIter = events.keySet().iterator(); | for(; eventsIter.hasNext(); i++) { | list = | ((MessageReference) | eventsIter.next()).getMessageForDelivery(); | } | } | return list; | } | else | { | Selector s = new Selector(selector); | LinkedList selection = new LinkedList(); | | synchronized (messages) | { | Iterator i = messages.iterator(); | while (i.hasNext()) | { |MessageReference m = (MessageReference) i.next(); |if (s.test(m.getHeaders())) | selection.add(m.getMessageForDelivery()); | } | } | | SpyMessage list[]; | list = new SpyMessage[selection.size()]; | list = (SpyMessage[]) selection.toArray(list); | return list; | } |} | | Shafiek View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912000#3912000 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912000 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: Please try out CVS
thanks for your answer, Gavin, i'll have a try with the lastest EJB. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912004#3912004 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912004 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - jBPM and clustering
Is jBPM cluster safe? Specifically can I run 2 or more applications utilizing the same jBPM database? What abou timers? -b View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912005#3912005 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912005 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - EJB Naming problem (NameNotFoundException)
Hi i've circled the web but I just cant get this going. I have a MDB listening from a queue, receives the message and the call the respective process model on a Stateless Session Bean. I'm using XDoclet and can't seam to get this to work. The MDB Bean looks like this: ackage is.scholar.orchestrator.ejb; | | import is.scholar.orchestrator.interfaces.MainOrchestratorLocal; | import is.scholar.orchestrator.interfaces.MainOrchestratorUtil; | | import javax.ejb.CreateException; | import javax.ejb.EJBException; | import javax.ejb.MessageDrivenBean; | import javax.ejb.MessageDrivenContext; | import javax.jms.JMSException; | import javax.jms.Message; | import javax.jms.MessageListener; | import javax.jms.TextMessage; | import javax.naming.InitialContext; | import javax.naming.NamingException; | | /** | * XDoclet-based Message Driven entity bean. | * | * To generate EJB related classes using XDoclet: | * | * - Add Standard EJB module to XDoclet project properties | * - Customize XDoclet configuration | * - Run XDoclet | * | * Below are the xdoclet-related tags needed for this EJB. | * | * @ejb.bean name=UIOutboxProcessorMDB | * display-name=UIOutboxProcessorMDB | * description=MDB that retreives transactionaly a message from its outbox queue and sends it to the corresponding method en the orchestrator | * destination-type=javax.jms.Queue | * acknowledge-mode=Auto-acknowledge | * transaction-type = Container | * subscription-durability = Durable | * | * @jboss.destination-jndi-name name=queue/UIOutboxQueue | * | * @ejb.ejb-ref ejb-name=MainOrchestrator | * type=Session | * view-type=local | * ref-name=MainOrchestrator | * | * @jboss.ejb-local-ref ref-name=MainOrchestrator | * jndi-name=ejb/MainOrchestrator | */ | public class UIOutboxProcessorMDB implements MessageDrivenBean, MessageListener { | | private static final long serialVersionUID = 4883475689156890475L; | | /** The MessageDrivenContext */ | private MessageDrivenContext context; | | private InitialContext initialContext; | | MainOrchestratorLocal orchestrator; | | public UIOutboxProcessorMDB() { | super(); | } | | /** | * Set the associated context. The container calls this method | * after the instance creation. br | * | * The enterprise bean instance should store the reference to the context | * object in an instance variable. br | * | * This method is called with no transaction context. | * | * @param newContext A MessageDrivenContext interface for the instance. | * | * @throws EJBException Thrown by the method to indicate a failure caused by a system-level error. | * | * | * | */ | public void setMessageDrivenContext(MessageDrivenContext newContext) throws EJBException { | context = newContext; | } | | public void ejbRemove() throws EJBException { | // TODO Auto-generated method stub | | } | | /** | * Method that retreives a message from the message queue specified | * Since container managed transaction in enabled if there is an exception | * between the retreiving of the message and the end of the process specified | * in the orchestrator SessionBean the transaction will be rolled back with | * no need for user specified commit() or rollback methods() | * @param msg the message from the user interface outbox | */ | public void onMessage(Message msg) { | try { | System.out.println(UIOMDB: Received Message from queue); | TextMessage tm = (TextMessage) msg; | String theMessage = tm.getText(); | orchestrator = MainOrchestratorUtil.getLocalHome().create(); | System.out.println(UIOMDB: Createnew StatelessSB Orchestrator); | orchestrator.processMessageFromUIOutbox(theMessage); | System.out.println(UIOMDB: Orchestrator returned from process message); | } catch (CreateException e) { | e.printStackTrace(); | } catch (NamingException e) { | e.printStackTrace(); | } catch (JMSException e) { | e.printStackTrace(); | } catch (EJBException e) { | e.printStackTrace(); | } | } | | /** | * An ejbCreate method as required by the EJB
[JBoss-user] [EJB/JBoss] - Re: EJB Naming problem (NameNotFoundException)
BTW before I generated the xml docs with XDoclet I changed all the paths from ejb/MainOrchestrator to MainOrchestrator View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912007#3912007 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912007 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: EJB Naming problem (NameNotFoundException)
I notice that the MainOrchestratorUtil.java file was looking for jndiname java:comp/env/ejb/MainOrchestratorLocal and i changed it to MainOrchestratorLocal and it worked Still poses a mantainability problem. There must be something wrong with the tags. Any idea? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912008#3912008 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912008 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Link to Remote EJB
I mean ejb-ref View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912010#3912010 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912010 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Re: JBOSS jBPM tool evaluation Help Required
Please find following code ?xml version=1.0 encoding=UTF-8? | | process-definition | xmlns=http://jbpm.org/3/jpdl; | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | xsi:schemaLocation=http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd | name=simple | start-state name=start | transition name=toCheckDSCR to=Check DSCR | action name=Read DSC Ratio class=com.sample.action.FirstActionHandler/action | /transition | /start-state | end-state name=end | /end-state | decision name=Check DSCR | transition name=toReadLoansData to=Read Loans Data | condition | executionContext.getVariable(DSCRatio).intValue() 0 | /condition | /transition | transition name=toRejectLoan to=Reject Loan | condition | executionContext.getVariable(DSCRatio).intValue() == 0 | /condition | /transition | /decision | task-node name=Reject Loan | transition name=toEndFromRejectLoan to=end | action name=action1 class=com.sample.action.LoanRejectHandler/action | /transition |/task-node | state name=Read Loans Data | | transition name=toProcessLoanDecision to=Process Loan Decision | action name=action1 class=com.sample.action.DatabaseActionHandler/action | /transition |/state | decision name=Process Loan Decision | transition name=toProcessLoan to=Process Loan | condition | executionContext.getVariable(LoanProcessingDecision).toString().equals(Yes) | /condition | /transition | transition name=toEndFromProcessLoanDecision to=end | condition | executionContext.getVariable(LoanProcessingDecision).toString().equals(No) | /condition | /transition | /decision |task-node name=Process Loan | transition name=toEndFromProcessLoan to=end | action name=action1 class=com.sample.action.ProcessLoanHandler/action | /transition |/task-node | | /process-definition Code for Test class | package com.sample; | | import java.io.FileReader; | import java.util.ArrayList; | | | | import junit.framework.TestCase; | | import org.jbpm.db.JbpmSession; | import org.jbpm.db.JbpmSessionFactory; | import org.jbpm.graph.def.ProcessDefinition; | import org.jbpm.graph.exe.ProcessInstance; | import org.jbpm.graph.exe.Token; | import org.jbpm.jpdl.xml.JpdlXmlReader; | | public class SimpleProcessTest extends TestCase { | | static JbpmSessionFactory jbpmSessionFactory = JbpmSessionFactory.buildJbpmSessionFactory(); | | public void testSimpleProcess() throws Exception { | | //saveProcessDefinition(); | //saveProcessInstance(); | readProcessInstance(); | | } | | public void saveProcessInstance() { | | // obtain a session | JbpmSession jbpmSession = jbpmSessionFactory.openJbpmSession(); | try { | ProcessDefinition loanProcess = jbpmSession.getGraphSession().findLatestProcessDefinition(simple); | // start a user managed transaction | jbpmSession.beginTransaction(); | | ProcessInstance loanInstance = new ProcessInstance(loanProcess); | loanInstance.signal(); | | // store the result in the database | jbpmSession.getGraphSession().saveProcessInstance(loanInstance); | | // commit the user transaction | jbpmSession.getConnection().commit(); | | } | catch(Exception e) | { | e.printStackTrace(); | } | finally { | // close the session. | jbpmSession.close(); | } | } | | public void readProcessInstance() | { | JbpmSession jbpmSession = jbpmSessionFactory.openJbpmSession(); | ProcessDefinition procDef = jbpmSession.getGraphSession().findLatestProcessDefinition(simple); | | ArrayList arlProcInsts = (ArrayList) jbpmSession.getGraphSession().findProcessInstances(procDef.getId()); | | | int count = arlProcInsts.size(); | ProcessInstance procInst = null; | System.out.println( +count ++ procDef); | for (int i = 0; i count; i++) | { | procInst = (ProcessInstance) arlProcInsts.get(i); | System.out.println(Process Instance ID = + procInst.getId()); | System.out.println(Has Ended Value = + procInst.hasEnded()); | } | | Token rootToken = procInst.getRootToken(); | | Token token = rootToken.findToken(Check DSCR/Read Loans Data); | System.out.println(token = + token); | |
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Use JCA or IL? (java:/JmsXA or java:/XAConnectionFactory
i am using JBOSS 3.2.3 (please dont rush me to upgrade, we are using this in operational mode, so huge testing to be done for migration) Am confused by the same issue. Would the following code do in order for the publish of message to Topic to be part of transaction. - try{ TopicConnectionFactory qcf = (TopicConnectionFactory) (new InitialContext().lookup(java:/JmsXA)); TopicConnection conn; conn = qcf.createTopicConnection(); Topic queue = (Topic) (new InitialContext().lookup(topic/+topicName)); TopicSession session = (TopicSession) conn.createTopicSession(true, TopicSession.AUTO_ACKNOWLEDGE); TopicPublisher send = session.createPublisher(queue); MapMessage message = session.createMapMessage(); message.setString(action, action); Enumeration keys = param.keys(); while(keys.hasMoreElements()){ String key = (String) keys.nextElement(); message.setObject(key, param.get(key)); } send.publish(message); send.close(); session.close(); conn.close(); }catch(JMSException e1){ StringBuffer log = new StringBuffer(); log.append(Error during publishing of message to Topic: ); log.append(topicName); log.append(, for action: ); log.append(action); logger.error(log.toString(), e1); } catch (NamingException e) { StringBuffer log = new StringBuffer(); log.append(Error during publishing of message to Topic: ); log.append(topicName); log.append(, for action: ); log.append(action); logger.error(log.toString(), e); } -- The whole process i would like to achieve is as follows: 1. Servlet to Call on SessionBean to perform operations including database write. 2. SessionBean call on utility class to publish Message to a Topic. Utility class is normal bean. And the above contain in utility class. 3. MDB used as listener to the Topic. MDB will perform operations including retrieval of data written in Step 1. I've initially use 'ConnectionFactory' instead of 'java:/JmsXA'. It caused problem because occasionally, during Step 3, the data retrieved wasnt the most up-to-date that has been commited in Step 1. After much ploughing through the forum, i've change the codes to the above. Would anyone mind to shed some light whether the above would solve my problem? It's a little hard to replicate the problem due to the random nature. Thus am not completely sure whether i've fixed the error. Thanks much. Veny View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912013#3912013 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912013 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: JBoss message restoration
Yeah I am using oracle thin driver . The only changes I have done is changed the following field sizes : in the table : JMS_MESSAGES I had to change the DESTINATION size to 4000 char . and in the JMS_SUBSRIPTIONS I had to change the SELECTOR size to 4000 char . This was done long before and I had restarted the server after that several times . I did not face any problem . I have written a small JDBC program to retrieve the rows in the JMS_MESSAGES table and that works fine . View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912015#3912015 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912015 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - Re: How to restart JBoss server by MBean
I try it and It is what I look for. Can you tell me when JBoss 4.0.4 final will release? thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912016#3912016 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912016 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Queue Messages are not listed in QueueBrowser when in 'w
Thanks for your answer. I do appreciate. But i have some apprehensions modifying the source code - I think Jboss controlls all code changes , patch etc, and doing on our own probably might not be legal. Hence, we have implemented a work-around. When we need re-delivery, we add the message back to queue as a new new one with a property called STATUS and value as REDELIVER. Another property called REDELIVERY_TIME is set which is equal to = current time (in milliseconds) + redelivery delay. Then, we start a sychronous consumer thread which runs every sometime and looks for items with status RETRY and REDELIVERY_TIME = current time ( uses message selector). The main MDB is modified to use a message selector for items with status PENDING. This way, MDB doesnt get RETRY status items. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912017#3912017 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912017 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - I am getting this error.....when trying to access a simple H
java.rmi.ServerException: RemoteException occurred in server thread; nested exce ption is: java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: checkSecurityAssociation; nested exception is: j ava.lang.SecurityException: Authentication exception, principal=debjanid at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4 60) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport .java:701) at java.lang.Thread.run(Thread.java:534) at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream RemoteCall.java:247) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java: 223) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Sour ce) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvo kerProxy.java:138) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.jav a:108) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor. java:77) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:8 0) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy0.create(Unknown Source) at JAASExample.main(JAASExample.java:50) Caused by: java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: checkSecurityAssociation; nested exception is: j ava.lang.SecurityException: Authentication exception, principal=debjanid at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.j ava:357) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1 33) at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionCo ntainer.java:300) at org.jboss.ejb.Container.invoke(Container.java:730) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java: 382) 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:324) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) at sun.rmi.transport.Transport$1.run(Transport.java:148) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:144) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4 60) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport .java:701) at java.lang.Thread.run(Thread.java:534) Caused by: javax.ejb.EJBException: checkSecurityAssociation; nested exception is : java.lang.SecurityException: Authentication exception, principal=debjanid at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(Se curityInterceptor.java:174) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityIntercep tor.java:94) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:1 29) ... 15 more View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912018#3912018 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912018 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JNDI/Naming/Network] - JNDI Lookup Behing NAT
Hi All, I have a problem in JMS Client lookup. Our present network configuration is Client --NAT--NAT---Server. When I try to lookup the Server from my Client I am getting an error like connection refused. But I can able to connect through browser(i.e. http). In the jndi lookup I specified the NAT address. The code can able to communicate the NAT address and able to identify the corresponding local Computer IP Address also.But I am getting connection refused exception. What could be the problem? My JNDI Lookup Code is java.util.Properties properties = new java.util.Properties(); properties.put(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory); properties.put(Context.URL_PKG_PREFIXES,org.jboss.naming:org.jnp.interfaces); properties.put(Context.PROVIDER_URL,jnp://203.101.41.32:1099); InitialContext iniCtx = new InitialContext(properties); Object tmp = iniCtx.lookup(ConnectionFactory); TopicConnectionFactory tcf = (TopicConnectionFactory) tmp; I am getting the following error if try to run my client Exception in thread main javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 192.168.27.136 (Internal IP Address) Do I need to specify anything else? Thanks Regards Maruthi View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912020#3912020 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912020 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: Steps to deploy Portlet in Jboss Portal
Hi, thank you very much gruenewa. I tried deploying one portlet application created by me to JBoss portal server. but i am not able to get it run. I have used internaly Pluto Portlet api to create this portlet example it is simple Helloworl application. Does anyone knows from where i can get Helloworld sample application given in Jboss Reference Guide. http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossPortalSamples above link takes to some other location and not able see any sample application. I want to learn procedure to create and deploy portlet application in JBoss portal. Want to find ans to few question like 1 how to specify context of portal.[what will be url for accessing portal application] 2 what are the files needs to be changed? Please reply soon. Thank you in advance. Mohit. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912019#3912019 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912019 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - question on ForkJoin
I have 3 swimlane applyer.manager,boss My simple process acts like this when applyer applies an activity,either manager or boss can check the applyer's request and make a decision,as soon as one make the decision , the process flows to the end so I fork two transition use the fork tag,one transition to the boss decision, the other flow to the manager decision,so what should I do in the join node I have try to act like this ,but I failed action event-type=node-enter public class JoinActionHandler implements ActionHandler { public void execute(ExecutionContext ec) throws Exception { Token currentToken = ec.getToken(); Token parentToken = currentToken.getParent(); Map tokenMap = parentToken.getChildren(); Iterator it = tokenMap.values().iterator(); while(it.hasNext()) { Token token = (Token)it.next(); token.end(); } parentToken.signal(); } } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912021#3912021 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912021 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss jBPM] - Running JBPM in Mac OSX
Hello, Im new to JBPM. I can't seem to run the web starters kit example. I'm using Mac Powerbook G4. Here is an excerpt first part of the problem when i run ./run.sh -c jbpm: 15:34:39,473 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined 15:34:40,256 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/Users/elmo/Desktop/jbpm-starters-kit-3.0.1/jbpm-server/server/jbpm/deploy/jbossweb-tomcat55.sar/ROOT.war/ 15:34:40,705 ERROR [MainDeployer] could not create deployment: file:/Users/elmo/Desktop/jbpm-starters-kit-3.0.1/jbpm-server/server/jbpm/deploy/jbpm.sar/ org.jboss.deployment.DeploymentException: Unexpected error during load of: org.jbpm.db.jmx.JbpmService, msg=org/jbpm/db/jmx/JbpmService (Unsupported major.minor version 49.0); - nested throwable: (java.lang.ClassNotFoundException: Unexpected error during load of: org.jbpm.db.jmx.JbpmService, msg=org/jbpm/db/jmx/JbpmService (Unsupported major.minor version 49.0)) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:143) at org.jboss.system.ServiceController.install(ServiceController.java:202) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) etc ... The exception is quite long. I can give you the whole message if you reply. Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912022#3912022 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912022 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Seam] - Re: CVS Noob question
I am looking with QA to have a nightly archive of the sources (plus a nighly build). I hope everybody will understand that JIRA bug reports against those versions are irrelevant. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3912023#3912023 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3912023 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user