[jboss-user] [JBoss Seam] - Multi lang question
we thought about multi lang solution for our app and I wonder what is your opinion... any text column in our DB can be translate to many languages.. we thought to create another table for each table that has a text column that will hold the id,lang,new_text EJB 3.0 wise , we had Category (Entity bean) and now we also have CategoryMulyLang (the new Entity Bean) now a problem is how can we do something automatic that receive from the session the user language and show the right translated texts on the screens(jsf) , we thought using a converter here... what do you think? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970507#3970507 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970507 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - rhino script rather than beanshell?
All, We are settling on Rhino as a scripting engine for our host side scripting. We're also looking at JBPM as the host process management engine. Can beanshell in JBPM be replaced with Rhino? Many thanks, Greg. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970505#3970505 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970505 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Interface from C app to Seam?
1. Web Services maybe a good way to do this, you dont have to use Seam for that, but just generally have an endpoint that can receive your WS calls and act on it. Why do you have to use Seam for this? 2. Use JMX. If you have an JMX enabled bean, you could use the twiddle script (look up in jboss-4.0.x/bin/twiddle.sh) to invoke an mbean (get/set attribute, call methods etc) but that would be one more technology to learn :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970504#3970504 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970504 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Default action for JSF page?
I think browsers behave differently for this. if there is only one form field on a page, then hitting enter will do the same as a submit but Ive seen posts where IE takes any enter on text field as a submit. You could use the onkeypress attribute on JSF's inputtext to have a javascript that will capture window.event.keyCode and check if thats equal to 13, do the same as what your button needs to do but these details are totally out of JSF and Seam IMO. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970503#3970503 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970503 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: ConversationEntry -- Should lastRequestTime equal startT
I tried it with the updated code (Dint get the latest CVS) but ported changes for ConversationEntry to my 1.0.1.GA build and it worked. Thanks ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970502#3970502 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970502 ___ 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 Retain Admin Role of the Admin user
Try entering the following sql statement for the portal database: insert into jbp_role_membership (jbp_uid,jbp_rid) value (1,1); That should re-establish the relationship between the admin user and the Admin role. By the way, you never said which version of the Portal you are using, or hwich database. The above assumes Portal 2.4GA, not sure it it works on any other version. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970497#3970497 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970497 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Clustering Quartz-ra.rar
I don't like to push you off somewhere else when you're doing the right thing by discussing before opening a JIRA, but I'm concerned you may not get an answer because the people who need to see your post may not follow this forum. I personally can't answer your question, and I suspect the JBoss people who regularly post here can't either. You may have better luck on the EJB3 or JCA forums: http://www.jboss.com/index.html?module=bb&op=viewforum&f=221 http://www.jboss.com/index.html?module=bb&op=viewforum&f=136 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970495#3970495 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970495 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Configure jboss to initialize the server with localhost, not
When i start the server i get this exception: javax.naming.NamingException: Could not bind statless proxy with ejb name ParametroManagerBean into JNDI under jndiName: /sgh/ParametroManagerBean/local [Root exception is javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 201.17.174.29; nested exception is: ... This, i think, occours because my fuck internet provider block a lot of ports,external access, over my machine... how can a make Jboss to point to localhost instead of my internet IP ??? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970493#3970493 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970493 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Jsf Form Authentication problem
I use an html page for login page and when i type the correct user name and password it authenticates but I receive 403 error. If the login parameters are wrong I am redirected to the error page. I searched the net and I think that I configured everything Ok. But still have the problem. Also though this login page is declared confidential when i am redirected to it never runs in https. If I hit directly it does. Anyone with some help it will be great. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970492#3970492 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970492 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Interface from C app to Seam?
dear all, Need advice here. I'm using Jboss 4.0.4GA + Seam 1.0.1GA + Portal 2.40GA + facelets + myfaces. Currently i have an external C application that need to send a event or message to the java beans implemented using Seam. How to do it easily? Some thoughts: 1. Send a HTTP post from the C application, and received by a servlet at Jboss and somehow triggerred up to the beans? 2. Construct a HTTP post similar to "seam remoting" for javascript and let the remoting servlet handle it? 3. Use web service? 4. Use JMS? I'm not so good in Jboss and J2EE, so please help to advise. Thank you very much. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970491#3970491 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970491 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam deployment error while working with costom lib's
I Figured it out and solved the problem myself. work around is put the xyz.jar in application.xlm and keep the jar in ear. This works fine and JBoss identifies the jar. if you keep the jar in WEB-INF/lib, it doesn't work out. I am not sure, it is the way it suppose to be or work around or issue any way. i got it & working fine. Thought this my help you~ ;=) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970489#3970489 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970489 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Accessing in ActionHandlers the SEAM Way
The process is a long running one and cant be in the conversation scope. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970488#3970488 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970488 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: MDB + durable topic + cluster (failover)
You can use system properties and put them in your ejb-jar.xml, e.g. client-${node.id}. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970487#3970487 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970487 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Accessing in ActionHandlers the SEAM Way
Are you sure you have associated a task with the conversation? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970486#3970486 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970486 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Obfuscate
Hi, I am currently trying to obfuscate my project using KlassMaster and deploy it to JBoss. However, my project contain some jsp file and obfuscation only work with .class file. Therefore, I took the compiled .class file of the jsp, obfuscate it and put it back to jboss-4.0.2/server/all/work/jboss.web/localhost. I am wondering if there is any configuration that I can set so that JBoss will not compile the jsp and just use the .class file that I pasted inside localhost? Thanks in advance for your help! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970485#3970485 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970485 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: MDB queue deleted and recreated
Why delete the queue at runtime? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970484#3970484 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970484 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: ClassCastException when casting to SpyConnectionFactory
Duplicate .jar files deployed? And why do you need to cast it, cast it to javax.jms.ConnectionFactory . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970483#3970483 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970483 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Cannot get JBossIDE deploying...
Hi, I'm quite unexperienced with JBoss, so please don't hit me too hard if I write something stupid :) My problem is I want to get the JbossIDE with the current Eclipse to run. In order to do this I installed the Beta 2.0.0.Beta1 with the eclipse-update-mechanism. The installation worked fine and there were no errors reported. I downloaded and installed JBoss 4.0.4, too. Then I started to go through the tutorial (http://docs.jboss.com/jbosside/tutorial/build/en/html/index.html). Everything worked fine, but then I reached deployment... | If I select my project and say "run on server" I get the message "No launchable artifact could be found in the selection". | | If I select the generated ear, and select "run on server" the server starts, but the ear isn't deployed: | 00:55:50,515 INFO [Server] Starting JBoss (MX MicroKernel)... | 00:55:50,515 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000) | 00:55:50,515 INFO [Server] Home Dir: D:\jboss-4.0.4.GA | 00:55:50,515 INFO [Server] Home URL: file:/D:/jboss-4.0.4.GA/ | 00:55:50,515 INFO [Server] Patch URL: null | 00:55:50,515 INFO [Server] Server Name: default | 00:55:50,515 INFO [Server] Server Home Dir: D:\jboss-4.0.4.GA\server\default | 00:55:50,515 INFO [Server] Server Home URL: file:/D:/jboss-4.0.4.GA/server/default/ | 00:55:50,515 INFO [Server] Server Log Dir: D:\jboss-4.0.4.GA\server\default\log | 00:55:50,515 INFO [Server] Server Temp Dir: D:\jboss-4.0.4.GA\server\default\tmp | 00:55:50,515 INFO [Server] Root Deployment Filename: jboss-service.xml | 00:55:50,906 INFO [ServerInfo] Java version: 1.5.0_07,Sun Microsystems Inc. | 00:55:50,906 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_07-b03,Sun Microsystems Inc. | 00:55:50,906 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 | 00:55:51,468 INFO [Server] Core system initialized | 00:55:52,437 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml | 00:55:55,203 INFO [WebService] Using RMI server codebase: http://localhost:8083/ | 00:55:56,906 INFO [MailService] Mail Service bound to java:/Mail | 00:55:57,125 INFO [NamingService] JNDI bootstrap JNP=localhost/127.0.0.1:1099, RMI=localhost/127.0.0.1:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory | 00:55:57,156 INFO [SubscriptionManager] Bound event dispatcher to java:/EventDispatcher | 00:55:57,656 INFO [Embedded] Catalina naming disabled | 00:55:57,703 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set. | 00:55:57,703 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set. | 00:55:57,968 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080 | 00:55:57,984 INFO [Catalina] Initialization processed in 281 ms | 00:55:57,984 INFO [StandardService] Starting service jboss.web | 00:55:57,984 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.17 | 00:55:58,015 INFO [StandardHost] XML validation disabled | 00:55:58,031 INFO [Catalina] Server startup in 47 ms | 00:55:58,250 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/ | 00:55:58,812 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined | 00:55:59,234 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/ | 00:55:59,375 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp48971jbossws-exp.war/ | 00:55:59,546 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/ | 00:55:59,734 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/ | 00:56:00,421 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar | 00:56:00,484 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar | 00:56:00,531 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar | 00:56:00,562 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar | 00:56:00,625 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar | 00:56:00,656 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar | 00:56:01,609 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' | 00:56:01,812 INFO [A] Bound to JNDI name: queue/A | 00:56:01,812 INFO [B] Bound to JN
[jboss-user] [Messaging, JMS & JBossMQ] - Re: How to limit JMS-MDB instance numbers in JBoss4.0.4?
There's a instance pool and an invoker pool setting. Check the singleton config and mimic that. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970481#3970481 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970481 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: How to find out how many MDB instances created in pool?
Use CTRL-F to search. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970480#3970480 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970480 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Possible to change MDB msg selector at runtime?
It's not supported. However, you can deploy all MDBs with all selectors at once, and then manually stop/start them using JMX. I think there's an option for this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970479#3970479 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970479 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Congrats on Portal 2.4
Hello Still working hard on testing an debugging of JBoss Forums 1.0. I hope, I will manage to cope with all issues till 1st of October approx. Regards - Ryszard Kozmik JBoss Forums Dev JBoss Labs Team View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970478#3970478 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970478 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Netbeans + JBoss -- How about Seam
Also make sure you push for facelets support. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970477#3970477 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970477 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Don't deploy a process definition when restarting
Right, the auto-deployment stuff is really meant for development only. The Seam docs could be clearer on this point. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970476#3970476 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970476 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Don't deploy a process definition when restarting
We don't really have a mechanism to detect if the process definition has changed. In a production environment, I think you'll want to skip Seams convenience mechanism and deploy process definitions to the jbpm database manually using the jbpm tools. We don't really have any of the examples set up with production settings. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970475#3970475 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970475 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EJB 3.0 RC8 Preview - FD Released
"[EMAIL PROTECTED]" wrote : See release notes here. | | http://jira.jboss.com/jira/secure/ReleaseNote.jspa?version=12310827&styleName=Text&projectId=10021&Create=Create | | @EJB has been moved from javax.annotation to javax.ejb, InvocationCOntext.getBean() renamed to getTarget(). | | Ok, it's all fine and dandy that you moved @EJB from javax.annotation to javax.ejb, but what the heck is up with now distributing that change as JBoss AS 4.0.4? The web install of 4.0.4 now has that change in it. http://jboss.sourceforge.net/jnlp/jems-installer-1.2.0.BETA2.jnlp JBoss now breaks code that was previously worked fine under that 4.0.4 distribution. I have now had to force every developer in my office to upgrade their JBoss installation just so that when someone new comes along and installs JBoss using that installer, things won't work. In addition, another open source project (http://subetha.tigris.org/) I'm on that has a binary distribution that is supposed to work with '4.0.4' won't now. Bill, next time, please take half a second to think of what sorts of consequences it might have to make a binary incompatible release without incrementing the version number! jon View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970473#3970473 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970473 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Deploy times
Deploy your application as an exploded ear, then you can easily add new XML files as needed. See http://wiki.jboss.org/wiki/Wiki.jsp?page=DeployTipsAndBuildSampleScripts View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970470#3970470 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970470 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - webservice
Hello, where can I find doku on writing a webservice whith ejb3. In the tuorial there ar only 3 sourcefiles. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970468#3970468 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970468 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: javax.naming.NameNotFoundException: ws1 not bound
Thanks, that´s the solution. the ear file had a different name. After renaming everything works fine! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970467#3970467 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970467 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Defining new CMS portlet instance
I'm trying to define a new CMS portlet instance for some custom page content but I can't seem to make a valid reference in my portlet-instances.xml to a portlet in a different webapp (e.g. core). No matter what I provide as a portlet-ref, JBP keeps trying to append my webapp's context name ("arcdrm") to the front of the portlet name, and obviously failing. I've tried "CMSPortlet", "portal.CMSPortlet", and "local.portal.CMSPortlet", all fail with something like anonymous wrote : Failed to create instance WelcomePortletInstance of portlet arcdrm.local.portal.CMSPortlet because portlet arcdrm.local.portal.CMSPortlet is not available How are the values of parsed? Is is simply impossible to refer to portlets outside the immediate portlets.xml context, or is there some naming convention I haven't stumbled upon? It's clearly supported in the portal proper, as I can set this instance up administratively, but I need to be able to do it declaratively through the xml deployment. appreciate insight, p View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970465#3970465 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970465 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Deploy times
Hello, New to jboss. Have a quick question. I have an ear file containing a war with a ton of XML files in it. On a daily basis a few xml's are added and a new ear is create then moved to the /deploy directory where it is undeployed/redeployed. Is there a way to tell jboss to simply just deploy the changes to help cut down on deploy time. I have an environment of which this process currently takes about 30 minutes from undeploy to redeploy ( painful ). Hopefully that makes sense. Thanks in advance for your imput. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970464#3970464 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970464 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: response.createRenderUrl() always returns
I think either you misunderstand what it is I need, or else I misunderstand the complexity of this task. All I want is to construct a URL that points to the existing web page, from within a portlet, which is already mapped by JBoss Portal to execute the portlets, etc. I do not need any custom URL mappings to create special behavior when that URL is accessed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970463#3970463 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970463 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Default action for JSF page?
When I hit return on a page, it re-renders that page rather than executing the action on a particular button (or any button for that matter). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970462#3970462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970462 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Default action for JSF page?
isn't that just a form submit? If the html form contains a submit button then this behaviour should be default. So the action behind the submit button is fired. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970461#3970461 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970461 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Closing Consumer Causes Hang
That's what I figured. So now I have the following questions: 1) The destination is empty so it's only the message that prompted the close() that is being processed. Why would close() block waiting for that final message to process, why not just close down. 2) This used to work under JBoss Messaging and every other JMS server I've ever worked with. 3) If this is the way it's going to be going forward, how would I accomplish this same behavior? Am I going to have to create a separate thread that watches the state of my consumers and checks some state property to see if the "close" message has been received. That adds a lot of code to what once was a fairly simple thing. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970460#3970460 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970460 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: response.createRenderUrl() always returns
to manage your own mapping between url and page/window, and manage the parameter your way, you should write your own url mapping service. You can look at the CMSPortlet object that works with it's own mapping for url like ...portal/content/myFile.html and rely on the CMS repository to get the file. see the doc, about the CMS and the prefix of the url for files in the cms repository. there is an explaination about this... and that is a good start. then look at services like : portal:urlFactory=CMSObject and "portal:commandFactory*" or portal:commandFactory=CMSObject (these are defined in a jboss-service.xml file, in meta-inf folder) and classes such as CMSObjectURLFactory and CMSObjectCommandFactory portal 2.4 has been enhanced for managing this : for what I have just seen, you should be able to manage several prefixes, with several window target. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970459#3970459 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970459 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] CPU/memory utilization
Hi, I am very new to JBoss users mailing list and this is my first email to the list. I would really appreciate if anybody can guide me in the right direction. I am looking for a way to programmtically find out the CPU/memory usage of web applications running under the container. I looked for the solutions to my problem but unfortunately I didn't find anything yet. Any help is kindly appreciated. Thanks, Shimol. ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - API changes without version # changes
I just installed JBoss 4.0.4 from the latest JEMS isntaller and discovered that javax.annotation.EJB is now javax.ejb.EJB, unlike previous "versions" of 4.0.4. I see the release notes for EJB3RC8, yeah, but why is the EJB3 version changing without a JBossAS version change? How many different versions of 4.0.4 are there? Sorry about the gripe, but this is kinda hard to explain to users. Jeff View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970458#3970458 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970458 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Closing Consumer Causes Hang
You are calling .close inside MessageListener... And when you call .close, it will be waiting the Messages being processed. But as you are inside a messageListener, you are in a dead lock. MessageListener still processing while close is waiting messages being finished. at org.jboss.jms.client.remoting.MessageCallbackHandler.waitForOnMessageToComplete(MessageCallbackH | andler.java:357) | at org.jboss.jms.client.remoting.MessageCallbackHandler.close(MessageCallbackHandler.java:312) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970456#3970456 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970456 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - ObjectDeletedException: deleted entity passed to persist:
I am getting this error when trying to remove an entity, that I just previously loaded(as in the line before). Find find = new Find(inUserGrpFacility); getExecMgr().executeEntityManaged(find); System.out.println("usergroup exists="+ (find.getResult() != null)); getExecMgr().executeEntityManagedTx(new Remove(inUserGrpFacility)); The output of the print statement is: usergroup exists=true Basically my find and remove calls are just custom command pattern wrappers on the entity manager find and remove methods. The UserGroupFacility class and its embedded key class are included below. Assuming that the find works, I am thinking that there is a bug because the remove is throwing the exception in the title of my message. I did a trace and there are no SQL delete statements being executed. Are there any known issues with removing entities with composite keys? /** * UserGrpFacility generated by hbm2java */ @Entity @Table(name="USER_GRP_FACILITY" ,schema="SUPPORT" ,catalog="C_TOWER" , uniqueConstraints = { } ) public class UserGrpFacility implements java.io.Serializable { // Fields private UserGrpFacilityId id; private Facility facility; // Constructors /** default constructor */ public UserGrpFacility() { } /** full constructor */ public UserGrpFacility(UserGrpFacilityId id, Facility facility) { this.id = id; this.facility = facility; } // Property accessors @EmbeddedId @AttributeOverrides( { @AttributeOverride(name="userGrpGuid", [EMAIL PROTECTED](name="USER_GRP_GUID", unique=false, nullable=false, insertable=true, updatable=true) ), @AttributeOverride(name="facilityId", [EMAIL PROTECTED](name="FACILITY_ID", unique=false, nullable=false, insertable=true, updatable=true, precision=18, scale=0) ) } ) public UserGrpFacilityId getId() { return this.id; } public void setId(UserGrpFacilityId id) { this.id = id; } @ManyToOne( fetch=FetchType.EAGER) @JoinColumn(name="FACILITY_ID", unique=false, nullable=false, insertable=false, updatable=false) public Facility getFacility() { return this.facility; } public void setFacility(Facility facility) { this.facility = facility; } /** * UserGrpFacilityId generated by hbm2java */ @Embeddable public class UserGrpFacilityId implements java.io.Serializable { // Fields private byte[] userGrpGuid; private long facilityId; // Constructors /** default constructor */ public UserGrpFacilityId() { } /** full constructor */ public UserGrpFacilityId(byte[] userGrpGuid, long facilityId) { this.userGrpGuid = userGrpGuid; this.facilityId = facilityId; } // Property accessors @Column(name="USER_GRP_GUID", unique=false, nullable=false, insertable=true, updatable=true) public byte[] getUserGrpGuid() { return this.userGrpGuid; } public void setUserGrpGuid(byte[] userGrpGuid) { this.userGrpGuid = userGrpGuid; } @Column(name="FACILITY_ID", unique=false, nullable=false, insertable=true, updatable=true, precision=18, scale=0) public long getFacilityId() { return this.facilityId; } public void setFacilityId(long facilityId) { this.facilityId = facilityId; } public boolean equals(Object other) { if ( (this == other ) ) return true; if ( (other == null ) ) return false; if ( !(other instanceof UserGrpFacilityId) ) return false; UserGrpFacilityId castOther = ( UserGrpFacilityId ) other; return ( (this.getUserGrpGuid()==castOther.getUserGrpGuid()) || ( this.getUserGrpGuid()!=null && castOther.getUserGrpGuid()!=null && Arrays.equals(this.getUserGrpGuid(), castOther.getUserGrpGuid()) ) ) && (this.getFacilityId()==castOther.getFacilityId()); } public int hashCode() { int result = 17; result = 37 * result + ( getUserGrpGuid() == null ? 0 : Arrays.hashCode(this.getUserGrpGuid()) ); result = 37 * result + (int) this.getFacilityId(); return result; } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970457#3970457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970457 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - WS Security - wsu:Timestamp/@wsu:Id incorrectly implemented
When calling the HelloService from the 'simple sign' example of jbossws-samples-1.0.3.GA\wssecurity, a WSSecurityException is thrown indicating the Timestamp element is missing an Id. This error only occurs when the webservice client is generated by JDeveloper since it does not generate a wsu:id. When creating a client using jboss' wsse client configuration, the wsu:id does get generated in the soap message and the call succeeds without any problems. According to http://www.oasis-open.org/committees/download.php/16790/wss-v1.1-spec-os-SOAPMessageSecurity.pdf this id should be optional: anonymous wrote : /wsu:Timestamp/@wsu:Id | 1863 This optional attribute specifies an XML Schema ID that can be used to reference this | 1864 element (the timestamp). This is used, for example, to reference the timestamp in a XML | 1865 Signature. | However looking at the source for org.jboss.ws.wsse.element.Timestamp, id is being handled as required. | if (id == null || id.length() == 0) | throw new WSSecurityException("Invalid message, Timestamp is missing an id"); | So my question is: Is this a bug in JBossws' implementation of the WS Security spec or am I looking at the wrong spec/version? Thanks, Mario | ERROR [org.jboss.ws.wsse.WSSecurityDispatcher] Internal error occured handling inbound message: | org.jboss.ws.wsse.WSSecurityException: Invalid message, Timestamp is missing an id | at org.jboss.ws.wsse.element.Timestamp.(Timestamp.java:66) | at org.jboss.ws.wsse.element.SecurityHeader.(SecurityHeader.java:85) | at org.jboss.ws.wsse.SecurityDecoder.decode(SecurityDecoder.java:182) | at org.jboss.ws.wsse.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:143) | at org.jboss.ws.wsse.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:68) | at org.jboss.ws.wsse.WSSecurityHandlerInbound.handleRequest(WSSecurityHandlerInbound.java:42) | at org.jboss.ws.handler.HandlerWrapper.handleRequest(HandlerWrapper.java:121) | at org.jboss.ws.handler.HandlerChainBaseImpl.handleRequest(HandlerChainBaseImpl.java:245) | at org.jboss.ws.handler.ServerHandlerChain.handleRequest(ServerHandlerChain.java:53) | at org.jboss.ws.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:224) | at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:97) | at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209) | at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355) | at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | 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: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.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) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970455#3970455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970455 ___ jboss-user mailing list jboss-u
[jboss-user] [JBoss Messaging] - Re: Closing Consumer Causes Hang
Sure, here ya go... My objects are the jms.test package stuff. | Full thread dump Java HotSpot(TM) Client VM (1.5.0_07-b03 mixed mode, sharing): | | "Thread-4" prio=6 tid=0x0301dc30 nid=0x148 in Object.wait() [0x034ef000..0x034efa68] | at java.lang.Object.wait(Native Method) | - waiting on <0x22b99a38> (a org.jboss.messaging.util.Future) | at java.lang.Object.wait(Unknown Source) | at org.jboss.messaging.util.Future.getResult(Future.java:51) | - locked <0x22b99a38> (a org.jboss.messaging.util.Future) | at org.jboss.jms.client.remoting.MessageCallbackHandler.waitForOnMessageToComplete(MessageCallbackHandler.java:357) | at org.jboss.jms.client.remoting.MessageCallbackHandler.close(MessageCallbackHandler.java:312) | at org.jboss.jms.client.container.ConsumerAspect.handleClosing(ConsumerAspect.java:116) | at org.jboss.aop.advice.org.jboss.jms.client.container.ConsumerAspect24.invoke(ConsumerAspect24.java) | at org.jboss.jms.client.delegate.ClientConsumerDelegate$closing_4945873952494833124.invokeNext(ClientConsumerDelegate$closing_4945873952494833124.java) | at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:134) | at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:117) | at org.jboss.jms.client.delegate.ClientConsumerDelegate$closing_4945873952494833124.invokeNext(ClientConsumerDelegate$closing_4945873952494833124.java) | at org.jboss.jms.client.container.ExceptionInterceptor.invoke(ExceptionInterceptor.java:69) | at org.jboss.jms.client.delegate.ClientConsumerDelegate$closing_4945873952494833124.invokeNext(ClientConsumerDelegate$closing_4945873952494833124.java) | at org.jboss.jms.client.container.ClientLogInterceptor.invoke(ClientLogInterceptor.java:107) | at org.jboss.jms.client.delegate.ClientConsumerDelegate$closing_4945873952494833124.invokeNext(ClientConsumerDelegate$closing_4945873952494833124.java) | at org.jboss.jms.client.delegate.ClientConsumerDelegate.closing(ClientConsumerDelegate.java) | at org.jboss.jms.client.JBossMessageConsumer.close(JBossMessageConsumer.java:96) | at messaging.DestinationHandler.disconnect(DestinationHandler.java:233) | at jms.test.TestConsumer.closeConnection(TestConsumer.java:58) | at jms.test.TestConsumer.onMessage(TestConsumer.java:85) | at org.jboss.jms.client.remoting.MessageCallbackHandler.callOnMessage(MessageCallbackHandler.java:87) | at org.jboss.jms.client.remoting.MessageCallbackHandler$ListenerRunner.run(MessageCallbackHandler.java:712) | at EDU.oswego.cs.dl.util.concurrent.QueuedExecutor$RunLoop.run(QueuedExecutor.java:89) | at java.lang.Thread.run(Unknown Source) | | "SocketServerInvokerThread-10.1.3.102-0" prio=6 tid=0x00aabe48 nid=0xc78 runnable [0x034af000..0x034afae8] | at java.net.SocketInputStream.socketRead0(Native Method) | at java.net.SocketInputStream.read(Unknown Source) | at java.io.BufferedInputStream.fill(Unknown Source) | at java.io.BufferedInputStream.read(Unknown Source) | - locked <0x22bf3d68> (a java.io.BufferedInputStream) | at java.io.FilterInputStream.read(Unknown Source) | at org.jboss.serial.io.JBossObjectInputStream.read(JBossObjectInputStream.java:193) | at org.jboss.remoting.transport.socket.ServerThread.readVersion(ServerThread.java:497) | at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:414) | at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:534) | at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:257) | | "DestroyJavaVM" prio=6 tid=0x00035038 nid=0xbdc waiting on condition [0x..0x0007fae8] | | "Thread-3" prio=6 tid=0x0301cb28 nid=0x194 waiting on condition [0x0345f000..0x0345fb68] | at java.lang.Thread.sleep(Native Method) | at jms.test.PingThread.run(PingThread.java:33) | | "GC Daemon" daemon prio=2 tid=0x03014538 nid=0xc94 in Object.wait() [0x033df000..0x033dfbe8] | at java.lang.Object.wait(Native Method) | - waiting on <0x230ca078> (a sun.misc.GC$LatencyLock) | at sun.misc.GC$Daemon.run(Unknown Source) | - locked <0x230ca078> (a sun.misc.GC$LatencyLock) | | "RMI RenewClean-[10.1.3.102:1098]" daemon prio=6 tid=0x03001e18 nid=0xe48 in Object.wait() [0x0339f000..0x0339fce8] | at java.lang.Object.wait(Native Method) | - waiting on <0x2323caa8> (a java.lang.ref.ReferenceQueue$Lock) | at java.lang.ref.ReferenceQueue.remove(Unknown Source) | - locked <0x2323caa8> (a java.lang.ref.ReferenceQueue$Lock) | at sun.rmi.transport.DGCClient$EndpointEntry$RenewCleanThread.run(Unknown Source) | at java.lang.Thread.run(Unknown Source) | | "Thread-2" prio=6 tid=0x02dd0bf8 nid=0xff8 waiting on condition [0x0335f000..0x0335fd68]
[jboss-user] [JBossWS] - Whoops...
I should have mentioned that I'm running JBoss 4.0.4 with JBossWS 1.0.2. Regards Doug View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970450#3970450 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970450 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - javaType cannot be null?
I have a document style web service with a problem. I'm obviously doing something wrong but I can't figure out what is wrong. Whenever the service is invoked I get a org.jboss.ws.WSException stating "javaType cannot be null". Why does this happen? The service implements this interface: package decs2.pi; | | public interface ProcessInitiator extends java.rmi.Remote | { | public javax.xml.soap.SOAPElement invoke(javax.xml.soap.SOAPElement msg) throws java.rmi.RemoteException; | } The wsdl description of the service is: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And the jaxrpc-mapping.xml is: | | decs2 | http://decs2/jaws/types | | | | javax.xml.soap.SOAPElement | typeNS:subtractProcessOpType | complexType | | | | javax.xml.soap.SOAPElement | typeNS:subtractProcessOpResponseType | complexType | | | | decs2.ProcessInitiatorService | decs2:ProcessInitiatorService | | ProcessInitiatorPort | ProcessInitiatorPort | | | | | decs2.pi.ProcessInitiator | decs2:ProcessInitiator | decs2:ProcessInitiatorBinding | | invoke | subtractProcessOp | | | 0 | javax.xml.soap.SOAPElement | | decs2:INPUT | parameters | IN | | | | javax.xml.soap.SOAPElement | decs2:OUTPUT | result | | | | Any ideas? Regards Doug View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970449#3970449 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970449 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Closing Consumer Causes Hang
Can you place a stack trace from a thread dump? (kill -3 if you are on linux or Ctrl-break if Windows) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970448#3970448 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970448 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - response.createRenderUrl() always returns
My environment: JBoss Portal 2.2.1 SP3, downloaded JBoss AS 4.0.4 Oracle 10g Windows XP SP2 jdk 1.5.0_07 I am attempting to construct a URL within a portlet for output that returns to the same portal page, but with an additional parameter added. For some reason, within my portlet's doView(request, response) method, whenever I call response.createRenderUrl(), I always get a URL like the following: anonymous wrote : /portal/index.html?ctrl:cmd=render&ctrl:window=marad.default.Feedback where the relative path portion of the url is not what I expect. The actual URL for the page request that generates this behavior is: anonymous wrote : http://localhost:8080/portal/portal/marad/ as I have not yet configured my portal app to be the default portal app. So I am expecting the url to look similar, so that the URL generated would look something like the following: anonymous wrote : /portal/portal/marad/default?param1=value1¶m2=value2&... What is the proper way to construct a URL that returns to the same portal page, albeit with some attached parameters? Is it possible to do this without proprietary casting of the request and response to JBossRenderRequest and JBossRenderReponse? Even the following code inside my portlet: JBossRenderRequest jbossRequest = (JBossRenderRequest)request; | JBossRenderResponse jbossResponse = (JBossRenderResponse)response; | PortalNodeURL pnUrl = jbossResponse.createRenderURL(jbossRequest.getPortalNode()); produced null for pnUrl. help! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970447#3970447 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970447 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Pre-requisties before you installing JBoss Portal
yes, a database is needed, but there is one provided with the portal (hsqldb) and it is used by default. should first look (and post) at the error stack trace when you launch jboss. there should be no error. may be also try with 2.4 GA version. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970446#3970446 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970446 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: JUnit testing EJBs: NoInitialContextException
Cactus provides an excellent in-container test facility: http://jakarta.apache.org/cactus/ I am using with JBoss 4.X to test session and by extension entity beans. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970445#3970445 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970445 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Error when accessing a JSF portlet via WSRP
I'm having the same problem, I cannot access a JSF portlet remotely using WSRP. Did anyone now something about it? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970444#3970444 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970444 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam deployment error while working with costom lib's
Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener java.lang.NoClassDefFoundError: no/fast/ds/search/SearchEngineException I am using the third party jar for a specific task, i am using this jar api is one of the component (JAVA_BEAN). i put the jar in WEB-INF/lib directory then deployed in to jboss seam server 4.0.4. i got this deployment error. please advise me what went wrong. Does the JAVA_BEAN component Scope matters. it tryed with EVENT and SESSION. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970443#3970443 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970443 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Datasource Configuration] - Timestamp--date--oracle
DataBase Oracle9i JBoss 3.2.5 I have an entity with the next declaration: | /** | * @ejb.persistence colum-name="fechaexp" | * @ejb.interface-method | */ | public abstract java.sql.Timestamp getFechaexp(); | /** | * @ejb.interface-method | */ | public abstract void setFechaexp(java.sql.Timestamp newFechaexp); | and in database the fiel fechaExp is Date. When I try to recovery the entity: 1) if the field in database is null or was fill with date-time, I have no problem. 2) but if the field was only fill with date, I get the next exception: | javax.ejb.EJBException: Internal error getting results for field fechaexp; nested exception is: java.lang.ArrayIndexOutOfBoundsException: -1 | java.lang.ArrayIndexOutOfBoundsException: -1 | at oracle.jdbc.driver.DateTimeCommonAccessor.computeJulianDay(DateTimeCommonAccessor.java:341) | at oracle.jdbc.driver.DateTimeCommonAccessor.getMillis(DateTimeCommonAccessor.java:386) | at oracle.jdbc.driver.DateTimeCommonAccessor.getDate(DateTimeCommonAccessor.java:83) | Tables in database is not only accessed by my application, other application don't made in Java uses the tables too. I have tried various configurations 1) change the field declaration to java.sql.Date. No work 2) add to xdoclet declaration | /** | * @ejb.persistence jdbc-type="DATE" sql-type="TIMESTAMP" colum-name="fechaexp" | * @ejb.interface-method | */ | or | /** | * @ejb.persistence jdbc-type="DATE" sql-type="DATE" colum-name="fechaexp" | * @ejb.interface-method | */ | and I get the same exception. Any help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970221#3970221 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970221 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - myDomain.com -> myDomain.com/portal
Hi all, I have apache 2.0 installed and I have access to web-console and jmx-console (thanks to help here). I even have access to myDomain.com/portal. However, what I really would like is to have myDomain.com/ automaticly point to myDomain.com/portal with out the /portal showing up in the url. Could someone please point me to how to do this? Thanks in advance, Andrew View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969924#3969924 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969924 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Help!!! Simple problem
Hi ! EJB injection is not supported in the web component, because the underlying Tomcat 5.5 does not support it. See here: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=89070 You have to do a JNDI lookup to get the bean. It is even better to use a EJB ENC reference. Hope this helps Wolfgang Btw: try to sum up your problem in the subject of your posts. Geeks don't like posts which contain "help" in the subject and will never even read them :-(. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969744#3969744 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969744 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: New management alarm console by misge
I saw the link. I was confused by your use of the RAR archive format for "src". I thought it was a resource adapter archive. My mistake. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970185#3970185 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970185 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Installing jboss-4.0.4.GA-Patch1-installer.jar
Hello, I followed the http://trailblazer.demo.jboss.com/EJB3Trail/background/install/index.html to install JBoss. I downloaded the jboss-4.0.4.GA-Patch1-installer.jar and ran it, got the following folders: | Folders: | -com | -images | -img | -langpacks | -META-INF | -net | -org | -packs | -res | -templates | Files: | -customData | -GUIPrefs | -info | -langpacks.info | -packs.info | -panelsOrder | -vars | I didn't see any server being installed. is something wrong? is the TrailBlazer docs wrong? can you help me install JBoss so that I can deploy the EJB3? thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970092#3970092 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970092 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Congrats on Portal 2.4
Congrats on getting the 2.4 version of the Portal out the door. I'm running a fresh version of the 2.4 portal at SOAModeling.org. Thanks for doing the forum updates as well, it will be nice when additional forum functionality is released with the forum 1.0 version. Does anyone know the ETA for the forum 1.0 release? Danny View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970389#3970389 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970389 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - End a long running process from a page flow
I have a pageflow which calls a SSB (derivative of todo example) and when I call the done method I get IllegalStateException ... cannot call Start from a long running transaction ... call @Begin(join=true) etc... So I changed the done method (Instead of @BeginTask(taskIdParameter="taskId") @EndTask) to use the following code: String l = (String) org.jboss.seam.Component.getRequestParameters().get("taskId"); long tid= Long.parseLong(l); JbpmContext jbpm = JbpmConfiguration.getInstance().createJbpmContext(); try { TaskInstance ti = jbpm.loadTaskInstance(tid); ti.end(); } finally { jbpm.close(); System.out.println("Maybe the process ended!!!"); } The first time I call the method I get the following exception. The process ends but get the nasty stack trace on the page instead of following the page flow. If I hit back and create new long running processes and stop them I dont get any errors. If I use RequestParameter("taskId") then any other method I call on the SSB throws an exception cannot set taskId on SSB! What am I doing wrong. See stack trace below: 21:57:40,735 INFO [STDOUT] Async-process ended!!! 21:57:40,755 INFO [STDOUT] The process definately ended!!! 21:57:40,775 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#12] at org.hibernate.persister.entity.AbstractEntityPersister.check(AbstractEntityPersister.java:1680) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2272) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2180) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2450) at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:91) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:29 7) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:993) at org.jboss.seam.core.ManagedJbpmContext.beforeCompletion(ManagedJbpmContext.java:90) at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1491) at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1110) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:324) at org.jboss.tm.TxManager.commit(TxManager.java:240) at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140) at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.commitOrRollback(SeamExtendedManagedPersistenc ePhaseListener.java:87) at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.afterPageActions(SeamExtendedManagedPersistenc ePhaseListener.java:61) at org.jboss.seam.jsf.AbstractSeamPhaseListener.callPageActions(AbstractSeamPhaseListener.java:137) at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:98) at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:50) at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.beforePhase(SeamExtendedManagedPersistencePhas eListener.java:38) at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catal
[jboss-user] [JBoss Messaging] - Closing Consumer Causes Hang
So I've run into an odd problem the last couple of days. I've been through my code and I've re-installed JBoss and Messaging several times to try and eliminate it. I can't find a solid cause. Here's what's happening: We have a non-durable consumer that is listening to a topic. When it receives a messages with a specific int property, it knows it's supposed to stop listening and shut itself down. It establishes it's connections at follows: | InitialContext initialContext=new InitialContext(); | | ConnectionFactory connectionFactory = (ConnectionFactory) initialContext.lookup("XAConnectionFactory"); | | Connection connection=connectionFactory.createConnection(); | | Session session=connection.createSession(false, Session.CLIENT_ACKNOWLEDGE); | | Destination destination=(Destination) initialContext.lookup("OurTopic"); | | Consumer consumer=consumer=session.createConsumer(destination, "selectorProp = 1"); | | consumer.setMessageListener(this); | | connection.start(); | Then for the onMessage method we have | public void onMessage(Message message) | { |try |{ | | message.acknowledge(); | | Integer closeProp=message.getIntProperty("closeProp"); | | if (closeProp == -1) | { | try { connection.stop(); } catch (Exception e) {} | try { consumer.close(); } catch (Exception e) {} | try { session.close(); } catch (Exception e) {} | try { connection.close(); } catch (Exception e) {} | } |} |catch (JMSException e) |{ | e.printStackTrace(System.err); |} | } | Now, here's the odd thing: It just hangs on the consumer.close() (in bold) call. This used to work. I'm not sure what's changed, I've gone back over it 50 times now and can't find anyhting I changed that would have broken it. I've found that if I close everything from outside the onMessage method from another thread (like a timer thread or something that just watches the state of the consumer) it works fine. It's just when I close it all down in onMessage. Is this frowned upon or should this work? Any thoughts on what might be causing it to lock? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970442#3970442 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970442 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem: Custom validate methods in EJBs crash
Unfortunately this is not a solution. The EPC is considered "hosed" after a transaction rollback. The only way (per-spec) is to annotate actionMethod() or the bean as @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED), which is ugly. CVS version of Seam has @Begin(flushMode=FlushMode.MANUAL) as a much cleaner alternative. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970441#3970441 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970441 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Clustering Quartz-ra.rar
I am running a clustered environment and need cron like functionality for some periodic maintenance we perform. The examples in the EJB3 tutorial for using the quartz-ra.rar work picture perfect. That is until I actually cluster the machine up. Then instead of one job executing for the cluster it executes on each instance. Not a problem I discover the default Quartz implementation uses the Memory Job Store. I add a ?D parameter so that it uses my own quartz.properties file which switches to a JDBC based Job Store. Next problem, the data sources don?t load before the .rar files so I have to move the file to the deploy.last directory. Now my resource name is deploy.last#quartz-ra ? inconvenient, but still workable. Now the real problem. The JobStoreCMT file checks to make sure that if the JobDetail is marked as ?volatile? the corresponding Trigger is also marked as ?volatile.? But, in the QuartzResourceAdapter.java the JobDetail is created with a volatility set to ?true? during construction, but the CronTrigger doesn?t supply that option at construction and the default setting is to have the volatility set to ?false,? which is never changed. A mismatch and a problem for me. So why isn?t there a volatile entry in the QuartzActivationSpec so we can set this in the deployment, or at least have both Trigger and JobDetail match? I am assuming this is a bug, but JIRA said to start here first. So here I am. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970440#3970440 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970440 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem: Custom validate methods in EJBs crash
"[EMAIL PROTECTED]" wrote : There is one problem with performing validation during the action phase: if you are using an extended persistence context, you would prefer to do validation before applying values onto the model object. But by the time we get to the action method, the values have already been applied. It is then difficult to roll back the change to prevent them being written to the database. | | However, there is a solution: if you use an extended persistence context with manual flushing, you are fine. There is better support for this in CVS. Here's another way, which works already now without having to wait for Seam 1.1 or using the CVS version;). | | import javax.ejb.SessionContext; | | @Resource | SessionContext ejbCtx; | | public String actionMethod() { | ... | if (validationFailed) | ejbCtx.setRollbackOnly(); | ... | } By the way: To prevent the Extended Persistence Context from auto-flushing where you maybe do not expect it, annotate your class with @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) so that no storing will be performed. And to make your save-method work again, annotate it with @TransactionAttribute(TransactionAttributeType.REQUIRED) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970438#3970438 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970438 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - JBOSS-IDE ignoring run.conf when starting JBoss?
I'm trying to enable JBoss under Eclipse to support JMX management when invoked frominside eclipse. If I alter ~/jboss/bin/run.conf and add the JMX management stuff to JAVA_OPTS, and run Jboss from the command line, I can run JConsole and connect to it without any problems. If I start up eclipse, and Server->Start JBoss, I cannot connect to it with JConsole. It appears that Jboss-IDE is launching JBoss in it's own fashion, rather than reading the run.conf file. If that's the case how do I pass parameter so the JVM that when JBoss-IDE starts JBoss, it sets appropriate values? In this case, the line I want to add is: JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote" Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970437#3970437 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970437 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Default action for JSF page?
In the context of a Seam application, is there a way to setup a default action to execute when a user hits the "enter" key in an input field? I know this is more of a JSF question, but I'm not always clear on the boundary between JSF and Seam... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970436#3970436 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970436 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Long Running Conversation Timeouts are never occuring
By the way, if anyone would find it useful, I can provide an alternative policy that enforces a maximum number of conversations per user, instead of the simple timeout. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970434#3970434 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970434 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Long Running Conversation Timeouts are never occuring
Right, exactly :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970433#3970433 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970433 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Long Running Conversation Timeouts are never occuring
This way "idle" conversations are timed out, yet the conversation that you're currently in will last as long as your session lasts or until you finish the conversation. You don't want the foreground work you're currently doing to be ripped away from you. But you do want a way for the resources tied up by background conversations to be cleaned up. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970432#3970432 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970432 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: New release plan?
ok - I clearly demonstrated that I am not much of a bbs master. This should have been a bump to http://www.jboss.org/index.html?module=bb&op=viewtopic&t=89758 topic about a RC9 release of the embedded server. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970431#3970431 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970431 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - New release plan?
bump - is there a new plan? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970430#3970430 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970430 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss.NET] - Status of DIME support in JBoss 4.0.4
I wanted to inquire as to the state of DIME attachment support in JBoss. Can someone tell me whether and to what degree DIME is supported under JBoss 4.0.4? Thanks for your help. Brad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970429#3970429 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970429 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Getting JNDI context fails
Of course :-) But hurry, I am planning to immigrate to New Zealand in the next year :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970428#3970428 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970428 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Long Running Conversation Timeouts are never occuring
Right. And this is very desirable behavior :-) Not at all unintuitive. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970427#3970427 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970427 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: compiling aop with jbosside
thanks for your reply...but the real question is an other: why egnalazioni.util.model.DomandaCancellazione and segnalazioni.util.model.DomandaIscrizione aren't matched with the definition in jboss-aop.xml? and how I do to match them? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970425#3970425 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970425 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - org.jboss.portal.security.impl.jacc.JBossSecurityProviderImp
Hi, I got the following error while starting the portal server. If someone knows how to resolve it, please throw some light java.lang.NoSuchMethodException: org.jboss.portal.security.impl.jacc.JBossSecurityProviderImpl.setObjectName(javax.management.ObjectName) at java.lang.Class.getMethod(Class.java:1581) at org.jboss.mx.server.AbstractMBeanInvoker.inject(AbstractMBeanInvoker.java:948) at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:662) at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697) at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422) at java.security.AccessController.doPrivileged(Native Method) at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417) at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1350) at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:345) at org.jboss.system.ServiceCreator.install(ServiceCreator.java:181) at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171) at org.jboss.system.ServiceController.install(ServiceController.java:226) 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:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy4.install(Unknown Source) at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) 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:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy6.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263) at org.jboss.deployment
[jboss-user] [Performance Tuning] - Re: JBoss memory usage
>From >http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/MemoryMXBean.html: Memory The memory system of the Java virtual machine manages the following kinds of memory: 1. Heap The Java virtual machine has a heap that is the runtime data area from which memory for all class instances and arrays are allocated. It is created at the Java virtual machine start-up. Heap memory for objects is reclaimed by an automatic memory management system which is known as a garbage collector. The heap may be of a fixed size or may be expanded and shrunk. The memory for the heap does not need to be contiguous. 2. Non-Heap Memory The Java virtual machine manages memory other than the heap (referred as non-heap memory). The Java virtual machine has a method area that is shared among all threads. The method area belongs to non-heap memory. It stores per-class structures such as a runtime constant pool, field and method data, and the code for methods and constructors. It is created at the Java virtual machine start-up. The method area is logically part of the heap but a Java virtual machine implementation may choose not to either garbage collect or compact it. Similar to the heap, the method area may be of a fixed size or may be expanded and shrunk. The memory for the method area does not need to be contiguous. In addition to the method area, a Java virtual machine implementation may require memory for internal processing or optimization which also belongs to non-heap memory. For example, the JIT compiler requires memory for storing the native machine code translated from the Java virtual machine code for high performance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970423#3970423 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970423 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: JBoss memory usage
The maximum memory size of the VM process is not simply java heap (-Xmx) + perm generation (-XX:MaxPermSize). e.g. There is also the native code of the VM itself which needs to reside in memory, and more. (off the top of my head I don't remember everything else that's loaded) The following threads discuss the issue: http://forum.java.sun.com/thread.jspa?threadID=551003&messageID=2691640 http://forums.bea.com/bea/thread.jspa?threadID=600016553&tstart=0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970422#3970422 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970422 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Long Running Conversation Timeouts are never occuring
Also, just to clarify, what is the "foreground conversation"? Is it the conversation associated with the current request? So the only conversations that would ever get cleaned up are those not part of the current request. Scenario: I have two browser instances open and I leave my desk for 20 minutes. When I come back to my desk, I click on a link in one of the browser windows. If I clicked a link in Browser A, it will only expire the conversation for Browser B. However, If I clicked a link in Browser B, it will expire the conversation for Browser A. This seems unintuitive. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970421#3970421 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970421 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Rollback from ActionHandler
How would I rollback a transaction that was performed in a different node to rollback depending on some logic in a later graph object? The @Rollback does not work. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970420#3970420 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970420 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Getting JNDI context fails
Now you know why I asked for the operating system, I recalled this issue with Linux but didn't want to point you to the /etc/hosts file if you were running Windows only. Glad you are up and running. If I am ever in Stuttgard, you owe me a beer, you sly fox. ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970419#3970419 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970419 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Getting JNDI context fails
Hi, I found that Suse somewhy adds a line to /etc/hosts setting the server ip as 127.0.0.2. I can't think what for this entry should be good, but after I replaced it with the real IP adress everything started workling :-) Thank you for you help! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970418#3970418 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970418 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Getting JNDI context fails
Run telnet as follows from your Windows PC: telnet 192.168.0.2 1099 The last line of the response should contain the text UnicastRef2 followed by an IP address. Which IP address shows? Here is my last line when I telnet to my Fedora Core 5 system that is running JBoss: UnicastRef2192.59.193.104 What are the contents of your /etc/hosts file on the server? Do you have a line that has the IP address of the server? In my /etc/hosts files I have the following line: 192.59.193.104 usmv-johnsop1l If I recall correctly (it has been many months since I worked around a similar issue), without this line the telnet response has 127.0.01 as the IP address and this tends to confuse clients. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970416#3970416 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970416 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: saving own objects with Hibernate in jbpm
Heyi Jerome, Can you explain a bit more as to where you are using the custom objects? Is it custom module instance or custom objects stored in context instance .. or is it custom nodes ?? have a look at this : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970268#3970268 cheers! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970414#3970414 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970414 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Long Running Conversation Timeouts are never occuring
In order to get the correct behavior, I will assume that we need to make our conversationTimeout to be equal to the session timeout. This is good to know since it is the single biggest issue reported by the users of our Seam based application. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970412#3970412 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970412 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBOSS Transactions between JMS Queues
When sending to your audit queue, do so on a connection using the non XA connection factory at /ConnectionFactory. If you don't use the XA connection factory (java:/jmsXA) then the work won't be enlisted in your global transaction. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970411#3970411 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970411 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - JbpmContext: when to create new vs. get current
The general question: when should you create a new JbpmContext vs. get the current context? The reason that this question hasn't been completely clear to me is because of a couple reasons: 1) It appears that any saving of data to the database (such as process instance state) doesn't commit until the JbpmContext is closed. This then seemed to suggest that a JbpmContext needed to be created and closed each time data needed to be saved to the database. 2) While I have seen documentation saying that JbpmConfiguration was re-entrant, I have seen no such indication that JbpmContext is. I wasn't sure that if I was working with a JbpmContext in a servlet (or several servlets) whether it would be safe for all of them to be operating simultaneously on the current jbpmContext, rather than all using their own jbpmContext instance for thread safety. What is the recommended approach to using jbpmContexts? Can the "current" jbpmContext be used across multiple servlets and multiple threads without there being a problem, or does each one need to create its own jbpmContext, and how does this affect the committing of data to the database? Thanks for your help, Brad View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970410#3970410 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970410 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] Classpath not finding properties files via getResourceAsStream in an EJB jar?
Hi folks, this one is driving me nutso. I'm using getResourceAsStream to load a properties file in a deployed EJB. I've added the properties file into the root of the jar (see below), and tried to load it. The root of the jar -should- be right on the classpath, therefore shoudl be loadable. Other Java folks have said this is proper, not sure why JBoss is not doing it. JBoss 4.0.4-GA... The class looks like: final static String settingsFile = "jena-config.properties"; public static Properties properties ; public static void loadSettings() { [...] Object o=new Object(); properties.load(o.getClass().getResourceAsStream(settingsFile)); [...] The jar file has: [EMAIL PROTECTED]:~/workspace/JENA/dist$ jar tvf JENA-ejb.jar [...] 248 Fri Sep 08 10:44:22 EDT 2006 com/areteinc/ejb3/XMLFetcher.class 1433 Fri Sep 08 11:01:18 EDT 2006 com/areteinc/ejb3/XMLFetcherBean.class 55 Thu Sep 07 12:01:42 EDT 2006 jena-config.properties [...] Constantly throws NullPointerException. No matter how I configure the settingsFile (preceeding '/', etc). Help? What am I missing here? -dbs -- Dave Belfer-Shevett [EMAIL PROTECTED] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Long Running Conversation Timeouts are never occuring
The "foreground conversation" never times out. You need >1 conversation to observe timeouts. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970409#3970409 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970409 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Jboss netbeans and web service
Hello everyone, I am trying to make simple web service with netbeans. I did everything like documented here http://www.netbeans.org/kb/50/quickstart-webservice.html. Everything works fine if i am using rpcliteral, but if i set to documentliteral, during deployment process i get the following error | 18:22:18,156 INFO [TomcatDeployer] deploy, ctxPath=/HiWS, warUrl=.../tmp/deploy/tmp53015HiWS-exp.war/ | 18:22:18,312 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-4.0.4.GA/server/default/data/wsdl/HiWS.war/HiWS.wsdl | 18:22:18,359 WARN [ServiceMetaData] Cannot load class for type: {urn:HiWS/types}sayHiResponse,org.me.hi.HiWSSEI_sayHi_ResponseStruct | 18:22:18,359 WARN [ServiceMetaData] Cannot load class for type: {urn:HiWS/types}sayHi,org.me.hi.HiWSSEI_sayHi_RequestStruct | 18:22:18,359 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.0.4.GA/server/default/deploy/HiWS.war | org.jboss.ws.WSException: Cannot load java type: org.me.hi.HiWSSEI_sayHi_RequestStruct | at org.jboss.ws.metadata.ParameterMetaData.getJavaType(ParameterMetaData.java:141) | at org.jboss.ws.metadata.ParameterMetaData.eagerInitialize(ParameterMetaData.java:291) | at org.jboss.ws.metadata.OperationMetaData.eagerInitialize(OperationMetaData.java:474) | at org.jboss.ws.metadata.EndpointMetaData.eagerInitialize(EndpointMetaData.java:353) | at org.jboss.ws.metadata.ServiceMetaData.eagerInitialize(ServiceMetaData.java:397) | at org.jboss.ws.metadata.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:143) | at org.jboss.ws.server.ServiceEndpoint.start(ServiceEndpoint.java:131) | at org.jboss.ws.server.ServiceEndpointManager$DefaultServiceLifecycle.startServiceEndpoint(ServiceEndpointManager.java:513) | at org.jboss.ws.server.ServiceEndpointManager$ServiceLifecycleChain.startServiceEndpoint(ServiceEndpointManager.java:458) | at org.jboss.ws.server.ServiceEndpointManager.startServiceEndpoint(ServiceEndpointManager.java:427) | 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:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287) | at $Proxy32.startServiceEndpoint(Unknown Source) | at org.jboss.ws.server.WebServiceDeployer.startServiceEndpoints(WebServiceDeployer.java:203) | at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:126) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy44.start(Unknown Source) | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) | at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) |
[jboss-user] [EJB 3.0] - Generating hbm from Annotated Entity Beans
I hope this is an acceptable place to post this question versus another forum. My Goal: Generate hibernate mapping xml files from my Annotated Entity beans so I can use them in a non web application. Here is what I've tried. I think I just need to be steered on the right track. | | | | | | | | | | | | Whether I include the or not the mappings aren't generated in the hibernate.cfg.xml. Ant output: | | generatehbm: | [hibernatetool] Executing Hibernate Tool with a EJB3 Configuration | [hibernatetool] 1. task: cfg2cfgxml (Generates hibernate.cfg.xml) | [hibernatetool] Sep 8, 2006 11:15:31 AM org.hibernate.ejb.Version | [hibernatetool] INFO: Hibernate EntityManager 3.2.0.CR1 | [hibernatetool] Sep 8, 2006 11:15:31 AM org.hibernate.cfg.annotations.Version | [hibernatetool] INFO: Hibernate Annotations 3.2.0.CR1 | [hibernatetool] Sep 8, 2006 11:15:31 AM org.hibernate.cfg.Environment | [hibernatetool] INFO: Hibernate 3.2 cr2 | [hibernatetool] Sep 8, 2006 11:15:31 AM org.hibernate.cfg.Environment | [hibernatetool] INFO: hibernate.properties not found | [hibernatetool] Sep 8, 2006 11:15:31 AM org.hibernate.cfg.Environment buildBytecodeProvider | [hibernatetool] INFO: Bytecode provider name : cglib | [hibernatetool] Sep 8, 2006 11:15:31 AM org.hibernate.cfg.Environment | [hibernatetool] INFO: using JDK 1.4 java.sql.Timestamp handling | [hibernatetool] Sep 8, 2006 11:15:32 AM org.hibernate.tool.hbm2x.Version | [hibernatetool] INFO: Hibernate Tools 3.1.0.beta5 | [hibernatetool] 2. task: hbm2hbmxml (Generates a set of hbm.xml files) | | BUILD SUCCESSFUL | Total time: 3 seconds | | generated hibernate.cfg.xml file: | | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";> | | | false | | | But there are no actual mappings generated? Guidance would be greatly appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970407#3970407 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970407 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: ManyToMany problem
Check your entity objects to determine where the @Id annotation is located. The examples that I have seen thus far have failed to highlight one sneaky piece of syntax for entities participating in relationships...the @Id element must modify the getXxx method for the ID field instead of modifying the entity field itself. If this is the issue, try relocating that @Id element and see if things get better. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970406#3970406 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970406 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: log4j error in Spring MVC portlet
Don't bundle libraries that are already provided by JBoss in your portlet war file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970403#3970403 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970403 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Entity EJBs, @Service & Thread
Hi, I'm trying to get a service running on my JBoss server that would awake every now and then, get a list of entity beans and throw a message to a JMS queue for each of those items, and sleep for a while. If I strip the bit loading Entity beans off, everything works, I send a test message to the queue, etc. But if I do the same loading the beans, I get the exception below. I guess I'm doing something wrong but cannot figure out what. | 17:02:32,650 ERROR [STDERR] Exception in thread "Thread-16" | 17:02:32,650 ERROR [STDERR] java.lang.NullPointerException | 17:02:32,650 ERROR [STDERR] at org.jboss.ejb3.entity.ManagedEntityManagerFactory.getNonTxEntityManager(ManagedEntityManagerFactory.java:58) | 17:02:32,650 ERROR [STDERR] at org.jboss.ejb3.entity.ManagedEntityManagerFactory.getTransactionScopedEntityManager(ManagedEntityManagerFactory.java:163) | 17:02:32,650 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManager.createNamedQuery(TransactionScopedEntityManager.java:132) | 17:02:32,650 ERROR [STDERR] at tal.noc.beans.NOCManagerService.loadNOCs(NOCManagerService.java:79) | 17:02:32,650 ERROR [STDERR] at tal.noc.beans.NOCManagerService.run(NOCManagerService.java:86) | 17:02:32,650 ERROR [STDERR] at java.lang.Thread.run(Unknown Source) | This is my service: | @Service(objectName="jboss:custom=NOCManagerService") | public class NOCManagerService implements Runnable, NOCManagementService { | | | | public void run() { | this.running=true; | while(this.running) { | System.out.println("Awaken"); | Iterator nocs=this.loadNOCs().iterator(); | while(nocs.hasNext()) { | NOC noc = (NOC)nocs.next(); | try { | MessageSender ms=new MessageSender(); | ms.sendMessage("NOC: " + noc.toString(), "queue/msgQueue"); | } catch (Exception e) { | e.printStackTrace(System.out); | } | } | try { | MessageSender ms=new MessageSender(); | ms.sendMessage("NOC", "queue/msgQueue"); | } catch (Exception e) { | e.printStackTrace(System.out); | } | try { | synchronized (this) { | wait(60*1000); | } | } catch (Exception e) { | e.printStackTrace(System.out); | } | } | } | The service implements the following interface, just in case it makes any difference | @Management | public interface NOCManagementService { | Thanks a lot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970402#3970402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970402 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: JBoss memory usage
Did, you ever get a response to this issue. I am having a similar problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970400#3970400 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970400 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Getting JNDI context fails
The IP address of the server is 192.168.0.2. OS is Suse Linux 10.0. The IP adress of my test client is 192.168.0.9. OS is Win XP SP2 . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970398#3970398 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970398 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem: Custom validate methods in EJBs crash
1. For simple validation (just value) we can still use JSF validation. 2. For complex validation I use drools (jBoss Rules). It nicely integrated with Seam Page Flow (see seam samples). You can express your validation in rule set. IMHO it looks like quite elegantly. You can define as complex rules as you want. And validation logic is separated. And most important, it works steadily. I have not experienced any problems yet. Denis. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970396#3970396 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970396 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Pre-requisties before you installing JBoss Portal
Hi, I am trying to install JBossPortal 2.2 using the bundle (JBoss AS 4.0.4 GA). One thing which is not clear for me, should i have some database before i run the run.bat file which is present in the bin directory. When i execute the run.bat file, it throws bumch of exception and says JBoss server started in 31 sec: 49 ms. When i say http://localhost:8080/portal, it throw HTTP 500 error but on the console i get NULLPointerException [ERROR]org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/portal].[PortalServletWithPathMapping][ Servelt.service() for servlet PortalServeltWithMapping threw Exception java NullPointerException. Can someone throw some light if they have seen this error before. Is the root cause of the problem no database connectivit ?. I wish there was some pre-requitises in the document. Please help. TIA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970395#3970395 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970395 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Regarding SpyObjectMessage in JMS
anonymous wrote : Can anyboy help me how to covert the SpyObjectMessage to a TextMessage or how to display the text in a SpyObjectMessage JMS Message can be of different types: 1) BytesMessage 2) MapMessage 3) ObjectMessage 4) StreamMessage 5) TextMessage In short, the Message that you receive need not contain text. It can be of any of the above mentioned types. So you cannot get text out of a Message which is of type MapMessage or some other Message. Why are you trying to print the message contents, if its not a TextMessage? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970394#3970394 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970394 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - JBOSS Transactions between JMS Queues
I am confused on how to accomplish what I want to do. I have a JMS Queue with an MDB attached to it. I have Container Managed JTA transaction with my MDB onMessage. What I want to be able to do is to put something on a second queue regardless of whether my onMessage in the first queue succeeds. For example, i want to audit a failure and my audit logging is implemented via a JMS queue. So, a failure occurs, I want to rollback my current transacation but before I do that, I want to audit that by adding something to an additional queue. any ideas. Right now I have all queues CMT with JTA -alexander View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970392#3970392 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970392 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @TransactionAttribute being ignored by Transaction Manag
Got my answer, Thanks! http://forum.java.sun.com/thread.jspa?threadID=766769 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970391#3970391 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970391 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Getting JNDI context fails
Still waiting for the answer to my three questions... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970390#3970390 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970390 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - implementing wsse:UserNameToken
I'm trying to implement a webservice based on an ejb3 bean and jsr-181 annotations. One of my requirements is to use wsse UserNameToken based authentication in the header. I can see that its possible to use the Handler chains to set up signing and encryption but I can't see how to set up the basic UserNameToken. Can anyone give me some ideas on what I'm missing here and how to go about this? Thanks Dave View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970385#3970385 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970385 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user