[ 
https://issues.apache.org/jira/browse/DERBY-7046?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16871895#comment-16871895
 ] 

Rick Hillegas commented on DERBY-7046:
--------------------------------------

Attaching derby-7046-01-aa-addToolsJarToServerManifest.diff. This patch adds 
derbytools.jar to the classpath scribbled into derbynet.jar's manifest.

With this change, I can boot the server as follows:

{noformat}
java -jar trunk/jars/sane/derbynet.jar start
{noformat}

I will run full tests with both the classpath and the modulepath.

Touches the following file:

{noformat}
M       build.xml
{noformat}


> NoClassDefFoundError on 'java -jar derbynet.jar'
> ------------------------------------------------
>
>                 Key: DERBY-7046
>                 URL: https://issues.apache.org/jira/browse/DERBY-7046
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Server
>    Affects Versions: 10.15.1.3
>         Environment: openjdk version "11.0.3" 2019-04-16
> db-derby-10.15.1.3-bin
>            Reporter: Piotr Zygielo
>            Assignee: Rick Hillegas
>            Priority: Major
>         Attachments: derby-7046-01-aa-addToolsJarToServerManifest.diff
>
>
> {{derbynet.jar}} seems to be runnable jar - it has 
> {code}
> Main-Class: org.apache.derby.drda.NetworkServerControl
> {code}
> but
> {code}
> Class-Path: derby.jar derbyshared.jar
> {code}
> does not include {{derbytools.jar}}.
> So on running {code:sh}java -jar derbynet.jar{code} following is presented:
> {code}
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/derby/iapi/tools/i18n/LocalizedOutput
>     at 
> org.apache.derby.drda.NetworkServerControl.main(NetworkServerControl.java:319)
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.derby.iapi.tools.i18n.LocalizedOutput
>     at 
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
>     at 
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
>     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
>     ... 1 more
> {code}
> It works fine with previous version (10.14.2.0).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to