[jboss-user] [JBossWS] - Re: WebServiceException: Undefined port type
I had the same problem with JBoss AS 5.0.1 and JBossWS 3.1.1. I looked at one of the samples (, which comes with the JBossWS distribution) under webservice folder. It uses EndpointInterface.java in the client deployment (see the comment at the top in the class). Basically it's pretty much the same as the remote interface - EJB3RemoteInterface, but with a few more annotations. I created a new interface following the above and replaced "HelloRemote" with it and it worked. I followed one of the tutorials, which used JBoss AS 5.0.0 CR2 and JBossWS 3.0.4. So, there may be some differences. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241697#4241697 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241697 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JDBCCacheLoader with Oracle 10g problem
Thanks Mircea, can we expect any forseeable date of this issue being tested and solved if it is really a bug? Xuetao View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241712#4241712 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241712 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: starting JDBCCacheLoader and transactions
same issue as: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=157686 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241687#4241687 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241687 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: BerkeleyDB Deadlock Exception from JBoss Cache Loader: B
Thanks a lot Galder for your help! What I need from Pojo cache is that it returns the same reference of object with the same fqn under the same node, which is what jboss core cache probably cannot do at the moment. Do you know any way to use jboss core cache with the reference comparability as what pojo cache provides? Maybe my use case can further clarify what we need: What we are caching is a pojo (say A) composed of a list of other pojos(say B) that are further composed of a map of other pojos(say C). Each A is about 5k-100k size. The operations to the A(s) have the following properties: - High put/removal of A - Low put/removal of B and C - High reading of A,B,C View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241714#4241714 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241714 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Announcing JBoss Cachee 3.1.0 - final release now availa
Can PojoCache 3.0.0GA or above use this core cache beneath? Xuetao View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241716#4241716 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241716 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Failed to find method for hash:-884175917852741154
Hello all, I have issue during deployment my war file under JBoss 5.0.1 on Red Hat Enterprise Linux Server release 5.3 (Tikanga) with Java 1.6.0_13. When I try to deploy this war on my local Window XP machine with the same java and jboss that work fine, but on linux mashine I have following exception: 2009-07-03 07:46:51,204 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/dataservice]] (main) Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext-datasource.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: Failed to find method for hash:-884175917852741154 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393) at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312) at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144) at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461) at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) at org.jboss.web.deployers.WebModule.start(WebModule.java:97) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668) at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) at $Proxy36.start(Unknown Source) at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42) at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37) at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) at org.jboss.depend
[jboss-user] [JBoss Portal] - Re: WSRP: failed to configure remote producer as described i
Hi, Did anyone solve the original issue, if you could share you thoughts and solution that would be helpful in moving forward with my POC for portals. Kindly reply if someone has any hints. Thanks, M View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241695#4241695 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241695 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools 3.1.0.M1 Download - Broken Links
The links are/were all correct but sf.net had a migration this week that for some reason have caused large parts of jboss archived downloads to disappear. I know other projects have reported the same. I've opened an issue against sf.net to hear about JBoss Tools missing binaries: http://sourceforge.net/apps/trac/sourceforge/ticket/1857 About updatesite: jboss.org have done a migration Tuesday (unrelated to sf.net) that might have caused some period of outages for the update site - I see it online and just used it so please try again. Sorry about it but right now i'm in the mercy of sf.net to get back with the binaries. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241731#4241731 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241731 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools 3.1.0.M1 Download - Broken Links
The links are/were all correct but sf.net had a migration this week that for some reason have caused large parts of jboss archived downloads to disappear. I know other projects have reported the same. I've opened an issue against sf.net to hear about JBoss Tools missing binaries: http://sourceforge.net/apps/trac/sourceforge/ticket/1857 About updatesite: jboss.org have done a migration Tuesday (unrelated to sf.net) that might have caused some period of outages for the update site - I see it online and just used it so please try again. Sorry about it but right now i'm in the mercy of sf.net to get back with the binaries. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241730#4241730 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241730 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - @Interceptors not working when jboss-aop defined in jboss-ao
I have a jboss-aop.xml file in my EAR. My jboss-aop.xml defines an interceptor class that works 100%. Today, I tried to also make use of EJB interceptors using @Interceptors annotation on my Stateless Session Bean and the result is that my EJB interceptor never gets called. However, when I comment out the interceptor I have defined in my jboss-aop.xml file, the EJB interceptor starts working. Is there a particular reason this happens and is there a way to make both work? Thank you in advance. -Alen View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241737#4241737 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241737 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Saving long spanning process in jBPM 4.0
Hi all, In jBPM 3.0 we could save the state of the process to the database and later access it later. I was wondering how to do this with jBPM 4.0 since, jbpmcontext is not in the api. For those who want to know what exactly I'm doing, I have an asynchronous web-service that uses callback method. After a state initiates the web-service, I want to save the state and only when the callback method is called, I want to proceed further. Any suggestions and comments are welcome :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241751#4241751 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241751 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: single sign on in portal
Yes you can. The easiest way for you is using of TomcatSSOValve, which is suitable in non-cluster environment. Please look to http://docs.jboss.com/jbportal/v2.7.1/referenceGuide/html/sso.html#d0e11543 You can also use SSO frameworks like CAS and JOSSO, which are always described in the same chapter in reference guide and on http://docs.jboss.org/jbportal/sso/. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241736#4241736 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241736 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Several applications running in the same instance
Hello! One of my current taks is suggesting the best scenario for my customer's JBoss infra-structure. My company is building 3 different applications (3 .WARs). Today, they use the same libs version (spring, hibernate, rich-faces, etc). My client' IT staff wants to put these 3 applications and any others they have or are building in the same JBoss instance. I am trying to change this, but I am lacking arguments. So, I am looking for sources (documents, articles, blogs, etc) that can help me in developing a deeper understanding of this scenario. I need to know the pros and cons of this approach as well as suggest alternative ones. Finally, my question: does anyone here know where can I find this kind of information? I am googling since yesterday to no avail. Kind regards, Thanks in advance Chkiron PS: I searched JBoss forum trying to figure where ask this question - i hope I got it right. If I am wrong, could you please tell me where to post this question? It is really important to me, but I am having troubles in finding a good source for this specific question. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241757#4241757 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241757 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: JDBCCacheLoader with Oracle 10g problem
Btw, can I use the GenericTransactionManagerLookup in Websphere6.1? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241748#4241748 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241748 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: jboss Web-Console Memory
What is this View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241711#4241711 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241711 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: jboss Web-Console Memory
"rasa" wrote : What is this What do you mean? I gave you a few suggestions for things you could try, and you indicated that none of those were possible. You mentioned a prior discussion but gave no link to that discussion. (No, I will not search for that discussion - it is your responsibility to provide clear information so that we can help you solve your problem.) So if you cannot do the things that would help you, what would you have me do? anonymous wrote : But i don't how to identify which program takes more memory. Either use a memory profiler (jmap, VisualVM, Eclipse MAT), or run one app at a time. Hmm, you have AS 3.2.5, which JDK? Most of the tools I am familiar with need JDK 5 or 6. And what OS? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241765#4241765 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241765 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss 4.2.2 not listening
Are you doing this within Eclipse? If so, don't. Do everything from the command line. When posting exceptions, post the full stack trace, not just the error message. Also, don't bother posting exceptions that show up in the browser - they are usually useless. There should be a corresponding exception in the console log - post that. Also, when posting what you are doing, please be exact and specific. Phrases such as "and made some changes so it works along with other instance I need to be started" give me no clue as to what it is that you did, and "other instance" could mean anything. Instance of what??? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241764#4241764 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241764 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Search for a JBossPortal 2.6.4 download-link
Wow, something like this used to be so easy (all of the releases were accessible from the downloads page), but now it has become impossible (after enabling various javascripts to run [not sure why I am forced to do that - why can't all the downloads be listed without having to reply on javascript?] I finally got the JBoss Portal entry to expand when I clicked on the "+", but not all of the versions were available - none of the 2.6.x versions show up!). Not sure if Red Hat or Source Forge is to blame, but doesn't anyone do any usability testing before making changes like this I guess your only options are to download the source and build it, or post this complaint in the JBoss Portal forum. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241761#4241761 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241761 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools 3.1.0.M1 Download - Broken Links
Hi, Thanks for your reply, but I am still having a problem. I am doing an install from inside eclipse 3.5 Galileo, and I am using this update URL: http://download.jboss.org/jbosstools/updates/development I still get this error: anonymous wrote : Cannot complete the install because one or more required items could not be found. | Software being installed: JBoss BIRT Integration 1.1.0.M1-N200906060434-H241 (org.jboss.tools.birt.feature.feature.group 1.1.0.M1-N200906060434-H241) | Missing requirement: JBoss BIRT Integration 1.1.0.M1-N200906060434-H241 (org.jboss.tools.birt.feature.feature.group 1.1.0.M1-N200906060434-H241) requires 'org.eclipse.birt.integration.wtp.ui [2.5.0.v20090514]' but it could not be found Thanks, Adrian View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241770#4241770 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241770 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Tutorial for setup of Authentication in JBoss?
Here are a few things to try. 1) Set roleAttributeIsDN to false. Looking at the code it appears that if this is false then the role is assumed to be the attribute's value (that is, the value of userClass in your example). Also, set TRACE logging for the "org.jboss.security.auth.spi" package - once the LDAP login module gathers all of the necessary info to lookup the role it prints the info to the log if TRACE is set. It also prints out information about what it finds. 2) The LdapExtLoginModule has a defaultRole option that might do what you want; it appears to assign a role to all logged in users. You would have to change the config to look something like this: | | |com.sun.jndi.ldap.LdapCtxFactory |ldap://ldap.my.com:389/ |simple |--account with ldap access-- |--password for that account-- |ou=people,o=my.com |(uid={0}) |xxx | | | Unfortunately the LdapExtLoginModule does not provide that much information when logging is set to TRACE. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241773#4241773 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241773 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: jira not workin
http://jira.jboss.org/jira works for me. Do you still have a problem ? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241732#4241732 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241732 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: java.lang.RuntimeException: java.lang.ClassCastException
Hi, please post the content of the MBean archive (you can use "jar tf MyJar.jar" for this) Where in this jar (or included jars) are located the following classes: RuleManagerLocal, RuleBaseBuilder, RuleEngineBean and DataLoaderThread? I think you don't need to play with the Classloader, this should hopefully work out of the box. But I am not sure. Best regards Wolfgang View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241733#4241733 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241733 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss 4.2.2 not listening
I have reinstalled from zero and made some changes so it works along with other instance I need to be started. It started up again, but now when trying to access the page it throws an error right away java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/parser/Scanner The installation is on Win XP Is a JBoss 4.2.2 Java jdk 1.5 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241745#4241745 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241745 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - MessagingException when deploying ear
I am getting the following MessagingException when I deploy my ear. I am using JBoss Messaging 2.0.0.BETA3. Any idea why this could be happening? (The same ear on another machine with JBM 2.0.0.BETA1 is working just fine.) | org.jboss.deployers.spi.DeploymentException: Endpoint activation failed ra=jboss.jca:service=RARDeployment,name='jms-ra.rar' activationSpec=org.jboss.messaging.ra.inflow.JBMActivationSpec(ra=org.jboss.messaging.ra.jbmresourceadap...@673a6164 destination=queue/exchange.to.bfseam.fix.queue destinationType=javax.jms.Queue tx=true durable=false user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=6) | at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) | at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.activate(JBossMessageEndpointFactory.java:346) | at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.start(JBossMessageEndpointFactory.java:212) | at org.jboss.ejb3.mdb.MessagingContainer.startProxies(MessagingContainer.java:224) | at org.jboss.ejb3.mdb.MessagingContainer.lockedStart(MessagingContainer.java:176) | at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:884) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59) | at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150) | at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) | at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241) | at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) | at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109) | at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70) | at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221) | at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) | at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) | at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) | at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) | at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540) | at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121) | at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51) | at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) | at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50) | at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210) | at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098) | at org.jboss.dependency.plugins.AbstractControllerContext.install(Abst
[jboss-user] [EJB 3.0] - Re: java.lang.RuntimeException: java.lang.ClassCastException
Wolfgang Knauf, Where should i post jar file?, I am not able to find any upload link on this page. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241753#4241753 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241753 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - How does SSO.net website integrate with JBOSS PORTAL
hi, I have a SSO .NET webite,I want to integrate it with jboss portal.I want some help. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241782#4241782 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241782 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: PermGen error
Thanks for the reply. How do you track down the leak? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241777#4241777 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241777 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Several applications running in the same instance
"chkiron" wrote : | | | My company is building 3 different applications (3 .WARs). Today, they use the same libs version (spring, hibernate, rich-faces, etc). | | My client' IT staff wants to put these 3 applications and any others they have or are building in the same JBoss instance. | | I am trying to change this, but I am lacking arguments. | | | I don't see anything wrong in hosting all those 3 apps on the same server instance. As long as you have ensured proper classloader isolation (so that each app uses its own version of the libraries that's packaged within the app), i think there shouldn't be any issues. Here's some wiki links for classloader related details: http://www.jboss.org/community/wiki/JbossClassLoadingUseCases http://www.jboss.org/community/wiki/classloadingconfiguration View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241796#4241796 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Search for a JBossPortal 2.6.4 download-link
Hmm, looks like the Portal binaries aren't the only ones that have disappeared... http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241730#4241730 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241762#4241762 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241762 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Saving long spanning process in jBPM 4.0
Uhh first suggestion would be to read some docs, look at some examples, blogs etc... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241769#4241769 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241769 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Jar file for org.jboss.ws.core.soap.SAAJMetaFactoryImpl.
Hi, Please have a look at this post. This might be helpful. http://www.jboss.org/index.html?module=bb&op=viewtopic&t=157912 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241802#4241802 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241802 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Re: Business Interface Pattern + Generics == EJB Spec Violat
Consider this: public interface AddressBeanBusinessInterface | { | ... | public void delete( final Long key ) throws E, UnknownIdDeviation; | | public interface AddressBeanRemote extends EJBObject, AddressBeanBusinessInterface | { | // empty - see the business interface for the remote EJB methods | ... and public interface AnotherInterface extends AddressBeanBusinessInterface | { | // empty - see the business interface for the remote EJB methods | So there 2 interfaces which extend the AddressBeanBusinessInterface. One expects to throw a NullPointerException and the other a RemoteException. So what should the compiler "replace" the E in AddressBeanBusinessInterface? It doesn't. All it does is marks the method to throw an Exception (as marked by E extends Exception): public interface AddressBeanBusinessInterface | { | ... | public void delete( final Long key ) throws Exception, UnknownIdDeviation; | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241797#4241797 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JNDI/Naming/Network] - Re: Getting DB connection from jboss pool via JNDI
Ok, thanks for clarifying Peter! The reason I believe that this is an anti-pattern comes from reading some sources on the internet like the following: http://www.jboss.org/community/wiki/ConfigDataSources In clause "Configuring a DataSource for remote usage" it is said that: anonymous wrote : This results in the DataSource being bound under the JNDI name "GenericDS" instead of the default of "java:/GenericDS" which restricts the lookup to the same VM as the jboss server. | | | | Note: JBoss does not recommend using this feature on a production environment. It requires accessing a connection pool remotely and this is an anti-pattern as connections are not serializable. Besides, transaction propagation is not supported and it could lead to connection leaks if the remote clients are unreliable (i.e crashes, network failure). If you do need to access a datasource remotely, JBoss recommends accessing it via a remote session bean facade. So I'm still a little bit in the dark of why the project I'm working on now, seemed to be working without use-java-context and without using remote session bean facades as indicated in the qoute. Its a little mistery till now to me. Is having Tomcat and JBoss in a separate process so uncommon? I'm considering testing to use the embedded tomcat, maybe that helps. Kind regards, Anatol View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241783#4241783 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241783 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: Jar file for org.jboss.ws.core.soap.SAAJMetaFactoryImpl.
Hi, Please have a look at this post. I think it might be helpful. http://www.jboss.org/index.html?module=bb&op=viewtopic&t=157912 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241800#4241800 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Several applications running in the same instance
Hi, Jaikiran! Thank you for your answer! "jaikiran" wrote : | I don't see anything wrong in hosting all those 3 apps on the same server instance. | I had some troubles with this scenario before. Let's say appl A and appl B both use the same version of library X and are running in the production server. A project later and the library X's version in appl B is completely updated. In this case, I had several problems of class colision in the server and had to use the same X version in both applications. "jaikiran" wrote : As long as you have ensured proper classloader isolation (so that each app uses its own version of the libraries that's packaged within the app), i think there shouldn't be any issues. I will study the links you provided, thank you! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241807#4241807 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241807 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools 3.1.0.M1 Download - Broken Links
Currently, there isn't any update site for Eclipse BIRT 2.5 WTP Integration SDK Feature. This is probably a bug in BIRT. The JBoss BIRT Integration feature requires this feature. If you want to have the JBoss BIRT Integration feature, you can install JBoss Tools as follows: - download Galileo Eclipse IDE for Java and Report Developers for your OS from http://eclipse.org/downloads/ and install it - download BIRT Web Tools Integration from http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-2_5_0-200906180630/birt-wtp-integration-sdk-2_5_0.zip - unpack birt-wtp-integration-sdk-2_5_0.zip to dropins/birt - start Eclipse - update JBoss Tools using http://download.jboss.org/jbosstools/updates/development If you don't need the JBoss BIRT Integration feature, you can exclude it and update Galileo. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241772#4241772 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241772 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Custom Principal class problem. SessionContext always return
Hi I need to store in the principal class not only name of the principal but also id from database. So I have created my own login module which inherits from the jboss DatabaseServerLoginModule. In the method getUsersPassword I also get the id of the user from the db. Here is the code snipet : | password = rs.getString(1); | password = convertRawPassword(password); | if (trace) | log.trace("Obtained user password"); | Long id = rs.getLong(2); | if (getIdentity() instanceof SmartOfficePrincipal) { | log.info("Setting id to the principal"); | ((SmartOfficePrincipal)getIdentity()).setId(id); | } | In login-config.xml I have configured login module to use my own principal implementation. login-config.xml : | | | | true | | | com.foo.SmartOfficePrincipal | java:/smartofficeDS | SELECT PASSWORD,ID FROM SMR_USERS_ASSIGN WHERE LOGIN=? | SELECT ROLES.ROLE, 'Roles' FROM SMR_USER_ROLES AS ROLES, | SMR_USERS_ASSIGN AS USERS WHERE USERS.LOGIN = ? AND ROLES. | USER_ID = USERS.ID | MD5 | anonymous | | | | My principal class : | public class SmartOfficePrincipal extends SimplePrincipal implements Serializable { | | private static final long serialVersionUID = 2079488098348121376L; | | private Long id; | | public SmartOfficePrincipal(String name) { | super(name); | } | | public void setId(Long id) { | this.id = id; | } | | public Long getId() { | return id; | } | | @Override | public int hashCode() { | final int prime = 31; | int result = super.hashCode(); | result = prime * result + ((id == null) ? 0 : id.hashCode()); | return result; | } | | @Override | public boolean equals(Object obj) { | if (this == obj) | return true; | if (!super.equals(obj)) | return false; | if (getClass() != obj.getClass()) | return false; | SmartOfficePrincipal other = (SmartOfficePrincipal) obj; | if (id == null) { | if (other.id != null) | return false; | } else if (!id.equals(other.id)) | return false; | return true; | } | } | Everything works fine I can login to the application but when I try to get the callerPrincipal from the SessionContext object I get SimplePrincipal instance. I can't cast to SmartOfficePrincipal. Also when I try to get principal in the entitylistener using the following statement : | Principal principal = SecurityAssociation.getPrincipal(); | I get the instance of SimplePrincipal class. I need user id because in entity listener i would like to set the user who have last modify object or created. So I don't have to remember to set up this by hand in the code. Also in my aspects I prefer to use the user id. What am I doing wrong ? Thanks a lot. Martin View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241774#4241774 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241774 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: SQL error executing test process
Does not seem to be a jbpm error per se. If anything the create-drop hibernate config option that you likely have in your jbpm.hibernate.cfg.xml seems to the root cause. Try not recreating the schema everytime you run the test case and it 'should' go away. This could mean though that the jbpm mysql sql script files might need to be changed a little? But again it is only in the test case world that you would recreate the tables everytime. http://bugs.mysql.com/bug.php?id=21395 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241815#4241815 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241815 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Strategy for classpool = null clearing
In the tutorial one of the noted problems is the memory usage climb with creating a lot of CtClass's etc that are all stored in the ClassPool. I am having trouble combining that advice with a javaagent implementation. The problem is really the order you see classes in and knowing when its safe to clear the pool. For instance say I have the following two classes: | class Account { | ... | } | | Class SavingsAccount extends Account { | ... | } | The javaagent will receive first the Account class, followed by the SavingsAccount. If you clear the pool after the Account class then SavingsAccount will see an a non enhanced class (which I can't do as I am adding constructors which the subclass will call). So the question is really what is the usual approach to this? So far I have tried the following: - Clearing every X times called, fails for obvious reasons - Clearing at the beginning of the program, fails because not all classes are necessarily loaded at that point I need something that some how mind reads the future calls! Any ideas? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241820#4241820 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241820 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Re: Adding annotations to methods
In the end I managed to work it out and answer my own question. The key was understanding that you need to add the AnnotationsAttribute instance to the Info of the method. That is the rough solution is: | CtClass clazz = | ClassFile classFile = clazz.getClassFile(); | ConstPool cp = classFile.getConstPool(); | AnnotationsAttribute attr = new AnnotationsAttribute(cp, AnnotationsAttribute.visibleTag); | | Annotation useAnnotation = new Annotation("org.package.AnnotationType",cp); | annotation.addMemberValue("name", new StringMemberValue("Paul",cp)); | | attr.setAnnotation(useAnnotation); | | m.getMethodInfo().addAttribute(attr); | | So the only real difference between the CtClass, CtMethod and even parameters is I needed to do the appropriate getXXXInfo and then add the attribute directly. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241819#4241819 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241819 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: What happened to JBoss Portal 2.7.2 bundled download?
Thanks for your replies. I am using the latest Firefox; I have tried several times since my initial post to download the bundled 4.2.3 JBoss AS and Portal 2.7.2 but no luck. SourceForge still does not provide the proper link to the bundle. I'll keep trying. Regards, Bill Dickinson View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241822#4241822 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241822 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jbpm4: could it simpler implementing an identical user in ma
Hi all, I'm implementing a homework process and illustrated in the following image: [img]http://scude.co.cc/pub_img/homework-process.png[/img] Take for example, a teacher named t1 will be the assignee of 'announce' task. and many students(let's say 20) are asked to submit their homeworks. I know that I could implement this by starting 20 process instances repectively. But I'd like to know is there simpler way to archive it, that's: the teacher t1 completes his task 'announce' only once, and 20 students will get a 'submit homework' task in their personal task list. Thanks. Roger View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241827#4241827 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241827 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Binding Twiddle only with localhost
Hi All We are in need to bind the twiddle locally. By which we will be able to invoke it only in the local machine and the remote access thro twiddle will be blocked. I googled and got the below link to do wat i needed see "*Binding the JMX invoker to localhost - HIGHLY RECOMMENDED:* " in http://kbase.redhat.com/faq/docs/DOC-5477 When i tried the above mentioned steps and started the server, i get this deployment exception. --- MBeans waiting for other MBeans --- ObjectName: jboss.admin:service=PluginManager State: CONFIGURED I Depend On: jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory Depends On Me: jboss.web.deployment:war=web-console.war,id=-653617 ObjectName: jboss.web.deployment:war=web-console.war,id=-653617 State: NOTYETINSTALLED I Depend On: jboss.admin:service=PluginManager ObjectName: jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory State: CONFIGURED I Depend On: jboss:service=invoker,type=jrmp,host=localhost jboss.jmx:type=adaptor,name=Invoker jboss:service=Naming Depends On Me: jboss.admin:service=PluginManager jboss.jmx:type=adaptor,name=MBeanProxyRemote,protocol=jrmp ObjectName: jboss.jmx:type=adaptor,name=MBeanProxyRemote,protocol=jrmp State: CONFIGURED I Depend On: jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: jboss:service=invoker,type=jrmp,host=localhost State: NOTYETINSTALLED Depends On Me: jboss.jmx:type=adaptor,name=Invoker,protocol=jrmp,service=proxyFactory Twiddle was not working from both local and remote Only after reverting we the changes, twiddle was accessible form both local and remote. Need an aaproach so the twiddle is alllowed only when it is invoked from local machine. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241786#4241786 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241786 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Can not install Jboss tool in myeclipse
Hi all I am using myeclipse 7.5 version with support of eclipse 4.2 , Now i want to install Jboss tool for entry myeclipse by updating software , but it is not successful . anyone can help me , how is install Jboss tool based on myeclipse ? please try to help me ? thank regards View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241794#4241794 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241794 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Asynchronous HTTP Request is not working as excepted for Re
Hi, I have written a simple Asynchronous HTTP Request RestEasy Application which contains two methods . 1) asyncBasic() -- asynchronous method 2) basic() --- normal RESTeasy http handler method i.e. synchronous I deployed this App in Jboss 5.0.0(native library enabled) and Case 1: when i send a request for both basic and asyncBasic , i am getting response back after 10 Seconds which i set as @suspend interval. but basic() should send response immediately which is not happening here. can someone help me to resolve this problem ? i followed the instruction given at http://www.jboss.org/file-access/default/members/resteasy/freezone/docs/1.0.2.GA/userguide/html/Asynchronous_HTTP_Request_Processing.html here is my code and web.xml @Path("/") public class SimpleResource { @GET @Path("basicasync") @Produces("text/plain") public void asyncBasic(final @Suspend(1) AsynchronousResponse response) throws Exception { Thread t = new Thread() { @Override public void run() { try { Thread.sleep(5000); Response jaxrs = Response.ok("Async Date : "+(new Date())).type(MediaType.TEXT_PLAIN).build(); response.setResponse(jaxrs); } catch (Exception e) { e.printStackTrace(); } } }; t.start(); } @GET @Path("basic") @Produces("text/plain") public Response syncBasic() throws Exception { Response jaxrs = Response.ok("Sync Date "+(new Date())).type(MediaType.TEXT_PLAIN).build(); response.setResponse(jaxrs); } } ** http://java.sun.com/dtd/web-app_2_3.dtd";> Archetype Created Web Application javax.ws.rs.Application com.test.BasicApplication resteasy.servlet.mapping.prefix /rest-services org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap Resteasy org.jboss.resteasy.plugins.server.servlet.JBossWebDispatcherServlet Resteasy /rest-services/* View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241801#4241801 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241801 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Re: adding annotations
The beauty of a Java agent is it gets passed every loaded class, regardless of classloader. So although you need to filter the list as quickly as possible (you'll get thousands of calls from java.* classes for instance) it is the best way to do the instrumentation. I have happily got annotation adding working in my code base recently so thought it might help you if I explained roughly how I do it. First up getting a CtClass: byte[] byteCode = ClassPool pool = CtClass clazz = pool.makeClass(new ByteArrayInputStream(byteCode)); If your using a Java agent it will give you the bytes directly, if you load them yourself in a custom classloader. Next up you the annotations adding to a CtClass: CtClass clazz = ClassFile classFile = clazz.getClassFile(); ConstPool cp = classFile.getConstPool(); AnnotationsAttribute attr = new AnnotationsAttribute(cp, AnnotationsAttribute.visibleTag); Annotation theAnnotation = new Annotation("org.package.AnnotationType",cp); annotation.addMemberValue("name", new StringMemberValue("Paul",cp)); attr.setAnnotation(theAnnotation); clazz.getClassInfo().addAttribute(attr); That worked well for me as an approach. If you want to see a working version (the far more complicated version based on methods and arrays of values) you can see the latest version of my code at JEMM Git MethodAnnotationTransformation.java View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241818#4241818 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241818 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: SQL error executing test process
could also be caused by a wrong dialect (afair, I've had the same thing before once, though not jBPM related) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241839#4241839 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241839 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm4: could it simpler implementing an identical user i
look at the foreach forkhandler in the wiki. It is for jBPM 3 but might be adapted for jBPM 4 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241840#4241840 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241840 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - mysql connection from jboss 5.1 on a mac
Hi, I have spent this lovely sunday trying to connect to a mysql DB on my mac. I have taken a server configuration I have been using on my Linux machine and a Linux VM on this mac with success. I installed mysql on this mac because I'm going on holiday want to work on my mac "natively" so to speak without the VM. Unfortunately the very same configuration that works on my Linux machines fails on my mac with: Caused by: org.jboss.resource.JBossResourceException: Failed to register driver for: org.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: org.mysql.jdbc.Driver from baseclassloa...@e83135{ I assume this is the cause, however I have no explanation why it should really be a classloading issue. The mysql-connector-java-5.1.7-bin.jar is in the $JBOSS_HOME/server/default/lib. I have also tried packaging it with the application I'm trying to deploy, no change. I also know the DB is working, I can connect using the command line, the mysql GUI adminstration tool as well as connect using the exact driver above from a simple java main program I have written. Any ideas why jboss would fail would be greatly appreciated! Best Regards, André View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241844#4241844 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241844 ___ 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: mysql connection from jboss 5.1 on a mac
org.mysql.jdbc.Driver should be com.mysql.jdbc.Driver View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241845#4241845 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241845 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Several applications running in the same instance
"chkiron" wrote : | | I had some troubles with this scenario before. Let's say appl A and appl B both use the same version of library X and are running in the production server. A project later and the library X's version in appl B is completely updated. In this case, I had several problems of class colision in the server and had to use the same X version in both applications. That's exactly what the classloader scoping (the links in my previous reply) will solve. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241848#4241848 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241848 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossMQ] - Non-transactional MDB bean
How to make message driven bean that does not use transactions for receiving messages (in JBoss 4.2.2)? Is it enough to set acknowledgeMode to Auto-acknowledge? : @MessageDriven(activationConfig = { | @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), | @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/MyQueue1"), | @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") }) | public class MDB1 implements MessageListener { |... | } View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241851#4241851 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241851 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - remote ejb call and backing bean constructor
hi , i have deployed a jar a machine aunder jboss 5 , configure it it run just fine, now i exported my ejb project as jar to use it in my web project , i added a test class in my web project like : | package com.vox.utils; | | | import java.util.List; | import java.util.Properties; | | import javax.naming.Context; | import javax.naming.InitialContext; | import javax.naming.NamingException; | | import com.vox.core.services.VoxManager; | import com.vox.core.persistence.model.Cdr; | | | public class voxClientTest { | public static void main(String [] args) { | | try { | | | Properties props = new Properties(); | props.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); | props.setProperty("java.naming.provider.url", "jnp://192.168.1.201:1099"); | props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming"); | props.setProperty("jnp.socket.Factory", "org.jnp.interfaces.TimedSocketFactory"); | | Context context = new InitialContext(props); | | try { | VoxManager VoxManager = (VoxManager) context.lookup("VoxService/remote"); | |List cdr = (List) VoxManager.findAllCdr(); | for(Cdr o:cdr) | { | System.out.println("***"+o.getClid()); | | } | | } catch (NamingException e) { | e.printStackTrace(); | } | | int e=23; | } catch (Exception ex) { | ex.printStackTrace(); | } | | } | private static Context getInitialContext() throws NamingException { |return new InitialContext(); | } | | } | in my backend bean who is used to display a datatable in a jsp , backend bean code: | package com.vox.bean.view; | | import java.util.ArrayList; | import java.util.List; | import java.util.Properties; | | import javax.annotation.PostConstruct; | import javax.naming.Context; | import javax.naming.InitialContext; | | import javax.naming.NamingException; | | import com.vox.core.persistence.model.Cdr; | import com.vox.core.services.VoxManager; | | | | public class ShowCdrsView { | | List cdrs = new ArrayList(); | | public ShowCdrsView() { | | Properties props = new Properties(); | props.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"); | props.setProperty("java.naming.provider.url", "jnp://192.168.1.201:1099"); | props.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming"); | props.setProperty("jnp.socket.Factory", "org.jnp.interfaces.TimedSocketFactory"); | | | try { | System.out.println("111"); | Context context = new InitialContext(props); | System.out.println("22"); | VoxManager VoxManager = (VoxManager) context.lookup("VoxService/remote"); | |List cdr = (List) VoxManager.findAllCdr(); | for(Cdr o:cdr) | { | System.out.println("***"+o.getClid()); | } | | } catch (NamingException e) { | e.printStackTrace(); | } | | } | | public List getCdrs() { | return cdrs; | } | | public void setCdrs(List cdrs) { | this.cdrs = cdrs; | } | | private static Context getInitialContext() throws NamingException { | | return new InitialContext(); | } | | | } | | but it was giving me the error : | 111 | javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.inte
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: mysql connection from jboss 5.1 on a mac
Yep so it should be and then it works, I'm so baffled, I can't think right now. I should have seen this... But why does the very same org.mysql.jdbc.Driver work on my Linux machine? Best Regards, Andre View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241858#4241858 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241858 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: MessagingException when deploying ear
Take a look at the configuration and the MDB example. On Beta1, the InVM acceptor existed by default, and that changed on Beta2. You now have to define it explicitally. I believe we didn't add the acceptor on the default configuration. Can you open jbm-configuration.xml, and add the following snippet of code? | | | org.jboss.messaging.integration.transports.netty.NettyConnectorFactory | | | | | | org.jboss.messaging.core.remoting.impl.invm.InVMConnectorFactory | | | | | take a look at examples/javaee/mdb/server/jbm-configuration.xml View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241861#4241861 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241861 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Can not install Jboss tool in myeclipse
What errors are you getting ? Since MyEclipse is bundling their own forks of Eclipse WebTools and partial versions of some of the plugins in JBoss Tools it might be impossible for us to help much. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241870#4241870 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241870 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: MessagingException when deploying ear
Clebert, thanks so much for the pointers. You are correct, the default configuration in beta3 does not contain either the in-vm connector or the acceptor. After adding both, the exception went away. Just out of curiosity, is this intentional? I would prefer that the default configuration worked right out of the box. I know JMS, but having to learn about acceptors, connectors and configuration is yet another impediment for noobs to adopt JBM. In any case, JBM 2.0 is looking like a great product in the making. Keep up the good work! Thanks. Naresh View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241873#4241873 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241873 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: MessagingException when deploying ear
No.. not intentional. We will fix it. thanks for pointing it out. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241874#4241874 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241874 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] jndi service take too much time to response
Hi, I have built the sample stateless application Calculator in JBOSS EJB3 tutorial. The Calculator and JBOSS is installed in another machine 192.168.1.242; whereby I execute "ant run" in another machine 192.168.1.235. But it takes about more 1 minute to show up the result from the command "ant run". The property of the jndi.properties file is shown below: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces java.naming.provider.url=192.168.1.242 The 192.168.1.242 and 192.168.1.235 systems has no internet access. I don't know whether I need a DNS server setup for that? Thanks ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - SSO fails on compressed response
I am using Jboss 4.2.3 with jboss portal 2.7.2 Running 2 jboss nodes in a cluster, everything works as expected including SSO , session replication etc. Onces i enable compression on the Tomcat Http connector or even on our load balancer , SSO no loger works. Scenario ( with compression="on" on tomcat connector ) 1. start both server nodes 2. run web page that requires authentication 3. user authenticated by node 1 ( SSO replicated to the node2 correctly) 3. shut down node 1 ( this was the node that originally authenticated the user) 4. run the page again, node 2 pops up authentication dialog (only the authentication part is having problems when compression is on, every other session object associated with the page seems to work as after re-entrying authentication details, i do see the updated session values that i was expecting.) Is there anything special needs to be done so that SSO works properly when running compression="on" in tomcat. Thanks in advance. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241877#4241877 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241877 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - "Connection failure has been detected" message
I am having trouble receiving messages reliably using JBM 2.0.0.BETA3 deployed in JBoss AS 5. Every once in a while I am getting a "Connection failure has been detected" message and then I start loosing messages. Can someone help me identify the issue? I have simplified my web application down to the bare bones. At this point I can send 1000 messages as fast as I can and then see if I receive all of them. Few times I have gotten all 1000, but several times I get much less, say about 600. I get the following warnings in between: | 22:58:26.968 WARNING [Thread-44 (group:JBM-client-global-threads-27401341)] [org.jboss.messaging.core.remoting.impl.RemotingConnectionImpl] Connection failure has been detected Did not receive ping from server:3 | ... | 23:02:56.984 WARNING [Thread-3 (group:JBM-scheduled-threads-10153586)] [org.jboss.messaging.core.remoting.impl.RemotingConnectionImpl] Connection failure has been detected Did not receive ping from client. It is likely a client has exited or crashed without closing its connection, or the network between the server and client has failed. The connection will now be closed.:3 | 23:02:56.984 WARNING [Thread-3 (group:JBM-scheduled-threads-10153586)] [org.jboss.messaging.core.server.impl.ServerSessionImpl] Client connection failed, clearing up resources for session ceb2cc8d-69d8-11de-9025-0016d433fcb5 | 23:02:57.000 WARNING [Thread-3 (group:JBM-scheduled-threads-10153586)] [org.jboss.messaging.core.server.impl.ServerSessionImpl] Cleared up resources for session ceb2cc8d-69d8-11de-9025-0016d433fcb5 | The message listener code is as simple as this: | @MessageDriven(activationConfig={ | @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"), | @ActivationConfigProperty(propertyName="destination", propertyValue="queue/jmstest") | }) | public class TestMessageListener implements MessageListener { | | private static final Logger logger = | LoggerFactory.getLogger(TestMessageListener.class); | | @Override | public void onMessage(Message message) { | | if (message instanceof TextMessage) { | String messageText = null; | try { | messageText = ((TextMessage)message).getText(); | logger.debug("Received message: {}", messageText); | } | catch (JMSException e) { | throw new RuntimeException(e); | } | } | } | } | I can send my small Maven project if someone could try it out. Thanks. Naresh View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241878#4241878 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241878 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm4: could it simpler implementing an identical user i
Thanks for the tip about forkhandler. But I don't find how to add action handler in jBPM4. what confusing me is how to dynamically create multiple child executions after a fork node, the count of child executions is unknown when design the process. Any tips is welcome. Thanks. Roger View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241879#4241879 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241879 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm4: could it simpler implementing an identical user i
Look at the eventListener folder's process.jpdl.xml in the examples that come with jbpm4. You could use something like: This listener could then be the base to trigger the code that you could use to dynamically build the process. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241883#4241883 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241883 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Difficulty creating a Producer in Portal 2.7.2
Hi Chris, Thanks for replying back, it did make me move forward. I was able to produce the portlet by making it remotable. Now i am faced with the issue where Weblogic Portal needs to consume this produce. In WLP ( Weblogic portal) we need to give a WSDL URL to register and consume the producer, do you have any thoughts on it. I was able to consume on another Jboss portal server easily but not sure how to do it on Weblogic Portal!! Let me know if there is any links or information you can share, thanks for your reply again. Maurya View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241886#4241886 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241886 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: PermGen error
That looks like a leak somewhere. Check the application in your war file. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241644#4241644 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241644 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: forum open source
How about JForum http://www.jforum.net/ View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241648#4241648 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241648 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - JBoss Tools 3.1.0.M1 Download - Broken Links
Hi, The following page on the Tools site for downloads. http://www.jboss.org/tools/download/dev.html has broken links to Sourceforge. In addition, the update site http://download.jboss.org/jbosstools/updates/development/ has broken dependencies when I try to update directly from eclipse. Please can someone fix it? Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241647#4241647 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241647 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Strange results with twiddle.sh when Jboss is down
"bcosnefroy" wrote : Hi, | | Sorry to reply to my own topics... | | I've found how to solve my problem. | There is a jndi.properties file in the twiddle.jar file. | | In the jndi.properties file, I've added the line: | jnp.disableDiscovery=true | | Now when my Jboss server is down, twiddle.sh returns an Exception. | I still have to modify the check_jbossjmx nagios script to deal with this exception. | | Thanks Dimitris for your answer. | Bruno Thanks for pointing out what was the solution to this. You can also add the property on the commandline, if you don't want to modify the twiddle.jar just add -Djnp.disableDiscovery to your commandline, at least that worked for me. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241650#4241650 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241650 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: what is the executionContext equivalent in jbpm4.0 to se
You could use a custom activity. Then you have access to an Execution which allows you to do what you want. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241653#4241653 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241653 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - jira not workin
hi, when i try to login in jira this error appears HTTP Status 404 - /jira/login.js type Status report message /jira/login.js description The requested resource (/jira/login.js) is not available. JBossWeb/2.0.0.GA_CP page: https://jira.jboss.org/jira/login.jsp View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241663#4241663 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241663 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Effort Estimation Technique for jBPM
The usage that you describe (wait states, mailing, timers) is supported by jBPM. But ofc, without proper requirements there is no way to do an estimation. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241656#4241656 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241656 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: what is the executionContext equivalent in jbpm4.0 to se
If you are talking about ExecutionContext and the methods getVariable and setVariable then what you should probably be using in v4 is the ExecutionService's getVariable/getVariables and setVariable/setVariables. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241661#4241661 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241661 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Lifecycle management of jBPM classes
Native Spring integration is already in 4.0CR1, but the 4.0GA will contain a polished approach and documentation. You can take a look at http://www.inze.be/andries/2009/06/28/documentation-spring-jbpm-integration/ for the draft documentation and a demo based on CR1 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241654#4241654 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241654 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: security intercepter error
Hi, it seems that your app uses security, and access to your bean method is denied. If you want a more helpful reply, please provide more details about your app, post the relevant deployment descriptors etc. Best regards Wolfgang View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241668#4241668 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241668 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Is there any kind of variable in JBPM4 like 'transient v
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=157927 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241664#4241664 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241664 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: SQL error executing test process
ould you post this unit test? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241655#4241655 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241655 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Is BdbjeCacheLoader fine for production??
Hi, I read in user's guide 9.3.1 that all file based cache loaders are not recommended for production use, does it also include the BdbjeCacheLoader that uses a transactional berkeleyDB? anonymous wrote : | 9.3.1. File system based cache loaders | JBoss Cache ships with several cache loaders that utilize the file system as a data store. They | all require that the configuration element contains a location property, | which maps to a directory to be used as a persistent store. (e.g., location=/tmp/myDataStore | ). Used mainly for testing and not recommended for production use. | Thanks, Xuetao View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241658#4241658 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241658 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Search for a JBossPortal 2.6.4 download-link
Hello, i'm have to install th JBoss Portal 2.6.4 in a test environment, because the production runs on the same Version. Where i can download this Version of JBossPortal, in sourceforge is the JBoss Portal 2.6.4 not available? Thx. Christoph View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241671#4241671 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241671 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: SQL error executing test process
Im using this test: public class workflowTest extends JbpmTestCase { | | long deploymentDbid; | | //Variables | Integer A = 1; | Integer B = 1; | Integer C = 0; | Integer D = 1; | Integer E = 1; | Integer F = 1; | | | protected void setUp() throws Exception { | super.setUp(); | | deploymentDbid = repositoryService.createDeployment() | .addResourceFromClasspath( | "org/workflow/quivir/workflowSumMul.jpdl.xml").deploy(); | } | | protected void tearDown() throws Exception { | repositoryService.deleteDeploymentCascade(deploymentDbid); | | super.tearDown(); | | } | | public void testWorkflowProcess() { | Map variables = new HashMap(); | // Entradas | variables.put("a", A); | variables.put("b", B); | variables.put("c", C); | variables.put("d", D); | variables.put("e", E); | variables.put("f", F); | | ProcessInstance processInstance = executionService | .startProcessInstanceByKey("workflowSumMul", variables); | } | } I have detected that the problem occur in the tearDown method when super.tearDown() is called. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241666#4241666 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241666 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Is BdbjeCacheLoader fine for production??
Besides the FileCacheLoader, which is not recommended (see javadoc, it explains why), I don't see any reason why NOT to use other cache loader implementations. I think docs are misleading, others? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241685#4241685 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241685 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Difficulty creating a Producer in Portal 2.7.2
Contrary to several other portals, JBoss Portal doesn't need to export a WSDL definition per published portlet. You just need to use http://localhost:8080/portal-wsrp/MarkupService?wsdl to access our producer from a consumer. You should see the portlet there. See http://docs.jboss.com/jbportal/v2.7.1/referenceGuide/html/wsrp.html for more details. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241681#4241681 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241681 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Difficulty creating a Producer in Portal 2.7.2
Hi All, Deployed my Struts 1.2.4 portlet in JBoss portal made it remotable --> true status , but see no WSDL for this corresponding portlet. I am able to see the portlet and also as a separate application on local machine. I tried accessing the WDL with this URL : http:?//localhost:8080/StrutsAppName/producer?wsdl dont get anything wsdl.. My main aim to create a Struts portlet ( 1.2.4 ver) and expose it as a producer for my Weblogic App to consume it. Please any help in this would be appreciated. Thanks, M View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241667#4241667 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241667 ___ 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: Unable to Connect to C3P0 Connection Pool with JPA under
Hi, The solution is described here: http://sourceforge.net/mailarchive/forum.php?thread_name=24229501.post%40talk.nabble.com&forum_name=c3p0-users Cheers, j-d View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241689#4241689 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241689 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: Is BdbjeCacheLoader fine for production??
Jdbc itself is also ultimately file based, what is wrong with BerkeleDB? Is it because the JdbjeCacheLoader itself is not well written? It seems the only choice for production would be the JDBCCacheLoader if I need persistence... is this true? Thanks! Xuetao View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241659#4241659 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241659 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - starting JDBCCacheLoader and transactions
Hello, I've got a problem with JDBCCacheLoader and run out of ideas. Therefore any help will be appreciated. We are using JBoss Cache 3.0.0 and our application is EJB module, being deployed to WebSphere 6.1. Oracle is used as database, and data source is managed by the application server At initialization (processing of first request) we are getting exception from Oracle: | Caused by: org.jboss.cache.CacheException: Unable to start cache loaders | at org.jboss.cache.loader.CacheLoaderManager.startCacheLoader(CacheLoaderManager.java:467) | ... 112 more | Caused by: java.sql.SQLException: ORA-02089: COMMIT is not allowed in a subordinate session | | at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288) | at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743) | at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216) | at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:955) | at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168) | at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3285) | at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3390) | at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.pmiExecute(WSJdbcPreparedStatement.java:735) | at com.ibm.ws.rsadapter.jdbc.WSJdbcPreparedStatement.execute(WSJdbcPreparedStatement.java:503) | at org.jboss.cache.loader.AdjListJDBCCacheLoader.createDummyTableIfNeeded(AdjListJDBCCacheLoader.java:296) | at org.jboss.cache.loader.AdjListJDBCCacheLoader.start(AdjListJDBCCacheLoader.java:269) | at org.jboss.cache.loader.JDBCCacheLoader.start(JDBCCacheLoader.java:376) | at org.jboss.cache.loader.CacheLoaderManager.startCacheLoader(CacheLoaderManager.java:461) | ... 112 more | The exception seems to be valid - transaction should not be committed here. However why does the loader try to createDummyTableIfNeeded ? Its configuration seems to prevent from creation of the tables (these tables are actually already in the database after running the same code outside application server) | | | | | | | cache.jdbc.datasource=jdbc/DataLoad | cache.jdbc.table.name=Cached_Events | cache.jdbc.table.create=false | cache.jdbc.table.drop=false | cache.jdbc.table.primarykey=jbosscache_pk | cache.jdbc.fqn.column=fqn | cache.jdbc.fqn.type=varchar2(255) | cache.jdbc.node.column=node | cache.jdbc.node.type=blob | cache.jdbc.parent.column=parent | | | | Just in case, I'm posting below the last DEBUG message before exception trace (the last line is from our code): | [2009-07-03 11:10:42,151] [efault : 3] DEBUG FileLookup - Unable to find configuration file D:\work\nextgen\workspace\build\storages\buildtest\config\jboss-cache.xml in classpath; searching for this file on the filesystem instead. | [2009-07-03 11:10:42,323] [efault : 3] DEBUG ComponentRegistry - Looking in configuration for an instance of class org.jboss.cache.invocation.InvocationContextContainer that may have been injected from an external source. | [2009-07-03 11:10:42,339] [efault : 3] DEBUG ComponentRegistry - Looking in configuration for an instance of interface org.jboss.cache.factories.context.ContextFactory that may have been injected from an external source. | [2009-07-03 11:10:42,339] [efault : 3] DEBUG ComponentRegistry - Looking in configuration for an instance of class org.jboss.cache.interceptors.InterceptorChain that may have been injected from an external source. | [2009-07-03 11:10:42,370] [efault : 3] DEBUG ComponentRegistry - Looking in configuration for an instance of class org.jboss.cache.transaction.TransactionTable that may have been injected from an external source. | [2009-07-03 11:10:42,386] [efault : 3] DEBUG ComponentRegistry - Looking in configuration for an instance of interface javax.transaction.TransactionManager that may have been injected from an external source. | [2009-07-03 11:10:42,386] [efault : 3] DEBUG GenericTransactionManagerLookup - Trying to lookup TransactionManager for JBoss, JRun4 | [2009-07-03 11:10:42,386] [efault : 3] DEBUG GenericTransactionManagerLookup - Failed to perform a lookup for [java:/TransactionManager (JBoss, JRun4)] | [2009-07-
[jboss-user] [JBoss Cache: Core Edition] - Re: JDBCCacheLoader with Oracle 10g problem
as the stack trace shows, both exceptions originate within the JDBCCacheLoader, and are most likely related to a change that was made to it, regarding https://jira.jboss.org/jira/browse/JBCACHE-1410. I've reopened the JIRA to test Oracle 10g integration. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241684#4241684 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241684 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: problem by using rich:tabPanel with switchType=ajax in i
it is an ie7 problem, which is solved by using stylesheet "position:relative". View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241692#4241692 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241692 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: java.lang.RuntimeException: java.lang.ClassCastException
Thanks Wolfgang Knauf !! This problem was solved now that was due to Classloader. issue the scenario is,I have Mbean application runing in its own classloader isolation scope and ejb 3.0 ear running in own. Mbean Application is calling bean from ejb ear. but since in ear-deployer.xml the CallByValue and Isolated attributes were set to false that was the exact problem, when I switched those and CallByValue attribute in Jboss-service.xmls' to true Mbean application is able to call bean but now I have new problem as side effect in ejb application I am calling another bean using Local Interface that was not working. could you please help why it would not be able to call Local inteface of ejb reside in same ear in response of your question My Client is an Mbean application that reads data files from one directory then transform and validate that data using Jboss rule engine(this running in its own class loader scope) Mbean application contains ejb-client.jar that contains remote and other classes DataLoaderThread.java(Client) | public void run() { | try { | PatientFacade patientFacade = new PatientFacade(); | isRunning = true; | init(); | | contactCache = new ContactVOCache(); | | while (isRunning) { | // TODO: decide (from a system setting) if this server is supposed to work as data loader, otherwise just go to sleep again. | | ZipHandler zipHandler = null; | File file; | contactCache.clear(); | | try { | | file = queue.removeFile(); // This method puts the thread to sleep until a file is available. | long startTime = System.currentTimeMillis(); // New file detected. Measure the exucution time for statistic purpose. | long nextInfoTime = startTime + 5000; | | if (logger.isInfoEnabled()) { | logger.info("New file detected: " + file); | } | | zipHandler = new ZipHandler(file); | | RawFileStatus rawFileStatus = zipHandler.getStatus(); | boolean rawFileWasRejectedByInitialValidation = (rawFileStatus.getError() != null); | | long rawFileId = saveRawFile(zipHandler, rawFileStatus); // Always save the zip file to the raw data archive | | if (rawFileWasRejectedByInitialValidation) { | if (logger.isInfoEnabled()) { | logger.info("Raw data file " + zipHandler + " saved with raw data ID " + rawFileId + ". This file was rejected by the initial validation - no further processing is done."); | } | } else { | String provider = rawFileStatus.getProviderName(); | long dataProducer = 1; // TODO: Transform raw file "provider" to a dataProducer via database lookup. | | if (logger.isInfoEnabled()) { | logger.info("Raw data file " + zipHandler + " saved with raw data ID " + rawFileId); | } | | int numberOfContacts = 0; | | | RawZipStreamIterator rawZipStreamIterator = new RawZipStreamIterator(file); | while (rawZipStreamIterator.hasNext()) { | RawFileRecordIndud indud = rawZipStreamIterator.nextIndud(); | ContactVOAssemblerFromRawdata assembler = new ContactVOAssemblerFromRawdata(); | ContactVO contactVO = assembler.createContactVO(indud); | contactVO.setReportedByDataProducerID(dataProducer); | | contactVO = ruleEngine.process(contactVO); // NOTE: Remote call means that we get a new instance in contactVO | | numberOfContacts++; | | // TODO: contactVO.setValidationStatus( /* String validationStatus */); | //TODO contactCache is just dummy classes need to be chagend with real implemntation | contactVO.setValidationTimestamp(new Date()); | contactCache.push(contactVO); | | if (logger.isInfoEnabled() && nextInfoTime < System.currentTimeMillis()) { | nextInfoTime += 5000; | logger.info("Number of contacts processed until now: " + numberOfContacts); | } | } | | rawZipStreamIterator.close();