[ 
https://issues.apache.org/jira/browse/NETBEANS-1616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sumner R Andrews Jr updated NETBEANS-1616:
------------------------------------------
    Affects Version/s: 9.0

> Incorrect Digester Name Causing Module Creation Error In Apache Netbeans
> ------------------------------------------------------------------------
>
>                 Key: NETBEANS-1616
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1616
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 9.0
>         Environment: Netbeans 9.0, Ubuntu 18.04, Java 10
>            Reporter: Sumner R Andrews Jr
>            Priority: Major
>             Fix For: 9.0
>
>
> My initial bug report was with Digester.  The Digester developer claims the 
> problem is with Netbeans.  The following is their response.  My initial 
> report is at the bottom of the copied email message.  I am looking forward to 
> your assessment.
>     [ 
> https://issues.apache.org/jira/browse/DIGESTER-190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16675569#comment-16675569
>  ]
> Joerg Schaible commented on DIGESTER-190:
> -----------------------------------------
> Sorry, but your analysis is somewhat wrong. The Bundle-SymbolicName is an 
> entry for OSGi and has nothing to do with the JPMS. Digester is simply one of 
> a gazillion other Java archives that have been released before Java 9 (or 
> simply without an Automatic-Module-Name). In such a case, JPMS will normally 
> derive the module name from the file name directly if you insist to put the 
> archive into the module path.
> Why NetBeans tries to do this, I have no idea, because normally such a 
> library should become part of the "unnamed module". So either NetBeans has a 
> problem with elderly archives or you failed to configure your project 
> properly.
> > Incorrect Symbolic Name Causing Module Creation Error In Apache Netbeans
> > ------------------------------------------------------------------------
> > 
> >                 Key: DIGESTER-190
> >                 URL: https://issues.apache.org/jira/browse/DIGESTER-190
> >             Project: Commons Digester
> >          Issue Type: Bug
> >    Affects Versions: 3.2
> >            Reporter: Sumner R Andrews Jr
> >            Priority: Major
> >             Fix For: 3.2
> >
> > In my Netbeans 9 project, I attempted to add Digester and Lang 3 as Jigsaw 
> > modules.  Both were added to the module path by Netbeans via a wizard
> > module XmlTrans {
> >   requires opencsv;
> >   requires org.apache.commons.lang3;
> >   requires commons.digester;
> > }
> >  However, the project produced the following error when compiled:
> > Compiling 14 source files to 
> > /home/sumner/JNB/NetBeansProjectsPre9.0/Applications/XmlTrans/build/classes
> > /home/sumner/JNB/NetBeansProjectsPre9.0/Applications/XmlTrans/src/module-info.java:10:
> >  error: module not found: commons.digester
> >  requires commons.digester;
> > 1 error
> > BUILD FAILED (total time: 1 second)
> > It is not possible to change the statement “requires commons.digester” to  
> > “org.apache.common.digester3” to correct the problem.
> > Interestingly, both libraries use the same org.apache.commons directory 
> > structure in their jars with the library name at the end as .digester3 and 
> > .lang3 respectively.
> > A comparison of the MANAFEST.MFs  however reveals the potential problem.  
> > In the case of Lang3 the manifest lists:
> > Automatic-Module-Name: org.apache.commons.lang3
> > Bundle-SymbolicName: org.apache.commons.lang3
> > Whereas the Digester manifest only references:
> > Bundle-SymbolicName: org.apache.commons.digester
> >  
> > Obviously, the error lies with the digester manifest.
> --
> This message was sent by Atlassian JIRA
> (v7.6.3#76005)



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to