jboss5.x

change the soap:address location in generated wsdl

浪子不回头ぞ 提交于 2020-01-01 10:57:07
问题 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

jboss 5 changing default port

本秂侑毒 提交于 2020-01-01 02:28:06
问题 I am trying to change the default port on my jboss server to port 80. i have had a look around the web and i have had suggestions of editing this file jboss5\server\default\deploy\jbossweb.sar\server.xml which is fine. changing this file alone still does not fix the issue. There have also been suggestion to also change this file: jboss5\server\default\conf\bootstrap\bindings.xml Only problem is that i cant find this binding.xml Is the binding.xml file a standard in JBoss 5? Or has it been

Upgrade JBoss 5.1 from EL 2.1 to EL 2.2?

China☆狼群 提交于 2019-12-29 05:36:45
问题 This question is quick and simple. JBoss 5.1 comes out of box supporting JSP and EL (Expression Language) 2.1 and Servlet 2.5. Is it possible to upgrade or hack this to use EL 2.2? UPDATE: I tried what BalusC's answer stated and got the following error: 2011-08-01 10:29:52,418 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (main) Unable to instantiate ExpressionFactory 'org.jboss.el.ExpressionFactoryImpl' 2011-08-01 10:29:52,441 SEVERE [javax.enterprise.resource.webcontainer.jsf

How to start Transaction in JTA EntityManager

别来无恙 提交于 2019-12-25 12:03:14
问题 I have JPA mapping to HSQLDB and persistence.xml reads as below : <persistence-unit name="HMC"> <jta-data-source>java:hmc</jta-data-source> <class>org.hmc.jpa.models.BloodGroup</class> <class>org.hmc.jpa.models.ContactInfo</class> <properties> <property name=hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/> <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" /> </properties> </persistence-unit> and get

How to start Transaction in JTA EntityManager

最后都变了- 提交于 2019-12-25 12:03:03
问题 I have JPA mapping to HSQLDB and persistence.xml reads as below : <persistence-unit name="HMC"> <jta-data-source>java:hmc</jta-data-source> <class>org.hmc.jpa.models.BloodGroup</class> <class>org.hmc.jpa.models.ContactInfo</class> <properties> <property name=hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/> <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" /> </properties> </persistence-unit> and get

java.lang.RuntimeException: error while reading /WEB-INF/components.xml

拈花ヽ惹草 提交于 2019-12-25 11:53:17
问题 I'm trying to deploy my Seam application on Jboss 5.1.0.GA but I'm getting a pretty strange error: Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory I'm migrating from Jboss 4.3.0, maybe I have missed some steps? Stacktrace below: 16:48:58,964 ERROR [[/]] Exception sending context initialized event to listener instance of class org.jboss.seam

Creating webservice and client with JBossWS using Complex objects as arguments and return types

喜欢而已 提交于 2019-12-24 20:27:12
问题 I am developing a WebService and Client for it using JBoss 5.1.0GA. The JBossWs stack was already preinstalled with the binary that I downloaded and as I understand it is JBossWs 3.1.2GA I have developed a web service using this setup and have also created a client successfully. This is what I have. A pojo web service deployed as a war file. @WebService public class Service{ @WebMethod public CompleObj getConfiguration() { CompleObj oConf = new CompleObj (); for (int i = 0; i < 10; i++) {

Struts 1.1 and Servlet 2.5 - NoClassDefFoundError for JspException during tests

落爺英雄遲暮 提交于 2019-12-24 13:44:08
问题 After updating servlet-api provided dependency in pom from 2.3 to 2.5, unit tests for our custom Struts 1.1 RequestProcessor started to fail with NoClassDefFoundError: javax/servlet/jsp/JspException, which indeed is lacking in servlet-api-2.5, compared to 2.3. I use JUnit 4.11 and JMockit 1.2 for unit testing. Interestingly, the application works fine after deploying it to JBoss 5.1. Is Struts 1.1 compatible with web apps using servlet api 2.5? Maybe JBoss 5.1 servlet-api is different from

Spring Data JPA | Dynamic runtime multiple database connection

非 Y 不嫁゛ 提交于 2019-12-24 10:41:45
问题 Use Case: During JBoss server startup, one permanent database connection is already made using Spring Data JPA configurations(xml based approach). Now when application is already up and running, requirement is to connect to multiple Database and connection string is dynamic which is available on run-time. How to achieve this using Spring Data JPA ? 回答1: One way to switch out your data source is to define a "runtime" repository that is configured with the "runtime" data source. But this will

Jboss server error while adding JMS queue service

余生长醉 提交于 2019-12-24 10:39:26
问题 I am new to JBoss JMS queue service. Currently, I am working in a production code using JBosss Messaging Server, where several queues have been configured in a separate example-service.xml file All queues are working fine and each queue has it own separate MDB listeners which will consumes all the messages from Queue. However, I am getting following issues: I am not able to browse any of the Queue values using QueueBrowser, even if the queue has some values before it is being consumed by the