[jboss-user] [EJB 3.0] - Re: Issues with EJB 3.0/ JBoss 4.0.5
Since your client is 4.0.x talking to JBoss 3.2.x, the parameter to be passed is -Dorg.jboss.j2ee.LegacySerialization As per this JIRA http://jira.jboss.com/jira/browse/JBAS-2718 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084311#4084311 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084311 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Unable to load Provider: Failed to load javax.xml.ws.spi
Hi, you are missing: jboss-common-client.jar for JBoss AS 4.x jboss-common-core.jar for JBoss AS 5.x Cheers, Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084310#4084310 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084310 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Wrong column type in object with Hibernate 3.2.4sp1
Hi All, I am currently porting my JBoss Seam application from seam 1.1.0 to seam 2.0 beta 1 which includes Hibernate 3.2.4sp1. I have been using Hibernate 3.2.3.GA previously with seam 1.1.0. I get the following error when deploying my application. | | --- MBeans waiting for other MBeans --- | ObjectName: persistence.units:ear=AEWAProject.ear,jar=AEWAProject.jar,unitName=AEWAProject | State: FAILED | Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: ActionIndex, expected: integer | I Depend On: | jboss.jca:service=DataSourceBinding,name=AEWAProjectDatasource | | This object has been reverse engineered using Hibernate Tools and has been working with Hibernate 3.2.3.GA. Any idea where the problem is ? Regards, Jankee Yogesh. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084309#4084309 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084309 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: required variables
You are right. For long term, I wont use my quick fix, but for now, until the bug is fixed, I will use it. Thanks Ronald and Olivier for all your input and help. Much appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084308#4084308 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084308 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: jboss aop
Hi, Thanks. I have implemented successfully. but the implementation is not working after accesing the target application. it means if i apply point cut expression at runtime after accessing target application, the point cut expression is not applied when i access application subsequently. Regards Marimuthu View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084307#4084307 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084307 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Issues with EJB 3.0/ JBoss 4.0.5
Hello, I tried using the -Dorg.jboss.j2ee.Serialization option, but I am still getting the following exception. Any idea what could be the reason? 11:54:50,538 ERROR [STDERR] Caused by: java.io.InvalidClassException: org.jboss.util.id.GUID; local class incompatible: stream classdesc serialVersionUID = 6926421946503004889, local class serialVersionUID = 3289509836244263718 Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084305#4084305 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084305 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - discarded message from different group
hi all, i use jboss 4.2.1.GA i have multiple jboss app. servers on network, all of them has different partition name. i use partition name parameter on startup script: | screen ./run.sh -c all -b 0.0.0.0 -Djboss.partition.name=Partition_151 | | screen ./run.sh -c all -b 0.0.0.0 -Djboss.partition.name=Partition_153 | | screen ./run.sh -c all -b 0.0.0.0 -Djboss.partition.name=Partition_135 | but every time i get these messages :( | 10:27:51,915 WARN [UDP] discarded message from different group "Tomcat-Cluster" (our group is "Tomcat-Partition_151"). Sender was 192.168.9.135:64274 | 10:28:08,775 WARN [UDP] discarded message from different group "Tomcat-Cluster" (our group is "Tomcat-Partition_151"). Sender was 192.168.9.135:64274 | 10:28:09,765 WARN [UDP] discarded message from different group "Tomcat-Cluster" (our group is "Tomcat-Partition_151"). Sender was 192.168.9.135:64274 | any idea will be appreciated ___ Regards Paata. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084304#4084304 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084304 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: inputText / empty string versus NULL
Thanks Matt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084303#4084303 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084303 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - page flow question
hi... ok, to apply page flow rule on all pages i can write http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084301#4084301 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084301 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Multiple Application deployment, multiple instance questions
I have a few questions: Which is better running multiple apps on a single jboss instance or multiple jboss instances? How do I configure multiple applications to connect to different databases using one mysql data connector? Can I do that? How can you run multiple portal.sars in a single jboss instance? How do I setup multiple applications in one jboss instance? What files do I need to re-configure? I have noticed that running multiple instances of jboss is well covered in this forum but running multiple applications on one jboss server is not. Any help would be great. Documentation is a little sparse as well. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084299#4084299 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084299 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Inserting into primary and secondry table using bean
Hi thanks for ur reply it worked atlast View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084293#4084293 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084293 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Cleaner RESTful urls? Any suggestions?
anonymous wrote : solidly documented facts... it may be hard to find exact references OK... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084292#4084292 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084292 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: IIS and mod_jk 1.2.25 problem
I solved it! Because IIS is v6 (in w2k3), so it needs to add the dll as a Web Service Extension View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084290#4084290 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084290 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: JBoss SSL
You have to put SSLEnabled="true" Cheers, Deep Blue View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084289#4084289 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084289 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Security of JNDI
Hi, Is there any way to secure JNDI? I have been doing research on google, but couldn't find a way to secure JNDI. Basically, anyone can connect to JNDI via port 1099 and access to DataSource, JMS Queue, etc... I am porting the application from Weblogic to JBoss. Weblogic can use "java.naming.security.principal" and "java.naming.security.credentials" to do a simple authentication to access JNDI, but I couldn't find a way to do in JBoss to make the authentication mandatory. Btw, there are clients from outside need to connect to JNDI to access EJB, so I cannot block port 1099 also. Any suggestion on this matter? Thanks! Cheers, Deep Blue View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084288#4084288 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084288 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Cleaner RESTful urls? Any suggestions?
"[EMAIL PROTECTED]" wrote : So, these are rumors and hearsay posted on random weblogs. Is there any link, like, to Googles own description of its bot? These are not rumors and hearsay, these are solidly documented facts. They are so well-known that they are common knowledge, and it may be hard to find exact references on them, but http://www.news.com/8301-10784_3-9748779-7.html?part=rss&tag=feed&subj=NewsBlog The #1 most important keywords are in the domain name. #2 are in the rest of the URL. This is proven and easily observable by people in the field. In fact this forum would have a lot better placement if it had saner URLs for threads. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084287#4084287 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084287 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: [ServiceController] Problem starting service portal:serv
delete your server/default/data folder and restart portal Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084286#4084286 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084286 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - [ServiceController] Problem starting service portal:service=
hi... i have these problem that i can't resolve :( i configured jboss as to change hypersonic and use postgress; i follow these documents to do that: 1) http://www.gogis.nl/en/public_documentation/jboss/index.html 2) Jboss a developers notebooks (o'reilly) - chapter 9 later, i want to use jboss portal, so i deploy jboss-portal.sar and configure portal-postgresql-ds.xml file to same bd in postgress, but when i start i receive the following message in log: 22:54:18,057 INFO [JCRCMS] JBossCache Version=1.4.1 22:54:18,058 INFO [JCRCMS] Starting JCR CMS 22:54:18,197 INFO [RepositoryImpl] Starting repository... 22:54:18,198 WARN [RepositoryImpl] Existing lock file at /ens/devel01/ingsw06/servidores/jboss/server/default/data/portal/cms/conf/.lock detected. Repository was not shut down properly. 22:54:18,215 WARN [ServiceController] Problem starting service portal:service=CMS javax.jcr.RepositoryException: Unable to lock file at /ens/devel01/ingsw06/servidores/jboss/server/default/data/portal/cms/conf/.lock: No locks available: No locks available at org.apache.jackrabbit.core.RepositoryImpl.acquireRepositoryLock(RepositoryImpl.java:332) at org.apache.jackrabbit.core.RepositoryImpl.(RepositoryImpl.java:207) at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:497) and in end i have the following message: --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: portal:service=CMS State: FAILED Reason: javax.jcr.RepositoryException: Unable to lock file at /ens/devel01/ingsw06/servidores/jboss/server/default/data/portal/cms/conf/.lock: No locks available: No locks available I Depend On: jboss.jca:service=DataSourceBinding,name=PortalDS portal:service=JAASLoginModule portal:service=Hibernate,type=CMS portal:service=Module,type=IdentityServiceController portal:service=InterceptorStackFactory,type=Cms Depends On Me: portal:service=Management,type=CMS,name=Default portal:commandFactory=CMSObject cms.pm.cache:service=TreeCache i try to go to portal but i'm refused... it's very important to me resolve this problem, i use in a student proyect and i not have much time :( thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084284#4084284 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084284 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Testing JBossCache cluster nodes:
Sure; just check out the source code and look in the testsuite. A very large portion of the unit tests start up a couple caches in the same process, bound to the same interface. Basically, you just programatically create a couple caches using the same config, and they'll cluster. The docs explain how to programatically create caches. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084282#4084282 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084282 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JobExecutor, maxLockTime, and the LockMonitorThread: Wha
anonymous wrote : Question: If the execute method on the Node completes w/o error and did its job and moved on to the next node, why does it make sense to rollback the process instance? Isn't this the same as transactiontimeouts work in j2ee? Roling back something that just took to long but finished without an error View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084281#4084281 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084281 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: required variables
You are right it should not work this way. I'll definately have a look at the 3.1 branche tomorrow (Friday ) (it's now 03:15AM CET) Many strange things here... :-( I would not recoomend doing it this way, at least not for the long term. This should be fixed (imo it is a bug) I'll notify the developers and after some investigation file a (number of) jira issue(s) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084280#4084280 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084280 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SFSB and Hibernate Validator -
"[EMAIL PROTECTED]" wrote : Seam needs to be able to look up a model.value to find the relevant validation annotation, @In doesn't do that. Sorry, I didn't understand yet. If I submit the form (call some method on SFSB), Seam could validate immediately after injecting the model View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084278#4084278 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084278 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: clearing values in text fields after navigating back
@End(beforeRedirect=true) should work if the first name and last name are scoped to the conversation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084277#4084277 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084277 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: conceptual question about concurrency
Thanks for answering! So, now I have two questions. 1. Is Seam's reference documentation incorrect when it says "The EJB container allows stateless components to be accessed concurrently, and throws an exception if multiple threads access a stateful session bean"? It's hard for me to see how stateless session beans can be both single-threaded and able "to be accessed concurrently." 2. Does Seam similarly ensure that application-scope pojos are not multi-threaded? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084276#4084276 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084276 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: jsessionid
That was my understanding. But that does seem to happen if you do a 302. Look at dull headers output. You can see the cookie being set and the Location having the jsessionid. Any idea why I'm getting both? Thanks | http://www-mysite.com:8081/client | | GET /client HTTP/1.1 | Host: www-mysite.com:8081 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 | Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | Accept-Language: en-us,en;q=0.5 | Accept-Encoding: gzip,deflate | Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 | Keep-Alive: 300 | Connection: keep-alive | | HTTP/1.x 302 Found | Location: http://www-mysite.com:8081/client/ | Content-Length: 0 | Server: Jetty(6.1H.5-beta) | -- | http://www-mysite.com:8081/client/ | | GET /client/ HTTP/1.1 | Host: www-mysite.com:8081 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 | Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | Accept-Language: en-us,en;q=0.5 | Accept-Encoding: gzip,deflate | Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 | Keep-Alive: 300 | Connection: keep-alive | | HTTP/1.x 302 Found | Location: http://www-mysite.com:8081/client/welcome.html;jsessionid=v4ak3v4narho | Content-Type: text/html; charset=iso-8859-1 | Expires: Thu, 01 Jan 1970 00:00:00 GMT | Set-Cookie: JSESSIONID=v4ak3v4narho;Path=/client | Content-Length: 0 | Server: Jetty(6.1H.5-beta) | -- | http://www-mysite.com:8081/client/welcome.html;jsessionid=v4ak3v4narho | | GET /client/welcome.html;jsessionid=v4ak3v4narho HTTP/1.1 | Host: www-mysite.com:8081 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 | Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 | Accept-Language: en-us,en;q=0.5 | Accept-Encoding: gzip,deflate | Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 | Keep-Alive: 300 | Connection: keep-alive | Cookie: JSESSIONID=v4ak3v4narho | | HTTP/1.x 200 OK | Content-Type: text/html; charset=iso-8859-1 | Expires: Thu, 01 Jan 1970 00:00:00 GMT | Set-Cookie: mysite=mysite | Content-Language: en-US | Content-Length: 1238 | Server: Jetty(6.1H.5-beta) | -- | http://www-mysite.com:8081/favicon.ico | | GET /favicon.ico HTTP/1.1 | Host: www-mysite.com:8081 | User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 | Accept: image/png,*/*;q=0.5 | Accept-Language: en-us,en;q=0.5 | Accept-Encoding: gzip,deflate | Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 | Keep-Alive: 300 | Connection: keep-alive | | HTTP/1.x 200 OK | Content-Type: image/x-icon | Content-Length: 1150 | Last-Modified: Thu, 13 Sep 2007 23:13:45 GMT | Server: Jetty(6.1H.5-beta) | -- | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084274#4084274 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084274 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: messages being picked up across nodes different clusters
Take a look on the JGropus Port/IP... I believe the partitionName is intended to the Multiplexor right? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084271#4084271 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084271 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Foreign keys with 0 and not NULL
We have a legacy application which is prepared to use NULL values for most datatypes (exception: date and timestamp). So a foreign key field of type integer is filled with a zero instead of null in the database. Using Entity Beans now with relations we get this: Caused by: javax.persistence.PersistenceException: javax.persistence.EntityNotFoundException: Unable to find biz.mbisoftware.fn.ejb.entity.MbiMsgss with id 0 | at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:527) | at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114) | at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:247) | at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:86) | at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177) | at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1382) | ... 8 more | Caused by: javax.persistence.EntityNotFoundException: Unable to find biz.mbisoftware.fn.ejb.entity.MbiMsgss with id 0 | at org.hibernate.ejb.Ejb3Configuration$Ejb3EntityNotFoundDelegate.handleEntityNotFound(Ejb3Configuration.java:107) | at org.hibernate.proxy.AbstractLazyInitializer.checkTargetState(AbstractLazyInitializer.java:79) | at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:72) | at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111) | at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:64) | at org.hibernate.impl.SessionImpl.firePersistOnFlush(SessionImpl.java:644) | at org.hibernate.impl.SessionImpl.persistOnFlush(SessionImpl.java:636) | at org.hibernate.engine.CascadingAction$9.cascade(CascadingAction.java:323) | at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268) | at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216) | at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169) | at org.hibernate.engine.Cascade.cascade(Cascade.java:130) | at org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:131) | at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:122) | at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65) | at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) | at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338) | at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515) | ... 13 more | Any hints how to deal with this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084273#4084273 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084273 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Testing JBossCache cluster nodes:
Is it possible to configure multiple nodes (in the same cluster) of JBossCache (JGroups) on a single machine and bound to the same networking interface? The motivation for wanting to do this is to be able to test multiple JBossCache nodes in the same cluster on a single machine. Is this possible? If not, any recommendations for testing state transfers? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084272#4084272 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084272 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - clearing values in text fields after navigating back
Jboss 4.0.5.GA Seam 1.2.1.GA I'm using the following code in pages.xml to navigate back to a screen after the user finishes a conversation (use case): | | | | | | | The fields for first name and last name rendered by tags are still populated with the input from the use case. Is there an easy way to have them cleared upon redirect? thx. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084266#4084266 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084266 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Key class conflict with OneToOne relation
Using JBoss-4.2.2.GA. Using a uni-directional OneToOne Relation between two entities with a composite PK. First class: @Entity | @IdClass(value=MbiMsgpa.PK.class) | @Table(name="mbi_msgpa") | public class MbiMsgpa implements java.io.Serializable | { | @Id | @Column(name="msghd_serial") | private java.lang.Integer msghdSerial; | | @Id | @Column(name="part_no") | private java.lang.Integer partNo; | | @Column(name="message_type") | private java.lang.String messageType; | | @Column(name="source") | private java.lang.String source; | | /** Field line. */ | @Column(name="line") | private java.lang.Integer line; | | @Column(name="time_created") | private java.util.Date timeCreated; | | @Column(name="bp_task_id") | private java.lang.Integer bpTaskId; | | @OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY) | @JoinColumns({ | @JoinColumn(name="msghd_serial",referencedColumnName="msghd_serial",insertable=false,updatable=false), | @JoinColumn(name="part_no",referencedColumnName="part_no",insertable=false,updatable=false) | }) | private MbiMsgpt mbiMsgpt; | | Second class is @Entity | @IdClass(value=MbiMsgpt.PK.class) | @Table(name="mbi_msgpt") | public class MbiMsgpt implements java.io.Serializable | { | @Id | @Column(name="msghd_serial") | private java.lang.Integer msghdSerial; | | @Id | @Column(name="part_no") | private java.lang.Integer partNo; | ... | Using this, I get exceptions like this: 2007-09-13 17:51:14,832 INFO [biz.mbisoftware.fn.ejb.session.core.MessageSink] Calling MessageSink.appendMessage(INFO, 4756, [1.2007-09-13 17:51:14.mbi_distol.ec.282.null[Verarbeitung beendet]]) | 2007-09-13 17:51:14,836 INFO [STDOUT] Hibernate: select mbimsghd0_.msghd_serial as msghd1_99_0_, mbimsghd0_.session_id as session2_99_0_, mbimsghd0_.process_id as process3_99_0_, mbimsghd0_.hostname as hostname99_0_, mbimsghd0_.time_created as time5_99_0_, mbimsghd0_.login_bez_created as login6_99_0_, mbimsghd0_.state as state99_0_, mbimsghd0_.bp_id as bp8_99_0_, mbimsghd0_.iso_sprach_id as iso9_99_0_, mbimsghd0_.iso_sprach_id_def as iso10_99_0_, mbimsghd0_.adress_nr as adress11_99_0_ from mbi_msghd mbimsghd0_ where mbimsghd0_.msghd_serial=? | 2007-09-13 17:51:14,859 INFO [STDOUT] Hibernate: select mbimsgpa0_.msghd_serial as msghd1_1_, mbimsgpa0_.part_no as part2_1_, mbimsgpa0_.msghd_serial as msghd1_101_0_, mbimsgpa0_.part_no as part2_101_0_, mbimsgpa0_.message_type as message3_101_0_, mbimsgpa0_.source as source101_0_, mbimsgpa0_.line as line101_0_, mbimsgpa0_.time_created as time6_101_0_, mbimsgpa0_.bp_task_id as bp7_101_0_ from mbi_msgpa mbimsgpa0_ where mbimsgpa0_.msghd_serial=? order by mbimsgpa0_.msghd_serial asc, mbimsgpa0_.part_no asc | 2007-09-13 17:51:14,887 WARN [org.hibernate.engine.loading.LoadContexts] fail-safe cleanup (collections) : [EMAIL PROTECTED]<[EMAIL PROTECTED]> | 2007-09-13 17:51:14,887 WARN [org.hibernate.engine.loading.CollectionLoadContext] On CollectionLoadContext#cleanup, localLoadingCollectionKeys contained [1] entries | 2007-09-13 17:51:14,896 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception | javax.ejb.EJBException: org.hibernate.TypeMismatchException: Provided id of the wrong type. Expected: class biz.mbisoftware.fn.ejb.entity.MbiMsgpt$PK, got class biz.mbisoftware.fn.ejb.entity.MbiMsgpa$PK | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:262) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvoca
[jboss-user] [JBoss Messaging] - messages being picked up across nodes different clusters
I have two different clusters setup. There are 4 nodes in the clusters (2 per cluster) that are spread across two machines. So on each machine there are two nodes each in a different cluster. Each of the node in each cluster has a unique ServerPeerID. Also looking at the PostOffice JMX Bean on nodes in each cluster has different ChannelPartitionName. Also each cluster uses a different port binding configuration. What can cause the messages sent on the same topic from one node in a cluster to be picked by nodes in other cluster. I am Using: JBoss 4.2.1-GA and JBoss messaging 1.3.0-GA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084263#4084263 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084263 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Cannot obtain java type mapping for {http://business/jaws}Li
Hello, I'm using Jboss 4.0.5G, JbossWS 1.0.3, SDK 1.5.0_9 and Windows XP_SP2. I have created theses classes using EJB3 annotation: package business; import java.rmi.Remote; import javax.jws.WebService; import javax.jws.soap.SOAPBinding; import javax.jws.soap.SOAPBinding.Style; @WebService @SOAPBinding(style = Style.RPC) public interface SelecionarMusicas extends Remote{ public java.util.List selecionarMusicas() ; } package business; import java.util.ArrayList; import java.util.List; import javax.ejb.Remote; import javax.ejb.Stateless; import javax.jws.WebService; import transfer.MusicaTO; import delegate.ManterMusicaDelegate; import exceptions.MusicaException; @Stateless @WebService(endpointInterface="business.SelecionarMusicas") @Remote(SelecionarMusicas.class) public class SelecionarMusicasWS { public java.util.List selecionarMusicas() throws MusicaException{ List musicas = new ArrayList(); ManterMusicaDelegate delegate; delegate = new ManterMusicaDelegate(); musicas = delegate.selecionarMusicas(); return musicas; } } package client; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.xml.namespace.QName; import javax.xml.rpc.ServiceException; import javax.xml.rpc.ServiceFactory; import javax.xml.rpc.Service; import transfer.MusicaTO; import business.SelecionarMusicas; public class WebserviceClient { private static final String nameSpace="http://business/jaws";; private static final String service="SelecionarMusicasService"; private static final String wsdl="http://localhost:8080/easd2007/SelecionarMusicasWS?wsdl";; public static void main(String[] args) { try { System.out.println("Starting Test Client"); URL url = new URL(wsdl); QName qname = new QName(nameSpace,service); System.out.println("Creating a service"); ServiceFactory factory = ServiceFactory.newInstance(); Service remote = factory.createService(url, qname); System.out.println("Obtaining reference to a proxy object"); SelecionarMusicas proxy = (SelecionarMusicas) remote.getPort(SelecionarMusicas.class); System.out.println("Accessed local proxy: " + proxy); System.out.println("Receiving data: "); List musicas = new ArrayList(); musicas = proxy.selecionarMusicas(); for (Iterator iter = musicas.iterator() ; iter.hasNext();){ System.out.print("Nome: "+ iter.next().getNome()); System.out.print("Tom: "+ iter.next().getNome()); System.out.print("Dominante Primário: "+ iter.next().getNome()); System.out.print("Dominante Secundário: "+ iter.next().getNome()); System.out.print("Diminuto Ascendente: "+ iter.next().getNome()); System.out.print("Diminuto Descendente: "+ iter.next().getNome()); System.out.print("Diminuto Alternativo: "+ iter.next().getNome()); System.out.print("Clichê Harmônico: "+ iter.next().getNome()); } } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ServiceException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } When I try to use a webservice client happens it: Exception in thread "main" org.jboss.ws.WSException: Cannot obtain java type mapping for: {http://business/jaws}List at org.jboss.ws.deployment.JSR109MetaDataBuilder.buildParameterMetaDataRpc(JSR109MetaDataBuilder.java:321) at org.jboss.ws.deployment.JSR109MetaDataBuilder.setupOperationsFromWSDL(JSR109MetaDataBuilder.java:196) at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaDataInternal(JSR109ClientMetaDataBuilder.java:208) at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:126) at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:82) at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96) at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFa
[jboss-user] [EJB 3.0] - Re: How to map this?
No, it's uni-directional. So in the part bean I have the key-fields marked with id and so on. No hint that part is used in a relation. @Entity | @IdClass(value=Part.PK.class) | @Table(name="part") | public class Part implements Serializable | { | @Id | @Column(name="msghd_serial") | private Integer msghdSerial; | | @Id | @Column(name="part_no") | private Integer partNo; | ... | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084259#4084259 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084259 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Foreign Key fields not set for child entity
Is this a restriction of the JBoss version or what? All examples I saw on the net an in the book I bought didn't do this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084257#4084257 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084257 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam TLD namespace not recognized in jsp
Sorry, silly mistake. I didn't realize jboss-seam-ui.jar was not in the project. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084255#4084255 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084255 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - NPE in ManagedEntityManagerFactory.getNonTxEntityManager
Hi, This bug http://jira.jboss.com/jira/browse/EJBTHREE-665 Has been open for a while. I checked the source: http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/trunk/ejb3/src/main/org/jboss/ejb3/entity/ManagedEntityManagerFactory.java?r1=61136&r2=61993 and it looks like William fixed this back in April. Any idea when we might see something released with the fix other than building from SVN? Thanks, Derek View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084252#4084252 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084252 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: FlushModeType not working in Seam 1.2.1 GA?
So use an SMPC (read the docs) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084245#4084245 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084245 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: s:selectItems (Resolved)
I think I found the problem: http://jira.jboss.com/jira/browse/JBSEAM-1528 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084243#4084243 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084243 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam and richfaces 3.1 incompatible?
Seam 2.0.0.BETA uses richfaces 3.0.1, Seam CVS uses 3.1.0. Upgrade Seam. Or don't use verify objects. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084242#4084242 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084242 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Cleaner RESTful urls? Any suggestions?
Christian has done a good job with the wiki getting the links into this format (e.g. http://in.relation.to View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084241#4084241 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084241 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - binding to local name space at startup
Hi, I want to bind an object to local namespace at startup, similar to how datasources are bound to local namespace by specifying them in *ds.xml files. I know that it is possible to bind to the global namespace using JNDIBindingServiceMgr (in jboss-service.xml). Is it possible to bind to a local name in jboss-service.xml using some full path? For example, I want to be able to lookup java:jdbc/XXX in local namespace, is there some jndi-name I can specify in jboss-service.xml to bind to this? If not, can I achieve this through using a startup class or some other means? Regards, Len View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084240#4084240 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084240 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SFSB and Hibernate Validator -
Seam needs to be able to look up a model.value to find the relevant validation annotation, @In doesn't do that. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084239#4084239 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084239 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - s:selectItems
I'm using s:selectItems in a rich:dataTable, but the h:selectOneMenu is the same for the all rows and I change one, it makes refresh in all. Why? | | #{messages['Profile']} | | | | | | | Ps.: I'm using Seam 2.0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084237#4084237 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084237 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: How do you override soap:address location from WSDL at r
i think its something like this: ((BindingProvider) service.getPort()).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084236#4084236 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084236 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Configuring Destinations in MDB's
thank you for the help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084235#4084235 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084235 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Apache HTTPD + mod_jk +ssl+Jboss
is there any way to configure a remote machine which is running jboss, as a SSL virtual host in apache httpd?? If yes then what all settings that i need to do ? or is there any documentation ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084230#4084230 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084230 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - JobExecutor, maxLockTime, and the LockMonitorThread: What's
Hi, I'm having a hard time finding any detailed documentation about the maxLockTime of the JobExecutor. So I resorted to looking at the code, but I'm still not sure I understand its intent and implementation. Background: We are using jBPM to implemented data processing flows. We use async nodes and have multiple JobExecutor threads running. Some of the async steps may take hours - (It's an automated process so Node.executeAction() chews on the data for a long time). This is being done with jBPM 3.2.1 and the jar that is attached to http://jira.jboss.com/jira/browse/JBPM-1042 During this we discovered that the if the node takes longer than maxLockTime (which in the defaults was set to 60 - 10 minutes). The executeAction() for the node did complete successfully, but jBPM still chose to rollback the transaction even though no exception was thrown and we properly took a transaction to the next node. Question: If the execute method on the Node completes w/o error and did its job and moved on to the next node, why does it make sense to rollback the process instance? Our workaround is to just set maxLockTime = MAXINT. See the code below: From JobExecutorThread.java protected void executeJob(Job job) { | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); | try { | JobSession jobSession = jbpmContext.getJobSession(); | job = jobSession.loadJob(job.getId()); | | try { | log.debug("executing job "+job); | if (job.execute(jbpmContext)) { | jobSession.deleteJob(job); | } | | } catch (Exception e) { | log.debug("exception while executing '"+job+"'", e); | StringWriter sw = new StringWriter(); | e.printStackTrace(new PrintWriter(sw)); | job.setException(sw.toString()); | job.setRetries(job.getRetries()-1); | } | | // if this job is locked too long | long totalLockTimeInMillis = System.currentTimeMillis() - job.getLockTime().getTime(); | if (totalLockTimeInMillis>maxLockTime) { | jbpmContext.setRollbackOnly(); | } | | } finally { | try { | jbpmContext.close(); | } catch (RuntimeException e) { | log.error("problem committing job execution transaction", e); | throw e; | } | } | } While reading the code to try to figure this out I noticed the following things that I didn't understand. Any insight to what I'm missing would be great. 1. JobExecutor.start() creates a new instance of LockMonitorThread. But I can't find where that thread is ever started. Doesn't seem to make sense to create the thread and never start it. Is the intent that the thread be running? anonymous wrote : public synchronized void start() { | if (! isStarted) { | log.debug("starting thread group '"+name+"'..."); | for (int i=0; iFrom LockMonitorThread: protected void unlockOverdueJobs() { | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); | try { | JobSession jobSession = jbpmContext.getJobSession(); | | Date treshold = new Date(System.currentTimeMillis()-maxLockTime-lockBufferTime); | List jobsWithOverdueLockTime = jobSession.findJobsWithOverdueLockTime(treshold); | Iterator iter = jobsWithOverdueLockTime.iterator(); | while (iter.hasNext()) { | Job job = (Job) iter.next(); | // unlock | log.debug("unlocking "+job+ " owned by thread "+job.getLockOwner()); | job.setLockOwner(null); | job.setLockTime(null); | jobSession.saveJob(job); | } | | } finally { | try { | jbpmContext.close(); | } catch (RuntimeException e) { | log.error("problem committing job execution transaction", e); | throw e; | } | } | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084231#4084231 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084231 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Configuring a different JSP name for login does not work
I am trying to change the web.xml file of the portal to point to a different login file name. I created a new jsp called testlogin.jsp, and changed the following entries in web.xml: Under the "Authenticated" security constraint I have: /* Under the section I have: /testlogin.jsp I placed the testlogin.jsp under the portal-server.war directory in the same location as login.jsp. If I rename testlogin.jsp to login.jsp and then change the tag back to /login.jsp, it works. If I try to configure the tag entry with /testlogin.jsp, I get sent to the default dashboard page of the portal. Both testlogin.jsp and login.jsp have identical access rites. Is this a bug? Does the name /testlogin.jsp have to be configured anywhere else for this to work? Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084226#4084226 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084226 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss Messaging / Spring JMS compatibility?
I guess that answers my question regarding using JmsXA to move connection caching responsibility off the consumer to the provider. thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084225#4084225 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084225 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: Using AOP with JBossWS
Good news :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084224#4084224 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084224 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Configuring Destinations in MDB's
anonymous wrote : a. Is it ok to create new QueueConnections every time ? Especially since i use the java:/JMSXA connection factory ? | Yep.. that's ok!t anonymous wrote : b. Is it ok to create Sessions and QueueSender every single invoke ? | With the JmsXA adapter you can create a single session for each connection Object, and JCA already caches the session as well, so that's ok. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084223#4084223 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084223 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Configuring Destinations in MDB's
JBoss Messaging 1.3/ JBoss AS (4.2.1) We have an incoming message Queue and a pool of MDB's listening. The MDB's process the data and have to post results onto another Queue. This is the code for the posting to the reply Queue: | @Resource(mappedName = "java:/JmsXA") | private static QueueConnectionFactory factory; | | @Resource(mappedName = "/queue/ResolvedUniversalResourceQueue") | private static Queue destinationReply; | | public void onMessage( Message msg) | { | // Process incoming msg and get it ready to be sent outward | // | // | qConnection = factory.createQueueConnection(); | QueueSession qSession = qConnection.createQueueSession( false, Session.DUPS_OK_ACKNOWLEDGE); | QueueSender qSender = qSession.createSender( destinationReply); | qSender.send( qSession.createObjectMessage( urimsg)); | qSender.close(); | } | a. Is it ok to create new QueueConnections every time ? Especially since i use the java:/JMSXA connection factory ? b. Is it ok to create Sessions and QueueSender every single invoke ? Is there any best practice for pooling/sharing Sessions and QueueSender ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084220#4084220 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084220 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: required variables
There may be another bug. When calling taskInstance.end(), it now throws an exception (great!), but unfortunately, that exception does not stop the ending of the task instance. So the task instance is indeed considered "ended" anyway, even though you have required variables that are missing. See the end method below, found in TaskInstance. The validation is only done when submitVariables() is called, but before that is called, a bunch of work has already taken place on the task instance. /** |* marks this task as done and specifies a transition |* leaving the task-node for the case that the completion of this |* task instances triggers a signal on the token. |* If this task leads to a signal on the token, the given transition |* name will be used in the signal. |* If this task completion does not trigger execution to move on, |* the transition is ignored. |*/ | public void end(Transition transition) { | if (this.end!=null){ | throw new IllegalStateException("task instance '"+id+"' is already ended"); | } | if (this.isSuspended) { | throw new JbpmException("task instance '"+id+"' is suspended"); | } | | // mark the end of this task instance | this.end = new Date(); | this.isOpen = false; | | // fire the task instance end event | if ( (task!=null) | && (token!=null) |) { | ExecutionContext executionContext = new ExecutionContext(token); | executionContext.setTask(task); | executionContext.setTaskInstance(this); | task.fireEvent(Event.EVENTTYPE_TASK_END, executionContext); | } | | // log this assignment | if (token!=null) { | token.addLog(new TaskEndLog(this)); | } | | // submit the variables | submitVariables(); | | // verify if the end of this task triggers continuation of execution | if (isSignalling) { | this.isSignalling = false; | | | | if ( this.isStartTaskInstance() // ending start tasks always leads to a signal ||| ( (task!=null) | && (token!=null) | && (task.getTaskNode()!=null) | && (task.getTaskNode().completionTriggersSignal(this)) | ) | ) { | | if (transition==null) { | log.debug("completion of task '"+task.getName()+"' results in taking the default transition"); | token.signal(); | } else { | log.debug("completion of task '"+task.getName()+"' results in taking transition '"+transition+"'"); | token.signal(transition); | } | } | } | } Am I missing something? Should it work this way? Surely the task instance should not "end" if the required variables are not set. I think I may need to do my own validation in my framework action class by calling startTaskInstance.getTask().getTaskController().getVariableAccesses(), then implementing my own (similair) validation function on that variable access list, and not even bother calling taskInstance.end() if my own validation fails. Would you recommend I do it this way? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084218#4084218 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084218 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SFSB and Hibernate Validator -
Actually I'd like to know why the code worked fine when I got rid of the '@In'. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084217#4084217 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084217 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss Messaging / Spring JMS compatibility?
Caching consumers is certainly not the JMS provider responsability. The same way it's not your database's responsability to cache connections. Using JmsXA will make you cache JMSConnections. If you don't want to do that, you will have to find another way to do it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084215#4084215 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084215 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: Form based auth is successful but gives HTTP 408 error
I am having the same problem but only when I disable cookies, it works fine when cookies are enabled!! Please help me too. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084216#4084216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084216 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: JBoss Messaging / Spring JMS compatibility?
Clebert, If Spring is configured so as not to cache consumers ... it creates new consumer for every receive poll. To avoid this from creating new connections on the Jboss server side should i be using : java:/JMSXA as the connectionFactory ? Even if i do not use transactional messages ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084212#4084212 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084212 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Cleaner RESTful urls? Any suggestions?
I need this feature too, because in my case the URL will point to a user home and must be as easy as possible to remember. It is also my opinion that slashes are more aesthetically pleasing than ampersands. Complete control of the URL can also make it easier to understand what it points to if formatted carefully. http://cool.com/usersegment/username looks much nicer and is easier to remember than http://cool.com/userPage.seam?s=usersegment&u=username Outgoing url rewriting seems hard to do with urlrewrite filter brcause the urls arent sent in one encode request.. so the url filter gets just parts of the url at different times. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084210#4084210 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084210 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: How do you override soap:address location from WSDL at r
...And I don't want 1,000 copies of the WSDL on my client, either - one for each service location... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084206#4084206 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084206 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: conceptual question about concurrency
anonymous wrote : But it also mentions that stateless beans can be accessed concurrently. So, what prevents the injected variables from being overwritten by injection from another concurrent thread? The EJB container ensures this. Session Beans are NOT multithreaded, neither stateless session beans (SLSBs) nor stateful session beans. If you have two threads referencing a stateless session bean (in your example the threads A and B), both threads operate on a different bean instance. Therefore it cannot happen that the interceptor for thread B overwrites the injections for thread A. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084202#4084202 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084202 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Dispatch + wssecurity
Hi, I'm having a bit of trouble figuring this out - I'm trying to create a simple standalone dispatch for communication with an already set up webservice. I got everything working as expected if I use no security system - the problem arises when trying to invoke a request message involving an WSSecurityHandlerClient, resulting in a: | javax.xml.ws.soap.SOAPFaultException: org.jboss.ws.core.CommonSOAPFaultException: This service requires , which is missing. | at org.jboss.ws.core.jaxws.client.DispatchSOAPBinding.getReturnObject(DispatchSOAPBinding.java:165) | at org.jboss.ws.core.jaxws.client.DispatchImpl.getReturnObject(DispatchImpl.java:290) | at org.jboss.ws.core.jaxws.client.DispatchImpl.invokeInternal(DispatchImpl.java:141) | at org.jboss.ws.core.jaxws.client.DispatchImpl.invoke(DispatchImpl.java:102) | The server looks all good, and is expecting security information (encryption) which for some reason the client isn't sending. In my client, I have: | ... | System.setProperty("org.jboss.ws.wsse.keyStore", [...]); | System.setProperty("org.jboss.ws.wsse.keyStorePassword", [...]); | System.setProperty("org.jboss.ws.wsse.trustStore", [...]); | System.setProperty("org.jboss.ws.wsse.trustStorePassword", [...]); | | URL serverURL = new URL(store.getString(PreferenceConstants.SERVER_URL)); | URL serviceURL = new URL(serverURL, "services/testService"); | | service = new TestService(TestClient.class.getClassLoader().getResource("META-INF/TestService.wsdl"), new QName(namespace, "TestService")); | port = service.getTestPort(); | | BindingProvider bindingProvider = (BindingProvider) port; | List handlerChain = new ArrayList(); | handlerChain.add(new WSSecurityHandlerClient()); | bindingProvider.getBinding().setHandlerChain(handlerChain); | | Map reqContext = bindingProvider.getRequestContext(); | reqContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL.toString()); | reqContext.put(BindingProvider.USERNAME_PROPERTY, SecurityService.instance().getID()); | reqContext.put(BindingProvider.PASSWORD_PROPERTY, ""); | | | dispatch = service.createDispatch(new QName(namespace, "TestPort"), StreamSource.class, Mode.PAYLOAD); | dispatch.getBinding().setHandlerChain(handlerChain); | | StreamSource response = dispatch.invoke(new StreamSource(new StringReader(request))); //request is a simple payload string | META-INF/jboss-wsse-client.xml | http://www.jboss.com/ws-security/config"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd";> | | | | | | | | | | META-INF/standard-jaxws-client-config.xml | http://www.w3.org/2001/XMLSchema-instance"; xmlns:javaee="http://java.sun.com/xml/ns/javaee"; | xsi:schemaLocation="urn:jboss:jaxws-config:2.0 jaxws-config_2_0.xsd"> | | | Standard WSSecurity Client | | | ##SOAP11_HTTP | | WSSecurityHandlerOutbound | org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient | | | | | | | Am I wrong to assume dispatch.invoke is responsible for appending the security tags in my message? Any help is appreciated. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084199#4084199 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084199 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam deployment problem
Try this: 1) Shutdown your JBoss AS 4.0.5.GA 2) Delete the folder server/default/tmp/ . It contains deployment info and some times creates conflict with entities. 3) Go to your project folder and run: ant clean 4) Run ant undeploy 5) Then do the deploy(wit hthe profile you need) ant deploy 6) Then start the jboss AS. This works for me when i have problems with diferent versions of the same Component. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084200#4084200 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084200 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - help! stuck with redhat developer studio beta 1 and ejb3 on
Bit of a long shot - cant find a topic for redhat developer beta feedback - logged in at redhat and registered and cant any fora other than the jboss ones in a lloop again. problem: i'm running jboss AS4.2 in the redhat developer download bundle. I create a seam project which sets up a project with an EAR 5.0 facet. fails immediately as it says ear 5 not supported on jbossAS 4.2 - despite this being the deployed AS it sets up with. eclipse suggests as quick fix to setup a new runtime - I am guessing it wants an jboss 5 server config. cant find any such adapter from eclipse with the dowanload new adapters. what the heck is one supposed to do here . does any one know who to get a jboss 5 server adapter? when i've tried using a jboss 4.2 adapter and point at jboss 5 install- the server fails to start stuck any one got any good ideas how to proceed? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084198#4084198 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084198 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Unable to load Provider: Failed to load javax.xml.ws.spi.Pro
Using the wsrunclient and I'm having the following problem: wsrunclient com.datamentors.web.DMWebClient javax.xml.ws.WebServiceException: Unable to load Provider: Failed to load javax.xml.ws.spi.Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl at javax.xml.ws.spi.Provider.provider(Provider.java:98) at javax.xml.ws.Service.(Service.java:83) at com.datamentors.web.jboss.DMWebService.(DMWebService.java:40) at com.datamentors.web.DMWebClient.processJBoss421JAXWSRequest(DMWebClient.java:103) at com.datamentors.web.DMWebClient.main(DMWebClient.java:131) Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Provider: org.jboss.ws.core.jaxws.spi.ProviderImpl at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:96) at javax.xml.ws.spi.Provider.provider(Provider.java:90) ... 4 more Caused by: java.lang.NoClassDefFoundError: org/jboss/util/NotImplementedException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) at java.lang.Class.getConstructor0(Class.java:2671) at java.lang.Class.newInstance0(Class.java:321) at java.lang.Class.newInstance(Class.java:303) at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:91) ... 5 more What jar is missing from the wsrunclient classpath??? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084194#4084194 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084194 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam deployment problem
The same problem but with Seam 1.2.1GA . Tried Project..Clean in Eclipse, no effect. Restarted JBoss, Eclipse, emoved files manually - no way. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084192#4084192 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084192 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: Using AOP with JBossWS
1.5.5GA seems to correct the issue. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084188#4084188 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084188 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Remote JNDI lookup fails with JBoss4.2.1GA, while it wor
I resolved the remote jndi lookup by using -b 192.168.33.36 which is the ip address of the machine JBoss4.2.1 is running. So now the JNDI lookup works. However my HAJNDI is broken. I still do not understand why -b 0.0.0.0 is not working for remote jndi lookup though. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084184#4084184 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084184 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: change in run-time the soap:address location of wsdl.
I don't understand how to do this. Using JBossWS 2.0.1GA - and still can't figure out how to override the end point address. What Stub? Let's suppose you are running in production, and have a web service running at 1,000 different locations (IP Addresses). You don't want the overhead of having to go pull down the WSDL everytime you get the port, so you statically link with a .WSDL file stored locally. The problem, however, is that the soap:address location is statically defined in the WSDL. So - how does your JBossWS client change the endpoint address (NOT THE WSDL LOCATION) after getting the web service port? Example: I have the same web service running at x.x.x.A and at x.x.x.B. So I get the port, and I want to send the same SOAP Request to both servers - why even get the port twice? Just send it to x.x.x.A (assuming that is where the WSDL is pointing to), and then change the endpoint address to x.x.x.B, and using the same port, call the same method again and it should go to x.x.x.B. This is what we need to do - does anyone know how to do this? And yes, I know that you can override the WSDL location in the constructor - that isn't what I need to do here. I have been working on this for several days without success. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084183#4084183 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084183 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - seam and richfaces 3.1 incompatible?
Hi, I was using richfaces 3.0.1 and ajaxjsf with my seam project and everything was fine. I decided to migrate to richfaces 3.1 today and started to have some deploy problems as described in this post: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=118629 To solve the deploy problem, I had to remove jboss-seam-ui.jar from my project. But now, I can´t use validate tags anymore. Is there a workaround for this? Thanks Kelly View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084182#4084182 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084182 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Client Discovery of Service Endpoint in Production Envir
I do understand the question. My question is pretty much the same: Let's suppose you are running in production, and have a web service running at 1,000 different locations (IP Addresses). You don't want the overhead of having to go pull down the WSDL everytime you get the port, so you statically link with a .WSDL file stored locally. The problem, however, is that the soap:address location is statically defined in the WSDL. So - how does your JBossWS client change the endpoint address (NOT THE WSDL LOCATION) after getting the web service port? Example: I have the same web service running at x.x.x.A and at x.x.x.B. So I get the port, and I want to send the same SOAP Request to both servers - why even get the port twice? Just send it to x.x.x.A (assuming that is where the WSDL is pointing to), and then change the endpoint address to x.x.x.B, and using the same port, call the same method again and it should go to x.x.x.B. This is what we need to do - does anyone know how to do this? And yes, I know that you can override the WSDL location in the constructor - that isn't what I need to do here. I have been working on this for several days without success. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084179#4084179 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084179 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SFSB and Hibernate Validator -
I'd recommend reading the source code. It's pretty cool, I think. Check out ui/src/main/java/org/jboss/seam/ui/validator/ModelValidator and src/main/org/jboss/seam/core/Validators View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084177#4084177 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084177 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Microcontainer] - Re: No run output on jboss Microcontainer
"PatruzZRocK" wrote : I've just installed Jboss Microcontainer, I have java 1.6 and ant 1.6.5. What about if you try with Java5? Are you running examples from the current trunk? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084176#4084176 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084176 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: createConnection hangs
I would need a thread dump on client/server to verify... Trace logs would also help! Clebert View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084174#4084174 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084174 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - How do you override soap:address location from WSDL at run t
Let's suppose you are running in production, and have a web service running at 1,000 different locations (IP Addresses). You don't want the overhead of having to go pull down the WSDL everytime you get the port, so you statically link with a .WSDL file stored locally. The problem, however, is that the soap:address location is statically defined in the WSDL. So - how does your JBossWS client change the endpoint address (NOT THE WSDL LOCATION) after getting the web service port? Example: I have the same web service running at x.x.x.A and at x.x.x.B. So I get the port, and I want to send the same SOAP Request to both servers - why even get the port twice? Just send it to x.x.x.A (assuming that is where the WSDL is pointing to), and then change the endpoint address to x.x.x.B, and using the same port, call the same method again and it should go to x.x.x.B. This is what we need to do - does anyone know how to do this? And yes, I know that you can override the WSDL location in the constructor - that isn't what I need to do here. I have been working on this for several days without success. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084173#4084173 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084173 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Custom exception/fault with JBoss & JWSDP
I'm struggling with this issue for a good while now - I hope somebody can help me... I want to develop a web service interface with methods that throw a custom exception. I have been using the developerWorks article on exception handling (http://www.ibm.com/developerworks/webservices/library/ws-tip-jaxrpc.html) and samples provided by web service toolkits like Axis as guides for my own implementation. But JBoss (4.2.1.GA) keeps printing the following messages while deploying my WAR file: anonymous wrote : 19:25:26,031 WARN [JAXRPCMetaDataBuilder] Cannot obtain java type mapping for: {http://www.mycompany/MyService}>MyServiceFault | 19:25:26,109 WARN [SchemaBindingBuilder] Type definition not found in schema: {http://www.mycompany.com/MyService}MyServiceFault | 19:25:26,109 WARN [SchemaBindingBuilder] Cannot obtain type binding for: {http://www.mycompany.com/MyService}MyServiceFault I start with a handwritten WSDL file (see below) and use the JWSDP tools (2.0) to generate the server-side artifacts and the JAX-RPC mapping file (as outlined in the book "JBoss at Work"). I tried the WSDL file of the faulthandling sample that comes with Apache Axis2 (1.3, bank.wsdl) and get the same messages. Any ideas? Do I have to use the wstools that come with JBossWS to get this thing working? Here is my WSDL file: | | http://schemas.xmlsoap.org/wsdl/"; | xmlns:xsd ="http://www.w3.org/2001/XMLSchema"; | xmlns:soap ="http://schemas.xmlsoap.org/wsdl/soap/"; | xmlns:mime ="http://schemas.xmlsoap.org/wsdl/mime/"; | xmlns:tns ="http://www.mycompany.com/MyService"; | targetNamespace="http://www.mycompany.com/MyService";> | | | http://www.w3.org/2001/XMLSchema"; targetNamespace="http://www.mycompany.com/MyService";> | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://schemas.xmlsoap.org/soap/http"/> | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084171#4084171 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084171 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - subclassing Variable Resolver
Hi, I am trying to build some sort of framework with dynamic forms& variables. In this context, I suppose, I need to go and build a variable resolver of my own. I read in the forum that Seam plugs its own variable resolver in to resolve components. I kind of need to intercept it and introduce my own variables where it is in my framework's scope and leave the rest to Seam. Could I do that? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084170#4084170 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084170 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - createConnection hangs
Hi, I've been seeing this for a while and alsways put it down to classpath issues, but I'm quite an expert at which jboss client jars work and which don't, and what needs to go where, so I'm no longer convinced that this is the issue. What's happening is that at seemingly random junctures, calls to createConnection stop working. they sit in this stack: at jrockit/net/SocketNativeIO.readBytesPinned(Ljava/io/FileDescriptor;[BIII)I(Native Method) | at jrockit/net/SocketNativeIO.socketRead(Ljava/io/FileDescriptor;[BIII)I(Unknown Source) | at java/net/SocketInputStream.socketRead0(Ljava/io/FileDescriptor;[BIII)I(SocketInputStream.java) | at java/net/SocketInputStream.read(SocketInputStream.java:129) | at java/io/BufferedInputStream.fill(BufferedInputStream.java:218) | at java/io/BufferedInputStream.read(BufferedInputStream.java:237) | ^-- Holding lock: java/io/[EMAIL PROTECTED] lock] | at java/io/FilterInputStream.read(FilterInputStream.java:66) | at org/jboss/remoting/transport/socket/MicroSocketClientInvoker.readVersion(MicroSocketClientInvoker.java:1000) | at org/jboss/remoting/transport/socket/MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:574) | at org/jboss/remoting/transport/bisocket/BisocketClientInvoker.transport(BisocketClientInvoker.java:413) | at org/jboss/remoting/MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122) | at org/jboss/remoting/Client.invoke(Client.java:1634) | at org/jboss/remoting/Client.invoke(Client.java:548) | at org/jboss/jms/client/delegate/ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDele gate.java:164) | at org/jboss/jms/client/delegate/ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext()Ljava/lang/Object;(ClientConnectionFactoryDelegate$createCon nectionDelegate_N3019492359065420858.java) | at org/jboss/jms/client/container/StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:83) | at org/jboss/aop/advice/org/jboss/jms/client/container/StateCreationAspect0.invoke(Lorg/jboss/aop/joinpoint/Invocation;)Ljava/lang/Object;(StateCreationAspect0.java) | at org/jboss/jms/client/delegate/ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext()Ljava/lang/Object;(ClientConnectionFactoryDelegate$createCon nectionDelegate_N3019492359065420858.java) | at org/jboss/jms/client/delegate/ClientConnectionFactoryDelegate.createConnectionDelegate(Ljava/lang/String;Ljava/lang/String;I)Lorg/jboss/jms/delegate/CreateConnectionResult;(ClientC onnectionFactoryDelegate.java) | at org/jboss/jms/client/JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205) | at org/jboss/jms/client/JBossConnectionFactory.createConnection(JBossConnectionFactory.java:87) | at org/jboss/jms/client/JBossConnectionFactory.createConnection(JBossConnectionFactory.java:82) | but never returns. This can happen without me changing anything, but once it happens it is unrecovereable. All future runs of the code do the same thing, restarting the client and the server has no effect. I'm using the latest 1.4.0CR2 jars withthe remoting update too. I'm sorry I can't suggest what may be happening here, I'm at the end of my tether; if anyone at all can help I'd be eternally grateful. I'm having to explore other MQ providers because I can't get past the problems I'm having with JBoss Messaging and it's costing me too much time investigating. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084167#4084167 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084167 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: jboss 4.2.1 with spring 2.0.6 causes NoTransactionExcept
Moving this to Transactions forum, since it has nothing to do with actual JBoss/Spring integration (see Sticky). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084161#4084161 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084161 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: required variables
Ah right, I didn't spot that else part, that explains why removing the 'read' access didn't help. Is this the behaviour we want? This kills the meaning of isRequired IMO. So I would opt to remove the else part. Anyway, I guess your code is indeed a valid way to fix this in your case. Or you could write a custom task controller... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084160#4084160 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084160 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Getting generated ID by sequence
I'm having a similar problem - using MySQL as the backend (not that I think it matters) and just the default @GeneratedValue option. I've seen references in other sites that imply that if you use a generated value, the Id will be updated as soon as you call persist(). In our case, before calling persist() it is null (correct), but after calling persist() its always zero. I've tried doing a refresh() afterwards, but that doesn't seem to make a difference either. To avoid the questions, we're trying to get the Id of a newly created (and inserted) object so that we can push that Id into Session state. Seems simple enough, right? -Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084153#4084153 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084153 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @Enumerated with @ID Usage Issue
Correction: I am using 4.2.1GA version of Jboss. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084148#4084148 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084148 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Returning an EJB from other
Yes. The problem is how do I create a remote reference to an EJB passing an argument. A JNDI lookup, as I am doing now, doesn't allow that. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084152#4084152 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084152 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: required variables
Well incase this will help anyone else, my quick fix will probably be running the following code before calling the taskInstance.end() method: Map variables = taskInstance.getVariablesLocally(); | if (variables != null) { | for (Iterator it = variables.keySet().iterator();it.hasNext();) { | String variableName = (String)it.next(); | if (variables.get(variableName) == null) { | startTaskInstance.deleteVariable(variableName); | } | } | } All local variables with a null value will be deleted, and if any of those variables are set to "required", the IllegalArgumentException will be thrown when the taskInstance.end() method is called, and therefore validation will work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084146#4084146 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084146 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - InstanceNotFoundException in jboss.security:service=JaasSecu
Hi people, I have one problem with JaasSecurityManager, when I used my application it is occurred the following errors: 007-09-13 09:19:05,510 DEBUG [AgendaCorporativa.model.br.com.unimed.fwp.control.LoginAction] execute() - action: LOGIN 2007-09-13 09:19:05,520 DEBUG [AgendaCorporativa.model.br.com.unimed.fwp.control.LoginAction] execute() - voTela: {action=LOGIN, j_username=, excluirMultiplos=[Ljava.lang.String;@1614ee3, page=1, j_password=} 2007-09-13 09:19:05,535 ERROR [AgendaCorporativa.model.br.com.unimed.fwp.control.LoginAction] jboss.security:service=JaasSecurityManager javax.management.InstanceNotFoundException: jboss.security:service=JaasSecurityManager at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:804) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at br.com.unimed.fwp.control.LoginAction.doActionLogIn(LoginAction.java:198) at br.com.unimed.fwp.control.LoginAction.execute(LoginAction.java:87) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1158) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) 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.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:238) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:138) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) This is my BEAN definied in jboss-service.xml: org.jboss.security.plugins.JaasSecurityManager anonymous 1800 60 thanks Claudemir. Frtanco View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084145#4084145 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084145 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SFSB and Hibernate Validator -
It worked! Could you explain how it works? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084143#4084143 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084143 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Is there a way to get more than 1 ip address (localhost)
For $5.99 plus shipping and handling you can make your machine a networked machine in the absence of a real network: http://www.computercablestore.com/detail.aspx?ID=3632 If you configure that interface for static ips, you can assign multiple addresses to it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084138#4084138 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084138 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: NoSuchMethodError in remote client WS call
I'm getting the same error... I used the wsdl4j.jar in the client dir but still not working. I'm using JDK 5 and I think this is a problem with a wrong of some jar... Exception in thread "main" java.lang.NoSuchMethodError: com.ibm.wsdl.xml.WSDLReaderImpl.setEntityResolver(Lorg/xml/sax/EntityResolver;)V at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:142) at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:273) at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:110) at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:82) at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96) any help would be appreciated. Fabio Miranda View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084137#4084137 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084137 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: required variables
If you take a look at the initializeVariables method, it actually does copy across the variables locally, but with a null value. Basically, the validation won't ever work because it doesn't take null values into account, and a null value is always copied acrossed to the local task instance, even if the variable is not readable. if (variableAccesses!=null) { | Iterator iter = variableAccesses.iterator(); | while (iter.hasNext()) { | VariableAccess variableAccess = (VariableAccess) iter.next(); | String mappedName = variableAccess.getMappedName(); | if (variableAccess.isReadable()) { | String variableName = variableAccess.getVariableName(); | Object value = contextInstance.getVariable(variableName, token); | log.debug("creating task instance variable '"+mappedName+"' from process variable '"+variableName+"', value '"+value+"'"); | taskInstance.setVariableLocally(mappedName, value); | } else { | log.debug("creating task instance local variable '"+mappedName+"'. initializing with null value."); | taskInstance.setVariableLocally(mappedName, null); | } | } | } Note the "else" block: else { | log.debug("creating task instance local variable '"+mappedName+"'. initializing with null value."); | taskInstance.setVariableLocally(mappedName, null); | } | Please correct me if I'm mistaken, as I just took a quick look. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084136#4084136 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084136 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam TLD namespace not recognized in jsp
Hello - I'm having to convert a few facelets to jsps (don't ask), and we want to use jsp instead of jspx. But when I change the xmlns definition at the top of the page to <%@ taglib uri="http://jboss.com/products/seam/taglib"; prefix="s" %>, eclipse says it can't find the tag library descriptor for that url, and I get the following error when I deploy and try to load the page: Error: "http://jboss.com/products/seam/taglib"; is not a registered TLD namespace. Can someone let me know how to get this namespace registered so I can use seam tags within my jsps? thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084134#4084134 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084134 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - ClassCastException with detached entities and memcached
Hello everyone, I'm trying to speed up object retrieval by using memcached and things work fine at first. When I redeploy my app and try to retrieve and object from memcached I get a class cast exception. If I kill memcache and restart it things go back to working OK, but I've lost all the cached entities. Does anyone know why this would happen? I have discovered that this problem does not occur if a client gets the entity from the server and stores it in memcached, it only happens when my objects home bean (stateless) is interfacing directly with memcached. To make it even stranger if I retrieve my object from memcached with a generic Object cast (instead of casting it to my class) and log o.getClass().getName() that matches what the class of the object should be. But then if I try to cast it as that Class, then I get a ClassCastException. Strange. Thanks, Jeremy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084133#4084133 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084133 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Losing params from Pages.xml
I've got a problem with params defined in pages.xml disappearing. The problem can be seen by adding the following button to the search.xhtml page in the seam contact list demo : | | If you add this after the search button, open up the seam contact list demo, type in a first name, click search, the page refreshes with the params in the URL. However, if you click the dummy button, the page refreshes and the params disappear. If this page was running under a pageflow, and the dummy button invoked an action defined in the pageflow, then the params would be appended on to the request url and all would be well. The problem is that if I have an edit form, that has the widgetId in the URL, and I have a button that connects to a method on the backing bean, I will lose the widget Id when it is clicked. I could make the button return a string, and use a pageflow to call the method in response to the string since pageflows seem to work differently. This makes it somewhat hard to create a restful URL like myEdit.seam?widgetId=23 when the param is wiped out halfway through, and the URL is no longer bookmarkeable. Is this by design, or should I fill out a jira? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084130#4084130 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084130 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: Using AOP with JBossWS
Please, try running with JBoss AOP 1.5.5.GA and let me know if the error still occurs.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084128#4084128 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084128 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: required variables
anonymous wrote : btw, hasVariableLocally should not contain the variable if it has no 'read' attribute, see the initializeVariables in the TaskController or the snippet in my post above. Strange I don't think it's working like it should then. I tried the following: And retrieved all local variables, and printed them out: Map variables = startTaskInstance.getVariablesLocally(); | if (variables != null) { | for (Iterator it = variables.keySet().iterator();it.hasNext();) { | String variableName = (String)it.next(); | String variableValue = (String)variables.get(variableName); | System.out.println(variableName+": "+variableValue); | } | } Is still found/printed the "IsReplacement" variable with a null value. IsReplacement: null View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084125#4084125 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084125 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: FlushModeType not working in Seam 1.2.1 GA?
I obtain a persistence context like this: @PersistenceContext(type=PersistenceContextType.EXTENDED) | private EntityManager em; | I changed my managed persistence context to match my code (since I use it as em in several places): That didn't fix it, cancelEdit still saves the changes. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084124#4084124 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084124 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Help with development environment
Hi, thanks for your help, but i really need some more help. Could you give some tips on how to create this environment? For instance, what JARs from JBossWS should i use in my project, should i use EJB or POJO as Web Services... Is you have any link with this information... Best Regards Marcelo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084120#4084120 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084120 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: required variables
ok.. duplicate analysis... nice I'm almost 10% sure this is an unnoticed regression from 3.1 since there are no unittests for this.(anymore?) btw, hasVariableLocally should not contain the variable if it has no 'read' attribute, see the initializeVariables in the TaskController or the snippet in my post above. Strange View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084119#4084119 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084119 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problem using seam example in websphere 6.1
Hi Am a newbie to jboss seam. Need to evaluate it on websphere. The version of seam is 1.2.1 GA and the example if hibernate2. When I start the application it I get this exception. Not able to find much on google, any help appreciated. [9/13/07 10:22:19:656 PDT] 0023 SystemOut O 10:22:19,656 ERROR [ClassUtils] org.ajax4jsf.framework.ajax.AjaxStateManager java.lang.InstantiationException: org.ajax4jsf.framework.ajax.AjaxStateManager at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1301) at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:274) at org.apache.myfaces.config.FacesConfigurator.getApplicationObject(FacesConfigurator.java:542) at org.apache.myfaces.config.FacesConfigurator.configureApplication(FacesConfigurator.java:462) at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:141) at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:69) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:52) at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:635) at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:279) at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:283) at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88) at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157) at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655) at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:608) at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335) at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1312) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1129) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:814) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:965) at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1495) at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:3924) at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4001) at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1500) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62) at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265) at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089) at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802) at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1080) at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118) at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:973) at com.ibm.ws.management.commands.AdminServiceCommands$InvokeCmd.execute(AdminServiceCommands.java:251) at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:239) at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.execute(ApplicationDeploymentCollectionAction.java:536) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apa
[jboss-user] [JBoss jBPM] - Re: required variables
Olivier is 100% right I'm afraid in the Taskcontroller code: initializing variables: | if (variableAccess.isReadable()) { | String variableName = variableAccess.getVariableName(); | Object value = contextInstance.getVariable(variableName, token); | log.debug("creating task instance variable '"+mappedName+"' from process variable '"+variableName+"', value '"+value+"'"); | taskInstance.setVariableLocally(mappedName, value); | } else { | submitting: if ( (variableAccess.isRequired()) |&& (! taskInstance.hasVariableLocally(mappedName)) | ) { | . some error stuff | } | So Olivier is correct, but I personally would be in favour of changing the latter to if ( (variableAccess.isRequired()) |&& (! taskInstance.hasVariableLocally(mappedName) |&& (taskInstance.getVariable(variableAccess.getMappedName()) != null) ) | ) { | . some error stuff | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084116#4084116 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084116 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: copy jboss install to other nodes
id like to avoid throwing a single point of failure into the cluster. wonder what nfs performance dings wed take for doing that.. in a round about way you answered my question. if any server is able to use the files from an nfs, then simply copying those files to any local server should work similarly.. hope i understood that right and youve eaten your wheaties.. ill post if shit blows up. e, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084110#4084110 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084110 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: required variables
Code in VariableContainer: public boolean hasVariableLocally(String name) { | return ( (variableInstances!=null) | && (variableInstances.containsKey(name)) |); | } The validation uses the method above, and as you can see, it simply checks if the variable exists, and not if it is null. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084106#4084106 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084106 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user