|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Is MQ on an Apache Java Servlet possible? |
« View previous topic :: View next topic » |
Author |
Message
|
BockwoldtN |
Posted: Wed Aug 21, 2002 10:10 am Post subject: Is MQ on an Apache Java Servlet possible? |
|
|
Newbie
Joined: 21 Aug 2002 Posts: 1 Location: St Louis, Missouri, USA
|
I can run java servlets and I can run java pgms with MQ native (not JMS) but when I add a single line of MQ code to my servlets and then call them from a web page I get an HTTP 404. The mod_jserv.log file tells me that I got a NoClassDefFoundError on MyServlet and no other info. It doesn't even run the servlet up to the MQ line. It just won't find the servlet if it has any MQ code in it. It does allow import com.ibm.mq.mq... but not MQQueueManager qMgr = new MQQueueManager('MyQmgr');
The environment is Solaris 5.8, Apache 1.3.9, jdk 1.31.
Is MQ on an Apache Servlet not possible?
Has anyone solved this problem? _________________ Many thanks,
Neal Bockwoldt |
|
Back to top |
|
 |
bduncan |
Posted: Wed Aug 21, 2002 12:27 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Short answer: Servlets can use MQ calls.
As far as diagnosing your problem, it's likely a path, classpath, or library path issue with the apache server. The reason not a single line of your servlet is executed isn't because the server can't find it. The servlet is found just fine, but when the JVM attempts to load it, it's throwing the class not found exception before any code in the servlet gets executed. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|