Luke,

On 8/4/05, Luke Chambers <[EMAIL PROTECTED]> wrote:
> Patrick,
> I think Ken is probably right, that these are threads.

That's what I suspected. Sometimes on Linux it's hard to tell.

> 
> I also fixed my include problem with Inline not seeing the classes in
> my Jar files.
> Tell me if this makes sense:
>      I am running in SHARED_JVM mode. I have 2 modules that use
> Inline::Java. Each sets the classpath differently before starting. My
> thought is this. The first time one of the modules is run, it sets
> the classpath, does it's work and then disconnects. Then, when the
> second one connects, the classpath has already been set, and it is
> unable to alter it causing it to report that the class files are not
> found.

This is correct. If you set the CLASSPATH globally for both modules it
will solve your problem. One thing you can try is try the CLASSPATH
Inline::Java option (not the environment variable). It can set the
classpath dynamically at runtime but it doesn't always work because
the classpath is set for the user Classloader, not globally for the
Java runtime. That would allow you to have each module set it's own
part of the classpath.

Patrick

> 
> I think this explains the problem because when I change the classpath
> in both modules to be a union of the two, I get no errors.
> 
> Luke
> 
> 
> On Aug 3, 2005, at 5:07 PM, Patrick LeBoutillier wrote:
> > On 8/3/05, Luke Chambers <[EMAIL PROTECTED]> wrote:
> >>
> >> On Aug 3, 2005, at 3:32 PM, Patrick LeBoutillier wrote:
> >>
> >>
> >>> Luke
> >>>
> >>>
> >>>
> >>>>
> >>>> The 10 simultaneous processes all have the same port number which
> >>>> seems strange to me.
> >>>>
> >>>>
> >>>
> >>> Indeed. Can you send a "netstat -natp" and a "ps -ef" output so I
> >>> can
> >>> better see what's
> >>> going on?
> >>>
> >>>
> >>>
> >>>>
> >>>> Yes, mod_perl.
> >>>>
> >>>>
> >>>>
> >>>
> >>> mod_perl1 or mod_perl2?
> >>>
> >>
> >>
> >> mod_perl1
> >>
> >>
> >>
> >>>
> >>>
> >>>
> >>>>
> >>>> Could this be a result of the fact that I have multiple subs that
> >>>> each set the classpath before beginning?
> >>>>
> >>>>
> >>>>
> >>>
> >>> I'm not sure, but I don't think so.
> >>>
> >>
> >> Some set the classpath differently.
> >>
> >>
> >>>
> >>> Patrick
> >>>
> >>> --
> >>> =====================
> >>> Patrick LeBoutillier
> >>> Laval, Qu�bec, Canada
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> > --
> > =====================
> > Patrick LeBoutillier
> > Laval, Québec, Canada
> >
> 
> 


-- 
=====================
Patrick LeBoutillier
Laval, Québec, Canada

Reply via email to