• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ClassLoader not found -- problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I could use some help with a problem I am having.
I have completed my first MBean and I am trying to deploy it in JBOSS4.0.2
and jdk 1.4.2+ on windows platform.

I was able to deploy a JSP without any problem.

Here are the details about the problem I am having:

My sar file (as revealed by jar tvf)
C:\jboss-4.0.2\server\default\deploy>jar tvf fixservice.sar
0 Sun May 15 23:14:58 EDT 2005 META-INF/
71 Sun May 15 23:14:58 EDT 2005 META-INF/MANIFEST.MF
325 Sun May 15 22:57:26 EDT 2005 fixservice.cfg
14741 Sun May 15 23:00:16 EDT 2005 fixservice.jar
630 Sun May 15 22:57:26 EDT 2005 fixservice.xml
653 Sun May 15 23:02:16 EDT 2005 META-INF/fixservice.xml
671 Sun May 15 23:01:56 EDT 2005 META-INF/jboss-service.xml
2654209 Sun May 15 22:57:26 EDT 2005 quickfix.jar
4000934 Sun May 15 22:57:26 EDT 2005 quickfix.lib
1114112 Sun May 15 22:57:26 EDT 2005 quickfix_jni.dll

-- DLL Loading Problem --
23:50:54,369 WARN [JARDeployer] Failed to add deployable jar: file:/C:/jboss-4.
0.2/server/default/tmp/deploy/tmp51908quickfix_jni.dll
java.util.zip.ZipException: error in opening zip file
-- ClassNotFound Problem -- due to NoClassLoader found problem
23:53:54,637 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-4.0.2/server/default/deploy/JUNK/META-INF/fixservice.xml
org.jboss.deployment.DeploymentException: No ClassLoaders found for: com.fmcp.fix.FixService; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.fmcp.fix.FixService)

--------
I would appreciate if you can provide some help or material I should
be reading that covers this topic.
The documents at JBOSS (350 pages + are not helping me)
The DTD for the XML Schemas are also not helping me.


--jboss-service.xml
<?xml version="1.0" encoding="UTF-8"?>

<server>
<classpath codebase="lib" archives="fixservice.jar, quickfix.jar" />
<mbean code="com.fmcp.fixservice.FixService" name="fmcp.com:service=FixService">
</mbean>
</server>

--- jar tvf of fixservice.jar ----
C:\jboss-4.0.2\server\default\deploy\JUNK>jar tvf fixservice.jar
0 Sun May 15 23:00:16 EDT 2005 META-INF/
71 Sun May 15 23:00:16 EDT 2005 META-INF/MANIFEST.MF
0 Sun May 15 22:57:26 EDT 2005 com/
0 Sun May 15 22:57:26 EDT 2005 com/fmcp/
0 Sun May 15 22:57:26 EDT 2005 com/fmcp/fix/
323 Sun May 15 22:57:26 EDT 2005 com/fmcp/fix/FixAdminObservable.class
321 Sun May 15 22:57:26 EDT 2005 com/fmcp/fix/FixAppObservable.class
1510 Sun May 15 22:57:26 EDT 2005 com/fmcp/fix/FixMsgConsumer.class
5590 Sun May 15 22:57:26 EDT 2005 com/fmcp/fix/FixMuxApp.class
4725 Sun May 15 22:57:26 EDT 2005 com/fmcp/fix/FixMuxFacade.class
2718 Sun May 15 22:57:26 EDT 2005 com/fmcp/fix/NewSingleOrder.class
1656 Sun May 15 22:57:26 EDT 2005 com/fmcp/fix/SessionManager.class
1560 Sun May 15 22:57:26 EDT 2005 com/fmcp/fix/SharedBlockingQueue.class
379 Sun May 15 22:57:26 EDT 2005 com/fmcp/fix/SharedCounter.class
0 Sun May 15 22:57:26 EDT 2005 com/fmcp/fixservice/
6241 Sun May 15 22:57:26 EDT 2005 com/fmcp/fixservice/FIXService.class
473 Sun May 15 22:57:26 EDT 2005 com/fmcp/fixservice/FIXServiceMBean.class

---
My apologies for this long post. I am providing all the details about
the problem.

Thank you very much for your help.
--
Raman
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kannan,
I think you missed some jar files in the server/lib. and make sure that your jboss user have required permission on the specified folders.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic