Email Notification Error
by Neha Pandey
Hi ,
Its very urgent.
I want to send an email to the user after the successful action pipeline
is completed. I have used NotifyEmail for this but this is not working.
The SMTP host is not picked up from the jboss-properties.xml . My SMTP
Server is 172.25.8.13 and it can accept null username and password.I have
set SMTP host in both
jbossesb.sar/jbossesb-properties and jbossesb-properties in my application
folder.
The error is
Code:
2008-08-27 16:18:42,546 INFO [STDOUT] ConsoleNotifier 2008/08/27
04:18:42.546<<CountryDetais><Country Code="us"><Name>United States of
America</Name><Rate>8.33</Rate><ISD>71</ISD>
</Country><Country Code="in"><Name>India</Name><Rate>0</Rate>
<ISD>91</ISD></Country><Country
Code="au"><Name>Australia</Name><Rate>7.69</Rate><ISD>21</ISD></Country></CountryDetais>>
2008-08-27 16:18:42,562 WARN [org.jboss.soa.esb.helpers.Email]
'org.jboss.soa.esb.mail.smtp.auth' s
et to an empty value.
2008-08-27 16:18:42,562 INFO [org.jboss.soa.esb.helpers.Email]
Initialising mail server sesson. Pro
perties: {mail.smtp.port=25, mail.smtp.auth=true,
mail.smtp.host=localhost}
2008-08-27 16:18:43,671 ERROR
[org.jboss.soa.esb.notification.NotificationList] Can't instantiate ta
rget <target class="NotifyEmail" from="Neha.Pandey(a)lntinfotech.com"
sendTo="Neha.Pandey(a)lntinfotech.com" subject="Hello">
</target>
org.jboss.soa.esb.notification.NotificationException:
javax.mail.MessagingException: Exception readi
ng response;
nested exception is:
java.net.SocketException: Connection reset
at
org.jboss.soa.esb.notification.NotifyEmail.sendNotification(NotifyEmail.java:127)
at
org.jboss.soa.esb.notification.NotificationList.notifyAll(NotificationList.java:164)
at org.jboss.soa.esb.actions.Notifier.notifyOK(Notifier.java:93)
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.soa.esb.listeners.message.ActionProcessorMethodInfo.processSuccess(ActionProcessorMeth
odInfo.java:165)
at
org.jboss.soa.esb.listeners.message.OverriddenActionLifecycleProcessor.processSuccess(Overridden
ActionLifecycleProcessor.java:108)
at
org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.notifySuccess(ActionProcessingPipel
ine.java:610)
at
org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.ja
va:384)
at
org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareLis
tener.java:530)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketException: Connection reset
at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1611)
at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1369)
at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
at javax.mail.Service.connect(Service.java:310)
at javax.mail.Service.connect(Service.java:169)
at javax.mail.Service.connect(Service.java:118)
at javax.mail.Transport.send0(Transport.java:188)
at javax.mail.Transport.send(Transport.java:118)
at org.jboss.soa.esb.helpers.Email.sendMessage(Email.java:181)
at
org.jboss.soa.esb.notification.NotifyEmail.sendEmailNotification(NotifyEmail.java:151)
at
org.jboss.soa.esb.notification.NotifyEmail.sendNotification(NotifyEmail.java:115)
... 14 more
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at
com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at
com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:88)
at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1589)
... 24 more
I have set the properties in Jboss-properties.xml file
Code:
<properties name="transports" depends="core">
<property name="org.jboss.soa.esb.mail.smtp.host"
value="172.25.8.13"/>
<property name="org.jboss.soa.esb.mail.smtp.user" value=""/>
<property name="org.jboss.soa.esb.mail.smtp.password" value=""/>
<property name="org.jboss.soa.esb.mail.smtp.port" value="25"/>
</properties>
My Jbossesb.xml is
Code:
<service category="QuickstartTransformCSV" name="SimpleListener"
description="Hello World">
<listeners>
<jms-listener name="CSVJMS-Gateway"
busidref="quickstartCSVGwChannel" maxThreads="1" is-gateway="true"/>
<jms-listener name="CSVquickstart"
busidref="quickstartCSVEsbChannel" maxThreads="1" />
</listeners>
<actions mep="OneWay">
<action class="org.jboss.soa.esb.actions.Notifier"
name="notificationAction">
<property
name="notification-details">
<NotificationList type="OK">
<target class="NotifyConsole"/>
<target class="NotifyQueues">
<messageProp name="quickstart"
value="Calculator_Response"/>
<queue
jndiName="queue/quickstart_log_Queue"/>
</target>
<target class="NotifyEmail"
from="Neha.Pandey(a)lntinfotech.com" sendTo="Neha.Pandey(a)lntinfotech.com"
subject="Hello">
</target>
</NotificationList>
</property>
<property name="okMethod" value="notifyOK"/>
<!--property name="exceptionMethod" value="notifyError"/-->
</action>
<action name="print-before"
class="org.jboss.soa.esb.actions.SystemPrintln">
<property name="message"
value="[transform_CSV2Smooks_Intermediate_format] Message before CVS to
XML transformation" />
</action>
<!--
Transform 1: CSV to XML...
-->
<action name="transform-from-csv"
class="org.jboss.soa.esb.actions.converters.SmooksTransformer">
<property name="resource-config"
value="/smooks-res.xml" />
<property name="from-type"
value="text/csv:country-list" />
<property name="to-type"
value="text/xml:smooks-country-xml" />
</action>
<action
name="print-after-csv-tranform"
class="org.jboss.soa.esb.actions.SystemPrintln">
<property name="message"
value="[transform_CSV2Smooks_Intermediate_format] Message after CVS to XML
transformation" />
</action>
<!--
Transform 2: XML to XML...
-->
<action name="transform-smooksXml-to-canonicalXml"
class="org.jboss.soa.esb.actions.converters.SmooksTransformer">
<property name="resource-config"
value="/smooks-res.xml" />
<property name="from-type"
value="text/xml:smooks-country-xml" />
<property name="to-type"
value="text/xml:canonical-country-xml" />
</action>
<action
name="print-after-xml-transform"
class="org.jboss.soa.esb.actions.SystemPrintln">
<property name="message" value=">>>>
Message after Smooks intermediate xml -> target xml : " />
</action>
<!-- The next action is for Continuous
Integration testing -->
<action name="testStore"
class="org.jboss.soa.esb.actions.TestMessageStore"/>
</actions>
</service>
How should i go about this?What is the problem?
Thanks & Regards,
Neha Pandey
Center of Excellence - SOA Group
L &T Infotech Limited
Gate no. - 5, Technology Center ,
4th Floor - West side
Powai.
Mumbai 400 072.
The information contained in this mail is classified as
( ) L&T Infotech Proprietary
( ) L&T Infotech Confidential
( ) L&T Infotech Internal Use
( ) L&T Infotech General Business
Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com
This Document is classified as:
L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech
Internal Use Only L&T Infotech General Business
This Email may contain confidential or privileged information for the
intended recipient (s) If you are not the intended recipient, please do
not use or disseminate the information, notify the sender and delete it
from your system.
______________________________________________________________________
16 years, 6 months
Email Client in Jboss esb
by Neha Pandey
Hi,
I am working with jboss-soa-p.4.2.0 which consist of JBoss ESB 4.2.1 GA .I
want to develop a service that gets invoked as soon as some specific email
comes to my mail id. I have a pop3 mail server.
For this i used the sample that is given in JCA Message inflow and i have
made the changes in jbossesb file but when Iam executing the sample i get
following error . It is unable to perform folder check .All my mails are
received in my inbox. How should i define the folder name in the
jbosesb.xml? Or is there any other problem?
Code:
2008-08-26 12:41:14,988 INFO
[org.jboss.jms.server.destination.QueueService] Queue[/queue/quickstar
t_helloworld_mail_Request_esb] stopped
2008-08-26 12:41:15,081 INFO
[org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer] create esb serv
ice, Quickstart_helloworld_mail.esb
2008-08-26 12:41:15,097 INFO
[org.jboss.jms.server.destination.QueueService] Queue[/queue/quickstar
t_helloworld_mail_Request_esb] started, fullSize=200000, pageSize=2000,
downCacheSize=2000
2008-08-26 12:41:15,097 INFO [org.jboss.resource.deployment.RARDeployment]
Required license terms e
xist, view META-INF/ra.xml in
.../tmp/deploy/tmp15160Quickstart_helloworld_mail.esb-contents/mail-ra
.rar
2008-08-26 12:41:15,222 INFO [org.quartz.core.QuartzScheduler] Scheduler
DefaultQuartzScheduler_$_N
ON_CLUSTERED started.
2008-08-26 12:41:46,222
ERROR [org.jboss.resource.adapter.mail.inflow.MailActivation] Failed to
execute folder check, spec=MailActivationSpec(mailServer=192.168.120.210,
storeProtocol=pop, mailFolder=Inbox, pollingInterval=30000,
messageSelector=null, userName=neha.pandey@robotics, maxMessages=1,
debug=false, starttls=false)
2008-08-26 12:42:17,190
ERROR [org.jboss.resource.adapter.mail.inflow.MailActivation] Failed to
execute folder check, spec=MailActivationSpec(mailServer=192.168.120.210,
storeProtocol=pop, mailFolder=Inbox, pollingInterval=30000,
messageSelector=null, userName=neha.pandey@robotics, maxMessages=1,
debug=false, starttls=false)
My jboss esb file is
Code:
<services>
<service category="MailServiceESB" name="MailListener"
description="Hello World Mail Service">
<listeners>
<jca-gateway name="Mail-JCA-Gateway"
adapter="Quickstart_helloworld_mail.esb#mail-ra.rar"
endpointClass="org.jboss.soa.esb.samples.quickstart.helloworld_mail.MailEndpoint"
is-gateway="true" transacted="false">
<activation-config>
<property name="mailServer"
value="192.168.120.210"/>
<property name="storeProtocol" value="pop"/>
<property name="mailFolder" value="*"/>
<property name="userName"
value="neha.pandey@lntrobotics"/>
<property name="password" value="Newuser123"/>
<property name="pollingInterval" value="30000"/>
</activation-config>
</jca-gateway>
<jms-listener name="JMS-ESBListener"
busidref="quickstartEsbChannel"
maxThreads="1"
/>
</listeners>
<actions>
<action name="action1"
class="org.jboss.soa.esb.samples.quickstart.helloworld_mail.MyMailListenerAction"
process="displayMessage"
/>
<action name="action2"
class="org.jboss.soa.esb.actions.SystemPrintln">
<property name="printfull" value="true"/>
</action>
</actions>
</service>
</services>
What should i do?
Thanks & Regards,
Neha Pandey
Center of Excellence - SOA Group
L &T Infotech Limited
Gate no. - 5, Technology Center ,
4th Floor - West side
Powai.
Mumbai 400 072.
______________________________________________________________________
16 years, 6 months
ESB Message Sizes
by Blaine Mincey
I have a couple of questions related to message sizes in the JBoss ESB:
1. What is the largest size message the JBoss ESB can handle?
2. Does anyone have any 'best practice' suggestions in terms of
managing message size on the ESB?
Thanks in advance!
Blaine Mincey
16 years, 6 months
Unable to find document url of META-INF/jboss-esb.xml
by 钱宇虹
Hi all,
I created a helloworld.esb but get the following error when deploy. Any body can help?
14:46:57,078 INFO [JBoss4ESBDeployer] create esb service, helloworld.esb
14:46:57,078 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss-4.2.2.GA/server/default/deploy/helloworld.esb
org.jboss.deployment.DeploymentException: Unable to find document url of META-INF/jboss-esb.xml in: file:/D:/jboss-4.2.2.GA/server/default/deploy/helloworld.esb
at org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer.create(JBoss4ESBDeployer.java:247)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:194)
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:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
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:597)
at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
at sun.reflect.GeneratedMethodAccessor90.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Lucy
16 years, 7 months
No ClassLoaders found for: org.jboss.jms.server.destination.QueueService
by 钱宇虹
Hi all,
I created a helloworld.esb but get the following error when deploy. Any body can help?
13:03:32,125 ERROR [MainDeployer] Could not create deployment: file:/D:/jboss-4.2.2.GA/server/default/tmp/deploy/tmp13517helloworld.esb-contents/classes/jbm-queue-service.xml
org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.jms.server.destination.QueueService; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.server.destination.QueueService)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
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:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.server.destination.QueueService
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1204)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:193)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
... 80 more
13:03:51,656 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@99728d52 { url=file:/D:/jboss-4.2.2.GA/server/default/deploy/helloworld.esb }
deployer: org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer@720f6c
status: Deployment FAILED reason: No ClassLoaders found for: org.jboss.jms.server.destination.QueueService; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.jms.server.destination.QueueService)
state: FAILED
watch: file:/D:/jboss-4.2.2.GA/server/default/deploy/helloworld.esb
altDD: null
lastDeployed: 1218085412125
lastModified: 1218085414000
mbeans:
Lucy
16 years, 7 months
Re: jbossesb project wizard
by Jeff Yu
Hi Lucy,
I have gone through that tool, it can't be seen as an 'project wizard' (
For the wizard, it will give you an option said 'New -> JBoss ESB
project'..), it is an jboss-esb.xml editor, it provides a GUI to help
you do the configuration. ;-), we are not saying that we will drop this
tool plugin, however, we will enhance this tool, such as providing a
drag n drop, introducing some icons etc. Please correct me if I am
wrong, Kevin.
BTW: I guess the links will be a challenge for Kevin.. ;).
-Jeff
钱宇虹 wrote:
>
> Kevin and Jeff:
>
> I have found a chinese website http://www.jbossweek.com/ , where
> there are two articles talking about
> ESB development on Eclipse3.3 with 5 plug-ins, I think it might be the
> same 'jbossesb project wizard' as is described by Kevin in the
> following email.
>
> these 2 articles are
> 1) http://www.jbossweek.com/2008/06/jbosstools-install/
> 2) http://www.jbossweek.com/2008/06/jbosstools-tutorial-jbossesb/
>
> As a tutorial these two articles are not very clear (even some
> mistakes in it) but good enough for me to figure out based on my
> working knowledge and experience.
>
> I think this 'jbossesb project wizard' is very good but why no
> longer supported?
>
>
>
>
> Lucy
>
> 在2008-08-04,"Jeff Yu" <cyu(a)redhat.com> 写道:
> >Thanks Kevin, Interesting.. Good to know. ;-)
> >
> >-Jeff
> >
> >Kevin Conner wrote:
> >> Jeff Yu wrote:
> >>> One correction, when I say 'jbossesb development tool', I mean there
> >>> is no jbossesb project wizard, but we did have the jboss-esb editor.;)
> >>
> >> Actually there used to be a 'jbossesb project wizard' plugin for
> >> eclipse but this has not been updated and is no longer supported. It
> >> was initially done by the ESB team but is now being handled by the
> >> tooling team.
> >>
> >> Kev
> >>
> >
> >--
> >Cheers
> >Jeff Yu
> >cyu(a)redhat.com
> >
> >JBoss, a Divsion of Red Hat
> >
>
--
Cheers
Jeff Yu
cyu(a)redhat.com
JBoss, a Divsion of Red Hat
16 years, 7 months
help: ESB service development tutorial
by 钱宇虹
Hi all,
I'd like to develope a ESB service using JBoss Tools 2.1.1, I have already installed Jboss AS 4.2.2GA + JBossESB 4.3GA + JBossTools 2.1.1 on my computer, what I need is a tutorial that can guides me step by step to write action code and configuration files like jboss-esb.xml, deployment.xml and queue-service.xml, and then deploy and test. My question is does JBOSS ESB provide such detail docs ? if it does, where I can find it?
Thanks
Lucy
16 years, 7 months
esb - sql-provider - how to filter by current system_date
by Raghavan TV
I have a simple table where I store my Orders.
e.g.
DB - Oracle 10g
Table
ORDER_QUEUE
----------------------------------------
ORDER_ID NUMBER(5)
FIELD1 VARCHAR2(10)
FIELD2 VARCHAR2(10)
ORDER_DATE DATE
ESB_STATUS VARCHAR2(1)
TIMESTAMP_COL DATE
-----------------------------------------
My requirement is to process only those records where ORDER_DATE =
Current System Date that hosts my AppServer
Am trying to work with the sample provided. How do I configure my
where condition to pick only those order that matches current system
date?
<sql-bus busid="helloSQLChannel" >
<sql-message-filter
tablename="ORDER_QUEUE"
status-column="ESB_STATUS"
------->?? where-condition="ORDER_DATE = ()"
message-column="message"
message-id-column="ORDER_ID"
insert-timestamp-column="TIMESTAMP_COL"
/>
</sql-bus>
I updated the where condition as follows and it works
where-condition="TO_CHAR(ORDER_DATE,'DD-MON-YYYY') = (SELECT
TO_CHAR(SYSDATE,'DD-MON-YYYY') FROM DUAL)"
But the query is more specific to a Oracle DB. Also if the DB and
AppServer are in different TZ, we have a problem
Is there some other workaround to use the AppServer Date in the
where-condition ?
Thanks,
-Raghav
16 years, 7 months
Re:Re: [esb-users] deloy jbossesb to JBOSS AS problem
by 钱宇虹
Tom,
It does works. Thanks a lot.
Have a nice weekend.
Lucy
在2008-08-02,"Tom Fennelly" <tom.fennelly(a)jboss.com> 写道:
>Hi Lucy.
>
>Try setting the org.jboss.esb.server.home to "D:/jboss-4.2.2.GA " i.e.
>try using forward slashes.
>
>Also... please don't cross post on the mailing list :-)
>
>Regards,
>
>T.
>
>
>钱宇虹 wrote:
>>
>> Hi all,
>>
>> I am having trouble to deloy jbossesb to JBOSS AS. Any help are highly apprieciated :
>>
>>
>>
>>
>> 1) I use jbossesb-4.3.GA.zip and jboss4.2.2.GA.zip.
>> 2) I update the deployment.properties as follows:
>>
>>
>> org.jboss.esb.server.home=D:\jboss-4.2.2.GA
>> org.jboss.esb.server.config=default
>>
>>
>>
>> After I run "ant" or "ant deploy",I got error messages: Could not determine JMS provider:
>>
>> details as follows:
>>
>> D:\jbossesb-4.3.GA\install>ant deploy
>> Buildfile: build.xml
>> check.deploy.props:
>> dependencies.source:
>> dependencies.jbossesb:
>> dependencies:
>> jms.config.check:
>> BUILD FAILED
>> D:\jbossesb-4.3.GA\install\build.xml:70: Could not determine JMS provider
>> Total time: 0 seconds
>>
>>
>> Lucy
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> esb-users mailing list
>> esb-users(a)lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/esb-users
>>
>
>--
>Red Hat:
>Registered Address: Red Hat Ltd, Brian O' Donnell and Partners, 62 Merrion Square, Dublin 2, Ireland.
>Registered in the Companies Registration Office, Parnell House, 14 Parnell Square, Dublin 1, Ireland, at No. 304873
>Directors: Charlie Peters (USA), Michael Cunningham (USA). David Owens, Brendan Lane
>
16 years, 7 months
Re: [esb-users] deloy jbossesb to JBOSS AS problem
by Jeff Yu
Hi Tom,
Good point, update the ant script approach is better. ;-)
Thanks
Jeff
Tom Fennelly wrote:
> Hey Jeff.
>
> I'd guess it probably is documented, but who reads docs ;-) ?
>
> I think it could be fixed in the ant script by doing a to-unix
> conversion on the path property set by the user. That way it
> shouldn't matter because the back slashes will be flipped.
>
> T.
>
>
> Jeff Yu wrote:
>> Hi Tom,
>>
>> Do we need to explicitly add this in the 'Getting Started' document
>> for ESB 4.4 release, otherwise, windows users will easily forgot to
>> use the forward slash, as they are used to use the backward slash.
>>
>> Thoughts?
>>
>> Jeff
>>
>> ??? wrote:
>>> Tom,
>>> It does works. Thanks a lot.
>>> Have a nice weekend.
>>> Lucy
>>>
>>> ?2008-08-02,"Tom Fennelly" <tom.fennelly(a)jboss.com> ??:
>>> >Hi Lucy.
>>> >
>>> >Try setting the org.jboss.esb.server.home to "D:/jboss-4.2.2.GA "
>>> i.e. >try using forward slashes.
>>> >
>>> >Also... please don't cross post on the mailing list :-)
>>> >
>>> >Regards,
>>> >
>>> >T.
>>> >
>>> >
>>> >??? wrote:
>>> >> >> Hi all,
>>> >> >> I am having trouble to deloy jbossesb to JBOSS AS. Any help
>>> are highly apprieciated :
>>> >> >>
>>> >> >>
>>> >> 1) I use jbossesb-4.3.GA.zip and jboss4.2.2.GA.zip.
>>> >> 2) I update the deployment.properties as follows: >>
>>> >>
>>> >> org.jboss.esb.server.home=D:\jboss-4.2.2.GA
>>> >> org.jboss.esb.server.config=default
>>> >>
>>> >> >> >> After I run "ant" or "ant deploy",I got error messages:
>>> Could not determine JMS provider: >> >> details as follows:
>>> >> >> D:\jbossesb-4.3.GA\install>ant deploy
>>> >> Buildfile: build.xml
>>> >> check.deploy.props:
>>> >> dependencies.source:
>>> >> dependencies.jbossesb:
>>> >> dependencies:
>>> >> jms.config.check:
>>> >> BUILD FAILED
>>> >> D:\jbossesb-4.3.GA\install\build.xml:70: Could not determine JMS
>>> provider
>>> >> Total time: 0 seconds
>>> >> >> >> Lucy
>>> >> >>
>>> ------------------------------------------------------------------------
>>>
>>> >>
>>> >> _______________________________________________
>>> >> esb-users mailing list
>>> >> esb-users(a)lists.jboss.org
>>> >> https://lists.jboss.org/mailman/listinfo/esb-users
>>> >> >
>>> >-- >Red Hat:
>>> >Registered Address: Red Hat Ltd, Brian O' Donnell and Partners, 62
>>> Merrion Square, Dublin 2, Ireland.
>>> >Registered in the Companies Registration Office, Parnell House, 14
>>> Parnell Square, Dublin 1, Ireland, at No. 304873
>>> >Directors: Charlie Peters (USA), Michael Cunningham (USA). David
>>> Owens, Brendan Lane
>>> >
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> esb-users mailing list
>>> esb-users(a)lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/esb-users
>>>
>>
>
--
Cheers
Jeff Yu
cyu(a)redhat.com
JBoss, a Division of Red Hat
16 years, 7 months