[jboss-user] [Messaging, JMS & JBossMQ] - Re: Deploy Message listener as MBean service get No ClassLoa
loseyourself
do-not-reply at jboss.com
Sun Jul 22 21:30:54 EDT 2007
Thanks for your reply, adrian.
Ok, I create a jar and renamed it as sar, and deploy it in the JBOSS_HOME/server/default/deploy as Docs.sar, but I get following exception:
2007-07-23 11:16:39,903 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/D:/Adobe/LiveCycle/jboss/server/all/deploy/Docs.sar/
org.jboss.deployment.DeploymentException: au.gov.nsw.community.mail.TopicMailListener.(); - nested throwable: (java.lang.NoSuchMethodException: au.gov.nsw.community.mail.TopicMailListener.())
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:139)
at org.jboss.system.ServiceController.install(ServiceController.java:198)
at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:204)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy7.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:460)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
my TopicMailListener.java code is as following:
private String url;
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public TopicMailListener(String name) {
super();
this.name = name;
try {
this.initializeListener();
} catch (Exception e) {
LOGGER.info("Error creating listener: " + e);
e.printStackTrace();
}
}
public TopicMailListener(String url, String name) {
super();
this.url = url;
this.name = name;
try {
this.initializeListener();
} catch (Exception e) {
LOGGER.info("Error creating listener: " + e);
e.printStackTrace();
}
}
the jboss-service.xml is:
<?xml version="1.0" encoding="UTF-8"?>
< server>
< mbean code="au.gov.nsw.community.mail.TopicMailListener" name="au.gov.nsw.community.mail:service=TopicMailListener">
< attribute name="Url">10.65.240.244:1099
< attribute name="Name">topic/testTopic
< depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
< depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager
<!--
< attribute name="SecurityConf">
< security>
< role name="guest" read="true" write="true"/>
< role name="publisher" read="true" write="true" create="false"/>
< role name="durpublisher" read="true" write="true" create="true"/>
< /security>
< /attribute>
-->
the sar artitecture is:
META-INF/MANIFEST.MF
META-INF/jboss-service.xml
README.txt
WebContent/FormDataResubmit.jsp
WebContent/FormDataResubmitSuccess.jsp
WebContent/META-INF/MANIFEST.MFWebContent/WEB-INF/lib/AdobeCSAUtils.jar
WebContent/WEB-INF/lib/DocumentServicesLibrary.jar
WebContent/WEB-INF/lib/adobe-common.jar
WebContent/WEB-INF/lib/axis-ant.jar
WebContent/WEB-INF/lib/axis.jar
WebContent/WEB-INF/lib/commons-discovery.jar
WebContent/WEB-INF/lib/commons-logging.jar
WebContent/WEB-INF/lib/datamanager-client.jar
WebContent/WEB-INF/lib/formserver-client.jar
WebContent/WEB-INF/lib/jaxrpc.jar
WebContent/WEB-INF/lib/log4j-1.2.8.jar
WebContent/WEB-INF/lib/log4j.properties
WebContent/WEB-INF/lib/saaj.jar
WebContent/WEB-INF/lib/serializer.jar
WebContent/WEB-INF/lib/um-client.jar
WebContent/WEB-INF/lib/wsdl4j.jar
WebContent/WEB-INF/lib/xalan.jar
WebContent/WEB-INF/lib/xercesImpl.jar
WebContent/WEB-INF/lib/xml-apis.jar
WebContent/WEB-INF/lib/xmlform-client.jar
WebContent/WEB-INF/web.xml
WebContent/env.jsp
WebContent/home.jsp
WebContent/index.jsp
WebContent/params.jsp
au/gov/nsw/community/forms/exception/ProcessingException.class
au/gov/nsw/community/forms/livecycle/FormsProxy.class
au/gov/nsw/community/forms/processor/DataSubmitHandler.class
au/gov/nsw/community/forms/servlet/FormRequestServlet.class
au/gov/nsw/community/forms/servlet/FormDataResubmitServlet.class
au/gov/nsw/community/forms/servlet/FormSubmitServlet.class
au/gov/nsw/community/forms/servlet/AbstractDocsServlet.class
au/gov/nsw/community/forms/siebel/SiebelProxy.class
au/gov/nsw/community/mail/MailService$1.class
au/gov/nsw/community/mail/MailService.class
au/gov/nsw/community/mail/TopicMailListener.class
au/gov/nsw/community/mail/TopicMailListenerMBean.class
au/gov/nsw/community/mail/MailMessage.class
au/gov/nsw/community/mail/TopicMailSender.class
au/gov/nsw/community/util/XMLUtils.class
au/gov/nsw/community/util/StringUtils.class
au/gov/nsw/community/util/FileUtils.class
au/gov/nsw/community/util/XFAStipper.class
au/gov/nsw/community/xml/XMLUtilities.class
test/XPathTest.class
.classpath
.project
sampleData.xml
sample.xml
I thought it is related with the constructor method, but don't know how to fix, could you please advise me? I do appreciate your help.
hj
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066516#4066516
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066516
More information about the jboss-user
mailing list