db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-556) NetworkServer does not set thread context classloader
Date Wed, 16 Nov 2005 21:27:29 GMT
     [ http://issues.apache.org/jira/browse/DERBY-556?page=all ]

Rick Hillegas updated DERBY-556:

    Attachment: ServerStarter.java

I'm afraid I'm still not getting it. I am able to start the server from a thread which sets
its context class loader to an URLClassLoader containing MathUtils.jar. The jar file is not
visible on the vm's classpath. I use the attached ServerStarter class:

java -cp $CLASSPATH -Dderby.stream.error.logSeverityLevel=0 ServerStarter

When I run ij, feeding it the attached zz.sql script, I successfully execute a function and
procedure from MathUtils.jar, If I edit ServerStarter, commenting out the call to setThreadContextClassLoader()
and repeat the experiment, then the server raises an error because it can't find the function/procedure.

I'm afraid I need a script to reproduce the problem.

> NetworkServer does not set thread context classloader
> -----------------------------------------------------
>          Key: DERBY-556
>          URL: http://issues.apache.org/jira/browse/DERBY-556
>      Project: Derby
>         Type: Bug
>   Components: Network Server
>     Versions:
>     Reporter: Jeremy Boynes
>     Assignee: Rick Hillegas
>  Attachments: MathUtils.jar, ServerStarter.java, z.sql, zz.sql
> The NetworkServer does not set the thread context classloader which is used to load the
implementations of stored procedures. As a result, procedure implementations must be present
in the classpath of the engine itself; this differs from embedded mode where classes may be
located in the application.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message