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

Pierre Francis Roy edited comment on NETBEANS-3042 at 4/17/20, 7:21 PM:
------------------------------------------------------------------------

This issue with the console is crucial for my company. Our project is based on 
Jakarta EE 8 running on Payara 5.x.

 

We had a stable devstack with Netbeans 8.2 + Java EE * + Payara 4.x. Since I 
started to upgrade to Apache Netbeans I was never able to have a fully working 
stack. I tried different combination of JDK, Netbeans, Payara with no avail. I 
got close to normal with JDK 11 + Payara 5.x + Jakarta EE 8 + Apache Netbeans 
11.x + Payara Server plugins. The only thing missing is the woking console logs 
in Netbeans. I'm seeing the logs from Payara in version 11.0. But not for 11.1, 
11.2 and 11.3. It's quite frustrating as we have been almost two years without 
being able to upgrade our stack to the latest version of JDK, Java EE, Payara 
and Netbeans. We are so close to being able to fully working stack except the 
console.

For now I'm staying on Netbeans 11.0 which is ok but not as fast and stable as 
Netbeans 8.2. I would love to upgrade to 11.3.

*Environment*
 * Apache Netbeans 11.3
 * JDK 11 or JDK 8
 * Payara Server 5.201
 * JakarteEE 8.0
 * Logback 1.2.3

*Code*

*pom.xml*
{code:java}
// espace réservé du code

<dependency> <groupId>ch.qos.logback</groupId> 
<artifactId>logback-classic</artifactId> <version>1.2.3</version> 
</dependency>{code}
*logback.xml*
{code:java}
// espace réservé du code
<?xml version="1.0" encoding="UTF-8"?> <configuration> <appender name="CONSOLE" 
class="ch.qos.logback.core.ConsoleAppender"> <layout 
class="ch.qos.logback.classic.PatternLayout"> <Pattern>%d{HH:mm:ss.SSS} 
[%thread] %-5level %logger{36} - %msg</Pattern> </layout> </appender> <logger 
name="ca.allaxis" level="ALL" additivity="false"> <appender-ref ref="CONSOLE"/> 
</logger> <root level="DEBUG"> <appender-ref ref="CONSOLE" /> </root>
{code}
*Logger example*
{code:java}
// espace réservé du code
private static final Logger LOGGER = 
LoggerFactory.getLogger(InspectionController.class); LOGGER.info("Create 
registration(s) for {} selected inspections.", selectedItems.size());{code}
 


was (Author: pierrefroy):
This issue with the console is crucial for my company. Our project is based on 
Jakarta EE 8 running on Payara 5.x.

 

We had a stable devstack with Netbeans 8.2 + Java EE * + Payara 4.x. Since I 
started to upgrade to Apache Netbeans I was never able to have a fully working 
stack. I tried different combination of JDK, Netbeans, Payara with no avail. I 
got close to normal with JDK 11 + Payara 5.x + Jakarta EE 8 + Apache Netbeans 
11.x + Payara Server plugins. The only thing missing is the woking console logs 
in Netbeans. I'm seeing the logs from Payara in version 11.0. But not for 11.1, 
11.2 and 11.3. It's quite frustrating as we have been almost two years without 
being able to upgrade our stack to the latest version of JDK, Java EE, Payara 
and Netbeans. We are so close to being able to fully working stack except the 
console.

For now I'm staying on Netbeans 11.0 which is ok but not as fast and stable as 
Netbeans 8.2. I would love to upgrade to 11.3.

*Environment*
 * Apache Netbeans 11.3
 * JDK 11 or JDK 8
 * Payara Server 5.201
 * JakarteEE 8.0
 * Logback 1.2.3

*Code*

*pom.xml*
{code:java}
// espace réservé du code
{code}
<dependency> <groupId>ch.qos.logback</groupId> 
<artifactId>logback-classic</artifactId> <version>1.2.3</version> </dependency>

 

*logback.xml*
{code:java}
// espace réservé du code
{code}
<?xml version="1.0" encoding="UTF-8"?> <configuration> <appender name="CONSOLE" 
class="ch.qos.logback.core.ConsoleAppender"> <layout 
class="ch.qos.logback.classic.PatternLayout"> <Pattern>%d\{HH:mm:ss.SSS} 
[%thread] %-5level %logger\{36} - %msg</Pattern> </layout> </appender> <logger 
name="ca.allaxis" level="ALL" additivity="false"> <appender-ref ref="CONSOLE"/> 
</logger> <root level="DEBUG"> <appender-ref ref="CONSOLE" /> </root>**

*Logger example*
{code:java}
// espace réservé du code
{code}
private static final Logger LOGGER = 
LoggerFactory.getLogger(InspectionController.class); LOGGER.info("Create 
registration(s) for {} selected inspections.", selectedItems.size());

 

> can't see loggers (log4j2) created from apps deployed on Payara servers
> -----------------------------------------------------------------------
>
>                 Key: NETBEANS-3042
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3042
>             Project: NetBeans
>          Issue Type: Bug
>          Components: ide - Logger
>    Affects Versions: 11.0, 11.1, 11.2, 11.3
>         Environment: Windows 10, jdk 1.8, CentOS 7.x with AdoptOpenJDK 8 and 
> 11, Windows 10 with AdoptOpenJDK 8 and 11.
>            Reporter: jose luis romero
>            Priority: Major
>         Attachments: screenshot-1.png
>
>
> I can't see the logs (log4j2) generated by my apps deployed in Payara, they 
> are always empty.
> Tried to make a clean re-installation (no cache, no import config) but didn't 
> work
> Initially, I thought that I messed up some config file so I made a post 
> [https://stackoverflow.com/questions/57679272/i-cant-see-logs-from-apps-on-payara-4-1-just-on-netbeans-console-tab|stackOverflow]
>  but no, it is a Netbeans issue introduced in 11.1 version + payara 5



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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