[Design of POJO Server] - Re: What supplies the destination ActivationConfigProperty?
by scott.stark@jboss.org
I kept running into this so I added a hack to ensure the destination and destinationType properties were in the activation config. I don't see how a legacy 2.0 mdb deployment could have been providing the info needed by the JBossMessageEndpointFactory.augmentActivationConfigProperties().
| // Another hack for pre-ejb 2.1 deployments?
| else if(properties.containsKey("destination") == false)
| {
| String jndiName = metaData.getDestinationJndiName();
| if(jndiName != null)
| {
| org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData acpmd = new
| org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData();
| acpmd.setActivationConfigPropertyName("destination");
| acpmd.setValue(jndiName);
| ActivationConfigPropertyMetaData wrapper = new ActivationConfigPropertyMetaData(acpmd);
| properties.put("destination", wrapper);
| }
| String type = metaData.getDestinationType();
| if(type != null)
| {
| org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData acpmd = new
| org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData();
| acpmd.setActivationConfigPropertyName("destinationType");
| acpmd.setValue(type);
| ActivationConfigPropertyMetaData wrapper = new ActivationConfigPropertyMetaData(acpmd);
| properties.put("destinationType", wrapper);
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096334#4096334
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096334
18 years, 5 months
[Design of POJO Server] - Re: What supplies the destination ActivationConfigProperty?
by scott.stark@jboss.org
I added additional default hacks to the JBossMessageEndpointFactory, and am back to this exception, although the test runs. Can you look at getting the org.jboss.test.cts.test.MDBUnitTestCase running cleanly Adrian? I can't see where these unspecified values were coming from before the metadata change. There are also numerous errors coming from the jms layer about not finding a session, so it seems the shutdown on undeployment is unclean.
| org.jboss.deployment.DeploymentException: Required config property RequiredConfigPropertyMetaData@5fb8424e[name=destination descriptions=[DescriptionMetaData@629609cc[language=en]]] for messagingType 'javax.jms.MessageListener' not found in activation config [] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'
| at org.jboss.resource.deployment.ActivationSpecFactory.createActivationSpec(ActivationSpecFactory.java:95)
| at org.jboss.resource.deployers.RARDeployment.createActivationSpec(RARDeployment.java:312)
| at org.jboss.resource.deployers.RARDeployment.internalInvoke(RARDeployment.java:276)
| at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory.createActivationSpec(JBossMessageEndpointFactory.java:453)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096256#4096256
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096256
18 years, 5 months
[Design of JBossCache] - javax.servlet.ServletException: Cannot find ActionMappings o
by divya317
Hello,
I am working on an Struts application> I am trying to run it on JBOSS but when I run it .. It shows me an error :
javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.Customer_jsp._jspService(Customer_jsp.java:108)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
But when I run the same on TOMCAT it willl work fine....
Through net search I found that the must be some strutst jar file were missing .therefore this error is appearing ... now, My question is how to add those file on my LIB folder...
My struts Congif is here :
struts-config>
<data-sources />
<form-beans>
<form-bean name="CustomerActionForm" type="com.CustomerWeb.CustomerActionForm"></form-bean>
</form-beans>
<global-exceptions />
<global-forwards>
</global-forwards>
<action-mappings>
</action-mappings>
<message-resources parameter="com.CustomerWeb.ApplicationResources" />
</struts-config>
and my Web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>Customer.jsp</welcome-file>
</welcome-file-list>
</web-app>
I add struts compatibility throught Myeclipse >> Struts capability >> struts 1.2
Thanks
Divya
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096248#4096248
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096248
18 years, 5 months
[Design of POJO Server] - Re: What supplies the destination ActivationConfigProperty?
by scott.stark@jboss.org
I reverted the default and have the MessageDrivenContainer selecting the old default now, and the MDBUnitTestCase is passing. Still seeing another related error where the null class is not being dealt with correctly that I'm looking at:
| 10:37:46,996 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/SubclassMDB@1556357403,plugin=invoker,service=EJB state=Create mode=Manual requiredState=Installed
| org.jboss.deployment.DeploymentException: Could not load messaging-type class null
| at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:52)
| at org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory.resolveMessageListener(JBossMessageEndpointFactory.java:295)
| at org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory.startService(JBossMessageEndpointFactory.java:193)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:299)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4096222#4096222
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4096222
18 years, 5 months