jboss5.x

To clean or not to clean $JBOSS_HOME/server/web/tmp directory?

老子叫甜甜 提交于 2019-12-10 14:17:34
问题 We have script that restarts JBoss. Should we clean following directories in this script: $JBOSS_HOME/server/web/tmp $JBOSS_HOME/server/web/work $JBOSS_HOME/server/web/data Or JBoss should clean all old files in these directories automatically? Our clients complains that there are very old files in these directories. 回答1: Don't have experience with jboss 5, but in prior versions the contents of those directories sometimes got corrupted and had to be manually cleared. So we added it to our

javax.naming.NoInitialContextException: Cannot instantiate class:

流过昼夜 提交于 2019-12-10 12:06:43
问题 I'm trying to implement Simple EJB Application Described in tutorialpoint and I’m using JBoss 5.1 and eclipse as IDE and i created project as EJB 3. but I’m getting the below error javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674) at javax.naming.InitialContext

Unable to find valid certification path, jboss 5.1.0

☆樱花仙子☆ 提交于 2019-12-10 11:46:25
问题 When I am trying to invoke a SOAP webservice (.wsdl) that needs basic authentication over HTTPS from my local environment, I got the SSLHandShakeException. First I have downloaded the certificate Cert.cer from the Chrome browser and followed the below steps. 1) keytool -genkey -dname "CN=localhost:8080, OU=Group Name, O=Company Name,L=City Name, S=State, C=IN" -alias "key_alias" -keyalg RSA -keypass changeit -keystore server.keystore 2) copy server.keystore C:\Work\jboss-5.1.0.GA\server

org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://schemas.xmlsoap.org/soap/http/

半腔热情 提交于 2019-12-10 09:25:34
问题 In a wsdl-file I have the following line: When I deploy the webapplication (on JBOSS 5.1.0) and try to access the wsdl I get the following exception: org.apache.cxf.BusException: No DestinationFactory was found for the namespace http://schemas.xmlsoap.org/soap/http/. org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:115) org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:85) org.apache.cxf.endpoint.ServerImpl.<init>

problem with seam and mdb on jboss5.1

你说的曾经没有我的故事 提交于 2019-12-08 04:39:05
问题 I have a problem when using a mdb as a seam component. In the bean I inject some other seam somponents. The problem is that when the server restart after a crash and the mdb is deployed it starts reading the messages but seam is not initialized yet and I got an exception(listed above). If i start the server whith the queues empty and submit a message to queue after the server start it is working ok. Is there a posibility to stop or delay the sending off messages on server startup and start

Adding second conf folder to JBoss 5.1.0

ぃ、小莉子 提交于 2019-12-08 03:34:48
问题 We have a slightly modified JBoss 5.1.0 configuration, where we have added a new folder called <JBOSS_HOME>/myconf to the classpath. Here is the pertinent bit of conf/jboss-service.xml : <server> <classpath codebase="${jboss.server.lib.url}" archives="*"/> <classpath codebase="${jboss.common.lib.url}" archives="*"/> <classpath codebase="myconf" archives="*"/> ... </server> The idea being that application-specific configuration files can go into <JBOSS_HOME>/myconf while JBoss-specific

How to connect JMS queues from JBOSS 4 and 5?

你。 提交于 2019-12-07 12:23:36
问题 I have a server on which a Jboss 4.2.2 and a Jboss 5.1.0 runs. The problem is that a 3rd party is not able to upgrade its application to Jboss 5.1.0 in the near future, for us it is a simple matter. Unfortunately we need to send and receive some JMS messages from the third party app running on Jboss 4.2.2. What is the easiest way to enable the transfer of JMS messages between JbossMQ and JbossMessaging? 回答1: I think I found the solution for my problem. The JBOSS documentation has a chapter to

Creating XA DataSource to DB2 on JBoss

痞子三分冷 提交于 2019-12-07 10:34:49
问题 I trying to configure an XA DB2 DataSource, xa-datasource (based on http://community.jboss.org/wiki/SetUpADB2Datasource) using com.ibm.db2.jcc.DB2XADataSource class ( local-tx-datasource works using the com.ibm.db2.jcc.DB2Driver ). The target server is DB2 Connect V9.7 Actual xa-datasource config: <xa-datasource> <jndi-name>jdbc/DB2ServerDS</jndi-name> <use-java-context>false</use-java-context> <track-connection-by-tx>true</track-connection-by-tx> <xa-datasource-class>com.ibm.db2.jcc

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

大兔子大兔子 提交于 2019-12-07 05:20:04
问题 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

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

南楼画角 提交于 2019-12-07 04:14:00
问题 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