jboss5.x

Asynchronous Logging

爱⌒轻易说出口 提交于 2019-11-30 16:45:46
问题 Right now in my application,at certain points we are logging some heavy stuff into the log files. Basically only for logging we are creating JSON of the data available and then logging into Log files.This is business requirement to log data in JSON format . Now creating JSON from the data available and then logging to FILE takes lot of time and impacts the original request return time. Now idea is to improve the sitation . One of the things that we have discussed is to create a thread pool

JBoss transaction timeout setting?

十年热恋 提交于 2019-11-30 05:34:36
We have a timer service triggered task in JBoss 5.1.0.GA application and the problem is that we cannot change the transaction time out. This long Lucene indexing can take longer than the default 300 second limit. The question is how to change the timeout value, adding @TransactionTimeout(1800) to the worker method or the class did not have any effect. Edit: Setting this in deploy/transaction-jboss-beans.xml works fine: <property name="transactionTimeout">1800</property> but the annotation doesn't seem to have effect on either timer initiated or normal stateless EJBs. Vijay Kumar I am using

How to deploy a war file in JBoss AS 7?

谁都会走 提交于 2019-11-30 02:33:21
I downloaded JBoss Application Server 5 and successfully deployed a war file. I copypasted the Hello.war which has a simple index.jsp file into \jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA\server\default\deploy and it worked fine. However when I used JBoss AS 7 and deployed the war file here, it did not get executed. jboss-as-7.0.0.Final\jboss-as-7.0.0.Final\standalone\deployments How to deploy it? EDIT: I googled it but was not able to find info as JBoss AS 7 is relatively new. Actually, for the latest JBOSS 7 AS , we need a .dodeploy marker even for archives. So add a marker to trigger the deployment

setProperty must be overridden by all subclasses of SOAPMessage

人走茶凉 提交于 2019-11-29 20:09:44
I'm trying to deploy some web services in a WAR application on JBoss 5.1.0. I have created the source files from an existing wsdl using JAX-WS tool wsgen . This created the Service files and @XmlType annotated clases that would act as request and response wrappers. This classes worked well on JBoss 4.2.3, but when moving to JBoss 5.1.0, I get this exception. java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage My configuration: Windows XP SP3 (but getting the same on Vista, as well as on Linux) Sun JDK 1.6.0_17 JBoss 5.1.0 GA for jdk6 Thanks

javax.faces.FacesException: java.lang.RuntimeException: Cannot find FacesContext

跟風遠走 提交于 2019-11-29 16:03:36
I'm trying a simple project to work on jboss, but I'm stuck at this error (I already tried using .jsf on the URL). the application in tomcat work's fine javax.servlet.ServletException: java.lang.RuntimeException: Cannot find FacesContext javax.faces.webapp.FacesServlet.service root cause javax.faces.FacesException: java.lang.RuntimeException: Cannot find FacesContext org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425) org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211) org.apache.myfaces.lifecycle

JBoss transaction timeout setting?

爷,独闯天下 提交于 2019-11-29 03:37:43
问题 We have a timer service triggered task in JBoss 5.1.0.GA application and the problem is that we cannot change the transaction time out. This long Lucene indexing can take longer than the default 300 second limit. The question is how to change the timeout value, adding @TransactionTimeout(1800) to the worker method or the class did not have any effect. Edit: Setting this in deploy/transaction-jboss-beans.xml works fine: <property name="transactionTimeout">1800</property> but the annotation

Jboss only works on localhost:8080 ,but doesnt reply when called by ip

旧城冷巷雨未停 提交于 2019-11-29 01:23:55
I installed JBoss 5.0.1 and ran it , but when i called it from the same computer on localhost:8080 it works but when i call it from other computer it doesnt work at all using the computer IP ... when i had tomcat it used to work on both.so Does anybody know the problem? If you want JBoss to communicate on all IP addresses that are on the machine, then you can start it with the -b option passing 0.0.0.0 as the ip address, e.g. -b 0.0.0.0 Probably better is binding to the specific IP address that you want to. You can do this again by using the -b option, but passing the IP address you want to

How to deploy a war file in JBoss AS 7?

て烟熏妆下的殇ゞ 提交于 2019-11-28 22:59:00
问题 I downloaded JBoss Application Server 5 and successfully deployed a war file. I copypasted the Hello.war which has a simple index.jsp file into \jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA\server\default\deploy and it worked fine. However when I used JBoss AS 7 and deployed the war file here, it did not get executed. jboss-as-7.0.0.Final\jboss-as-7.0.0.Final\standalone\deployments How to deploy it? EDIT: I googled it but was not able to find info as JBoss AS 7 is relatively new. 回答1: Actually, for the

How to use JPA2 on JBoss 5.x ? (or How to eliminate class loading isolation issue?)

泄露秘密 提交于 2019-11-28 10:11:47
I would like JBoss to use only the dependencies located in my war file. Each time I deploy this war file, JBoss still uses its own jars. Here is the jboss-web.xml I use : <?xml version="1.0" encoding="UTF-8"?> <jboss-web> <class-loading java2ClassLoadingCompliance="false"> <loader-repository> my.package:loader=my-app.war <loader-repository-config> java2ParentDelegation=false </loader-repository-config> </loader-repository> </class-loading> </jboss-web> and the jboss-classloading.xml : <?xml version="1.0" encoding="UTF-8"?> <classloading xmlns="urn:jboss:classloading:1.0" export-all="NON_EMPTY"

javax.faces.FacesException: java.lang.RuntimeException: Cannot find FacesContext

久未见 提交于 2019-11-28 10:07:28
问题 I'm trying a simple project to work on jboss, but I'm stuck at this error (I already tried using .jsf on the URL). the application in tomcat work's fine javax.servlet.ServletException: java.lang.RuntimeException: Cannot find FacesContext javax.faces.webapp.FacesServlet.service root cause javax.faces.FacesException: java.lang.RuntimeException: Cannot find FacesContext org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425) org.apache.myfaces