[jboss-user] [JCA/JBoss] - Re: Integrating / Deploying SunOne OpenMessageQueue with JBo
"jsalvo" wrote : | SunOne OMQ comes distributed with a RAR archive ( imqjmsra.rar ). However, I could not find information on how to go about deploying it inside of JBoss: | | 1) Do I just copy the .rar archive onto the deploy directory ? | Answering myself on that part. I modified the ra.xml inside the RAR file so that it connects to the proper IP and port of the remotely running SunOneMQ, and copied the RAR file into the deploy directory. That's working fine now. The SunOneMQ RA is deployed: | 2006-12-01 18:05:35,686 DEBUG [org.jboss.system.ServiceController] starting service jboss.jca:service=RARDeployment,name='imqjmsra.rar' | 2006-12-01 18:05:35,686 DEBUG [org.jboss.resource.deployment.RARDeployment] Starting jboss.jca:service=RARDeployment,name='imqjmsra.rar' | 2006-12-01 18:05:35,744 ERROR [STDERR] 1/12/2006 18:05:35 com.sun.messaging.jms.ra.ResourceAdapter start | INFO: MQJMSRA_RA1101: SJSMQ JMS Resource Adapter starting... | | Sun Java(tm) System Message Queue 4.0 | Sun Microsystems, Inc. | Version: 4.0 (Build 28-a) | Compile: Tue May 2 09:50:18 PDT 2006 | | Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved. | SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. | | This product includes code licensed from RSA Data Security. | | 18:05:37,649 ERROR [STDERR] 1/12/2006 18:05:37 com.sun.messaging.jms.ra.ResourceAdapter start | INFO: MQJMSRA_RA1101: SJSMQ JMS ResourceAdaapter configuration= | < .. snip ..> | | 18:05:37,653 ERROR [STDERR] 1/12/2006 18:05:37 com.sun.messaging.jms.ra.ResourceAdapter start | INFO: MQJMSRA_RA1101: SJSMQ JMSRA Started | anonymous wrote : | 2) What do I need to configure in the various xml files ( e.g. jms-ds.xml, etc... ) so that it uses SunOne OMQ : | 2a) ... in addition to JBossMQ ? | 2b) ... as a replacement for JBossMQ ? | The only thing now is, do I have to change the any JBoss specific XML files ? Regards, John View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990367#3990367 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990367 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: How to get CallerPrincipal in EJB3 session bean
@Stateless @Local public class YourBean implements YourInterface { @Resource SessionContext ctx; public void yourMethod() { Principal callerPrincipal = ctx.getCallerPrincipal(); } } Basically, you have to use annotations like @javax.annotation.EJB and @javax.annotation.Resource to inject references to Java EE services directly into the fields of your bean. Regards Dalibor View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990365#3990365 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990365 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Failed to deploy icefaces example to JBoss 4.0.5.GA
Use CR2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990364#3990364 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990364 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: Problem with writing JCA adapter
Hi Weston! I also noticed that my matchManagedConnections(Set connections, Subject subject, ConnectionRequestInfo info) connections.size() is always 1.. I have checked that I do get connections. Here is my cleanup and destroy methods. | | private AbstractProtocolHandler handler; | private Vector handles; | | // Goes throu every item in handles and sets value of valid to false | public void cleanup() throws ResourceException { | synchronized (this) { | for (Iterator it = handles.iterator(); it.hasNext(); ) | { | Invalidatable i = (Invalidatable)it.next(); | i.invalidate(); | } | handles = new Vector(); | attributes = new HashMap(); | } | } | | public void invalidate() { | setValid(false); | } | | // Sets value of closing to true and if there is handler then disconnects its connection. | public void destroy() throws ResourceException { | synchronized (this) { | this.closing = true; | if (handler != null) { | try { | handler.disconnect(); | } catch (ProtocolHandlerException e) { | e.printStackTrace(); | } | } | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990363#3990363 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990363 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Failed to deploy icefaces example to JBoss 4.0.5.GA
JBoss 4.0.5.GA + Seam 1.1.0RC1 After typing "ant deploy" under icefaces example dir, I got following err msg on the JBoss 4.0.5.GA console:... | 14:24:15,244 INFO [FacesConfigurator] Reading config /WEB-INF/navigation.xml | 14:24:15,265 INFO [FacesConfigurator] Reading config /WEB-INF/faces-config.xml | 14:24:15,482 WARN [LocaleUtils] Locale name in faces-config.xml null or empty, setting locale to default locale : zh_TW | 14:24:15,506 INFO [D2DViewHandler] | ICEsoft Technologies, Inc. | ICEfaces x.x.x x | Build number: x | Revision: x | | 14:24:15,512 ERROR [[/seam-icefaces]] Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener | java.lang.NoClassDefFoundError: com/sun/facelets/impl/ResourceResolver | at java.lang.Class.getDeclaredConstructors0(Native Method) | at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) | at java.lang.Class.getConstructor0(Class.java:2671) | at java.lang.Class.getConstructor(Class.java:1629) | at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:548) | ... If you have any idea please tell me, thanks very much. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990362#3990362 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990362 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam 1.1 CR2
Seam 1.1.0.CR2 fixes a number of minor bugs in the CR1 release, and adds some minor improvements. This release includes a port of the booking example application to GlassFish, the Java EE 5 reference implementation, along with the hibernate2 and jpa examples which run cross-platform on JBoss 4 (with or without EJB3), GlassFish and Tomcat. Download: https://sourceforge.net/project/showfiles.php?group_id=22866&package_id=163777&release_id=467898 Changelog: http://jira.jboss.com/jira/secure/ReleaseNote.jspa?projectId=10071&styleName=Html&version=12311064 Enjoy! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990361#3990361 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990361 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: when will JBossAS get packaged with Remoting 2.0?
1) The two issues are when/what/if web services updates for the next jbossas release (should be, but don't have all the details yet) and which version they will update to. 2.0.0 is GA and 2.2.0 is alpha 4 with beta 1 due in a few weeks (hopefully). I think messaging needs the 2.2.0, so if can get it done in time for jbossws, will probably be that. 2) Only jbossws, ejb3, and unified invokers (which is not default invoker for ejb 2.x in any 4.x release of jbossas) will have problems if dropin remoting 2.x. messaging deploys with scoped remoting jar (which is something like 2.2.0.alpha2) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990360#3990360 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990360 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: JBoss 4.0.5GA (ejb3) and Sonic Software JCA Adapter
Hi, You can check my code etc at http://www.logiasoftware.fi/msgsrv -Juha- View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990359#3990359 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990359 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - when will JBossAS get packaged with Remoting 2.0?
I have 2 questions regarding the Remoting jar shipping in JBossAS. 1) Can I assume from http://jira.jboss.com/jira/browse/JBAS-3272 that JBoss/Remoting 2.x will be packaged with the next GA of JBossAS? It doesn't explicitly spell that out, but I think that's what the gist of it is. 2) Currently, 4.0.5.GA ships with the older Remoting 1.4. I understand that some things will NOT work if I drop in Remoting 2.0 jar into 4.0.5.GA (over top of its 1.4 jar). But - question is, WHAT won't work? As far as I can tell, Web Services will be broken, but that's all I could find. Curious to know if there are other known JBossAS components that won't work with 2.0 that do work with 1.4 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990358#3990358 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990358 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: How to Configure JMS Appender
This is really a log4j question. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990357#3990357 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990357 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Integrating / Deploying SunOne OpenMessageQueue with JBoss 4
Hi, I have been using SunOne OpenMessageQueue ( https://mq.dev.java.net/ ) for several months now. However, I have been using JMS outside of a J2EE container. What I would like to do now is to use SunOne OpenMessageQueue within JBoss, and use that instead of JBossMQ. SunOne OMQ comes distributed with a RAR archive ( imqjmsra.rar ). However, I could not find information on how to go about deploying it inside of JBoss: 1) Do I just copy the .rar archive onto the deploy directory ? 2) What do I need to configure in the various xml files ( e.g. jms-ds.xml, etc... ) so that it uses SunOne OMQ : 2a) ... in addition to JBossMQ ? 2b) ... as a replacement for JBossMQ ? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990351#3990351 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990351 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: Integrating / Deploying SunOne OpenMessageQueue with JBo
One more thing, the existing SunOne OpenMessageQueue installation is clustered, and uses file-based persistence ( Thus, no need for a jdbc datasource ). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990356#3990356 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990356 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Out and default ScopeType
Correct, but the defaulting rules changed in Seam 1.1. You would not need to explicitly specify CONVERSATION in 1.1. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990355#3990355 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990355 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Logger use in POJO (& TestNG)
@In(create=true) Pojo pojo; View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990354#3990354 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990354 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Email Sending using JMS with JBoss Application Server
Hello, Thanks for your immediate reply. Actually, I need to test JMS on Clustering mode of JBoss AS. So, I have to use JMS for saving the some info on queue and send that queue info as a mail to the user. Is it possible using Message Driven Beans?? or, I think, I have to edit mail-service.xml file in /server/all/deploy path. Any suggestion?? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990352#3990352 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990352 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Reading properties file
Try this: this.getClass().getClassLoader().getResourceAsStream("/META-INF/custom.properties"); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990353#3990353 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990353 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Excessive [could not destroy component] 1.1B1 to 1.1CR1
anonymous wrote : With the @In's present, I get the previously mentioned error. | | With the @In's absent, everything works as it used to in b1 and below -- the error no longer occurs. Again -- only change was the removal of all @In's from the session scoped SFSB's. This makes no sense at all. Please produce a simple test case which shows this happening. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990350#3990350 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990350 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State
(The reason is that fine-grained method-level tx demarcation is an antipattern - you want to do all your work for a request in the same tx.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990349#3990349 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990349 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State
Hello, I was just reading through the EntityHome Manager pattern and it seems that for that to work I have to use SeamManagedPersistenceContext. In my application we are not using SeamManagerPersistenceContext and are relying on EJB container for Tx demarcation. In this case, what will be the options left ? Thanx, Kevin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990347#3990347 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990347 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Audit Interceptor with State
This stuff is meant to be used with Seam-managed tx/pc. If you wanted to use it with container-managed PC/tx, you could do it, but you would need to inject the EntityHome into a session bean component that does tx demarcation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990348#3990348 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990348 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Email Sending using JMS with JBoss Application Server
You can use JavaMail to send e-mail. JMS doesn't do SMTP. I suppose you could use the ESB product I guess. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990346#3990346 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990346 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Email Sending using JMS with JBoss Application Server
Hello Folks, >From my application, I need to send an Email to the user as a Confirmation >mail using JMS. I don't know how to do with JMS. My application is running under JBoss Application Server 4.0.4GA in Cluster mode. Please help me folks. Any reference doc or any help is greatly appreciated. Thanks in Advance, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990344#3990344 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990344 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - How to Configure JMS Appender
Can Anybody tell me how to configure JMSAppender in Jboss so that it can log in JMS Queue using log4j.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990345#3990345 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990345 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam remoting not working
Here's what I get from the debug window: Thu Nov 30 2006 21:08:17 GMT-0700 (MST): Request packet: William btw, I noticed that in section 7.8 (of seam_reference.pdf for 1.0.1.GA) there's a loading message that's supposed to appear in the top-right corner of the screen (does that really mean window?) I don't see any loading message in the window or on the screen. Thanks for the help... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990342#3990342 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990342 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam remoting not working
Oops, I guess I need to wrap that pointy stuff in a code block. Here's the debug output: | Thu Nov 30 2006 21:08:17 GMT-0700 (MST): Request packet: | | William | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990343#3990343 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990343 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Portlet markup fragment
Hi all, I currently learn markup fragment rendered by portlet. I read WSRP v1 and JSR 168 specification. The WSRP specification said that markup fragment contains the URL of the portlet in Producer and other things (e.g. MarkupResponse) but it don't said any things about HTML format of fragment. My question is whether the fragment have HTML format or not. If yes what is it ? Where can I find this document ? How about markup fragment rendered by portlet written by JSR 168 ? Thanks, Trieu Viet Nguyen View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990341#3990341 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990341 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Excessive [could not destroy component] 1.1B1 to 1.1CR1
Rdewell, I was mistaken this morning when I said I was not having problems with the latest nightly builds. I, like you, have the same result with the latest nightly builds. Carl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990340#3990340 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990340 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @Out and default ScopeType
I understand my problem. In this particular case, my entity being outjected is a Seam component but not marked with a scope. Therefore, it is taking on the default EVENT scope. If I don't specify the scope on the @Out annotation, my data is placed in the event context, and thus the data does not survive past the redirect. If I add @Scope(CONVERSATION) atop the User class, then it works as expected. So the point is that it is required to add @Scope(CONVERSATION) either on the entity or on the scope attribute of the @Out annotation for the data to be included in the conversation context if the data IS a seam component. If the User class was not a Seam component, then it would default to the scope of the component outjecting the data. I managed to find myself right between the two scenarios, and hence out of luck. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990338#3990338 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990338 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - @Logger use in POJO (& TestNG)
I have an ordinary POJO class, from which I want to use the Seam logger. I'm having a bit of trouble, however, using this POJO class, both from a Stateless bean, and from a TestNG test class. First, the Bean: ... | @Stateless | @Name("echo") | public class EchoBean implements Echo { | @Logger private Log log; | | @In | FacesMessages facesMessages; | | @In | Pojo pojo; | | public String echo(){ | log.info("echo.echo() action called"); | | pojo.doEcho("Echo Me!"); | | facesMessages.add("echo"); | return "success"; | } | } Then the POJO: ... | @Name("pojo") | public class Pojo { |@Logger Log log; | | public String doEcho(String text) { | log.info("Echoing: "+text); | return text; | } | } and for completeness, the TestNG testcase: ... | | public class PojoTests extends SeamTest { | @In Pojo pojo; | | @Test | public void testDoEcho() throws Exception { | assert pojo.doEcho("hello world!").equals("hello world!"); | } | } At the moment, we're seeing this: javax.ejb.EJBTransactionRolledbackException: org.jboss.seam.RequiredException: In attribute requires value for component: echo.pojo | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93) | at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201) | ... I get basically the same problem from running inside a full JBoss AS install, as well as the TestNG/Eclipse/embedded-ejb environment. When we remove the '@In' parts from the calling class (either the testcase or the bean) we get a NullPointerException in the POJO here: log.info("Echoing: "+text); which we take to mean that the logger isn't being injected for the POJO. Is this even the correct approach? Basically the end-goal is to be able to use the logger in POJOs as well as inside of beans, and to be able to use TestNG to unit test them. Any help would be greatly appreciated :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990339#3990339 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990339 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Unable to Debug and/or Deploy
I cannot see the JBoss 1.3 or JBoss 1.4 Title in Debug... Configurations. Thats why I cannot proceed with the Chapter 10 of tutorial. BTW i copied the EAR file into JBoss...\default\deploy and tested the application,and it works, but I want to Debug and Deploy it Using Eclipse. Please tell me how can I update my JBoss plugin. Also update the bundled file once the issue gets resolved. I downloaded bundled version of Eclipse Eclipse 3.2/JBoss 2.0.0.Alpha/WTP 1.5 from Jboss website View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990337#3990337 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990337 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Using the SEAM equivalent to CGI's 'path_info'
There are other threads that discuss this. Use url rewriting (servlet filter or something). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990336#3990336 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990336 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Using the SEAM equivalent to CGI's 'path_info'
Is there a way to trick SEAM into parsing parameters off of the URL path rather than URL parameters? It would be something equivalent to the PATH_INFO environment variable in the CGI spec. The reason I'm asking is so that I can make the URLs prettier. For instance, rather than: | http://example.com/application/record.seam?id=1001 | I'd like to use: | http://example.com/application/record.seam/1001 | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990335#3990335 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990335 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: jboss-seam-CVS.20061130, icefaces example, and tomcat pr
I am not able to reproduce this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990334#3990334 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990334 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: CVS?
Dear Mr Cocampo, Sorry for the late reply as i was back to my hometown. I would have a look on it. By the way, my superior want me to remove a form in the starter kit and replace it with the company existing form. Do you have any idea on this. The company want me to work out on this. Regards, Janice View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990333#3990333 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990333 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: jboss-seam-CVS.20061130, icefaces example, and tomcat pr
hmm ... same thing when i deploy to jboss: | 21:35:42,578 INFO [STDOUT] 21:35:42,578 ERROR [SeamExceptionFilter] could not roll back transaction | javax.naming.NamingException: Local server is not initialized | at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45) | at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) | at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) | at javax.naming.InitialContext.init(InitialContext.java:223) | at javax.naming.InitialContext.(InitialContext.java:197) | at org.jboss.seam.util.Naming.getInitialContext(Naming.java:35) | at org.jboss.seam.util.Naming.getInitialContext(Naming.java:47) | at org.jboss.seam.util.Transactions.getUserTransaction(Transactions.java:149) | at org.jboss.seam.util.Transactions.isUTTransactionActiveOrMarkedRollback(Transactions.java:122) | at org.jboss.seam.util.Transactions.isTransactionActiveOrMarkedRollback(Transactions.java:50) | at org.jboss.seam.servlet.SeamExceptionFilter.rollbackTransactionIfNecessary(SeamExceptionFilter.java:92) | at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:52) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | 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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | 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:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java | :664) | 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) | gotta be user-error, eh? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990331#3990331 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990331 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: question about Wfp06MultiChoiceTest?
xml file: | | | | | | | | | | scenario == 1 | | | scenario == 2 | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990330#3990330 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990330 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: question about Wfp06MultiChoiceTest?
xml file: --- start-state> state> #{scenario == 1} or #{scenario >= 3}condition> transition> #{scenario == 2} or #{scenario >= 3}condition> transition> fork> state> state> join> process-definition> View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990329#3990329 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990329 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - question about Wfp06MultiChoiceTest?
sorry my English is poor. i try to change Wfp06MultiChoice's processdefine from String to xml,and deploy to database,but when i test ,it can't select singleness,it always fork to both transition.why? --- scenario == 1 scenario == 2 -- processInstance = jbpmContext.loadProcessInstance(processInstanceId); ContextInstance ci = (ContextInstance) processInstance.getInstance( ContextInstance.class ); processInstance.signal(); ci.setVariable("scenario", new Integer(1)); Token root = processInstance.getRootToken(); System.out.println(root.getNode()); root.signal(); System.out.println(root.getNode()); Token tokenB = root.getChild("to b"); Token tokenC = root.getChild("to c"); tokenB.signal(); System.out.println("tokenB:"+tokenB.getNode()); System.out.println("tokenC:"+tokenC.getNode()); System.out.println(root.getNode()); System.out.println(ci.getVariable("scenario")); --- result: State(a) Fork(multichoice) tokenB:Join(syncmerge) tokenC:State(c) Fork(multichoice) 1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990327#3990327 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990327 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - jboss-seam-CVS.20061130, icefaces example, and tomcat proble
Hello, Just grabbed the latest seam code, installed tomcat 5.5.20, and followed the instructions in the Seam ICEfaces Example readme.txt. When I deploy the app, I get the exception: 20:55:09,734 ERROR [SeamExceptionFilter] could not roll back transaction | javax.naming.NamingException: Local server is not initialized | at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45) | at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) | at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) | at javax.naming.InitialContext.init(InitialContext.java:223) | at javax.naming.InitialContext.(InitialContext.java:197) | at org.jboss.seam.util.Naming.getInitialContext(Naming.java:35) | at org.jboss.seam.util.Naming.getInitialContext(Naming.java:47) | at org.jboss.seam.util.Transactions.getUserTransaction(Transactions.java:149) | at org.jboss.seam.util.Transactions.isUTTransactionActiveOrMarkedRollback(Transactions.java:122) | at org.jboss.seam.util.Transactions.isTransactionActiveOrMarkedRollback(Transactions.java:50) | at org.jboss.seam.servlet.SeamExceptionFilter.rollbackTransactionIfNecessary(SeamExceptionFilter.java:92) | at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:52) | 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.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:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) | at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) | at java.lang.Thread.run(Thread.java:595) | If I then go to the register page, I get: | 21:08:03,265 ERROR [D2DFaceletViewHandler] Problem in renderResponse: Could not instantiate Seam component: register | org.jboss.seam.InstantiationException: Could not instantiate Seam component: register | at org.jboss.seam.Component.newInstance(Component.java:1724) | at org.jboss.seam.Component.getInstance(Component.java:1627) | at org.jboss.seam.Component.getInstance(Component.java:1594) | at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:46) | at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42) | at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134) | at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65) | at com.sun.el.parser.AstValue.getValue(AstValue.java:106) | at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192) | at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71) | at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56) | at javax.faces.component.UIOutput.getValue(UIOutput.java:77) | at com.icesoft.faces.renderkit.dom_html_basic.DomBasicInputRenderer.getValue(DomBasicInputRenderer.java:60) | at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.getValue(DomBasicRenderer.java:152) | at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeEnd(DomBasicRenderer.java:124) | at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536) | at org.jboss.seam.ui.JSF.renderChild(JSF.java:179) | at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162) | at org.jboss.seam.ui.UIDecorate.encodeChildren(UIDecorate.java:162) | at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:531) | at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535) | at com.icesoft.faces.app
[jboss-user] [JBoss Seam] - Re: Excessive [could not destroy component] 1.1B1 to 1.1CR1
Carl's solution worked. Never would have guessed it had he not said something. Thanks, Carl. I had to remove all @In's from my Session scoped SFSB's and change them to direct access through Component.getInstance. Changed session timeout in web.xml to 1 minute -- far less than the idle timeout of the SFSB's -- and allowed me to test quickly. With the @In's present, I get the previously mentioned error. With the @In's absent, everything works as it used to in b1 and below -- the error no longer occurs. Again -- only change was the removal of all @In's from the session scoped SFSB's. Would you like a test case for this? Unlike Carl, I've had no luck with the nightlies fixing this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990324#3990324 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990324 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: jboss application redeployment problem
Also i forgot to say that clearing the cache is not an option as the app will be running on multiple servers sharing the same cache. This brings up another question. How in the heck am i suppose to share data through the cache if i cant even get at the object data between multiple app instances? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990323#3990323 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990323 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: jboss application redeployment problem
thank you, for your answer, it makes perfect sense. If i change the class type to an array of primitives instead of my custom class, would that work? I'm not familiar on the intricacies of the classloader. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990321#3990321 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990321 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Please help me! The page cannot change when jbpm is used
Thank you for the answer. I had put pageflow.jpdl.xml in WEB-INF of war up to now and was deploy it. When pageflow.jpdl.xml putting deploy and done right under ear, the screen transition is not effective well though the deploy error did not go out. At this time, other errors have not gone out. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990312#3990312 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990312 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Excessive [could not destroy component] 1.1B1 to 1.1CR1
I didn't intend to make you defensive. Seam is a great app, and as I said, I'll try to dig up some more info. Others have experienced this problem. I'll start with Carl's suggestion in this thread, and see where that goes. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990311#3990311 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990311 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Excessive [could not destroy component] 1.1B1 to 1.1CR1
anonymous wrote : No, my session scoped SFSB are not sitting around idle. I don't believe you. If they were not sitting around idle, you would not be getting EJBNoSuchObjectExceptions. Please consider the possibility that this is your problem, instead of fixating that it is mine. anonymous wrote : What I'm trying to explain in both the ticket (and apologies for diverging here) is that I believe it is Seam's responsibility to handle this better, and agnostic to the JEE container. Is it also Seam's responsibility to solve the AIDS epidemic in Africa and help America bring democracy and stability to Iraq? It's all very well to wish for impossible things, but I have to actually write some code at some stage. There is no platform-neutral way to implement this, since the metadata to control SFSB timeout is not defined by the Java EE spec. End of story. Nor are there any exposed APIs that Seam could call. anonymous wrote : as of 1.1CR1, Seam is no longer destroying these components successfully (above error). I have @CacheConfig set at 35 minutes. It was previously at 30 minutes and worked FINE on 1.1b1 and below. Seam had no problems destroying these components. You are the only one who has experienced this (so far). You have given us no way to reproduce the problem. You have given no real information other than a stack trace. And you are ranting and telling us that we have a responsibility to deliver impossible things. If you can produce a very, very simple test case that demonstrates this happening, we can continue this discussion. If not, I have many other things to do. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990310#3990310 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990310 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Excessive [could not destroy component] 1.1B1 to 1.1CR1
Alright, it's my fault, but this thread has gotten off topic. No, my session scoped SFSB are not sitting around idle. They're being used almost constantly throughout the app session. What I'm trying to explain in both the ticket (and apologies for diverging here) is that I believe it is Seam's responsibility to handle this better, and agnostic to the JEE container. Regardless of that perspective I have, back to topic, as of 1.1CR1, Seam is no longer destroying these components successfully (above error). I have @CacheConfig set at 35 minutes. It was previously at 30 minutes and worked FINE on 1.1b1 and below. Seam had no problems destroying these components. So, I don't know what's changed. I guess I'll have to dig more info up. I find the whole thing strange myself. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990308#3990308 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990308 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: JBossSeam & Quartz: how?
anonymous wrote : Gavin, I've been looking for an example or something to look how to use the connecto. Do you have an URL? Ask in EJB3 forum. anonymous wrote : Another question. Since Seam is integrated with JBPM, can I create a JBPM schedulled-task?? No, not yet. This is slated for 1.2. anonymous wrote : (I need a task that executes forever with gaps of 10 minutes) | If thats all you need why not just use a Seam 1.1 asynchronous method? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990309#3990309 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990309 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: No page context active - ICEFACES
Try CR2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990307#3990307 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990307 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - How to get CallerPrincipal in EJB3 session bean
Hi, How do I get a reference of the callerprincipal in a session in EJB3? In EJB2, we can get the caller principal in the context of the session bean, but now session beans are just pojos. I've just started working with EJB3. I don't know if this has been answered already, if it is, please direct me to that post or any wikis for that matter. Would appreciate any help. Thanks. Regards, Elmo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990304#3990304 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990304 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Injection and disinjection control
anonymous wrote : Could you please elaborate a bit why injection is happening for every method call instead of only 1 time on the 1st call. Because the value of a contextual variable can change b/w calls. anonymous wrote : I'm asking because I thought that configuration with xml or with annotations leads to the same result. It definitely does not, and the docs make this very clear. Stop pre-optimizing! The FIRST rule of performance is don't make assumptions about performance before you actually have a real application which has a performance problem. This is a basic rule that all good programmers follow. Seam's bijection is NOT going to make your fast application slow! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990303#3990303 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990303 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know
anonymous wrote : One of the disatvantages of using an extended persistent context is that the transaction lasts for a long time, which is maybe not what you want. This is DEFINITELY not true. Persistence context != transaction context. That is why there are two different things. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990302#3990302 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990302 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Bidirectional OneToMany removal of related entities
No. You would need to add the (Hibernate-specific) annotation for orphan delete. Also check your understanding of persist(), it is NOT used in the way you are trying to use it here! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990301#3990301 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990301 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Null EntityManager
Seam JavaBean components do not support the @PersistenceContext annotation, which is only for EJB3 components. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990300#3990300 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990300 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Excessive [could not destroy component] 1.1B1 to 1.1CR1
I mean, frankly, if you think about it, this is exposing a real flaw in your application design. What you have is state sitting on the server that is not even being used, for an entire login session! This is a waste of server resources. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990299#3990299 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990299 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Excessive [could not destroy component] 1.1B1 to 1.1CR1
Hum, OK I just realized that there *is* a problem (perhaps this is what you have been trying to say all along). If you have an SFSB sitting in session scope, and you make some requests to the server which do not actually touch that SFSB, then the SFSB will timeout *before* the HttpSession times out. I don't see a really good way to fix this (there is no safe way to "ping" an SFSB AFAIK). So the only solution is to set the SFSB timeout "much" longer than the HttpSession timeout. Disabling the SFSB timeout altogether will work, and should be reasonably safe to do, since Seam is pretty good about guaranteeing that cleanup occurs at HttpSession timeout. The other solution is to simply not use SFSBs in this way. Use session-scoped SFSBs only if you know that they will be used on each page, or at the beginning of each conversation, or whatever. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990298#3990298 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990298 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: no value for request parameter: taskId
Right, as per the docs, you need a defined actor id if you expect to find any tasks have been assigned to you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990297#3990297 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990297 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: CVS icefaces example fails
(And yes, my JBoss is installed from JEMS installer.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990296#3990296 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990296 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: CVS icefaces example fails
As others, I cannot reproduce this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990295#3990295 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990295 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - org.jbpm.JbpmException: setRollbackOnly was invoked
Hello, I have been struggling to get jBPM running on Tomcat 5.5.17. As it currently stands, the webapp seems to have deployed with all the jars specfieid in 'JBPM3 on Tomcat' thread. When I try to visit index.jsp I get FacesException that it cannot get value for userBean.userSelectItem. I have posted that on the same thread. Then I copied hsqldb.jar to my jbpm\web-inf\lib and also added log4j.properties to classes folder. Now I get following exception - org.jbpm.JbpmException: setRollbackOnly was invoked while configuration specifie s user managed transactions at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceServi ce.java:139) at org.jbpm.svc.Services.close(Services.java:211) at org.jbpm.JbpmContext.close(JbpmContext.java:139) at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExec utorThread.java:139) at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread. java:79) and it is throwing this exception periodically. so my question is was it right thing to add that jar file? I did not see any hsql specific jar in the lib folder and Tomcat doesn't have any by default like jBoss so I thought of adding one. Also I don't think I am getting anything by adding log4j.properties. How do I turn on logging from jBPM? Please let me know what I am doing wrong? :( I have to get this working by tomorrow :(( Thank you in advance. - Meghana View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990294#3990294 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990294 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: jboss application redeployment problem
Once you've redeployed, you have a new class loader, so while the classes may look the same (com.example.MyObject) they are actually distinct as far as the JVM is concerned. I don't have an easy fix ... clearing the cache explicitly when your app starts might work in some cases. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990293#3990293 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990293 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - SSO Specific Usecase
Hi I am using JBOSS SSO with JAAS based approach and everything works great for me. But we have one typical requirement. I have two Applications Running on 2 different machines On our application A user logs in with information clientID, username and password, (In JAAS scenario clientID+username makes the principal). Now we have functionality that on application A itself, same user can switch its clientID, e.g. User Logs into Application A with UserName:nick ClientID: 1234 password: protected After that user wants to switch ClientID but username still remains the same e.g. UserName:nick ClientID: 5678 password: protected For this scenario, the moment user switch clientID we logout the user by invalidating session and login automatically again with new clientid but same username and password. Now as we are using SSO I believe that we should call some function of SSO API, to tell the SSO framework that we have Automatically logged in the new user, please change token information accordingly, so that if I go to my partner Application B, I should see new user information. Is there any way we can achieve it? If I am not wrong same thing happens when we go from one partner application site to another after login. SSOAutoLogin automatically login the user and takes care of SSO Tokens also. Other thing I can think of is, After invalidating the session, we can call SSOManager.cleanToken(), (but this method takes a String Argument ssoToken whcih I am sure, what exactly it is) and after that login the user and SSO Framework will automatically takes care of new Token. Would appreciate of someone can help me clarifying this. Thanks Nipun View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990292#3990292 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990292 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - jboss application redeployment problem
Jboss has my treecache service mbean running. I deploy my application and create nodes and data key/value pairs in the nodes. I can retrieve the values and cast them to the appropriate class. I redeploy my application and retrieve the same values, but this time i cant cast them to the appropriate class. If I do a getClass on the the Object, it tells me the right class, but i cant cast to that very same class. Any ideas on what is wrong? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990291#3990291 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990291 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm 3.0 on tomcat
Hello robik123 and others, I am getting exactly same exception about userBean.userSelectItems from JSF. In you last post you said you had to include more jars, could you please be more specific and let me know which jars? I am using hsql and tomcat 5.5.17. I used the dbvisualizer tool to verify that the users exist in my 'localdb'. My hibernate.cfg.xml looks like this - org.hibernate.dialect.HSQLDialect org.hsqldb.jdbcDriver jdbc:hsqldb://localhost:1701 sa Please let me know what I need to do here. Thank you, Meghana View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990290#3990290 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990290 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Injection and disinjection control
Could you please elaborate a bit why injection is happening for every method call instead of only 1 time on the 1st call. I'm asking because I thought that configuration with xml or with annotations leads to the same result. Further, if i declare a request scoped bean I expect it to be there and exactly the same for the whole life cycle of the request - therefore it would be less preoptimization than avoidance of unnecessary work. The only reason i first could have thought of was because of some object caching / pooling issues but as this has to work for annotation configured stuff too it can't be the reason. So please elaborate / clarify this a bit. Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990289#3990289 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990289 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm needs a symbol!
If a have a symbol proposal, where do I sent it? Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990288#3990288 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990288 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ScopeType.EVENT versus getter method actionBean.getPrope
That should be #{actionBean.property}. One difference between the two is that in the second example, #{property} only will be defined when an action is invoked on actionBean. (you can solve this with a page action or factory annotation) On the question of which is better, a good first question to ask yourself is: Is X a standalone concept or is it just a property of a component. If X has no meaning outside of your component, outjecting doesn't seem to serve any purpose. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990287#3990287 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990287 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Obtaining SecurityManagerService failed jboss4.x
my web app is running as a simple war file under tomcat, configured for https Authentication is being handled via servlet. I am getting (sometimes, unpredicatbly) error which is preventing user login. jboss-web.xml declares: < security-domain flushOnSessionInvalidation="false" > Somewhere I read to remove the 'flush.. ' attribute?? Any tips appreciated. partial stack trace: 2006-11-29 13:13:50,816 DEBUG [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Obtaining SecurityManagerService failed:: java.lang.ClassCastException: org.jnp.interfaces.NamingContext at org.jboss.web.tomcat.security.SecurityFlushSessionListener.getSecurityManagerService(SecurityFlushSessionListener.java:193) at org.jboss.web.tomcat.security.SecurityFlushSessionListener.getSubjectAndSecurityDomain(SecurityFlushSessionListener.java:160) at org.jboss.web.tomcat.security.SecurityFlushSessionListener.sessionDestroyed(SecurityFlushSessionListener.java:79) at org.apache.catalina.session.StandardSession.expire(StandardSession.java:687) at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:579) at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:678) at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:663) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1284) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558) at java.lang.Thread.run(Thread.java:595) 2006-11-29 13:13:50,822 DEBUG [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Unable to obtain SecurityDomain 2006-11-29 14:03:54,485 DEBUG [org.jboss.web.tomcat.security.SecurityFlushSessionListener] Obtaining SecurityManagerService failed:: java.lang.ClassCastException: org.jnp.interfaces.NamingContext View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990286#3990286 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990286 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: no value for request parameter: taskId
Without the login, how do you set the Actor (user) that you are getting tasks for? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990285#3990285 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990285 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: CVS icefaces example fails
I just tried the most recent JEMS installer(JEMS Installer 1.2.0.CR1) and received the same exception. Could you try running the example in a JEMS installed JBoss? Otherwise, is the most recent JBoss CVS required? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990284#3990284 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990284 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: CVS icefaces example fails
I used JBoss 4 from CVS with no modifications. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990283#3990283 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990283 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SEAM and JBPM
sorry, my english is terrible: did you solve the problem??? please let me know because i'm getting a similar problem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990282#3990282 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990282 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: JBossMQ message persistence with SQLServer (Urgent help)
Give the new sqljdbc.jar 1.1 a try, that fixed it for me. :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990279#3990279 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990279 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SEAM and JBPM
do you solve the problem??? please let me know because i'm getting a similar problem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990281#3990281 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990281 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - h:inputText and h:outputText display different values using
I'm using the same el expression for h:inputText and h:outputText tags that are right next to each other. The outputText tag is correct, but the inputText tag does not get prepopulated correctly. It seems like it's using a cached value. Would this be a Seam problem or an ICE Faces problem? This was working before I upgraded to Seam CR 1.1.0 and integrated ICEFaces in. Any ideas? Thanks, Crayton View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990280#3990280 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990280 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: SSL Configuration using Verisign
Did you see the discussion at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=84542? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990278#3990278 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990278 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityManager: For newbies or to close gaps in your know
@bf081 I found another thing you forgot to mention: anonymous wrote : You even don't have to call the merge() method since the entities never get DETACHED. So you might ask what is the "normal" (transaction scoped) persistence context good for? One of the disatvantages of using an extended persistent context is that the transaction lasts for a long time, which is maybe not what you want. If you go into the extreme case, then it might span until the user finally logs out. If during this time an error occurs, then all other actions will be undone. Which makes me wonder, when and how a transaction finally is commited in an extended persistent context? I mean which of the statefull session beans do we have to destroy, if many are involved in the transaction. I guess by ending the conversation using @End, wer surely destroy all SFSB and the current extended persistent manager, thereby commiting the current transaction. Is that correct? Maybe somebody can contribute to what I have said? @justinwalsh I have a question regarding: anonymous wrote : The SMPC takes the concept of an EPC a little further by integrating the JSF lifecycle with that of the stateful component. Effectively what the SMPC achieves is the removal of LIE when traversing objects outside the scope of your session bean (there's more to it than that - but for now that will do). So in your JSF, if you traversed the customer --> addresses relationship (after outjecting a customer object) you'll avoid the LIE issue. Does that mean that the the Entity will still be attached to the persistent manager or will it be unattached, but modified in such a way that calls to uninitialzed values will not generate LIE's? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990277#3990277 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990277 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Bidirectional OneToMany removal of related entities
If I have a bidirectional OneToMany and I remove a related entity from the Set, then call "persist", is the removed related entity supposed to get deleted from the database or not? In my case it is not getting deleted, altough I was under the impression that persist would reflect all changes made to the object graph (my cascade is "ALL"). The removal from the Set is definitely occuring - it's just not getting reflected in the DB. some code to explain: Parent: | @OneToMany(mappedBy="form", cascade=CascadeType.ALL, fetch=FetchType.EAGER) | public Set getSchedules() | { | return schedules; | } | Child: | @ManyToOne | public BaseForm getForm() | { | return form; | } | Removal code: | | form.getSchedules().remove(someSchedule); | em.persist(form); // This is NOT deleting the child | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990276#3990276 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990276 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - ProcessDefinition -> jPDL
How can I go from an in-memory ProcessDefinition object to a jPDL xml file? I see that there is a JpdlXmlWriter but that is deprecated. Is there another way? How does the process designer in Eclipse create the jPDL? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990275#3990275 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990275 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: JBossMQ message persistence with SQLServer (Urgent help)
I had the same issue, switched back to older drivers, msbase.jar, mssqlserver.jar, msuntil.jar and works fine that way with sqlserver 2000 or 2005. I have not tried sqlserver.jar 1.1 or something like jTDS.jar. the sqlserver.jar I had trouble with was 1.0. Thx, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990272#3990272 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990272 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Sizing a Stateless Session Bean Pool Size
This person is incorrect... By default, SLSBs use a ThreadLocal pool. So, one instance is created per thread. TheadLocal pools allow you to avoid synchronization. So basically, you have, by default as many SLSB instances as your greatest volume of concurrent requests. Download RC9 release and read the documentation on how to change things. For instance, there is a StrictPool setting that will set a max and block requests if that max is met. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990273#3990273 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990273 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Renderer(s) not applied
Hello! I have modified the default DivDecorationRenderer and deployed the new render set. I have created a new page to use this new renderset. Unfortunately, it seems that the portal doesn't apply the new render set. Once i'm logged in, it does apply my renderers. Is there a problem, any ideas? My environment: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339) (ejb3 profile) JBoss Portal 2.6.0.DR1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990274#3990274 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990274 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Index creating with ejb3 annotation
You can use the @Index annotation (org.hibernate.annotations.Index) but it's not a standard JPA annotation, it's JBoss/Hibernate specific. /klejs View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990271#3990271 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990271 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - problem in using ServiceFactoryImpl
I am trying to consume a remote web service from my EJB running inside JBoss. I want to use ServiceFactoryImp class and am packging "wsdl" and "jaxrpc-mapping.xml" files inside my EJB JAR file as | META-INF/wsdl/ | META-INF/jaxrpc-mapping.xml How do I create the URLs for these files for passing to createService() method of ServiceFactoryImpl class, since EJB specs forbid direct file access? I have tried following, but it returns null URLs ClassLoader cl = Thread.currentThread().getContextClassLoader(); | URL mappingURL = cl.getResource("jaxrpc-mapping.xml"); | URL wsdlLocationUrl = cl.getResource("enms.wsdl"); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990270#3990270 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990270 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: SSL Configuration using Verisign
We are also having this problem. Was anyone able to come up with a solution? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990269#3990269 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990269 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: How to access an EJB (3.0) in Jboss from a Client in Web
Hi, You need something like this; Properties p = new Properties( ); | //Specify the JNDI properties specific to the vendor. | p.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); | p.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces"); | p.put("java.naming.provider.url","jboss_host_name"); | Context ctx = new InitialContext(p); | | Object ref = context.lookup("path_to_ejb_in_jndi"); | BeanRemoteInterface bean = (BeanRemoteInterface) | PortableRemoteObject.narrow(ref,BeanRemoteInterface.class); And you will need the remote interface on your classpath and the jboss client lib. /klejs View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990268#3990268 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990268 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Problems with foreign key updates
Hi, Can you show me the code where you are doing the actual update? /klejs View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990251#3990251 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990251 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: TimerBean
Hi, The most simple way to do this, if you have a webapp with your deployment, is to use a javax.servlet.ServletContextListener and in the contextInitialized() method intialize your TimerBean. The Timer Service is very limited in many aspects and there was no changes for the Timer Service in EJB3. You should think of using something like Quartz instead which is more configurable and is easier to use than the Timer Service. /klejs View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990238#3990238 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990238 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Trouble with jboss
i don't know how to put in place a thread dump when it crashes. I didn't set up log4j.xml, i will do it very soon i hope. Actually since i came into the forum, the apps is stable (for now...) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990194#3990194 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990194 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - ConnectionManager issue in Stateless bean and injected Entit
I am getting the following INFO message from the ConnectionManager when accessed from a Stateless bean: 14:36:01,687 INFO [ConnectionManager] forcing batcher resource cleanup on transaction completion; forgot to close ScrollableResults/Iterator? The application looks like it is working so what does this mean? I am using JBoss 4.0.5 GA, but same issues exists with 4.0.4 GA. I am using Postgresql 8.1 for a database. I am using Seam, but this error occurs without invoking my UI client. @Stateless public class MyTrialBean implements MyTrailRemote { @PersistenceContext private EntityManager em; ... public String update(Biu biuAttributes) { try { String serialNumber = biuAttributes.getSerialNumber(); List bius = em.createNamedQuery("Biu.findBySerialNumber") .setParameter("serialNumber", serialNumber) .getResultList(); if ((bius == null) || (bius.size() == 0)) { return ProXmlResponse.getError(ProError.BIU_NOT_FOUND); } Biu biu = bius.get (0); biu.setLastContact(new Date()); em.merge(biu); } catch (Exception e) { return ProXmlResponse.getError(ProError.BIU_UPDATE_FAILED); } } ... Other posts/replies state that I should close the connection in a finally block. I have tried various calls to the EntityManager but those usually result in an error. I based most of what I am doing here on the EJB3 TrailBlazer demos. I am looking for more information on this problem to see if it is related to the following more serious ConnectionManager problem. 14:52:08,817 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null 14:52:08,817 ERROR [JDBCExceptionReporter] No ManagedConnections available within configured blocking timeout ( 3 [ms] ); - nested throwable: (javax.resource.ResourceException: No ManagedConnections available within configured blocking timeout ( 3 [ms] )) 14:52:08,817 ERROR [STDERR] Nov 30, 2006 2:52:08 PM checkStats INFO: PurgeStatsBean.checkStats()...Failed View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990196#3990196 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990196 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: Identifying performance bottlenecks
Analyzing thread stack traces indeed proved useful. Thanks for your help. I looked at http-0.0.0.0-# threads and most of them were in WAIT/BLOCKED state. All these threads seem to be waiting for JDBC connection. Basically it seems that they are waiting on org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection method. During this I also realized that JBoss XA JDBC pool config is not intelligent (or I might be missing something here). I had specified min-pool-size as 200 and did not specify max-pool-size and it defaulted to 20, which was strange. I am going to post this on JCA forum. Anyways, changing max-pool-size helped a bit and I was able to get another 5% CPU utilized due to that. I also found out that there was a bug report on org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection being slow. I am not sure if it is fixed in 4.0.5-SP1-ejb3. -Shrinivas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990195#3990195 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990195 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Null EntityManager
Hi I have a seam pojo annotated as @PersistenceContext (type=EXTENDED) private EntityManager em; and I have the factory method @Factory ("foobar") @SuppressWarnings ("unchecked") public void findAllFoobars() { foobars = em.createQuery("from Foobar f").getResultList(); } When the factory method is called, the entity manager is null. Does anyone have any idea why this would occur? All my other objects based on EntityHome<> work fine. Oh yeah, I am using 1.1 CR1. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990200#3990200 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990200 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: no value for request parameter: taskId
i'm basing my example in the todo example of jboss seam. it's very simple, and is almost equals to that, but in's not working for any reason. the unique difference that i can found is that my app doesn´t include the login part of the todo example. Any ideas. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990197#3990197 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990197 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Bug/Missing feature in XA-DS.xml
If max-pool-size is not specified and only min-pool-size is specified then max-pool-size should be set => min-pool-size whereas it defaults to 20 rendering min-pool-size setting of no use. I hope I am not missing something here. Thanks, -Shrinivas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990198#3990198 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990198 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: Bug/Missing feature in XA-DS.xml
Add a feature request in JIRA. I will take care of it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990199#3990199 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990199 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @EJB Injection in JSF Managed Bean
If you don't want your code full of EJB dependent code you can use a VariableResolver instead to "inject" your EJBs into your Managed Beans. It would look something like this: public class SessionBeanVariableresolver extends VariableResolver { | |private Context context; | |protected final VariableResolver resolver; | |public SessionBeanVariableResolver(VariableResolver resolver) { | super(); | this.resolver = resolver; | try { | context = new InitialContext(); | } | catch(NamingException e) { | // handle exception | } |} | | |@Override |public Object resolveVariable(FacesContext context, String name) | throws EvaluationException { | | // Return if object found with regular resolver | Object result = resolver.resolveVariable(context, name); | if(result != null) { | return result; | } | | try { | result = context.lookup(name); | } | catch (NamingException e) { | // handle exception | } | | return result; |} | } | In your backing beans you should have a setter for the EJB like this: public Class MyManagedBean() { | |private MyEjbInterface bean; | |public void setMyEjbInterface(MyEjbInterface bean) { | this.bean = bean; |} | } And finally in your faces config you should have an entry for your variable resolver: my.package.SessionBeanVariableResolver and on you managed bean you should set a managed property like this: |MyManagedBean |my.package.MyBean |request | |myEjbInterface | #{path_to_ejb} | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990206#3990206 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990206 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - ScopeType.EVENT versus getter method actionBean.getProperty(
Am I correct in my understanding that the following two are effectively the same? the property is outjected into event scope so it's called several times during the JSF request processing lifecyle, and so is the the actionBean.getProperty() method - and both have the same lifetimes? ActionBean.java: | | @Stateful | @Name("actionBean") | public class ActionBean implements ActionBeanLocal ( | | public getProperty() |return property(); | } | | ... | | example.xhtml: | | and ActionBean.java: | | @Stateful | @Name("actionBean") | public class ActionBean implements ActionBeanLocal ( | | @Out(scope=ScopeType.EVENT) | public getProperty() |return property(); | } | | ... | | example.xhtml: | | When is one pattern preferable to the other? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990201#3990201 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990201 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem with leaked connections from passivated/activate
Thank you for the information on the Hibernate bug. I had not searched on the Atlassian JIRA, just on the JBoss one. I'll keep that in mind in the future. I downloaded the 3.2.1 release of Hibernate Core and copied that library into my JBoss installation. That error does not occur and more and I don't see connections being leaked anymore. Thank you for the quick response guys! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990203#3990203 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990203 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Null EntityManager
Converting the pojo to SFSB seems to have solved the problem. Is this possibly a scoping issue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990205#3990205 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990205 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - WebConsole: Adding new users
Hi, i use jBPM Starters Kit 3.1.2 the server is running and i am playing around with the web console (localhost:8080/jbpm) Now i want to add some own users (defualt users are cookie monster, bert etc.) 1. where can i find the web console applications directory ? i dont find any director whose name sounds as it would have s.th. to do with the web application i find all diretorys for jmx. console etc. but none for the web console 2. how cann i add / change the users ? thx a lot cya daniel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990228#3990228 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990228 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Sizing a Stateless Session Bean Pool Size
I feel like I am asking a stupid question, but where do you configure your Stateless Session Bean Pool Size. I would assume that you can create a pool for each different SLSB you have, so one could have min/max say 20/50 and have a different SLSB be min/max 100/200 Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990208#3990208 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990208 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user