Create JMS Queue using Admin Console on AS 6.1
by fernando@lozano.eti.br
Hi there,
When I try to create a JMS Queue using the Admin Console embedded in AS 6.1
I get:
Failed to add Resource (see app server log for additional details):
Failed to invoke method 'createQueue' on component 'JMSQueueManageMO' with
parameters [SimpleMetaType:java.lang.String:Teste,
SimpleMetaType:java.lang.String:queue/Teste,
SimpleMetaType:java.lang.String:, SimpleMetaType:java.lang.String:,
SimpleMetaType:int:-1, SimpleMetaType:int:10485760, SimpleMetaType:int:10,
SimpleMetaType:long:0, SimpleMetaType:boolean:false,
SimpleMetaType:long:-1, SimpleMetaType:boolean:false,
SimpleMetaType:java.lang.String:PAGE,
SimpleMetaType:java.lang.String:guest,
SimpleMetaType:java.lang.String:guest].
And the server logs add:
Caused by: org.jboss.joinpoint.spi.JoinpointException: Method not found
createQueue[java.lang.String, java.lang.String, java.lang.String,
java.lang.String, long, int, int, int, long, boolean, long, boolean,
java.lang.String, java.lang.String] for class
org.jboss.as.integration.hornetq.management.jms.QueueManageMO
Was this supposed to work? Or isn't AS 6.1 Admin Console unable to create
Queues on the embedded HornetQ server?
[]s, Fernando Lozano
13 years
[EJB3] - How do i optimize jms queue
by Sumit Upadhyay
Sumit Upadhyay [http://community.jboss.org/people/sumitupadhyay] created the discussion
"How do i optimize jms queue"
To view the discussion, visit: http://community.jboss.org/message/634465#634465
--------------------------------------------------------------
Hi.
My application have flex as front end & java at back end on unix with Jboss.
Application have list of commands to run on remote unix machines with in local network.
to process the commands to run on remote machines we use message driven beans Queues .
when load is less application works fine.
But when we increase the load it gradually becomes slow .
Introscope suggested that JMS queus gets full when load increases so that it takes more & more time to process them.
few months back everything was fine users had no problem but recently they reported a huge problem & they were not able to work on application .
What could be this issue?
Increasing queue size would help?
How to do Increasing queue size?
increasing thread pool size will help ? & how to increasing the same?
we tried lot of things but nothing is working fine.
any help in any direction would be a great help.
thanks in advance.
Sumit Upadhyay
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/634465#634465]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss Web Services] - javax.xml.soap.SOAPException: java.lang.IllegalStateException: Failed to load javax.xml.soap.MessageFactory: org.jboss.ws. core.soap.MessageFactoryImpl
by Rajesh Kumar
Rajesh Kumar [http://community.jboss.org/people/rajeshkumarp] created the discussion
"javax.xml.soap.SOAPException: java.lang.IllegalStateException: Failed to load javax.xml.soap.MessageFactory: org.jboss.ws. core.soap.MessageFactoryImpl"
To view the discussion, visit: http://community.jboss.org/message/633251#633251
--------------------------------------------------------------
Hi All,
I am trying to implement my Webservice program in jdk1.6.
But I get the following error while trying to access it.
> ERROR [SOAPFaultExceptionHelper] SOAP request exception
> java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
> at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:441)
> at org.jboss.ws.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:65)
> at org.jboss.ws.soap.MessageFactoryImpl.createMessageInternal(MessageFactoryImpl.java:209)
> at org.jboss.ws.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:142)
> at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:190)
> at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
> at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
> at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
> at java.lang.Thread.run(Thread.java:619)
> 15:48:21,467 ERROR [SOAPFaultExceptionHelper] Error creating SOAPFault message
> java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage
> at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:441)
> at org.jboss.ws.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:65)
> at org.jboss.ws.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:115)
> at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.toSOAPMessage(SOAPFaultExceptionHelper.java:203)
> at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(SOAPFaultExceptionHelper.java:188)
> at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:223)
> at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
> at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
> at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
> at java.lang.Thread.run(Thread.java:619)
> 15:48:21,467 ERROR [StandardEndpointServlet] Error processing web service request
> javax.xml.rpc.JAXRPCException: Cannot create SOAPFault message for: javax.xml.rpc.soap.SOAPFaultException: setProperty must be overridden by all subcl
> asses of SOAPMessage
> at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(SOAPFaultExceptionHelper.java:194)
> at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:223)
> at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
> at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
> at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
> at java.lang.Thread.run(Thread.java:619)
> 15:48:21,467 ERROR [[OutBoundBean]] Servlet.service() for servlet OutBoundBean threw exception
> javax.xml.rpc.JAXRPCException: Cannot create SOAPFault message for: javax.xml.rpc.soap.SOAPFaultException: setProperty must be overridden by all subcl
> asses of SOAPMessage
> at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(SOAPFaultExceptionHelper.java:194)
> at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:223)
> at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
> at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
> at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
> at java.lang.Thread.run(Thread.java:619)
After this, I added the jbossws-native-saaj.jar file alone in <JBOSS_HOME>/lib/endorsed folder.
Then I get the following error
> ERROR [STDERR] javax.xml.soap.SOAPException: java.lang.IllegalStateException: Failed to load javax.xml.soap.MessageFactory: org.jboss.ws.
> core.soap.MessageFactoryImpl
> ERROR [STDERR] at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:76)
while trying to access the line
MessageFactory messageFactory = MessageFactory.newInstance();
Note: It is running fine in jdk1.5.
I am using Jboss4.0.5.GA
Please help to fix this issue.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/633251#633251]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[JBoss Cache] - caching the entities using EJB 3.0 for JBoss.
by prabha ramasamy
prabha ramasamy [http://community.jboss.org/people/psadha] created the discussion
"caching the entities using EJB 3.0 for JBoss."
To view the discussion, visit: http://community.jboss.org/message/634406#634406
--------------------------------------------------------------
We are using the following approach to cache the entities using EJB 3.0 for JBoss.
Persistnce.xml changes :
<persistence-unit name="OracleDatabase" transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/ClientPointeDS</jta-data-source>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9Dialect" />
<property name="hibernate.show_sql" value="true" />
<!-- These are the default for JBoss EJB3 -->
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider" />
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />
<property name="jboss.entity.manager.factory.jndi.name" value="java:/EntityManagerFactories/oracleDatabase" />
<!-- JBoss Cache Related Changes -->
<!-- <property name="hibernate.cache.use_second_level_cache" value="true"/>-->
<!-- <property name="hibernate.cache.use_query_cache" value="true"/>-->
<!-- <property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.jbc2.JndiMultiplexedJBossCacheRegionFactory"/>-->
<!-- <property name="hibernate.cache.region.jbc2.cachefactory" value="java:CacheManager"/>-->
<!-- <property name="hibernate.cache.region.jbc2.cfg.entity" value="mvcc-entity"/>-->
<!-- <property name="hibernate.cache.region.jbc2.cfg.query" value="local-query"/>-->
<!-- <property name="hibernate.show_sql" value="true"/>-->
<property name="hibernate.cache.provider_class" value="org.jboss.ejb3.entity.TreeCacheProviderHook"/>
<property name="hibernate.treecache.mbean.object_name" value="jboss.cache:service=EJB3EntityTreeCache"/>
<!-- <property name="hibernate.ejb.classcache.services.entities.InstitutionData" value="transactional"/>
<property name="hibernate.ejb.classcache.services.entities.InstitutionStatus" value="transactional"/> -->
<property name="hibernate.cache.use_query_cache" value="true"/>
<property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.jbc2.JndiMultiplexedJBossCacheRegionFactory"/>
<property name="hibernate.cache.region.jbc2.cachefactory" value="java:CacheManager"/>
<property name="hibernate.cache.region.jbc2.cfg.entity" value="mvcc-entity"/>
<property name="hibernate.cache.region.jbc2.cfg.collection" value="mvcc-entity"/>
</properties>
@XmlRootElement(name="institutionData")
@XmlType(propOrder={})
@Cache(usage=CacheConcurrencyStrategy.TRANSACTIONAL)
public class InstitutionData {
/**
* Apache Logger reference
*/
}
We are getting the following Exception
[SessionFactoryImpl] building session factory
15:50:44,520 INFO [JndiMultiplexingCacheInstanceManager] Unable to retreive Cache from JNDI [java:CacheManager]
[SessionFactoryImpl] building session factory
15:50:44,520 INFO [JndiMultiplexingCacheInstanceManager] Unable to retreive Cache from JNDI [java:CacheManager]
javax.naming.NameNotFoundException: CacheManager not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.hibernate.cache.jbc2.builder.JndiMultiplexingCacheInstanceManager.locateCacheFactory(JndiMultiplexingCacheInstanceManager.java:83)
at org.hibernate.cache.jbc2.builder.JndiMultiplexingCacheInstanceManager.start(JndiMultiplexingCacheInstanceManager.java:72)
at org.hibernate.cache.jbc2.JBossCacheRegionFactory.start(JBossCacheRegionFactory.java:106)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:215)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/634406#634406]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years