[Installation, Configuration & Deployment] - Re: javax.resource.spi.SecurityException
by nsv
Below is the java file AlarmAction.java
i have also added the
public class AlarmAction implements Action {
| private static final String JMS_ALARM_CFG = "AlarmMgrRecvQueue.xml";
| private static Category logger = Category.getInstance(AlarmAction.class.getName());
| private static Sender eventSender;
| private static boolean initialized = false;
|
| private HashMap map = null;
|
| public AlarmAction(String cid) {
| map = new HashMap();
| map.put("CID", cid);
| if (!initialized) {
| try {
| init();
| initialized = true;
| }
| catch (Exception e) {
| // ignore - it'll be detected later in act()
| logger.error(Utility.getStackTrace(e));
| }
| }
| }
|
| public void setExpiration(Date d) {
| map.put("TIMESTAMP", d);
| }
|
| public void setUserId(String uid) {
| map.put("USERID", uid);
| }
|
| public void setEventObject(Object o) {
| String key = "EventObject";
| if (o instanceof WFWorkItem) {
| WFWorkItem wfwi = (WFWorkItem)o;
| String id = (new Long(wfwi.getId())).toString();
| WFWorkItemRef wfwir = new WFWorkItemRef(id);
| map.put(key, wfwir);
| }
| else {
| map.put(key, o);
| }
| }
|
| public void addProperty(String key, Object value) {
| if (key != null)
| map.put(key, value);
| }
|
| private synchronized void init() throws Exception {
| logger.debug("In init()...");
| Properties globalProps = Utility.getTLProps(true);
| String tl_dom = globalProps.getProperty("tl_domain");
| eventSender = new Sender();
| if (eventSender.init(tl_dom + "/" + JMS_ALARM_CFG) == false)
| throw new TLException("Could not initialize Sender for: " + JMS_ALARM_CFG);
| eventSender.start();
| }
|
| /**
| *
| * This evaluates every value in the stored HashMap, creates an ObjectMessage of type MSG_ADD_ALARM,
| * and passes it to the AlarmMnager's queue.
| *
| */
| public void act() throws REException {
| try {
| if (!initialized)
| throw new REException("Not initialized.");
|
| if (map.get("TIMESTAMP") == null || map.get("EventObject") == null)
| throw new REException("Properties not set properly");
|
| ObjectMessage omsg = null;
|
| synchronized (eventSender) {
| omsg = eventSender.getObjectMessage();
| omsg.setStringProperty(AlarmManager.MSGTYPE, AlarmManager.MSG_ADD_ALARM);
| omsg.setObject(map);
| eventSender.sendObjectMessage(omsg);
| }
| }
| catch (Exception e) {
| logger.error(Utility.getStackTrace(e));
| throw new REException(e.getMessage());
| }
| }
| }
|
below is the AlarmMgrRecvQueue.xml which is used in the above java file
<!DOCTYPE JMSConfig SYSTEM "JMSConfig.dtd">
|
| <JMSConfig>
| <Destination
| destType="queue"
| providerURL="jnp://localhost:3099"
| connFactoryJNDIName="java:AlarmMgrConnectionFactory"
| destJNDIName="queue/AlarmMgrRecvQueue"
| timeToLive="1000000"
| receiveTimeout="1000"
|
| />
| </JMSConfig>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990930#3990930
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990930
19 years, 8 months
[Installation, Configuration & Deployment] - Re: javax.resource.spi.SecurityException
by nsv
Below is the stack trace
2006-12-04 15:02:51,705 DEBUG [org.jboss.mq.referenceable.SpyDestinationObjectFactory] SpyDestinationObjectFactory->getObjectInstance()
| 2006-12-04 15:02:51,705 DEBUG [com.tlc.jms.Destination] Exiting initializeConnections()...
| 2006-12-04 15:02:51,705 DEBUG [com.tlc.jms.Destination] Connected to Destination: queue/AlarmMgrRecvQueue and Factory: java:AlarmMgrConnectionFactory
| 2006-12-04 15:02:51,705 DEBUG [com.tlc.jms.Destination] Connected. Exiting init(String)...
| 2006-12-04 15:02:51,705 DEBUG [com.tlc.jms.Sender] Entering initSender()...
| 2006-12-04 15:02:51,705 DEBUG [com.tlc.jms.Sender] Creating Queue Session...
| 2006-12-04 15:02:51,705 DEBUG [com.tlc.jms.ConnectionWrapper] Entering createQueueSession()...
| 2006-12-04 15:02:51,705 DEBUG [com.tlc.jms.ConnectionWrapper] Exiting createQueueSession()...
| 2006-12-04 15:02:51,705 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] internalRegisterPool: registering pool with interval 900000 old interval: 450000
| 2006-12-04 15:02:51,705 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
| javax.resource.spi.SecurityException: No Password credentials found
| at org.jboss.resource.adapter.jms.JmsCred.getJmsCred(JmsCred.java:75)
| at org.jboss.resource.adapter.jms.JmsManagedConnectionFactory.createManagedConnection(JmsManagedConnectionFactory.java:101)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:539)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:228)
| at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:417)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:324)
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:301)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:379)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:812)
| at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.allocateConnection(JmsSessionFactoryImpl.java:389)
| at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.createQueueSession(JmsSessionFactoryImpl.java:144)
| at com.tlc.jms.ConnectionWrapper.createQueueSession(ConnectionWrapper.java:63)
| at com.tlc.jms.Sender.initSender(Sender.java:162)
| at com.tlc.jms.Sender.init(Sender.java:120)
| at com.tlc.re.AlarmAction.init(AlarmAction.java:86)
| at com.tlc.re.AlarmAction.<init>(AlarmAction.java:45)
| at com.tlc.re.RuleContext.jsFunction_createAlarmAction(RuleContext.java:157)
| at inv20.invoke()
| at org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:498)
| at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:413)
| at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1191)
| at org.mozilla.javascript.gen.c3.call(...:194)
| at org.mozilla.javascript.optimizer.OptRuntime.callSimple(OptRuntime.java:275)
| at org.mozilla.javascript.gen.c25.call(Case-Related Event Rules:30)
| at org.mozilla.javascript.gen.c25.exec(Case-Related Event Rules)
| at com.tlc.re.Rule.execute(Rule.java:80)
| at com.tlc.re.RuleSet.execute(RuleSet.java:109)
| at com.tlc.re.RuleEngine.execute(RuleEngine.java:301)
| at com.tlc.re.RuleEngine.exec(RuleEngine.java:339)
| at com.tlc.re.RuleEngine.exec(RuleEngine.java:325)
| at com.tlc.event.EventManager.onMessage(EventManager.java:111)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
| at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
| at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
| at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
| at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
| at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
| at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
| at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
| at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
| at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
| at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
| at org.jboss.ejb.Container.invoke(Container.java:954)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:987)
| at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1287)
| at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)
| at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:902)
| at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
| at org.jboss.mq.SpySession.run(SpySession.java:323)
| at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
| at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
| at java.lang.Thread.run(Thread.java:595)
| 2006-12-04 15:02:51,705 ERROR [org.jboss.resource.adapter.jms.JmsSessionFactoryImpl] could not create session
I think this is the issue with JMStemplate, How can i create a jmstemplate in jboss
Thanks for the quick response
-Vishnu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990926#3990926
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990926
19 years, 8 months
[Beginners Corner] - starting Jboss with ALL
by golanbln
hi everybody,
i am trying to start jboss4.0.1sp1 with ALL config (sh run.sh -c all ).. but i am getting this error:
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /home/msaid/downloads/jboss/jboss-4.0.3SP1
|
| JAVA: /usr/lib/jvm/java/bin/java
|
| JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh
|
| CLASSPATH: /home/msaid/downloads/jboss/jboss-4.0.3SP1/bin/run.jar:/usr/lib/jvm/java/lib/tools.jar
|
| =========================================================================
|
| 10:40:27,095 INFO [Server] Starting JBoss (MX MicroKernel)...
| 10:40:27,096 INFO [Server] Release ID: JBoss [Zion] 4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)
| 10:40:27,098 INFO [Server] Home Dir: /home/msaid/downloads/jboss/jboss-4.0.3SP1
| 10:40:27,098 INFO [Server] Home URL: file:/home/msaid/downloads/jboss/jboss-4.0.3SP1/
| 10:40:27,099 INFO [Server] Patch URL: null
| 10:40:27,099 INFO [Server] Server Name: all
| 10:40:27,099 INFO [Server] Server Home Dir: /home/msaid/downloads/jboss/jboss-4.0.3SP1/server/all
| 10:40:27,099 INFO [Server] Server Home URL: file:/home/msaid/downloads/jboss/jboss-4.0.3SP1/server/all/
| 10:40:27,099 INFO [Server] Server Temp Dir: /home/msaid/downloads/jboss/jboss-4.0.3SP1/server/all/tmp
| 10:40:27,100 INFO [Server] Root Deployment Filename: jboss-service.xml
| 10:40:27,397 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
| 10:40:27,397 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_06-b05,Sun Microsystems Inc.
| 10:40:27,397 INFO [ServerInfo] OS-System: Linux 2.6.16.13-4-smp,i386
| 10:40:27,984 INFO [Server] Core system initialized
| 10:40:31,096 INFO [WebService] Using RMI server codebase: http://MP04:8083/
| 10:40:31,122 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
| 10:40:31,426 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
| 10:40:36,185 INFO [SnmpAgentService] SNMP agent going active
| 10:40:36,782 INFO [DefaultPartition] Initializing
| 10:40:36,856 ERROR [JChannel] exception: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
| 10:40:36,883 WARN [ServiceController] Problem starting service jboss:service=DefaultPartition
| ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
| at org.jgroups.JChannel.connect(JChannel.java:328)
| at org.jboss.ha.framework.server.ClusterPartition.startService(ClusterPartition.java:298)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.Abstra
|
|
any one has idea why?? how can i start it??
when i start jboss DEFAULT i have no problem....
please help me
thanx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990913#3990913
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990913
19 years, 8 months
[JBoss jBPM] - Building from source
by onizuka82
Hi everyone,
I am facing problem when try to build from the source.
1. I use Eclipse to import the jbpm.3 and build class path to the repository.
2. When i run ant build in jbpm.3 \build folder, error occured.
The error message is a bit shorter than the orginal. I couldnt paste all in here as it will be too long.
Error message from the eclipse console
===================================================================
BUILD FAILED
C:\workspace\source\jbpm.3\build\build.xml:54: The following error occurred while executing this line:
C:\workspace\source\jbpm.3\jboss\db\build.xml:38: java.io.FileNotFoundException: JAR entry org/jbpm/ant/jbpm.ant.tasks.properties not found in C:\workspace\source\jbpm.3\jpdl\jar\target\jbpm-jpdl.jar
Total time: 1 minute 48 seconds
===================================================================
3. So i try to use the Ant to build it again without closing the eclipse but another error message show.
Error message from the eclipse console
===================================================================
check.project.dirs:
checkout.docs:
[cvs] Caught exception: CreateProcess: cvs -d:pserver:anonymous:@anoncvs.forge.jboss.com:/cvsroot/jbpm checkout -d C:\workspace\source\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build/target/projects/org.jbpm.gd.jpdl.docs -r jbpm_gpd_3_0_12_1 jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.docs error=2
checkout.site:
[cvs] Caught exception: CreateProcess: cvs -d:pserver:anonymous:@anoncvs.forge.jboss.com:/cvsroot/jbpm checkout -d C:\workspace\source\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build/target/projects/org.jbpm.gd.jpdl.site -r jbpm_gpd_3_0_12_1 jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.site error=2
checkout.feature:
[cvs] Caught exception: CreateProcess: cvs -d:pserver:anonymous:@anoncvs.forge.jboss.com:/cvsroot/jbpm checkout -d C:\workspace\source\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build/target/projects/org.jbpm.gd.jpdl.feature -r jbpm_gpd_3_0_12_1 jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.feature error=2
checkout.help:
[cvs] Caught exception: CreateProcess: cvs -d:pserver:anonymous:@anoncvs.forge.jboss.com:/cvsroot/jbpm checkout -d C:\workspace\source\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build/target/projects/org.jbpm.gd.jpdl.help -r jbpm_gpd_3_0_12_1 jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.help error=2
checkout.ui:
[cvs] Caught exception: CreateProcess: cvs -d:pserver:anonymous:@anoncvs.forge.jboss.com:/cvsroot/jbpm checkout -d C:\workspace\source\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build/target/projects/org.jbpm.gd.jpdl.ui -r jbpm_gpd_3_0_12_1 jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.ui error=2
checkout.core:
[cvs] Caught exception: CreateProcess: cvs -d:pserver:anonymous:@anoncvs.forge.jboss.com:/cvsroot/jbpm checkout -d C:\workspace\source\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build/target/projects/org.jbpm.gd.jpdl.core -r jbpm_gpd_3_0_12_1 jbpm.3/designer/jpdl/org.jbpm.gd.jpdl.core error=2
get.projects:
all:
install.eclipse:
[delete] Deleting directory C:\eclipse
BUILD FAILED
C:\workspace\source\jbpm.3\build\build.xml:56: The following error occurred while executing this line:
C:\workspace\source\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:57: The following error occurred while executing this line:
C:\workspace\source\jbpm.3\designer\jpdl\org.jbpm.gd.jpdl.build\build.xml:73: Unable to delete file C:\eclipse\configuration\org.eclipse.core.runtime\.extraData.7
Total time: 2 minutes 28 seconds
=====================================================================
4. After this error, i coudlnt open the eclipse again. The whole eclipse crashed.
Error message from the Eclipse log
=====================================================================
!MESSAGE Missing required bundle org.eclipse.ui.editors_0.0.0.
!SUBENTRY 2 org.jbpm.gd.jpdl.ui 2 0 2006-12-22 15:10:01.979
!MESSAGE Missing required bundle org.eclipse.ui.forms_0.0.0.
!SUBENTRY 2 org.jbpm.gd.jpdl.ui 2 0 2006-12-22 15:10:01.979
!MESSAGE Missing required bundle org.eclipse.jface.text_0.0.0.
!SUBENTRY 2 org.jbpm.gd.jpdl.ui 2 0 2006-12-22 15:10:01.979
!MESSAGE Missing required bundle org.eclipse.wst.common.ui_0.0.0.
!SUBENTRY 2 org.jbpm.gd.jpdl.ui 2 0 2006-12-22 15:10:01.979
!MESSAGE Missing required bundle org.eclipse.jdt.debug.ui_0.0.0.
!SUBENTRY 2 org.jbpm.gd.jpdl.ui 2 0 2006-12-22 15:10:01.979
!MESSAGE Missing required bundle org.eclipse.debug.core_0.0.0.
!SUBENTRY 2 org.jbpm.gd.jpdl.ui 2 0 2006-12-22 15:10:01.979
!MESSAGE Missing required bundle org.eclipse.core.variables_0.0.0.
====================================================================
Can anyone please tell me what is the problem behind this or provide any guide on how to overcome this.
Thank you.
Warmest regards,
Andrew
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990904#3990904
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990904
19 years, 8 months
[JBoss Seam] - Re: Excessive [could not destroy component] 1.1B1 to 1.1CR1
by lowecg2004
I had created this quick setup guide for our developers based on the information in this thread:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=93589
I hope this helps you out.
Chris.
There are a few important timeout values in the Seam environment that any Seam developer needs to be aware of.
The first one is obvious and it is the well known HTTP session-timeout value (the one that you set in web.xml). What catches most people out is that there also is a separate EJB3 SFSB timeout value. These SFSB timeout values must be set in 2 places.
Since Seam freely integrates these two environments, a difference in the two timeouts can cause apparently random exceptions like:
19:23:07,124 WARN [Contexts] Could not destroy component: login
| javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: 5r4m5v-man6m0-etofwmzy-1-etog131z-
| g
| at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:268)
| at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.removeSession(StatefulRemoveInterceptor
| .java:127)
| at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.invoke(StatefulRemoveInterceptor.java:8
| 7)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.jav
| a:77)
| ...
It is worth mentioning that there is a @CacheConfig annotation that allows you to specify the SFSB timeout on a per class basis. This offers a fine grained level of control, however you often just need to set the value once and have done with it. So in order to align the HTTP session and the SFSB timeouts, you must amend configuration files. Also note that this example sets these values to be exactly the same. It is sometimes recommended that the SFSB timeouts are set to be longer than the HTTP session timeout.
1. HTTP Session Timeout
File: WEB-INF/web.xml
<session-config>
| <session-timeout>15</session-timeout>
| </session-config>
Note: Value is in minutes;
2. SFSB Timeout Part 1
File: PROJECT_HOME/embedded-ejb/conf/ejb3-interceptors-aop.xml
Find entry matching 'domain name="Stateful Bean" extends="Base Stateful Bean" inheritBindings="true">':
<domain name="Stateful Bean" extends="Base Stateful Bean" inheritBindings="true">
| ...
| <!-- OCSS: Align this value with session timeout in web.xml -->
| <annotation expr="!class((a)org.jboss.annotation.ejb.cache.simple.CacheConfig) AND !class((a)org.jboss.annotation.ejb.Clustered)">
| @org.jboss.annotation.ejb.cache.simple.CacheConfig (maxSize=100000, idleTimeoutSeconds=900)
| </annotation>
Set the idleTimeoutSeconds value.
Note: Value is in seconds;
3. SFSB Timeout Part 2
File: JBOSS_HOME\server\default\conf\standardjboss.xml
Find entry for '<container-name>Standard Stateful SessionBean</container-name>':
| <container-configuration>
| <container-name>Standard Stateful SessionBean</container-name>
| ...
| <container-cache-conf>
| ...
| <cache-policy-conf>
| <remover-period>900</remover-period>
| <max-bean-life>900</max-bean-life>
| ...
Note: Value is in seconds; Also this config is required for every server that the Seam code is deployed to.
That is all. Aligning these three timeout values will prevent those "Could not destroy component: XXXX" exceptions and prevent some strange behaviour in your apps.
Further information and discussion, see the thread referenced at the start of this post.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990903#3990903
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990903
19 years, 8 months
[Messaging, JMS & JBossMQ] - Re: Error during queue setup
by chaituu
"chaituu" wrote : i have created empQueue in jbossmq-destinations-service.xml and same queue mentioned for message diven bean(EMPMessageDrivenBean) in jboss.xml;after deploying EMPMessageDrivenBean i am getting below error;
|
| when u look at log file at first line only empQueue was created and was bound to JNDI name: queue/empQueue but why below error was coming??
|
| server.log
| *********
|
|
| 2006-11-30 11:21:59,505 INFO [org.jboss.mq.server.jmx.Queue.empQueue] Bound to JNDI name: queue/empQueue
| 2006-11-30 11:22:01,426 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/opt/p2jboss/4.0.2/server/talon1prodcopy/farm/EMP.ear
| 2006-11-30 11:22:22,301 INFO [org.jboss.ejb.EjbModule] Deploying EMPMessageDrivenBean
| 2006-11-30 11:22:27,817 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Could not find the queue destination-jndi-name=queue/empQueue
| 2006-11-30 11:22:27,831 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] destination not found: queue/empQueue reason: javax.naming.NameNotFoundException: queue/empQueue
| 2006-11-30 11:22:27,831 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] creating a new temporary destination: queue/empQueue
| 2006-11-30 11:22:27,846 INFO [org.jboss.mq.server.jmx.Queue.empQueue] Registration is not done -> stop
| 2006-11-30 11:22:27,871 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected:
| org.jboss.deployment.DeploymentException: Error during queue setup; - nested throwable: (javax.management.MBeanException)
| at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39)
|
|
| jbossmq-destinations-service.xml
| *********************************
|
| <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
| <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager
| -1
|
|
|
|
|
|
|
|
|
| jboss.xml
| **********
| <message-driven>
| <ejb-name>EMPMessageDrivenBean</ejb-name>
| <configuration-name>Standard Message Driven Bean</configuration-name>
| <destination-jndi-name>queue/empQueue</destination-jndi-name>
| </message-driven>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990885#3990885
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990885
19 years, 8 months
[Messaging, JMS & JBossMQ] - Error during queue setup
by chaituu
i have created empQueue in jbossmq-destinations-service.xml and same queue mentioned for message diven bean(EMPMessageDrivenBean) in jboss.xml;after deploying EMPMessageDrivenBean i am getting below error;
when u look at log file at first line only empQueue was created and was bound to JNDI name: queue/empQueue but why below error was coming??
server.log
*********
2006-11-30 11:21:59,505 INFO [org.jboss.mq.server.jmx.Queue.empQueue] Bound to JNDI name: queue/empQueue
2006-11-30 11:22:01,426 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/opt/p2jboss/4.0.2/server/talon1prodcopy/farm/EMP.ear
2006-11-30 11:22:22,301 INFO [org.jboss.ejb.EjbModule] Deploying EMPMessageDrivenBean
2006-11-30 11:22:27,817 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Could not find the queue destination-jndi-name=queue/empQueue
2006-11-30 11:22:27,831 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] destination not found: queue/empQueue reason: javax.naming.NameNotFoundException: queue/empQueue
2006-11-30 11:22:27,831 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] creating a new temporary destination: queue/empQueue
2006-11-30 11:22:27,846 INFO [org.jboss.mq.server.jmx.Queue.empQueue] Registration is not done -> stop
2006-11-30 11:22:27,871 WARN [org.jboss.ejb.plugins.jms.JMSContainerInvoker] JMS provider failure detected:
org.jboss.deployment.DeploymentException: Error during queue setup; - nested throwable: (javax.management.MBeanException)
at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:39)
jbossmq-destinations-service.xml
*********************************
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
<depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager
-1
jboss.xml
**********
<message-driven>
<ejb-name>EMPMessageDrivenBean</ejb-name>
<configuration-name>Standard Message Driven Bean</configuration-name>
<destination-jndi-name>queue/empQueue</destination-jndi-name>
</message-driven>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990882#3990882
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990882
19 years, 8 months
[JBossWS] - Re: Authorization failure .NET client to secured Webservices
by cboatwright
I didn't notice a @PortComponent annotation, like:
| @PortComponent(authMethod="BASIC", urlPattern="/contextHere/athenaserver",transportGuarantee="CONFIDENTIAL")
|
Also, I'm guessing you are using the Tomcat that comes with 4.0.5.GA? If so, you should also remember to set the restrictedUserAgents attribute on the connector:
| <Connector port="443" address="${jboss.bind.address}"
| maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
| emptySessionPath="true"
| scheme="https" secure="true" clientAuth="false"
| keystoreFile="${jboss.server.home.dir}/conf/keystore_tiger"
| keystorePass="--" sslProtocol = "TLS"
| restrictedUserAgents="^.*MS Web Services Client Protocol.*$"/>
|
I'm not a VB expert so I cannot comment on that. I've used the express edition to test my secure Web services and things work just fine. I have something like:
| Dim proxy As New HelloWorldWs.HelloWorldService
|
| Try
| proxy.PreAuthenticate = True
| proxy.Credentials = New NetworkCredential("colin1", "myPass")
|
| Dim result As String
| result = proxy.echoString("J", "Scott")
| MsgBox(result)
| Catch ex As Exception
|
| MsgBox(ex.Message)
|
| End Try
|
|
Hope this helps spark some thoughts to discover your problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990866#3990866
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990866
19 years, 8 months
[JBossWS] - Document/Literal and org.w3c.dom.Element return type
by cboatwright
I read in several places that org.w3c.dom.Element gets mapped to anyType and can be used in Document/Literal endpoints. However, I cannot seem to get a simply test endpoint (using JSR-181 EJB) to work.
Using JBoss 4.0.5.GA w/ JBossWS 1.0.4.GA
| @EJB(name="PingBuildLinksEndPointBean", beanInterface=IPingBuildLinksEndPointBean.class, description="This is the ping description", beanName="PingBuildLinksEndPointBean")
| @WebService(name="PingBuildLinksEndPoint")
| @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use=SOAPBinding.Use.LITERAL)
| @PortComponent(authMethod="BASIC", urlPattern="/test.ws",transportGuarantee="CONFIDENTIAL")
| @RolesAllowed("BLDADM")
| @SecurityDomain("BuildLinksWs")
|
| /**
| * @author cboatwright
| */
| public @Stateless class PingBuildLinksEndPointBean extends AbstractDatabaseSessionEndPoint
| implements IPingBuildLinksEndPointBean
| {
| public PingBuildLinksEndPointBean()
| throws CreateException, BuildLinksException
| {
| super();
| }
|
| @WebMethod
| public Element elementPing(String arg0)
| throws BuildLinksFault
| {
| Element rv = null;
|
| log.debug("ignored arg0=" + arg0);
|
| try
| {
| rv = DOMUtils.parse("<helloWorld/>");
| }
| catch (IOException e)
| {
| throw new BuildLinksFault(e.getMessage());
| }
|
| return rv;
| }
|
I get the following exception (regardless of the length of the XML returned, the above example just has one node):
| 23:58:03,035 ERROR [[PingBuildLinksEndPointBean]] Servlet.service() for servlet PingBuildLinksEndPointBean threw exception
| org.jboss.xb.binding.JBossXBRuntimeException: Failed to find read method or field for property '_value' in class org.apache.xerces.dom.DeferredElementNSImpl
| at org.jboss.xb.binding.introspection.ClassInfo.getFieldInfo(ClassInfo.java:81)
| at org.jboss.xb.binding.introspection.FieldInfo.getFieldInfo(FieldInfo.java:155)
| at org.jboss.xb.binding.sunday.marshalling.MarshallerImpl.getJavaValue(MarshallerImpl.java:1266)
| at org.jboss.xb.binding.sunday.marshalling.MarshallerImpl.getElementValue(MarshallerImpl.java:1284)
| .. cut
|
Any advice on how to send back the result as a well-formed XML element? When I try just to do it as a string, all of the XML reserved characters get escaped ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990865#3990865
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990865
19 years, 8 months