[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xmlblaster] [newbie question] cannot connect to xmlBlaster server from web service



Hi,
I am new to xmlBlaster and would appreciate any advice or help on a current problem I am facing.


I am trying to create a simple Java web service that provides one method for publishing a message
to the xmlBlaster server. I first created a class by following the HelloWordPublish.java example and it worked fine.
I then deploy it as a web service by using axis and tomcat. However, when it is in the web service form,
it is not able to establish a connection to the server. By looking a the log
produced in the tomcat window (attached below), it is not able to initialise the persistent queue,
but I am not sure what is really wrong. Initially I thought it was a classpath problem, and I tried placing xmlBlaster.jar
in different places (such as tomcat\common\lib, tomcat\webapps\axis\WEB-INF\lib), but the problem still persists.


BTW, I am using xmlBlaster 1RC2, Tomcat 5.5.4, Axis 1.2 RC2 and JDK 1.5. Thanks!

regards,
Daniel


----------------------------------- messages in Tomcat window when running as web service ---------------------------------------


Property: Loading xmlBlaster.properties from CLASSPATH file:/E:/jakarta-tomcat-5
.5.4/webapps/axis/WEB-INF/lib/xmlBlaster.jar!/xmlBlaster.properties
Property: No args array given.
2004-12-13 18:24:38,102 [http-8080-Processor25] INFO org.infuse.messaging.publi
sh.impl.PublisherImpl - set TopicProperty:
<topic readonly='false' destroyDelay='-1' createDomEntry='true'>
<queue relating='history' maxEntries='10' maxEntriesCache='10'/>
</topic>
2004-12-13 18:24:38,222 [http-8080-Processor25] INFO org.infuse.messaging.publi
sh.impl.PublisherImpl - connecting to xmlBlaster. Connect qos:
<qos>
<securityService type="htpasswd" version="1.0"><![CDATA[
<user>lchungyo</user>
<passwd>secret</passwd>
]]></securityService>
<session name='client/lchungyo' timeout='86400000' maxSessions='10' clearSessi
ons='false' reconnectSameClientOnly='false'/>
<queue relating='connection' maxEntries='10000000' maxEntriesCache='1000'>
<address type='IOR' dispatchPlugin='undef'>


</address>
</queue>
<queue relating='subject'/>
<queue relating='callback' maxEntries='1000' maxEntriesCache='1000'/>
</qos>
[Dec 13, 2004 6:24:38 PM INFO http-8080-Processor25 XmlBlasterAccess] Loaded se
curity plugin=htpasswd version=1.0
[Dec 13, 2004 6:24:38 PM ERROR http-8080-Processor25 org.xmlBlaster.util.queue.c
ache.CacheQueueInterceptorPlugin-connection:client/lchungyo] Could not initializ
e the persistent queue 'connection:client/lchungyo'. Is the JDBC Driver jar file
in the CLASSPATH ? Is the DB up and running ? We continue RAM based ...XmlBlast
erException serverSideException=false node=[client/lchungyo1102933478222] locati
on=[org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin-connection:client/
lchungyo/type 'JDBC' version '1.0']
java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/BoundedLinkedQu
eue
stackTrace=java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/Boun
dedLinkedQueue
at org.xmlBlaster.util.queue.jdbc.JdbcConnectionPool.initialize(JdbcConn
ectionPool.java:419)
at org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin.getJdbcQueu
eManagerCommonTable(JdbcQueueCommonTablePlugin.java:155)
at org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin.initialize(
JdbcQueueCommonTablePlugin.java:217)
at org.xmlBlaster.util.queue.QueuePluginManager.getPlugin(QueuePluginMan
ager.java:83)
at org.xmlBlaster.util.queue.QueuePluginManager.getPlugin(QueuePluginMan
ager.java:59)
at org.xmlBlaster.util.queue.cache.CacheQueueInterceptorPlugin.initializ
e(CacheQueueInterceptorPlugin.java:266)
at org.xmlBlaster.util.queue.QueuePluginManager.getPlugin(QueuePluginMan
ager.java:83)
at org.xmlBlaster.util.queue.QueuePluginManager.getPlugin(QueuePluginMan
ager.java:73)
at org.xmlBlaster.client.XmlBlasterAccess.connect(XmlBlasterAccess.java:
220)
.......
.... the many none xmlBlaster "at" lines deleted
.......
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:595)
versionInfo=version=1.RC2,revision=1.RC2,os.name=Windows XP,os.version=5.1,java.
vm.vendor=Sun Microsystems Inc.,java.vm.version=1.5.0-b64,os.arch=x86,build.time
stamp=12/02/2004 11:29 AM,build.java.vendor=Sun Microsystems Inc.,build.java.ver
sion=1.5.0
errorCode description=http://www.xmlblaster.org/xmlBlaster/doc/requirements/admi
n.errorcodes.listing.html#internal.unknown
The propery settings are:
<queue relating='connection' maxEntries='10000000' maxEntriesCache='1000'>
<address type='IOR' dispatchPlugin='undef'>


</address>
</queue>
errorCode=internal.unknown message=#1.RC2 getJdbcQueueManager: throwable when in
itializing the connection pool : java.lang.NoClassDefFoundError: EDU/oswego/cs/d
l/util/concurrent/BoundedLinkedQueue
at org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin.getJdbcQueu
eManagerCommonTable(JdbcQueueCommonTablePlugin.java:186)
at org.xmlBlaster.util.queue.jdbc.JdbcQueueCommonTablePlugin.initialize(
JdbcQueueCommonTablePlugin.java:217)
at org.xmlBlaster.util.queue.QueuePluginManager.getPlugin(QueuePluginMan
ager.java:83)
.......
.... the many none xmlBlaster "at" lines deleted
.......
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:595)
[Dec 13, 2004 6:24:39 PM INFO http-8080-Processor25 CorbaConnection] Created 'I
OR' protocol plugin to connect to xmlBlaster server
[Dec 13, 2004 6:24:39 PM INFO http-8080-Processor25 DispatchManager-connection:
client/lchungyo] Switched to synchronous message delivery
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1158)
at org.xmlBlaster.client.ClientErrorHandler.handleError(ClientErrorHandl
er.java:76)
at org.xmlBlaster.util.dispatch.DispatchManager.givingUpDelivery(Dispatc
hManager.java:297)
at org.xmlBlaster.util.dispatch.DispatchManager.checkSending(DispatchMan
ager.java:717)
at org.xmlBlaster.util.dispatch.DispatchManager.activateDispatchWorker(D
ispatchManager.java:602)
at org.xmlBlaster.util.dispatch.DispatchManager.switchToASyncMode(Dispat
chManager.java:455)
at org.xmlBlaster.util.dispatch.DispatchManager.handleSyncWorkerExceptio
n(DispatchManager.java:343)
at org.xmlBlaster.util.dispatch.DispatchWorker.run(DispatchWorker.java:8
3)
at org.xmlBlaster.util.dispatch.DispatchManager.putPre(DispatchManager.j
ava:492)
at org.xmlBlaster.util.queue.cache.CacheQueueInterceptorPlugin.put(Cache
QueueInterceptorPlugin.java:436)
at org.xmlBlaster.util.queue.cache.CacheQueueInterceptorPlugin.put(Cache
QueueInterceptorPlugin.java:416)
at org.xmlBlaster.client.XmlBlasterAccess.queueMessage(XmlBlasterAccess.
java:603)
at org.xmlBlaster.client.XmlBlasterAccess.connect(XmlBlasterAccess.java:
245)
.......
.... the many none xmlBlaster "at" lines deleted
.......
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:595)
[Dec 13, 2004 6:24:39 PM INFO http-8080-Processor25 DispatchManager-connection:
client/lchungyo] Switched to asynchronous message delivery
2004-12-13 18:24:39,674 [http-8080-Processor25] WARN org.infuse.messaging.publi
sh.impl.PublisherImpl - exception at connectServer
errorCode=user.configuration message=#1.RC2 Can't find an xmlBlaster server. Try
to provide the server host/port as described in http://www.xmlblaster.org/xmlBl
aster/doc/requirements/client.configuration.html or provide a public session ID
to support polling for xmlBlaster without an initial connection. See 'http://www
.xmlBlaster.org/xmlBlaster/doc/requirements/client.failsafe.html' for more detai
ls.
at org.xmlBlaster.client.dispatch.ClientDispatchConnectionsHandler.creat
eFakedReturnObjects(ClientDispatchConnectionsHandler.java:138)
at org.xmlBlaster.util.dispatch.DispatchManager.handleSyncWorkerExceptio
n(DispatchManager.java:347)
at org.xmlBlaster.util.dispatch.DispatchWorker.run(DispatchWorker.java:8
3)
at org.xmlBlaster.util.dispatch.DispatchManager.putPre(DispatchManager.j
ava:492)
at org.xmlBlaster.util.queue.cache.CacheQueueInterceptorPlugin.put(Cache
QueueInterceptorPlugin.java:436)
at org.xmlBlaster.util.queue.cache.CacheQueueInterceptorPlugin.put(Cache
QueueInterceptorPlugin.java:416)
at org.xmlBlaster.client.XmlBlasterAccess.queueMessage(XmlBlasterAccess.
java:603)
at org.xmlBlaster.client.XmlBlasterAccess.connect(XmlBlasterAccess.java:
245)
.......
.... the many none xmlBlaster "at" lines deleted
.......
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:595)
2004-12-13 18:24:39,704 [http-8080-Processor25] INFO org.infuse.messagingServic
e.server.remote.impl.MessagingServiceImpl - MessagingServiceImpl: cannot connect
to the messaging server at this moment.