glassfish,jms,hornetq,jcaRelated issues-Collection of common programming errors


  • maple_shaft
    jsf coldfusion glassfish
    I want to invoke a jsf file(*.xhtml) from a coldfusion application. The application server is glassfish. I made the follwing my web.xml<?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN” “http://java.sun.com/dtd/web-app_2_3.dtd”> <web-app id=”adobe_coldfusion”><display-name>Adobe ColdFusion 9</display-name><description>Adobe ColdFusion 9</description><context-param id=”coldfusion_c

  • BalusC
    jpa netbeans utf-8 glassfish
    I’m developing a JPA application in netbeans. I use glassfish 3+ application server. I want to add useUnicode=true and characterEncoding=UTF-8 to the connection URL. Alghough I have set URL to jdbc:mysql://localhost:3306/gesht_db?useUnicode=yes&amp;characterEncoding=UTF-8 it gives me an error which says: Connection could not be allocated because: The connection property ‘useUnicode’ only accepts values of the form: ‘true’, ‘false’, ‘yes’ or ‘no’. The value ‘yes;characterEncoding=UTF-8’ is no

  • Pascal Thivent
    java netbeans java-ee glassfish
    The webpage for this application does not open up after the application is run. The administration console says: “An error has occurred -C:/eepassion/UnZip/servletbasics/samples/hello2/build/web” Thank you for your help.Please see log info below:Oct 15, 2010 8:27:50 AM com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand INFO: C:/Program Files/Sun/SDK/jdk/jre/..\bin\java -Dcom.sun.aas.instanceRoot=C:/Users/Family/Downloads/glassfish/domains/domain1 -Dcom.sun.aas.ClassPathPrefix=

  • mattytommo
    grails deployment glassfish missingmethodexception
    I have an issue when I try to deploy my web application on a GlassFish server but I don’t manage to solve it! (I don’t find any useful info on Google too…).The application has been built using the Grails framework.I don’t understand why the MissingMethodException is raised. To be more precise, I have only done some updates to the application that was previously installed on this server. This old application worked!Any help would be appreciate.Hereby the server stacktrace:[#|2012-03-07T10:43:22

  • pete
    java-ee jpa glassfish eclipselink wildfly
    im trying to migrate from Glassfish AS to WildFly AS.After I created the JDBC Datasource in Wildfly and changed the persistnce.xml accordingly i get this error on deploy:server.log:2014-04-10 10:34:26,496 INFO [org.xnio.nio] (MSC service thread 1-6) XNIO NIO Implementation Version 3.2.0.Final 2014-04-10 10:34:26,552 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool — 28) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) 2014-04-10 10:3

  • Artem Moskalev
    jpa glassfish eclipselink
    I have the ollowing persistence.xml in my JSF project using eclipse:<?xml version=”1.0″ encoding=”UTF-8″?> <persistence version=”2.0″ xmlns=”http://java.sun.com/xml/ns/persistence” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd”><persistence-unit name=”EnglishOnline” transaction-type=”JTA”><provider>org.eclipse.persistence.jpa.PersistenceProvider<

  • benwilcock
    java web-services glassfish jax-ws
    Context: Application Server is Glassfish 3.1.2. Technology is JavaEE JAX-WS. IDE is Netbeans 7.1.1.I’ve created 2 web services starting from WSDL using wsimport. Neither are EJB’s. They both use the @WebService annotation. They both live in the same WAR (not sure that should be relevant, but it might be). I can deploy and test both services very happily individually, using SOAP-UI as a client.I now want to get WebService1 to call WebService2 at runtime. I don’t want to just call the impl of webs

  • Matt Handy
    java glassfish
    I am facing new problem in glassfish server now :(After server starts successfully after sometime it gets hang and stops processing requestsfollowing are the exceptions in server log[#|2011-05-08T17:44:34.027+0300|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=17;_ThreadName=Timer-18 ;_RequestID=a47329c8-5efa-4e29-b90d-a5bda9c8f725;| java.util.logging.ErrorManager: 5: Error in formatting Logrecord|#][#|2011-05-08T17:44:34.036+0300|WARNING|sun-appserver2.1|javax.enterprise.

  • pierre tautou
    hibernate spring glassfish jpa-2.0 h2
    I build an java based app. using hibernate JPA, spring and h2database. I using h2database in memory mode, here is the jdbc properties:jdbc.url=jdbc\:h2\:mem\:test_db;DB_CLOSE_DELAY\=-1 jdbc.driverClassName=org.h2.Driver jdbc.username=sa jdbc.password=This values I’m using in dataSource.xml like this:<bean id=”basicDataSource” class=”org.apache.commons.dbcp.BasicDataSource” destroy-method=”close”><property name=”driverClassName” value=”${jdbc.driverClassName}” /><property name=”url

  • Philipp
    deployment gwt glassfish
    On the server side of my GWT app I use classes from the org.apache.commons.httpclient package. These classes are conveniently packaged in gwt-dev.jar distributed with GWT. I include this jar (along the gwt-servlet.jar) in the WEB-INF/lib of the war. When deploying the produced war file on glassfish and calling the page I get the following exception in the server logs (and an RPC fail) NoClassDefFoundError: org/apache/commons/httpclient/HttpExceptionWhat should I do so that glassfish finds the cl

  • Rosanero4Ever
    jms ejb-3.0 jboss6.x jboss-mdb
    I’m a newbie about EJB 3 and I’d like deploy as simple EAR, which uses a MDB, on JBoss AS 6. But, when I deploy my ear the following exception occurs:16:53:37,500 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=jboss.j2ee:ear=chapter2.ear,jar=chapter2-ejb.jar,name=OrderBillingMDB,service=EJB3 state=Create: org.jboss.deployers.spi.DeploymentException: Required config property RequiredConfigPropertyMetaData@fcb25d[name=destination descriptions=[

  • user1595858
    spring-mvc jms jboss7.x hornetq spring-jms
    I am trying to setup spring-web to connect to remote Jboss-7.1.1 HornetQ JMS by following this site. But I am getting below error, is there anything I need to add the spring-bean configuration. The current spring-web runs on tomcat. spring-bean.xml<?xml version=”1.0″ encoding=”UTF-8″?> <beans xmlns=”http://www.springframework.org/schema/beans”xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:jms=”http://www.springframework.org/schema/jms”xmlns:p=”http://www.springframework.org

  • user489041
    java java-ee jms activemq
    I am trying to deploy my application to a Glassfish 3.2 server. When I do, I get the following messages in my logs:16:01:37.591 [admin-thread-pool-4848(3)] INFO j.resourceadapter.mqjmsra.lifecycle.start – SJSMQ LifecycleManagedBroker configuration= brokerInstanceName =imqbroker brokerBindAddress =null brokerPort =7676 brokerHomeDir =/opt/glassfish3/mq brokerLibDir =/opt/glassfish3/mq/lib brokerVarDir =/opt/glassfish3/glassfish/domain

  • user3265132
    java hibernate jboss jms wildfly
    I have a question about the error message in the title. I am trying to achieve the following:Inserting an entity via EntityManager.merge(…); @PostPersist listener of the entity should send a message to a JMS Queue (HornetQ) to notify other parts of the system about the insertion of the entity.The method annotated with @PostPersist is invoked perfectly, but when sending the message, I get the error message below. Looks like sending the message triggers the error, but why?Another strange behavio

  • Ramkumar Kalirajan
    jboss jms jboss7.x jboss5.x
    I am running jboss5 and jboss 7 in same machine, so I changed port nos(jboss5-4040 and jboss7-8080). I need to send a message from jboss 5 to jboss 7. I read an article, state that, have to use JMS bridge.https://community.jboss.org/wiki/BridgeJMSMessagesFromAS5ToAS7I created a queue in jboss 5 and sent messages to the queue by standalone program.import java.io.Console; import java.util.Properties; import javax.jms.*; import javax.naming.Context; import javax.naming.InitialContext; import javax.

  • jeph perro
    java jms activemq activemq-cpp
    I’m trying to set up Apache ActiveMQ for the first time I discovered that the name of my server has an underscore in it, and that is preventing ActiveMQ from starting. It throws this exception :java.net.URISyntaxException: Illegal character in hostname at index 8: ws://cms_delta.mycompany.com:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600) …Where can I set the hostname in configuration. This server has other alias names without underscores, or I could use the IP address.

  • Leonardo Kenji
    java oracle jms activemq tomee
    I have an app, it was running (almost) ok in tomee+ 1.5.2 (activemq 5.7.0)Now, with tomee+ 1.6.0 (activemq 5.9.0), when I try to enqueue a message, I am getting ORA-01465Nov 21, 2013 12:30:17 PM org.apache.activemq.store.jdbc.JDBCPersistenceAdapter log WARNING: Commit failed: ORA-01465: invalid hex number , due to: ORA-01465: invalid hex numberjava.sql.SQLException: ORA-01465: invalid hex numberat oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450) at oracle.jdbc.driver.T4CTTIoer.proce

  • akira
    java jboss jms connection-pooling
    I’m trying to send a JMS message from one JBoss AS 5.1 instance to the other. For my test I have them both running on localhost, the client JBoss AS instance with the normal port settings and the server JBoss AS with the setting where all ports are offset by 100.In an EAR project on the client, I’ve defined a JMS provider loader in a file called jmstest-service.xml in the root of my EAR with the following content:jmstest-service.xml:<mbean code=”org.jboss.jms.jndi.JMSProviderLoader” name=”jbo

  • bontade
    spring maven-2 jms activemq
    I’m trying to use ActiveMQ plugin, but I have some troubles. My pom.xml:<dependency><groupId>org.apache.activemq</groupId><artifactId>activemq-core</artifactId><version>5.4.2</version></dependency><dependency><groupId>org.apache.xbean</groupId><artifactId>xbean-spring</artifactId><version>3.7</version></dependency> …<pluginManagement><plugins> …<plugin><groupId>org.apache.a

  • Matej
    plugins jms activemq
    I’m trying to configure an activemq broker with a plugin installed, but can’t seem to get the qualified name of the plugin class right in the broker configuration file. I have pasted the error message followed by the broker config below. Basicallly in the element I’m specifying class=”file:C:/Marcus/JavaProjects/Project/build/prod/classes/com/foo/jms/amqplugin/XmlValidationPlugin” which is absolute path to the XmlValidationPlugin.class file(have tried appending .class to path above but I get t

  • user1595858
    spring-mvc jms jboss7.x hornetq spring-jms
    I am trying to setup spring-web to connect to remote Jboss-7.1.1 HornetQ JMS by following this site. But I am getting below error, is there anything I need to add the spring-bean configuration. The current spring-web runs on tomcat. spring-bean.xml<?xml version=”1.0″ encoding=”UTF-8″?> <beans xmlns=”http://www.springframework.org/schema/beans”xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:jms=”http://www.springframework.org/schema/jms”xmlns:p=”http://www.springframework.org

  • Elad Eldor
    hornetq producer
    We use HornetQ 2.2.5 and our problem is that in the client side (which sends messages to the Q), all the producer threads are stuck in WAITING state.please note that the producer is on one machine and the HornetQ server is on another.This is the thread dump in the client side:Thread: pool-10-thread-9 : priority:5, demon:false, threadId:521, threadState:WAITING,lockName:java.util.concurrent.Semaphore$NonfairSync@60568a13sun.misc.Unsafe.park(Native Method)java.util.concurrent.locks.LockSupport.par

  • user2726829
    glassfish jms hornetq jca
    I try the instructions in http://www.codovation.com/2011/09/9-steps-to-integrate-a-remote-hornetq-with-glassfish-3-1/ and the advices in https://community.jboss.org/message/552628, but glassfish doesn’t deploy hornetq-ra.rar. I use the hornetq-rar generated from the hornetq-ra-rar example (hornetq-2.3.0.Final).I got the following exception [#|2013-08-28T14:08:25.625-0400|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=82;_ThreadName=Thread-2;|E

  • Byron
    jms hornetq
    I’m trying to Directly instantiating JMS Resources without using JNDI to a REMOTE HORNETQ.I am running my test code in Eclipse IDE. Setup my classpath to use the HornetQ 2.2.5 libraries.The target HornetQ is version 2.1.2.Final, I figured they should be backwards compatible, maybe im wrong?Okay, so I have read the online documentation and followed the examples on connecting to a remote JMS server without using JNDI. I keep on getting the following exception. Im not sure what Im missing but I b

  • Jacek Laskowski
    maven sbt hornetq
    I use SBT 0.13.1.When I add HornetQ as my dependency:libraryDependencies += “org.hornetq” % “hornetq-server” % “2.4.1.Final”sbt throws exception below.What I want is to have SBT resolving org.hornetq#hornetq-native;2.4.1.Final!hornetq-native.jar but not org.hornetq#hornetq-native;2.4.1.Final!hornetq-native.${native-package-type}.Is this a SBT bug or can/should I specify some property to get it going?[error] (*:update) sbt.ResolveException: download failed: org.hornetq#hornetq-native;2.4.1.Final!

  • Zur13
    jms jboss7.x hornetq jms-topic
    I need to configure JMS topic when my web app deploying. I had to use deployment descriptor for this. hornetq-jms.xml<?xml version=”1.0″ encoding=”UTF-8″?> <configuration xmlns=”urn:hornetq” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”urn:hornetq /schemas/hornetq-jms.xsd “><connection-factory name=”InVmConnectionFactory”><connectors><connector-ref connector-name=”in-vm”/></connectors><entries><entry name=”InVmConnection

  • Markus
    java jms weak-references hornetq
    The code below does NOT work:Cause:I assume I tracked down the cause to: http://community.jboss.org/thread/150988 => This article says that HornetQ uses Weak References.My Question: Why does the code not run? (I have this code running with a slight different implementation, but the code blow fails repeatedly). My only guess is, that the following references:private Connection connection = null; private Session session = null; private MessageProducer producer = null;are not regarded as strong r

  • Thor
    java jboss6.x hornetq
    I have a simple definition of a JMS-Queue in the file my-hornetq-jms.xml:<configuration xmlns=”urn:hornetq”xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”xsi:schemaLocation=”urn:hornetq /schema/hornetq-jms.xsd”><queue name=”my.test.queue”> <entry name=”/queue/myTest”/> </queue> </configuration>The queue is activated correctly and now I want to add a dependency in my @Stateless Bean. This question is similar to How can I ensure that the hornet queues are th

  • Mike Van
    jboss6.x hornetq
    I’m attempting to migrate a JBoss 4.2.2 application or 6.1.0.FINAL, and I’m having some difficulty configuring hornetq. First, here is the exception I’m getting:12:32:26,133 ERROR [STDERR] javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 12:32:26,133 ERROR [STDERR] java.lang.ClassNotFoundException: org.jboss.mq.referenceable.ObjectRefAd

  • ddri
    jboss jms message-queue jndi hornetq
    I am trying to get a simple JMS “Hello world” application to run. I would like to try it out on JBoss Application Server 7 but i am not able to run it. Jboss as HornetQ embedden in it and i started it using the following command:standalone.bat –server-config=standalone-preview.xmlI think the problem is most likely to the way i have configured the queue within JBoss. Here are the steps i did. Configure queueQuene name: testQueue JNDI name: queue/testThe queue configuration has an option for “Sel

  • user2726829
    glassfish jms hornetq jca
    I try the instructions in http://www.codovation.com/2011/09/9-steps-to-integrate-a-remote-hornetq-with-glassfish-3-1/ and the advices in https://community.jboss.org/message/552628, but glassfish doesn’t deploy hornetq-ra.rar. I use the hornetq-rar generated from the hornetq-ra-rar example (hornetq-2.3.0.Final).I got the following exception [#|2013-08-28T14:08:25.625-0400|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=82;_ThreadName=Thread-2;|E

  • user1802439
    database adapter osb jca
    I’m creating a business proxy based on a jca file. I am not able to import the business service with osb console. The error I am getting is: The import failed with exception:java.lang.reflect.InvocationTargetExceptionWhen I’m trying to create the business service based on the jca file, with the osb console, I am getting errors as well.An unexpected exception occurred during the creation or update ofthis service: nullThe jca file is:<adapter-config name=”RetrieveSessionInfoService” adapter=”db

Web site is in building

I discovery a place to host code、demo、 blog and websites.
Site access is fast but not money