Ray,
Don't add everything to the classpath. What I would try is making sure
the appropriate files are added to $JBOSS_HOME/lib/ext (i.e. database
drivers), and running your java code with the -classpath switch. It
tends to be dangerous to overload your global classpath... and I think
its a security risk as far as EJB servers go... I know many commercial
EJB servers are started with a script that intentionally negates the
classpath and gives its Java Machine ONLY the classpath required for its
core operation. Its up to the client to set classpath for other things.
Personally, classpath is one of the things that leaves me in terror of
ever installing a new java doohicky. I hate it. It sucks.
Because of obnoxious classpath problems with multible versions and
implementations of this or that doohicky, my team decided to have NO
global classpath. We wrote a Python tool that creates and executes a
java commandline (like: 'java -classpath /opt/src/myclasses.jar
com.dmod.myclass') based on properties from a config file. That way you
can use the smallest classpath you need for anything you're trying to
do.
To run jboss clients, I have all the jars from the $JBOSS_HOME/lib/ext
directory, as well as my client jar after my -classpath in the java
command.
Anyhow, if something like this doesn't work, maybe its NOT a classpath
error. Anyway, I think I missed the post when everyone decided it WAS.
-Dan
Ray wrote:
> Fine, Okay .... but so far I've been trying to get a simple Hello
> world console to compile and run for the past 2 days without any
> consistent success. I have fiddled with ext directories and
> classpaths; I can't see the logic in learning another syntax, just to
> compile the first two that aren't actually working yet.
>
> I'm sure ANT is wonderful, but until I get the server running without
> crashing, the EJBs compiling and the client running, then it's just
> another layer of complication.
>
> Now, I've added *everything* to the CLASSPATH, and quel supris ... it
> still doesn't work.
>
> -----------------------------------------------------------------------
> javax.naming.CommunicationException [Root exception is
> java.net.MalformedURLExcption: no
> protocol:Files/jboss2/lib/ext/jboss.jar]
> -----------------------------------------------------------------------
> Now if someone could just tell me what this means, I may actually get
> somewhere....if not, then I'll thank you all for your help and call it
> a day.....
>
>
>
> At 20:08 26/07/00 +0200, you wrote:
>
>> Hi!
>>
>> Ray wrote:
>> > By the looks of it, ANT means having to write yet more text files
>> in order
>> > to get a simple task done ... adding make files on top of
>> everything else
>> > ... ? Not just yet thanks .... :-)
>>
>> It Is Going To Simplify Things.
>>
>> Trust me.
>>
>> Look at the jbosstest module for reference and just plug in your
>> stuff
>> instead of the test suite for easiest transition.
>>
>> /Rickard
>>
>> --
>> Rickard �berg
>>
>> Email: [EMAIL PROTECTED]
>> http://www.telkel.com
>> http://www.jboss.org
>> http://www.dreambean.com
>>
>>
>> --
>> --------------------------------------------------------------
>> To subscribe: [EMAIL PROTECTED]
>> To unsubscribe: [EMAIL PROTECTED]
>> Problems?: [EMAIL PROTECTED]
>
--
Daniel G. Koulomzin
Digital Media On Demand
244 Brighton Ave. 3rd Floor
Allston MA 02134
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]