jboss5.x

setProperty must be overridden by all subclasses of SOAPMessage

大憨熊 提交于 2019-12-18 10:12:43
问题 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

java.lang.LinkageError: loader constraint violation previously initiated loading for a different type with name “javax/xml/soap/SOAPMessage”

落爺英雄遲暮 提交于 2019-12-14 03:47:15
问题 I'm new to webservices. I'm trying to call a service but I'm having the below error. Based on my initial google search seems this is a loader issue that can be caused by duplicate jars, but I cannot locate which one causes this. Any help is very much appreciated. Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) previously initiated loading for a different type with name "javax/xml/soap/SOAPMessage" at org

Caused by: java.sql.SQLException: Connection is not associated with a managed connection.org.jboss.resource.ada

六眼飞鱼酱① 提交于 2019-12-14 03:41:58
问题 I have an application with Jboss, Seam, Hibernate and h2. I wrote a simple action for importing data to the database from an external file. @Name("importAction") @AutoCreate @Scope(ScopeType.CONVERSATION) @Transactional public class ImportCosAction extends AbstractAction { saveOrUpdate(member); protected void saveOrUpdate(AbstractEntity entity) { final Session session = getSession(); session.saveOrUpdate(entity); flushSession(); } It works as expected for number, however, at some point I get

JBoss AS7 - Failed to process phase POST_MODULE of deployment

99封情书 提交于 2019-12-13 12:40:17
问题 Always when I deploy my project (jsf) I get the following error on my JBoss AS7. On JBoss 6 everything worked fine. What can be reasons for that error message? Do you have any idea how I can solve that? JBoss AS7-Console 21:25:17,026 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "myproject.war" 21:25:17,662 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."seminarpla ner.war"

JBoss server connection refused on localhost:1099

末鹿安然 提交于 2019-12-13 12:32:22
问题 I have an instance of JBoss 5.0.1 GA running on a remote server. The server attempts to start a batch service located on the same instance, but it reports connection refused. I found some webpage that said to add the localhost address to jndi.properties, but then the server fails to start altogether. The error code: 10:27:23,831 DEBUG [TimedSocketFactory] createSocket, hostAddr: localhost/127.0.0.1, port: 1099, localAddr: null, localPort: 0, timeout: 0 10:27:23,831 DEBUG [NamingContext]

JBoss 5.1: Spring @Resource annotation not working

断了今生、忘了曾经 提交于 2019-12-13 06:24:58
问题 I am working on an application using Spring 3 and Hibernate 3.5 with Java 1.6. So far I've been using JBoss 4.2.1 and everything was fine. Now while migrating to JBoss 5.1, I encountered lot of issues. One of them is that JBoss is ignoring the Spring @Resource annotation. I get the following exception: java.lang.RuntimeException: mapped-name is required for serviceManager of deployment pol-1.0.war at org.jboss.web.tomcat.service.injection.WebResourceHandler.loadXmlResourceEnvRefs

Quartz - ClassCastException

随声附和 提交于 2019-12-12 12:29:06
问题 I am using Jboss5.1.x , EJB3.0 I am trying to configure Quartz. I get this exception when I try to do lookup: InitialContext ctx = new InitialContext(); StdScheduler scheduler = (StdScheduler) ctx.lookup("Quartz"); this is the exception: java.lang.ClassCastException: org.quartz.impl.StdScheduler cannot be cast to org.quartz.Scheduler anyone has any idea? Thanks. 回答1: You most likely have two copies of the Quartz JAR in your classpath - JBoss has its own copy, and your application probably has

How to deploy a simple war file on JBOSS 7?

别来无恙 提交于 2019-12-12 12:25:19
问题 I deployed a simple war file (vivek.war) which contains a simple index.jsp file successfully in Jboss-5.X.X and Jboss-6.X.X. I simply placed the war file in server\default\deploy And then went to localhost:8080/vivek/index.jsp and everything was fine. But Similarly, for Jboss-as-7.1.1, I deployed the war file in standalone standalone\deployments and started \bin\standalone.sh and then went to localhost:8080/Hello/index.jsp does not display the file. it shows HTTP Status 404-/vivek/

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

馋奶兔 提交于 2019-12-12 08:15:21
问题 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 回答1: 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

SaxParser errors with Hibernate and JBoss - conflicting versions?

别来无恙 提交于 2019-12-11 20:44:07
问题 I am using JBOSS 5.1.0.GA and Hibernate when I try to connect to the database I get the following errors 10:21:03,042 INFO [Version] Hibernate Commons Annotations 3.1.0.GA 10:21:03,049 INFO [Configuration] configuring from resource: /hibernate.cfg.xml 10:21:03,049 INFO [Configuration] Configuration resource: /hibernate.cfg.xml 10:21:03,077 INFO [STDOUT] Warning: Caught exception attempting to use SAX to load a SAX XMLReader 10:21:03,077 INFO [STDOUT] Warning: Exception was: java.lang