ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Is MQ on an Apache Java Servlet possible?

Post new topic  Reply to topic
 Is MQ on an Apache Java Servlet possible? « View previous topic :: View next topic » 
Author Message
BockwoldtN
PostPosted: Wed Aug 21, 2002 10:10 am    Post subject: Is MQ on an Apache Java Servlet possible? Reply with quote

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
View user's profile Send private message
bduncan
PostPosted: Wed Aug 21, 2002 12:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Is MQ on an Apache Java Servlet possible?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.