Re: The '$' and 'O' in the Linker's Additional Options got eaten by NetBeans

2019-04-15 Thread Tushar Joshi
Awesome!

with regards
Tushar


On Tue, Apr 16, 2019 at 8:57 AM Heng Zhou  wrote:

> With the inspiration from Mr. Tushar, I finally figured out the trick: The
> option should be written as "\$$ORIGIN/FMOD". Double $ is key! :-)
>
> On Mon, Apr 15, 2019 at 11:19 PM Heng Zhou  wrote:
>
>> That way, the option passed is "\\\RIGIN/LibDir".
>>
>> On Mon, Apr 15, 2019 at 11:16 PM Tushar Joshi 
>> wrote:
>>
>>> Can you please try "\\\$ORIGIN/LibDir" that is one escape character for
>>> the backslash and one escape character for the $
>>>
>>> with regards
>>> Tushar
>>>
>>> Tushar Joshi, Nagpur: http://www.tusharjoshi.com
>>> 
>>>
>>> * MCSD_NET C#, SCJP, RHCE, ZCE, PMP, CSM, SAFe, PRINCE2
>>>
>>> * Senior Architect @ Persistent Systems http://www.persistent.com
>>> 
>>> * LinkedIn: http://www.linkedin.com/in/tusharvjoshi
>>> 
>>>
>>>
>>>
>>> On Tue, Apr 16, 2019 at 6:22 AM Heng Zhou  wrote:
>>>
 Hi,

 I wanna the following linker flags to be passed to the linker:

 -Wl,--enable-new-dtags,-rpath,"\$ORIGIN/LibDir"

 So I type it literally in the Linker's Additional Options. But I found
 that the '$' and 'O' in "\$ORIGIN/LibDir" got eaten by NetBeans, so only
 "\RIGIN" appears in actual linking option. I guess it is related to some
 pre-processing like escaping, but I'm not familiar with it. Could you
 please instruct me how to circumvent the pre-processing so that it is
 exactly "\$ORIGIN/LibDir" that is actually passed to the linker? Thanks.

>>>


Re: The '$' and 'O' in the Linker's Additional Options got eaten by NetBeans

2019-04-15 Thread Heng Zhou
With the inspiration from Mr. Tushar, I finally figured out the trick: The
option should be written as "\$$ORIGIN/FMOD". Double $ is key! :-)

On Mon, Apr 15, 2019 at 11:19 PM Heng Zhou  wrote:

> That way, the option passed is "\\\RIGIN/LibDir".
>
> On Mon, Apr 15, 2019 at 11:16 PM Tushar Joshi 
> wrote:
>
>> Can you please try "\\\$ORIGIN/LibDir" that is one escape character for
>> the backslash and one escape character for the $
>>
>> with regards
>> Tushar
>>
>> Tushar Joshi, Nagpur: 
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.tusharjoshi.com=DwIBaQ=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4=NMX1BNoBG-Bn1kvZ0H2kBayJt7s1Lx3N_B0eyvYWkPI=ULL23hq6_0mXbOuPO7dXhmVE-kHIZDeD-lznr4vQIu8=LuDtIMYMsToXihq8WxjE17Lnc-8IesQzhga81owkSY4=
>>
>> * MCSD_NET C#, SCJP, RHCE, ZCE, PMP, CSM, SAFe, PRINCE2
>>
>> * Senior Architect @ Persistent Systems 
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.persistent.com=DwIBaQ=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4=NMX1BNoBG-Bn1kvZ0H2kBayJt7s1Lx3N_B0eyvYWkPI=ULL23hq6_0mXbOuPO7dXhmVE-kHIZDeD-lznr4vQIu8=nIgNrAEQUblpwMVPA-PFo8wJxGUiOVPOB7DKqxaIVvM=
>> * LinkedIn: 
>> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_in_tusharvjoshi=DwIBaQ=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4=NMX1BNoBG-Bn1kvZ0H2kBayJt7s1Lx3N_B0eyvYWkPI=ULL23hq6_0mXbOuPO7dXhmVE-kHIZDeD-lznr4vQIu8=TWLUQ9QhVB89QX2ht6WaZ78dyM0ux0OrHO_KU0EBbH0=
>>
>>
>>
>> On Tue, Apr 16, 2019 at 6:22 AM Heng Zhou  wrote:
>>
>>> Hi,
>>>
>>> I wanna the following linker flags to be passed to the linker:
>>>
>>> -Wl,--enable-new-dtags,-rpath,"\$ORIGIN/LibDir"
>>>
>>> So I type it literally in the Linker's Additional Options. But I found
>>> that the '$' and 'O' in "\$ORIGIN/LibDir" got eaten by NetBeans, so only
>>> "\RIGIN" appears in actual linking option. I guess it is related to some
>>> pre-processing like escaping, but I'm not familiar with it. Could you
>>> please instruct me how to circumvent the pre-processing so that it is
>>> exactly "\$ORIGIN/LibDir" that is actually passed to the linker? Thanks.
>>>
>>


Re: The '$' and 'O' in the Linker's Additional Options got eaten by NetBeans

2019-04-15 Thread Heng Zhou
That way, the option passed is "\\\RIGIN/LibDir".

On Mon, Apr 15, 2019 at 11:16 PM Tushar Joshi 
wrote:

> Can you please try "\\\$ORIGIN/LibDir" that is one escape character for
> the backslash and one escape character for the $
>
> with regards
> Tushar
>
> Tushar Joshi, Nagpur: 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.tusharjoshi.com=DwIBaQ=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4=NMX1BNoBG-Bn1kvZ0H2kBayJt7s1Lx3N_B0eyvYWkPI=lS8lFlZBKlohLkrIpyd4w4zvsjJSLiEiTIwoRDl1P2Q=3csUw6mhkUA5apoFQEABKbG9IcAL2XoWVX3tvQqRltg=
>
> * MCSD_NET C#, SCJP, RHCE, ZCE, PMP, CSM, SAFe, PRINCE2
>
> * Senior Architect @ Persistent Systems 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.persistent.com=DwIBaQ=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4=NMX1BNoBG-Bn1kvZ0H2kBayJt7s1Lx3N_B0eyvYWkPI=lS8lFlZBKlohLkrIpyd4w4zvsjJSLiEiTIwoRDl1P2Q=SATr6QNcCyxQ5FSZgQ1So8FgjZGsIX3GPw5LjjHcjp0=
> * LinkedIn: 
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.linkedin.com_in_tusharvjoshi=DwIBaQ=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4=NMX1BNoBG-Bn1kvZ0H2kBayJt7s1Lx3N_B0eyvYWkPI=lS8lFlZBKlohLkrIpyd4w4zvsjJSLiEiTIwoRDl1P2Q=PqmyRNXjbL5jgLiDZw5sAxEK0_qhttdaMeAiUcqgtKw=
>
>
>
> On Tue, Apr 16, 2019 at 6:22 AM Heng Zhou  wrote:
>
>> Hi,
>>
>> I wanna the following linker flags to be passed to the linker:
>>
>> -Wl,--enable-new-dtags,-rpath,"\$ORIGIN/LibDir"
>>
>> So I type it literally in the Linker's Additional Options. But I found
>> that the '$' and 'O' in "\$ORIGIN/LibDir" got eaten by NetBeans, so only
>> "\RIGIN" appears in actual linking option. I guess it is related to some
>> pre-processing like escaping, but I'm not familiar with it. Could you
>> please instruct me how to circumvent the pre-processing so that it is
>> exactly "\$ORIGIN/LibDir" that is actually passed to the linker? Thanks.
>>
>


Re: The '$' and 'O' in the Linker's Additional Options got eaten by NetBeans

2019-04-15 Thread Tushar Joshi
Can you please try "\\\$ORIGIN/LibDir" that is one escape character for the
backslash and one escape character for the $

with regards
Tushar

Tushar Joshi, Nagpur: http://www.tusharjoshi.com

* MCSD_NET C#, SCJP, RHCE, ZCE, PMP, CSM, SAFe, PRINCE2

* Senior Architect @ Persistent Systems http://www.persistent.com
* LinkedIn: http://www.linkedin.com/in/tusharvjoshi



On Tue, Apr 16, 2019 at 6:22 AM Heng Zhou  wrote:

> Hi,
>
> I wanna the following linker flags to be passed to the linker:
>
> -Wl,--enable-new-dtags,-rpath,"\$ORIGIN/LibDir"
>
> So I type it literally in the Linker's Additional Options. But I found
> that the '$' and 'O' in "\$ORIGIN/LibDir" got eaten by NetBeans, so only
> "\RIGIN" appears in actual linking option. I guess it is related to some
> pre-processing like escaping, but I'm not familiar with it. Could you
> please instruct me how to circumvent the pre-processing so that it is
> exactly "\$ORIGIN/LibDir" that is actually passed to the linker? Thanks.
>


Re: [java]

2019-04-15 Thread Terry Warren
Never mind; I was able to answer my own question. The answer is actually quite 
simple:

just needed to append the =value to the url string passed in the 
properties object sent to the persistence entity manager

> On Apr 15, 2019, at 7:22 PM, Terry Warren  wrote:
> 
> Hi - I have a question regarding mysql server access from Netbeans java 
> project, using netbeans 8.2; the project has been working fine until I 
> recently upgraded the JConnector to be 8.0.15 (and server also upgraded to 
> 8.0.15)
> 
> When I try to access the DB on the server I get error messages such as:
> 
> [EL Info]: 2019-04-15 17:45:41.769--ServerSession(1608659406)--EclipseLink, 
> version: Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd
> [EL Severe]: ejb: 2019-04-15 
> 17:45:42.016--ServerSession(1608659406)--Exception [EclipseLink-4002] 
> (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): 
> org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: java.sql.SQLException: The server time zone value 'PDT' 
> is unrecognized or represents more than one time zone. You must configure 
> either the server or JDBC driver (via the serverTimezone configuration 
> property) to use a more specifc time zone value if you want to utilize time 
> zone support.
> Error Code: 0
> 4/15/19 5:45:42 PM PDT sqls: create connection: 
> javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse 
> Persistence Services - 2.5.2.v20140319-9ad6abd): 
> org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: java.sql.SQLException: The server time zone value 'PDT' 
> is unrecognized or represents more than one time zone. You must configure 
> either the server or JDBC driver (via the serverTimezone configuration 
> property) to use a more specifc time zone value if you want to utilize time 
> zone support.
> Error Code: 0
> 
> If I write a simpler program to simply access the DB directly using this 
> connector, it also fails but can be corrected by adding  value 
> to connection string.
> 
> So my question is: how do I achieve this same result when using the Netbeans 
> entity management as I don't know how to add this parameter.( I can control 
> the parameters: url, user and password).
> 
> The same problem occurs when using Netbeans 9 IDE.
> 
> thanks for any responses
> Terry Warrenuser
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 


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

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



[java]

2019-04-15 Thread Terry Warren
Hi - I have a question regarding mysql server access from Netbeans java 
project, using netbeans 8.2; the project has been working fine until I recently 
upgraded the JConnector to be 8.0.15 (and server also upgraded to 8.0.15)

When I try to access the DB on the server I get error messages such as:

[EL Info]: 2019-04-15 17:45:41.769--ServerSession(1608659406)--EclipseLink, 
version: Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd
[EL Severe]: ejb: 2019-04-15 17:45:42.016--ServerSession(1608659406)--Exception 
[EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): 
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: The server time zone value 'PDT' is 
unrecognized or represents more than one time zone. You must configure either 
the server or JDBC driver (via the serverTimezone configuration property) to 
use a more specifc time zone value if you want to utilize time zone support.
Error Code: 0
4/15/19 5:45:42 PM PDT sqls: create connection: 
javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse 
Persistence Services - 2.5.2.v20140319-9ad6abd): 
org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: The server time zone value 'PDT' is 
unrecognized or represents more than one time zone. You must configure either 
the server or JDBC driver (via the serverTimezone configuration property) to 
use a more specifc time zone value if you want to utilize time zone support.
Error Code: 0

If I write a simpler program to simply access the DB directly using this 
connector, it also fails but can be corrected by adding  value 
to connection string.

So my question is: how do I achieve this same result when using the Netbeans 
entity management as I don't know how to add this parameter.( I can control the 
parameters: url, user and password).

The same problem occurs when using Netbeans 9 IDE.

thanks for any responses
Terry Warrenuser
-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

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



Re: Json validation

2019-04-15 Thread Wade Chandler
Pretty sure .json files themselves are validated like other file types;
editor lot has it built in. Do you have a reproducible file you can share?

Wade


On Mon, Apr 15, 2019, 18:06 Greenberg, Gary  wrote:

> I know that Netbeans has a feature to validate XML files and I used it
> extensively when XML was main method to define requests and responses in
> REST API.
>
> Nowadays JSON almost completely replaced XML in that role.
>
> Is there a plugin or something to validate JSON or help to check it for
> errors?
>
> I do have pretty big JSON file which somewhere contain an error, but
> cannot find it easily.
> Netbeans marks the opening brace with an error flag, which tells me *Token
> recognition at “*
>
> Going through it for ½ hour and can’t spot any errors.
>
> Gary Greenberg
>
> Staff Software Engineer
>
> Data Product Development, BI-A
>
> E: ggree...@visa.com
>
> M: 650-269-7902
>
>
>
> [image: EmailSig-TaglineVersion]
>
>
>


The '$' and 'O' in the Linker's Additional Options got eaten by NetBeans

2019-04-15 Thread Heng Zhou
Hi,

I wanna the following linker flags to be passed to the linker:

-Wl,--enable-new-dtags,-rpath,"\$ORIGIN/LibDir"

So I type it literally in the Linker's Additional Options. But I found that
the '$' and 'O' in "\$ORIGIN/LibDir" got eaten by NetBeans, so only
"\RIGIN" appears in actual linking option. I guess it is related to some
pre-processing like escaping, but I'm not familiar with it. Could you
please instruct me how to circumvent the pre-processing so that it is
exactly "\$ORIGIN/LibDir" that is actually passed to the linker? Thanks.


Downloading Netbeans 8.2

2019-04-15 Thread Natasha Stopa
Hi,
I'm getting a request not found error when going to the page to download
Netbeans 8.2. I was wondering if the download was intentionally removed/how
I can download this.

https://netbeans.apache.org/downloads/8.2/

Thanks,
Natasha


Json validation

2019-04-15 Thread Greenberg, Gary
I know that Netbeans has a feature to validate XML files and I used it 
extensively when XML was main method to define requests and responses in REST 
API.
Nowadays JSON almost completely replaced XML in that role.
Is there a plugin or something to validate JSON or help to check it for errors?
I do have pretty big JSON file which somewhere contain an error, but cannot 
find it easily.
Netbeans marks the opening brace with an error flag, which tells me Token 
recognition at "
Going through it for ½ hour and can't spot any errors.
Gary Greenberg
Staff Software Engineer
Data Product Development, BI-A
E: ggree...@visa.com
M: 650-269-7902

[EmailSig-TaglineVersion]



Re: [java][weblogic]

2019-04-15 Thread Geertjan Wielenga
That’s great. Feel free to provide a pull request on GitHub. What caused
the tests to fail, what messages did you get? You should be able to build
the module without running the tests, I believe.

Gj

On Mon, 15 Apr 2019 at 17:08, Ben Erridge  wrote:

> OK, I have downloaded the module and successfully compiled it. The module
> seems to work fine with pretty much the same bugs as in Netbeans 8.2.
> I had to comment out test code in a bunch of modules it depends on in
> order to get it to compile though. I attached a diff of these files. I also
> change some code WLServerLibraryManager because it doesn't work with WLS
> 12.2 +.
> I'm not sure what to do about these other modules test code not compiling.
> Maybe I have a setup issue? I am compiling from the master branch.
>
> modified:
>  
> java/j2ee.metadata.model.support/test/unit/src/org/netbeans/modules/j2ee/metadata/model/support/PersistenceTestCase.java
> modified:
>  java/java.project.ui/test/qa-functional/src/projects/TestProjectUtils.java
> modified:
>  
> java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/GeneratorTestBase.java
> modified:
>  
> java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/GuardedBlockTest.java
> modified:
>  
> java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/TreeRewriteTestBase.java
> modified:
>  
> java/java.source.base/test/unit/src/org/netbeans/modules/java/source/save/FormatingTest.java
> modified:
>  
> java/java.source.nbjavac/test/unit/src/org/netbeans/modules/java/source/nbjavac/indexing/ClassNamesForFileOraculumImplTest.java
> modified:
>  
> java/java.source.nbjavac/test/unit/src/org/netbeans/modules/java/source/nbjavac/indexing/MultiPassCompileWorkerTest.java
> modified:
>  
> java/java.source.nbjavac/test/unit/src/org/netbeans/modules/java/source/nbjavac/indexing/OnePassCompileWorkerTest.java
> modified:
>  
> java/java.source.nbjavac/test/unit/src/org/netbeans/modules/java/source/nbjavac/indexing/SuperOnePassCompileWorkerTest.java
> modified:
>  
> java/spi.java.hints/test/unit/src/org/netbeans/spi/java/hints/matching/CopyFinderTest.java
>
>
> On Fri, Apr 12, 2019 at 8:51 AM Ben Erridge  wrote:
>
>> Thanks, I'll check it out.
>>
>> On Fri, Apr 12, 2019 at 8:31 AM Geertjan Wielenga 
>> wrote:
>>
>>> That's great to hear. I'm not sure if it's a license issue. You could
>>> try to build the module from the GitHub repo and install it and see where
>>> that gets you, i.e., whether that works.
>>>
>>> Gj
>>>
>>> On Fri, Apr 12, 2019 at 2:27 PM Ben Erridge  wrote:
>>>
 I am definitely willing to contribute to coding and testing. Let me
 know when you get a chance to resolve the license issue. I will try to take
 a moment to look through the code.

 On Fri, Apr 12, 2019 at 1:26 AM Geertjan Wielenga <
 geertjan.wiele...@googlemail.com> wrote:

> The code for the WebLogic support is here:
>
>
> https://github.com/apache/incubator-netbeans/tree/master/enterprise/j2ee.weblogic9
>
> I am not 100% sure of the status of that part of Apache NetBeans,
> probably there are licensing issues, i.e., probably not everything was
> donated or cannot be released, we'll need to take a look -- are you going
> to be involved in working on this code or trying things out?
>
> Gj
>
> On Fri, Apr 12, 2019 at 12:57 AM Ben Erridge  wrote:
>
>> Is WebLogic support planned for Apache Netbeans in the future?
>>
>> --
>> -.
>> Ben Erridge
>> Center For Information Management, Inc.
>> office: (734) 930-0855 direct: (734) 800-4354 <%28734%29%20930-0855>
>> 3550 West Liberty Road
>> Ste
>> 1
>> 
>> Ann Arbor, MI
>> 
>> 48103
>> 
>>
>

 --
 -.
 Ben Erridge
 Center For Information Management, Inc.
 office: (734) 930-0855 direct: (734) 800-4354 <%28734%29%20930-0855>
 3550 West Liberty Road
 Ste
 1
 
 Ann Arbor, MI
 
 48103
 

>>>
>>
>> --
>> -.
>> Ben Erridge
>> Center For Information Management, Inc.
>> office: (734) 930-0855 direct: (734) 800-4354 <%28734%29%20930-0855>
>> 3550 West 

Re: [java][weblogic]

2019-04-15 Thread Ben Erridge
OK, I have downloaded the module and successfully compiled it. The module
seems to work fine with pretty much the same bugs as in Netbeans 8.2.
I had to comment out test code in a bunch of modules it depends on in order
to get it to compile though. I attached a diff of these files. I also
change some code WLServerLibraryManager because it doesn't work with WLS
12.2 +.
I'm not sure what to do about these other modules test code not compiling.
Maybe I have a setup issue? I am compiling from the master branch.

modified:
 
java/j2ee.metadata.model.support/test/unit/src/org/netbeans/modules/j2ee/metadata/model/support/PersistenceTestCase.java
modified:
 java/java.project.ui/test/qa-functional/src/projects/TestProjectUtils.java
modified:
 
java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/GeneratorTestBase.java
modified:
 
java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/GuardedBlockTest.java
modified:
 
java/java.source.base/test/unit/src/org/netbeans/api/java/source/gen/TreeRewriteTestBase.java
modified:
 
java/java.source.base/test/unit/src/org/netbeans/modules/java/source/save/FormatingTest.java
modified:
 
java/java.source.nbjavac/test/unit/src/org/netbeans/modules/java/source/nbjavac/indexing/ClassNamesForFileOraculumImplTest.java
modified:
 
java/java.source.nbjavac/test/unit/src/org/netbeans/modules/java/source/nbjavac/indexing/MultiPassCompileWorkerTest.java
modified:
 
java/java.source.nbjavac/test/unit/src/org/netbeans/modules/java/source/nbjavac/indexing/OnePassCompileWorkerTest.java
modified:
 
java/java.source.nbjavac/test/unit/src/org/netbeans/modules/java/source/nbjavac/indexing/SuperOnePassCompileWorkerTest.java
modified:
 
java/spi.java.hints/test/unit/src/org/netbeans/spi/java/hints/matching/CopyFinderTest.java


On Fri, Apr 12, 2019 at 8:51 AM Ben Erridge  wrote:

> Thanks, I'll check it out.
>
> On Fri, Apr 12, 2019 at 8:31 AM Geertjan Wielenga 
> wrote:
>
>> That's great to hear. I'm not sure if it's a license issue. You could try
>> to build the module from the GitHub repo and install it and see where that
>> gets you, i.e., whether that works.
>>
>> Gj
>>
>> On Fri, Apr 12, 2019 at 2:27 PM Ben Erridge  wrote:
>>
>>> I am definitely willing to contribute to coding and testing. Let me know
>>> when you get a chance to resolve the license issue. I will try to take a
>>> moment to look through the code.
>>>
>>> On Fri, Apr 12, 2019 at 1:26 AM Geertjan Wielenga <
>>> geertjan.wiele...@googlemail.com> wrote:
>>>
 The code for the WebLogic support is here:


 https://github.com/apache/incubator-netbeans/tree/master/enterprise/j2ee.weblogic9

 I am not 100% sure of the status of that part of Apache NetBeans,
 probably there are licensing issues, i.e., probably not everything was
 donated or cannot be released, we'll need to take a look -- are you going
 to be involved in working on this code or trying things out?

 Gj

 On Fri, Apr 12, 2019 at 12:57 AM Ben Erridge  wrote:

> Is WebLogic support planned for Apache Netbeans in the future?
>
> --
> -.
> Ben Erridge
> Center For Information Management, Inc.
> office: (734) 930-0855 direct: (734) 800-4354 <%28734%29%20930-0855>
> 3550 West Liberty Road Ste 1
> Ann Arbor, MI 48103
>

>>>
>>> --
>>> -.
>>> Ben Erridge
>>> Center For Information Management, Inc.
>>> office: (734) 930-0855 direct: (734) 800-4354 <%28734%29%20930-0855>
>>> 3550 West Liberty Road Ste 1
>>> Ann Arbor, MI 48103
>>>
>>
>
> --
> -.
> Ben Erridge
> Center For Information Management, Inc.
> office: (734) 930-0855 direct: (734) 800-4354 <%28734%29%20930-0855>
> 3550 West Liberty Road Ste 1
> Ann Arbor, MI 48103
>


-- 
-.
Ben Erridge
Center For Information Management, Inc.
office: (734) 930-0855 direct: (734) 800-4354 <%28734%29%20930-0855>
3550 West Liberty Road Ste 1
Ann Arbor, MI 48103
diff --git a/enterprise/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/config/WLServerLibraryManager.java b/enterprise/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/config/WLServerLibraryManager.java
index 4750bd741..e4b779e87 100644
--- a/enterprise/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/config/WLServerLibraryManager.java
+++ b/enterprise/j2ee.weblogic9/src/org/netbeans/modules/j2ee/weblogic9/config/WLServerLibraryManager.java
@@ -16,7 +16,6 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-
 package org.netbeans.modules.j2ee.weblogic9.config;
 
 import java.io.File;
@@ -78,7 +77,7 @@ public class WLServerLibraryManager implements ServerLibraryManager {
 
 Set toDeploy = new HashSet();
 Map deployable = support.getDeployableFiles();
-for (Iterator it = notHandled.iterator(); it.hasNext(); ) {
+for (Iterator it = notHandled.iterator(); it.hasNext();) {
 ServerLibraryDependency range = 

My Netbeans RCP app fails when launched via the Netbeans-generated installer

2019-04-15 Thread Jerome Lelasseux
Hello,
My Netbeans RCP application compiles and works fine when started from the IDE 
(Netbeans 11/Win10). 
If I start it using the Netbeans-generated installer, I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/objectweb/asm/ClassVisitor while loading 
org.openide.filesystems.FileSystem; see 
http://wiki.netbeans.org/DevFaqTroubleshootClassNotFound
at 
org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:238)
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:162)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.netbeans.core.startup.CLIOptions.cli(CLIOptions.java:134)
at org.netbeans.core.startup.CLIOptions.cli(CLIOptions.java:73)
at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:209)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:494)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:359)
at org.netbeans.MainImpl.execute(MainImpl.java:168)
at org.netbeans.MainImpl.main(MainImpl.java:60)
at org.netbeans.Main.main(Main.java:58)
Caused by: java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.netbeans.PatchByteCode.patchAsmMethod(PatchByteCode.java:161)
at org.netbeans.PatchByteCode.apply(PatchByteCode.java:152)
at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:226)
at 
org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:234)
... 10 more
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor 
starting from org.netbeans.MainImpl$BootClassLoader@31befd9f with possible 
defining loaders null and declared parents ]
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:199)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 16 more
Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:197)
... 17 more
I tried with 2 different computers (Win10), with Netbeans 8 and Netbeans 11, 
same problem. My application uses Java 7.

I've checked http://wiki.netbeans.org/DevFaqTroubleshootClassNotFound as 
mentioned in the error message but I found no "verify-class-linkage" issue when 
I build the app. 

The only external library I use in the application is XStream which was added 
using a Module library wrapper.
I have really no idea what to try to solve this... Thanks for your help.
Jerome Lelasseux
 


c/c++: static function usages cannot be collected

2019-04-15 Thread Pablo Chin
Hello,

I have a C/C++ "Project with Existing Sources"  in Netbeans 8.2.   For Code
Assitance, I'm using CLang.  I configured Code Assistance to Search file
system for C/C++ header files.

After parsing the project, I'm only able to find functions for which a
declaration exists in a .h file.  Any other static functions in the
corresponding .c file result in "Usages for  cannot be
collected".

For example, if the .c file has a static function like this:

static bool foo(void)
{
...
}

Then, "Find Usages" of 'foo' result in "The original element being
refactored is not available.  Usages for foo cannot be collected."

Is there a setting in Nebeans that I'm missing that will allow Code
Assistance to "find" static functions like the one mentioned?

Thank you.


Re: How do I activate the Javascript Libraries in the Java Maven Project properties

2019-04-15 Thread Geertjan Wielenga
Thanks! Great to have that project there.

Maybe this also helps:
https://blogs.oracle.com/geertjan/how-to-use-javascript-libraries-in-maven-projects

Gj

On Mon, Apr 15, 2019 at 10:53 AM Fedd  wrote:

> No problem, as all is working for now I am not asking for any help, just
> boasting because you've said this could be interesting.
>
> But I made a project with these files, see
>
> https://github.com/fedd/mavenwithnpm
>
>
> On 15.04.2019 17:23, Geertjan Wielenga wrote:
>
> Sorry, this is no way to work together on this. Put an app with this
> structure on GitHub or somewhere similar so that we can take a look
> together, please.
>
> Gj
>
> On Mon, 15 Apr 2019 at 09:31, Fedd  wrote:
>
>> Thanks though it doesn't work very stable as it turned out...
>>
>> The goal is just to have a mavenized jar that can be referenced in other
>> project's pom and make all javascript artifacts available to it. I made npm
>> scripts that are run by maven so that I build all javascripts with the
>> Netbeans build button, found examples on the net:
>>
>> package.json part:
>>
>> "scripts": {
>> "bundle": "webpack"
>> },
>>
>> webpack conf part (I keep javascripts in a special folder between an
>> empty "java" and a git-ignored "webapp" folders, the latter gets recreated
>> upon every build):
>>
>> entry: {
>> dela: './src/main/js/dela.js',
>> process: './src/main/js/process.js'
>> },
>> output: {
>> path: __dirname + '/src/main/webapp',
>> filename: '[name].js'
>> },
>>
>>...
>>
>> plugins: [
>> new CleanWebpackPlugin(),
>> new CopyWebpackPlugin([
>> // some project specific artifacts to copy like styles and
>> fonts
>> ])
>> ]
>>
>>
>> pom.xml part (the only addition to the pom that was created by new
>> project wizard):
>>
>> 
>> 
>> 
>> 
>> src/main/webapp
>> res
>> 
>> 
>> 
>> 
>> org.codehaus.mojo
>> exec-maven-plugin
>> 1.6.0
>> 
>> 
>> npm install (initialize)
>> 
>> exec
>> 
>> initialize
>> 
>> npm
>> 
>> install
>> 
>> 
>> 
>> 
>> npm install (clean)
>> 
>> exec
>> 
>> pre-clean
>> 
>> npm
>> 
>> install
>> 
>> 
>> 
>> 
>> npm config list (validate)
>> 
>> exec
>> 
>> validate
>> 
>> npm
>> 
>> config
>> list
>> 
>> 
>> 
>> 
>> npm run bundle (compile)
>> 
>> exec
>> 
>> generate-resources
>> 
>> npm
>> 
>> run
>> bundle
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>> On 15.04.2019 16:18, Geertjan Wielenga wrote:
>>
>> You may have found a (the) way to combine Java, Maven, JavaScript, and
>> NPM. If so, that’s amazing.
>>
>> Gj
>>
>> On Mon, 15 Apr 2019 at 08:56, Fedd  wrote:
>>
>>> Thanks, some Netbeans module has updated (I think it was called "Local
>>> Tasks") and the package.json editor has retured.
>>>
>>> There is nothing special in my project. To reproduce success scenario,
>>> one may just create a new "Java with Maven / Java Application", in Files
>>> window go to the src/main folder and create a new one called "webapp". Then
>>> go to the Project Properties (right click the project root and then
>>> "Properties") and see that in JavaScript Category there are three items,
>>> "npm", "Bower" and some other. "npm" is what I was missing. Now it's there
>>> again. Thank you the developers! =)
>>>
>>> fedd
>>> On 15.04.2019 15:02, Geertjan Wielenga wrote:
>>>
>>> It is hard to know what your project looks like or contains. But however
>>> you have 

Re: How do I activate the Javascript Libraries in the Java Maven Project properties

2019-04-15 Thread Fedd
No problem, as all is working for now I am not asking for any help, just 
boasting because you've said this could be interesting.


But I made a project with these files, see

https://github.com/fedd/mavenwithnpm


On 15.04.2019 17:23, Geertjan Wielenga wrote:
Sorry, this is no way to work together on this. Put an app with this 
structure on GitHub or somewhere similar so that we can take a look 
together, please.


Gj

On Mon, 15 Apr 2019 at 09:31, Fedd mailto:f...@sql.ru>> 
wrote:


Thanks though it doesn't work very stable as it turned out...

The goal is just to have a mavenized jar that can be referenced in
other project's pom and make all javascript artifacts available to
it. I made npm scripts that are run by maven so that I build all
javascripts with the Netbeans build button, found examples on the net:

package.json part:

    "scripts": {
    "bundle": "webpack"
    },

webpack conf part (I keep javascripts in a special folder between
an empty "java" and a git-ignored "webapp" folders, the latter
gets recreated upon every build):

    entry: {
    dela: './src/main/js/dela.js',
    process: './src/main/js/process.js'
    },
    output: {
    path: __dirname + '/src/main/webapp',
    filename: '[name].js'
    },

   ...

    plugins: [
    new CleanWebpackPlugin(),
    new CopyWebpackPlugin([
    // some project specific artifacts to copy like styles
and fonts
    ])
    ]

pom.xml part (the only addition to the pom that was created by new
project wizard):

    
    
    
    
src/main/webapp
    res
    
    
    
    
org.codehaus.mojo
exec-maven-plugin
    1.6.0
    
    
    npm install (initialize)
    
exec
    
initialize
    
npm
    
install
    
    
    
    
    npm install (clean)
    
exec
    
pre-clean
    
npm
    
install
    
    
    
    
    npm config list (validate)
    
exec
    
validate
    
npm
    
config
list
    
    
    
    
    npm run bundle (compile)
    
exec
    
generate-resources
    
npm
    
run
bundle
    
    
    
    
    
    
    


On 15.04.2019 16:18, Geertjan Wielenga wrote:

You may have found a (the) way to combine Java, Maven,
JavaScript, and NPM. If so, that’s amazing.

Gj

On Mon, 15 Apr 2019 at 08:56, Fedd mailto:f...@sql.ru>> wrote:

Thanks, some Netbeans module has updated (I think it was
called "Local Tasks") and the package.json editor has retured.

There is nothing special in my project. To reproduce success
scenario, one may just create a new "Java with Maven / Java
Application", in Files window go to the src/main folder and
create a new one called "webapp". Then go to the Project
Properties (right click the project root and then
"Properties") and see that in JavaScript Category there are
three items, "npm", "Bower" and some other. "npm" is what I
was missing. Now it's there again. Thank you the developers! =)

fedd

On 15.04.2019 15:02, Geertjan Wielenga wrote:

It is hard to know what your project looks like or contains.
But however you have opened it, you’ll see all its content
in the Files window. If you can put a project that looks
like this (or ideally is) this project on GitHub so that we
can look at it, that will help.

Gj

On Mon, 15 Apr 2019 at 03:32, Fedd mailto:f...@sql.ru>> wrote:

Hello,

I desperately need to have an ability to work with NPM
libraries in a
Maven non-webapp project, but NetBeans decides not to
show the
JavaScript libraries project property menu in order not
to confuse me (?)

Again, this 

Re: How do I activate the Javascript Libraries in the Java Maven Project properties

2019-04-15 Thread Geertjan Wielenga
Sorry, this is no way to work together on this. Put an app with this
structure on GitHub or somewhere similar so that we can take a look
together, please.

Gj

On Mon, 15 Apr 2019 at 09:31, Fedd  wrote:

> Thanks though it doesn't work very stable as it turned out...
>
> The goal is just to have a mavenized jar that can be referenced in other
> project's pom and make all javascript artifacts available to it. I made npm
> scripts that are run by maven so that I build all javascripts with the
> Netbeans build button, found examples on the net:
>
> package.json part:
>
> "scripts": {
> "bundle": "webpack"
> },
>
> webpack conf part (I keep javascripts in a special folder between an empty
> "java" and a git-ignored "webapp" folders, the latter gets recreated upon
> every build):
>
> entry: {
> dela: './src/main/js/dela.js',
> process: './src/main/js/process.js'
> },
> output: {
> path: __dirname + '/src/main/webapp',
> filename: '[name].js'
> },
>
>...
>
> plugins: [
> new CleanWebpackPlugin(),
> new CopyWebpackPlugin([
> // some project specific artifacts to copy like styles and
> fonts
> ])
> ]
>
>
> pom.xml part (the only addition to the pom that was created by new project
> wizard):
>
> 
> 
> 
> 
> src/main/webapp
> res
> 
> 
> 
> 
> org.codehaus.mojo
> exec-maven-plugin
> 1.6.0
> 
> 
> npm install (initialize)
> 
> exec
> 
> initialize
> 
> npm
> 
> install
> 
> 
> 
> 
> npm install (clean)
> 
> exec
> 
> pre-clean
> 
> npm
> 
> install
> 
> 
> 
> 
> npm config list (validate)
> 
> exec
> 
> validate
> 
> npm
> 
> config
> list
> 
> 
> 
> 
> npm run bundle (compile)
> 
> exec
> 
> generate-resources
> 
> npm
> 
> run
> bundle
> 
> 
> 
> 
> 
> 
> 
>
>
> On 15.04.2019 16:18, Geertjan Wielenga wrote:
>
> You may have found a (the) way to combine Java, Maven, JavaScript, and
> NPM. If so, that’s amazing.
>
> Gj
>
> On Mon, 15 Apr 2019 at 08:56, Fedd  wrote:
>
>> Thanks, some Netbeans module has updated (I think it was called "Local
>> Tasks") and the package.json editor has retured.
>>
>> There is nothing special in my project. To reproduce success scenario,
>> one may just create a new "Java with Maven / Java Application", in Files
>> window go to the src/main folder and create a new one called "webapp". Then
>> go to the Project Properties (right click the project root and then
>> "Properties") and see that in JavaScript Category there are three items,
>> "npm", "Bower" and some other. "npm" is what I was missing. Now it's there
>> again. Thank you the developers! =)
>>
>> fedd
>> On 15.04.2019 15:02, Geertjan Wielenga wrote:
>>
>> It is hard to know what your project looks like or contains. But however
>> you have opened it, you’ll see all its content in the Files window. If you
>> can put a project that looks like this (or ideally is) this project on
>> GitHub so that we can look at it, that will help.
>>
>> Gj
>>
>> On Mon, 15 Apr 2019 at 03:32, Fedd  wrote:
>>
>>> Hello,
>>>
>>> I desperately need to have an ability to work with NPM libraries in a
>>> Maven non-webapp project, but NetBeans decides not to show the
>>> JavaScript libraries project property menu in order not to confuse me (?)
>>>
>>> Again, this is neither a HTML5/JavaScript project nor "Java with Maven /
>>> Web Application". It is "Java with Maven / Java 

Re: How do I activate the Javascript Libraries in the Java Maven Project properties

2019-04-15 Thread Geertjan Wielenga
You may have found a (the) way to combine Java, Maven, JavaScript, and NPM.
If so, that’s amazing.

Gj

On Mon, 15 Apr 2019 at 08:56, Fedd  wrote:

> Thanks, some Netbeans module has updated (I think it was called "Local
> Tasks") and the package.json editor has retured.
>
> There is nothing special in my project. To reproduce success scenario, one
> may just create a new "Java with Maven / Java Application", in Files window
> go to the src/main folder and create a new one called "webapp". Then go to
> the Project Properties (right click the project root and then "Properties")
> and see that in JavaScript Category there are three items, "npm", "Bower"
> and some other. "npm" is what I was missing. Now it's there again. Thank
> you the developers! =)
>
> fedd
> On 15.04.2019 15:02, Geertjan Wielenga wrote:
>
> It is hard to know what your project looks like or contains. But however
> you have opened it, you’ll see all its content in the Files window. If you
> can put a project that looks like this (or ideally is) this project on
> GitHub so that we can look at it, that will help.
>
> Gj
>
> On Mon, 15 Apr 2019 at 03:32, Fedd  wrote:
>
>> Hello,
>>
>> I desperately need to have an ability to work with NPM libraries in a
>> Maven non-webapp project, but NetBeans decides not to show the
>> JavaScript libraries project property menu in order not to confuse me (?)
>>
>> Again, this is neither a HTML5/JavaScript project nor "Java with Maven /
>> Web Application". It is "Java with Maven / Java Application" and I just
>> want to edit my package.json with what we have for doing this in web
>> projects.
>>
>> How do I activate the Javascript Libraries in the Java Maven Project
>> properties window? I confirm that I thought well and I do need this.
>>
>> At first it looked like that the presence of webapp directory in
>> "src/main" made Netbeans to show the desired submenu, but then it
>> somehow stopped working, I have rolled back most of my changes, but
>> NetBeans is still outsmarting me.
>>
>> Is there any magic configuration file entry?
>>
>> My SO question regarding this with pictures:
>>
>> https://stackoverflow.com/questions/50932323/list-npm-libraries-in-netbeans-8-2-maven-java-non-web-app-project
>>
>> Regards,
>>
>> Fyodor
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>


Re: How do I activate the Javascript Libraries in the Java Maven Project properties

2019-04-15 Thread Fedd
Thanks, some Netbeans module has updated (I think it was called "Local 
Tasks") and the package.json editor has retured.


There is nothing special in my project. To reproduce success scenario, 
one may just create a new "Java with Maven / Java Application", in Files 
window go to the src/main folder and create a new one called "webapp". 
Then go to the Project Properties (right click the project root and then 
"Properties") and see that in JavaScript Category there are three items, 
"npm", "Bower" and some other. "npm" is what I was missing. Now it's 
there again. Thank you the developers! =)


fedd

On 15.04.2019 15:02, Geertjan Wielenga wrote:
It is hard to know what your project looks like or contains. But 
however you have opened it, you’ll see all its content in the Files 
window. If you can put a project that looks like this (or ideally is) 
this project on GitHub so that we can look at it, that will help.


Gj

On Mon, 15 Apr 2019 at 03:32, Fedd mailto:f...@sql.ru>> 
wrote:


Hello,

I desperately need to have an ability to work with NPM libraries in a
Maven non-webapp project, but NetBeans decides not to show the
JavaScript libraries project property menu in order not to confuse
me (?)

Again, this is neither a HTML5/JavaScript project nor "Java with
Maven /
Web Application". It is "Java with Maven / Java Application" and I
just
want to edit my package.json with what we have for doing this in web
projects.

How do I activate the Javascript Libraries in the Java Maven Project
properties window? I confirm that I thought well and I do need this.

At first it looked like that the presence of webapp directory in
"src/main" made Netbeans to show the desired submenu, but then it
somehow stopped working, I have rolled back most of my changes, but
NetBeans is still outsmarting me.

Is there any magic configuration file entry?

My SO question regarding this with pictures:

https://stackoverflow.com/questions/50932323/list-npm-libraries-in-netbeans-8-2-maven-java-non-web-app-project

Regards,

Fyodor


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org

For additional commands, e-mail: users-h...@netbeans.apache.org


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



How do I activate the Javascript Libraries in the Java Maven Project properties

2019-04-15 Thread Fedd

Hello,

I desperately need to have an ability to work with NPM libraries in a 
Maven non-webapp project, but NetBeans decides not to show the 
JavaScript libraries project property menu in order not to confuse me (?)


Again, this is neither a HTML5/JavaScript project nor "Java with Maven / 
Web Application". It is "Java with Maven / Java Application" and I just 
want to edit my package.json with what we have for doing this in web 
projects.


How do I activate the Javascript Libraries in the Java Maven Project 
properties window? I confirm that I thought well and I do need this.


At first it looked like that the presence of webapp directory in 
"src/main" made Netbeans to show the desired submenu, but then it 
somehow stopped working, I have rolled back most of my changes, but 
NetBeans is still outsmarting me.


Is there any magic configuration file entry?

My SO question regarding this with pictures: 
https://stackoverflow.com/questions/50932323/list-npm-libraries-in-netbeans-8-2-maven-java-non-web-app-project


Regards,

Fyodor


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

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