I am trying to set up an EJB installation (for dev purposes) without the need
for a war, jar, or ear.  So what I have done so far is to set in the jboss.jcml
the deployment url to be my path hierarchy which contains a META-INF dir with my
ejb-jar.xml file in it.  So far so good, JBoss tries to load those EJBs.

The problem I'm running into is that JBoss cannot find those
EJBs...ClassNotFoundException is being thrown.  Poked around a bit more and I
added to the jboss.conf my own MLET CODE of ClassPathExtensio to the directory
hierarchy of my code.  Alas, the server *does* add that dir, but it adds it as a
file, not a directory, so it can't traverse the hierarchy to get to the actual
classes.

Here's my jboss.conf entries:

<MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar" CODEBASE=".
./../lib/ext/">
   <ARG TYPE="java.lang.String" VALUE="/home/knitterb/lib/java">
</MLET>
<MLET CODE = "org.jboss.util.ClassPathExtension" ARCHIVE="jboss.jar" CODEBASE=".
./../lib/ext/">
   <ARG TYPE="java.lang.String" VALUE="/home/knitterb/lib/java/jars/">
</MLET>

And my jboss.jcml entry:

  <mbean code="org.jboss.ejb.AutoDeployer" name="EJB:service=AutoDeployer">
    <attribute name="Deployers">
      J2EE:service=J2eeDeployer;
      JCA:service=RARDeployer
    </attribute>
    <attribute
    name="URLs">../deploy,../deploy/lib,/home/knitterb/lib/java/org/blandsite/mu
sic/website</attribute>
  </mbean>


And finally some log stuff:

[08:58:10,033,ClassPathExtension] Added library:file:/home/knitterb/lib/java
[08:58:10,054,ClassPathExtension] Added library:file:/home/knitterb/lib/java/jar
s/spy.jar
[08:58:10,056,ClassPathExtension] Added library:file:/home/knitterb/lib/java/jar
s/xalan.jar
[08:58:10,077,ClassPathExtension] Added library:file:/home/knitterb/lib/java/jar
s/xerces.jar
[08:58:10,079,ClassPathExtension] Added library:file:/home/knitterb/lib/java/jar
s/postgresql.jar
[08:58:10,091,ClassPathExtension] Added library:file:/home/knitterb/lib/java/jar
s/struts.jar
[08:58:10,093,ClassPathExtension] Added library:file:/home/knitterb/lib/java/jar
s/burlap-2.1.0.jar
[08:58:10,095,ClassPathExtension] Added library:file:/home/knitterb/lib/java/jar
s/hessian-2.1.0.jar

-- 
-bk






_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to