[Messaging, JMS & JBossMQ] - DLQ issue
by Shenaz
Can anyone tell me what could be the possible cause for the following error?? Thanks a lot!!
2007-12-24 11:26:01,961 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnected to JMS provider
2007-12-24 11:26:01,965 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Trying to reconnect to JMS provider
2007-12-24 11:26:01,969 ERROR [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed DLQHandler
javax.naming.NameNotFoundException: queue/DLQ
at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:223)
at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:134)
at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:187)
at $Proxy149.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:161)
at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:238)
at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:165)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:597)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:922)
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvoker.java:1492)
at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115851#4115851
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115851
18 years, 3 months
[JBoss AOP] - pointcut other than execution in AdviceBinding
by shu_boston
Hi,
I'm start learning JBoss AOP, especially dynamic AOP.
As an example says, I wrote code as follows and it worked fine. GreetingInterceptor is called when any method in Test class is executed.
AdviceBinding binding = new AdviceBinding( "binding1", "execution(* *.Test->*(..))", null );
| binding.addInterceptor(GreetingInterceptor.class);
| AspectManager.instance().addBinding(binding);
Then, I changed the second parameter of the AdviceBinding's constructor as follows, and it doesn't work. I mean, a corresponding advice is not executed.
"execution(* *.Test->*(..)) AND within(*.Test)"
Also, when I use "call" instead of "execution" in the definition of a pointcut, the code does not work as well.
Dynamic AOP does not support pointcuts other than "execution"? or anything wrong?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115847#4115847
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115847
18 years, 3 months
[JBoss Seam] - Re: seam integration with trinidad
by pratap_pps
I changed it to createRuleBean, still the problem remains the same....
import java.util.Arrays;
import java.util.List;
import javax.faces.event.ValueChangeEvent;
import javax.faces.model.SelectItem;
import org.apache.myfaces.trinidad.component.core.input.CoreInputFile;
import org.apache.myfaces.trinidad.component.core.input.CoreInputText;
import org.apache.myfaces.trinidad.component.core.input.CoreSelectBooleanCheckbox;
import org.apache.myfaces.trinidad.component.core.input.CoreSelectOneChoice;
import org.apache.myfaces.trinidad.component.core.nav.CoreCommandButton;
import org.apache.myfaces.trinidad.component.core.output.CoreOutputLabel;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.*;
@Name("createRuleBean")
@Scope(ScopeType.SESSION)
/**
*
* Backing bean for the createRule page
*
*/
public class CreateRuleBean
{
private CoreOutputLabel label01;
........
I am also attaching the web.xml and faces-config.xml
<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<!-- Use the ADF RenderKit -->
<!-- DEFAULT/SUPPORTED LOCALE/S FOR THE DEMO -->
<default-render-kit-id>
org.apache.myfaces.trinidad.core
</default-render-kit-id>
<!-- seam on JSF 1.2 -->
<el-resolver>
org.jboss.seam.jsf.SeamELResolver
</el-resolver>
<phase-listener>
org.jboss.seam.jsf.SeamPhaseListener
</phase-listener>
</faces-config>
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<!-- rich faces -->
<context-param>
<param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
<param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>
<!-- Seam -->
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
<filter-name>Seam Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
<filter-mapping>
<filter-name>Seam Filter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>
<!-- Trinidad -->
<filter-name>trinidad</filter-name>
<filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
<filter-mapping>
<filter-name>trinidad</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<!-- resource loader servlet -->
<servlet-name>resources</servlet-name>
<servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
<!-- source code servlet -->
<servlet-name>source</servlet-name>
<servlet-class>org.apache.myfaces.trinidaddemo.webapp.SourceCodeServlet</servlet-class>
<servlet-mapping>
<servlet-name>resources</servlet-name>
<url-pattern>/adf/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>source</servlet-name>
<url-pattern>*.source</url-pattern>
</servlet-mapping>
<!-- Faces Servlet -->
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
</servlet-mapping>
<!-- JSF parameters -->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
<session-config>
<session-timeout>10</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
</web-app>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115842#4115842
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115842
18 years, 3 months