jboss5.x

java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory

坚强是说给别人听的谎言 提交于 2019-12-05 10:46:02
I am using java1.6 , jboss5.1 and Spring maven 3.2.5 in my project.I am getting java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory This is my Pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.varun.batch</groupId> <artifactId>myproject</artifactId> <packaging>war</packaging> <version>0.0.1-SNAPSHOT<

Mod cluster proxy timeout in apache error logs

半世苍凉 提交于 2019-12-05 10:42:46
In our environment we get these entries consistently in error logs. [Sun Dec 22 20:29:43 2013] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header [Sun Dec 22 20:29:43 2013] [error] ajp_read_header: ajp_ilink_receive failed [Sun Dec 22 20:29:43 2013] [error] (70007)The timeout specified has expired: proxy: read response failed from (null) (xx.xx.xx.xx) [Sun Dec 22 20:30:01 2013] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header If these errors appear from all nodes at once the site will be throwing a 998 response

Getting “java.lang.ClassNotFoundException: javax.servlet.http.HttpServlet” in Eclipse + jboss 5.1.0

删除回忆录丶 提交于 2019-12-05 09:45:33
I'm trying to get a simple RestEasy project to work in Eclipse (with Jboss Tools) and Jboss 5.1.0. To get going, I've created a simple Dynamic Web Project. In the project, I've include the following in WEB-INF/web.xml: <context-param> <param-name>resteasy.scan</param-name> <param-value>true</param-value> </context-param> <listener> <listener-class>org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap</listener-class> </listener> <servlet> <servlet-name>Resteasy</servlet-name> <servlet-class>org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher</servlet-class> </servlet>

Enable logging for JBOSS class loading

允我心安 提交于 2019-12-04 22:11:03
问题 How do we enable logging to debug class loading issues in JBoss 5.x. If it is under JBOSS_HOME/server/xxxxx/conf to configure jboss-log4j.xml, should we need to add any piece of code or is there any other way to enable tracing. 回答1: You can turn on logging in two places: In JVM - you should just pass the extra switch -verbose:class . You can put these switch in your run.conf file in JAVA_OPTS variable definition. Turn logging in jboss-log4j.xml file. You should place in the file such

JBoss ManagedConnectionPool attributes

心不动则不痛 提交于 2019-12-04 15:25:05
If I issue the following command against a JBoss 5 server: ./twiddle.sh -s myserver:1099 get jboss.jca:service=ManagedConnectionPool,name=MYPOOL ConnectionCount ConnectionCreatedCount MaxConnectionsInUseCount ConnectionDestroyedCount AvailableConnectionCount InUseConnectionCount MaxSize I get the following output AvailableConnectionCount=100 ConnectionCount=5 ConnectionCreatedCount=38 ConnectionDestroyedCount=33 InUseConnectionCount=0 MaxConnectionsInUseCount=2 MaxSize=100 My understanding of these numbers is: AvailableConnectionCount=100 - number of connections available to be 'handed out'.

change the soap:address location in generated wsdl

不问归期 提交于 2019-12-04 07:13:25
I am using JAX-WS annotation to create soap services running on JBOss 5.1.0 G.A, the generates WSDL has got the following bit at the end - <service name="DataServiceService"> <port binding="tns:DataServiceBinding" name="DataServicePort"> <soap:address location="http://mymachine:8080/myapp/webservice" /> </port> </service> I have made the service https enabled on port 8443, I am able to connect to the service using the right protocol and port number but is there is a way to change the soap address in the generated wsdl so that the clients don't have to change it? I would like to see the address

How do I run a method before republishing to JBoss?

别来无恙 提交于 2019-12-04 06:56:24
问题 I'm developing a J2EE web application and I would like to be able to run a method (or function, class, whatever - something ) during the "republish" process. It would be nice if I could control when during the republish my function gets called (before, during, after, etc.) but a good first step would be getting something to be called automatically. As a temporary hack, I was able to add a button to my web app that you click right before you click "republish" in Eclipse. 回答1: Implement

Can I make a WAR depend on a JNDI entry in JBoss 5.1?

≯℡__Kan透↙ 提交于 2019-12-04 03:44:09
问题 As part of an upgrade from JBoss 4.0.4 to 5.1, I am trying to get a WAR to deploy after an EAR is successfully deployed. JBoss 5.x does not support PrefixDeploymentSorter like 4.x did, which means that I have to use <depends> in the WAR's jboss-web.xml. It seems I cannot depend on the EAR itself, so I pick the last deployed EJB instead. This EJB provides a JNDI entry that the WAR needs. Here's the EJB as it deploys when the WAR is absent from the deploy directory: 2010-03-25 10:47:30,348 INFO

Is there an easy way to create a new Wildfly server instance

£可爱£侵袭症+ 提交于 2019-12-03 17:21:50
Is there an easy way to create a new Wildfly server instance. In JBoss AS5 all you had to do is create a copy of default or all and start jboss with: run.sh -c [New instance name] There is no such option available in standalone.sh The change which started with the JBoss AS7 and continues in WildFly is, the whole server configuration is hold in a single file. There are prepared some 4 default configurations (or profiles): default ( standalone.xml - used by default - without clustering and messaging) HA ( standalone-ha.xml - supports clustering) Full ( standalone-full.xml - supports messaging)

Apache multiple requests with jmeter

不羁的心 提交于 2019-12-03 07:54:59
问题 I am using Jmeter to test multiple requests to my web application. I used NumberOfThread in Jmeter as 50. My process is as follows: Login page. Login with userID and password. Show menu page. Click search page. Go to search page. Click search button. Click the searched result link to go to update page. Update data and click update button. Show the updated result page. Go back to search page. Log out button click. In the above process, I used looping controller for process number 5 to 10 with